@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.
- package/dist/chat/unified-timeline.d.ts +15 -0
- package/dist/chat/unified-timeline.d.ts.map +1 -1
- package/dist/chat/unified-timeline.js.map +1 -1
- package/dist/components/__tests__/countdown-pill.test.d.ts +2 -0
- package/dist/components/__tests__/countdown-pill.test.d.ts.map +1 -0
- package/dist/components/__tests__/countdown-pill.test.js +28 -0
- package/dist/components/__tests__/countdown-pill.test.js.map +1 -0
- package/dist/components/__tests__/country-flag.test.d.ts +2 -0
- package/dist/components/__tests__/country-flag.test.d.ts.map +1 -0
- package/dist/components/__tests__/country-flag.test.js +20 -0
- package/dist/components/__tests__/country-flag.test.js.map +1 -0
- package/dist/components/__tests__/status-pill.test.d.ts +2 -0
- package/dist/components/__tests__/status-pill.test.d.ts.map +1 -0
- package/dist/components/__tests__/status-pill.test.js +24 -0
- package/dist/components/__tests__/status-pill.test.js.map +1 -0
- package/dist/components/confirmation-dialog.stories.d.ts +26 -0
- package/dist/components/confirmation-dialog.stories.d.ts.map +1 -0
- package/dist/components/confirmation-dialog.stories.js +94 -0
- package/dist/components/confirmation-dialog.stories.js.map +1 -0
- package/dist/components/countdown-pill.d.ts +7 -0
- package/dist/components/countdown-pill.d.ts.map +1 -0
- package/dist/components/countdown-pill.js +27 -0
- package/dist/components/countdown-pill.js.map +1 -0
- package/dist/components/countdown-pill.stories.d.ts +15 -0
- package/dist/components/countdown-pill.stories.d.ts.map +1 -0
- package/dist/components/countdown-pill.stories.js +14 -0
- package/dist/components/countdown-pill.stories.js.map +1 -0
- package/dist/components/country-flag.d.ts +6 -0
- package/dist/components/country-flag.d.ts.map +1 -0
- package/dist/components/country-flag.js +31 -0
- package/dist/components/country-flag.js.map +1 -0
- package/dist/components/country-flag.stories.d.ts +14 -0
- package/dist/components/country-flag.stories.d.ts.map +1 -0
- package/dist/components/country-flag.stories.js +16 -0
- package/dist/components/country-flag.stories.js.map +1 -0
- package/dist/components/period-select.stories.d.ts +29 -0
- package/dist/components/period-select.stories.d.ts.map +1 -0
- package/dist/components/period-select.stories.js +65 -0
- package/dist/components/period-select.stories.js.map +1 -0
- package/dist/components/sidebar/context.d.ts +24 -0
- package/dist/components/sidebar/context.d.ts.map +1 -0
- package/dist/components/sidebar/context.js +73 -0
- package/dist/components/sidebar/context.js.map +1 -0
- package/dist/components/sidebar/index.d.ts +9 -0
- package/dist/components/sidebar/index.d.ts.map +1 -0
- package/dist/components/sidebar/index.js +9 -0
- package/dist/components/sidebar/index.js.map +1 -0
- package/dist/components/sidebar/sidebar-group.d.ts +10 -0
- package/dist/components/sidebar/sidebar-group.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar-group.js +21 -0
- package/dist/components/sidebar/sidebar-group.js.map +1 -0
- package/dist/components/sidebar/sidebar-inset.d.ts +3 -0
- package/dist/components/sidebar/sidebar-inset.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar-inset.js +7 -0
- package/dist/components/sidebar/sidebar-inset.js.map +1 -0
- package/dist/components/sidebar/sidebar-menu-sub.d.ts +9 -0
- package/dist/components/sidebar/sidebar-menu-sub.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar-menu-sub.js +15 -0
- package/dist/components/sidebar/sidebar-menu-sub.js.map +1 -0
- package/dist/components/sidebar/sidebar-menu.d.ts +23 -0
- package/dist/components/sidebar/sidebar-menu.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar-menu.js +63 -0
- package/dist/components/sidebar/sidebar-menu.js.map +1 -0
- package/dist/components/sidebar/sidebar-sections.d.ts +8 -0
- package/dist/components/sidebar/sidebar-sections.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar-sections.js +20 -0
- package/dist/components/sidebar/sidebar-sections.js.map +1 -0
- package/dist/components/sidebar/sidebar-trigger.d.ts +4 -0
- package/dist/components/sidebar/sidebar-trigger.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar-trigger.js +17 -0
- package/dist/components/sidebar/sidebar-trigger.js.map +1 -0
- package/dist/components/sidebar/sidebar.d.ts +7 -0
- package/dist/components/sidebar/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar.js +26 -0
- package/dist/components/sidebar/sidebar.js.map +1 -0
- package/dist/components/status-pill.d.ts +7 -0
- package/dist/components/status-pill.d.ts.map +1 -0
- package/dist/components/status-pill.js +14 -0
- package/dist/components/status-pill.js.map +1 -0
- package/dist/components/status-pill.stories.d.ts +21 -0
- package/dist/components/status-pill.stories.d.ts.map +1 -0
- package/dist/components/status-pill.stories.js +18 -0
- package/dist/components/status-pill.stories.js.map +1 -0
- package/dist/components/toast.stories.d.ts +25 -0
- package/dist/components/toast.stories.d.ts.map +1 -0
- package/dist/components/toast.stories.js +38 -0
- package/dist/components/toast.stories.js.map +1 -0
- package/dist/components/toaster.stories.d.ts +19 -0
- package/dist/components/toaster.stories.d.ts.map +1 -0
- package/dist/components/toaster.stories.js +27 -0
- package/dist/components/toaster.stories.js.map +1 -0
- package/dist/globe/globe-scene-camera.d.ts +25 -0
- package/dist/globe/globe-scene-camera.d.ts.map +1 -0
- package/dist/globe/globe-scene-camera.js +59 -0
- package/dist/globe/globe-scene-camera.js.map +1 -0
- package/dist/globe/globe-scene-channel.d.ts +27 -0
- package/dist/globe/globe-scene-channel.d.ts.map +1 -0
- package/dist/globe/globe-scene-channel.js +60 -0
- package/dist/globe/globe-scene-channel.js.map +1 -0
- package/dist/globe/globe-scene-controls.d.ts +38 -0
- package/dist/globe/globe-scene-controls.d.ts.map +1 -0
- package/dist/globe/globe-scene-controls.js +62 -0
- package/dist/globe/globe-scene-controls.js.map +1 -0
- package/dist/globe/globe-scene-data.d.ts +16 -0
- package/dist/globe/globe-scene-data.d.ts.map +1 -0
- package/dist/globe/globe-scene-data.js +51 -0
- package/dist/globe/globe-scene-data.js.map +1 -0
- package/dist/globe/globe-scene-interactions.d.ts +11 -0
- package/dist/globe/globe-scene-interactions.d.ts.map +1 -0
- package/dist/globe/globe-scene-interactions.js +54 -0
- package/dist/globe/globe-scene-interactions.js.map +1 -0
- package/dist/globe/globe-scene-layers.d.ts +22 -0
- package/dist/globe/globe-scene-layers.d.ts.map +1 -0
- package/dist/globe/globe-scene-layers.js +170 -0
- package/dist/globe/globe-scene-layers.js.map +1 -0
- package/dist/globe/globe-scene-props.d.ts +32 -0
- package/dist/globe/globe-scene-props.d.ts.map +1 -0
- package/dist/globe/globe-scene-props.js +8 -0
- package/dist/globe/globe-scene-props.js.map +1 -0
- package/dist/globe/globe-scene-types.d.ts +34 -0
- package/dist/globe/globe-scene-types.d.ts.map +1 -0
- package/dist/globe/globe-scene-types.js +14 -0
- package/dist/globe/globe-scene-types.js.map +1 -0
- package/dist/globe/globe-scene.d.ts +10 -25
- package/dist/globe/globe-scene.d.ts.map +1 -1
- package/dist/globe/globe-scene.js +54 -349
- package/dist/globe/globe-scene.js.map +1 -1
- package/dist/hooks/__tests__/use-animated-number.test.d.ts +2 -0
- package/dist/hooks/__tests__/use-animated-number.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/use-animated-number.test.js +58 -0
- package/dist/hooks/__tests__/use-animated-number.test.js.map +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/use-animated-number.d.ts +6 -0
- package/dist/hooks/use-animated-number.d.ts.map +1 -0
- package/dist/hooks/use-animated-number.js +56 -0
- package/dist/hooks/use-animated-number.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/notifications/notification-badge.stories.d.ts +42 -0
- package/dist/notifications/notification-badge.stories.d.ts.map +1 -0
- package/dist/notifications/notification-badge.stories.js +42 -0
- package/dist/notifications/notification-badge.stories.js.map +1 -0
- package/dist/notifications/notification-empty-state.stories.d.ts +16 -0
- package/dist/notifications/notification-empty-state.stories.d.ts.map +1 -0
- package/dist/notifications/notification-empty-state.stories.js +22 -0
- package/dist/notifications/notification-empty-state.stories.js.map +1 -0
- package/dist/notifications/notification-item.stories.d.ts +41 -0
- package/dist/notifications/notification-item.stories.d.ts.map +1 -0
- package/dist/notifications/notification-item.stories.js +110 -0
- package/dist/notifications/notification-item.stories.js.map +1 -0
- package/dist/notifications/notification-list.stories.d.ts +25 -0
- package/dist/notifications/notification-list.stories.d.ts.map +1 -0
- package/dist/notifications/notification-list.stories.js +148 -0
- package/dist/notifications/notification-list.stories.js.map +1 -0
- package/dist/notifications/notification-page.stories.d.ts +20 -0
- package/dist/notifications/notification-page.stories.d.ts.map +1 -0
- package/dist/notifications/notification-page.stories.js +140 -0
- package/dist/notifications/notification-page.stories.js.map +1 -0
- package/dist/notifications/notification-tray.stories.d.ts +21 -0
- package/dist/notifications/notification-tray.stories.d.ts.map +1 -0
- package/dist/notifications/notification-tray.stories.js +123 -0
- package/dist/notifications/notification-tray.stories.js.map +1 -0
- package/dist/notifications/push-prompt-banner.stories.d.ts +27 -0
- package/dist/notifications/push-prompt-banner.stories.d.ts.map +1 -0
- package/dist/notifications/push-prompt-banner.stories.js +33 -0
- package/dist/notifications/push-prompt-banner.stories.js.map +1 -0
- package/dist/offer/__tests__/opportunity-requirements.test.d.ts +2 -0
- package/dist/offer/__tests__/opportunity-requirements.test.d.ts.map +1 -0
- package/dist/offer/__tests__/opportunity-requirements.test.js +33 -0
- package/dist/offer/__tests__/opportunity-requirements.test.js.map +1 -0
- package/dist/offer/attachments-card.d.ts +9 -0
- package/dist/offer/attachments-card.d.ts.map +1 -0
- package/dist/offer/attachments-card.js +16 -0
- package/dist/offer/attachments-card.js.map +1 -0
- package/dist/offer/attachments-card.stories.d.ts +17 -0
- package/dist/offer/attachments-card.stories.d.ts.map +1 -0
- package/dist/offer/attachments-card.stories.js +24 -0
- package/dist/offer/attachments-card.stories.js.map +1 -0
- package/dist/offer/buyer-notes-card.d.ts +7 -0
- package/dist/offer/buyer-notes-card.d.ts.map +1 -0
- package/dist/offer/buyer-notes-card.js +6 -0
- package/dist/offer/buyer-notes-card.js.map +1 -0
- package/dist/offer/buyer-notes-card.stories.d.ts +16 -0
- package/dist/offer/buyer-notes-card.stories.d.ts.map +1 -0
- package/dist/offer/buyer-notes-card.stories.js +25 -0
- package/dist/offer/buyer-notes-card.stories.js.map +1 -0
- package/dist/offer/counter-slide-over.d.ts +44 -0
- package/dist/offer/counter-slide-over.d.ts.map +1 -0
- package/dist/offer/counter-slide-over.js +81 -0
- package/dist/offer/counter-slide-over.js.map +1 -0
- package/dist/offer/counter-slide-over.stories.d.ts +23 -0
- package/dist/offer/counter-slide-over.stories.d.ts.map +1 -0
- package/dist/offer/counter-slide-over.stories.js +235 -0
- package/dist/offer/counter-slide-over.stories.js.map +1 -0
- package/dist/offer/facts-card.d.ts +32 -0
- package/dist/offer/facts-card.d.ts.map +1 -0
- package/dist/offer/facts-card.js +87 -0
- package/dist/offer/facts-card.js.map +1 -0
- package/dist/offer/facts-card.stories.d.ts +25 -0
- package/dist/offer/facts-card.stories.d.ts.map +1 -0
- package/dist/offer/facts-card.stories.js +177 -0
- package/dist/offer/facts-card.stories.js.map +1 -0
- package/dist/offer/index.d.ts +39 -0
- package/dist/offer/index.d.ts.map +1 -1
- package/dist/offer/index.js +21 -0
- package/dist/offer/index.js.map +1 -1
- package/dist/offer/inline-counter-form.d.ts +16 -0
- package/dist/offer/inline-counter-form.d.ts.map +1 -1
- package/dist/offer/inline-counter-form.js +8 -0
- package/dist/offer/inline-counter-form.js.map +1 -1
- package/dist/offer/match-compatibility-card.d.ts +16 -0
- package/dist/offer/match-compatibility-card.d.ts.map +1 -0
- package/dist/offer/match-compatibility-card.js +27 -0
- package/dist/offer/match-compatibility-card.js.map +1 -0
- package/dist/offer/match-compatibility-card.stories.d.ts +19 -0
- package/dist/offer/match-compatibility-card.stories.d.ts.map +1 -0
- package/dist/offer/match-compatibility-card.stories.js +111 -0
- package/dist/offer/match-compatibility-card.stories.js.map +1 -0
- package/dist/offer/match-glyph.d.ts +14 -0
- package/dist/offer/match-glyph.d.ts.map +1 -0
- package/dist/offer/match-glyph.js +40 -0
- package/dist/offer/match-glyph.js.map +1 -0
- package/dist/offer/match-glyph.stories.d.ts +26 -0
- package/dist/offer/match-glyph.stories.d.ts.map +1 -0
- package/dist/offer/match-glyph.stories.js +26 -0
- package/dist/offer/match-glyph.stories.js.map +1 -0
- package/dist/offer/match-headline-bar.d.ts +11 -0
- package/dist/offer/match-headline-bar.d.ts.map +1 -0
- package/dist/offer/match-headline-bar.js +28 -0
- package/dist/offer/match-headline-bar.js.map +1 -0
- package/dist/offer/match-headline-bar.stories.d.ts +17 -0
- package/dist/offer/match-headline-bar.stories.d.ts.map +1 -0
- package/dist/offer/match-headline-bar.stories.js +39 -0
- package/dist/offer/match-headline-bar.stories.js.map +1 -0
- package/dist/offer/match-preview.d.ts +18 -0
- package/dist/offer/match-preview.d.ts.map +1 -0
- package/dist/offer/match-preview.js +13 -0
- package/dist/offer/match-preview.js.map +1 -0
- package/dist/offer/match-preview.stories.d.ts +18 -0
- package/dist/offer/match-preview.stories.d.ts.map +1 -0
- package/dist/offer/match-preview.stories.js +103 -0
- package/dist/offer/match-preview.stories.js.map +1 -0
- package/dist/offer/negotiation-section.d.ts +11 -0
- package/dist/offer/negotiation-section.d.ts.map +1 -0
- package/dist/offer/negotiation-section.js +99 -0
- package/dist/offer/negotiation-section.js.map +1 -0
- package/dist/offer/negotiation-section.stories.d.ts +18 -0
- package/dist/offer/negotiation-section.stories.d.ts.map +1 -0
- package/dist/offer/negotiation-section.stories.js +156 -0
- package/dist/offer/negotiation-section.stories.js.map +1 -0
- package/dist/offer/new-activity-pill.d.ts +7 -0
- package/dist/offer/new-activity-pill.d.ts.map +1 -0
- package/dist/offer/new-activity-pill.js +8 -0
- package/dist/offer/new-activity-pill.js.map +1 -0
- package/dist/offer/new-activity-pill.stories.d.ts +17 -0
- package/dist/offer/new-activity-pill.stories.d.ts.map +1 -0
- package/dist/offer/new-activity-pill.stories.js +22 -0
- package/dist/offer/new-activity-pill.stories.js.map +1 -0
- package/dist/offer/offer-detail-header.stories.d.ts +19 -0
- package/dist/offer/offer-detail-header.stories.d.ts.map +1 -0
- package/dist/offer/offer-detail-header.stories.js +59 -0
- package/dist/offer/offer-detail-header.stories.js.map +1 -0
- package/dist/offer/offer-detail-shell.stories.d.ts +17 -0
- package/dist/offer/offer-detail-shell.stories.d.ts.map +1 -0
- package/dist/offer/offer-detail-shell.stories.js +69 -0
- package/dist/offer/offer-detail-shell.stories.js.map +1 -0
- package/dist/offer/offer-detail-tabs.stories.d.ts +17 -0
- package/dist/offer/offer-detail-tabs.stories.d.ts.map +1 -0
- package/dist/offer/offer-detail-tabs.stories.js +66 -0
- package/dist/offer/offer-detail-tabs.stories.js.map +1 -0
- package/dist/offer/offer-document.d.ts +33 -0
- package/dist/offer/offer-document.d.ts.map +1 -0
- package/dist/offer/offer-document.js +125 -0
- package/dist/offer/offer-document.js.map +1 -0
- package/dist/offer/offer-document.stories.d.ts +25 -0
- package/dist/offer/offer-document.stories.d.ts.map +1 -0
- package/dist/offer/offer-document.stories.js +168 -0
- package/dist/offer/offer-document.stories.js.map +1 -0
- package/dist/offer/offer-export-button.d.ts +8 -0
- package/dist/offer/offer-export-button.d.ts.map +1 -0
- package/dist/offer/offer-export-button.js +11 -0
- package/dist/offer/offer-export-button.js.map +1 -0
- package/dist/offer/offer-export-button.stories.d.ts +15 -0
- package/dist/offer/offer-export-button.stories.d.ts.map +1 -0
- package/dist/offer/offer-export-button.stories.js +11 -0
- package/dist/offer/offer-export-button.stories.js.map +1 -0
- package/dist/offer/offer-product-card.d.ts +32 -0
- package/dist/offer/offer-product-card.d.ts.map +1 -0
- package/dist/offer/offer-product-card.js +10 -0
- package/dist/offer/offer-product-card.js.map +1 -0
- package/dist/offer/offer-product-card.stories.d.ts +16 -0
- package/dist/offer/offer-product-card.stories.d.ts.map +1 -0
- package/dist/offer/offer-product-card.stories.js +40 -0
- package/dist/offer/offer-product-card.stories.js.map +1 -0
- package/dist/offer/opportunity-card.d.ts +16 -0
- package/dist/offer/opportunity-card.d.ts.map +1 -0
- package/dist/offer/opportunity-card.js +9 -0
- package/dist/offer/opportunity-card.js.map +1 -0
- package/dist/offer/opportunity-card.stories.d.ts +16 -0
- package/dist/offer/opportunity-card.stories.d.ts.map +1 -0
- package/dist/offer/opportunity-card.stories.js +33 -0
- package/dist/offer/opportunity-card.stories.js.map +1 -0
- package/dist/offer/opportunity-requirements.d.ts.map +1 -1
- package/dist/offer/opportunity-requirements.js +4 -0
- package/dist/offer/opportunity-requirements.js.map +1 -1
- package/dist/offer/parties-card.d.ts +11 -0
- package/dist/offer/parties-card.d.ts.map +1 -0
- package/dist/offer/parties-card.js +14 -0
- package/dist/offer/parties-card.js.map +1 -0
- package/dist/offer/parties-card.stories.d.ts +17 -0
- package/dist/offer/parties-card.stories.d.ts.map +1 -0
- package/dist/offer/parties-card.stories.js +37 -0
- package/dist/offer/parties-card.stories.js.map +1 -0
- package/dist/offer/terms-card.d.ts +17 -0
- package/dist/offer/terms-card.d.ts.map +1 -0
- package/dist/offer/terms-card.js +50 -0
- package/dist/offer/terms-card.js.map +1 -0
- package/dist/offer/terms-card.stories.d.ts +17 -0
- package/dist/offer/terms-card.stories.d.ts.map +1 -0
- package/dist/offer/terms-card.stories.js +42 -0
- package/dist/offer/terms-card.stories.js.map +1 -0
- package/dist/offer/timeline-event.d.ts +12 -0
- package/dist/offer/timeline-event.d.ts.map +1 -0
- package/dist/offer/timeline-event.js +57 -0
- package/dist/offer/timeline-event.js.map +1 -0
- package/dist/offer/timeline-event.stories.d.ts +21 -0
- package/dist/offer/timeline-event.stories.d.ts.map +1 -0
- package/dist/offer/timeline-event.stories.js +57 -0
- package/dist/offer/timeline-event.stories.js.map +1 -0
- package/dist/offer/types.d.ts +118 -0
- package/dist/offer/types.d.ts.map +1 -1
- package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.d.ts +2 -0
- package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.d.ts.map +1 -0
- package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.js +40 -0
- package/dist/opportunities/__a11y__/opportunity-card-actions-menu.a11y.test.js.map +1 -0
- package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.d.ts +2 -0
- package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.d.ts.map +1 -0
- package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.js +31 -0
- package/dist/opportunities/__a11y__/opportunity-celebration.a11y.test.js.map +1 -0
- package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.d.ts +2 -0
- package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.d.ts.map +1 -0
- package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.js +42 -0
- package/dist/opportunities/__a11y__/opportunity-detail-panel.a11y.test.js.map +1 -0
- package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.d.ts +2 -0
- package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.d.ts.map +1 -0
- package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.js +59 -0
- package/dist/opportunities/__a11y__/opportunity-filter-bar.a11y.test.js.map +1 -0
- package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.d.ts +2 -0
- package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.d.ts.map +1 -0
- package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.js +54 -0
- package/dist/opportunities/__a11y__/opportunity-stacked-card.a11y.test.js.map +1 -0
- package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.d.ts +2 -0
- package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.d.ts.map +1 -0
- package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.js +40 -0
- package/dist/opportunities/__a11y__/opportunity-stacked-list.a11y.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.js +40 -0
- package/dist/opportunities/__tests__/opportunity-add-to-journey-button.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.js +74 -0
- package/dist/opportunities/__tests__/opportunity-card-actions-menu.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-celebration.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-celebration.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-celebration.test.js +46 -0
- package/dist/opportunities/__tests__/opportunity-celebration.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-channel-badge.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-channel-badge.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-channel-badge.test.js +23 -0
- package/dist/opportunities/__tests__/opportunity-channel-badge.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-detail-panel.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-detail-panel.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-detail-panel.test.js +50 -0
- package/dist/opportunities/__tests__/opportunity-detail-panel.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-empty-state.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-empty-state.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-empty-state.test.js +19 -0
- package/dist/opportunities/__tests__/opportunity-empty-state.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.js +77 -0
- package/dist/opportunities/__tests__/opportunity-filter-bar-drawer.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-filter-bar.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-filter-bar.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-filter-bar.test.js +107 -0
- package/dist/opportunities/__tests__/opportunity-filter-bar.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-offers-count-chip.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-offers-count-chip.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-offers-count-chip.test.js +25 -0
- package/dist/opportunities/__tests__/opportunity-offers-count-chip.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-reopen-button.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-reopen-button.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-reopen-button.test.js +29 -0
- package/dist/opportunities/__tests__/opportunity-reopen-button.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-republish-button.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-republish-button.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-republish-button.test.js +29 -0
- package/dist/opportunities/__tests__/opportunity-republish-button.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.js +19 -0
- package/dist/opportunities/__tests__/opportunity-resume-draft-button.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-stacked-card.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-stacked-card.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-stacked-card.test.js +99 -0
- package/dist/opportunities/__tests__/opportunity-stacked-card.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-stacked-list.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-stacked-list.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-stacked-list.test.js +98 -0
- package/dist/opportunities/__tests__/opportunity-stacked-list.test.js.map +1 -0
- package/dist/opportunities/__tests__/opportunity-view-offers-button.test.d.ts +2 -0
- package/dist/opportunities/__tests__/opportunity-view-offers-button.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/opportunity-view-offers-button.test.js +23 -0
- package/dist/opportunities/__tests__/opportunity-view-offers-button.test.js.map +1 -0
- package/dist/opportunities/__tests__/section-field.test.d.ts +2 -0
- package/dist/opportunities/__tests__/section-field.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/section-field.test.js +28 -0
- package/dist/opportunities/__tests__/section-field.test.js.map +1 -0
- package/dist/opportunities/__tests__/two-column-section.test.d.ts +2 -0
- package/dist/opportunities/__tests__/two-column-section.test.d.ts.map +1 -0
- package/dist/opportunities/__tests__/two-column-section.test.js +25 -0
- package/dist/opportunities/__tests__/two-column-section.test.js.map +1 -0
- package/dist/opportunities/index.d.ts +51 -1
- package/dist/opportunities/index.d.ts.map +1 -1
- package/dist/opportunities/index.js +35 -0
- package/dist/opportunities/index.js.map +1 -1
- package/dist/opportunities/opportunities-table.d.ts +4 -0
- package/dist/opportunities/opportunities-table.d.ts.map +1 -1
- package/dist/opportunities/opportunities-table.js +4 -0
- package/dist/opportunities/opportunities-table.js.map +1 -1
- package/dist/opportunities/opportunity-add-to-journey-button.d.ts +12 -0
- package/dist/opportunities/opportunity-add-to-journey-button.d.ts.map +1 -0
- package/dist/opportunities/opportunity-add-to-journey-button.js +42 -0
- package/dist/opportunities/opportunity-add-to-journey-button.js.map +1 -0
- package/dist/opportunities/opportunity-card-actions-menu.d.ts +9 -0
- package/dist/opportunities/opportunity-card-actions-menu.d.ts.map +1 -0
- package/dist/opportunities/opportunity-card-actions-menu.js +33 -0
- package/dist/opportunities/opportunity-card-actions-menu.js.map +1 -0
- package/dist/opportunities/opportunity-card-actions-menu.stories.d.ts +14 -0
- package/dist/opportunities/opportunity-card-actions-menu.stories.d.ts.map +1 -0
- package/dist/opportunities/opportunity-card-actions-menu.stories.js +12 -0
- package/dist/opportunities/opportunity-card-actions-menu.stories.js.map +1 -0
- package/dist/opportunities/opportunity-celebration.d.ts +8 -0
- package/dist/opportunities/opportunity-celebration.d.ts.map +1 -0
- package/dist/opportunities/opportunity-celebration.js +17 -0
- package/dist/opportunities/opportunity-celebration.js.map +1 -0
- package/dist/opportunities/opportunity-celebration.stories.d.ts +17 -0
- package/dist/opportunities/opportunity-celebration.stories.d.ts.map +1 -0
- package/dist/opportunities/opportunity-celebration.stories.js +30 -0
- package/dist/opportunities/opportunity-celebration.stories.js.map +1 -0
- package/dist/opportunities/opportunity-channel-badge.d.ts +7 -0
- package/dist/opportunities/opportunity-channel-badge.d.ts.map +1 -0
- package/dist/opportunities/opportunity-channel-badge.js +13 -0
- package/dist/opportunities/opportunity-channel-badge.js.map +1 -0
- package/dist/opportunities/opportunity-channel-badge.stories.d.ts +13 -0
- package/dist/opportunities/opportunity-channel-badge.stories.d.ts.map +1 -0
- package/dist/opportunities/opportunity-channel-badge.stories.js +11 -0
- package/dist/opportunities/opportunity-channel-badge.stories.js.map +1 -0
- package/dist/opportunities/opportunity-detail-panel.d.ts +13 -0
- package/dist/opportunities/opportunity-detail-panel.d.ts.map +1 -0
- package/dist/opportunities/opportunity-detail-panel.js +19 -0
- package/dist/opportunities/opportunity-detail-panel.js.map +1 -0
- package/dist/opportunities/opportunity-detail-panel.stories.d.ts +14 -0
- package/dist/opportunities/opportunity-detail-panel.stories.d.ts.map +1 -0
- package/dist/opportunities/opportunity-detail-panel.stories.js +53 -0
- package/dist/opportunities/opportunity-detail-panel.stories.js.map +1 -0
- package/dist/opportunities/opportunity-empty-state.d.ts +10 -0
- package/dist/opportunities/opportunity-empty-state.d.ts.map +1 -0
- package/dist/opportunities/opportunity-empty-state.js +6 -0
- package/dist/opportunities/opportunity-empty-state.js.map +1 -0
- package/dist/opportunities/opportunity-empty-state.stories.d.ts +13 -0
- package/dist/opportunities/opportunity-empty-state.stories.d.ts.map +1 -0
- package/dist/opportunities/opportunity-empty-state.stories.js +13 -0
- package/dist/opportunities/opportunity-empty-state.stories.js.map +1 -0
- package/dist/opportunities/opportunity-filter-bar-drawer.d.ts +10 -0
- package/dist/opportunities/opportunity-filter-bar-drawer.d.ts.map +1 -0
- package/dist/opportunities/opportunity-filter-bar-drawer.js +54 -0
- package/dist/opportunities/opportunity-filter-bar-drawer.js.map +1 -0
- package/dist/opportunities/opportunity-filter-bar.d.ts +14 -0
- package/dist/opportunities/opportunity-filter-bar.d.ts.map +1 -0
- package/dist/opportunities/opportunity-filter-bar.js +65 -0
- package/dist/opportunities/opportunity-filter-bar.js.map +1 -0
- package/dist/opportunities/opportunity-filter-bar.stories.d.ts +25 -0
- package/dist/opportunities/opportunity-filter-bar.stories.d.ts.map +1 -0
- package/dist/opportunities/opportunity-filter-bar.stories.js +63 -0
- package/dist/opportunities/opportunity-filter-bar.stories.js.map +1 -0
- package/dist/opportunities/opportunity-offers-count-chip.d.ts +6 -0
- package/dist/opportunities/opportunity-offers-count-chip.d.ts.map +1 -0
- package/dist/opportunities/opportunity-offers-count-chip.js +8 -0
- package/dist/opportunities/opportunity-offers-count-chip.js.map +1 -0
- package/dist/opportunities/opportunity-offers-count-chip.stories.d.ts +13 -0
- package/dist/opportunities/opportunity-offers-count-chip.stories.d.ts.map +1 -0
- package/dist/opportunities/opportunity-offers-count-chip.stories.js +11 -0
- package/dist/opportunities/opportunity-offers-count-chip.stories.js.map +1 -0
- package/dist/opportunities/opportunity-reopen-button.d.ts +11 -0
- package/dist/opportunities/opportunity-reopen-button.d.ts.map +1 -0
- package/dist/opportunities/opportunity-reopen-button.js +20 -0
- package/dist/opportunities/opportunity-reopen-button.js.map +1 -0
- package/dist/opportunities/opportunity-republish-button.d.ts +7 -0
- package/dist/opportunities/opportunity-republish-button.d.ts.map +1 -0
- package/dist/opportunities/opportunity-republish-button.js +14 -0
- package/dist/opportunities/opportunity-republish-button.js.map +1 -0
- package/dist/opportunities/opportunity-resume-draft-button.d.ts +7 -0
- package/dist/opportunities/opportunity-resume-draft-button.d.ts.map +1 -0
- package/dist/opportunities/opportunity-resume-draft-button.js +7 -0
- package/dist/opportunities/opportunity-resume-draft-button.js.map +1 -0
- package/dist/opportunities/opportunity-stacked-card.d.ts +20 -0
- package/dist/opportunities/opportunity-stacked-card.d.ts.map +1 -0
- package/dist/opportunities/opportunity-stacked-card.js +48 -0
- package/dist/opportunities/opportunity-stacked-card.js.map +1 -0
- package/dist/opportunities/opportunity-stacked-card.stories.d.ts +23 -0
- package/dist/opportunities/opportunity-stacked-card.stories.d.ts.map +1 -0
- package/dist/opportunities/opportunity-stacked-card.stories.js +143 -0
- package/dist/opportunities/opportunity-stacked-card.stories.js.map +1 -0
- package/dist/opportunities/opportunity-stacked-list.d.ts +28 -0
- package/dist/opportunities/opportunity-stacked-list.d.ts.map +1 -0
- package/dist/opportunities/opportunity-stacked-list.js +51 -0
- package/dist/opportunities/opportunity-stacked-list.js.map +1 -0
- package/dist/opportunities/opportunity-stacked-list.stories.d.ts +16 -0
- package/dist/opportunities/opportunity-stacked-list.stories.d.ts.map +1 -0
- package/dist/opportunities/opportunity-stacked-list.stories.js +38 -0
- package/dist/opportunities/opportunity-stacked-list.stories.js.map +1 -0
- package/dist/opportunities/opportunity-view-offers-button.d.ts +7 -0
- package/dist/opportunities/opportunity-view-offers-button.d.ts.map +1 -0
- package/dist/opportunities/opportunity-view-offers-button.js +8 -0
- package/dist/opportunities/opportunity-view-offers-button.js.map +1 -0
- package/dist/opportunities/section-field.d.ts +8 -0
- package/dist/opportunities/section-field.d.ts.map +1 -0
- package/dist/opportunities/section-field.js +9 -0
- package/dist/opportunities/section-field.js.map +1 -0
- package/dist/opportunities/section-field.stories.d.ts +13 -0
- package/dist/opportunities/section-field.stories.d.ts.map +1 -0
- package/dist/opportunities/section-field.stories.js +15 -0
- package/dist/opportunities/section-field.stories.js.map +1 -0
- package/dist/opportunities/two-column-section.d.ts +10 -0
- package/dist/opportunities/two-column-section.d.ts.map +1 -0
- package/dist/opportunities/two-column-section.js +22 -0
- package/dist/opportunities/two-column-section.js.map +1 -0
- package/dist/opportunities/two-column-section.stories.d.ts +12 -0
- package/dist/opportunities/two-column-section.stories.d.ts.map +1 -0
- package/dist/opportunities/two-column-section.stories.js +26 -0
- package/dist/opportunities/two-column-section.stories.js.map +1 -0
- package/dist/opportunities/types.d.ts +76 -0
- package/dist/opportunities/types.d.ts.map +1 -0
- package/dist/opportunities/types.js +2 -0
- package/dist/opportunities/types.js.map +1 -0
- package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.d.ts +2 -0
- package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.d.ts.map +1 -0
- package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.js +53 -0
- package/dist/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.js.map +1 -0
- package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.d.ts +2 -0
- package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.d.ts.map +1 -0
- package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.js +32 -0
- package/dist/opportunities/wizard/__a11y__/wizard-stepper.a11y.test.js.map +1 -0
- package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.d.ts +2 -0
- package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.d.ts.map +1 -0
- package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.js +127 -0
- package/dist/opportunities/wizard/__tests__/opportunity-wizard.test.js.map +1 -0
- package/dist/opportunities/wizard/__tests__/step-opportunities.test.d.ts +2 -0
- package/dist/opportunities/wizard/__tests__/step-opportunities.test.d.ts.map +1 -0
- package/dist/opportunities/wizard/__tests__/step-opportunities.test.js +93 -0
- package/dist/opportunities/wizard/__tests__/step-opportunities.test.js.map +1 -0
- package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.d.ts +2 -0
- package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.d.ts.map +1 -0
- package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.js +141 -0
- package/dist/opportunities/wizard/__tests__/step-pricing-timeline.test.js.map +1 -0
- package/dist/opportunities/wizard/__tests__/step-review.test.d.ts +2 -0
- package/dist/opportunities/wizard/__tests__/step-review.test.d.ts.map +1 -0
- package/dist/opportunities/wizard/__tests__/step-review.test.js +80 -0
- package/dist/opportunities/wizard/__tests__/step-review.test.js.map +1 -0
- package/dist/opportunities/wizard/__tests__/step-tender-basics.test.d.ts +2 -0
- package/dist/opportunities/wizard/__tests__/step-tender-basics.test.d.ts.map +1 -0
- package/dist/opportunities/wizard/__tests__/step-tender-basics.test.js +76 -0
- package/dist/opportunities/wizard/__tests__/step-tender-basics.test.js.map +1 -0
- package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.d.ts +2 -0
- package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.d.ts.map +1 -0
- package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.js +192 -0
- package/dist/opportunities/wizard/__tests__/use-wizard-draft.test.js.map +1 -0
- package/dist/opportunities/wizard/__tests__/wizard-stepper.test.d.ts +2 -0
- package/dist/opportunities/wizard/__tests__/wizard-stepper.test.d.ts.map +1 -0
- package/dist/opportunities/wizard/__tests__/wizard-stepper.test.js +61 -0
- package/dist/opportunities/wizard/__tests__/wizard-stepper.test.js.map +1 -0
- package/dist/opportunities/wizard/opportunity-wizard.d.ts +29 -0
- package/dist/opportunities/wizard/opportunity-wizard.d.ts.map +1 -0
- package/dist/opportunities/wizard/opportunity-wizard.js +196 -0
- package/dist/opportunities/wizard/opportunity-wizard.js.map +1 -0
- package/dist/opportunities/wizard/opportunity-wizard.stories.d.ts +12 -0
- package/dist/opportunities/wizard/opportunity-wizard.stories.d.ts.map +1 -0
- package/dist/opportunities/wizard/opportunity-wizard.stories.js +49 -0
- package/dist/opportunities/wizard/opportunity-wizard.stories.js.map +1 -0
- package/dist/opportunities/wizard/step-opportunities.d.ts +9 -0
- package/dist/opportunities/wizard/step-opportunities.d.ts.map +1 -0
- package/dist/opportunities/wizard/step-opportunities.js +80 -0
- package/dist/opportunities/wizard/step-opportunities.js.map +1 -0
- package/dist/opportunities/wizard/step-pricing-timeline.d.ts +9 -0
- package/dist/opportunities/wizard/step-pricing-timeline.d.ts.map +1 -0
- package/dist/opportunities/wizard/step-pricing-timeline.js +64 -0
- package/dist/opportunities/wizard/step-pricing-timeline.js.map +1 -0
- package/dist/opportunities/wizard/step-review.d.ts +9 -0
- package/dist/opportunities/wizard/step-review.d.ts.map +1 -0
- package/dist/opportunities/wizard/step-review.js +34 -0
- package/dist/opportunities/wizard/step-review.js.map +1 -0
- package/dist/opportunities/wizard/step-tender-basics.d.ts +16 -0
- package/dist/opportunities/wizard/step-tender-basics.d.ts.map +1 -0
- package/dist/opportunities/wizard/step-tender-basics.js +39 -0
- package/dist/opportunities/wizard/step-tender-basics.js.map +1 -0
- package/dist/opportunities/wizard/use-wizard-draft.d.ts +41 -0
- package/dist/opportunities/wizard/use-wizard-draft.d.ts.map +1 -0
- package/dist/opportunities/wizard/use-wizard-draft.js +214 -0
- package/dist/opportunities/wizard/use-wizard-draft.js.map +1 -0
- package/dist/opportunities/wizard/wizard-stepper.d.ts +20 -0
- package/dist/opportunities/wizard/wizard-stepper.d.ts.map +1 -0
- package/dist/opportunities/wizard/wizard-stepper.js +26 -0
- package/dist/opportunities/wizard/wizard-stepper.js.map +1 -0
- package/dist/opportunities/wizard/wizard-stepper.stories.d.ts +22 -0
- package/dist/opportunities/wizard/wizard-stepper.stories.d.ts.map +1 -0
- package/dist/opportunities/wizard/wizard-stepper.stories.js +47 -0
- package/dist/opportunities/wizard/wizard-stepper.stories.js.map +1 -0
- package/dist/opportunities/wizard/wizard.types.d.ts +176 -0
- package/dist/opportunities/wizard/wizard.types.d.ts.map +1 -0
- package/dist/opportunities/wizard/wizard.types.js +62 -0
- package/dist/opportunities/wizard/wizard.types.js.map +1 -0
- package/dist/org/invite-member-dialog.stories.d.ts +24 -0
- package/dist/org/invite-member-dialog.stories.d.ts.map +1 -0
- package/dist/org/invite-member-dialog.stories.js +34 -0
- package/dist/org/invite-member-dialog.stories.js.map +1 -0
- package/dist/org/team-hero-banner.stories.d.ts +25 -0
- package/dist/org/team-hero-banner.stories.d.ts.map +1 -0
- package/dist/org/team-hero-banner.stories.js +53 -0
- package/dist/org/team-hero-banner.stories.js.map +1 -0
- package/dist/org/team-member-menu.stories.d.ts +19 -0
- package/dist/org/team-member-menu.stories.d.ts.map +1 -0
- package/dist/org/team-member-menu.stories.js +27 -0
- package/dist/org/team-member-menu.stories.js.map +1 -0
- package/dist/org/team-member-row.stories.d.ts +26 -0
- package/dist/org/team-member-row.stories.d.ts.map +1 -0
- package/dist/org/team-member-row.stories.js +61 -0
- package/dist/org/team-member-row.stories.js.map +1 -0
- package/dist/org/team-pending-row.stories.d.ts +23 -0
- package/dist/org/team-pending-row.stories.d.ts.map +1 -0
- package/dist/org/team-pending-row.stories.js +45 -0
- package/dist/org/team-pending-row.stories.js.map +1 -0
- package/package.json +13 -4
- package/src/offer/offer-document.print.css +72 -0
- package/src/theme/tokens.css +78 -0
- package/dist/components/sidebar.d.ts +0 -68
- package/dist/components/sidebar.d.ts.map +0 -1
- package/dist/components/sidebar.js +0 -208
- 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,EAAyB;IAC9G,MAAM,EAAE,QAAQ,EAAE,KAAK,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AAE,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;QAC7B,MAAM,CAAC,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC;YAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,SAAS,yBAAyB,CAAC,EAAU,EAAE,KAA2B,EAAE,OAA2B;IACrG,IAAI,CAAC;QACH,YAAY,CAAC,OAAO,CAClB,GAAG,oBAAoB,GAAG,EAAE,EAAE,EAC9B,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,CAC1D,CAAC;QACF,eAAe;QACf,MAAM,IAAI,GAAG,sBAAsB,EAAE,CAAC;QACtC,IAAI,IAAI,CAAC,MAAM,GAAG,gBAAgB,EAAE,CAAC;YACnC,MAAM,OAAO,GAAG,IAAI;i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ep {
|
|
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,MA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,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":[],"mappings":";AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,KAAK,GAAG;IACZ,EAAE,EAAE,EAAE,QAAQ,EAAS,KAAK,EAAE,QAAQ,EAAE;IACxC,EAAE,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;IAC/C,EAAE,EAAE,EAAE,SAAS,EAAQ,KAAK,EAAE,SAAS,EAAE;IACzC,EAAE,EAAE,EAAE,QAAQ,EAAS,KAAK,EAAE,QAAQ,EAAE;CACzC,CAAC;AAEF,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,CAAC,UAAU,CAAC;CACkB,CAAC;AACvC,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,UAAU,GAAc,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,gBAAgB,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,EAAE,CAAC;AACtH,MAAM,CAAC,MAAM,YAAY,GAAY,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,eAAe,EAAE,kBAAkB,EAAE,EAAE,CAAC;AAC5J,MAAM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