@cellarnode/ui 0.17.3 → 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 (655) 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/__tests__/countdown-pill.test.d.ts +2 -0
  5. package/dist/components/__tests__/countdown-pill.test.d.ts.map +1 -0
  6. package/dist/components/__tests__/countdown-pill.test.js +28 -0
  7. package/dist/components/__tests__/countdown-pill.test.js.map +1 -0
  8. package/dist/components/__tests__/country-flag.test.d.ts +2 -0
  9. package/dist/components/__tests__/country-flag.test.d.ts.map +1 -0
  10. package/dist/components/__tests__/country-flag.test.js +20 -0
  11. package/dist/components/__tests__/country-flag.test.js.map +1 -0
  12. package/dist/components/__tests__/status-pill.test.d.ts +2 -0
  13. package/dist/components/__tests__/status-pill.test.d.ts.map +1 -0
  14. package/dist/components/__tests__/status-pill.test.js +24 -0
  15. package/dist/components/__tests__/status-pill.test.js.map +1 -0
  16. package/dist/components/confirmation-dialog.stories.d.ts +26 -0
  17. package/dist/components/confirmation-dialog.stories.d.ts.map +1 -0
  18. package/dist/components/confirmation-dialog.stories.js +94 -0
  19. package/dist/components/confirmation-dialog.stories.js.map +1 -0
  20. package/dist/components/countdown-pill.d.ts +7 -0
  21. package/dist/components/countdown-pill.d.ts.map +1 -0
  22. package/dist/components/countdown-pill.js +27 -0
  23. package/dist/components/countdown-pill.js.map +1 -0
  24. package/dist/components/countdown-pill.stories.d.ts +15 -0
  25. package/dist/components/countdown-pill.stories.d.ts.map +1 -0
  26. package/dist/components/countdown-pill.stories.js +14 -0
  27. package/dist/components/countdown-pill.stories.js.map +1 -0
  28. package/dist/components/country-flag.d.ts +6 -0
  29. package/dist/components/country-flag.d.ts.map +1 -0
  30. package/dist/components/country-flag.js +31 -0
  31. package/dist/components/country-flag.js.map +1 -0
  32. package/dist/components/country-flag.stories.d.ts +14 -0
  33. package/dist/components/country-flag.stories.d.ts.map +1 -0
  34. package/dist/components/country-flag.stories.js +16 -0
  35. package/dist/components/country-flag.stories.js.map +1 -0
  36. package/dist/components/period-select.stories.d.ts +29 -0
  37. package/dist/components/period-select.stories.d.ts.map +1 -0
  38. package/dist/components/period-select.stories.js +65 -0
  39. package/dist/components/period-select.stories.js.map +1 -0
  40. package/dist/components/sidebar/context.d.ts +24 -0
  41. package/dist/components/sidebar/context.d.ts.map +1 -0
  42. package/dist/components/sidebar/context.js +73 -0
  43. package/dist/components/sidebar/context.js.map +1 -0
  44. package/dist/components/sidebar/index.d.ts +9 -0
  45. package/dist/components/sidebar/index.d.ts.map +1 -0
  46. package/dist/components/sidebar/index.js +9 -0
  47. package/dist/components/sidebar/index.js.map +1 -0
  48. package/dist/components/sidebar/sidebar-group.d.ts +10 -0
  49. package/dist/components/sidebar/sidebar-group.d.ts.map +1 -0
  50. package/dist/components/sidebar/sidebar-group.js +21 -0
  51. package/dist/components/sidebar/sidebar-group.js.map +1 -0
  52. package/dist/components/sidebar/sidebar-inset.d.ts +3 -0
  53. package/dist/components/sidebar/sidebar-inset.d.ts.map +1 -0
  54. package/dist/components/sidebar/sidebar-inset.js +7 -0
  55. package/dist/components/sidebar/sidebar-inset.js.map +1 -0
  56. package/dist/components/sidebar/sidebar-menu-sub.d.ts +9 -0
  57. package/dist/components/sidebar/sidebar-menu-sub.d.ts.map +1 -0
  58. package/dist/components/sidebar/sidebar-menu-sub.js +15 -0
  59. package/dist/components/sidebar/sidebar-menu-sub.js.map +1 -0
  60. package/dist/components/sidebar/sidebar-menu.d.ts +23 -0
  61. package/dist/components/sidebar/sidebar-menu.d.ts.map +1 -0
  62. package/dist/components/sidebar/sidebar-menu.js +63 -0
  63. package/dist/components/sidebar/sidebar-menu.js.map +1 -0
  64. package/dist/components/sidebar/sidebar-sections.d.ts +8 -0
  65. package/dist/components/sidebar/sidebar-sections.d.ts.map +1 -0
  66. package/dist/components/sidebar/sidebar-sections.js +20 -0
  67. package/dist/components/sidebar/sidebar-sections.js.map +1 -0
  68. package/dist/components/sidebar/sidebar-trigger.d.ts +4 -0
  69. package/dist/components/sidebar/sidebar-trigger.d.ts.map +1 -0
  70. package/dist/components/sidebar/sidebar-trigger.js +17 -0
  71. package/dist/components/sidebar/sidebar-trigger.js.map +1 -0
  72. package/dist/components/sidebar/sidebar.d.ts +7 -0
  73. package/dist/components/sidebar/sidebar.d.ts.map +1 -0
  74. package/dist/components/sidebar/sidebar.js +26 -0
  75. package/dist/components/sidebar/sidebar.js.map +1 -0
  76. package/dist/components/status-pill.d.ts +7 -0
  77. package/dist/components/status-pill.d.ts.map +1 -0
  78. package/dist/components/status-pill.js +14 -0
  79. package/dist/components/status-pill.js.map +1 -0
  80. package/dist/components/status-pill.stories.d.ts +21 -0
  81. package/dist/components/status-pill.stories.d.ts.map +1 -0
  82. package/dist/components/status-pill.stories.js +18 -0
  83. package/dist/components/status-pill.stories.js.map +1 -0
  84. package/dist/components/toast.stories.d.ts +25 -0
  85. package/dist/components/toast.stories.d.ts.map +1 -0
  86. package/dist/components/toast.stories.js +38 -0
  87. package/dist/components/toast.stories.js.map +1 -0
  88. package/dist/components/toaster.stories.d.ts +19 -0
  89. package/dist/components/toaster.stories.d.ts.map +1 -0
  90. package/dist/components/toaster.stories.js +27 -0
  91. package/dist/components/toaster.stories.js.map +1 -0
  92. package/dist/globe/globe-scene-camera.d.ts +25 -0
  93. package/dist/globe/globe-scene-camera.d.ts.map +1 -0
  94. package/dist/globe/globe-scene-camera.js +59 -0
  95. package/dist/globe/globe-scene-camera.js.map +1 -0
  96. package/dist/globe/globe-scene-channel.d.ts +27 -0
  97. package/dist/globe/globe-scene-channel.d.ts.map +1 -0
  98. package/dist/globe/globe-scene-channel.js +60 -0
  99. package/dist/globe/globe-scene-channel.js.map +1 -0
  100. package/dist/globe/globe-scene-controls.d.ts +38 -0
  101. package/dist/globe/globe-scene-controls.d.ts.map +1 -0
  102. package/dist/globe/globe-scene-controls.js +62 -0
  103. package/dist/globe/globe-scene-controls.js.map +1 -0
  104. package/dist/globe/globe-scene-data.d.ts +16 -0
  105. package/dist/globe/globe-scene-data.d.ts.map +1 -0
  106. package/dist/globe/globe-scene-data.js +51 -0
  107. package/dist/globe/globe-scene-data.js.map +1 -0
  108. package/dist/globe/globe-scene-interactions.d.ts +11 -0
  109. package/dist/globe/globe-scene-interactions.d.ts.map +1 -0
  110. package/dist/globe/globe-scene-interactions.js +54 -0
  111. package/dist/globe/globe-scene-interactions.js.map +1 -0
  112. package/dist/globe/globe-scene-layers.d.ts +22 -0
  113. package/dist/globe/globe-scene-layers.d.ts.map +1 -0
  114. package/dist/globe/globe-scene-layers.js +170 -0
  115. package/dist/globe/globe-scene-layers.js.map +1 -0
  116. package/dist/globe/globe-scene-props.d.ts +32 -0
  117. package/dist/globe/globe-scene-props.d.ts.map +1 -0
  118. package/dist/globe/globe-scene-props.js +8 -0
  119. package/dist/globe/globe-scene-props.js.map +1 -0
  120. package/dist/globe/globe-scene-types.d.ts +34 -0
  121. package/dist/globe/globe-scene-types.d.ts.map +1 -0
  122. package/dist/globe/globe-scene-types.js +14 -0
  123. package/dist/globe/globe-scene-types.js.map +1 -0
  124. package/dist/globe/globe-scene.d.ts +10 -25
  125. package/dist/globe/globe-scene.d.ts.map +1 -1
  126. package/dist/globe/globe-scene.js +54 -349
  127. package/dist/globe/globe-scene.js.map +1 -1
  128. package/dist/hooks/__tests__/use-animated-number.test.d.ts +2 -0
  129. package/dist/hooks/__tests__/use-animated-number.test.d.ts.map +1 -0
  130. package/dist/hooks/__tests__/use-animated-number.test.js +58 -0
  131. package/dist/hooks/__tests__/use-animated-number.test.js.map +1 -0
  132. package/dist/hooks/index.d.ts +3 -0
  133. package/dist/hooks/index.d.ts.map +1 -0
  134. package/dist/hooks/index.js +2 -0
  135. package/dist/hooks/index.js.map +1 -0
  136. package/dist/hooks/use-animated-number.d.ts +6 -0
  137. package/dist/hooks/use-animated-number.d.ts.map +1 -0
  138. package/dist/hooks/use-animated-number.js +56 -0
  139. package/dist/hooks/use-animated-number.js.map +1 -0
  140. package/dist/index.d.ts +8 -0
  141. package/dist/index.d.ts.map +1 -1
  142. package/dist/index.js +6 -0
  143. package/dist/index.js.map +1 -1
  144. package/dist/notifications/notification-badge.stories.d.ts +42 -0
  145. package/dist/notifications/notification-badge.stories.d.ts.map +1 -0
  146. package/dist/notifications/notification-badge.stories.js +42 -0
  147. package/dist/notifications/notification-badge.stories.js.map +1 -0
  148. package/dist/notifications/notification-empty-state.stories.d.ts +16 -0
  149. package/dist/notifications/notification-empty-state.stories.d.ts.map +1 -0
  150. package/dist/notifications/notification-empty-state.stories.js +22 -0
  151. package/dist/notifications/notification-empty-state.stories.js.map +1 -0
  152. package/dist/notifications/notification-item.stories.d.ts +41 -0
  153. package/dist/notifications/notification-item.stories.d.ts.map +1 -0
  154. package/dist/notifications/notification-item.stories.js +110 -0
  155. package/dist/notifications/notification-item.stories.js.map +1 -0
  156. package/dist/notifications/notification-list.stories.d.ts +25 -0
  157. package/dist/notifications/notification-list.stories.d.ts.map +1 -0
  158. package/dist/notifications/notification-list.stories.js +148 -0
  159. package/dist/notifications/notification-list.stories.js.map +1 -0
  160. package/dist/notifications/notification-page.stories.d.ts +20 -0
  161. package/dist/notifications/notification-page.stories.d.ts.map +1 -0
  162. package/dist/notifications/notification-page.stories.js +140 -0
  163. package/dist/notifications/notification-page.stories.js.map +1 -0
  164. package/dist/notifications/notification-tray.stories.d.ts +21 -0
  165. package/dist/notifications/notification-tray.stories.d.ts.map +1 -0
  166. package/dist/notifications/notification-tray.stories.js +123 -0
  167. package/dist/notifications/notification-tray.stories.js.map +1 -0
  168. package/dist/notifications/push-prompt-banner.stories.d.ts +27 -0
  169. package/dist/notifications/push-prompt-banner.stories.d.ts.map +1 -0
  170. package/dist/notifications/push-prompt-banner.stories.js +33 -0
  171. package/dist/notifications/push-prompt-banner.stories.js.map +1 -0
  172. package/dist/offer/__tests__/opportunity-requirements.test.d.ts +2 -0
  173. package/dist/offer/__tests__/opportunity-requirements.test.d.ts.map +1 -0
  174. package/dist/offer/__tests__/opportunity-requirements.test.js +33 -0
  175. package/dist/offer/__tests__/opportunity-requirements.test.js.map +1 -0
  176. package/dist/offer/attachments-card.d.ts +9 -0
  177. package/dist/offer/attachments-card.d.ts.map +1 -0
  178. package/dist/offer/attachments-card.js +16 -0
  179. package/dist/offer/attachments-card.js.map +1 -0
  180. package/dist/offer/attachments-card.stories.d.ts +17 -0
  181. package/dist/offer/attachments-card.stories.d.ts.map +1 -0
  182. package/dist/offer/attachments-card.stories.js +24 -0
  183. package/dist/offer/attachments-card.stories.js.map +1 -0
  184. package/dist/offer/buyer-notes-card.d.ts +7 -0
  185. package/dist/offer/buyer-notes-card.d.ts.map +1 -0
  186. package/dist/offer/buyer-notes-card.js +6 -0
  187. package/dist/offer/buyer-notes-card.js.map +1 -0
  188. package/dist/offer/buyer-notes-card.stories.d.ts +16 -0
  189. package/dist/offer/buyer-notes-card.stories.d.ts.map +1 -0
  190. package/dist/offer/buyer-notes-card.stories.js +25 -0
  191. package/dist/offer/buyer-notes-card.stories.js.map +1 -0
  192. package/dist/offer/counter-slide-over.d.ts +44 -0
  193. package/dist/offer/counter-slide-over.d.ts.map +1 -0
  194. package/dist/offer/counter-slide-over.js +81 -0
  195. package/dist/offer/counter-slide-over.js.map +1 -0
  196. package/dist/offer/counter-slide-over.stories.d.ts +23 -0
  197. package/dist/offer/counter-slide-over.stories.d.ts.map +1 -0
  198. package/dist/offer/counter-slide-over.stories.js +235 -0
  199. package/dist/offer/counter-slide-over.stories.js.map +1 -0
  200. package/dist/offer/facts-card.d.ts +32 -0
  201. package/dist/offer/facts-card.d.ts.map +1 -0
  202. package/dist/offer/facts-card.js +87 -0
  203. package/dist/offer/facts-card.js.map +1 -0
  204. package/dist/offer/facts-card.stories.d.ts +25 -0
  205. package/dist/offer/facts-card.stories.d.ts.map +1 -0
  206. package/dist/offer/facts-card.stories.js +177 -0
  207. package/dist/offer/facts-card.stories.js.map +1 -0
  208. package/dist/offer/index.d.ts +39 -0
  209. package/dist/offer/index.d.ts.map +1 -1
  210. package/dist/offer/index.js +21 -0
  211. package/dist/offer/index.js.map +1 -1
  212. package/dist/offer/inline-counter-form.d.ts +16 -0
  213. package/dist/offer/inline-counter-form.d.ts.map +1 -1
  214. package/dist/offer/inline-counter-form.js +8 -0
  215. package/dist/offer/inline-counter-form.js.map +1 -1
  216. package/dist/offer/match-compatibility-card.d.ts +16 -0
  217. package/dist/offer/match-compatibility-card.d.ts.map +1 -0
  218. package/dist/offer/match-compatibility-card.js +27 -0
  219. package/dist/offer/match-compatibility-card.js.map +1 -0
  220. package/dist/offer/match-compatibility-card.stories.d.ts +19 -0
  221. package/dist/offer/match-compatibility-card.stories.d.ts.map +1 -0
  222. package/dist/offer/match-compatibility-card.stories.js +111 -0
  223. package/dist/offer/match-compatibility-card.stories.js.map +1 -0
  224. package/dist/offer/match-glyph.d.ts +14 -0
  225. package/dist/offer/match-glyph.d.ts.map +1 -0
  226. package/dist/offer/match-glyph.js +40 -0
  227. package/dist/offer/match-glyph.js.map +1 -0
  228. package/dist/offer/match-glyph.stories.d.ts +26 -0
  229. package/dist/offer/match-glyph.stories.d.ts.map +1 -0
  230. package/dist/offer/match-glyph.stories.js +26 -0
  231. package/dist/offer/match-glyph.stories.js.map +1 -0
  232. package/dist/offer/match-headline-bar.d.ts +11 -0
  233. package/dist/offer/match-headline-bar.d.ts.map +1 -0
  234. package/dist/offer/match-headline-bar.js +28 -0
  235. package/dist/offer/match-headline-bar.js.map +1 -0
  236. package/dist/offer/match-headline-bar.stories.d.ts +17 -0
  237. package/dist/offer/match-headline-bar.stories.d.ts.map +1 -0
  238. package/dist/offer/match-headline-bar.stories.js +39 -0
  239. package/dist/offer/match-headline-bar.stories.js.map +1 -0
  240. package/dist/offer/match-preview.d.ts +18 -0
  241. package/dist/offer/match-preview.d.ts.map +1 -0
  242. package/dist/offer/match-preview.js +13 -0
  243. package/dist/offer/match-preview.js.map +1 -0
  244. package/dist/offer/match-preview.stories.d.ts +18 -0
  245. package/dist/offer/match-preview.stories.d.ts.map +1 -0
  246. package/dist/offer/match-preview.stories.js +103 -0
  247. package/dist/offer/match-preview.stories.js.map +1 -0
  248. package/dist/offer/negotiation-section.d.ts +11 -0
  249. package/dist/offer/negotiation-section.d.ts.map +1 -0
  250. package/dist/offer/negotiation-section.js +99 -0
  251. package/dist/offer/negotiation-section.js.map +1 -0
  252. package/dist/offer/negotiation-section.stories.d.ts +18 -0
  253. package/dist/offer/negotiation-section.stories.d.ts.map +1 -0
  254. package/dist/offer/negotiation-section.stories.js +156 -0
  255. package/dist/offer/negotiation-section.stories.js.map +1 -0
  256. package/dist/offer/new-activity-pill.d.ts +7 -0
  257. package/dist/offer/new-activity-pill.d.ts.map +1 -0
  258. package/dist/offer/new-activity-pill.js +8 -0
  259. package/dist/offer/new-activity-pill.js.map +1 -0
  260. package/dist/offer/new-activity-pill.stories.d.ts +17 -0
  261. package/dist/offer/new-activity-pill.stories.d.ts.map +1 -0
  262. package/dist/offer/new-activity-pill.stories.js +22 -0
  263. package/dist/offer/new-activity-pill.stories.js.map +1 -0
  264. package/dist/offer/offer-detail-header.stories.d.ts +19 -0
  265. package/dist/offer/offer-detail-header.stories.d.ts.map +1 -0
  266. package/dist/offer/offer-detail-header.stories.js +59 -0
  267. package/dist/offer/offer-detail-header.stories.js.map +1 -0
  268. package/dist/offer/offer-detail-shell.stories.d.ts +17 -0
  269. package/dist/offer/offer-detail-shell.stories.d.ts.map +1 -0
  270. package/dist/offer/offer-detail-shell.stories.js +69 -0
  271. package/dist/offer/offer-detail-shell.stories.js.map +1 -0
  272. package/dist/offer/offer-detail-tabs.stories.d.ts +17 -0
  273. package/dist/offer/offer-detail-tabs.stories.d.ts.map +1 -0
  274. package/dist/offer/offer-detail-tabs.stories.js +66 -0
  275. package/dist/offer/offer-detail-tabs.stories.js.map +1 -0
  276. package/dist/offer/offer-document.d.ts +33 -0
  277. package/dist/offer/offer-document.d.ts.map +1 -0
  278. package/dist/offer/offer-document.js +125 -0
  279. package/dist/offer/offer-document.js.map +1 -0
  280. package/dist/offer/offer-document.stories.d.ts +25 -0
  281. package/dist/offer/offer-document.stories.d.ts.map +1 -0
  282. package/dist/offer/offer-document.stories.js +168 -0
  283. package/dist/offer/offer-document.stories.js.map +1 -0
  284. package/dist/offer/offer-export-button.d.ts +8 -0
  285. package/dist/offer/offer-export-button.d.ts.map +1 -0
  286. package/dist/offer/offer-export-button.js +11 -0
  287. package/dist/offer/offer-export-button.js.map +1 -0
  288. package/dist/offer/offer-export-button.stories.d.ts +15 -0
  289. package/dist/offer/offer-export-button.stories.d.ts.map +1 -0
  290. package/dist/offer/offer-export-button.stories.js +11 -0
  291. package/dist/offer/offer-export-button.stories.js.map +1 -0
  292. package/dist/offer/offer-product-card.d.ts +32 -0
  293. package/dist/offer/offer-product-card.d.ts.map +1 -0
  294. package/dist/offer/offer-product-card.js +10 -0
  295. package/dist/offer/offer-product-card.js.map +1 -0
  296. package/dist/offer/offer-product-card.stories.d.ts +16 -0
  297. package/dist/offer/offer-product-card.stories.d.ts.map +1 -0
  298. package/dist/offer/offer-product-card.stories.js +40 -0
  299. package/dist/offer/offer-product-card.stories.js.map +1 -0
  300. package/dist/offer/opportunity-card.d.ts +16 -0
  301. package/dist/offer/opportunity-card.d.ts.map +1 -0
  302. package/dist/offer/opportunity-card.js +9 -0
  303. package/dist/offer/opportunity-card.js.map +1 -0
  304. package/dist/offer/opportunity-card.stories.d.ts +16 -0
  305. package/dist/offer/opportunity-card.stories.d.ts.map +1 -0
  306. package/dist/offer/opportunity-card.stories.js +33 -0
  307. package/dist/offer/opportunity-card.stories.js.map +1 -0
  308. package/dist/offer/opportunity-requirements.d.ts.map +1 -1
  309. package/dist/offer/opportunity-requirements.js +4 -0
  310. package/dist/offer/opportunity-requirements.js.map +1 -1
  311. package/dist/offer/parties-card.d.ts +11 -0
  312. package/dist/offer/parties-card.d.ts.map +1 -0
  313. package/dist/offer/parties-card.js +14 -0
  314. package/dist/offer/parties-card.js.map +1 -0
  315. package/dist/offer/parties-card.stories.d.ts +17 -0
  316. package/dist/offer/parties-card.stories.d.ts.map +1 -0
  317. package/dist/offer/parties-card.stories.js +37 -0
  318. package/dist/offer/parties-card.stories.js.map +1 -0
  319. package/dist/offer/terms-card.d.ts +17 -0
  320. package/dist/offer/terms-card.d.ts.map +1 -0
  321. package/dist/offer/terms-card.js +50 -0
  322. package/dist/offer/terms-card.js.map +1 -0
  323. package/dist/offer/terms-card.stories.d.ts +17 -0
  324. package/dist/offer/terms-card.stories.d.ts.map +1 -0
  325. package/dist/offer/terms-card.stories.js +42 -0
  326. package/dist/offer/terms-card.stories.js.map +1 -0
  327. package/dist/offer/timeline-event.d.ts +12 -0
  328. package/dist/offer/timeline-event.d.ts.map +1 -0
  329. package/dist/offer/timeline-event.js +57 -0
  330. package/dist/offer/timeline-event.js.map +1 -0
  331. package/dist/offer/timeline-event.stories.d.ts +21 -0
  332. package/dist/offer/timeline-event.stories.d.ts.map +1 -0
  333. package/dist/offer/timeline-event.stories.js +57 -0
  334. package/dist/offer/timeline-event.stories.js.map +1 -0
  335. package/dist/offer/types.d.ts +118 -0
  336. package/dist/offer/types.d.ts.map +1 -1
  337. package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.d.ts +2 -0
  338. package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.d.ts.map +1 -0
  339. package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.js +40 -0
  340. package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.js.map +1 -0
  341. package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.d.ts +2 -0
  342. package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.d.ts.map +1 -0
  343. package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.js +31 -0
  344. package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.js.map +1 -0
  345. package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.d.ts +2 -0
  346. package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.d.ts.map +1 -0
  347. package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.js +42 -0
  348. package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.js.map +1 -0
  349. package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.d.ts +2 -0
  350. package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.d.ts.map +1 -0
  351. package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.js +59 -0
  352. package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.js.map +1 -0
  353. package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.d.ts +2 -0
  354. package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.d.ts.map +1 -0
  355. package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.js +54 -0
  356. package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.js.map +1 -0
  357. package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.d.ts +2 -0
  358. package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.d.ts.map +1 -0
  359. package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.js +40 -0
  360. package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.js.map +1 -0
  361. package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.d.ts +2 -0
  362. package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.d.ts.map +1 -0
  363. package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.js +40 -0
  364. package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.js.map +1 -0
  365. package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.d.ts +2 -0
  366. package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.d.ts.map +1 -0
  367. package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.js +74 -0
  368. package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.js.map +1 -0
  369. package/dist/opportunities/__tests__/opportunity-celebration.test.d.ts +2 -0
  370. package/dist/opportunities/__tests__/opportunity-celebration.test.d.ts.map +1 -0
  371. package/dist/opportunities/__tests__/opportunity-celebration.test.js +46 -0
  372. package/dist/opportunities/__tests__/opportunity-celebration.test.js.map +1 -0
  373. package/dist/opportunities/__tests__/opportunity-channel-badge.test.d.ts +2 -0
  374. package/dist/opportunities/__tests__/opportunity-channel-badge.test.d.ts.map +1 -0
  375. package/dist/opportunities/__tests__/opportunity-channel-badge.test.js +23 -0
  376. package/dist/opportunities/__tests__/opportunity-channel-badge.test.js.map +1 -0
  377. package/dist/opportunities/__tests__/opportunity-detail-panel.test.d.ts +2 -0
  378. package/dist/opportunities/__tests__/opportunity-detail-panel.test.d.ts.map +1 -0
  379. package/dist/opportunities/__tests__/opportunity-detail-panel.test.js +50 -0
  380. package/dist/opportunities/__tests__/opportunity-detail-panel.test.js.map +1 -0
  381. package/dist/opportunities/__tests__/opportunity-empty-state.test.d.ts +2 -0
  382. package/dist/opportunities/__tests__/opportunity-empty-state.test.d.ts.map +1 -0
  383. package/dist/opportunities/__tests__/opportunity-empty-state.test.js +19 -0
  384. package/dist/opportunities/__tests__/opportunity-empty-state.test.js.map +1 -0
  385. package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.d.ts +2 -0
  386. package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.d.ts.map +1 -0
  387. package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.js +77 -0
  388. package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.js.map +1 -0
  389. package/dist/opportunities/__tests__/opportunity-filter-bar.test.d.ts +2 -0
  390. package/dist/opportunities/__tests__/opportunity-filter-bar.test.d.ts.map +1 -0
  391. package/dist/opportunities/__tests__/opportunity-filter-bar.test.js +107 -0
  392. package/dist/opportunities/__tests__/opportunity-filter-bar.test.js.map +1 -0
  393. package/dist/opportunities/__tests__/opportunity-offers-count-chip.test.d.ts +2 -0
  394. package/dist/opportunities/__tests__/opportunity-offers-count-chip.test.d.ts.map +1 -0
  395. package/dist/opportunities/__tests__/opportunity-offers-count-chip.test.js +25 -0
  396. package/dist/opportunities/__tests__/opportunity-offers-count-chip.test.js.map +1 -0
  397. package/dist/opportunities/__tests__/opportunity-reopen-button.test.d.ts +2 -0
  398. package/dist/opportunities/__tests__/opportunity-reopen-button.test.d.ts.map +1 -0
  399. package/dist/opportunities/__tests__/opportunity-reopen-button.test.js +29 -0
  400. package/dist/opportunities/__tests__/opportunity-reopen-button.test.js.map +1 -0
  401. package/dist/opportunities/__tests__/opportunity-republish-button.test.d.ts +2 -0
  402. package/dist/opportunities/__tests__/opportunity-republish-button.test.d.ts.map +1 -0
  403. package/dist/opportunities/__tests__/opportunity-republish-button.test.js +29 -0
  404. package/dist/opportunities/__tests__/opportunity-republish-button.test.js.map +1 -0
  405. package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.d.ts +2 -0
  406. package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.d.ts.map +1 -0
  407. package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.js +19 -0
  408. package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.js.map +1 -0
  409. package/dist/opportunities/__tests__/opportunity-stacked-card.test.d.ts +2 -0
  410. package/dist/opportunities/__tests__/opportunity-stacked-card.test.d.ts.map +1 -0
  411. package/dist/opportunities/__tests__/opportunity-stacked-card.test.js +99 -0
  412. package/dist/opportunities/__tests__/opportunity-stacked-card.test.js.map +1 -0
  413. package/dist/opportunities/__tests__/opportunity-stacked-list.test.d.ts +2 -0
  414. package/dist/opportunities/__tests__/opportunity-stacked-list.test.d.ts.map +1 -0
  415. package/dist/opportunities/__tests__/opportunity-stacked-list.test.js +98 -0
  416. package/dist/opportunities/__tests__/opportunity-stacked-list.test.js.map +1 -0
  417. package/dist/opportunities/__tests__/opportunity-view-offers-button.test.d.ts +2 -0
  418. package/dist/opportunities/__tests__/opportunity-view-offers-button.test.d.ts.map +1 -0
  419. package/dist/opportunities/__tests__/opportunity-view-offers-button.test.js +23 -0
  420. package/dist/opportunities/__tests__/opportunity-view-offers-button.test.js.map +1 -0
  421. package/dist/opportunities/__tests__/section-field.test.d.ts +2 -0
  422. package/dist/opportunities/__tests__/section-field.test.d.ts.map +1 -0
  423. package/dist/opportunities/__tests__/section-field.test.js +28 -0
  424. package/dist/opportunities/__tests__/section-field.test.js.map +1 -0
  425. package/dist/opportunities/__tests__/two-column-section.test.d.ts +2 -0
  426. package/dist/opportunities/__tests__/two-column-section.test.d.ts.map +1 -0
  427. package/dist/opportunities/__tests__/two-column-section.test.js +25 -0
  428. package/dist/opportunities/__tests__/two-column-section.test.js.map +1 -0
  429. package/dist/opportunities/index.d.ts +51 -1
  430. package/dist/opportunities/index.d.ts.map +1 -1
  431. package/dist/opportunities/index.js +35 -0
  432. package/dist/opportunities/index.js.map +1 -1
  433. package/dist/opportunities/opportunities-table.d.ts +4 -0
  434. package/dist/opportunities/opportunities-table.d.ts.map +1 -1
  435. package/dist/opportunities/opportunities-table.js +4 -0
  436. package/dist/opportunities/opportunities-table.js.map +1 -1
  437. package/dist/opportunities/opportunity-add-to-journey-button.d.ts +12 -0
  438. package/dist/opportunities/opportunity-add-to-journey-button.d.ts.map +1 -0
  439. package/dist/opportunities/opportunity-add-to-journey-button.js +42 -0
  440. package/dist/opportunities/opportunity-add-to-journey-button.js.map +1 -0
  441. package/dist/opportunities/opportunity-card-actions-menu.d.ts +9 -0
  442. package/dist/opportunities/opportunity-card-actions-menu.d.ts.map +1 -0
  443. package/dist/opportunities/opportunity-card-actions-menu.js +33 -0
  444. package/dist/opportunities/opportunity-card-actions-menu.js.map +1 -0
  445. package/dist/opportunities/opportunity-card-actions-menu.stories.d.ts +14 -0
  446. package/dist/opportunities/opportunity-card-actions-menu.stories.d.ts.map +1 -0
  447. package/dist/opportunities/opportunity-card-actions-menu.stories.js +12 -0
  448. package/dist/opportunities/opportunity-card-actions-menu.stories.js.map +1 -0
  449. package/dist/opportunities/opportunity-celebration.d.ts +8 -0
  450. package/dist/opportunities/opportunity-celebration.d.ts.map +1 -0
  451. package/dist/opportunities/opportunity-celebration.js +17 -0
  452. package/dist/opportunities/opportunity-celebration.js.map +1 -0
  453. package/dist/opportunities/opportunity-celebration.stories.d.ts +17 -0
  454. package/dist/opportunities/opportunity-celebration.stories.d.ts.map +1 -0
  455. package/dist/opportunities/opportunity-celebration.stories.js +30 -0
  456. package/dist/opportunities/opportunity-celebration.stories.js.map +1 -0
  457. package/dist/opportunities/opportunity-channel-badge.d.ts +7 -0
  458. package/dist/opportunities/opportunity-channel-badge.d.ts.map +1 -0
  459. package/dist/opportunities/opportunity-channel-badge.js +13 -0
  460. package/dist/opportunities/opportunity-channel-badge.js.map +1 -0
  461. package/dist/opportunities/opportunity-channel-badge.stories.d.ts +13 -0
  462. package/dist/opportunities/opportunity-channel-badge.stories.d.ts.map +1 -0
  463. package/dist/opportunities/opportunity-channel-badge.stories.js +11 -0
  464. package/dist/opportunities/opportunity-channel-badge.stories.js.map +1 -0
  465. package/dist/opportunities/opportunity-detail-panel.d.ts +13 -0
  466. package/dist/opportunities/opportunity-detail-panel.d.ts.map +1 -0
  467. package/dist/opportunities/opportunity-detail-panel.js +19 -0
  468. package/dist/opportunities/opportunity-detail-panel.js.map +1 -0
  469. package/dist/opportunities/opportunity-detail-panel.stories.d.ts +14 -0
  470. package/dist/opportunities/opportunity-detail-panel.stories.d.ts.map +1 -0
  471. package/dist/opportunities/opportunity-detail-panel.stories.js +53 -0
  472. package/dist/opportunities/opportunity-detail-panel.stories.js.map +1 -0
  473. package/dist/opportunities/opportunity-empty-state.d.ts +10 -0
  474. package/dist/opportunities/opportunity-empty-state.d.ts.map +1 -0
  475. package/dist/opportunities/opportunity-empty-state.js +6 -0
  476. package/dist/opportunities/opportunity-empty-state.js.map +1 -0
  477. package/dist/opportunities/opportunity-empty-state.stories.d.ts +13 -0
  478. package/dist/opportunities/opportunity-empty-state.stories.d.ts.map +1 -0
  479. package/dist/opportunities/opportunity-empty-state.stories.js +13 -0
  480. package/dist/opportunities/opportunity-empty-state.stories.js.map +1 -0
  481. package/dist/opportunities/opportunity-filter-bar-drawer.d.ts +10 -0
  482. package/dist/opportunities/opportunity-filter-bar-drawer.d.ts.map +1 -0
  483. package/dist/opportunities/opportunity-filter-bar-drawer.js +54 -0
  484. package/dist/opportunities/opportunity-filter-bar-drawer.js.map +1 -0
  485. package/dist/opportunities/opportunity-filter-bar.d.ts +14 -0
  486. package/dist/opportunities/opportunity-filter-bar.d.ts.map +1 -0
  487. package/dist/opportunities/opportunity-filter-bar.js +65 -0
  488. package/dist/opportunities/opportunity-filter-bar.js.map +1 -0
  489. package/dist/opportunities/opportunity-filter-bar.stories.d.ts +25 -0
  490. package/dist/opportunities/opportunity-filter-bar.stories.d.ts.map +1 -0
  491. package/dist/opportunities/opportunity-filter-bar.stories.js +63 -0
  492. package/dist/opportunities/opportunity-filter-bar.stories.js.map +1 -0
  493. package/dist/opportunities/opportunity-offers-count-chip.d.ts +6 -0
  494. package/dist/opportunities/opportunity-offers-count-chip.d.ts.map +1 -0
  495. package/dist/opportunities/opportunity-offers-count-chip.js +8 -0
  496. package/dist/opportunities/opportunity-offers-count-chip.js.map +1 -0
  497. package/dist/opportunities/opportunity-offers-count-chip.stories.d.ts +13 -0
  498. package/dist/opportunities/opportunity-offers-count-chip.stories.d.ts.map +1 -0
  499. package/dist/opportunities/opportunity-offers-count-chip.stories.js +11 -0
  500. package/dist/opportunities/opportunity-offers-count-chip.stories.js.map +1 -0
  501. package/dist/opportunities/opportunity-reopen-button.d.ts +11 -0
  502. package/dist/opportunities/opportunity-reopen-button.d.ts.map +1 -0
  503. package/dist/opportunities/opportunity-reopen-button.js +20 -0
  504. package/dist/opportunities/opportunity-reopen-button.js.map +1 -0
  505. package/dist/opportunities/opportunity-republish-button.d.ts +7 -0
  506. package/dist/opportunities/opportunity-republish-button.d.ts.map +1 -0
  507. package/dist/opportunities/opportunity-republish-button.js +14 -0
  508. package/dist/opportunities/opportunity-republish-button.js.map +1 -0
  509. package/dist/opportunities/opportunity-resume-draft-button.d.ts +7 -0
  510. package/dist/opportunities/opportunity-resume-draft-button.d.ts.map +1 -0
  511. package/dist/opportunities/opportunity-resume-draft-button.js +7 -0
  512. package/dist/opportunities/opportunity-resume-draft-button.js.map +1 -0
  513. package/dist/opportunities/opportunity-stacked-card.d.ts +20 -0
  514. package/dist/opportunities/opportunity-stacked-card.d.ts.map +1 -0
  515. package/dist/opportunities/opportunity-stacked-card.js +48 -0
  516. package/dist/opportunities/opportunity-stacked-card.js.map +1 -0
  517. package/dist/opportunities/opportunity-stacked-card.stories.d.ts +23 -0
  518. package/dist/opportunities/opportunity-stacked-card.stories.d.ts.map +1 -0
  519. package/dist/opportunities/opportunity-stacked-card.stories.js +143 -0
  520. package/dist/opportunities/opportunity-stacked-card.stories.js.map +1 -0
  521. package/dist/opportunities/opportunity-stacked-list.d.ts +28 -0
  522. package/dist/opportunities/opportunity-stacked-list.d.ts.map +1 -0
  523. package/dist/opportunities/opportunity-stacked-list.js +51 -0
  524. package/dist/opportunities/opportunity-stacked-list.js.map +1 -0
  525. package/dist/opportunities/opportunity-stacked-list.stories.d.ts +16 -0
  526. package/dist/opportunities/opportunity-stacked-list.stories.d.ts.map +1 -0
  527. package/dist/opportunities/opportunity-stacked-list.stories.js +38 -0
  528. package/dist/opportunities/opportunity-stacked-list.stories.js.map +1 -0
  529. package/dist/opportunities/opportunity-view-offers-button.d.ts +7 -0
  530. package/dist/opportunities/opportunity-view-offers-button.d.ts.map +1 -0
  531. package/dist/opportunities/opportunity-view-offers-button.js +8 -0
  532. package/dist/opportunities/opportunity-view-offers-button.js.map +1 -0
  533. package/dist/opportunities/section-field.d.ts +8 -0
  534. package/dist/opportunities/section-field.d.ts.map +1 -0
  535. package/dist/opportunities/section-field.js +9 -0
  536. package/dist/opportunities/section-field.js.map +1 -0
  537. package/dist/opportunities/section-field.stories.d.ts +13 -0
  538. package/dist/opportunities/section-field.stories.d.ts.map +1 -0
  539. package/dist/opportunities/section-field.stories.js +15 -0
  540. package/dist/opportunities/section-field.stories.js.map +1 -0
  541. package/dist/opportunities/two-column-section.d.ts +10 -0
  542. package/dist/opportunities/two-column-section.d.ts.map +1 -0
  543. package/dist/opportunities/two-column-section.js +22 -0
  544. package/dist/opportunities/two-column-section.js.map +1 -0
  545. package/dist/opportunities/two-column-section.stories.d.ts +12 -0
  546. package/dist/opportunities/two-column-section.stories.d.ts.map +1 -0
  547. package/dist/opportunities/two-column-section.stories.js +26 -0
  548. package/dist/opportunities/two-column-section.stories.js.map +1 -0
  549. package/dist/opportunities/types.d.ts +76 -0
  550. package/dist/opportunities/types.d.ts.map +1 -0
  551. package/dist/opportunities/types.js +2 -0
  552. package/dist/opportunities/types.js.map +1 -0
  553. package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.d.ts +2 -0
  554. package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.d.ts.map +1 -0
  555. package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.js +53 -0
  556. package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.js.map +1 -0
  557. package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.d.ts +2 -0
  558. package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.d.ts.map +1 -0
  559. package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.js +32 -0
  560. package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.js.map +1 -0
  561. package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.d.ts +2 -0
  562. package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.d.ts.map +1 -0
  563. package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.js +127 -0
  564. package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.js.map +1 -0
  565. package/dist/opportunities/wizard/__tests__/step-opportunities.test.d.ts +2 -0
  566. package/dist/opportunities/wizard/__tests__/step-opportunities.test.d.ts.map +1 -0
  567. package/dist/opportunities/wizard/__tests__/step-opportunities.test.js +93 -0
  568. package/dist/opportunities/wizard/__tests__/step-opportunities.test.js.map +1 -0
  569. package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.d.ts +2 -0
  570. package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.d.ts.map +1 -0
  571. package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.js +141 -0
  572. package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.js.map +1 -0
  573. package/dist/opportunities/wizard/__tests__/step-review.test.d.ts +2 -0
  574. package/dist/opportunities/wizard/__tests__/step-review.test.d.ts.map +1 -0
  575. package/dist/opportunities/wizard/__tests__/step-review.test.js +80 -0
  576. package/dist/opportunities/wizard/__tests__/step-review.test.js.map +1 -0
  577. package/dist/opportunities/wizard/__tests__/step-tender-basics.test.d.ts +2 -0
  578. package/dist/opportunities/wizard/__tests__/step-tender-basics.test.d.ts.map +1 -0
  579. package/dist/opportunities/wizard/__tests__/step-tender-basics.test.js +76 -0
  580. package/dist/opportunities/wizard/__tests__/step-tender-basics.test.js.map +1 -0
  581. package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.d.ts +2 -0
  582. package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.d.ts.map +1 -0
  583. package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.js +192 -0
  584. package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.js.map +1 -0
  585. package/dist/opportunities/wizard/__tests__/wizard-stepper.test.d.ts +2 -0
  586. package/dist/opportunities/wizard/__tests__/wizard-stepper.test.d.ts.map +1 -0
  587. package/dist/opportunities/wizard/__tests__/wizard-stepper.test.js +61 -0
  588. package/dist/opportunities/wizard/__tests__/wizard-stepper.test.js.map +1 -0
  589. package/dist/opportunities/wizard/opportunity-wizard.d.ts +29 -0
  590. package/dist/opportunities/wizard/opportunity-wizard.d.ts.map +1 -0
  591. package/dist/opportunities/wizard/opportunity-wizard.js +196 -0
  592. package/dist/opportunities/wizard/opportunity-wizard.js.map +1 -0
  593. package/dist/opportunities/wizard/opportunity-wizard.stories.d.ts +12 -0
  594. package/dist/opportunities/wizard/opportunity-wizard.stories.d.ts.map +1 -0
  595. package/dist/opportunities/wizard/opportunity-wizard.stories.js +49 -0
  596. package/dist/opportunities/wizard/opportunity-wizard.stories.js.map +1 -0
  597. package/dist/opportunities/wizard/step-opportunities.d.ts +9 -0
  598. package/dist/opportunities/wizard/step-opportunities.d.ts.map +1 -0
  599. package/dist/opportunities/wizard/step-opportunities.js +80 -0
  600. package/dist/opportunities/wizard/step-opportunities.js.map +1 -0
  601. package/dist/opportunities/wizard/step-pricing-timeline.d.ts +9 -0
  602. package/dist/opportunities/wizard/step-pricing-timeline.d.ts.map +1 -0
  603. package/dist/opportunities/wizard/step-pricing-timeline.js +64 -0
  604. package/dist/opportunities/wizard/step-pricing-timeline.js.map +1 -0
  605. package/dist/opportunities/wizard/step-review.d.ts +9 -0
  606. package/dist/opportunities/wizard/step-review.d.ts.map +1 -0
  607. package/dist/opportunities/wizard/step-review.js +34 -0
  608. package/dist/opportunities/wizard/step-review.js.map +1 -0
  609. package/dist/opportunities/wizard/step-tender-basics.d.ts +16 -0
  610. package/dist/opportunities/wizard/step-tender-basics.d.ts.map +1 -0
  611. package/dist/opportunities/wizard/step-tender-basics.js +39 -0
  612. package/dist/opportunities/wizard/step-tender-basics.js.map +1 -0
  613. package/dist/opportunities/wizard/use-wizard-draft.d.ts +41 -0
  614. package/dist/opportunities/wizard/use-wizard-draft.d.ts.map +1 -0
  615. package/dist/opportunities/wizard/use-wizard-draft.js +214 -0
  616. package/dist/opportunities/wizard/use-wizard-draft.js.map +1 -0
  617. package/dist/opportunities/wizard/wizard-stepper.d.ts +20 -0
  618. package/dist/opportunities/wizard/wizard-stepper.d.ts.map +1 -0
  619. package/dist/opportunities/wizard/wizard-stepper.js +26 -0
  620. package/dist/opportunities/wizard/wizard-stepper.js.map +1 -0
  621. package/dist/opportunities/wizard/wizard-stepper.stories.d.ts +22 -0
  622. package/dist/opportunities/wizard/wizard-stepper.stories.d.ts.map +1 -0
  623. package/dist/opportunities/wizard/wizard-stepper.stories.js +47 -0
  624. package/dist/opportunities/wizard/wizard-stepper.stories.js.map +1 -0
  625. package/dist/opportunities/wizard/wizard.types.d.ts +176 -0
  626. package/dist/opportunities/wizard/wizard.types.d.ts.map +1 -0
  627. package/dist/opportunities/wizard/wizard.types.js +62 -0
  628. package/dist/opportunities/wizard/wizard.types.js.map +1 -0
  629. package/dist/org/invite-member-dialog.stories.d.ts +24 -0
  630. package/dist/org/invite-member-dialog.stories.d.ts.map +1 -0
  631. package/dist/org/invite-member-dialog.stories.js +34 -0
  632. package/dist/org/invite-member-dialog.stories.js.map +1 -0
  633. package/dist/org/team-hero-banner.stories.d.ts +25 -0
  634. package/dist/org/team-hero-banner.stories.d.ts.map +1 -0
  635. package/dist/org/team-hero-banner.stories.js +53 -0
  636. package/dist/org/team-hero-banner.stories.js.map +1 -0
  637. package/dist/org/team-member-menu.stories.d.ts +19 -0
  638. package/dist/org/team-member-menu.stories.d.ts.map +1 -0
  639. package/dist/org/team-member-menu.stories.js +27 -0
  640. package/dist/org/team-member-menu.stories.js.map +1 -0
  641. package/dist/org/team-member-row.stories.d.ts +26 -0
  642. package/dist/org/team-member-row.stories.d.ts.map +1 -0
  643. package/dist/org/team-member-row.stories.js +61 -0
  644. package/dist/org/team-member-row.stories.js.map +1 -0
  645. package/dist/org/team-pending-row.stories.d.ts +23 -0
  646. package/dist/org/team-pending-row.stories.d.ts.map +1 -0
  647. package/dist/org/team-pending-row.stories.js +45 -0
  648. package/dist/org/team-pending-row.stories.js.map +1 -0
  649. package/package.json +13 -4
  650. package/src/offer/offer-document.print.css +72 -0
  651. package/src/theme/tokens.css +78 -0
  652. package/dist/components/sidebar.d.ts +0 -68
  653. package/dist/components/sidebar.d.ts.map +0 -1
  654. package/dist/components/sidebar.js +0 -208
  655. package/dist/components/sidebar.js.map +0 -1
