@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,143 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { OpportunityStackedCard } from "./opportunity-stacked-card";
|
|
3
|
+
import { SkeletonProvider } from "../skeleton/provider";
|
|
4
|
+
import { StatusPill } from "../components/status-pill";
|
|
5
|
+
import { CountdownPill } from "../components/countdown-pill";
|
|
6
|
+
import { ChannelBadge } from "./opportunity-channel-badge";
|
|
7
|
+
import { OffersCountChip } from "./opportunity-offers-count-chip";
|
|
8
|
+
const baseOpp = {
|
|
9
|
+
id: "opp-demo",
|
|
10
|
+
tenderId: "tender-demo",
|
|
11
|
+
productName: "Organic Prosecco DOCG",
|
|
12
|
+
buyerName: "Systembolaget",
|
|
13
|
+
countryCode: "SE",
|
|
14
|
+
subtitleFacts: [
|
|
15
|
+
{ type: "text", text: "Monopoly" },
|
|
16
|
+
{ type: "text", text: "Launch Q2 2026" },
|
|
17
|
+
{ type: "count", value: 12000, suffix: "bottles" },
|
|
18
|
+
],
|
|
19
|
+
deadline: new Date("2026-05-01T12:00:00Z"),
|
|
20
|
+
status: "open",
|
|
21
|
+
};
|
|
22
|
+
const meta = {
|
|
23
|
+
title: "Opportunities/OpportunityStackedCard",
|
|
24
|
+
component: OpportunityStackedCard,
|
|
25
|
+
tags: ["autodocs"],
|
|
26
|
+
};
|
|
27
|
+
export default meta;
|
|
28
|
+
const producerTabs = [
|
|
29
|
+
{ id: "overview", label: "Overview", content: _jsx("div", { className: "p-2 text-sm", children: "Overview content for this opportunity." }) },
|
|
30
|
+
{ id: "timeline", label: "Timeline", content: _jsx("div", { className: "p-2 text-sm", children: "Submission deadline: 2026-05-01." }) },
|
|
31
|
+
];
|
|
32
|
+
const importerTabs = [
|
|
33
|
+
{ id: "overview", label: "Overview", content: _jsx("div", { className: "p-2 text-sm", children: "Importer-side overview." }) },
|
|
34
|
+
];
|
|
35
|
+
export const Producer = {
|
|
36
|
+
args: {
|
|
37
|
+
opportunity: baseOpp,
|
|
38
|
+
leftBadge: _jsx(ChannelBadge, { channel: "monopoly" }),
|
|
39
|
+
metaRight: _jsx(CountdownPill, { date: baseOpp.deadline }),
|
|
40
|
+
primaryAction: _jsx("button", { className: "rounded-md bg-emerald-700 px-3 py-1.5 text-xs text-white", children: "Add to Journey" }),
|
|
41
|
+
tabs: producerTabs,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
export const ImporterOpen = {
|
|
45
|
+
args: {
|
|
46
|
+
opportunity: { ...baseOpp, status: "open" },
|
|
47
|
+
leftBadge: _jsx(StatusPill, { status: "open" }),
|
|
48
|
+
metaRight: _jsx(OffersCountChip, { count: 7 }),
|
|
49
|
+
primaryAction: _jsx("button", { className: "rounded-md bg-emerald-700 px-3 py-1.5 text-xs text-white", children: "View offers (7)" }),
|
|
50
|
+
tabs: importerTabs,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
export const ImporterClosedDeEmphasized = {
|
|
54
|
+
args: {
|
|
55
|
+
opportunity: { ...baseOpp, status: "closed" },
|
|
56
|
+
leftBadge: _jsx(StatusPill, { status: "closed" }),
|
|
57
|
+
metaRight: _jsx(OffersCountChip, { count: 3 }),
|
|
58
|
+
primaryAction: _jsx("button", { className: "rounded-md bg-slate-700 px-3 py-1.5 text-xs text-white", children: "Reopen" }),
|
|
59
|
+
deEmphasized: true,
|
|
60
|
+
tabs: importerTabs,
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
export const ImporterExpired = {
|
|
64
|
+
args: {
|
|
65
|
+
opportunity: { ...baseOpp, status: "expired", deadline: new Date("2026-04-10T12:00:00Z") },
|
|
66
|
+
leftBadge: _jsx(StatusPill, { status: "expired" }),
|
|
67
|
+
metaRight: _jsx(CountdownPill, { date: new Date("2026-04-10T12:00:00Z"), now: new Date("2026-04-21T12:00:00Z") }),
|
|
68
|
+
primaryAction: _jsx("button", { className: "rounded-md bg-emerald-700 px-3 py-1.5 text-xs text-white", children: "Republish" }),
|
|
69
|
+
deEmphasized: true,
|
|
70
|
+
tabs: importerTabs,
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
export const ImporterDraft = {
|
|
74
|
+
args: {
|
|
75
|
+
opportunity: { ...baseOpp, status: "draft" },
|
|
76
|
+
leftBadge: _jsx(StatusPill, { status: "draft" }),
|
|
77
|
+
metaRight: null,
|
|
78
|
+
primaryAction: _jsx("button", { className: "rounded-md bg-emerald-700 px-3 py-1.5 text-xs text-white", children: "Resume draft" }),
|
|
79
|
+
tabs: importerTabs,
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
export const InJourney = {
|
|
83
|
+
args: {
|
|
84
|
+
opportunity: baseOpp,
|
|
85
|
+
leftBadge: _jsx(ChannelBadge, { channel: "monopoly" }),
|
|
86
|
+
metaRight: _jsx(CountdownPill, { date: baseOpp.deadline }),
|
|
87
|
+
primaryAction: _jsx("button", { className: "rounded-md bg-emerald-100 px-3 py-1.5 text-xs text-emerald-800", children: "In Journey" }),
|
|
88
|
+
deEmphasized: true,
|
|
89
|
+
tabs: producerTabs,
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
export const Expanded = {
|
|
93
|
+
args: {
|
|
94
|
+
opportunity: baseOpp,
|
|
95
|
+
leftBadge: _jsx(ChannelBadge, { channel: "monopoly" }),
|
|
96
|
+
metaRight: _jsx(CountdownPill, { date: baseOpp.deadline }),
|
|
97
|
+
primaryAction: _jsx("button", { className: "rounded-md bg-emerald-700 px-3 py-1.5 text-xs text-white", children: "Add to Journey" }),
|
|
98
|
+
tabs: producerTabs,
|
|
99
|
+
expanded: true,
|
|
100
|
+
onExpandChange: () => { },
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
export const ReadOnlyPreview = {
|
|
104
|
+
args: {
|
|
105
|
+
opportunity: baseOpp,
|
|
106
|
+
leftBadge: _jsx(ChannelBadge, { channel: "monopoly" }),
|
|
107
|
+
metaRight: _jsx(CountdownPill, { date: baseOpp.deadline }),
|
|
108
|
+
primaryAction: null,
|
|
109
|
+
readOnly: true,
|
|
110
|
+
tabs: [{ id: "overview", label: "Overview", content: _jsx("div", { className: "p-2 text-sm", children: "review-mode body" }) }],
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
export const LongTitleTruncation = {
|
|
114
|
+
args: {
|
|
115
|
+
opportunity: { ...baseOpp, productName: "Single-Vineyard Estate-Bottled Grand Reserve Chardonnay 2020 with Oak Ageing and Terroir Emphasis" },
|
|
116
|
+
leftBadge: _jsx(ChannelBadge, { channel: "monopoly" }),
|
|
117
|
+
metaRight: _jsx(CountdownPill, { date: baseOpp.deadline }),
|
|
118
|
+
primaryAction: _jsx("button", { className: "rounded-md bg-emerald-700 px-3 py-1.5 text-xs text-white", children: "Add" }),
|
|
119
|
+
tabs: producerTabs,
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
export const NoDeadline = {
|
|
123
|
+
args: {
|
|
124
|
+
opportunity: { ...baseOpp, deadline: null },
|
|
125
|
+
leftBadge: _jsx(ChannelBadge, { channel: "monopoly" }),
|
|
126
|
+
metaRight: _jsx(CountdownPill, { date: null }),
|
|
127
|
+
primaryAction: _jsx("button", { className: "rounded-md bg-emerald-700 px-3 py-1.5 text-xs text-white", children: "Add" }),
|
|
128
|
+
tabs: producerTabs,
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
export const ZeroOffersCount = {
|
|
132
|
+
args: {
|
|
133
|
+
opportunity: { ...baseOpp, status: "open" },
|
|
134
|
+
leftBadge: _jsx(StatusPill, { status: "open" }),
|
|
135
|
+
metaRight: _jsx(OffersCountChip, { count: 0 }),
|
|
136
|
+
primaryAction: _jsx("button", { className: "rounded-md bg-emerald-700 px-3 py-1.5 text-xs text-white", children: "View offers" }),
|
|
137
|
+
tabs: importerTabs,
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
export const LoadingSkeleton = {
|
|
141
|
+
render: () => (_jsx(SkeletonProvider, { children: _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(OpportunityStackedCard.Skeleton, {}), _jsx(OpportunityStackedCard.Skeleton, {}), _jsx(OpportunityStackedCard.Skeleton, {})] }) })),
|
|
142
|
+
};
|
|
143
|
+
//# sourceMappingURL=opportunity-stacked-card.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-stacked-card.stories.js","sourceRoot":"","sources":["../../src/opportunities/opportunity-stacked-card.stories.tsx"],"names":[],"mappings":";AACA,OAAO,E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AAI,EAAE,YAAY;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAU;IACpC,IAAI,EAAE;QACJ,WAAW,EAAE,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE;QAC3C,SAAS,EAAE,KAAC,UAAU,IAAC,MAAM,EAAC,MAAM,GAAG;QACvC,SAAS,EAAE,KAAC,eAAe,IAAC,KAAK,EAAE,CAAC,GAAI;QACxC,aAAa,EAAE,iBAAQ,SAAS,EAAC,0DAA0D,4BAAqB;QAChH,IAAI,EAAE,YAAY;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAwB;IAClD,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ,KAAC,gBAAgB,cACf,eAAK,SAAS,EAAC,qBAAqB,aAClC,KAAC,sBAAsB,CAAC,QAAQ,KAAG,EACnC,KAAC,sBAAsB,CAAC,QAAQ,KAAG,EACnC,KAAC,sBAAsB,CAAC,QAAQ,KAAG,IAC/B,GACW,CACpB;CACF,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { OpportunityView } from "./types";
|
|
3
|
+
export interface RenderCardContext {
|
|
4
|
+
isExpanded: boolean;
|
|
5
|
+
onToggleExpand: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface OpportunityStackedListProps {
|
|
8
|
+
opportunities: OpportunityView[];
|
|
9
|
+
renderCard: (opp: OpportunityView, ctx: RenderCardContext) => React.ReactNode;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
isRefetching?: boolean;
|
|
12
|
+
emptyState?: React.ReactNode;
|
|
13
|
+
accordionMode?: boolean;
|
|
14
|
+
expandedIds?: string[];
|
|
15
|
+
defaultExpandedIds?: string[];
|
|
16
|
+
onExpandedIdsChange?: (next: string[]) => void;
|
|
17
|
+
highlightId?: string;
|
|
18
|
+
skeletonCount?: number;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
export type OpportunityStackedListComponent = React.FC<OpportunityStackedListProps> & {
|
|
22
|
+
Skeleton: React.FC<{
|
|
23
|
+
count?: number;
|
|
24
|
+
className?: string;
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
27
|
+
export declare const OpportunityStackedList: OpportunityStackedListComponent;
|
|
28
|
+
//# sourceMappingURL=opportunity-stacked-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-stacked-list.d.ts","sourceRoot":"","sources":["../../src/opportunities/opportunity-stacked-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/C,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,UAAU,EAAE,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,iBAAiB,KAAK,KAAK,CAAC,SAAS,CAAC;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA0GD,MAAM,MAAM,+BAA+B,GAAG,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAAC,GAAG;IACpF,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC5D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAiC,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { LayoutGroup, motion, useReducedMotion } from "motion/react";
|
|
4
|
+
import { Inbox } from "lucide-react";
|
|
5
|
+
import { SkeletonProvider } from "../skeleton/provider";
|
|
6
|
+
import { OpportunityStackedCard } from "./opportunity-stacked-card";
|
|
7
|
+
import { OpportunityEmptyState } from "./opportunity-empty-state";
|
|
8
|
+
import { cn } from "../lib/utils";
|
|
9
|
+
// Skeleton compound — wraps in SkeletonProvider so each card-skeleton gets a cascade index
|
|
10
|
+
function OpportunityStackedListSkeleton({ count = 6, className }) {
|
|
11
|
+
return (_jsx(SkeletonProvider, { tier: "data", children: _jsx("div", { className: cn("flex flex-col gap-2", className), children: Array.from({ length: count }).map((_, i) => (
|
|
12
|
+
// eslint-disable-next-line @eslint-react/no-array-index-key -- skeletons are static; indices are stable
|
|
13
|
+
_jsx(OpportunityStackedCard.Skeleton, {}, i))) }) }));
|
|
14
|
+
}
|
|
15
|
+
function OpportunityStackedListBase({ opportunities, renderCard, isLoading = false, isRefetching = false, emptyState, accordionMode = false, expandedIds: controlled, defaultExpandedIds, onExpandedIdsChange, highlightId, skeletonCount = 6, className, }) {
|
|
16
|
+
const prefersReducedMotion = useReducedMotion();
|
|
17
|
+
const [uncontrolled, setUncontrolled] = React.useState(defaultExpandedIds ?? []);
|
|
18
|
+
const isControlled = controlled !== undefined;
|
|
19
|
+
const expanded = isControlled ? controlled : uncontrolled;
|
|
20
|
+
const setExpanded = React.useCallback((next) => {
|
|
21
|
+
if (!isControlled)
|
|
22
|
+
setUncontrolled(next);
|
|
23
|
+
onExpandedIdsChange?.(next);
|
|
24
|
+
}, [isControlled, onExpandedIdsChange]);
|
|
25
|
+
const toggle = React.useCallback((id) => {
|
|
26
|
+
const isOpen = expanded.includes(id);
|
|
27
|
+
if (isOpen) {
|
|
28
|
+
setExpanded(expanded.filter(x => x !== id));
|
|
29
|
+
}
|
|
30
|
+
else if (accordionMode) {
|
|
31
|
+
setExpanded([id]);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
setExpanded([...expanded, id]);
|
|
35
|
+
}
|
|
36
|
+
}, [expanded, accordionMode, setExpanded]);
|
|
37
|
+
if (isLoading) {
|
|
38
|
+
return _jsx(OpportunityStackedListSkeleton, { count: skeletonCount, className: className });
|
|
39
|
+
}
|
|
40
|
+
if (opportunities.length === 0) {
|
|
41
|
+
return emptyState ? (_jsx(_Fragment, { children: emptyState })) : (_jsx(OpportunityEmptyState, { icon: _jsx(Inbox, { className: "size-10" }), title: "No opportunities to show" }));
|
|
42
|
+
}
|
|
43
|
+
return (_jsxs("div", { "data-refetch-pulse": isRefetching || undefined, className: cn("flex flex-col gap-2", className), children: [_jsx("a", { href: "#opportunities-list-end", className: "sr-only focus:not-sr-only focus:absolute focus:left-2 focus:top-2 focus:z-10 focus:rounded-md focus:bg-emerald-700 focus:px-3 focus:py-1.5 focus:text-sm focus:text-white", children: "Skip opportunity list" }), _jsx(LayoutGroup, { children: opportunities.map((opp, index) => {
|
|
44
|
+
const isExpanded = expanded.includes(opp.id);
|
|
45
|
+
const onToggleExpand = () => toggle(opp.id);
|
|
46
|
+
return (_jsx(motion.div, { layout: !prefersReducedMotion, initial: prefersReducedMotion ? undefined : { opacity: 0, y: 8 }, animate: prefersReducedMotion ? undefined : { opacity: 1, y: 0 }, transition: prefersReducedMotion ? undefined : { type: "spring", stiffness: 260, damping: 22, delay: index * 0.12 }, "data-opportunity-highlight": highlightId === opp.id ? "pulse" : undefined, children: renderCard(opp, { isExpanded, onToggleExpand }) }, opp.id));
|
|
47
|
+
}) }), _jsx("span", { id: "opportunities-list-end", tabIndex: -1 })] }));
|
|
48
|
+
}
|
|
49
|
+
export const OpportunityStackedList = OpportunityStackedListBase;
|
|
50
|
+
OpportunityStackedList.Skeleton = OpportunityStackedListSkeleton;
|
|
51
|
+
//# sourceMappingURL=opportunity-stacked-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-stacked-list.js","sourceRoot":"","sources":["../../src/opportunities/opportunity-stacked-list.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAsBlC,2FAA2F;AAC3F,SAAS,8BAA8B,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,SAAS,EAA0C;IACtG,OAAO,CACL,KAAC,gBAAgB,IAAC,IAAI,EAAC,MAAM,YAC3B,cAAK,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,YACjD,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3C,wGAAwG;YACxG,KAAC,sBAAsB,CAAC,QAAQ,MAAM,CAAC,CAAI,CAC5C,CAAC,GACE,GACW,CACpB,CAAC;AACJ,CAAC;AAED,SAAS,0BAA0B,CAAC,EAClC,aAAa,EACb,UAAU,EAC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EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,EAAE,gCACvF,WAAW,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,YAEvE,UAAU,CAAC,GAAG,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC,IAP3C,GAAG,CAAC,EAAE,CAQA,CACd,CAAC;gBACJ,CAAC,CAAC,GACU,EACd,eAAM,EAAE,EAAC,wBAAwB,EAAC,QAAQ,EAAE,CAAC,CAAC,GAAI,IAC9C,CACP,CAAC;AACJ,CAAC;AAMD,MAAM,CAAC,MAAM,sBAAsB,GAAG,0BAA6D,CAAC;AACpG,sBAAsB,CAAC,QAAQ,GAAG,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("./opportunity-stacked-list").OpportunityStackedListComponent;
|
|
5
|
+
tags: string[];
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Loaded: Story;
|
|
10
|
+
export declare const Loading: Story;
|
|
11
|
+
export declare const Empty: Story;
|
|
12
|
+
export declare const Refetching: Story;
|
|
13
|
+
export declare const AccordionMode: Story;
|
|
14
|
+
export declare const MultiExpandMode: Story;
|
|
15
|
+
export declare const Highlighted: Story;
|
|
16
|
+
//# sourceMappingURL=opportunity-stacked-list.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-stacked-list.stories.d.ts","sourceRoot":"","sources":["../../src/opportunities/opportunity-stacked-list.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAO5D,QAAA,MAAM,IAAI;;;;CAIqC,CAAC;AAChD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA4BnC,eAAO,MAAM,MAAM,EAAE,KAKpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAAgF,CAAC;AACvG,eAAO,MAAM,KAAK,EAAE,KAA+D,CAAC;AACpF,eAAO,MAAM,UAAU,EAAE,KAAyD,CAAC;AACnF,eAAO,MAAM,aAAa,EAAE,KAA0D,CAAC;AACvF,eAAO,MAAM,eAAe,EAAE,KAAmG,CAAC;AAClI,eAAO,MAAM,WAAW,EAAE,KAA2D,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { OpportunityStackedList } from "./opportunity-stacked-list";
|
|
3
|
+
import { OpportunityStackedCard } from "./opportunity-stacked-card";
|
|
4
|
+
import { ChannelBadge } from "./opportunity-channel-badge";
|
|
5
|
+
import { CountdownPill } from "../components/countdown-pill";
|
|
6
|
+
const meta = {
|
|
7
|
+
title: "Opportunities/OpportunityStackedList",
|
|
8
|
+
component: OpportunityStackedList,
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
const makeOpp = (i) => ({
|
|
13
|
+
id: `opp-${i}`,
|
|
14
|
+
tenderId: `t-${i}`,
|
|
15
|
+
productName: `Product ${i}`,
|
|
16
|
+
buyerName: `Buyer ${i}`,
|
|
17
|
+
countryCode: ["SE", "NO", "FI", "DK"][i % 4],
|
|
18
|
+
subtitleFacts: [
|
|
19
|
+
{ type: "text", text: "Monopoly" },
|
|
20
|
+
{ type: "count", value: 1000 * (i + 1), suffix: "bottles" },
|
|
21
|
+
],
|
|
22
|
+
deadline: new Date(Date.now() + (i + 1) * 86400_000),
|
|
23
|
+
status: "open",
|
|
24
|
+
});
|
|
25
|
+
const renderCard = (opp, ctx) => (_jsx(OpportunityStackedCard, { opportunity: opp, leftBadge: _jsx(ChannelBadge, { channel: "monopoly" }), metaRight: _jsx(CountdownPill, { date: opp.deadline }), primaryAction: _jsx("button", { className: "rounded-sm bg-emerald-700 px-3 py-1.5 text-xs text-white", children: "Add" }), tabs: [{ id: "overview", label: "Overview", content: _jsx("div", { className: "p-2", children: "overview body" }) }], expanded: ctx.isExpanded, onExpandChange: ctx.onToggleExpand }));
|
|
26
|
+
export const Loaded = {
|
|
27
|
+
args: {
|
|
28
|
+
opportunities: [0, 1, 2, 3, 4].map(makeOpp),
|
|
29
|
+
renderCard,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
export const Loading = { args: { opportunities: [], renderCard: () => null, isLoading: true } };
|
|
33
|
+
export const Empty = { args: { opportunities: [], renderCard: () => null } };
|
|
34
|
+
export const Refetching = { args: { ...Loaded.args, isRefetching: true } };
|
|
35
|
+
export const AccordionMode = { args: { ...Loaded.args, accordionMode: true } };
|
|
36
|
+
export const MultiExpandMode = { args: { ...Loaded.args, accordionMode: false, defaultExpandedIds: ["opp-0", "opp-2"] } };
|
|
37
|
+
export const Highlighted = { args: { ...Loaded.args, highlightId: "opp-2" } };
|
|
38
|
+
//# sourceMappingURL=opportunity-stacked-list.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-stacked-list.stories.js","sourceRoot":"","sources":["../../src/opportunities/opportunity-stacked-list.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG7D,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,sCAAsC;IAC7C,SAAS,EAAE,sBAAsB;IACjC,IAAI,EAAE,CAAC,UAAU,CA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,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAU;IAC3B,IAAI,EAAE;QACJ,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC;QAC3C,UAAU;KACX;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU,EAAE,IAAI,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;AACvG,MAAM,CAAC,MAAM,KAAK,GAAU,EAAE,IAAI,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;AACpF,MAAM,CAAC,MAAM,UAAU,GAAU,EAAE,IAAI,EAAE,EAAE,GAAG,MAAM,CAAC,IAAK,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,CAAC;AACnF,MAAM,CAAC,MAAM,aAAa,GAAU,EAAE,IAAI,EAAE,EAAE,GAAG,MAAM,CAAC,IAAK,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,CAAC;AACvF,MAAM,CAAC,MAAM,eAAe,GAAU,EAAE,IAAI,EAAE,EAAE,GAAG,MAAM,CAAC,IAAK,EAAE,aAAa,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC;AAClI,MAAM,CAAC,MAAM,WAAW,GAAU,EAAE,IAAI,EAAE,EAAE,GAAG,MAAM,CAAC,IAAK,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface ViewOffersButtonProps {
|
|
2
|
+
count?: number;
|
|
3
|
+
onClick: () => void;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function ViewOffersButton({ count, onClick, className }: ViewOffersButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=opportunity-view-offers-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-view-offers-button.d.ts","sourceRoot":"","sources":["../../src/opportunities/opportunity-view-offers-button.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,qBAAqB,2CAepF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Inbox } from "lucide-react";
|
|
3
|
+
import { cn } from "../lib/utils";
|
|
4
|
+
export function ViewOffersButton({ count, onClick, className }) {
|
|
5
|
+
const label = count == null ? "View offers" : `View offers (${count})`;
|
|
6
|
+
return (_jsxs("button", { type: "button", onClick: onClick, className: cn("inline-flex items-center gap-1.5 rounded-md bg-emerald-700 px-3 py-1.5 text-xs font-medium text-white hover:bg-emerald-800", className), children: [_jsx(Inbox, { "aria-hidden": true, className: "size-3.5" }), label] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=opportunity-view-offers-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-view-offers-button.js","sourceRoot":"","sources":["../../src/opportunities/opportunity-view-offers-button.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAQlC,MAAM,UAAU,gBAAgB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAyB;IACnF,MAAM,KAAK,GAAG,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,gBAAgB,KAAK,GAAG,CAAC;IACvE,OAAO,CACL,kBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,EAAE,CACX,4HAA4H,EAC5H,SAAS,CACV,aAED,KAAC,KAAK,yBAAa,SAAS,EAAC,UAAU,GAAG,EACzC,KAAK,IACC,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SectionFieldProps {
|
|
3
|
+
label: string;
|
|
4
|
+
value?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function SectionField({ label, value, className }: SectionFieldProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
//# sourceMappingURL=section-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-field.d.ts","sourceRoot":"","sources":["../../src/opportunities/section-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,iBAAiB,kDAS1E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../lib/utils";
|
|
3
|
+
export function SectionField({ label, value, className }) {
|
|
4
|
+
const isEmpty = value == null || value === "" || (Array.isArray(value) && value.length === 0);
|
|
5
|
+
if (isEmpty)
|
|
6
|
+
return null;
|
|
7
|
+
return (_jsxs("div", { className: cn("min-w-0", className), children: [_jsx("dt", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: label }), _jsx("dd", { className: "mt-1 text-sm text-foreground break-words", children: value })] }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=section-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-field.js","sourceRoot":"","sources":["../../src/opportunities/section-field.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAQlC,MAAM,UAAU,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAqB;IACzE,MAAM,OAAO,GAAG,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAC9F,IAAI,OAAO;QAAE,OAAO,IAAI,CAAC;IACzB,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,aACtC,aAAI,SAAS,EAAC,mEAAmE,YAAE,KAAK,GAAM,EAC9F,aAAI,SAAS,EAAC,0CAA0C,YAAE,KAAK,GAAM,IACjE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { SectionField } from "./section-field";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof SectionField;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const Multiline: Story;
|
|
12
|
+
export declare const EmptyCollapses: Story;
|
|
13
|
+
//# sourceMappingURL=section-field.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-field.stories.d.ts","sourceRoot":"","sources":["../../src/opportunities/section-field.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,QAAA,MAAM,IAAI;;;;CAI2B,CAAC;AACtC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAA8D,CAAC;AACrF,eAAO,MAAM,SAAS,EAAE,KAAkH,CAAC;AAC3I,eAAO,MAAM,cAAc,EAAE,KAQ5B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { SectionField } from "./section-field";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: "Opportunities/SectionField",
|
|
5
|
+
component: SectionField,
|
|
6
|
+
tags: ["autodocs"],
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
export const Default = { args: { label: "Volume", value: "12,000 bottles" } };
|
|
10
|
+
export const Multiline = { args: { label: "Notes", value: "Producers must supply SGS certification plus import-duty clearance." } };
|
|
11
|
+
export const EmptyCollapses = {
|
|
12
|
+
args: { label: "placeholder", value: null },
|
|
13
|
+
render: () => (_jsxs("div", { children: [_jsx(SectionField, { label: "Empty \u2014 should not render", value: null }), _jsx("span", { children: "(nothing above this line)" })] })),
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=section-field.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-field.stories.js","sourceRoot":"","sources":["../../src/opportunities/section-field.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,4BAA4B;IACnC,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,CAAC,UAAU,CAAC;CACiB,CAAC;AACtC,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE,CAAC;AACrF,MAAM,CAAC,MAAM,SAAS,GAAU,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,qEAAqE,EAAE,EAAE,CAAC;AAC3I,MAAM,CAAC,MAAM,cAAc,GAAU;IACnC,IAAI,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,IAAI,EAAE;IAC3C,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ,0BACE,KAAC,YAAY,IAAC,KAAK,EAAC,gCAA2B,EAAC,KAAK,EAAE,IAAI,GAAI,EAC/D,uDAAsC,IAClC,CACP;CACF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface TwoColumnSectionProps {
|
|
3
|
+
icon?: React.ReactNode;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function TwoColumnSection({ icon, title, description, children, className }: TwoColumnSectionProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
//# sourceMappingURL=two-column-section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"two-column-section.d.ts","sourceRoot":"","sources":["../../src/opportunities/two-column-section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,qBAAqB,kDA8BxG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../lib/utils";
|
|
4
|
+
export function TwoColumnSection({ icon, title, description, children, className }) {
|
|
5
|
+
const [hasContent, setHasContent] = React.useState(true);
|
|
6
|
+
const dlRef = React.useRef(null);
|
|
7
|
+
React.useLayoutEffect(() => {
|
|
8
|
+
if (dlRef.current) {
|
|
9
|
+
// Check if the dl has any actual DOM nodes as children (not just empty text nodes)
|
|
10
|
+
const hasActualContent = Array.from(dlRef.current.children).length > 0;
|
|
11
|
+
// eslint-disable-next-line @eslint-react/set-state-in-effect -- idempotent: only updates when DOM child count changes
|
|
12
|
+
if (hasActualContent !== hasContent)
|
|
13
|
+
setHasContent(hasActualContent);
|
|
14
|
+
}
|
|
15
|
+
}, [children, hasContent]);
|
|
16
|
+
// If nothing rendered, return null
|
|
17
|
+
if (!hasContent) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
return (_jsxs("section", { className: cn("grid grid-cols-1 gap-6 border-b border-border py-6 last:border-0 md:grid-cols-[220px_1fr]", className), children: [_jsxs("header", { className: "flex flex-col gap-2", children: [icon ? _jsx("span", { "aria-hidden": true, className: "text-muted-foreground", children: icon }) : null, _jsx("h4", { className: "text-sm font-semibold text-foreground", children: title }), description ? _jsx("p", { className: "text-xs text-muted-foreground", children: description }) : null] }), _jsx("dl", { ref: dlRef, className: "grid grid-cols-1 gap-x-6 gap-y-4 md:grid-cols-3", children: children })] }));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=two-column-section.js.map
|
|
@@ -0,0 +1 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,WAAW,GAAK,CAAC,CAAC,CAAC,IAAI,IAC7E,EACT,aAAI,GAAG,EAAE,KAAK,EAAE,SAAS,EAAC,iDAAiD,YACxE,QAAQ,GACN,IACG,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { TwoColumnSection } from "./two-column-section";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof TwoColumnSection;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const AllFieldsEmptyCollapsesEntirely: Story;
|
|
12
|
+
//# sourceMappingURL=two-column-section.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"two-column-section.stories.d.ts","sourceRoot":"","sources":["../../src/opportunities/two-column-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,QAAA,MAAM,IAAI;;;;CAI+B,CAAC;AAC1C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,KAW7C,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ClipboardList } from "lucide-react";
|
|
3
|
+
import { TwoColumnSection } from "./two-column-section";
|
|
4
|
+
import { SectionField } from "./section-field";
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Opportunities/TwoColumnSection",
|
|
7
|
+
component: TwoColumnSection,
|
|
8
|
+
tags: ["autodocs"],
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
export const Default = {
|
|
12
|
+
args: {
|
|
13
|
+
icon: _jsx(ClipboardList, { className: "size-5" }),
|
|
14
|
+
title: "Product requirements",
|
|
15
|
+
description: "Key spec fields producers should match.",
|
|
16
|
+
children: (_jsxs(_Fragment, { children: [_jsx(SectionField, { label: "Category", value: "Sparkling wine" }), _jsx(SectionField, { label: "Volume", value: "12,000 bottles" }), _jsx(SectionField, { label: "Packaging", value: "Glass 750ml" }), _jsx(SectionField, { label: "Launch quarter", value: "Q2 2026" })] })),
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
export const AllFieldsEmptyCollapsesEntirely = {
|
|
20
|
+
args: {
|
|
21
|
+
icon: _jsx(ClipboardList, { className: "size-5" }),
|
|
22
|
+
title: "Should not render",
|
|
23
|
+
children: (_jsxs(_Fragment, { children: [_jsx(SectionField, { label: "A", value: null }), _jsx(SectionField, { label: "B", value: "" })] })),
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=two-column-section.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"two-column-section.stories.js","sourceRoot":"","sources":["../../src/opportunities/two-column-section.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,gCAAgC;IACvC,SAAS,EAAE,gBAAgB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;CACqB,CAAC;AAC1C,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,KAAC,aAAa,IAAC,SAAS,EAAC,QAAQ,GAAG;QAC1C,KAAK,EAAE,sBAAsB;QAC7B,WAAW,EAAE,yCAAyC;QACtD,QAAQ,EAAE,CACR,8BACE,KAAC,YAAY,IAAC,KAAK,EAAC,UAAU,EAAC,KAAK,EAAC,gBAAgB,GAAG,EACxD,KAAC,YAAY,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,gBAAgB,GAAG,EACtD,KAAC,YAAY,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,GAAG,EACtD,KAAC,YAAY,IAAC,KAAK,EAAC,gBAAgB,EAAC,KAAK,EAAC,SAAS,GAAG,IACtD,CACJ;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAU;IACpD,IAAI,EAAE;QACJ,IAAI,EAAE,KAAC,aAAa,IAAC,SAAS,EAAC,QAAQ,GAAG;QAC1C,KAAK,EAAE,mBAAmB;QAC1B,QAAQ,EAAE,CACR,8BACE,KAAC,YAAY,IAAC,KAAK,EAAC,GAAG,EAAC,KAAK,EAAE,IAAI,GAAI,EACvC,KAAC,YAAY,IAAC,KAAK,EAAC,GAAG,EAAC,KAAK,EAAC,EAAE,GAAG,IAClC,CACJ;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
/** Opportunity lifecycle states as understood by the shared view layer.
|
|
3
|
+
* The importer dashboard uses all four; the producer market page only sees "open". */
|
|
4
|
+
export type OpportunityLifecycleStatus = "draft" | "open" | "closed" | "expired";
|
|
5
|
+
/** A fact rendered in the card's subtitle row. `count` variants tween via useAnimatedNumber. */
|
|
6
|
+
export type SubtitleFact = {
|
|
7
|
+
type: "text";
|
|
8
|
+
text: string;
|
|
9
|
+
} | {
|
|
10
|
+
type: "count";
|
|
11
|
+
value: number;
|
|
12
|
+
suffix: string;
|
|
13
|
+
};
|
|
14
|
+
/** Channel type (producer-market perspective) — monopoly buyer, private importer, open market. */
|
|
15
|
+
export type OpportunityChannelType = "monopoly" | "importer" | "open";
|
|
16
|
+
/** Minimum shape the shared card + list require. Dashboards ship a tiny adapter
|
|
17
|
+
* from their native response shape to this type. Producer/importer specifics live in slots. */
|
|
18
|
+
export interface OpportunityView {
|
|
19
|
+
id: string;
|
|
20
|
+
tenderId: string;
|
|
21
|
+
productName: string;
|
|
22
|
+
buyerName: string;
|
|
23
|
+
countryCode: string;
|
|
24
|
+
subtitleFacts: SubtitleFact[];
|
|
25
|
+
deadline: Date | null;
|
|
26
|
+
status: OpportunityLifecycleStatus;
|
|
27
|
+
}
|
|
28
|
+
/** Tab identifier — closed union so consumers can't invent stray ids. */
|
|
29
|
+
export type OpportunityTabId = "overview" | "timeline" | "compliance" | "buyer";
|
|
30
|
+
export interface OpportunityTab {
|
|
31
|
+
id: OpportunityTabId;
|
|
32
|
+
label: string;
|
|
33
|
+
content: React.ReactNode;
|
|
34
|
+
hidden?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/** Filter bar configuration (discriminated union for advanced drawer fields). */
|
|
37
|
+
export interface ChipFilterConfig {
|
|
38
|
+
key: string;
|
|
39
|
+
label: string;
|
|
40
|
+
options: {
|
|
41
|
+
value: string;
|
|
42
|
+
label: string;
|
|
43
|
+
count?: number;
|
|
44
|
+
}[];
|
|
45
|
+
multi?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export type AdvancedFilterConfig = {
|
|
48
|
+
kind: "select";
|
|
49
|
+
key: string;
|
|
50
|
+
label: string;
|
|
51
|
+
options: {
|
|
52
|
+
value: string;
|
|
53
|
+
label: string;
|
|
54
|
+
}[];
|
|
55
|
+
multi?: boolean;
|
|
56
|
+
} | {
|
|
57
|
+
kind: "dateRange";
|
|
58
|
+
key: string;
|
|
59
|
+
label: string;
|
|
60
|
+
min?: Date;
|
|
61
|
+
max?: Date;
|
|
62
|
+
} | {
|
|
63
|
+
kind: "numberRange";
|
|
64
|
+
key: string;
|
|
65
|
+
label: string;
|
|
66
|
+
min: number;
|
|
67
|
+
max: number;
|
|
68
|
+
step: number;
|
|
69
|
+
format?: (n: number) => string;
|
|
70
|
+
};
|
|
71
|
+
export interface SortOption {
|
|
72
|
+
key: string;
|
|
73
|
+
label: string;
|
|
74
|
+
direction?: "asc" | "desc";
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/opportunities/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC;uFACuF;AACvF,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjF,gGAAgG;AAChG,MAAM,MAAM,YAAY,GACpB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAErD,kGAAkG;AAClG,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AAEtE;gGACgG;AAChG,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,0BAA0B,CAAC;CACpC;AAED,yEAAyE;AACzE,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,GAAG,OAAO,CAAC;AAEhF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,gBAAgB,CAAC;I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|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/opportunities/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-wizard.a11y.test.d.ts","sourceRoot":"","sources":["../../../../src/opportunities/wizard/__a11y__/opportunity-wizard.a11y.test.tsx"],"names":[],"mappings":""}
|