@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
@@ -1,6 +1,10 @@
1
1
  export { OfferStatusBadge } from "./offer-status-badge";
2
2
  export type { OfferStatusBadgeProps } from "./offer-status-badge";
3
3
  export { NegotiationEventCard } from "../chat/negotiation-event-card";
4
+ /**
5
+ * @deprecated since 0.18.0 — prefer `CounterSlideOver`. See
6
+ * `inline-counter-form.tsx` JSDoc for the migration path.
7
+ */
4
8
  export { InlineCounterForm } from "./inline-counter-form";
5
9
  export type { InlineCounterFormProps } from "./inline-counter-form";
6
10
  export { ConfirmActionDialog } from "./confirm-action-dialog";
@@ -8,6 +12,7 @@ export type { ConfirmActionDialogProps } from "./confirm-action-dialog";
8
12
  export { AttachmentsFolder } from "./attachments-folder";
9
13
  export type { AttachmentsFolderProps } from "./attachments-folder";
10
14
  export type { OfferResponseThread, OfferResponseInput, TranslationFn, AttachmentMetadata, OfferActionType, } from "./types";
15
+ export type * from "./types";
11
16
  export { BeverageDetails } from "./beverage-details";
12
17
  export type { BeverageDetailsProps } from "./beverage-details";
13
18
  export { SensoryProfile } from "./sensory-profile";
@@ -24,6 +29,40 @@ export { OfferDetailHeader } from "./offer-detail-header";
24
29
  export type { OfferDetailHeaderProps } from "./offer-detail-header";
25
30
  export { OfferDetailTabs } from "./offer-detail-tabs";
26
31
  export type { OfferDetailTabsProps, OfferTab } from "./offer-detail-tabs";
32
+ export { MatchGlyph } from "./match-glyph";
33
+ export type { MatchGlyphProps } from "./match-glyph";
34
+ export { MatchHeadlineBar } from "./match-headline-bar";
35
+ export type { MatchHeadlineBarProps } from "./match-headline-bar";
36
+ export { FactsCard } from "./facts-card";
37
+ export type { FactsCardProps, FactsCardStatus } from "./facts-card";
38
+ export { PartiesCard } from "./parties-card";
39
+ export type { PartiesCardProps } from "./parties-card";
40
+ export { OpportunityCard } from "./opportunity-card";
41
+ export type { OpportunityCardProps, OpportunityCardData } from "./opportunity-card";
42
+ export { OfferProductCard } from "./offer-product-card";
43
+ export type { OfferProductCardProps, OfferProductVariant, OfferProductBeverage, } from "./offer-product-card";
44
+ export { TermsCard } from "./terms-card";
45
+ export type { TermsCardProps } from "./terms-card";
46
+ export { MatchCompatibilityCard } from "./match-compatibility-card";
47
+ export type { MatchCompatibilityCardProps } from "./match-compatibility-card";
48
+ export { MatchPreview } from "./match-preview";
49
+ export type { MatchPreviewProps } from "./match-preview";
50
+ export { BuyerNotesCard } from "./buyer-notes-card";
51
+ export type { BuyerNotesCardProps } from "./buyer-notes-card";
52
+ export { AttachmentsCard } from "./attachments-card";
53
+ export type { AttachmentsCardProps } from "./attachments-card";
54
+ export { TimelineEvent } from "./timeline-event";
55
+ export type { TimelineEventProps } from "./timeline-event";
56
+ export { NewActivityPill } from "./new-activity-pill";
57
+ export type { NewActivityPillProps } from "./new-activity-pill";
58
+ export { CounterSlideOver } from "./counter-slide-over";
59
+ export type { CounterSlideOverProps, CounterBanner, CounterDraft } from "./counter-slide-over";
60
+ export { NegotiationSection } from "./negotiation-section";
61
+ export type { NegotiationSectionProps } from "./negotiation-section";
62
+ export { OfferExportButton } from "./offer-export-button";
63
+ export type { OfferExportButtonProps } from "./offer-export-button";
64
+ export { OfferDocument } from "./offer-document";
65
+ export type { OfferDocumentProps, OfferDocumentAction } from "./offer-document";
27
66
  export { ImporterPickerModal, type ImporterPickerModalProps, type ImporterPickerImporter, type ImporterPickerMode, } from "../components/importer-picker-modal";