@@ -0,0 +1,53 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { describe, it, expect, beforeEach, afterEach, vi } from "vitest";
3
+ import { render } from "@testing-library/react";
4
+ import { axe } from "vitest-axe";
5
+ import { toHaveNoViolations } from "vitest-axe/matchers";
6
+ import { OpportunityWizard } from "../opportunity-wizard";
7
+ // @ts-expect-error vitest-axe types
8
+ expect.extend({ toHaveNoViolations });
9
+ beforeEach(() => {
10
+ // Polyfill localStorage (Node 25 ships a no-op).
11
+ const store = new Map();
12
+ const storage = {
13
+ get length() { return store.size; },
14
+ clear() { store.clear(); },
15
+ getItem(k) { return store.get(k) ?? null; },
16
+ key(i) { return Array.from(store.keys())[i] ?? null; },
17
+ removeItem(k) { store.delete(k); },
18
+ setItem(k, v) { store.set(k, v); },
19
+ };
20
+ Object.defineProperty(globalThis, "localStorage", { value: storage, configurable: true, writable: true });
21
+ Object.defineProperty(window, "localStorage", { value: storage, configurable: true, writable: true });
22
+ Element.prototype.hasPointerCapture ??= () => false;
23
+ Element.prototype.setPointerCapture ??= () => { };
24
+ Element.prototype.releasePointerCapture ??= () => { };
25
+ Element.prototype.scrollIntoView ??= () => { };
26
+ vi.stubGlobal("requestAnimationFrame", (cb) => { cb(0); return 0; });
27
+ vi.stubGlobal("cancelAnimationFrame", () => { });
28
+ });
29
+ afterEach(() => { vi.unstubAllGlobals(); });
30
+ const cbs = {
31
+ createDraft: async () => ({ id: "x", version: 1 }),
32
+ patchDraft: async () => ({ version: 2 }),
33
+ publishDraft: async () => ({ tenderId: "t" }),
34
+ onClose: () => { },
35
+ };
36
+ describe("a11y: OpportunityWizard", () => {
37
+ it("DraftMode Step 1 has no violations", async () => {
38
+ const { container } = render(_jsx(OpportunityWizard, { mode: "draft", ...cbs }));
39
+ // @ts-expect-error vitest-axe types
40
+ expect(await axe(container)).toHaveNoViolations();
41
+ });
42
+ it("EditMode Step 1 has no violations", async () => {
43
+ const { container } = render(_jsx(OpportunityWizard, { mode: "edit", ...cbs, initialDraft: {
44
+ id: "t-1",
45
+ name: "Existing Tender",
46
+ targetCountry: "SE",
47
+ opportunities: [{ clientId: "c1", name: "Op 1", priceMin: 8, priceMax: 12, submissionDeadline: new Date("2026-06-01") }],
48
+ }, initialVersion: 1 }));
49
+ // @ts-expect-error vitest-axe types
50
+ expect(await axe(container)).toHaveNoViolations();
51
+ });
52
+ });
53
+ //# sourceMappingURL=opportunity-wizard.a11y.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opportunity-wizard.a11y.test.js","sourceRoot":"","sources":["../../../../src/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,oCAAoC;AACpC,MAAM,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC,CAAC;AAEtC,UAAU,CAAC,GAAG,EAAE;IACd,iDAAiD;IACjD,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IACxC,MAAM,OAAO,GAAY;QACvB,IAAI,MAAM,KAAK,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;QACnC,KAAK,KAAK,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAC1B,OAAO,CAAC,CAAS,IAAI,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;QACnD,GAAG,CAAC,CAAS,IAAI,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,CAAC,SAAS,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=wizard-stepper.a11y.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wizard-stepper.a11y.test.d.ts","sourceRoot":"","sources":["../../../../src/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { describe, it, expect } from "vitest";
3
+ import { render } from "@testing-library/react";
4
+ import { axe } from "vitest-axe";
5
+ import { toHaveNoViolations } from "vitest-axe/matchers";
6
+ import { WizardStepper } from "../wizard-stepper";
7
+ // @ts-expect-error vitest-axe types
8
+ expect.extend({ toHaveNoViolations });
9
+ const steps = [
10
+ { id: "tender", label: "Tender" },
11
+ { id: "opportunities", label: "Opportunities" },
12
+ { id: "pricing", label: "Pricing" },
13
+ { id: "review", label: "Review" },
14
+ ];
15
+ describe("a11y: WizardStepper", () => {
16
+ it("AllPending has no violations", async () => {
17
+ const { container } = render(_jsx(WizardStepper, { steps: steps, currentIndex: 0, completedIndexes: [], onJumpBack: () => { } }));
18
+ // @ts-expect-error vitest-axe types
19
+ expect(await axe(container)).toHaveNoViolations();
20
+ });
21
+ it("SecondActive has no violations", async () => {
22
+ const { container } = render(_jsx(WizardStepper, { steps: steps, currentIndex: 1, completedIndexes: [0], onJumpBack: () => { }, activeSubStatus: "Autosaved 2s ago" }));
23
+ // @ts-expect-error vitest-axe types
24
+ expect(await axe(container)).toHaveNoViolations();
25
+ });
26
+ it("AllComplete has no violations", async () => {
27
+ const { container } = render(_jsx(WizardStepper, { steps: steps, currentIndex: 3, completedIndexes: [0, 1, 2, 3], onJumpBack: () => { } }));
28
+ // @ts-expect-error vitest-axe types
29
+ expect(await axe(container)).toHaveNoViolations();
30
+ });
31
+ });
32
+ //# sourceMappingURL=wizard-stepper.a11y.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wizard-stepper.a11y.test.js","sourceRoot":"","sources":["../../../../src/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,oCAAoC;AACpC,MAAM,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC,CAAC;AAEtC,MAAM,KAAK,GAAG;IACZ,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;IACjC,EAAE,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;IAC/C,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACnC,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;CAClC,CAAC;AAEF,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC5C,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC1B,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,gBAAgB,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,GAAE,CAAC,GAAI,CAC7F,CAAC;QACF,oCAAoC;QACpC,MAAM,CAAC,MAAM,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gCAAgC,EAAE,KAAK,IAAI,EAAE;QAC9C,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC1B,KAAC,aAAa,IACZ,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,CAAC,EACf,gBAAgB,EAAE,CAAC,CAAC,CAAC,EACrB,UAAU,EAAE,GAAG,EAAE,GAAE,CAAC,EACpB,eAAe,EAAC,kBAAkB,GAClC,CACH,CAAC;QACF,oCAAoC;QACpC,MAAM,CAAC,MAAM,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+BAA+B,EAAE,KAAK,IAAI,EAAE;QAC7C,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC1B,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,GAAE,CAAC,GAAI,CACvG,CAAC;QACF,oCAAoC;QACpC,MAAM,CAAC,MAAM,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=opportunity-wizard.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opportunity-wizard.test.d.ts","sourceRoot":"","sources":["../../../../src/opportunities/wizard/__tests__/opportunity-wizard.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,127 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
3
+ import { render, screen, waitFor } from "@testing-library/react";
4
+ import userEvent from "@testing-library/user-event";
5
+ import { OpportunityWizard } from "../opportunity-wizard";
6
+ describe("OpportunityWizard", () => {
7
+ // Node 25 ships a no-op localStorage; patch to a working Map-backed Storage.
8
+ beforeEach(() => {
9
+ const store = new Map();
10
+ const storage = {
11
+ get length() { return store.size; },
12
+ clear() { store.clear(); },
13
+ getItem(k) { return store.get(k) ?? null; },
14
+ key(i) { return Array.from(store.keys())[i] ?? null; },
15
+ removeItem(k) { store.delete(k); },
16
+ setItem(k, v) { store.set(k, v); },
17
+ };
18
+ Object.defineProperty(globalThis, "localStorage", { value: storage, configurable: true, writable: true });
19
+ Object.defineProperty(window, "localStorage", { value: storage, configurable: true, writable: true });
20
+ // Radix jsdom mocks (stepper + dialogs)
21
+ Element.prototype.hasPointerCapture ??= () => false;
22
+ Element.prototype.setPointerCapture ??= () => { };
23
+ Element.prototype.releasePointerCapture ??= () => { };
24
+ Element.prototype.scrollIntoView ??= () => { };
25
+ vi.stubGlobal("requestAnimationFrame", (cb) => { cb(0); return 0; });
26
+ vi.stubGlobal("cancelAnimationFrame", () => { });
27
+ });
28
+ afterEach(() => { vi.unstubAllGlobals(); });
29
+ const baseCallbacks = {
30
+ createDraft: vi.fn().mockResolvedValue({ id: "draft-1", version: 1 }),
31
+ patchDraft: vi.fn().mockResolvedValue({ version: 2 }),
32
+ publishDraft: vi.fn().mockResolvedValue({ tenderId: "tender-1" }),
33
+ onClose: vi.fn(),
34
+ };
35
+ it("renders Step 1 by default and the stepper shows Step 1 as active", () => {
36
+ render(_jsx(OpportunityWizard, { mode: "draft", ...baseCallbacks }));
37
+ expect(screen.getByRole("button", { name: /step 1 of 4/i })).toHaveAttribute("aria-current", "step");
38
+ expect(screen.getByLabelText(/tender name/i)).toBeInTheDocument();
39
+ });
40
+ it("Continue button is aria-disabled='true' on Step 1 until required fields are valid", async () => {
41
+ const user = userEvent.setup();
42
+ render(_jsx(OpportunityWizard, { mode: "draft", ...baseCallbacks }));
43
+ const continueBtn = screen.getByRole("button", { name: /continue/i });
44
+ expect(continueBtn).toHaveAttribute("aria-disabled", "true");
45
+ await user.type(screen.getByLabelText(/tender name/i), "Test Tender");
46
+ await user.type(screen.getByLabelText(/target country/i), "SE");
47
+ await user.tab(); // blur to trigger RHF onBlur validation
48
+ await waitFor(() => expect(continueBtn).not.toHaveAttribute("aria-disabled", "true"));
49
+ });
50
+ it("edit-mode renders the 'Editing published' banner + 'Save changes' button (no Publish)", () => {
51
+ render(_jsx(OpportunityWizard, { mode: "edit", ...baseCallbacks, initialDraft: {
52
+ id: "t-1",
53
+ name: "Existing",
54
+ targetCountry: "SE",
55
+ opportunities: [{ clientId: "c1", name: "Op 1" }],
56
+ }, initialVersion: 1 }));
57
+ expect(screen.getByText(/editing published opportunity/i)).toBeInTheDocument();
58
+ expect(screen.getByRole("button", { name: /save changes/i })).toBeInTheDocument();
59
+ expect(screen.queryByRole("button", { name: /^publish$/i })).not.toBeInTheDocument();
60
+ });
61
+ it("edit-mode does NOT fire patchDraft on field changes (disableAutosave)", async () => {
62
+ const user = userEvent.setup();
63
+ const patchDraft = vi.fn();
64
+ render(_jsx(OpportunityWizard, { mode: "edit", createDraft: async () => ({ id: "x", version: 1 }), patchDraft: patchDraft, publishDraft: async () => ({ tenderId: "t" }), onClose: () => { }, initialDraft: {
65
+ id: "t-1",
66
+ name: "Existing",
67
+ targetCountry: "SE",
68
+ opportunities: [{ clientId: "c1", name: "Op" }],
69
+ }, initialVersion: 1 }));
70
+ await user.type(screen.getByLabelText(/tender name/i), " (edited)");
71
+ await new Promise(r => setTimeout(r, 50)); // wait past any debounce
72
+ expect(patchDraft).not.toHaveBeenCalled();
73
+ });
74
+ it("Escape key fires onClose when there is nothing unsaved (no confirm dialog)", async () => {
75
+ const user = userEvent.setup();
76
+ const onClose = vi.fn();
77
+ render(_jsx(OpportunityWizard, { mode: "draft", ...baseCallbacks, onClose: onClose }));
78
+ await user.keyboard("{Escape}");
79
+ expect(onClose).toHaveBeenCalled();
80
+ });
81
+ it("publishes with an idempotency key — idempotency-key passed to publishDraft is a UUID-like string", async () => {
82
+ const user = userEvent.setup();
83
+ const publishDraft = vi.fn().mockResolvedValue({ tenderId: "t-new" });
84
+ const onPublished = vi.fn();
85
+ const patchDraft = vi.fn().mockResolvedValue({ version: 2 });
86
+ render(_jsx(OpportunityWizard, { mode: "draft", createDraft: async () => ({ id: "d-1", version: 1 }), patchDraft: patchDraft, publishDraft: publishDraft, onClose: () => { }, onPublished: onPublished, initialDraft: {
87
+ id: "d-1",
88
+ name: "My Tender",
89
+ targetCountry: "SE",
90
+ opportunities: [
91
+ { clientId: "c1", name: "Op 1", priceMin: 5, priceMax: 10, submissionDeadline: new Date(Date.now() + 30 * 86400_000) },
92
+ ],
93
+ }, initialVersion: 1 }));
94
+ // Click Continue up to Step 4 (may be disabled initially; blur to trigger validation).
95
+ await user.tab();
96
+ for (let i = 0; i < 3; i++) {
97
+ const btn = screen.queryByRole("button", { name: /continue/i });
98
+ if (btn && btn.getAttribute("aria-disabled") !== "true") {
99
+ await user.click(btn);
100
+ }
101
+ else {
102
+ // If Continue is gated, bail — this test is about publish's idempotency key shape, not UI state transitions.
103
+ // Jump directly to Step 4 via the stepper if available.
104
+ const step4 = screen.queryByRole("button", { name: /step 4 of 4/i });
105
+ if (step4 && step4.getAttribute("aria-disabled") !== "true") {
106
+ await user.click(step4);
107
+ }
108
+ break;
109
+ }
110
+ }
111
+ const publishBtn = screen.queryByRole("button", { name: /^publish$/i });
112
+ // If we haven't made it to Step 4, the test can't assert — skip early with a known pattern.
113
+ if (!publishBtn) {
114
+ // Assert the wizard at least got a publish-capable state; if not, this is a different kind of failure.
115
+ expect(publishBtn).toBeTruthy();
116
+ return;
117
+ }
118
+ await user.click(publishBtn);
119
+ await waitFor(() => expect(publishDraft).toHaveBeenCalled());
120
+ const [idArg, keyArg] = publishDraft.mock.calls[0];
121
+ expect(idArg).toBe("d-1");
122
+ expect(typeof keyArg).toBe("string");
123
+ expect(keyArg.length).toBeGreaterThan(10);
124
+ await waitFor(() => expect(onPublished).toHaveBeenCalledWith("t-new"));
125
+ });
126
+ });
127
+ //# sourceMappingURL=opportunity-wizard.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opportunity-wizard.test.js","sourceRoot":"","sources":["../../../../src/opportunities/wizard/__tests__/opportunity-wizard.test.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,6EAA6E;IAC7E,UAAU,CAAC,GAAG,EAAE;QACd,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;QACxC,MAAM,OAAO,GAAY;YACvB,IAAI,MAAM,KAAK,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;YACnC,KAAK,KAAK,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;YAC1B,OAAO,CAAC,CAAS,IAAI,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;YACnD,GAAG,CAAC,CAAS,IAAI,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;YAC9D,UAAU,CAAC,CAAS,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1C,OAAO,CAAC,CAAS,EAAE,CAAS,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;SACnD,CAAC;QACF,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,O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AAC,CAAC;gBACrE,IAAI,KAAK,IAAI,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,MAAM,EAAE,CAAC;oBAC5D,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBAC1B,CAAC;gBACD,MAAM;YACR,CAAC;QACH,CAAC;QACD,MAAM,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;QACxE,4FAA4F;QAC5F,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,uGAAuG;YACvG,MAAM,CAAC,UAAU,CAAC,CAAC,UAAU,EAAE,CAAC;YAChC,OAAO;QACT,CAAC;QACD,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC7B,MAAM,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,gBAAgB,EAAE,CAAC,CAAC;QAC7D,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACnD,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAC1C,MAAM,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAC;IACzE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=step-opportunities.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-opportunities.test.d.ts","sourceRoot":"","sources":["../../../../src/opportunities/wizard/__tests__/step-opportunities.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,93 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { describe, it, expect, vi } from "vitest";
3
+ import { render, screen } from "@testing-library/react";
4
+ import userEvent from "@testing-library/user-event";
5
+ import { StepOpportunities } from "../step-opportunities";
6
+ const makeItem = (clientId, overrides = {}) => ({
7
+ clientId,
8
+ name: "",
9
+ ...overrides,
10
+ });
11
+ describe("StepOpportunities", () => {
12
+ it("renders one card per item below the virtualization threshold (plain render)", () => {
13
+ const items = [makeItem("a", { name: "Alpha" }), makeItem("b", { name: "Beta" })];
14
+ render(_jsx(StepOpportunities, { items: items, onChange: () => { } }));
15
+ expect(screen.getByText(/alpha/i)).toBeInTheDocument();
16
+ expect(screen.getByText(/beta/i)).toBeInTheDocument();
17
+ });
18
+ it("adding an opportunity emits onChange with a new item appended", async () => {
19
+ const user = userEvent.setup();
20
+ const items = [makeItem("a", { name: "Alpha" })];
21
+ const onChange = vi.fn();
22
+ render(_jsx(StepOpportunities, { items: items, onChange: onChange }));
23
+ await user.click(screen.getByRole("button", { name: /add another opportunity/i }));
24
+ expect(onChange).toHaveBeenCalled();
25
+ const next = onChange.mock.calls.at(-1)[0];
26
+ expect(next.length).toBe(2);
27
+ expect(next[0].clientId).toBe("a");
28
+ expect(next[1].clientId).toBeTruthy(); // new unique clientId generated
29
+ });
30
+ it("removing an opportunity when only one remains is not possible (no remove button)", () => {
31
+ const items = [makeItem("a", { name: "Solo" })];
32
+ render(_jsx(StepOpportunities, { items: items, onChange: () => { } }));
33
+ expect(screen.queryByRole("button", { name: /remove opportunity/i })).not.toBeInTheDocument();
34
+ });
35
+ it("removing an opportunity when 2+ exist emits onChange minus that item", async () => {
36
+ const user = userEvent.setup();
37
+ const items = [makeItem("a", { name: "Alpha" }), makeItem("b", { name: "Beta" })];
38
+ const onChange = vi.fn();
39
+ render(_jsx(StepOpportunities, { items: items, onChange: onChange }));
40
+ const removes = screen.getAllByRole("button", { name: /remove opportunity/i });
41
+ expect(removes.length).toBe(2);
42
+ await user.click(removes[0]);
43
+ const next = onChange.mock.calls.at(-1)[0];
44
+ expect(next.length).toBe(1);
45
+ expect(next[0].clientId).toBe("b");
46
+ });
47
+ it("onValidityChange(false) when any item has an empty name", () => {
48
+ const onValidityChange = vi.fn();
49
+ const items = [makeItem("a", { name: "" })];
50
+ render(_jsx(StepOpportunities, { items: items, onChange: () => { }, onValidityChange: onValidityChange }));
51
+ expect(onValidityChange).toHaveBeenCalledWith(false);
52
+ });
53
+ it("onValidityChange(true) when all items have names + min 1 item", () => {
54
+ const onValidityChange = vi.fn();
55
+ const items = [makeItem("a", { name: "Alpha" }), makeItem("b", { name: "Beta" })];
56
+ render(_jsx(StepOpportunities, { items: items, onChange: () => { }, onValidityChange: onValidityChange }));
57
+ // latest call should be with true
58
+ const latest = onValidityChange.mock.calls.at(-1);
59
+ expect(latest?.[0]).toBe(true);
60
+ });
61
+ it("onValidityChange(false) when items.length === 0 (min 1 required)", () => {
62
+ const onValidityChange = vi.fn();
63
+ render(_jsx(StepOpportunities, { items: [], onChange: () => { }, onValidityChange: onValidityChange }));
64
+ expect(onValidityChange).toHaveBeenCalledWith(false);
65
+ });
66
+ it("at 20 items, renders the virtualized container (has max-h-[60vh] overflow-auto)", () => {
67
+ const items = Array.from({ length: 20 }).map((_, i) => makeItem(`x${i}`, { name: `Item ${i}` }));
68
+ const { container } = render(_jsx(StepOpportunities, { items: items, onChange: () => { } }));
69
+ // Virtualized container: look for a scroll wrapper with overflow-auto + max-h-[60vh]
70
+ const scrollEl = container.querySelector(".max-h-\\[60vh\\]");
71
+ expect(scrollEl).toBeTruthy();
72
+ // Plain-render branch would NOT have the virtualized scroll wrapper
73
+ });
74
+ it("at 19 items, does NOT use the virtualized wrapper", () => {
75
+ const items = Array.from({ length: 19 }).map((_, i) => makeItem(`x${i}`, { name: `Item ${i}` }));
76
+ const { container } = render(_jsx(StepOpportunities, { items: items, onChange: () => { } }));
77
+ const scrollEl = container.querySelector(".max-h-\\[60vh\\]");
78
+ expect(scrollEl).toBeNull();
79
+ });
80
+ it("editing a card field emits onChange with the patched item", async () => {
81
+ const user = userEvent.setup();
82
+ const items = [makeItem("a", { name: "Alpha" })];
83
+ const onChange = vi.fn();
84
+ render(_jsx(StepOpportunities, { items: items, onChange: onChange }));
85
+ // Assume the card is expanded by default; Name field inside is editable.
86
+ const nameInput = screen.getByDisplayValue("Alpha");
87
+ await user.clear(nameInput);
88
+ await user.type(nameInput, "Alpha Prime");
89
+ const next = onChange.mock.calls.at(-1)[0];
90
+ expect(next[0].name).toBe("Alpha Prime");
91
+ });
92
+ });
93
+ //# sourceMappingURL=step-opportunities.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-opportunities.test.js","sourceRoot":"","sources":["../../../../src/opportunities/wizard/__tests__/step-opportunities.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,MAAM,QAAQ,GAAG,CAAC,QAAgB,EAAE,YAAuC,EAAE,EAAoB,EAAE,CAAC,CAAC;IACnG,QAAQ;IACR,IAAI,EAAE,EAAE;IACR,GAAG,SAAS;CACb,CAAC,CAAC;AAEH,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,6EAA6E,EAAE,GAAG,EAAE;QACrF,MAAM,KAAK,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;QAClF,MAAM,CAAC,KAA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CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=step-pricing-timeline.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-pricing-timeline.test.d.ts","sourceRoot":"","sources":["../../../../src/opportunities/wizard/__tests__/step-pricing-timeline.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,141 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
3
+ import { render, screen, fireEvent } from "@testing-library/react";
4
+ import userEvent from "@testing-library/user-event";
5
+ import { StepPricingTimeline } from "../step-pricing-timeline";
6
+ const baseItem = (clientId, overrides = {}) => ({
7
+ clientId, name: `Item ${clientId}`, ...overrides,
8
+ });
9
+ const futureDate = new Date("2026-12-01T12:00:00Z");
10
+ const _earlierDate = new Date("2026-10-01T12:00:00Z");
11
+ describe("StepPricingTimeline", () => {
12
+ // Radix Tabs uses pointer-capture + scrollIntoView + RAF — mock them for jsdom.
13
+ beforeEach(() => {
14
+ Element.prototype.hasPointerCapture ??= () => false;
15
+ Element.prototype.setPointerCapture ??= () => { };
16
+ Element.prototype.releasePointerCapture ??= () => { };
17
+ Element.prototype.scrollIntoView ??= () => { };
18
+ vi.stubGlobal("requestAnimationFrame", (cb) => { cb(0); return 0; });
19
+ vi.stubGlobal("cancelAnimationFrame", () => { });
20
+ });
21
+ afterEach(() => { vi.unstubAllGlobals(); });
22
+ it("renders the empty-state message when items is []", () => {
23
+ render(_jsx(StepPricingTimeline, { items: [], onChange: () => { } }));
24
+ expect(screen.getByText(/add at least one opportunity in step 2/i)).toBeInTheDocument();
25
+ });
26
+ it("renders pricing fields for a single opportunity (no tabs needed)", () => {
27
+ const items = [baseItem("a")];
28
+ render(_jsx(StepPricingTimeline, { items: items, onChange: () => { } }));
29
+ expect(screen.getByLabelText(/price min/i)).toBeInTheDocument();
30
+ expect(screen.getByLabelText(/price max/i)).toBeInTheDocument();
31
+ expect(screen.getByLabelText(/submission deadline/i)).toBeInTheDocument();
32
+ // For a single opportunity the "Fill from opportunity 1" button should be hidden.
33
+ expect(screen.queryByRole("button", { name: /fill from opportunity 1/i })).not.toBeInTheDocument();
34
+ });
35
+ it("renders tabs when items.length >= 2; Radix Tabs activationMode='manual' (arrow key does NOT activate)", async () => {
36
+ const user = userEvent.setup();
37
+ const items = [baseItem("a"), baseItem("b"), baseItem("c")];
38
+ render(_jsx(StepPricingTimeline, { items: items, onChange: () => { } }));
39
+ const tabA = screen.getByRole("tab", { name: /item a/i });
40
+ expect(tabA).toBeInTheDocument();
41
+ expect(screen.getByRole("tab", { name: /item b/i })).toBeInTheDocument();
42
+ expect(screen.getByRole("tab", { name: /item c/i })).toBeInTheDocument();
43
+ // Focus tab A, press ArrowRight -> focus moves to tab B but B is NOT activated (activationMode="manual")
44
+ tabA.focus();
45
+ await user.keyboard("{ArrowRight}");
46
+ // Tab B should be focused but not have data-state="active" — verify by checking item A's fields are still rendered.
47
+ expect(screen.getByLabelText(/price min/i)).toBeInTheDocument();
48
+ });
49
+ it("shows red error message when priceMin > priceMax in the current tab", async () => {
50
+ const _user = userEvent.setup();
51
+ const items = [baseItem("a")];
52
+ render(_jsx(StepPricingTimeline, { items: items, onChange: () => { } }));
53
+ const minInput = screen.getByLabelText(/price min/i);
54
+ const maxInput = screen.getByLabelText(/price max/i);
55
+ fireEvent.change(minInput, { target: { value: "100" } });
56
+ fireEvent.change(maxInput, { target: { value: "50" } });
57
+ expect(await screen.findByText(/maximum price must be/i)).toBeInTheDocument();
58
+ });
59
+ it("shows red error when sampleDeadline > submissionDeadline", async () => {
60
+ const items = [baseItem("a")];
61
+ render(_jsx(StepPricingTimeline, { items: items, onChange: () => { } }));
62
+ const submissionInput = screen.getByLabelText(/submission deadline/i);
63
+ const sampleInput = screen.getByLabelText(/sample deadline/i);
64
+ fireEvent.change(submissionInput, { target: { value: "2026-10-01" } });
65
+ fireEvent.change(sampleInput, { target: { value: "2026-12-01" } });
66
+ expect(await screen.findByText(/sample deadline must be on or before/i)).toBeInTheDocument();
67
+ });
68
+ it("Fill from opportunity 1 copies pricing + timeline fields to all other opportunities (after confirm)", async () => {
69
+ const user = userEvent.setup();
70
+ const items = [
71
+ baseItem("a", { priceMin: 10, priceMax: 20, currency: "EUR", submissionDeadline: futureDate, targetMargin: 0.25 }),
72
+ baseItem("b"),
73
+ baseItem("c"),
74
+ ];
75
+ const onChange = vi.fn();
76
+ // window.confirm returns true so the bulk copy proceeds.
77
+ const confirmSpy = vi.spyOn(window, "confirm").mockReturnValue(true);
78
+ render(_jsx(StepPricingTimeline, { items: items, onChange: onChange }));
79
+ await user.click(screen.getByRole("button", { name: /fill from opportunity 1/i }));
80
+ expect(confirmSpy).toHaveBeenCalled();
81
+ // Latest onChange should have items[1] + items[2] with same pricing/timeline fields as items[0].
82
+ const next = onChange.mock.calls.at(-1)[0];
83
+ expect(next[0].clientId).toBe("a");
84
+ expect(next[1].priceMin).toBe(10);
85
+ expect(next[1].priceMax).toBe(20);
86
+ expect(next[1].currency).toBe("EUR");
87
+ expect(next[1].targetMargin).toBe(0.25);
88
+ expect(next[2].priceMin).toBe(10);
89
+ expect(next[2].priceMax).toBe(20);
90
+ // Names are preserved (not copied):
91
+ expect(next[1].name).toBe("Item b");
92
+ expect(next[2].name).toBe("Item c");
93
+ confirmSpy.mockRestore();
94
+ });
95
+ it("Fill from opportunity 1 does NOT overwrite items when user cancels confirm dialog", async () => {
96
+ const user = userEvent.setup();
97
+ const items = [
98
+ baseItem("a", { priceMin: 10, priceMax: 20 }),
99
+ baseItem("b"),
100
+ ];
101
+ const onChange = vi.fn();
102
+ const confirmSpy = vi.spyOn(window, "confirm").mockReturnValue(false);
103
+ render(_jsx(StepPricingTimeline, { items: items, onChange: onChange }));
104
+ await user.click(screen.getByRole("button", { name: /fill from opportunity 1/i }));
105
+ expect(onChange).not.toHaveBeenCalled();
106
+ confirmSpy.mockRestore();
107
+ });
108
+ it("per-tab completion dot: emerald-600 when all required fields filled, amber-400 when missing", () => {
109
+ const items = [
110
+ baseItem("a", { priceMin: 10, priceMax: 20, submissionDeadline: futureDate }), // complete
111
+ baseItem("b", { priceMin: 10 }), // incomplete
112
+ ];
113
+ const { container: _container } = render(_jsx(StepPricingTimeline, { items: items, onChange: () => { } }));
114
+ // Find the dots inside each tab trigger.
115
+ const tabs = screen.getAllByRole("tab");
116
+ const dotA = tabs[0].querySelector("[aria-hidden]");
117
+ const dotB = tabs[1].querySelector("[aria-hidden]");
118
+ expect(dotA?.className).toContain("emerald-600");
119
+ expect(dotB?.className).toContain("amber-400");
120
+ });
121
+ it("onValidityChange(true) only when all items pass isComplete", () => {
122
+ const items = [
123
+ baseItem("a", { priceMin: 10, priceMax: 20, submissionDeadline: futureDate }),
124
+ baseItem("b", { priceMin: 5, priceMax: 15, submissionDeadline: futureDate }),
125
+ ];
126
+ const onValidityChange = vi.fn();
127
+ render(_jsx(StepPricingTimeline, { items: items, onChange: () => { }, onValidityChange: onValidityChange }));
128
+ const latest = onValidityChange.mock.calls.at(-1);
129
+ expect(latest?.[0]).toBe(true);
130
+ });
131
+ it("onValidityChange(false) when any item has priceMin > priceMax", () => {
132
+ const items = [
133
+ baseItem("a", { priceMin: 50, priceMax: 10, submissionDeadline: futureDate }),
134
+ ];
135
+ const onValidityChange = vi.fn();
136
+ render(_jsx(StepPricingTimeline, { items: items, onChange: () => { }, onValidityChange: onValidityChange }));
137
+ const latest = onValidityChange.mock.calls.at(-1);
138
+ expect(latest?.[0]).toBe(false);
139
+ });
140
+ });
141
+ //# sourceMappingURL=step-pricing-timeline.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-pricing-timeline.test.js","sourceRoot":"","sources":["../../../../src/opportunities/wizard/__tests__/step-pricing-timeline.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzE,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AK,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,gBAAgB,EAAE,gBAAgB,GAAI,CAAC,CAAC;QACtG,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+DAA+D,EAAE,GAAG,EAAE;QACvE,MAAM,KAAK,GAAG;YACZ,QAAQ,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC;SAC9E,CAAC;QACF,MAAM,gBAAgB,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QACjC,MAAM,CAAC,KAAC,mBAAmB,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,gBAAgB,EAAE,gBAAgB,GAAI,CAAC,CAAC;QACtG,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=step-review.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-review.test.d.ts","sourceRoot":"","sources":["../../../../src/opportunities/wizard/__tests__/step-review.test.tsx"],"names":[],"mappings":""}