@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 @@
1
+ {"version":3,"file":"step-tender-basics.d.ts","sourceRoot":"","sources":["../../../src/opportunities/wizard/step-tender-basics.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,QAAA,MAAM,UAAU;;;;iBAId,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEhE,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAChD,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,sBAAsB,CAAC,KAAK,IAAI,CAAC;IAC7D,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,SAAS,EAAE,EAAE,qBAAqB,2CA8E/G"}
@@ -0,0 +1,39 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { useForm } from "react-hook-form";
4
+ import { zodResolver } from "@hookform/resolvers/zod";
5
+ import { z } from "zod";
6
+ import { CountryFlag } from "../../components/country-flag";
7
+ import { cn } from "../../lib/utils";
8
+ const stepSchema = z.object({
9
+ name: z.string().min(2, "Give the tender a name (min 2 chars).").max(200, "Name must be 200 chars or fewer."),
10
+ targetCountry: z.string().length(2, "Select a 2-letter ISO country code."),
11
+ instructions: z.string().max(2000).optional(),
12
+ });
13
+ export function StepTenderBasics({ initialValues, onChange, onValidityChange, className }) {
14
+ const { register, watch, formState } = useForm({
15
+ resolver: zodResolver(stepSchema),
16
+ defaultValues: {
17
+ name: initialValues?.name ?? "",
18
+ targetCountry: initialValues?.targetCountry ?? "",
19
+ instructions: initialValues?.instructions ?? "",
20
+ },
21
+ mode: "onBlur",
22
+ });
23
+ // Emit changes upward on every field change (for autosave at parent level).
24
+ React.useEffect(() => {
25
+ // eslint-disable-next-line react-hooks/incompatible-library -- react-hook-form's watch() is a known exception; it returns a subscription not a memoized function
26
+ const sub = watch((values) => {
27
+ onChange({
28
+ name: values.name,
29
+ targetCountry: values.targetCountry,
30
+ instructions: values.instructions,
31
+ });
32
+ });
33
+ return () => sub.unsubscribe();
34
+ }, [watch, onChange]);
35
+ React.useEffect(() => { onValidityChange?.(formState.isValid); }, [formState.isValid, onValidityChange]);
36
+ const currentCountry = watch("targetCountry");
37
+ return (_jsxs("form", { className: cn("flex flex-col gap-5 max-w-xl", className), onSubmit: (e) => e.preventDefault(), children: [_jsxs("div", { children: [_jsx("label", { htmlFor: "tender-name", className: "block text-sm font-medium", children: "Tender name" }), _jsx("input", { id: "tender-name", type: "text", ...register("name"), "aria-invalid": !!formState.errors.name || undefined, "aria-describedby": formState.errors.name ? "tender-name-err" : undefined, className: "mt-1 w-full rounded-md border border-border bg-background px-3 py-2 text-sm", placeholder: "e.g. Systembolaget Q2 2026 RFP" }), formState.errors.name ? _jsx("p", { id: "tender-name-err", className: "mt-1 text-xs text-red-700", children: formState.errors.name.message }) : null] }), _jsxs("div", { children: [_jsx("label", { htmlFor: "tender-country", className: "block text-sm font-medium", children: "Target country (ISO-3166)" }), _jsxs("div", { className: "mt-1 flex items-center gap-2", children: [_jsx("input", { id: "tender-country", type: "text", maxLength: 2, ...register("targetCountry", { setValueAs: (v) => (v ? v.toUpperCase() : "") }), "aria-invalid": !!formState.errors.targetCountry || undefined, "aria-describedby": formState.errors.targetCountry ? "tender-country-err" : undefined, className: "w-20 rounded-md border border-border bg-background px-3 py-2 text-sm uppercase", placeholder: "SE" }), currentCountry && currentCountry.length === 2 ? _jsx(CountryFlag, { code: currentCountry }) : null] }), formState.errors.targetCountry ? _jsx("p", { id: "tender-country-err", className: "mt-1 text-xs text-red-700", children: formState.errors.targetCountry.message }) : null] }), _jsxs("div", { children: [_jsx("label", { htmlFor: "tender-instructions", className: "block text-sm font-medium", children: "Instructions (optional)" }), _jsx("textarea", { id: "tender-instructions", rows: 5, ...register("instructions"), className: "mt-1 w-full rounded-md border border-border bg-background px-3 py-2 text-sm", placeholder: "Describe the procurement round - submission expectations, contact points, volumes, etc." }), _jsx("p", { className: "mt-1 text-xs text-muted-foreground", children: "Up to 2000 characters. Supports plain text." })] })] }));
38
+ }
39
+ //# sourceMappingURL=step-tender-basics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-tender-basics.js","sourceRoot":"","sources":["../../../src/opportunities/wizard/step-tender-basics.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,uCAAuC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kCAAkC,CAAC;IAC7G,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,qCAAqC,CAAC;IAC1E,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAUH,MAAM,UAAU,gBAAgB,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,SAAS,EAA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EAAC,oBAAoB,EAAC,SAAS,EAAC,2BAA2B,YAAE,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,GAAK,CAAC,CAAC,CAAC,IAAI,IAClJ,EAEN,0BACE,gBAAO,OAAO,EAAC,qBAAqB,EAAC,SAAS,EAAC,2BAA2B,wCAAgC,EAC1G,mBACE,EAAE,EAAC,qBAAqB,EACxB,IAAI,EAAE,CAAC,KACH,QAAQ,CAAC,cAAc,CAAC,EAC5B,SAAS,EAAC,6EAA6E,EACvF,WAAW,EAAC,yFAAyF,GACrG,EACF,YAAG,SAAS,EAAC,oCAAoC,4DAAgD,IAC7F,IACD,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type { DraftState, TenderDraft } from "./wizard.types";
2
+ export interface UseWizardDraftOptions {
3
+ /** Create a fresh draft on the server. Returns the new draft id + version. */
4
+ create: (initial: Partial<TenderDraft>) => Promise<{
5
+ id: string;
6
+ version: number;
7
+ }>;
8
+ /** PATCH an existing draft. Pass current version for If-Match. Should throw an error with
9
+ * `status === 409` (or similar) on optimistic-lock conflict. Resolves with the new version. */
10
+ patch: (id: string, fields: Partial<TenderDraft>, version: number) => Promise<{
11
+ version: number;
12
+ }>;
13
+ /** If resuming an existing draft, pass its id (and initial state). */
14
+ initialDraftId?: string;
15
+ initialDraft?: Partial<TenderDraft>;
16
+ initialVersion?: number;
17
+ autosaveDebounceMs?: number;
18
+ /** When true, local changes are staged but NEVER auto-PATCHed. Used by edit-mode. */
19
+ disableAutosave?: boolean;
20
+ /** Optional resume payload from localStorage. When present, hook sets
21
+ * `resumeSuggestion: "local"` so the UI can show a "Keep local / Use server" banner. */
22
+ localStorageSnapshot?: {
23
+ draft: Partial<TenderDraft>;
24
+ updatedAt: number;
25
+ };
26
+ }
27
+ export interface UseWizardDraftReturn {
28
+ state: DraftState;
29
+ draft: Partial<TenderDraft>;
30
+ applyChange: (fields: Partial<TenderDraft>) => void;
31
+ flush: () => Promise<void>;
32
+ retryCount: number;
33
+ localOnly: boolean;
34
+ conflictDetected: boolean;
35
+ acceptServerConflict: (serverDraft: Partial<TenderDraft>, serverVersion: number) => void;
36
+ resumeSuggestion: "local" | null;
37
+ acceptLocalResume: () => void;
38
+ dismissLocalResume: () => void;
39
+ }
40
+ export declare function useWizardDraft(options: UseWizardDraftOptions): UseWizardDraftReturn;
41
+ //# sourceMappingURL=use-wizard-draft.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-wizard-draft.d.ts","sourceRoot":"","sources":["../../../src/opportunities/wizard/use-wizard-draft.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQ9D,MAAM,WAAW,qBAAqB;IACpC,8EAA8E;IAC9E,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,KAAK,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpF;oGACgG;IAChG,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnG,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qFAAqF;IACrF,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;6FACyF;IACzF,oBAAoB,CAAC,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3E;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC5B,WAAW,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACpD,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,oBAAoB,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,gBAAgB,EAAE,OAAO,GAAG,IAAI,CAAC;IACjC,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC;AAuCD,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,oBAAoB,CAwLnF"}
@@ -0,0 +1,214 @@
1
+ import * as React from "react";
2
+ const LOCAL_STORAGE_PREFIX = "wizard-draft-";
3
+ const MAX_LOCAL_DRAFTS = 5;
4
+ const DEFAULT_DEBOUNCE_MS = 1500;
5
+ const BACKOFF_BASE_MS = 1000;
6
+ const BACKOFF_MAX_RETRIES = 5;
7
+ function collectWizardDraftKeys() {
8
+ const out = [];
9
+ const len = localStorage.length;
10
+ for (let i = 0; i < len; i++) {
11
+ const k = localStorage.key(i);
12
+ if (k && k.startsWith(LOCAL_STORAGE_PREFIX))
13
+ out.push(k);
14
+ }
15
+ return out;
16
+ }
17
+ function writeLocalStorageSnapshot(id, draft, version) {
18
+ try {
19
+ localStorage.setItem(`${LOCAL_STORAGE_PREFIX}${id}`, JSON.stringify({ draft, version, updatedAt: Date.now() }));
20
+ // LRU eviction
21
+ const keys = collectWizardDraftKeys();
22
+ if (keys.length > MAX_LOCAL_DRAFTS) {
23
+ const entries = keys
24
+ .map(k => {
25
+ try {
26
+ const parsed = JSON.parse(localStorage.getItem(k) ?? "{}");
27
+ return { k, ua: parsed?.updatedAt ?? 0 };
28
+ }
29
+ catch {
30
+ return { k, ua: 0 };
31
+ }
32
+ })
33
+ .sort((a, b) => a.ua - b.ua); // oldest first
34
+ const toEvict = entries.slice(0, entries.length - MAX_LOCAL_DRAFTS);
35
+ for (const { k } of toEvict)
36
+ localStorage.removeItem(k);
37
+ }
38
+ }
39
+ catch {
40
+ // QuotaExceededError — silently ignored; caller surfaces via localOnly state.
41
+ }
42
+ }
43
+ export function useWizardDraft(options) {
44
+ const { create, patch, initialDraftId, initialDraft = {}, initialVersion = 1, autosaveDebounceMs = DEFAULT_DEBOUNCE_MS, disableAutosave = false, localStorageSnapshot, } = options;
45
+ const [draft, setDraft] = React.useState(initialDraft);
46
+ const [state, setState] = React.useState(() => initialDraftId
47
+ ? { phase: "created", draftId: initialDraftId, version: initialVersion, savingPhase: "idle", retryCount: 0 }
48
+ : { phase: "idle" });
49
+ const [localOnly, setLocalOnly] = React.useState(false);
50
+ const [conflictDetected, setConflictDetected] = React.useState(false);
51
+ const [resumeSuggestion, setResumeSuggestion] = React.useState(() => localStorageSnapshot && initialDraftId ? "local" : null);
52
+ // Refs to avoid stale closures and TDZ issues.
53
+ const draftRef = React.useRef(draft);
54
+ const stateRef = React.useRef(state);
55
+ const stagedFieldsRef = React.useRef({});
56
+ const debounceRef = React.useRef(null);
57
+ const backoffRef = React.useRef(null);
58
+ const flushInternalRef = React.useRef(async () => { });
59
+ React.useEffect(() => { draftRef.current = draft; }, [draft]);
60
+ React.useEffect(() => { stateRef.current = state; }, [state]);
61
+ const flushInternal = React.useCallback(async () => {
62
+ const s = stateRef.current;
63
+ if (s.phase !== "created")
64
+ return;
65
+ const staged = { ...stagedFieldsRef.current };
66
+ if (Object.keys(staged).length === 0)
67
+ return;
68
+ stagedFieldsRef.current = {};
69
+ setState({ ...s, savingPhase: "saving" });
70
+ try {
71
+ const { version: newVersion } = await patch(s.draftId, staged, s.version);
72
+ const nextState = { phase: "created", draftId: s.draftId, version: newVersion, savingPhase: "idle", retryCount: 0 };
73
+ stateRef.current = nextState;
74
+ setState(nextState);
75
+ setLocalOnly(false);
76
+ setConflictDetected(false);
77
+ writeLocalStorageSnapshot(s.draftId, draftRef.current, newVersion);
78
+ }
79
+ catch (err) {
80
+ const status = err?.status;
81
+ if (status === 409) {
82
+ // Optimistic-lock conflict — DO NOT retry. Re-stage so nothing is lost.
83
+ stagedFieldsRef.current = { ...staged, ...stagedFieldsRef.current };
84
+ setConflictDetected(true);
85
+ const errorState = { ...s, savingPhase: "error" };
86
+ stateRef.current = errorState;
87
+ setState(errorState);
88
+ return;
89
+ }
90
+ const newRetry = s.retryCount + 1;
91
+ if (newRetry > BACKOFF_MAX_RETRIES) {
92
+ const errorState = { ...s, savingPhase: "error", retryCount: newRetry };
93
+ stateRef.current = errorState;
94
+ setState(errorState);
95
+ setLocalOnly(true);
96
+ return;
97
+ }
98
+ stagedFieldsRef.current = { ...staged, ...stagedFieldsRef.current };
99
+ const backoff = BACKOFF_BASE_MS * Math.pow(2, newRetry - 1);
100
+ const errorState = { ...s, savingPhase: "error", retryCount: newRetry };
101
+ stateRef.current = errorState;
102
+ setState(errorState);
103
+ if (backoffRef.current)
104
+ clearTimeout(backoffRef.current);
105
+ backoffRef.current = setTimeout(() => void flushInternalRef.current(), backoff);
106
+ }
107
+ }, [patch]);
108
+ React.useEffect(() => { flushInternalRef.current = flushInternal; }, [flushInternal]);
109
+ const schedulePatch = React.useCallback(() => {
110
+ if (disableAutosave)
111
+ return;
112
+ if (debounceRef.current)
113
+ clearTimeout(debounceRef.current);
114
+ debounceRef.current = setTimeout(() => {
115
+ void flushInternalRef.current();
116
+ }, autosaveDebounceMs);
117
+ }, [autosaveDebounceMs, disableAutosave]);
118
+ const applyChange = React.useCallback((fields) => {
119
+ setDraft(prev => {
120
+ const next = { ...prev, ...fields };
121
+ draftRef.current = next;
122
+ return next;
123
+ });
124
+ stagedFieldsRef.current = { ...stagedFieldsRef.current, ...fields };
125
+ const s = stateRef.current;
126
+ if (s.phase === "idle") {
127
+ if (disableAutosave) {
128
+ // Edit mode: never POST. Edit-mode wizards always start in "created" with initialDraftId;
129
+ // if someone mistakenly lands here without an id, just stage locally and do nothing.
130
+ return;
131
+ }
132
+ const createPromise = create(fields).then(({ id, version }) => {
133
+ const nextState = { phase: "created", draftId: id, version, savingPhase: "idle", retryCount: 0 };
134
+ stateRef.current = nextState;
135
+ setState(nextState);
136
+ writeLocalStorageSnapshot(id, draftRef.current, version);
137
+ if (Object.keys(stagedFieldsRef.current).length > 0) {
138
+ schedulePatch();
139
+ }
140
+ return { id, version };
141
+ });
142
+ const creatingState = { phase: "creating", createPromise };
143
+ stateRef.current = creatingState;
144
+ setState(creatingState);
145
+ }
146
+ else if (s.phase === "creating") {
147
+ // Queue — drains on resolve.
148
+ }
149
+ else if (s.phase === "created") {
150
+ writeLocalStorageSnapshot(s.draftId, { ...draftRef.current, ...fields }, s.version);
151
+ schedulePatch();
152
+ }
153
+ }, [create, schedulePatch, disableAutosave]);
154
+ const flush = React.useCallback(async () => {
155
+ if (debounceRef.current) {
156
+ clearTimeout(debounceRef.current);
157
+ debounceRef.current = null;
158
+ }
159
+ await flushInternalRef.current();
160
+ }, []);
161
+ const acceptServerConflict = React.useCallback((serverDraft, serverVersion) => {
162
+ const s = stateRef.current;
163
+ if (s.phase !== "created")
164
+ return;
165
+ stagedFieldsRef.current = {};
166
+ setDraft(serverDraft);
167
+ draftRef.current = serverDraft;
168
+ const nextState = { phase: "created", draftId: s.draftId, version: serverVersion, savingPhase: "idle", retryCount: 0 };
169
+ stateRef.current = nextState;
170
+ setState(nextState);
171
+ setConflictDetected(false);
172
+ }, []);
173
+ const acceptLocalResume = React.useCallback(() => {
174
+ if (!localStorageSnapshot)
175
+ return;
176
+ setDraft(localStorageSnapshot.draft);
177
+ draftRef.current = localStorageSnapshot.draft;
178
+ stagedFieldsRef.current = { ...localStorageSnapshot.draft };
179
+ setResumeSuggestion(null);
180
+ schedulePatch();
181
+ }, [localStorageSnapshot, schedulePatch]);
182
+ const dismissLocalResume = React.useCallback(() => {
183
+ setResumeSuggestion(null);
184
+ }, []);
185
+ // beforeunload + visibilitychange → flush to localStorage synchronously.
186
+ React.useEffect(() => {
187
+ const handler = () => {
188
+ const s = stateRef.current;
189
+ if (s.phase === "created") {
190
+ writeLocalStorageSnapshot(s.draftId, draftRef.current, s.version);
191
+ }
192
+ };
193
+ const visHandler = () => {
194
+ if (document.visibilityState === "hidden")
195
+ handler();
196
+ };
197
+ window.addEventListener("beforeunload", handler);
198
+ document.addEventListener("visibilitychange", visHandler);
199
+ return () => {
200
+ window.removeEventListener("beforeunload", handler);
201
+ document.removeEventListener("visibilitychange", visHandler);
202
+ };
203
+ }, []);
204
+ const retryCount = state.phase === "created" ? state.retryCount : 0;
205
+ return {
206
+ state, draft, applyChange, flush, retryCount, localOnly,
207
+ conflictDetected,
208
+ acceptServerConflict,
209
+ resumeSuggestion,
210
+ acceptLocalResume,
211
+ dismissLocalResume,
212
+ };
213
+ }
214
+ //# sourceMappingURL=use-wizard-draft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-wizard-draft.js","sourceRoot":"","sources":["../../../src/opportunities/wizard/use-wizard-draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,oBAAoB,GAAG,eAAe,CAAC;AAC7C,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,mBAAmB,GAAG,IAAI,CAAC;AACjC,MAAM,eAAe,GAAG,IAAI,CAAC;AAC7B,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAkC9B,SAAS,sBAAsB;IAC7B,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,MAAM,GAAG,GAAG,YAAY,CAAC,MAAM,CAAC;IAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QAC7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gB,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;QAC1D,OAAO,GAAG,EAAE;YACV,MAAM,CAAC,mBAAmB,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;YACpD,QAAQ,CAAC,mBAAmB,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;QAC/D,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAEpE,OAAO;QACL,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS;QACvD,gBAAgB;QAChB,oBAAoB;QACpB,gBAAgB;QAChB,iBAAiB;QACjB,kBAAkB;KACnB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ export interface WizardStep {
3
+ id: string;
4
+ label: string;
5
+ }
6
+ export interface WizardStepperProps {
7
+ steps: readonly WizardStep[];
8
+ currentIndex: number;
9
+ completedIndexes: readonly number[];
10
+ /** Optional sub-status under the active step label, e.g. "Autosaved 2s ago". */
11
+ activeSubStatus?: React.ReactNode;
12
+ onJumpBack: (index: number) => void;
13
+ className?: string;
14
+ }
15
+ type WizardStepperComponent = React.FC<WizardStepperProps> & {
16
+ Skeleton: React.FC;
17
+ };
18
+ export declare const WizardStepper: WizardStepperComponent;
19
+ export type { WizardStepperComponent };
20
+ //# sourceMappingURL=wizard-stepper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wizard-stepper.d.ts","sourceRoot":"","sources":["../../../src/opportunities/wizard/wizard-stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,SAAS,UAAU,EAAE,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,gFAAgF;IAChF,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA+ED,KAAK,sBAAsB,GAAG,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAAC,GAAG;IAC3D,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;CACpB,CAAC;AACF,eAAO,MAAM,aAAa,EAAwB,sBAAsB,CAAC;AAEzE,YAAY,EAAE,sBAAsB,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Check } from "lucide-react";
3
+ import { cn } from "../../lib/utils";
4
+ function WizardStepperBase({ steps, currentIndex, completedIndexes, activeSubStatus, onJumpBack, className }) {
5
+ return (_jsx("nav", { "aria-label": "Wizard progress", className: className, children: _jsx("ol", { className: "flex w-full items-center gap-0 md:flex-row flex-col", children: steps.map((step, i) => {
6
+ const isComplete = completedIndexes.includes(i);
7
+ const isActive = i === currentIndex;
8
+ const isPending = !isComplete && !isActive;
9
+ const status = isComplete ? "complete" : isActive ? "active" : "pending";
10
+ const statusText = status === "complete" ? "complete" : status === "active" ? "in progress" : "not yet available";
11
+ const labelText = `Step ${i + 1} of ${steps.length}: ${step.label}, ${statusText}`;
12
+ return (_jsxs("li", { className: "flex flex-1 items-center", "data-status": status, children: [_jsxs("div", { className: "flex flex-col items-center", children: [_jsx("button", { type: "button", "aria-label": labelText, "aria-current": isActive ? "step" : undefined, "aria-disabled": isPending ? "true" : undefined, onClick: () => { if (isComplete)
13
+ onJumpBack(i); }, className: cn("size-10 rounded-full border text-sm font-semibold flex items-center justify-center transition-colors", isComplete && "bg-emerald-700 text-white border-emerald-700 hover:bg-emerald-800 cursor-pointer", isActive && "bg-background text-amber-700 border-amber-500 ring-3 ring-amber-300 motion-safe:animate-[wizard-stepper-active-glow_2s_ease-in-out_infinite]", isPending && "bg-muted text-muted-foreground border-border cursor-not-allowed"), "data-wizard-stepper-active": isActive || undefined, "data-wizard-stepper-complete": isComplete || undefined, children: isComplete ? _jsx(Check, { "aria-hidden": true, "data-wizard-checkmark": true, className: "size-5" }) : i + 1 }), _jsx("span", { className: "mt-1 text-xs font-medium text-foreground", children: step.label }), isActive && activeSubStatus ? _jsx("span", { className: "mt-0.5 text-[10px] text-muted-foreground", children: activeSubStatus }) : null] }), i < steps.length - 1 ? (_jsx("div", { className: "relative mx-2 h-0.5 flex-1 overflow-hidden rounded-full bg-[color:var(--color-wizard-connector-idle,theme(colors.slate.200))]", children: _jsx("div", { "data-wizard-connector-fill": true, style: {
14
+ "--connector-progress": Math.max(0, Math.min(1, currentIndex - i)).toString(),
15
+ transformOrigin: "left center",
16
+ transform: `scaleX(${Math.max(0, Math.min(1, currentIndex - i))})`,
17
+ }, className: "absolute inset-0 bg-[color:var(--color-wizard-connector-done,theme(colors.emerald.700))] transition-transform duration-[600ms] ease-[cubic-bezier(0.22,1,0.36,1)]" }) })) : null] }, step.id));
18
+ }) }) }));
19
+ }
20
+ /** Static .Skeleton — stepper is rendered from client state so this is mainly for Storybook; no cascade-index. */
21
+ function WizardStepperSkeleton() {
22
+ return (_jsx("nav", { "aria-label": "Wizard progress loading", className: "animate-pulse", children: _jsx("ol", { className: "flex items-center gap-0", children: [0, 1, 2, 3].map(i => (_jsxs("li", { className: "flex flex-1 items-center", children: [_jsxs("div", { className: "flex flex-col items-center", children: [_jsx("div", { className: "size-10 rounded-full bg-muted/60" }), _jsx("div", { className: "mt-1 h-3 w-12 rounded-xs bg-muted/40" })] }), i < 3 ? _jsx("div", { className: "mx-2 h-0.5 flex-1 rounded-full bg-muted/40" }) : null] }, i))) }) }));
23
+ }
24
+ export const WizardStepper = WizardStepperBase;
25
+ WizardStepper.Skeleton = WizardStepperSkeleton;
26
+ //# sourceMappingURL=wizard-stepper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wizard-stepper.js","sourceRoot":"","sources":["../../../src/opportunities/wizard/wizard-stepper.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAiBrC,SAAS,iBAAiB,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAsB;IAC9H,OAAO,CACL,4BAAgB,iBAAiB,EAAC,SAAS,EAAE,SAAS,YACpD,aAAI,SAAS,EAAC,qDAAqD,YAChE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;gBACrB,MAAM,UAAU,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAChD,MAAM,QAAQ,GAAG,CAAC,KAAK,YAAY,CAAC;gBACpC,MAAM,SAAS,GAAG,CAAC,UAAU,IAAI,CAAC,QAAQ,CAAC;gBAC3C,MAAM,MAAM,GAAsC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;gBAC5G,MAAM,UAAU,GAAG,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,mBAAmB,CAAC;gBAClH,MAAM,SAAS,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC;gBAEnF,OAAO,CACL,cAAkB,SAAS,EAAC,0BA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C,EACxB,SAAS,EAAC,mKAAmK,GAC7K,GACE,CACP,CAAC,CAAC,CAAC,IAAI,KApCD,IAAI,CAAC,EAAE,CAqCX,CACN,CAAC;YACJ,CAAC,CAAC,GACC,GACD,CACP,CAAC;AACJ,CAAC;AAED,kHAAkH;AAClH,SAAS,qBAAqB;IAC5B,OAAO,CACL,4BAAgB,yBAAyB,EAAC,SAAS,EAAC,eAAe,YACjE,aAAI,SAAS,EAAC,yBAAyB,YACpC,CAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAClB,cAAY,SAAS,EAAC,0BAA0B,aAC9C,eAAK,SAAS,EAAC,4BAA4B,aACzC,cAAK,SAAS,EAAC,kCAAkC,GAAG,EACpD,cAAK,SAAS,EAAC,sCAAsC,GAAG,IACpD,EACL,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,4CAA4C,GAAG,CAAC,CAAC,CAAC,IAAI,KALvE,CAAC,CAML,CACN,CAAC,GACC,GACD,CACP,CAAC;AACJ,CAAC;AAKD,MAAM,CAAC,MAAM,aAAa,GAAG,iBAA2C,CAAC;AACzE,aAAa,CAAC,QAAQ,GAAG,qBAAqB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("./wizard-stepper").WizardStepperComponent;
5
+ tags: string[];
6
+ };
7
+ export default meta;
8
+ type Story = StoryObj<typeof meta>;
9
+ export declare const AllPending: Story;
10
+ export declare const SecondActive: Story;
11
+ export declare const ThreeComplete: Story;
12
+ export declare const AllComplete: Story;
13
+ export declare const LoadingSkeleton: Story;
14
+ /**
15
+ * Wave (publish): sequentially marks all 4 steps complete to showcase the
16
+ * connector fill + check-mark draw when publish succeeds. Uses a setInterval
17
+ * so reviewers can watch the animation without any external trigger.
18
+ */
19
+ export declare const Wave: Story;
20
+ /** Mobile vertical — narrow container reveals the flex-col fallback. */
21
+ export declare const MobileVertical: Story;
22
+ //# sourceMappingURL=wizard-stepper.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wizard-stepper.stories.d.ts","sourceRoot":"","sources":["../../../src/opportunities/wizard/wizard-stepper.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAW5D,QAAA,MAAM,IAAI;;;;CAI4B,CAAC;AACvC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,UAAU,EAAM,KAAwF,CAAC;AACtH,eAAO,MAAM,YAAY,EAAI,KAA8H,CAAC;AAC5J,eAAO,MAAM,aAAa,EAAG,KAA+F,CAAC;AAC7H,eAAO,MAAM,WAAW,EAAK,KAAkG,CAAC;AAChI,eAAO,MAAM,eAAe,EAAE,KAAkI,CAAC;AAgBjK;;;;GAIG;AACH,eAAO,MAAM,IAAI,EAAE,KAGlB,CAAC;AAEF,wEAAwE;AACxE,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { WizardStepper } from "./wizard-stepper";
4
+ const steps = [
5
+ { id: "tender", label: "Tender" },
6
+ { id: "opportunities", label: "Opportunities" },
7
+ { id: "pricing", label: "Pricing" },
8
+ { id: "review", label: "Review" },
9
+ ];
10
+ const meta = {
11
+ title: "Opportunities/Wizard/Stepper",
12
+ component: WizardStepper,
13
+ tags: ["autodocs"],
14
+ };
15
+ export default meta;
16
+ export const AllPending = { args: { steps, currentIndex: 0, completedIndexes: [], onJumpBack: () => { } } };
17
+ export const SecondActive = { args: { steps, currentIndex: 1, completedIndexes: [0], onJumpBack: () => { }, activeSubStatus: "Autosaved 2s ago" } };
18
+ export const ThreeComplete = { args: { steps, currentIndex: 3, completedIndexes: [0, 1, 2], onJumpBack: () => { } } };
19
+ export const AllComplete = { args: { steps, currentIndex: 3, completedIndexes: [0, 1, 2, 3], onJumpBack: () => { } } };
20
+ export const LoadingSkeleton = { args: { steps, currentIndex: 0, completedIndexes: [], onJumpBack: () => { } }, render: () => _jsx(WizardStepper.Skeleton, {}) };
21
+ function WaveDemo() {
22
+ const [done, setDone] = React.useState([]);
23
+ React.useEffect(() => {
24
+ // eslint-disable-next-line @eslint-react/set-state-in-effect -- intentional reset to [] on mount for animation replay
25
+ setDone([]);
26
+ const timers = [0, 400, 800, 1200].map((delay, i) =>
27
+ // eslint-disable-next-line @eslint-react/web-api/no-leaked-timeout -- timer cleared in cleanup via timers.forEach(clearTimeout)
28
+ setTimeout(() => setDone(prev => Array.from(new Set([...prev, i]))), delay));
29
+ return () => timers.forEach(clearTimeout);
30
+ }, []);
31
+ return _jsx(WizardStepper, { steps: steps, currentIndex: Math.min(done.length, 3), completedIndexes: done, onJumpBack: () => { } });
32
+ }
33
+ /**
34
+ * Wave (publish): sequentially marks all 4 steps complete to showcase the
35
+ * connector fill + check-mark draw when publish succeeds. Uses a setInterval
36
+ * so reviewers can watch the animation without any external trigger.
37
+ */
38
+ export const Wave = {
39
+ args: { steps, currentIndex: 0, completedIndexes: [], onJumpBack: () => { } },
40
+ render: () => _jsx(WaveDemo, {}),
41
+ };
42
+ /** Mobile vertical — narrow container reveals the flex-col fallback. */
43
+ export const MobileVertical = {
44
+ args: { steps, currentIndex: 1, completedIndexes: [0], onJumpBack: () => { } },
45
+ render: () => (_jsx("div", { className: "max-w-[320px]", children: _jsx(WizardStepper, { steps: steps, currentIndex: 1, completedIndexes: [0], onJumpBack: () => { }, activeSubStatus: "Autosaved just now" }) })),
46
+ };
47
+ //# sourceMappingURL=wizard-stepper.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wizard-stepper.stories.js","sourceRoot":"","sources":["../../../src/opportunities/wizard/wizard-stepper.stories.tsx"],"names":[],"mapp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