@cellarnode/ui 0.17.4 → 0.19.2

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 (375) 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/components/journey-card.d.ts +9 -1
  5. package/dist/components/journey-card.d.ts.map +1 -1
  6. package/dist/components/journey-card.js +13 -6
  7. package/dist/components/journey-card.js.map +1 -1
  8. package/dist/components/journey-card.stories.d.ts +2 -0
  9. package/dist/components/journey-card.stories.d.ts.map +1 -1
  10. package/dist/components/journey-card.stories.js +43 -0
  11. package/dist/components/journey-card.stories.js.map +1 -1
  12. package/dist/components/sortable-card-context.d.ts +18 -0
  13. package/dist/components/sortable-card-context.d.ts.map +1 -0
  14. package/dist/components/sortable-card-context.js +18 -0
  15. package/dist/components/sortable-card-context.js.map +1 -0
  16. package/dist/components/sortable-card-shell.d.ts +40 -21
  17. package/dist/components/sortable-card-shell.d.ts.map +1 -1
  18. package/dist/components/sortable-card-shell.js +46 -39
  19. package/dist/components/sortable-card-shell.js.map +1 -1
  20. package/dist/components/sortable-card-shell.stories.d.ts +1 -1
  21. package/dist/components/sortable-card-shell.stories.d.ts.map +1 -1
  22. package/dist/components/sortable-card-shell.stories.js +28 -15
  23. package/dist/components/sortable-card-shell.stories.js.map +1 -1
  24. package/dist/components/sortable-card-shell.test.js +57 -16
  25. package/dist/components/sortable-card-shell.test.js.map +1 -1
  26. package/dist/index.d.ts +8 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +6 -0
  29. package/dist/index.js.map +1 -1
  30. package/dist/offer/attachments-card.d.ts +9 -0
  31. package/dist/offer/attachments-card.d.ts.map +1 -0
  32. package/dist/offer/attachments-card.js +16 -0
  33. package/dist/offer/attachments-card.js.map +1 -0
  34. package/dist/offer/attachments-card.stories.d.ts +17 -0
  35. package/dist/offer/attachments-card.stories.d.ts.map +1 -0
  36. package/dist/offer/attachments-card.stories.js +24 -0
  37. package/dist/offer/attachments-card.stories.js.map +1 -0
  38. package/dist/offer/buyer-notes-card.d.ts +7 -0
  39. package/dist/offer/buyer-notes-card.d.ts.map +1 -0
  40. package/dist/offer/buyer-notes-card.js +6 -0
  41. package/dist/offer/buyer-notes-card.js.map +1 -0
  42. package/dist/offer/buyer-notes-card.stories.d.ts +16 -0
  43. package/dist/offer/buyer-notes-card.stories.d.ts.map +1 -0
  44. package/dist/offer/buyer-notes-card.stories.js +25 -0
  45. package/dist/offer/buyer-notes-card.stories.js.map +1 -0
  46. package/dist/offer/counter-slide-over.d.ts +44 -0
  47. package/dist/offer/counter-slide-over.d.ts.map +1 -0
  48. package/dist/offer/counter-slide-over.js +81 -0
  49. package/dist/offer/counter-slide-over.js.map +1 -0
  50. package/dist/offer/counter-slide-over.stories.d.ts +23 -0
  51. package/dist/offer/counter-slide-over.stories.d.ts.map +1 -0
  52. package/dist/offer/counter-slide-over.stories.js +235 -0
  53. package/dist/offer/counter-slide-over.stories.js.map +1 -0
  54. package/dist/offer/facts-card.d.ts +32 -0
  55. package/dist/offer/facts-card.d.ts.map +1 -0
  56. package/dist/offer/facts-card.js +87 -0
  57. package/dist/offer/facts-card.js.map +1 -0
  58. package/dist/offer/facts-card.stories.d.ts +25 -0
  59. package/dist/offer/facts-card.stories.d.ts.map +1 -0
  60. package/dist/offer/facts-card.stories.js +177 -0
  61. package/dist/offer/facts-card.stories.js.map +1 -0
  62. package/dist/offer/index.d.ts +39 -0
  63. package/dist/offer/index.d.ts.map +1 -1
  64. package/dist/offer/index.js +21 -0
  65. package/dist/offer/index.js.map +1 -1
  66. package/dist/offer/inline-counter-form.d.ts +16 -0
  67. package/dist/offer/inline-counter-form.d.ts.map +1 -1
  68. package/dist/offer/inline-counter-form.js +8 -0
  69. package/dist/offer/inline-counter-form.js.map +1 -1
  70. package/dist/offer/match-compatibility-card.d.ts +16 -0
  71. package/dist/offer/match-compatibility-card.d.ts.map +1 -0
  72. package/dist/offer/match-compatibility-card.js +27 -0
  73. package/dist/offer/match-compatibility-card.js.map +1 -0
  74. package/dist/offer/match-compatibility-card.stories.d.ts +19 -0
  75. package/dist/offer/match-compatibility-card.stories.d.ts.map +1 -0
  76. package/dist/offer/match-compatibility-card.stories.js +111 -0
  77. package/dist/offer/match-compatibility-card.stories.js.map +1 -0
  78. package/dist/offer/match-glyph.d.ts +14 -0
  79. package/dist/offer/match-glyph.d.ts.map +1 -0
  80. package/dist/offer/match-glyph.js +40 -0
  81. package/dist/offer/match-glyph.js.map +1 -0
  82. package/dist/offer/match-glyph.stories.d.ts +26 -0
  83. package/dist/offer/match-glyph.stories.d.ts.map +1 -0
  84. package/dist/offer/match-glyph.stories.js +26 -0
  85. package/dist/offer/match-glyph.stories.js.map +1 -0
  86. package/dist/offer/match-headline-bar.d.ts +11 -0
  87. package/dist/offer/match-headline-bar.d.ts.map +1 -0
  88. package/dist/offer/match-headline-bar.js +28 -0
  89. package/dist/offer/match-headline-bar.js.map +1 -0
  90. package/dist/offer/match-headline-bar.stories.d.ts +17 -0
  91. package/dist/offer/match-headline-bar.stories.d.ts.map +1 -0
  92. package/dist/offer/match-headline-bar.stories.js +39 -0
  93. package/dist/offer/match-headline-bar.stories.js.map +1 -0
  94. package/dist/offer/match-preview.d.ts +18 -0
  95. package/dist/offer/match-preview.d.ts.map +1 -0
  96. package/dist/offer/match-preview.js +13 -0
  97. package/dist/offer/match-preview.js.map +1 -0
  98. package/dist/offer/match-preview.stories.d.ts +18 -0
  99. package/dist/offer/match-preview.stories.d.ts.map +1 -0
  100. package/dist/offer/match-preview.stories.js +103 -0
  101. package/dist/offer/match-preview.stories.js.map +1 -0
  102. package/dist/offer/negotiation-section.d.ts +11 -0
  103. package/dist/offer/negotiation-section.d.ts.map +1 -0
  104. package/dist/offer/negotiation-section.js +99 -0
  105. package/dist/offer/negotiation-section.js.map +1 -0
  106. package/dist/offer/negotiation-section.stories.d.ts +18 -0
  107. package/dist/offer/negotiation-section.stories.d.ts.map +1 -0
  108. package/dist/offer/negotiation-section.stories.js +156 -0
  109. package/dist/offer/negotiation-section.stories.js.map +1 -0
  110. package/dist/offer/new-activity-pill.d.ts +7 -0
  111. package/dist/offer/new-activity-pill.d.ts.map +1 -0
  112. package/dist/offer/new-activity-pill.js +8 -0
  113. package/dist/offer/new-activity-pill.js.map +1 -0
  114. package/dist/offer/new-activity-pill.stories.d.ts +17 -0
  115. package/dist/offer/new-activity-pill.stories.d.ts.map +1 -0
  116. package/dist/offer/new-activity-pill.stories.js +22 -0
  117. package/dist/offer/new-activity-pill.stories.js.map +1 -0
  118. package/dist/offer/offer-document.d.ts +33 -0
  119. package/dist/offer/offer-document.d.ts.map +1 -0
  120. package/dist/offer/offer-document.js +125 -0
  121. package/dist/offer/offer-document.js.map +1 -0
  122. package/dist/offer/offer-document.stories.d.ts +25 -0
  123. package/dist/offer/offer-document.stories.d.ts.map +1 -0
  124. package/dist/offer/offer-document.stories.js +168 -0
  125. package/dist/offer/offer-document.stories.js.map +1 -0
  126. package/dist/offer/offer-export-button.d.ts +8 -0
  127. package/dist/offer/offer-export-button.d.ts.map +1 -0
  128. package/dist/offer/offer-export-button.js +11 -0
  129. package/dist/offer/offer-export-button.js.map +1 -0
  130. package/dist/offer/offer-export-button.stories.d.ts +15 -0
  131. package/dist/offer/offer-export-button.stories.d.ts.map +1 -0
  132. package/dist/offer/offer-export-button.stories.js +11 -0
  133. package/dist/offer/offer-export-button.stories.js.map +1 -0
  134. package/dist/offer/offer-product-card.d.ts +32 -0
  135. package/dist/offer/offer-product-card.d.ts.map +1 -0
  136. package/dist/offer/offer-product-card.js +10 -0
  137. package/dist/offer/offer-product-card.js.map +1 -0
  138. package/dist/offer/offer-product-card.stories.d.ts +16 -0
  139. package/dist/offer/offer-product-card.stories.d.ts.map +1 -0
  140. package/dist/offer/offer-product-card.stories.js +40 -0
  141. package/dist/offer/offer-product-card.stories.js.map +1 -0
  142. package/dist/offer/opportunity-card.d.ts +16 -0
  143. package/dist/offer/opportunity-card.d.ts.map +1 -0
  144. package/dist/offer/opportunity-card.js +9 -0
  145. package/dist/offer/opportunity-card.js.map +1 -0
  146. package/dist/offer/opportunity-card.stories.d.ts +16 -0
  147. package/dist/offer/opportunity-card.stories.d.ts.map +1 -0
  148. package/dist/offer/opportunity-card.stories.js +33 -0
  149. package/dist/offer/opportunity-card.stories.js.map +1 -0
  150. package/dist/offer/parties-card.d.ts +11 -0
  151. package/dist/offer/parties-card.d.ts.map +1 -0
  152. package/dist/offer/parties-card.js +14 -0
  153. package/dist/offer/parties-card.js.map +1 -0
  154. package/dist/offer/parties-card.stories.d.ts +17 -0
  155. package/dist/offer/parties-card.stories.d.ts.map +1 -0
  156. package/dist/offer/parties-card.stories.js +37 -0
  157. package/dist/offer/parties-card.stories.js.map +1 -0
  158. package/dist/offer/terms-card.d.ts +17 -0
  159. package/dist/offer/terms-card.d.ts.map +1 -0
  160. package/dist/offer/terms-card.js +50 -0
  161. package/dist/offer/terms-card.js.map +1 -0
  162. package/dist/offer/terms-card.stories.d.ts +17 -0
  163. package/dist/offer/terms-card.stories.d.ts.map +1 -0
  164. package/dist/offer/terms-card.stories.js +42 -0
  165. package/dist/offer/terms-card.stories.js.map +1 -0
  166. package/dist/offer/timeline-event.d.ts +12 -0
  167. package/dist/offer/timeline-event.d.ts.map +1 -0
  168. package/dist/offer/timeline-event.js +57 -0
  169. package/dist/offer/timeline-event.js.map +1 -0
  170. package/dist/offer/timeline-event.stories.d.ts +21 -0
  171. package/dist/offer/timeline-event.stories.d.ts.map +1 -0
  172. package/dist/offer/timeline-event.stories.js +57 -0
  173. package/dist/offer/timeline-event.stories.js.map +1 -0
  174. package/dist/offer/types.d.ts +118 -0
  175. package/dist/offer/types.d.ts.map +1 -1
  176. package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.d.ts +2 -0
  177. package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.d.ts.map +1 -0
  178. package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.js +40 -0
  179. package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.js.map +1 -0
  180. package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.d.ts +2 -0
  181. package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.d.ts.map +1 -0
  182. package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.js +31 -0
  183. package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.js.map +1 -0
  184. package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.d.ts +2 -0
  185. package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.d.ts.map +1 -0
  186. package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.js +42 -0
  187. package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.js.map +1 -0
  188. package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.d.ts +2 -0
  189. package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.d.ts.map +1 -0
  190. package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.js +59 -0
  191. package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.js.map +1 -0
  192. package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.d.ts +2 -0
  193. package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.d.ts.map +1 -0
  194. package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.js +54 -0
  195. package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.js.map +1 -0
  196. package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.d.ts +2 -0
  197. package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.d.ts.map +1 -0
  198. package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.js +40 -0
  199. package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.js.map +1 -0
  200. package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.d.ts +2 -0
  201. package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.d.ts.map +1 -0
  202. package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.js +40 -0
  203. package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.js.map +1 -0
  204. package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.d.ts +2 -0
  205. package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.d.ts.map +1 -0
  206. package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.js +74 -0
  207. package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.js.map +1 -0
  208. package/dist/opportunities/__tests__/opportunity-celebration.test.d.ts +2 -0
  209. package/dist/opportunities/__tests__/opportunity-celebration.test.d.ts.map +1 -0
  210. package/dist/opportunities/__tests__/opportunity-celebration.test.js +46 -0
  211. package/dist/opportunities/__tests__/opportunity-celebration.test.js.map +1 -0
  212. package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.d.ts +2 -0
  213. package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.d.ts.map +1 -0
  214. package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.js +77 -0
  215. package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.js.map +1 -0
  216. package/dist/opportunities/__tests__/opportunity-filter-bar.test.d.ts +2 -0
  217. package/dist/opportunities/__tests__/opportunity-filter-bar.test.d.ts.map +1 -0
  218. package/dist/opportunities/__tests__/opportunity-filter-bar.test.js +107 -0
  219. package/dist/opportunities/__tests__/opportunity-filter-bar.test.js.map +1 -0
  220. package/dist/opportunities/__tests__/opportunity-reopen-button.test.d.ts +2 -0
  221. package/dist/opportunities/__tests__/opportunity-reopen-button.test.d.ts.map +1 -0
  222. package/dist/opportunities/__tests__/opportunity-reopen-button.test.js +29 -0
  223. package/dist/opportunities/__tests__/opportunity-reopen-button.test.js.map +1 -0
  224. package/dist/opportunities/__tests__/opportunity-republish-button.test.d.ts +2 -0
  225. package/dist/opportunities/__tests__/opportunity-republish-button.test.d.ts.map +1 -0
  226. package/dist/opportunities/__tests__/opportunity-republish-button.test.js +29 -0
  227. package/dist/opportunities/__tests__/opportunity-republish-button.test.js.map +1 -0
  228. package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.d.ts +2 -0
  229. package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.d.ts.map +1 -0
  230. package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.js +19 -0
  231. package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.js.map +1 -0
  232. package/dist/opportunities/__tests__/opportunity-view-offers-button.test.d.ts +2 -0
  233. package/dist/opportunities/__tests__/opportunity-view-offers-button.test.d.ts.map +1 -0
  234. package/dist/opportunities/__tests__/opportunity-view-offers-button.test.js +23 -0
  235. package/dist/opportunities/__tests__/opportunity-view-offers-button.test.js.map +1 -0
  236. package/dist/opportunities/index.d.ts +51 -1
  237. package/dist/opportunities/index.d.ts.map +1 -1
  238. package/dist/opportunities/index.js +35 -0
  239. package/dist/opportunities/index.js.map +1 -1
  240. package/dist/opportunities/opportunities-table.d.ts +4 -0
  241. package/dist/opportunities/opportunities-table.d.ts.map +1 -1
  242. package/dist/opportunities/opportunities-table.js +4 -0
  243. package/dist/opportunities/opportunities-table.js.map +1 -1
  244. package/dist/opportunities/opportunity-add-to-journey-button.d.ts +12 -0
  245. package/dist/opportunities/opportunity-add-to-journey-button.d.ts.map +1 -0
  246. package/dist/opportunities/opportunity-add-to-journey-button.js +42 -0
  247. package/dist/opportunities/opportunity-add-to-journey-button.js.map +1 -0
  248. package/dist/opportunities/opportunity-card-actions-menu.d.ts +9 -0
  249. package/dist/opportunities/opportunity-card-actions-menu.d.ts.map +1 -0
  250. package/dist/opportunities/opportunity-card-actions-menu.js +33 -0
  251. package/dist/opportunities/opportunity-card-actions-menu.js.map +1 -0
  252. package/dist/opportunities/opportunity-card-actions-menu.stories.d.ts +14 -0
  253. package/dist/opportunities/opportunity-card-actions-menu.stories.d.ts.map +1 -0
  254. package/dist/opportunities/opportunity-card-actions-menu.stories.js +12 -0
  255. package/dist/opportunities/opportunity-card-actions-menu.stories.js.map +1 -0
  256. package/dist/opportunities/opportunity-celebration.d.ts +8 -0
  257. package/dist/opportunities/opportunity-celebration.d.ts.map +1 -0
  258. package/dist/opportunities/opportunity-celebration.js +17 -0
  259. package/dist/opportunities/opportunity-celebration.js.map +1 -0
  260. package/dist/opportunities/opportunity-celebration.stories.d.ts +17 -0
  261. package/dist/opportunities/opportunity-celebration.stories.d.ts.map +1 -0
  262. package/dist/opportunities/opportunity-celebration.stories.js +30 -0
  263. package/dist/opportunities/opportunity-celebration.stories.js.map +1 -0
  264. package/dist/opportunities/opportunity-filter-bar-drawer.d.ts +10 -0
  265. package/dist/opportunities/opportunity-filter-bar-drawer.d.ts.map +1 -0
  266. package/dist/opportunities/opportunity-filter-bar-drawer.js +54 -0
  267. package/dist/opportunities/opportunity-filter-bar-drawer.js.map +1 -0
  268. package/dist/opportunities/opportunity-filter-bar.d.ts +14 -0
  269. package/dist/opportunities/opportunity-filter-bar.d.ts.map +1 -0
  270. package/dist/opportunities/opportunity-filter-bar.js +65 -0
  271. package/dist/opportunities/opportunity-filter-bar.js.map +1 -0
  272. package/dist/opportunities/opportunity-filter-bar.stories.d.ts +25 -0
  273. package/dist/opportunities/opportunity-filter-bar.stories.d.ts.map +1 -0
  274. package/dist/opportunities/opportunity-filter-bar.stories.js +63 -0
  275. package/dist/opportunities/opportunity-filter-bar.stories.js.map +1 -0
  276. package/dist/opportunities/opportunity-reopen-button.d.ts +11 -0
  277. package/dist/opportunities/opportunity-reopen-button.d.ts.map +1 -0
  278. package/dist/opportunities/opportunity-reopen-button.js +20 -0
  279. package/dist/opportunities/opportunity-reopen-button.js.map +1 -0
  280. package/dist/opportunities/opportunity-republish-button.d.ts +7 -0
  281. package/dist/opportunities/opportunity-republish-button.d.ts.map +1 -0
  282. package/dist/opportunities/opportunity-republish-button.js +14 -0
  283. package/dist/opportunities/opportunity-republish-button.js.map +1 -0
  284. package/dist/opportunities/opportunity-resume-draft-button.d.ts +7 -0
  285. package/dist/opportunities/opportunity-resume-draft-button.d.ts.map +1 -0
  286. package/dist/opportunities/opportunity-resume-draft-button.js +7 -0
  287. package/dist/opportunities/opportunity-resume-draft-button.js.map +1 -0
  288. package/dist/opportunities/opportunity-stacked-list.d.ts.map +1 -1
  289. package/dist/opportunities/opportunity-stacked-list.js +3 -1
  290. package/dist/opportunities/opportunity-stacked-list.js.map +1 -1
  291. package/dist/opportunities/opportunity-view-offers-button.d.ts +7 -0
  292. package/dist/opportunities/opportunity-view-offers-button.d.ts.map +1 -0
  293. package/dist/opportunities/opportunity-view-offers-button.js +8 -0
  294. package/dist/opportunities/opportunity-view-offers-button.js.map +1 -0
  295. package/dist/opportunities/two-column-section.d.ts.map +1 -1
  296. package/dist/opportunities/two-column-section.js +4 -3
  297. package/dist/opportunities/two-column-section.js.map +1 -1
  298. package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.d.ts +2 -0
  299. package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.d.ts.map +1 -0
  300. package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.js +53 -0
  301. package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.js.map +1 -0
  302. package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.d.ts +2 -0
  303. package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.d.ts.map +1 -0
  304. package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.js +32 -0
  305. package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.js.map +1 -0
  306. package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.d.ts +2 -0
  307. package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.d.ts.map +1 -0
  308. package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.js +127 -0
  309. package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.js.map +1 -0
  310. package/dist/opportunities/wizard/__tests__/step-opportunities.test.d.ts +2 -0
  311. package/dist/opportunities/wizard/__tests__/step-opportunities.test.d.ts.map +1 -0
  312. package/dist/opportunities/wizard/__tests__/step-opportunities.test.js +93 -0
  313. package/dist/opportunities/wizard/__tests__/step-opportunities.test.js.map +1 -0
  314. package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.d.ts +2 -0
  315. package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.d.ts.map +1 -0
  316. package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.js +141 -0
  317. package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.js.map +1 -0
  318. package/dist/opportunities/wizard/__tests__/step-review.test.d.ts +2 -0
  319. package/dist/opportunities/wizard/__tests__/step-review.test.d.ts.map +1 -0
  320. package/dist/opportunities/wizard/__tests__/step-review.test.js +80 -0
  321. package/dist/opportunities/wizard/__tests__/step-review.test.js.map +1 -0
  322. package/dist/opportunities/wizard/__tests__/step-tender-basics.test.d.ts +2 -0
  323. package/dist/opportunities/wizard/__tests__/step-tender-basics.test.d.ts.map +1 -0
  324. package/dist/opportunities/wizard/__tests__/step-tender-basics.test.js +76 -0
  325. package/dist/opportunities/wizard/__tests__/step-tender-basics.test.js.map +1 -0
  326. package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.d.ts +2 -0
  327. package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.d.ts.map +1 -0
  328. package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.js +192 -0
  329. package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.js.map +1 -0
  330. package/dist/opportunities/wizard/__tests__/wizard-stepper.test.d.ts +2 -0
  331. package/dist/opportunities/wizard/__tests__/wizard-stepper.test.d.ts.map +1 -0
  332. package/dist/opportunities/wizard/__tests__/wizard-stepper.test.js +61 -0
  333. package/dist/opportunities/wizard/__tests__/wizard-stepper.test.js.map +1 -0
  334. package/dist/opportunities/wizard/opportunity-wizard.d.ts +29 -0
  335. package/dist/opportunities/wizard/opportunity-wizard.d.ts.map +1 -0
  336. package/dist/opportunities/wizard/opportunity-wizard.js +196 -0
  337. package/dist/opportunities/wizard/opportunity-wizard.js.map +1 -0
  338. package/dist/opportunities/wizard/opportunity-wizard.stories.d.ts +12 -0
  339. package/dist/opportunities/wizard/opportunity-wizard.stories.d.ts.map +1 -0
  340. package/dist/opportunities/wizard/opportunity-wizard.stories.js +49 -0
  341. package/dist/opportunities/wizard/opportunity-wizard.stories.js.map +1 -0
  342. package/dist/opportunities/wizard/step-opportunities.d.ts +9 -0
  343. package/dist/opportunities/wizard/step-opportunities.d.ts.map +1 -0
  344. package/dist/opportunities/wizard/step-opportunities.js +80 -0
  345. package/dist/opportunities/wizard/step-opportunities.js.map +1 -0
  346. package/dist/opportunities/wizard/step-pricing-timeline.d.ts +9 -0
  347. package/dist/opportunities/wizard/step-pricing-timeline.d.ts.map +1 -0
  348. package/dist/opportunities/wizard/step-pricing-timeline.js +64 -0
  349. package/dist/opportunities/wizard/step-pricing-timeline.js.map +1 -0
  350. package/dist/opportunities/wizard/step-review.d.ts +9 -0
  351. package/dist/opportunities/wizard/step-review.d.ts.map +1 -0
  352. package/dist/opportunities/wizard/step-review.js +34 -0
  353. package/dist/opportunities/wizard/step-review.js.map +1 -0
  354. package/dist/opportunities/wizard/step-tender-basics.d.ts +16 -0
  355. package/dist/opportunities/wizard/step-tender-basics.d.ts.map +1 -0
  356. package/dist/opportunities/wizard/step-tender-basics.js +39 -0
  357. package/dist/opportunities/wizard/step-tender-basics.js.map +1 -0
  358. package/dist/opportunities/wizard/use-wizard-draft.d.ts +41 -0
  359. package/dist/opportunities/wizard/use-wizard-draft.d.ts.map +1 -0
  360. package/dist/opportunities/wizard/use-wizard-draft.js +214 -0
  361. package/dist/opportunities/wizard/use-wizard-draft.js.map +1 -0
  362. package/dist/opportunities/wizard/wizard-stepper.d.ts +20 -0
  363. package/dist/opportunities/wizard/wizard-stepper.d.ts.map +1 -0
  364. package/dist/opportunities/wizard/wizard-stepper.js +26 -0
  365. package/dist/opportunities/wizard/wizard-stepper.js.map +1 -0
  366. package/dist/opportunities/wizard/wizard-stepper.stories.d.ts +22 -0
  367. package/dist/opportunities/wizard/wizard-stepper.stories.d.ts.map +1 -0
  368. package/dist/opportunities/wizard/wizard-stepper.stories.js +47 -0
  369. package/dist/opportunities/wizard/wizard-stepper.stories.js.map +1 -0
  370. package/dist/opportunities/wizard/wizard.types.d.ts +176 -0
  371. package/dist/opportunities/wizard/wizard.types.d.ts.map +1 -0
  372. package/dist/opportunities/wizard/wizard.types.js +62 -0
  373. package/dist/opportunities/wizard/wizard.types.js.map +1 -0
  374. package/package.json +13 -4
  375. package/src/offer/offer-document.print.css +72 -0