28
67
  export { OffersSentPanel, type OffersSentPanelProps, type OfferBranch, } from "../components/branch-overview-panel";
29
68
  export { FinalizeDealModal, type FinalizeDealModalProps, type FinalizeDealTerm, type FinalizeDealClosedBranch, } from "../components/branch-resolution-modal";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/offer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAKlE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,YAAY,EAAE,sBAAsB,EAAE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C,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,GAC9B,MAAM,uCAAuC,CAAC"}
@@ -4,6 +4,10 @@ export { OfferStatusBadge } from "./offer-status-badge";
4
4
  // importing from @cellarnode/ui/chat and @cellarnode/ui/offer get the same
5
5
  // component — there is only one implementation.
6
6
  export { NegotiationEventCard } from "../chat/negotiation-event-card";
7
+ /**
8
+ * @deprecated since 0.18.0 — prefer `CounterSlideOver`. See
9
+ * `inline-counter-form.tsx` JSDoc for the migration path.
10
+ */
7
11
  export { InlineCounterForm } from "./inline-counter-form";
8
12
  export { ConfirmActionDialog } from "./confirm-action-dialog";
9
13
  export { AttachmentsFolder } from "./attachments-folder";
@@ -15,6 +19,23 @@ export { OpportunityRequirements } from "./opportunity-requirements";
15
19
  export { OfferDetailShell } from "./offer-detail-shell";
16
20
  export { OfferDetailHeader } from "./offer-detail-header";
17
21
  export { OfferDetailTabs } from "./offer-detail-tabs";
22
+ export { MatchGlyph } from "./match-glyph";
23
+ export { MatchHeadlineBar } from "./match-headline-bar";
24
+ export { FactsCard } from "./facts-card";
25
+ export { PartiesCard } from "./parties-card";
26
+ export { OpportunityCard } from "./opportunity-card";
27
+ export { OfferProductCard } from "./offer-product-card";
28
+ export { TermsCard } from "./terms-card";
29
+ export { MatchCompatibilityCard } from "./match-compatibility-card";
30
+ export { MatchPreview } from "./match-preview";
31
+ export { BuyerNotesCard } from "./buyer-notes-card";
32
+ export { AttachmentsCard } from "./attachments-card";
33
+ export { TimelineEvent } from "./timeline-event";
34
+ export { NewActivityPill } from "./new-activity-pill";
35
+ export { CounterSlideOver } from "./counter-slide-over";
36
+ export { NegotiationSection } from "./negotiation-section";
37
+ export { OfferExportButton } from "./offer-export-button";
38
+ export { OfferDocument } from "./offer-document";
18
39
  // ─── Offer-branching modals + slide-over (new in v0.10.x) ───────────────
19
40
  // Internal files use "branch" / "branch-overview" / "branch-resolution"
20
41
  // terminology — exports use the user-facing "offer" naming per the
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/offer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,kFAAkF;AAClF,6EAA6E;AAC7E,2EAA2E;AAC3E,gDAAgD;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AASzD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAGrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,2EAA2E;AAC3E,wEAAwE;AACxE,mEAAmE;AACnE,wBAAwB;AAExB,OAAO,EACL,mBAAmB,GAIpB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,eAAe,GAGhB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,iBAAiB,GAIlB,MAAM,uCAAuC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/offer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,kFAAkF;AAClF,6EAA6E;AAC7E,2EAA2E;AAC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rD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,2EAA2E;AAC3E,wEAAwE;AACxE,mEAAmE;AACnE,wBAAwB;AAExB,OAAO,EACL,mBAAmB,GAIpB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,eAAe,GAGhB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,iBAAiB,GAIlB,MAAM,uCAAuC,CAAC"}
@@ -1,4 +1,12 @@
1
1
  import type { OfferResponseInput, TranslationFn } from "./types";
