@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 @@
1
+ {"version":3,"file":"opportunity-card.d.ts","sourceRoot":"","sources":["../../src/offer/opportunity-card.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,mBAAmB,CAAC;IACjC,OAAO,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,OAAqB,EACrB,SAAS,GACV,EAAE,oBAAoB,2CA4DtB"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Calendar, AlertCircle } from "lucide-react";
3
+ import { cn } from "../lib/utils";
4
+ export function OpportunityCard({ opportunity, variant = "collapsed", className, }) {
5
+ const expanded = variant === "expanded";
6
+ const deleted = !!opportunity.deletedAt;
7
+ return (_jsxs("section", { "aria-labelledby": "opportunity-heading", className: cn("rounded-2xl border border-border/60 bg-card p-4", className), children: [_jsx("h2", { id: "opportunity-heading", className: "text-xs/5 font-semibold uppercase tracking-wide text-muted-foreground", children: "Opportunity" }), _jsxs("div", { className: "mt-3 flex items-baseline gap-2", children: [_jsx("h3", { className: "text-base/7 font-semibold", children: opportunity.title }), !deleted && (_jsxs("span", { className: "inline-flex items-center gap-1 text-xs text-muted-foreground", children: [_jsx(Calendar, { "aria-hidden": true, className: "size-3" }), " closes in ", opportunity.closingDays, " day", opportunity.closingDays === 1 ? "" : "s"] }))] }), deleted && (_jsxs("div", { role: "alert", className: "mt-2 flex items-start gap-2 rounded-lg border border-amber-200 bg-amber-50 p-3 text-xs text-amber-900 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-100", children: [_jsx(AlertCircle, { "aria-hidden": true, className: "size-4 shrink-0" }), "The tender that created this offer has been closed. You can still accept, decline, or withdraw."] })), expanded && opportunity.requirements && (_jsx("ul", { className: "mt-3 list-disc space-y-1 pl-5 text-sm/6", children: opportunity.requirements.map((r) => (_jsx("li", { children: r }, r))) })), expanded && (opportunity.priceCeilingEuro || opportunity.volumeOptions) && (_jsxs("dl", { className: "mt-3 grid grid-cols-2 gap-3 text-xs", children: [opportunity.priceCeilingEuro != null && (_jsxs("div", { children: [_jsx("dt", { className: "text-muted-foreground", children: "Price ceiling" }), _jsxs("dd", { className: "font-medium", children: ["\u20AC", opportunity.priceCeilingEuro.toFixed(2), "/L"] })] })), opportunity.volumeOptions && (_jsxs("div", { children: [_jsx("dt", { className: "text-muted-foreground", children: "Volume options" }), _jsxs("dd", { className: "font-medium", children: [opportunity.volumeOptions.map((v) => v.toLocaleString()).join(", "), " L"] })] }))] }))] }));
8
+ }
9
+ //# sourceMappingURL=opportunity-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opportunity-card.js","sourceRoot":"","sources":["../../src/offer/opportunity-card.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAkBlC,MAAM,UAAU,eAAe,CAAC,EAC9B,WAAW,EACX,OAAO,GAAG,WAAW,EACrB,SAAS,GACY;IACrB,MAAM,QAAQ,GAAG,OAAO,KAAK,UAAU,CAAC;IACxC,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC;IACxC,OAAO,CACL,sCACkB,qBAAqB,EACrC,SAAS,EAAE,EAAE,CAAC,iDAAiD,EAAE,SAAS,CAAC,aAE3E,aACE,EAAE,EAAC,qBAAqB,EACxB,SAAS,EAAC,uEAAuE,4BAG9E,EACL,eAAK,SAAS,EAAC,gCAAgC,aAC7C,aAAI,SAAS,EAAC,2BAA2B,YAAE,WAAW,CAAC,KAAK,GAAM,EACjE,CAAC,OAAO,IAAI,CACX,gBAAM,SAAS,EAAC,8DAA8D,aAC5E,KAAC,QAAQ,yBAAa,SAAS,EAAC,QAAQ,GAAG,iBAAY,WAAW,CAAC,WAAW,UAC7E,WAAW,CAAC,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IACpC,CACR,IACG,EACL,OAAO,IAAI,CACV,eACE,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,mKAAmK,aAE7K,KAAC,WAAW,yBAAa,SAAS,EAAC,iBAAiB,GAAG,uGAGnD,CACP,EACA,QAAQ,IAAI,WAAW,CAAC,YAAY,IAAI,CACvC,aAAI,SAAS,EAAC,yCAAyC,YACpD,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACnC,uBAAa,CAAC,IAAL,CAAC,CAAU,CACrB,CAAC,GACC,CACN,EACA,QAAQ,IAAI,CAAC,WAAW,CAAC,gBAAgB,IAAI,WAAW,CAAC,aAAa,CAAC,IAAI,CAC1E,cAAI,SAAS,EAAC,qCAAqC,aAChD,WAAW,CAAC,gBAAgB,IAAI,IAAI,IAAI,CACvC,0BACE,aAAI,SAAS,EAAC,uBAAuB,8BAAmB,EACxD,cAAI,SAAS,EAAC,aAAa,uBAAG,WAAW,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,UAAQ,IACzE,CACP,EACA,WAAW,CAAC,aAAa,IAAI,CAC5B,0BACE,aAAI,SAAS,EAAC,uBAAuB,+BAAoB,EACzD,cAAI,SAAS,EAAC,aAAa,aACxB,WAAW,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UACjE,IACD,CACP,IACE,CACN,IACO,CACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { OpportunityCard } from "./opportunity-card";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof OpportunityCard;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Collapsed: Story;
14
+ export declare const Expanded: Story;
15
+ export declare const OpportunityDeleted: Story;
16
+ //# sourceMappingURL=opportunity-card.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opportunity-card.stories.d.ts","sourceRoot":"","sources":["../../src/offer/opportunity-card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,QAAA,MAAM,IAAI;;;;;;;CAK8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAenC,eAAO,MAAM,SAAS,EAAE,KAEvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAKhC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { OpportunityCard } from "./opportunity-card";
2
+ const meta = {
3
+ title: "Offer/OpportunityCard",
4
+ component: OpportunityCard,
5
+ tags: ["autodocs"],
6
+ parameters: { layout: "padded" },
7
+ };
8
+ export default meta;
9
+ const opportunity = {
10
+ id: "opp-1",
11
+ title: "Bulk Chianti DOCG — Q3 2026",
12
+ closingDays: 12,
13
+ priceCeilingEuro: 4.2,
14
+ volumeOptions: [10000, 20000, 30000],
15
+ requirements: [
16
+ "ABV between 12.5% and 14.0%",
17
+ "Packaging: 750ml glass bottles",
18
+ "Certifications: Organic required",
19
+ ],
20
+ };
21
+ export const Collapsed = {
22
+ args: { opportunity, variant: "collapsed" },
23
+ };
24
+ export const Expanded = {
25
+ args: { opportunity, variant: "expanded" },
26
+ };
27
+ export const OpportunityDeleted = {
28
+ args: {
29
+ opportunity: { ...opportunity, deletedAt: "2026-04-18T00:00:00Z" },
30
+ variant: "expanded",
31
+ },
32
+ };
33
+ //# sourceMappingURL=opportunity-card.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opportunity-card.stories.js","sourceRoot":"","sources":["../../src/offer/opportunity-card.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,eAAe;IAC1B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;CACM,CAAC;AAEzC,eAAe,IAAI,CAAC;AAGpB,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,OAAO;IACX,KAAK,EAAE,6BAA6B;IACpC,WAAW,EAAE,EAAE;IACf,gBAAgB,EAAE,GAAG;IACrB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;IACpC,YAAY,EAAE;QACZ,6BAA6B;QAC7B,gCAAgC;QAChC,kCAAkC;KACnC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE;CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAU;IACvC,IAAI,EAAE;QACJ,WAAW,EAAE,EAAE,GAAG,WAAW,EAAE,SAAS,EAAE,sBAAsB,EAAE;QAClE,OAAO,EAAE,UAAU;KACpB;CACF,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { OfferPartyInfo } from "./types";
2
+ export interface PartiesCardProps {
3
+ producer: OfferPartyInfo;
4
+ importer: OfferPartyInfo;
5
+ /** Viewer's org id — used so "your org" renders on the left. */
6
+ viewerOrgId: string;
7
+ variant?: "collapsed" | "expanded";
8
+ className?: string;
9
+ }
10
+ export declare function PartiesCard({ producer, importer, viewerOrgId, variant, className, }: PartiesCardProps): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=parties-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parties-card.d.ts","sourceRoot":"","sources":["../../src/offer/parties-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,gEAAgE;IAChE,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmDD,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,OAAqB,EACrB,SAAS,GACV,EAAE,gBAAgB,2CAoBlB"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ArrowLeftRight } from "lucide-react";
3
+ import { cn } from "../lib/utils";
4
+ function PartyBlock({ party, expanded, align, }) {
5
+ return (_jsxs("div", { className: cn("flex flex-1 min-w-0 items-start gap-3", align === "right" && "flex-row-reverse text-right"), children: [_jsx("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full bg-muted text-sm font-semibold", "aria-hidden": true, children: party.logoUrl ? (_jsx("img", { src: party.logoUrl, alt: "", className: "size-full rounded-full object-cover" })) : (party.name.slice(0, 2).toUpperCase()) }), _jsxs("div", { className: "min-w-0", children: [_jsx("div", { className: "truncate text-sm/6 font-semibold", children: party.name }), party.location && (_jsx("div", { className: "truncate text-xs text-muted-foreground", children: party.location })), expanded && party.primaryContactName && (_jsxs("div", { className: "mt-1 text-xs text-muted-foreground", children: [party.primaryContactName, party.primaryContactEmail && (_jsxs(_Fragment, { children: [" · ", _jsx("a", { className: "underline", href: `mailto:${party.primaryContactEmail}`, children: party.primaryContactEmail })] }))] }))] })] }));
6
+ }
7
+ export function PartiesCard({ producer, importer, viewerOrgId, variant = "collapsed", className, }) {
8
+ const expanded = variant === "expanded";
9
+ const viewerIsProducer = viewerOrgId === producer.orgId;
10
+ const left = viewerIsProducer ? producer : importer;
11
+ const right = viewerIsProducer ? importer : producer;
12
+ return (_jsxs("section", { "aria-labelledby": "parties-heading", className: cn("rounded-2xl border border-border/60 bg-card p-4", className), children: [_jsx("h2", { id: "parties-heading", className: "text-xs/5 font-semibold uppercase tracking-wide text-muted-foreground", children: "Parties" }), _jsxs("div", { className: "mt-3 flex items-center gap-3", children: [_jsx(PartyBlock, { party: left, expanded: expanded, align: "left" }), _jsx(ArrowLeftRight, { "aria-hidden": true, className: "size-5 shrink-0 text-muted-foreground" }), _jsx(PartyBlock, { party: right, expanded: expanded, align: "right" })] })] }));
13
+ }
14
+ //# sourceMappingURL=parties-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parties-card.js","sourceRoot":"","sources":["../../src/offer/parties-card.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAYlC,SAAS,UAAU,CAAC,EAClB,KAAK,EACL,QAAQ,EACR,KAAK,GAKN;IACC,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,uCAAuC,EACvC,KAAK,KAAK,OAAO,IAAI,6BAA6B,CACnD,aAED,cACE,SAAS,EAAC,+FAA+F,iCAGxG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CACf,cAAK,GAAG,EAAE,KAAK,CAAC,OAAO,EAAE,GAAG,EAAC,EAAE,EAAC,SAAS,EAAC,qCAAqC,GAAG,CACnF,CAAC,CAAC,CAAC,CACF,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CA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EAAC,MAAM,GAAG,EAC5D,KAAC,cAAc,yBAAa,SAAS,EAAC,uCAAuC,GAAG,EAChF,KAAC,UAAU,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAC,OAAO,GAAG,IAC1D,IACE,CACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { PartiesCard } from "./parties-card";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof PartiesCard;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const CollapsedProducer: Story;
14
+ export declare const ExpandedProducer: Story;
15
+ export declare const CollapsedImporter: Story;
16
+ export declare const ExpandedImporter: Story;
17
+ //# sourceMappingURL=parties-card.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parties-card.stories.d.ts","sourceRoot":"","sources":["../../src/offer/parties-card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,QAAA,MAAM,IAAI;;;;;;;CAK0B,CAAC;AAErC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAmBnC,eAAO,MAAM,iBAAiB,EAAE,KAE/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAE9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAE/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAE9B,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { PartiesCard } from "./parties-card";
2
+ const meta = {
3
+ title: "Offer/PartiesCard",
4
+ component: PartiesCard,
5
+ tags: ["autodocs"],
6
+ parameters: { layout: "padded" },
7
+ };
8
+ export default meta;
9
+ const producer = {
10
+ orgId: "org-prod",
11
+ name: "Chianti Wines SRL",
12
+ logoUrl: null,
13
+ location: "Tuscany, IT",
14
+ primaryContactName: "Marco Rossi",
15
+ primaryContactEmail: "marco@chiantiwines.example",
16
+ };
17
+ const importer = {
18
+ orgId: "org-imp",
19
+ name: "Maxwell Importers Ltd",
20
+ logoUrl: null,
21
+ location: "London, UK",
22
+ primaryContactName: "Priya Patel",
23
+ primaryContactEmail: "priya@maxwell.example",
24
+ };
25
+ export const CollapsedProducer = {
26
+ args: { producer, importer, viewerOrgId: "org-prod", variant: "collapsed" },
27
+ };
28
+ export const ExpandedProducer = {
29
+ args: { producer, importer, viewerOrgId: "org-prod", variant: "expanded" },
30
+ };
31
+ export const CollapsedImporter = {
32
+ args: { producer, importer, viewerOrgId: "org-imp", variant: "collapsed" },
33
+ };
34
+ export const ExpandedImporter = {
35
+ args: { producer, importer, viewerOrgId: "org-imp", variant: "expanded" },
36
+ };
37
+ //# sourceMappingURL=parties-card.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parties-card.stories.js","sourceRoot":"","sources":["../../src/offer/parties-card.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;CACE,CAAC;AAErC,eAAe,IAAI,CAAC;AAGpB,MAAM,QAAQ,GAAG;IACf,KAAK,EAAE,UAAU;IACjB,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,aAAa;IACvB,kBAAkB,EAAE,aAAa;IACjC,mBAAmB,EAAE,4BAA4B;CAClD,CAAC;AACF,MAAM,QAAQ,GAAG;IACf,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,YAAY;IACtB,kBAAkB,EAAE,aAAa;IACjC,mBAAmB,EAAE,uBAAuB;CAC7C,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAU;IACtC,IAAI,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE;CAC5E,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAU;IACrC,IAAI,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE;CAC3E,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAU;IACtC,IAAI,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE;CAC3E,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAU;IACrC,IAAI,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE;CAC1E,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { OfferTerms, Perspective } from "./types";
2
+ export interface TermsCardProps {
3
+ terms: OfferTerms;
4
+ previousTerms?: OfferTerms;
5
+ variant?: "collapsed" | "expanded";
6
+ /**
7
+ * Viewer perspective — used to derive per-row delta polarity. Spec §11
8
+ * "Delta polarity (price up =)" is perspective-dependent: a price
9
+ * increase is emerald for a producer and rose for an importer, etc. This
10
+ * replaces the flat `viewerAdvantage` prop from the original plan
11
+ * (blocker B3) — polarity is now per-row, not per-card.
12
+ */
13
+ perspective?: Perspective;
14
+ className?: string;
15
+ }
16
+ export declare function TermsCard({ terms, previousTerms, variant, perspective, className, }: TermsCardProps): import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=terms-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terms-card.d.ts","sourceRoot":"","sources":["../../src/offer/terms-card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,UAAU,CAAC;IAClB,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,OAAO,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC;IACnC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA2BD,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,aAAa,EACb,OAAqB,EACrB,WAAW,EACX,SAAS,GACV,EAAE,cAAc,2CA8DhB"}
@@ -0,0 +1,50 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../lib/utils";
3
+ /**
4
+ * Per-row direction-to-advantage rule. `positiveDirection` states which
5
+ * `delta > 0` direction is "better" for a producer viewer. The rule
6
+ * flips for an importer viewer. Rows with `neutral` carry no colour.
7
+ */
8
+ const ROWS = [
9
+ // Higher price is an advantage for the producer.
10
+ { id: "price", label: "Price", fmt: (v, t) => `${v} ${t.currency}/${t.volumeUnit ?? "L"}`, positiveDirection: "up" },
11
+ // Higher volume is generally an advantage for the producer.
12
+ { id: "volume", label: "Volume", fmt: (v, t) => `${v.toLocaleString()} ${t.volumeUnit ?? "L"}`, positiveDirection: "up" },
13
+ { id: "incoterms", label: "Incoterms", fmt: (v) => String(v ?? "—"), positiveDirection: "neutral" },
14
+ { id: "paymentTerms", label: "Payment terms", fmt: (v) => String(v ?? "—"), positiveDirection: "neutral" },
15
+ { id: "deliveryDate", label: "Delivery date", fmt: (v) => String(v ?? "—"), positiveDirection: "neutral" },
16
+ { id: "validUntil", label: "Valid until", fmt: (v) => String(v ?? "—"), positiveDirection: "neutral" },
17
+ // Higher MOQ = fewer small-lot buyers = producer's advantage.
18
+ { id: "minimumOrderQuantity", label: "Min. order", fmt: (v) => (v != null ? `${v.toLocaleString()} L` : "—"), positiveDirection: "up" },
19
+ // Higher advance % = better cashflow for the producer.
20
+ { id: "advancePayment", label: "Advance %", fmt: (v) => (v != null ? `${v}%` : "—"), positiveDirection: "up" },
21
+ ];
22
+ export function TermsCard({ terms, previousTerms, variant = "collapsed", perspective, className, }) {
23
+ return (_jsxs("section", { "aria-labelledby": "terms-heading", className: cn("rounded-2xl border border-border/60 bg-card p-4", className), children: [_jsx("h2", { id: "terms-heading", className: "text-xs/5 font-semibold uppercase tracking-wide text-muted-foreground", children: "Terms" }), variant === "collapsed" ? (_jsxs("p", { className: "mt-3 text-sm/6 text-muted-foreground", children: [terms.price, " ", terms.currency, "/", terms.volumeUnit ?? "L", " \u00B7 ", terms.volume.toLocaleString(), " ", terms.volumeUnit ?? "L", " \u00B7 ", terms.incoterms, " \u00B7 ", terms.paymentTerms] })) : (_jsx("dl", { className: "mt-3 grid grid-cols-2 gap-x-4 gap-y-2 text-sm/6", children: ROWS.map((row) => {
24
+ const cur = terms[row.id];
25
+ const prev = previousTerms?.[row.id];
26
+ const changed = previousTerms && prev !== cur;
27
+ // Compute per-row polarity (blocker B3). Only numeric rows
28
+ // with a non-neutral positiveDirection derive an advantage;
29
+ // all others stay neutral. `perspective` flips the rule for
30
+ // importer viewers.
31
+ let advantage = "neutral";
32
+ if (changed &&
33
+ row.positiveDirection !== "neutral" &&
34
+ typeof cur === "number" &&
35
+ typeof prev === "number") {
36
+ const direction = cur > prev ? "up" : "down";
37
+ const isProducerPositive = direction === row.positiveDirection;
38
+ advantage =
39
+ perspective === "importer"
40
+ ? isProducerPositive
41
+ ? "worsened"
42
+ : "improved"
43
+ : isProducerPositive
44
+ ? "improved"
45
+ : "worsened";
46
+ }
47
+ return (_jsxs("div", { children: [_jsx("dt", { className: "text-xs uppercase tracking-wide text-muted-foreground", children: row.label }), _jsxs("dd", { className: cn("font-medium", advantage === "improved" && "text-emerald-700", advantage === "worsened" && "text-rose-700"), children: [row.fmt(cur, terms), changed && prev != null && (_jsx("span", { className: "ml-2 text-xs text-muted-foreground line-through", children: row.fmt(prev, previousTerms) }))] })] }, row.id));
48
+ }) }))] }));
49
+ }
50
+ //# sourceMappingURL=terms-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terms-card.js","sourceRoot":"","sources":["../../src/offer/terms-card.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAkBlC;;;;GAIG;AACH,MAAM,IAAI,GAKL;IACH,iDAAiD;IACjD,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,UAAU,IAAI,GAAG,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE;IACpH,4DAA4D;IAC5D,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAAI,CAAY,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC,UAAU,IAAI,GAAG,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE;IACrI,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,GAAG,CAAC,EAAE,iBAAiB,EAAE,SAAS,EAAE;IACnG,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,GAAG,CAAC,EAAE,iBAAiB,EAAE,SAAS,EAAE;IAC1G,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EA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AS,KAAK,UAAU,IAAI,eAAe,CAAC,aAC1H,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,EACnB,OAAO,IAAI,IAAI,IAAI,IAAI,IAAI,CAC1B,eAAM,SAAS,EAAC,iDAAiD,YAC9D,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,aAAc,CAAC,GACzB,CACR,IACE,KATG,GAAG,CAAC,EAAE,CAUV,CACP,CAAC;gBACJ,CAAC,CAAC,GACC,CACN,IACO,CACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { TermsCard } from "./terms-card";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof TermsCard;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Collapsed: Story;
14
+ export declare const Expanded: Story;
15
+ export declare const WithPreviousTermsProducer: Story;
16
+ export declare const WithPreviousTermsImporter: Story;
17
+ //# sourceMappingURL=terms-card.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terms-card.stories.d.ts","sourceRoot":"","sources":["../../src/offer/terms-card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,QAAA,MAAM,IAAI;;;;;;;CAKwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAenC,eAAO,MAAM,SAAS,EAAE,KAA4D,CAAC;AACrF,eAAO,MAAM,QAAQ,EAAE,KAA2D,CAAC;AACnF,eAAO,MAAM,yBAAyB,EAAE,KAOvC,CAAC;AAIF,eAAO,MAAM,yBAAyB,EAAE,KAOvC,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { TermsCard } from "./terms-card";
2
+ const meta = {
3
+ title: "Offer/TermsCard",
4
+ component: TermsCard,
5
+ tags: ["autodocs"],
6
+ parameters: { layout: "padded" },
7
+ };
8
+ export default meta;
9
+ const baseTerms = {
10
+ price: 4.1,
11
+ currency: "EUR",
12
+ volume: 20000,
13
+ volumeUnit: "L",
14
+ incoterms: "FOB",
15
+ paymentTerms: "Net 30",
16
+ deliveryDate: "2026-08-15",
17
+ validUntil: "2026-05-22",
18
+ minimumOrderQuantity: 5000,
19
+ advancePayment: 10,
20
+ };
21
+ export const Collapsed = { args: { terms: baseTerms, variant: "collapsed" } };
22
+ export const Expanded = { args: { terms: baseTerms, variant: "expanded" } };
23
+ export const WithPreviousTermsProducer = {
24
+ args: {
25
+ terms: { ...baseTerms, price: 4.4 },
26
+ previousTerms: baseTerms,
27
+ variant: "expanded",
28
+ perspective: "producer",
29
+ },
30
+ };
31
+ // Blocker B3 — same data, flipped perspective. `price 4.10 → 4.40`: the
32
+ // producer sees `+€0.30` in emerald (advantage); the importer sees the
33
+ // same delta in rose (worsened). Per spec §11 "Delta polarity".
34
+ export const WithPreviousTermsImporter = {
35
+ args: {
36
+ terms: { ...baseTerms, price: 4.4 },
37
+ previousTerms: baseTerms,
38
+ variant: "expanded",
39
+ perspective: "importer",
40
+ },
41
+ };
42
+ //# sourceMappingURL=terms-card.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terms-card.stories.js","sourceRoot":"","sources":["../../src/offer/terms-card.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;CACA,CAAC;AAEnC,eAAe,IAAI,CAAC;AAGpB,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,GAAG;IACV,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,GAAG;IACf,SAAS,EAAE,KAAK;IAChB,YAAY,EAAE,QAAQ;IACtB,YAAY,EAAE,YAAY;IAC1B,UAAU,EAAE,YAAY;IACxB,oBAAoB,EAAE,IAAI;IAC1B,cAAc,EAAE,EAAE;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,CAAC;AACrF,MAAM,CAAC,MAAM,QAAQ,GAAU,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC;AACnF,MAAM,CAAC,MAAM,yBAAyB,GAAU;IAC9C,IAAI,EAAE;QACJ,KAAK,EAAE,EAAE,GAAG,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE;QACnC,aAAa,EAAE,SAAS;QACxB,OAAO,EAAE,UAAU;QACnB,WAAW,EAAE,UAAU;KACxB;CACF,CAAC;AACF,wEAAwE;AACxE,uEAAuE;AACvE,gEAAgE;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAU;IAC9C,IAAI,EAAE;QACJ,KAAK,EAAE,EAAE,GAAG,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE;QACnC,aAAa,EAAE,SAAS;QACxB,OAAO,EAAE,UAAU;QACnB,WAAW,EAAE,UAAU;KACxB;CACF,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import type { TimelineEventData, ViewerAdvantage } from "./types";
3
+ export interface TimelineEventProps {
4
+ ref?: React.Ref<HTMLLIElement>;
5
+ event: TimelineEventData;
6
+ viewerAdvantage: ViewerAdvantage;
7
+ tabIndex?: number;
8
+ onFocus?: () => void;
9
+ className?: string;
10
+ }
11
+ export declare function TimelineEvent({ ref, event, viewerAdvantage, tabIndex, onFocus, className }: TimelineEventProps): import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=timeline-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline-event.d.ts","sourceRoot":"","sources":["../../src/offer/timeline-event.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAavC,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAC/B,KAAK,EAAE,iBAAiB,CAAC;IACzB,eAAe,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA4CD,wBAAgB,aAAa,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,QAAa,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,kBAAkB,2CAoFnH"}
@@ -0,0 +1,57 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useMemo } from "react";
3
+ import { format } from "date-fns";
4
+ import { ArrowLeftRight, CheckCircle, XCircle, FileText, MessageSquare, Paperclip, Clock, } from "lucide-react";
5
+ import { cn } from "../lib/utils";
6
+ import { ShadcnBadge as Badge } from "../components/shadcn-badge";
7
+ function Icon({ kind }) {
8
+ const common = { "aria-hidden": true, className: "size-4 shrink-0" };
9
+ switch (kind) {
10
+ case "propose":
11
+ case "counter":
12
+ return _jsx(ArrowLeftRight, { ...common });
13
+ case "accept":
14
+ return _jsx(CheckCircle, { ...common });
15
+ case "decline":
16
+ case "withdraw":
17
+ return _jsx(XCircle, { ...common });
18
+ case "expire":
19
+ return _jsx(Clock, { ...common });
20
+ case "message":
21
+ return _jsx(MessageSquare, { ...common });
22
+ case "attachment":
23
+ return _jsx(Paperclip, { ...common });
24
+ }
25
+ }
26
+ function Headline({ event }) {
27
+ const role = event.actorRole === "producer" ? "Producer" : "Importer";
28
+ switch (event.kind) {
29
+ case "propose":
30
+ return _jsxs(_Fragment, { children: [role, " proposed R", event.round ?? 1] });
31
+ case "counter":
32
+ return _jsxs(_Fragment, { children: [role, " countered R", event.round ?? "?"] });
33
+ case "accept":
34
+ return _jsxs(_Fragment, { children: [role, " accepted"] });
35
+ case "decline":
36
+ return _jsxs(_Fragment, { children: [role, " declined"] });
37
+ case "withdraw":
38
+ return _jsxs(_Fragment, { children: [role, " withdrew"] });
39
+ case "expire":
40
+ return _jsx(_Fragment, { children: "Offer expired" });
41
+ case "message":
42
+ return _jsxs(_Fragment, { children: [role, " sent a message"] });
43
+ case "attachment":
44
+ return _jsxs(_Fragment, { children: [role, " attached a file"] });
45
+ }
46
+ }
47
+ export function TimelineEvent({ ref, event, viewerAdvantage, tabIndex = -1, onFocus, className }) {
48
+ const createdAt = useMemo(() => new Date(event.createdAt), [event.createdAt]);
49
+ const expiredAtRaw = event.kind === "expire" ? event.expiredAt : null;
50
+ const expiredAt = useMemo(() => (expiredAtRaw != null ? new Date(expiredAtRaw) : null), [expiredAtRaw]);
51
+ return (_jsxs("li", { ref: ref, role: "listitem", tabIndex: tabIndex, onFocus: onFocus, "aria-label": `Timeline event: ${event.kind} by ${event.actorRole}`, className: cn("group flex items-start gap-3 rounded-xl border border-border/60 bg-card p-3 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary", className), children: [_jsx("div", { className: "mt-0.5 flex size-7 items-center justify-center rounded-full bg-muted text-muted-foreground", children: _jsx(Icon, { kind: event.kind }) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsxs("div", { className: "flex flex-wrap items-baseline gap-2 text-sm/6", children: [_jsx("span", { className: "font-medium", children: _jsx(Headline, { event: event }) }), _jsx("span", { className: "text-xs text-muted-foreground", children: format(createdAt, "MMM d, HH:mm") }), (event.kind === "propose" || event.kind === "counter") && (_jsxs(Badge, { variant: "ghost", className: cn("text-xs", viewerAdvantage === "improved" && "bg-emerald-100 text-emerald-800", viewerAdvantage === "worsened" && "bg-rose-100 text-rose-800"), children: [event.terms.price, " ", event.terms.currency, " \u00B7 ", event.terms.volume.toLocaleString(), " L", event.previousTerms && event.previousTerms.price !== event.terms.price && (_jsxs(_Fragment, { children: [" ", _jsxs("span", { className: "line-through opacity-60", children: [event.previousTerms.price, " ", event.previousTerms.currency] })] }))] })), (event.kind === "counter" || event.kind === "propose") && event.attachmentCount && event.attachmentCount > 0 && (_jsxs(Badge, { variant: "ghost", className: "text-xs", children: [_jsx(FileText, { "aria-hidden": true, className: "size-3" }), event.attachmentCount, " attachment", event.attachmentCount === 1 ? "" : "s", event.firstAttachmentName ? `: ${event.firstAttachmentName}` : ""] }))] }), (event.kind === "counter" ||
52
+ event.kind === "propose" ||
53
+ event.kind === "decline" ||
54
+ event.kind === "accept" ||
55
+ event.kind === "withdraw") && event.message && (_jsx("p", { className: "mt-1 text-sm/6 text-muted-foreground", children: event.message })), event.kind === "message" && _jsx("p", { className: "mt-1 text-sm/6", children: event.content }), event.kind === "attachment" && (_jsxs("p", { className: "mt-1 text-sm/6", children: [event.fileName, " \u00B7 ", Math.round(event.sizeBytes / 1024), " KB \u00B7", " ", _jsx("span", { className: "text-xs uppercase tracking-wide text-muted-foreground", children: event.source === "chat" ? "shared in chat" : event.source === "round" ? "attached to round" : "formal attachment" })] })), event.kind === "expire" && expiredAt && (_jsxs("p", { className: "mt-1 text-xs text-muted-foreground", children: ["Expired at ", format(expiredAt, "MMM d, HH:mm")] }))] })] }));
56
+ }
57
+ //# sourceMappingURL=timeline-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline-event.js","sourceRoot":"","sources":["../../src/offer/timeline-event.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CA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
+ title: string;
5
+ component: typeof TimelineEvent;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Propose: Story;
14
+ export declare const Counter: Story;
15
+ export declare const Accept: Story;
16
+ export declare const Decline: Story;
17
+ export declare const Withdraw: Story;
18
+ export declare const Expire: Story;
19
+ export declare const Message: Story;
20
+ export declare const Attachment: Story;
21
+ //# sourceMappingURL=timeline-event.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline-event.stories.d.ts","sourceRoot":"","sources":["../../src/offer/timeline-event.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,QAAA,MAAM,IAAI;;;;;;;CAK4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA8CnC,eAAO,MAAM,OAAO,EAAE,KAAoE,CAAC;AAC3F,eAAO,MAAM,OAAO,EAAE,KAAqE,CAAC;AAC5F,eAAO,MAAM,MAAM,EAAE,KAAmE,CAAC;AACzF,eAAO,MAAM,OAAO,EAAE,KAAoE,CAAC;AAC3F,eAAO,MAAM,QAAQ,EAAE,KAAqE,CAAC;AAC7F,eAAO,MAAM,MAAM,EAAE,KAAmE,CAAC;AACzF,eAAO,MAAM,OAAO,EAAE,KAAoE,CAAC;AAC3F,eAAO,MAAM,UAAU,EAAE,KAAuE,CAAC"}
@@ -0,0 +1,57 @@
1
+ import { TimelineEvent } from "./timeline-event";
2
+ const meta = {
3
+ title: "Offer/TimelineEvent",
4
+ component: TimelineEvent,
5
+ tags: ["autodocs"],
6
+ parameters: { layout: "padded" },
7
+ };
8
+ export default meta;
9
+ const base = {
10
+ id: "e1",
11
+ createdAt: "2026-04-20T10:12:00Z",
12
+ actorOrgId: "org-prod",
13
+ actorRole: "producer",
14
+ round: 1,
15
+ };
16
+ const proposeData = {
17
+ ...base,
18
+ kind: "propose",
19
+ terms: { price: 4.1, currency: "EUR", volume: 20000 },
20
+ };
21
+ const counterData = {
22
+ ...base,
23
+ kind: "counter",
24
+ round: 2,
25
+ terms: { price: 4.4, currency: "EUR", volume: 20000 },
26
+ previousTerms: { price: 4.1, currency: "EUR", volume: 20000 },
27
+ message: "Please adjust price — tariffs changed.",
28
+ attachmentCount: 1,
29
+ firstAttachmentName: "tariff-notice.pdf",
30
+ };
31
+ const acceptData = { ...base, kind: "accept" };
32
+ const declineData = { ...base, kind: "decline", message: "Unable to meet the ABV range." };
33
+ const withdrawData = { ...base, kind: "withdraw" };
34
+ const expireData = { ...base, kind: "expire", expiredAt: "2026-04-22T00:00:00Z" };
35
+ const messageData = {
36
+ ...base,
37
+ kind: "message",
38
+ content: "Can we schedule a call to go over the delivery schedule?",
39
+ attachmentCount: 0,
40
+ };
41
+ const attachmentData = {
42
+ ...base,
43
+ kind: "attachment",
44
+ fileName: "lab-certificate.pdf",
45
+ mimeType: "application/pdf",
46
+ sizeBytes: 120_000,
47
+ source: "chat",
48
+ };
49
+ export const Propose = { args: { event: proposeData, viewerAdvantage: "neutral" } };
50
+ export const Counter = { args: { event: counterData, viewerAdvantage: "worsened" } };
51
+ export const Accept = { args: { event: acceptData, viewerAdvantage: "neutral" } };
52
+ export const Decline = { args: { event: declineData, viewerAdvantage: "neutral" } };
53
+ export const Withdraw = { args: { event: withdrawData, viewerAdvantage: "neutral" } };
54
+ export const Expire = { args: { event: expireData, viewerAdvantage: "neutral" } };
55
+ export const Message = { args: { event: messageData, viewerAdvantage: "neutral" } };
56
+ export const Attachment = { args: { event: attachmentData, viewerAdvantage: "neutral" } };
57
+ //# sourceMappingURL=timeline-event.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline-event.stories.js","sourceRoot":"","sources":["../../src/offer/timeline-event.stories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