@@ -0,0 +1,40 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { AlertTriangle, Check, Minus, Slash, X } from "lucide-react";
3
+ import { cn } from "../lib/utils";
4
+ const CONFIG = {
5
+ ok: {
6
+ Icon: Check,
7
+ tone: "text-emerald-600 dark:text-emerald-400",
8
+ ariaWord: "ok",
9
+ },
10
+ partial: {
11
+ Icon: AlertTriangle,
12
+ tone: "text-amber-600 dark:text-amber-400",
13
+ ariaWord: "partial",
14
+ },
15
+ miss: {
16
+ Icon: X,
17
+ tone: "text-rose-600 dark:text-rose-400",
18
+ ariaWord: "miss",
19
+ },
20
+ not_specified: {
21
+ Icon: Minus,
22
+ tone: "text-muted-foreground",
23
+ ariaWord: "not specified",
24
+ },
25
+ n_a: {
26
+ Icon: Slash,
27
+ tone: "text-muted-foreground",
28
+ ariaWord: "not applicable",
29
+ },
30
+ };
31
+ /**
32
+ * Non-color glyph for a match criterion state.
33
+ * Always exposes the state via aria-label so color-blind users and screen
34
+ * readers receive the same information.
35
+ */
36
+ export function MatchGlyph({ state, label, className }) {
37
+ const { Icon, tone, ariaWord } = CONFIG[state];
38
+ return (_jsxs("span", { role: "img", "aria-label": label ? `${label} — ${ariaWord}` : ariaWord, className: cn("inline-flex items-center gap-1.5 text-sm/6", tone, className), children: [_jsx(Icon, { "aria-hidden": true, className: "size-4 shrink-0" }), label && _jsx("span", { className: "font-medium", children: label })] }));
39
+ }
40
+ //# sourceMappingURL=match-glyph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-glyph.js","sourceRoot":"","sources":["../../src/offer/match-glyph.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAUlC,MAAM,MAAM,GAGR;IACF,EAAE,EAAE;QACF,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,wCAAwC;QAC9C,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;QACP,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,oCAAoC;QAC1C,QAAQ,EAAE,SAAS;KACpB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC;QACP,IAAI,EAAE,kCAAkC;QACxC,QAAQ,EAAE,MAAM;KACjB;IACD,aAAa,EAAE;QACb,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,uBAAuB;QAC7B,QAAQ,EAAE,eAAe;KAC1B;IACD,GAAG,EAAE;QACH,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,uBAAuB;QAC7B,QAAQ,EAAE,gBAAgB;KAC3B;CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAmB;IACrE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/C,OAAO,CACL,gBACE,IAAI,EAAC,KAAK,gBACE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,MAAM,QAAQ,EAAE,CAAC,CAAC,CAAC,QAAQ,EACvD,SAAS,EAAE,EAAE,CAAC,4CAA4C,EAAE,IAAI,EAAE,SAAS,CAAC,aAE5E,KAAC,IAAI,yBAAa,SAAS,EAAC,iBAAiB,GAAG,EAC/C,KAAK,IAAI,eAAM,SAAS,EAAC,aAAa,YAAE,KAAK,GAAQ,IACjD,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { MatchGlyph } from "./match-glyph";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof MatchGlyph;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ argTypes: {
11
+ state: {
12
+ control: "select";
13
+ options: string[];
14
+ };
15
+ };
16
+ };
17
+ export default meta;
18
+ type Story = StoryObj<typeof meta>;
19
+ export declare const Default: Story;
20
+ export declare const Ok: Story;
21
+ export declare const Partial: Story;
22
+ export declare const Miss: Story;
23
+ export declare const NotSpecified: Story;
24
+ export declare const NA: Story;
25
+ export declare const AllStates: Story;
26
+ //# sourceMappingURL=match-glyph.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-glyph.stories.d.ts","sourceRoot":"","sources":["../../src/offer/match-glyph.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAA,MAAM,IAAI;;;;;;;;;;;;;CAWyB,CAAC;AAEpC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAiC,CAAC;AACxD,eAAO,MAAM,EAAE,EAAE,KAAiC,CAAC;AACnD,eAAO,MAAM,OAAO,EAAE,KAAsC,CAAC;AAC7D,eAAO,MAAM,IAAI,EAAE,KAAmC,CAAC;AACvD,eAAO,MAAM,YAAY,EAAE,KAA4C,CAAC;AACxE,eAAO,MAAM,EAAE,EAAE,KAAkC,CAAC;AAEpD,eAAO,MAAM,SAAS,EAAE,KAWvB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { MatchGlyph } from "./match-glyph";
3
+ const meta = {
4
+ title: "Offer/MatchGlyph",
5
+ component: MatchGlyph,
6
+ tags: ["autodocs"],
7
+ parameters: { layout: "centered" },
8
+ argTypes: {
9
+ state: {
10
+ control: "select",
11
+ options: ["ok", "partial", "miss", "not_specified", "n_a"],
12
+ },
13
+ },
14
+ };
15
+ export default meta;
16
+ export const Default = { args: { state: "ok" } };
17
+ export const Ok = { args: { state: "ok" } };
18
+ export const Partial = { args: { state: "partial" } };
19
+ export const Miss = { args: { state: "miss" } };
20
+ export const NotSpecified = { args: { state: "not_specified" } };
21
+ export const NA = { args: { state: "n_a" } };
22
+ export const AllStates = {
23
+ args: { state: "ok" },
24
+ render: () => (_jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [_jsx(MatchGlyph, { state: "ok", label: "Ok" }), _jsx(MatchGlyph, { state: "partial", label: "Partial" }), _jsx(MatchGlyph, { state: "miss", label: "Miss" }), _jsx(MatchGlyph, { state: "not_specified", label: "Not specified" }), _jsx(MatchGlyph, { state: "n_a", label: "N/A" })] })),
25
+ };
26
+ //# sourceMappingURL=match-glyph.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-glyph.stories.js","sourceRoot":"","sources":["../../src/offer/match-glyph.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;IAClC,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE,QAAQ;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IAClC,CACP;CACF,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { MatchHeadline } from "./types";
2
+ export interface MatchHeadlineBarProps {
3
+ state: MatchHeadline;
4
+ summary: string;
5
+ count: number;
6
+ expanded?: boolean;
7
+ onToggleExpand?: () => void;
8
+ className?: string;
9
+ }
10
+ export declare function MatchHeadlineBar({ state, summary, count, expanded, onToggleExpand, className, }: MatchHeadlineBarProps): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=match-headline-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-headline-bar.d.ts","sourceRoot":"","sources":["../../src/offer/match-headline-bar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA0BD,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAgB,EAChB,cAAc,EACd,SAAS,GACV,EAAE,qBAAqB,2CAmCvB"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ChevronDown, ChevronUp } from "lucide-react";
3
+ import { cn } from "../lib/utils";
4
+ import { MatchGlyph } from "./match-glyph";
5
+ const STATE_STYLES = {
6
+ strong: {
7
+ wrapper: "border-emerald-200 bg-emerald-50 text-emerald-900 dark:border-emerald-900 dark:bg-emerald-950 dark:text-emerald-50",
8
+ label: "Strong match",
9
+ },
10
+ partial: {
11
+ wrapper: "border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-50",
12
+ label: "Partial match",
13
+ },
14
+ miss: {
15
+ wrapper: "border-rose-200 bg-rose-50 text-rose-900 dark:border-rose-900 dark:bg-rose-950 dark:text-rose-50",
16
+ label: "Miss",
17
+ },
18
+ };
19
+ const HEADLINE_TO_GLYPH_STATE = {
20
+ strong: "ok",
21
+ partial: "partial",
22
+ miss: "miss",
23
+ };
24
+ export function MatchHeadlineBar({ state, summary, count, expanded = false, onToggleExpand, className, }) {
25
+ const styles = STATE_STYLES[state];
26
+ return (_jsxs("div", { role: "region", "aria-label": `${styles.label}: ${summary}`, className: cn("flex items-center gap-3 rounded-xl border px-4 py-3", styles.wrapper, className), children: [_jsx(MatchGlyph, { state: HEADLINE_TO_GLYPH_STATE[state] }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "text-sm/6 font-semibold", children: styles.label }), _jsx("div", { className: "text-xs/5 opacity-90", children: summary })] }), _jsxs("div", { className: "shrink-0 text-xs opacity-80", children: [count, " checks"] }), onToggleExpand && (_jsx("button", { type: "button", onClick: onToggleExpand, "aria-expanded": expanded, "aria-label": expanded ? "Hide match details" : "Show match details", className: "ml-1 flex size-8 items-center justify-center rounded-lg border border-current/10 hover:bg-current/10", children: expanded ? (_jsx(ChevronUp, { "aria-hidden": true, className: "size-4" })) : (_jsx(ChevronDown, { "aria-hidden": true, className: "size-4" })) }))] }));
27
+ }
28
+ //# sourceMappingURL=match-headline-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-headline-bar.js","sourceRoot":"","sources":["../../src/offer/match-headline-bar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAY3C,MAAM,YAAY,GAA8D;IAC9E,MAAM,EAAE;QACN,OAAO,EACL,oHAAoH;QACtH,KAAK,EAAE,cAAc;KACtB;IACD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,CAAC;AACJ,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { MatchHeadlineBar } from "./match-headline-bar";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof MatchHeadlineBar;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Strong: Story;
14
+ export declare const Partial: Story;
15
+ export declare const Miss: Story;
16
+ export declare const Expanded: Story;
17
+ //# sourceMappingURL=match-headline-bar.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-headline-bar.stories.d.ts","sourceRoot":"","sources":["../../src/offer/match-headline-bar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,QAAA,MAAM,IAAI;;;;;;;CAK+B,CAAC;AAE1C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAMlB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC"}
@@ -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,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,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C,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,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,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a,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"}