2
+ /**
3
+ * @deprecated since 0.18.0 — use `CounterSlideOver` from `@cellarnode/ui/offer`
4
+ * for the unified offer page counter composer. `InlineCounterForm` is retained
5
+ * for existing inline / chat-bubble use cases where a slide-over is not
6
+ * desired. It will remain supported through 0.x; a removal window will be
7
+ * announced with 1.0. Consumers building NEW counter surfaces should prefer
8
+ * `CounterSlideOver`.
9
+ */
2
10
  export interface InlineCounterFormProps {
3
11
  offerId: string;
4
12
  defaultCurrency?: string | null;
@@ -15,5 +23,13 @@ export interface InlineCounterFormProps {
15
23
  /** Optional translation function; falls back to English defaults. */
16
24
  t?: TranslationFn;
17
25
  }
26
+ /**
27
+ * @deprecated since 0.18.0 — use `CounterSlideOver` from `@cellarnode/ui/offer`
28
+ * for the unified offer page counter composer. `InlineCounterForm` is retained
29
+ * for existing inline / chat-bubble use cases where a slide-over is not
30
+ * desired. It will remain supported through 0.x; a removal window will be
31
+ * announced with 1.0. Consumers building NEW counter surfaces should prefer
32
+ * `CounterSlideOver`.
33
+ */
18
34
  export declare function InlineCounterForm({ offerId, defaultCurrency, parentResponseId, onCancel, onSuccess, onSubmit, isSubmitting, t, }: InlineCounterFormProps): import("react/jsx-runtime").JSX.Element;
19
35
  //# sourceMappingURL=inline-counter-form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inline-counter-form.d.ts","sourceRoot":"","sources":["../../src/offer/inline-counter-form.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEjE,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;OAGG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,wCAAwC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qEAAqE;IACrE,CAAC,CAAC,EAAE,aAAa,CAAC;CACnB;AAID,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,YAAoB,EACpB,CAAY,GACb,EAAE,sBAAsB,2CA6MxB"}
1
+ {"version":3,"file":"inline-counter-form.d.ts","sourceRoot":"","sources":["../../src/offer/inline-counter-form.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;OAGG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,wCAAwC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qEAAqE;IACrE,CAAC,CAAC,EAAE,aAAa,CAAC;CACnB;AAID;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,YAAoB,EACpB,CAAY,GACb,EAAE,sBAAsB,2CA6MxB"}
@@ -11,6 +11,14 @@ import { ArrowLeftRight, ChevronDown, ChevronUp, Loader2 } from "lucide-react";
11
11
  import { COMMON_CURRENCIES } from "../lib/currencies";
12
12
  import { toneClass } from "../lib/semantic-tones";
13
13
  const defaultT = (_key, fallback) => fallback;
14
+ /**
15
+ * @deprecated since 0.18.0 — use `CounterSlideOver` from `@cellarnode/ui/offer`
16
+ * for the unified offer page counter composer. `InlineCounterForm` is retained
17
+ * for existing inline / chat-bubble use cases where a slide-over is not
18
+ * desired. It will remain supported through 0.x; a removal window will be
19
+ * announced with 1.0. Consumers building NEW counter surfaces should prefer
20
+ * `CounterSlideOver`.
21
+ */
14
22
  export function InlineCounterForm({ offerId, defaultCurrency, parentResponseId, onCancel, onSuccess, onSubmit, isSubmitting = false, t = defaultT, }) {
15
23
  const [price, setPrice] = useState("");
16
24
  const [currency, setCurrency] = useState(defaultCurrency ?? "EUR");
@@ -1 +1 @@
1
- {"version":3,"file":"inline-counter-form.js","sourceRoot":"","sources":["../../src/offer/inline-counter-form.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,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AC,GACzC,EACP,eAAK,SAAS,EAAC,YAAY,aACzB,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,OAAO,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,QAAQ,YAC9D,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,GACf,EACT,MAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,IAAI,EACT,QAAQ,EAAE,SAAS,EACnB,KAAK,EAAE;gDACL,UAAU,EAAE,mBAAmB;gDAC/B,KAAK,EAAE,sBAAsB;6CAC9B,aAEA,SAAS,IAAI,CACZ,KAAC,OAAO,IAAC,SAAS,EAAC,0BAA0B,GAAG,CACjD,EACA,CAAC,CAAC,aAAa,EAAE,cAAc,CAAC,IAC1B,IACL,IACF,IACK,CACd,GACe,IACb,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { MatchEvaluation, Perspective } from "./types";
2
+ export interface MatchCompatibilityCardProps {
3
+ evaluation: MatchEvaluation;
4
+ /**
5
+ * Viewer perspective. Color polarity on each criterion row still comes
6
+ * from the criterion's own `viewerAdvantage` field (blocker B3, spec
7
+ * §11) — the backend scopes advantage to the viewer. `perspective` here
8
+ * is informational: used to compose aria-labels ("Producer: price
9
+ * improved by 4.7%"), never to invert colour polarity. Consumers that
10
+ * only need headline colour can omit this prop.
11
+ */
12
+ perspective?: Perspective;
13
+ className?: string;
14
+ }
15
+ export declare function MatchCompatibilityCard({ evaluation, perspective, className, }: MatchCompatibilityCardProps): import("react/jsx-runtime").JSX.Element;
16
+ //# sourceMappingURL=match-compatibility-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-compatibility-card.d.ts","sourceRoot":"","sources":["../../src/offer/match-compatibility-card.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,eAAe,CAAC;IAC5B;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,sBAAsB,CAAC,EACrC,UAAU,EACV,WAAW,EACX,SAAS,GACV,EAAE,2BAA2B,2CA8F7B"}
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from "react";
3
+ import { cn } from "../lib/utils";
4
+ import { MatchGlyph } from "./match-glyph";
5
+ import { MatchHeadlineBar } from "./match-headline-bar";
6
+ export function MatchCompatibilityCard({ evaluation, perspective, className, }) {
7
+ const [expanded, setExpanded] = useState(evaluation.headline !== "strong");
8
+ const total = evaluation.criteria.length;
9
+ const exceptions = evaluation.criteria.filter((c) => c.state === "partial" || c.state === "miss");
10
+ const positives = evaluation.criteria.filter((c) => c.state === "ok" || c.state === "not_specified" || c.state === "n_a");
11
+ return (_jsxs("section", { "aria-labelledby": "match-heading", className: cn("space-y-3 rounded-2xl border border-border/60 bg-card p-4", className), children: [_jsx("h2", { id: "match-heading", className: "text-xs/5 font-semibold uppercase tracking-wide text-muted-foreground", children: "Match with tender" }), _jsx(MatchHeadlineBar, { state: evaluation.headline, summary: evaluation.headlineSummary, count: total, expanded: expanded, onToggleExpand: () => setExpanded((v) => !v) }), expanded && (_jsxs("div", { className: "space-y-3", children: [exceptions.length > 0 && (_jsx("ul", { className: "space-y-2", children: exceptions.map((c) => {
12
+ // Blocker B3 — per-criterion viewerAdvantage from the
13
+ // backend, not a page-level constant. Empty / neutral is
14
+ // the safe fallback when the evaluator omits it (e.g. the
15
+ // FX-unavailable degraded case, §6.6).
16
+ const advantageClass = c.viewerAdvantage === "improved"
17
+ ? "border-emerald-200 bg-emerald-50/60 dark:bg-emerald-950/30"
18
+ : c.viewerAdvantage === "worsened"
19
+ ? "border-rose-200 bg-rose-50/60 dark:bg-rose-950/30"
20
+ : "border-border/60 bg-muted/30";
21
+ const perspectiveLabel = perspective
22
+ ? `${perspective === "producer" ? "Producer" : "Importer"} view: `
23
+ : "";
24
+ return (_jsxs("li", { "aria-label": `${perspectiveLabel}${c.label} — ${c.state}${c.viewerAdvantage !== "neutral" ? `, ${c.viewerAdvantage}` : ""}`, className: cn("flex items-start justify-between gap-3 rounded-lg border p-3", advantageClass), children: [_jsxs("div", { className: "min-w-0", children: [_jsx("div", { className: "text-sm/6 font-medium", children: c.label }), c.reason && (_jsx("div", { className: "text-xs/5 text-muted-foreground", children: c.reason }))] }), _jsx(MatchGlyph, { state: c.state })] }, c.id));
25
+ }) })), positives.length > 0 && (_jsxs("div", { "aria-label": `${positives.length} additional checks passed or not applicable`, className: "flex flex-wrap gap-2", children: [_jsxs("span", { className: "rounded-full border border-border/60 bg-card px-3 py-1 text-xs font-medium text-muted-foreground", children: ["+", positives.length, " more"] }), positives.slice(0, 6).map((c) => (_jsxs("span", { className: "inline-flex items-center gap-1 rounded-full border border-border/60 bg-card px-2 py-1 text-xs", children: [_jsx(MatchGlyph, { state: c.state }), _jsx("span", { children: c.label })] }, c.id)))] })), evaluation.fx && (_jsxs("div", { className: "text-xs text-muted-foreground", children: ["Price converted via ", evaluation.fx.provider, " @ ", evaluation.fx.rate, " ", "(", evaluation.fx.base, " \u2192 ", evaluation.fx.quote, ")."] }))] }))] }));
26
+ }
27
+ //# sourceMappingURL=match-compatibility-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-compatibility-card.js","sourceRoot":"","sources":["../../src/offer/match-compatibility-card.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAiBxD,MAAM,UAAU,sBAAsB,CAAC,EACrC,UAAU,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AEzG,KAAC,UAAU,IAAC,KAAK,EAAE,CAAC,CAAC,KAAK,GAAI,EAC9B,yBAAO,CAAC,CAAC,KAAK,GAAQ,KAJjB,CAAC,CAAC,EAAE,CAKJ,CACR,CAAC,IACE,CACP,EACA,UAAU,CAAC,EAAE,IAAI,CAChB,eAAK,SAAS,EAAC,+BAA+B,qCACvB,UAAU,CAAC,EAAE,CAAC,QAAQ,SAAK,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,OACrE,UAAU,CAAC,EAAE,CAAC,IAAI,cAAK,UAAU,CAAC,EAAE,CAAC,KAAK,UACxC,CACP,IACG,CACP,IACO,CACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { MatchCompatibilityCard } from "./match-compatibility-card";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof MatchCompatibilityCard;
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 NotSpecified: Story;
17
+ export declare const NA: Story;
18
+ export declare const CurrencyConversion: Story;
19
+ //# sourceMappingURL=match-compatibility-card.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-compatibility-card.stories.d.ts","sourceRoot":"","sources":["../../src/offer/match-compatibility-card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,QAAA,MAAM,IAAI;;;;;;;CAKqC,CAAC;AAEhD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAyGnC,eAAO,MAAM,MAAM,EAAE,KAAwC,CAAC;AAC9D,eAAO,MAAM,OAAO,EAAE,KAAyC,CAAC;AAChE,eAAO,MAAM,IAAI,EAAE,KAAsC,CAAC;AAC1D,eAAO,MAAM,YAAY,EAAE,KAA8C,CAAC;AAC1E,eAAO,MAAM,EAAE,EAAE,KAAyC,CAAC;AAC3D,eAAO,MAAM,kBAAkB,EAAE,KAAoD,CAAC"}
@@ -0,0 +1,111 @@
1
+ import { MatchCompatibilityCard } from "./match-compatibility-card";
2
+ const meta = {
3
+ title: "Offer/MatchCompatibilityCard",
4
+ component: MatchCompatibilityCard,
5
+ tags: ["autodocs"],
6
+ parameters: { layout: "padded" },
7
+ };
8
+ export default meta;
9
+ const okCriterion = (id, label) => ({
10
+ id: id,
11
+ label,
12
+ state: "ok",
13
+ offered: "ok",
14
+ required: "ok",
15
+ viewerAdvantage: "neutral",
16
+ });
17
+ const strong = {
18
+ headline: "strong",
19
+ headlineSummary: "All requirements met",
20
+ criteria: [
21
+ okCriterion("price", "Price"),
22
+ okCriterion("volume", "Volume"),
23
+ okCriterion("alcoholRange", "ABV range"),
24
+ okCriterion("beverageCategory", "Category"),
25
+ ],
26
+ freeTextFields: [],
27
+ hiddenReasons: [],
28
+ };
29
+ const partial = {
30
+ ...strong,
31
+ headline: "partial",
32
+ headlineSummary: "Price is 4% over the ceiling",
33
+ criteria: [
34
+ {
35
+ id: "price",
36
+ label: "Price",
37
+ state: "partial",
38
+ offered: 4.4,
39
+ required: 4.2,
40
+ reason: "Price 4.4 is 4.7% above the ceiling of 4.2",
41
+ viewerAdvantage: "improved",
42
+ },
43
+ okCriterion("volume", "Volume"),
44
+ okCriterion("alcoholRange", "ABV range"),
45
+ ],
46
+ };
47
+ const miss = {
48
+ ...strong,
49
+ headline: "miss",
50
+ headlineSummary: "Beverage subtype does not match",
51
+ criteria: [
52
+ {
53
+ id: "beverageSubtype",
54
+ label: "Subtype",
55
+ state: "miss",
56
+ offered: "red",
57
+ required: "white",
58
+ reason: "Requested white; offered red",
59
+ viewerAdvantage: "neutral",
60
+ },
61
+ okCriterion("price", "Price"),
62
+ okCriterion("volume", "Volume"),
63
+ ],
64
+ };
65
+ const notSpecified = {
66
+ ...strong,
67
+ headline: "strong",
68
+ criteria: [
69
+ {
70
+ id: "vintage",
71
+ label: "Vintage",
72
+ state: "not_specified",
73
+ offered: 2020,
74
+ required: null,
75
+ viewerAdvantage: "neutral",
76
+ },
77
+ okCriterion("price", "Price"),
78
+ ],
79
+ };
80
+ const naStory = {
81
+ ...strong,
82
+ headline: "strong",
83
+ criteria: [
84
+ {
85
+ id: "vintage",
86
+ label: "Vintage",
87
+ state: "n_a",
88
+ offered: null,
89
+ required: [2019, 2021],
90
+ viewerAdvantage: "neutral",
91
+ },
92
+ okCriterion("price", "Price"),
93
+ ],
94
+ };
95
+ const currencyConversion = {
96
+ ...partial,
97
+ fx: {
98
+ rate: 1.09,
99
+ base: "EUR",
100
+ quote: "USD",
101
+ fetchedAt: "2026-04-20T09:00:00Z",
102
+ provider: "frankfurter",
103
+ },
104
+ };
105
+ export const Strong = { args: { evaluation: strong } };
106
+ export const Partial = { args: { evaluation: partial } };
107
+ export const Miss = { args: { evaluation: miss } };
108
+ export const NotSpecified = { args: { evaluation: notSpecified } };
109
+ export const NA = { args: { evaluation: naStory } };
110
+ export const CurrencyConversion = { args: { evaluation: currencyConversion } };
111
+ //# sourceMappingURL=match-compatibility-card.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-compatibility-card.stories.js","sourceRoot":"","sources":["../../src/offer/match-compatibility-card.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,sBAAsB;IACjC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;CACa,CAAC;AAEhD,eAAe,IAAI,CAAC;AAGpB,MAAM,WAAW,GAAG,CAAC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,MAAM,YAAY,GAAU,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,CAAC;AAC1E,MAAM,CAAC,MAAM,EAAE,GAAU,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,CAAC;AAC3D,MAAM,CAAC,MAAM,kBAAkB,GAAU,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,kBAAkB,EAAE,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { MatchState } from "./types";
2
+ export interface MatchGlyphProps {
3
+ state: MatchState;
4
+ /** Optional visible text label. When omitted, an aria-label is still applied. */
5
+ label?: string;
6
+ className?: string;
7
+ }
8
+ /**
9
+ * Non-color glyph for a match criterion state.
10
+ * Always exposes the state via aria-label so color-blind users and screen
11
+ * readers receive the same information.
12
+ */
13
+ export declare function MatchGlyph({ state, label, className }: MatchGlyphProps): import("react/jsx-runtime").JSX.Element;
14
+ //# sourceMappingURL=match-glyph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-glyph.d.ts","sourceRoot":"","sources":["../../src/offer/match-glyph.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,UAAU,CAAC;IAClB,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiCD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,eAAe,2CAYtE"}
@@ -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;YACjB,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,CAAC;SAC3D;KACF;CACgC,CAAC;AAEpC,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC;AACxD,MAAM,CAAC,MAAM,EAAE,GAAU,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC;AACnD,MAAM,CAAC,MAAM,OAAO,GAAU,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC;AAC7D,MAAM,CAAC,MAAM,IAAI,GAAU,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC;AACvD,MAAM,CAAC,MAAM,YAAY,GAAU,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,CAAC;AACxE,MAAM,CAAC,MAAM,EAAE,GAAU,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC;AAEpD,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;IACrB,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ,eAAK,SAAS,EAAC,mCAAmC,aAChD,KAAC,UAAU,IAAC,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAG,EACpC,KAAC,UAAU,IAAC,KAAK,EAAC,SAAS,EAAC,KAAK,EAAC,SAAS,GAAG,EAC9C,KAAC,UAAU,IAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,GAAG,EACxC,KAAC,UAAU,IAAC,KAAK,EAAC,eAAe,EAAC,KAAK,EAAC,eAAe,GAAG,EAC1D,KAAC,UAAU,IAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,GAAG,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,OAAO,EAAE;QACP,OAAO,EACL,wGAAwG;QAC1G,KAAK,EAAE,eAAe;KACvB;IACD,IAAI,EAAE;QACJ,OAAO,EACL,kGAAkG;QACpG,KAAK,EAAE,MAAM;KACd;CACF,CAAC;AAEF,MAAM,uBAAuB,GAAG;IAC9B,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;CACJ,CAAC;AAEX,MAAM,UAAU,gBAAgB,CAAC,EAC/B,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,GAAG,KAAK,EAChB,cAAc,EACd,SAAS,GACa;IACtB,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACnC,OAAO,CACL,eACE,IAAI,EAAC,QAAQ,gBACD,GAAG,MAAM,CAAC,KAAK,KAAK,OAAO,EAAE,EACzC,SAAS,EAAE,EAAE,CACX,qDAAqD,EACrD,MAAM,CAAC,OAAO,EACd,SAAS,CACV,aAED,KAAC,UAAU,IAAC,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,GAAI,EACrD,eAAK,SAAS,EAAC,gBAAgB,aAC7B,cAAK,SAAS,EAAC,yBAAyB,YAAE,MAAM,CAAC,KAAK,GAAO,EAC7D,cAAK,SAAS,EAAC,sBAAsB,YAAE,OAAO,GAAO,IACjD,EACN,eAAK,SAAS,EAAC,6BAA6B,aAAE,KAAK,eAAc,EAChE,cAAc,IAAI,CACjB,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,cAAc,mBACR,QAAQ,gBACX,QAAQ,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,oBAAoB,EAClE,SAAS,EAAC,sGAAsG,YAE/G,QAAQ,CAAC,CAAC,CAAC,CACV,KAAC,SAAS,yBAAa,SAAS,EAAC,QAAQ,GAAG,CAC7C,CAAC,CAAC,CAAC,CACF,KAAC,WAAW,yBAAa,SAAS,EAAC,QAAQ,GAAG,CAC/C,GACM,CACV,IACG,CACP,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"}