@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":"opportunity-republish-button.test.d.ts","sourceRoot":"","sources":["../../../src/opportunities/__tests__/opportunity-republish-button.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { describe, it, expect, vi } from "vitest";
|
|
3
|
+
import { render, screen } from "@testing-library/react";
|
|
4
|
+
import userEvent from "@testing-library/user-event";
|
|
5
|
+
import { RepublishButton } from "../opportunity-republish-button";
|
|
6
|
+
describe("RepublishButton", () => {
|
|
7
|
+
it("renders 'Republish' label", () => {
|
|
8
|
+
render(_jsx(RepublishButton, { onRepublish: async () => { } }));
|
|
9
|
+
expect(screen.getByRole("button", { name: /republish/i })).toBeInTheDocument();
|
|
10
|
+
});
|
|
11
|
+
it("fires onRepublish when clicked", async () => {
|
|
12
|
+
const user = userEvent.setup();
|
|
13
|
+
const onRepublish = vi.fn().mockResolvedValue(undefined);
|
|
14
|
+
render(_jsx(RepublishButton, { onRepublish: onRepublish }));
|
|
15
|
+
await user.click(screen.getByRole("button"));
|
|
16
|
+
expect(onRepublish).toHaveBeenCalledTimes(1);
|
|
17
|
+
});
|
|
18
|
+
it("sets aria-busy while the promise is pending", async () => {
|
|
19
|
+
const user = userEvent.setup();
|
|
20
|
+
let resolve;
|
|
21
|
+
const onRepublish = vi.fn(() => new Promise(r => { resolve = r; }));
|
|
22
|
+
render(_jsx(RepublishButton, { onRepublish: onRepublish }));
|
|
23
|
+
const btn = screen.getByRole("button");
|
|
24
|
+
await user.click(btn);
|
|
25
|
+
expect(btn).toHaveAttribute("aria-busy", "true");
|
|
26
|
+
resolve();
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=opportunity-republish-button.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-republish-button.test.js","sourceRoot":"","sources":["../../../src/opportunities/__tests__/opportunity-republish-button.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,QAAQ,CAAC,iBAAiB,EAA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C,CAAC;QACtB,MAAM,CAAC,GAAG,CAAC,CAAC,eAAe,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QACjD,OAAO,EAAE,CAAC;IACZ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-resume-draft-button.test.d.ts","sourceRoot":"","sources":["../../../src/opportunities/__tests__/opportunity-resume-draft-button.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { describe, it, expect, vi } from "vitest";
|
|
3
|
+
import { render, screen } from "@testing-library/react";
|
|
4
|
+
import userEvent from "@testing-library/user-event";
|
|
5
|
+
import { ResumeDraftButton } from "../opportunity-resume-draft-button";
|
|
6
|
+
describe("ResumeDraftButton", () => {
|
|
7
|
+
it("renders 'Resume draft' label", () => {
|
|
8
|
+
render(_jsx(ResumeDraftButton, { onResume: () => { } }));
|
|
9
|
+
expect(screen.getByRole("button", { name: /resume draft/i })).toBeInTheDocument();
|
|
10
|
+
});
|
|
11
|
+
it("fires onResume when clicked", async () => {
|
|
12
|
+
const user = userEvent.setup();
|
|
13
|
+
const onResume = vi.fn();
|
|
14
|
+
render(_jsx(ResumeDraftButton, { onResume: onResume }));
|
|
15
|
+
await user.click(screen.getByRole("button"));
|
|
16
|
+
expect(onResume).toHaveBeenCalledTimes(1);
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=opportunity-resume-draft-button.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-resume-draft-button.test.js","sourceRoot":"","sources":["../../../src/opportunities/__tests__/opportunity-resume-draft-button.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,CAAC,KAAC,iBAAiB,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,GAAI,CAAC,CAAC;QAClD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACpF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6BAA6B,EAAE,KAAK,IAAI,EAAE;QAC3C,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC;QAC/B,MAAM,QAAQ,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QACzB,MAAM,CAAC,KAAC,iBAAiB,IAAC,QAAQ,EAAE,QAAQ,GAAI,CAAC,CAAC;QAClD,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC7C,MAAM,CAAC,QAAQ,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-stacked-card.test.d.ts","sourceRoot":"","sources":["../../../src/opportunities/__tests__/opportunity-stacked-card.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { describe, it, expect } from "vitest";
|
|
3
|
+
import { render, screen } from "@testing-library/react";
|
|
4
|
+
import userEvent from "@testing-library/user-event";
|
|
5
|
+
import { OpportunityStackedCard } from "../opportunity-stacked-card";
|
|
6
|
+
import { SkeletonProvider } from "../../skeleton/provider";
|
|
7
|
+
const opp = {
|
|
8
|
+
id: "opp-1",
|
|
9
|
+
tenderId: "tender-1",
|
|
10
|
+
productName: "Organic Prosecco DOCG",
|
|
11
|
+
buyerName: "Systembolaget",
|
|
12
|
+
countryCode: "SE",
|
|
13
|
+
subtitleFacts: [
|
|
14
|
+
{ type: "text", text: "Monopoly" },
|
|
15
|
+
{ type: "text", text: "Launch Q2 2026" },
|
|
16
|
+
{ type: "count", value: 12000, suffix: "bottles" },
|
|
17
|
+
],
|
|
18
|
+
deadline: new Date("2026-05-01T12:00:00Z"),
|
|
19
|
+
status: "open",
|
|
20
|
+
};
|
|
21
|
+
describe("OpportunityStackedCard — slots and disclosure markup", () => {
|
|
22
|
+
it("renders buyerName · productName as the title, heading level 3", () => {
|
|
23
|
+
render(_jsx(OpportunityStackedCard, { opportunity: opp, leftBadge: _jsx("span", { children: "badge" }), metaRight: _jsx("span", { children: "meta" }), primaryAction: _jsx("button", { children: "Go" }), tabs: [] }));
|
|
24
|
+
const heading = screen.getByRole("heading", { level: 3 });
|
|
25
|
+
expect(heading).toHaveTextContent(/Systembolaget · Organic Prosecco DOCG/);
|
|
26
|
+
});
|
|
27
|
+
it("renders left + right slots + primary action", () => {
|
|
28
|
+
render(_jsx(OpportunityStackedCard, { opportunity: opp, leftBadge: _jsx("span", { "data-testid": "left", children: "L" }), metaRight: _jsx("span", { "data-testid": "meta", children: "M" }), primaryAction: _jsx("button", { children: "Go" }), tabs: [] }));
|
|
29
|
+
expect(screen.getByTestId("left")).toBeInTheDocument();
|
|
30
|
+
expect(screen.getByTestId("meta")).toBeInTheDocument();
|
|
31
|
+
expect(screen.getByRole("button", { name: "Go" })).toBeInTheDocument();
|
|
32
|
+
});
|
|
33
|
+
it("primary action button is a SIBLING of the expand-trigger button (no nested buttons)", () => {
|
|
34
|
+
const { container } = render(_jsx(OpportunityStackedCard, { opportunity: opp, leftBadge: null, metaRight: null, primaryAction: _jsx("button", { children: "Go" }), tabs: [] }));
|
|
35
|
+
const buttons = container.querySelectorAll("button");
|
|
36
|
+
for (const b of Array.from(buttons)) {
|
|
37
|
+
expect(b.querySelector("button")).toBeNull();
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
it("when tabs are provided: expand trigger has aria-expanded=false initially + aria-controls pointing to a panel id", () => {
|
|
41
|
+
render(_jsx(OpportunityStackedCard, { opportunity: opp, leftBadge: null, metaRight: null, primaryAction: null, tabs: [{ id: "overview", label: "Overview", content: _jsx("div", { children: "ov" }) }] }));
|
|
42
|
+
const trigger = screen.getByRole("button", { name: /expand details/i });
|
|
43
|
+
expect(trigger).toHaveAttribute("aria-expanded", "false");
|
|
44
|
+
const panelId = trigger.getAttribute("aria-controls");
|
|
45
|
+
expect(panelId).toBeTruthy();
|
|
46
|
+
});
|
|
47
|
+
it("tabs=[] hides the expand trigger (title renders as heading-only, not a button)", () => {
|
|
48
|
+
render(_jsx(OpportunityStackedCard, { opportunity: opp, leftBadge: null, metaRight: null, primaryAction: null, tabs: [] }));
|
|
49
|
+
expect(screen.queryByRole("button", { name: /expand details/i })).not.toBeInTheDocument();
|
|
50
|
+
expect(screen.getByRole("heading", { level: 3 })).toBeInTheDocument();
|
|
51
|
+
});
|
|
52
|
+
it("uses the count-style subtitle fact (12,000 bottles appears in the rendered subtitle area)", () => {
|
|
53
|
+
render(_jsx(OpportunityStackedCard, { opportunity: opp, leftBadge: null, metaRight: null, primaryAction: null, tabs: [] }));
|
|
54
|
+
// The number counter tweens from 0 to 12000; at initial render with prefers-reduced-motion default (no match in jsdom), it's in flight.
|
|
55
|
+
// We assert the suffix + format framework exists.
|
|
56
|
+
expect(screen.getByText(/bottles/)).toBeInTheDocument();
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
describe("OpportunityStackedCard — expand, readOnly, deEmphasized, skeleton", () => {
|
|
60
|
+
const baseProps = {
|
|
61
|
+
opportunity: opp,
|
|
62
|
+
leftBadge: _jsx("span", { children: "L" }),
|
|
63
|
+
metaRight: _jsx("span", { children: "M" }),
|
|
64
|
+
primaryAction: _jsx("button", { children: "Go" }),
|
|
65
|
+
tabs: [
|
|
66
|
+
{ id: "overview", label: "Overview", content: _jsx("div", { children: "ov-body" }) },
|
|
67
|
+
{ id: "timeline", label: "Timeline", content: _jsx("div", { children: "tl-body" }) },
|
|
68
|
+
],
|
|
69
|
+
};
|
|
70
|
+
it("toggles expanded state on trigger click and shows the detail panel", async () => {
|
|
71
|
+
const user = userEvent.setup();
|
|
72
|
+
render(_jsx(OpportunityStackedCard, { ...baseProps }));
|
|
73
|
+
const trigger = screen.getByRole("button", { name: /expand details/i });
|
|
74
|
+
expect(trigger).toHaveAttribute("aria-expanded", "false");
|
|
75
|
+
await user.click(trigger);
|
|
76
|
+
expect(trigger).toHaveAttribute("aria-expanded", "true");
|
|
77
|
+
expect(screen.getByText("ov-body")).toBeVisible();
|
|
78
|
+
});
|
|
79
|
+
it("controlled mode honors the `expanded` prop", () => {
|
|
80
|
+
const { rerender } = render(_jsx(OpportunityStackedCard, { ...baseProps, expanded: false, onExpandChange: () => { } }));
|
|
81
|
+
expect(screen.queryByText("ov-body")).not.toBeInTheDocument();
|
|
82
|
+
rerender(_jsx(OpportunityStackedCard, { ...baseProps, expanded: true, onExpandChange: () => { } }));
|
|
83
|
+
expect(screen.getByText("ov-body")).toBeVisible();
|
|
84
|
+
});
|
|
85
|
+
it("readOnly mode disables the trigger — heading renders as non-button", () => {
|
|
86
|
+
render(_jsx(OpportunityStackedCard, { ...baseProps, readOnly: true }));
|
|
87
|
+
expect(screen.queryByRole("button", { name: /expand details/i })).not.toBeInTheDocument();
|
|
88
|
+
expect(screen.getByRole("heading", { level: 3 })).toBeInTheDocument();
|
|
89
|
+
});
|
|
90
|
+
it("deEmphasized sets data-de-emphasized on the article", () => {
|
|
91
|
+
const { container } = render(_jsx(OpportunityStackedCard, { ...baseProps, deEmphasized: true }));
|
|
92
|
+
expect(container.querySelector("[data-de-emphasized]")).toBeTruthy();
|
|
93
|
+
});
|
|
94
|
+
it("Skeleton static export renders inside SkeletonProvider without errors", () => {
|
|
95
|
+
render(_jsx(SkeletonProvider, { children: _jsx(OpportunityStackedCard.Skeleton, {}) }));
|
|
96
|
+
// No assertion beyond mounting cleanly
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
//# sourceMappingURL=opportunity-stacked-card.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-stacked-card.test.js","sourceRoot":"","sources":["../../../src/opportunities/__tests__/opportunity-stacked-card.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3D,MAAM,GAAG,GAAoB;IAC3B,EAAE,EAAE,OAAO;IACX,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,uBAAuB;IACpC,SAAS,EAAE,eAAe;IAC1B,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE;QAClC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE;QACxC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE;KACnD;IACD,QAAQ,EAAE,IAAI,IAAI,CAAC,sBAAsB,CAAC;IAC1C,MAAM,EAAE,MAAM;CACf,CAAC;AAEF,QAAQ,CAAC,sDAAsD,EAAE,GAAG,EAAE;IACpE,EAAE,C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E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC7D,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,KAAC,sBAAsB,OAAK,SAAS,EAAE,YAAY,SAAG,CAAC,CAAC;QACrF,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IACvE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uEAAuE,EAAE,GAAG,EAAE;QAC/E,MAAM,CACJ,KAAC,gBAAgB,cACf,KAAC,sBAAsB,CAAC,QAAQ,KAAG,GAClB,CACpB,CAAC;QACF,uCAAuC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-stacked-list.test.d.ts","sourceRoot":"","sources":["../../../src/opportunities/__tests__/opportunity-stacked-list.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { describe, it, expect, vi } from "vitest";
|
|
4
|
+
import { render, screen } from "@testing-library/react";
|
|
5
|
+
import userEvent from "@testing-library/user-event";
|
|
6
|
+
import { OpportunityStackedList } from "../opportunity-stacked-list";
|
|
7
|
+
import { OpportunityStackedCard } from "../opportunity-stacked-card";
|
|
8
|
+
const makeOpp = (id, name) => ({
|
|
9
|
+
id, tenderId: `t-${id}`, productName: name, buyerName: "Buyer",
|
|
10
|
+
countryCode: "SE", subtitleFacts: [{ type: "text", text: "info" }],
|
|
11
|
+
deadline: null, status: "open",
|
|
12
|
+
});
|
|
13
|
+
const tabs = [{ id: "overview", label: "Overview", content: _jsx("div", { children: "body" }) }];
|
|
14
|
+
describe("OpportunityStackedList", () => {
|
|
15
|
+
it("renders one card per opportunity via renderCard", () => {
|
|
16
|
+
const opps = [makeOpp("1", "A"), makeOpp("2", "B")];
|
|
17
|
+
render(_jsx(OpportunityStackedList, { opportunities: opps, renderCard: (opp, ctx) => (_jsx(OpportunityStackedCard, { opportunity: opp, leftBadge: null, metaRight: null, primaryAction: null, tabs: tabs, expanded: ctx.isExpanded, onExpandChange: ctx.onToggleExpand })) }));
|
|
18
|
+
expect(screen.getByText(/Buyer · A/)).toBeInTheDocument();
|
|
19
|
+
expect(screen.getByText(/Buyer · B/)).toBeInTheDocument();
|
|
20
|
+
});
|
|
21
|
+
it("accordionMode=true expands only one row at a time", async () => {
|
|
22
|
+
const user = userEvent.setup();
|
|
23
|
+
const opps = [makeOpp("1", "A"), makeOpp("2", "B")];
|
|
24
|
+
render(_jsx(OpportunityStackedList, { opportunities: opps, accordionMode: true, renderCard: (opp, ctx) => (_jsx(OpportunityStackedCard, { opportunity: opp, leftBadge: null, metaRight: null, primaryAction: null, tabs: tabs, expanded: ctx.isExpanded, onExpandChange: ctx.onToggleExpand })) }));
|
|
25
|
+
const triggers = screen.getAllByRole("button", { name: /expand details/i });
|
|
26
|
+
await user.click(triggers[0]);
|
|
27
|
+
expect(triggers[0]).toHaveAttribute("aria-expanded", "true");
|
|
28
|
+
await user.click(triggers[1]);
|
|
29
|
+
expect(triggers[0]).toHaveAttribute("aria-expanded", "false");
|
|
30
|
+
expect(triggers[1]).toHaveAttribute("aria-expanded", "true");
|
|
31
|
+
});
|
|
32
|
+
it("accordionMode=false allows multiple rows expanded", async () => {
|
|
33
|
+
const user = userEvent.setup();
|
|
34
|
+
const opps = [makeOpp("1", "A"), makeOpp("2", "B")];
|
|
35
|
+
render(_jsx(OpportunityStackedList, { opportunities: opps, renderCard: (opp, ctx) => (_jsx(OpportunityStackedCard, { opportunity: opp, leftBadge: null, metaRight: null, primaryAction: null, tabs: tabs, expanded: ctx.isExpanded, onExpandChange: ctx.onToggleExpand })) }));
|
|
36
|
+
const triggers = screen.getAllByRole("button", { name: /expand details/i });
|
|
37
|
+
await user.click(triggers[0]);
|
|
38
|
+
await user.click(triggers[1]);
|
|
39
|
+
expect(triggers[0]).toHaveAttribute("aria-expanded", "true");
|
|
40
|
+
expect(triggers[1]).toHaveAttribute("aria-expanded", "true");
|
|
41
|
+
});
|
|
42
|
+
it("renders empty state when opportunities is empty", () => {
|
|
43
|
+
render(_jsx(OpportunityStackedList, { opportunities: [], renderCard: () => null, emptyState: _jsx("div", { "data-testid": "empty", children: "nope" }) }));
|
|
44
|
+
expect(screen.getByTestId("empty")).toBeInTheDocument();
|
|
45
|
+
});
|
|
46
|
+
it("renders default empty state if none provided", () => {
|
|
47
|
+
render(_jsx(OpportunityStackedList, { opportunities: [], renderCard: () => null }));
|
|
48
|
+
expect(screen.getByRole("heading", { name: /no opportunities to show/i })).toBeInTheDocument();
|
|
49
|
+
});
|
|
50
|
+
it("renders Skeleton count rows when isLoading=true", () => {
|
|
51
|
+
const { container } = render(_jsx(OpportunityStackedList, { opportunities: [], renderCard: () => null, isLoading: true }));
|
|
52
|
+
expect(container.querySelectorAll("[data-skeleton]").length).toBeGreaterThan(0);
|
|
53
|
+
});
|
|
54
|
+
it("sets data-refetch-pulse on the wrapper when isRefetching", () => {
|
|
55
|
+
const { container } = render(_jsx(OpportunityStackedList, { opportunities: [makeOpp("1", "A")], renderCard: () => null, isRefetching: true }));
|
|
56
|
+
expect(container.querySelector("[data-refetch-pulse='true']")).toBeTruthy();
|
|
57
|
+
});
|
|
58
|
+
it("sets data-opportunity-highlight='pulse' on the matching row when highlightId is active", () => {
|
|
59
|
+
const opps = [makeOpp("1", "A"), makeOpp("2", "B")];
|
|
60
|
+
const { container } = render(_jsx(OpportunityStackedList, { opportunities: opps, highlightId: "2", renderCard: (opp) => _jsx("div", { "data-opp-id": opp.id, children: opp.productName }) }));
|
|
61
|
+
const wrappers = Array.from(container.querySelectorAll("[data-opportunity-highlight]"));
|
|
62
|
+
expect(wrappers.length).toBe(1);
|
|
63
|
+
expect(wrappers[0].getAttribute("data-opportunity-highlight")).toBe("pulse");
|
|
64
|
+
});
|
|
65
|
+
it("clears data-opportunity-highlight when parent changes highlightId to undefined", () => {
|
|
66
|
+
const opps = [makeOpp("1", "A"), makeOpp("2", "B")];
|
|
67
|
+
const { container, rerender } = render(_jsx(OpportunityStackedList, { opportunities: opps, highlightId: "2", renderCard: (opp) => _jsx("div", { "data-opp-id": opp.id, children: opp.productName }) }));
|
|
68
|
+
expect(container.querySelector("[data-opportunity-highlight='pulse']")).toBeTruthy();
|
|
69
|
+
rerender(_jsx(OpportunityStackedList, { opportunities: opps, renderCard: (opp) => _jsx("div", { "data-opp-id": opp.id, children: opp.productName }) }));
|
|
70
|
+
expect(container.querySelector("[data-opportunity-highlight='pulse']")).toBeNull();
|
|
71
|
+
});
|
|
72
|
+
it("is safe under React StrictMode — exactly one row per opportunity (no double wrappers)", () => {
|
|
73
|
+
const opps = [makeOpp("1", "A"), makeOpp("2", "B"), makeOpp("3", "C")];
|
|
74
|
+
const { container } = render(_jsx(React.StrictMode, { children: _jsx(OpportunityStackedList, { opportunities: opps, renderCard: (opp) => _jsx("div", { "data-opp-id": opp.id, children: opp.productName }) }) }));
|
|
75
|
+
const rows = container.querySelectorAll("[data-opp-id]");
|
|
76
|
+
expect(rows.length).toBe(3);
|
|
77
|
+
});
|
|
78
|
+
it("respects prefers-reduced-motion (rendered rows are visible, not hidden by motion transform)", () => {
|
|
79
|
+
vi.stubGlobal("matchMedia", vi.fn().mockImplementation((q) => ({
|
|
80
|
+
matches: q.includes("prefers-reduced-motion: reduce"),
|
|
81
|
+
media: q, addListener: () => { }, removeListener: () => { },
|
|
82
|
+
addEventListener: () => { }, removeEventListener: () => { }, dispatchEvent: () => false, onchange: null,
|
|
83
|
+
})));
|
|
84
|
+
const opps = [makeOpp("1", "A")];
|
|
85
|
+
const { container } = render(_jsx(OpportunityStackedList, { opportunities: opps, renderCard: (opp) => _jsx("div", { "data-opp-id": opp.id, children: opp.productName }) }));
|
|
86
|
+
const row = container.querySelector("[data-opp-id]");
|
|
87
|
+
const style = window.getComputedStyle(row);
|
|
88
|
+
expect(style.opacity).not.toBe("0");
|
|
89
|
+
vi.unstubAllGlobals();
|
|
90
|
+
});
|
|
91
|
+
it("renders a skip link and a skip-target marker", () => {
|
|
92
|
+
const opps = [makeOpp("1", "A")];
|
|
93
|
+
const { container } = render(_jsx(OpportunityStackedList, { opportunities: opps, renderCard: (opp) => _jsx("div", { "data-opp-id": opp.id, children: opp.productName }) }));
|
|
94
|
+
expect(screen.getByText(/skip opportunity list/i)).toBeInTheDocument();
|
|
95
|
+
expect(container.querySelector("#opportunities-list-end")).toBeTruthy();
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
//# sourceMappingURL=opportunity-stacked-list.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-stacked-list.test.js","sourceRoot":"","sources":["../../../src/opportunities/__tests__/opportunity-stacked-list.test.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,MAAM,OAAO,GAAG,CAAC,EAAU,EAAE,IAAY,EAAmB,EAAE,CAAC,CAAC;IAC9D,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO;IAC9D,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAClE,QAAQ,EAAE,IAAI,EAAE,MAAM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,CAAC;QACF,MAAM,GAAG,GAAG,SAAS,CAAC,aAAa,CAAC,eAAe,CAAE,CAAC;QACtD,MAAM,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAC3C,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpC,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,MAAM,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QACjC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC1B,KAAC,sBAAsB,IAAC,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,6BAAkB,GAAG,CAAC,EAAE,YAAG,GAAG,CAAC,WAAW,GAAO,GAAI,CACxH,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;QACvE,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC1E,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-view-offers-button.test.d.ts","sourceRoot":"","sources":["../../../src/opportunities/__tests__/opportunity-view-offers-button.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { describe, it, expect, vi } from "vitest";
|
|
3
|
+
import { render, screen } from "@testing-library/react";
|
|
4
|
+
import userEvent from "@testing-library/user-event";
|
|
5
|
+
import { ViewOffersButton } from "../opportunity-view-offers-button";
|
|
6
|
+
describe("ViewOffersButton", () => {
|
|
7
|
+
it("renders 'View offers' when count is undefined", () => {
|
|
8
|
+
render(_jsx(ViewOffersButton, { onClick: () => { } }));
|
|
9
|
+
expect(screen.getByRole("button", { name: /^view offers$/i })).toBeInTheDocument();
|
|
10
|
+
});
|
|
11
|
+
it("renders 'View offers (7)' when count=7", () => {
|
|
12
|
+
render(_jsx(ViewOffersButton, { count: 7, onClick: () => { } }));
|
|
13
|
+
expect(screen.getByRole("button", { name: /view offers \(7\)/i })).toBeInTheDocument();
|
|
14
|
+
});
|
|
15
|
+
it("fires onClick when clicked", async () => {
|
|
16
|
+
const user = userEvent.setup();
|
|
17
|
+
const onClick = vi.fn();
|
|
18
|
+
render(_jsx(ViewOffersButton, { count: 3, onClick: onClick }));
|
|
19
|
+
await user.click(screen.getByRole("button"));
|
|
20
|
+
expect(onClick).toHaveBeenCalledTimes(1);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=opportunity-view-offers-button.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunity-view-offers-button.test.js","sourceRoot":"","sources":["../../../src/opportunities/__tests__/opportunity-view-offers-button.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACvD,MAAM,CAAC,KAAC,gBAAgB,IAAC,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,GAAI,CAAC,CAAC;QAChD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACrF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAChD,MAAM,CAAC,KAAC,gBAAgB,IAAC,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,GAAI,CAAC,CAAC;QAC1D,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACzF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,KAAK,IAAI,EAAE;QAC1C,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC;QAC/B,MAAM,OAAO,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QACxB,MAAM,CAAC,KAAC,gBAAgB,IAAC,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC;QACzD,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC7C,MAAM,CAAC,OAAO,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-field.test.d.ts","sourceRoot":"","sources":["../../../src/opportunities/__tests__/section-field.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { describe, it, expect } from "vitest";
|
|
3
|
+
import { render, screen } from "@testing-library/react";
|
|
4
|
+
import { SectionField } from "../section-field";
|
|
5
|
+
describe("SectionField", () => {
|
|
6
|
+
it("renders label + value when value is present", () => {
|
|
7
|
+
render(_jsx(SectionField, { label: "Volume", value: "12,000 bottles" }));
|
|
8
|
+
expect(screen.getByText("Volume")).toBeInTheDocument();
|
|
9
|
+
expect(screen.getByText("12,000 bottles")).toBeInTheDocument();
|
|
10
|
+
});
|
|
11
|
+
it("returns null when value is null", () => {
|
|
12
|
+
const { container } = render(_jsx(SectionField, { label: "Empty", value: null }));
|
|
13
|
+
expect(container.firstChild).toBeNull();
|
|
14
|
+
});
|
|
15
|
+
it("returns null when value is empty string", () => {
|
|
16
|
+
const { container } = render(_jsx(SectionField, { label: "Empty", value: "" }));
|
|
17
|
+
expect(container.firstChild).toBeNull();
|
|
18
|
+
});
|
|
19
|
+
it("returns null when value is empty array", () => {
|
|
20
|
+
const { container } = render(_jsx(SectionField, { label: "Empty", value: [] }));
|
|
21
|
+
expect(container.firstChild).toBeNull();
|
|
22
|
+
});
|
|
23
|
+
it("renders ReactNode values", () => {
|
|
24
|
+
render(_jsx(SectionField, { label: "Notes", value: _jsx("span", { "data-testid": "custom", children: "hi" }) }));
|
|
25
|
+
expect(screen.getByTestId("custom")).toBeInTheDocument();
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=section-field.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-field.test.js","sourceRoot":"","sources":["../../../src/opportunities/__tests__/section-field.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACrD,MAAM,CAAC,KAAC,YAAY,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,gBAAgB,GAAG,CAAC,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,EAAE,CAAC;IAC3D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"two-column-section.test.d.ts","sourceRoot":"","sources":["../../../src/opportunities/__tests__/two-column-section.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { describe, it, expect } from "vitest";
|
|
3
|
+
import { render, screen } from "@testing-library/react";
|
|
4
|
+
import { TwoColumnSection } from "../two-column-section";
|
|
5
|
+
import { SectionField } from "../section-field";
|
|
6
|
+
describe("TwoColumnSection", () => {
|
|
7
|
+
it("renders section when at least one SectionField has a value", () => {
|
|
8
|
+
render(_jsxs(TwoColumnSection, { title: "Product requirements", children: [_jsx(SectionField, { label: "Category", value: "Sparkling wine" }), _jsx(SectionField, { label: "Empty", value: null })] }));
|
|
9
|
+
expect(screen.getByRole("heading", { name: /product requirements/i })).toBeInTheDocument();
|
|
10
|
+
expect(screen.getByText("Sparkling wine")).toBeInTheDocument();
|
|
11
|
+
});
|
|
12
|
+
it("returns null when every child renders null", () => {
|
|
13
|
+
const { container } = render(_jsxs(TwoColumnSection, { title: "Should not render", children: [_jsx(SectionField, { label: "A", value: null }), _jsx(SectionField, { label: "B", value: "" })] }));
|
|
14
|
+
expect(container.firstChild).toBeNull();
|
|
15
|
+
});
|
|
16
|
+
it("renders description when provided", () => {
|
|
17
|
+
render(_jsx(TwoColumnSection, { title: "Title", description: "Some description text", children: _jsx(SectionField, { label: "X", value: "y" }) }));
|
|
18
|
+
expect(screen.getByText(/some description text/i)).toBeInTheDocument();
|
|
19
|
+
});
|
|
20
|
+
it("renders icon with aria-hidden wrapper", () => {
|
|
21
|
+
const { container } = render(_jsx(TwoColumnSection, { title: "Title", icon: _jsx("svg", { "data-testid": "icon" }), children: _jsx(SectionField, { label: "X", value: "y" }) }));
|
|
22
|
+
expect(container.querySelector("[aria-hidden]")).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=two-column-section.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"two-column-section.test.js","sourceRoot":"","sources":["../../../src/opportunities/__tests__/two-column-section.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,EAAE,CAAC,4DAA4D,EAAE,GAAG,EAAE;QACpE,MAAM,CACJ,MAAC,gBAAgB,IAAC,KAAK,EAAC,sBAAsB,aAC5C,KAAC,YAAY,IAAC,KAAK,EAAC,UAAU,EAAC,KAAK,EAAC,gBAAgB,GAAG,EACxD,KAAC,YAAY,IAAC,KAAK,EAAC,OAAO,EAAC,KAAK,EAAE,IAAI,GAAI,IAC1B,CACpB,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;QAC3F,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACjE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACpD,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC1B,MAAC,gBAAgB,IAAC,KAAK,EAAC,mBAAmB,aACzC,KAAC,YAAY,IAAC,KAAK,EAAC,GAAG,EAAC,KAAK,EAAE,IAAI,GAAI,EACvC,KAAC,YAAY,IAAC,KAAK,EAAC,GAAG,EAAC,KAAK,EAAC,EAAE,GAAG,IAClB,CACpB,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;QAC3C,MAAM,CACJ,KAAC,gBAAgB,IAAC,KAAK,EAAC,OAAO,EAAC,WAAW,EAAC,uBAAuB,YACjE,KAAC,YAAY,IAAC,KAAK,EAAC,GAAG,EAAC,KAAK,EAAC,GAAG,GAAG,GACnB,CACpB,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACzE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;QAC/C,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC1B,KAAC,gBAAgB,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,6BAAiB,MAAM,GAAG,YAC9D,KAAC,YAAY,IAAC,KAAK,EAAC,GAAG,EAAC,KAAK,EAAC,GAAG,GAAG,GACnB,CACpB,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAChE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
export type { OpportunityView, OpportunityTab, OpportunityTabId, OpportunityLifecycleStatus, OpportunityChannelType, SubtitleFact, ChipFilterConfig, AdvancedFilterConfig, SortOption, } from "./types";
|
|
2
|
+
export { TwoColumnSection } from "./two-column-section";
|
|
3
|
+
export type { TwoColumnSectionProps } from "./two-column-section";
|
|
4
|
+
export { SectionField } from "./section-field";
|
|
5
|
+
export type { SectionFieldProps } from "./section-field";
|
|
6
|
+
export { OpportunityEmptyState } from "./opportunity-empty-state";
|
|
7
|
+
export type { OpportunityEmptyStateProps } from "./opportunity-empty-state";
|
|
8
|
+
export { OpportunityDetailPanel } from "./opportunity-detail-panel";
|
|
9
|
+
export type { OpportunityDetailPanelProps, OpportunityDetailPanelComponentProps } from "./opportunity-detail-panel";
|
|
10
|
+
export { OpportunityStackedCard } from "./opportunity-stacked-card";
|
|
11
|
+
export type { OpportunityStackedCardProps, OpportunityStackedCardComponent } from "./opportunity-stacked-card";
|
|
12
|
+
export { OpportunityStackedList } from "./opportunity-stacked-list";
|
|
13
|
+
export type { OpportunityStackedListProps, OpportunityStackedListComponent, RenderCardContext, } from "./opportunity-stacked-list";
|
|
14
|
+
export { OpportunityFilterBar } from "./opportunity-filter-bar";
|
|
15
|
+
export type { OpportunityFilterBarProps } from "./opportunity-filter-bar";
|
|
16
|
+
export { OpportunityFilterBarDrawer } from "./opportunity-filter-bar-drawer";
|
|
17
|
+
export type { OpportunityFilterBarDrawerProps } from "./opportunity-filter-bar-drawer";
|
|
18
|
+
export { ChannelBadge } from "./opportunity-channel-badge";
|
|
19
|
+
export type { ChannelBadgeProps } from "./opportunity-channel-badge";
|
|
20
|
+
export { OffersCountChip } from "./opportunity-offers-count-chip";
|
|
21
|
+
export type { OffersCountChipProps } from "./opportunity-offers-count-chip";
|
|
22
|
+
export { OpportunityCelebration } from "./opportunity-celebration";
|
|
23
|
+
export type { OpportunityCelebrationProps, CelebrationVariant } from "./opportunity-celebration";
|
|
24
|
+
export { AddToJourneyButton } from "./opportunity-add-to-journey-button";
|
|
25
|
+
export type { AddToJourneyButtonProps } from "./opportunity-add-to-journey-button";
|
|
26
|
+
export { ViewOffersButton } from "./opportunity-view-offers-button";
|
|
27
|
+
export type { ViewOffersButtonProps } from "./opportunity-view-offers-button";
|
|
28
|
+
export { ReopenButton } from "./opportunity-reopen-button";
|
|
29
|
+
export type { ReopenButtonProps } from "./opportunity-reopen-button";
|
|
30
|
+
export { RepublishButton } from "./opportunity-republish-button";
|
|
31
|
+
export type { RepublishButtonProps } from "./opportunity-republish-button";
|
|
32
|
+
export { ResumeDraftButton } from "./opportunity-resume-draft-button";
|
|
33
|
+
export type { ResumeDraftButtonProps } from "./opportunity-resume-draft-button";
|
|
34
|
+
export { OpportunityCardActionsMenu } from "./opportunity-card-actions-menu";
|
|
35
|
+
export type { OpportunityCardActionsMenuProps, OpportunityMenuActionId } from "./opportunity-card-actions-menu";
|
|
36
|
+
export { OpportunityWizard } from "./wizard/opportunity-wizard";
|
|
37
|
+
export type { OpportunityWizardProps, OpportunityWizardMode } from "./wizard/opportunity-wizard";
|
|
38
|
+
export { WizardStepper } from "./wizard/wizard-stepper";
|
|
39
|
+
export type { WizardStepperProps, WizardStepperComponent, WizardStep } from "./wizard/wizard-stepper";
|
|
40
|
+
export { StepTenderBasics } from "./wizard/step-tender-basics";
|
|
41
|
+
export type { StepTenderBasicsProps, StepTenderBasicsValues } from "./wizard/step-tender-basics";
|
|
42
|
+
export { StepOpportunities } from "./wizard/step-opportunities";
|
|
43
|
+
export type { StepOpportunitiesProps } from "./wizard/step-opportunities";
|
|
44
|
+
export { StepPricingTimeline } from "./wizard/step-pricing-timeline";
|
|
45
|
+
export type { StepPricingTimelineProps } from "./wizard/step-pricing-timeline";
|
|
46
|
+
export { StepReview, draftToView } from "./wizard/step-review";
|
|
47
|
+
export type { StepReviewProps } from "./wizard/step-review";
|
|
48
|
+
export { useWizardDraft } from "./wizard/use-wizard-draft";
|
|
49
|
+
export type { UseWizardDraftOptions, UseWizardDraftReturn } from "./wizard/use-wizard-draft";
|
|
50
|
+
export * from "./wizard/wizard.types";
|
|
51
|
+
/** @deprecated Since 0.19.0. Use `OpportunityStackedList` with `OpportunityStackedCard` slots instead. Scheduled for removal in 0.20.0. */
|
|
1
52
|
export { OpportunitiesTable } from "./opportunities-table";
|
|
2
|
-
export type { OpportunitiesTableProps, OpportunityRow } from "./opportunities-table";
|
|
3
53
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/opportunities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/opportunities/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,0BAA0B,EAC1B,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,GACX,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAG5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,YAAY,EAAE,2BAA2B,EAAE,oCAAoC,EAAE,MAAM,4BAA4B,CAAC;AAGpH,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,YAAY,EAAE,2BAA2B,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAC/G,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,YAAY,EACV,2BAA2B,EAC3B,+BAA+B,EAC/B,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,YAAY,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,YAAY,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAGvF,OA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AO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,YAAY,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,YAAY,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC/D,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC7F,cAAc,uBAAuB,CAAC;AAGtC,2IAA2I;AAC3I,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,2 +1,37 @@
|
|
|
1
|
+
// --- Layout + empty state (Tasks 5, 6) ---
|
|
2
|
+
export { TwoColumnSection } from "./two-column-section";
|
|
3
|
+
export { SectionField } from "./section-field";
|
|
4
|
+
export { OpportunityEmptyState } from "./opportunity-empty-state";
|
|
5
|
+
// --- Detail panel (Task 7) ---
|
|
6
|
+
export { OpportunityDetailPanel } from "./opportunity-detail-panel";
|
|
7
|
+
// --- Card + list (Tasks 8, 9, 10) ---
|
|
8
|
+
export { OpportunityStackedCard } from "./opportunity-stacked-card";
|
|
9
|
+
export { OpportunityStackedList } from "./opportunity-stacked-list";
|
|
10
|
+
// --- Filter bar (Tasks 11, 12) ---
|
|
11
|
+
export { OpportunityFilterBar } from "./opportunity-filter-bar";
|
|
12
|
+
export { OpportunityFilterBarDrawer } from "./opportunity-filter-bar-drawer";
|
|
13
|
+
// --- Badges / chips (Task 4) ---
|
|
14
|
+
export { ChannelBadge } from "./opportunity-channel-badge";
|
|
15
|
+
export { OffersCountChip } from "./opportunity-offers-count-chip";
|
|
16
|
+
// --- Action buttons + celebration (Tasks 13, 14) ---
|
|
17
|
+
export { OpportunityCelebration } from "./opportunity-celebration";
|
|
18
|
+
export { AddToJourneyButton } from "./opportunity-add-to-journey-button";
|
|
19
|
+
export { ViewOffersButton } from "./opportunity-view-offers-button";
|
|
20
|
+
export { ReopenButton } from "./opportunity-reopen-button";
|
|
21
|
+
export { RepublishButton } from "./opportunity-republish-button";
|
|
22
|
+
export { ResumeDraftButton } from "./opportunity-resume-draft-button";
|
|
23
|
+
// --- Card actions menu (Task 15) ---
|
|
24
|
+
export { OpportunityCardActionsMenu } from "./opportunity-card-actions-menu";
|
|
25
|
+
// --- Wizard (Tasks 16-23) ---
|
|
26
|
+
export { OpportunityWizard } from "./wizard/opportunity-wizard";
|
|
27
|
+
export { WizardStepper } from "./wizard/wizard-stepper";
|
|
28
|
+
export { StepTenderBasics } from "./wizard/step-tender-basics";
|
|
29
|
+
export { StepOpportunities } from "./wizard/step-opportunities";
|
|
30
|
+
export { StepPricingTimeline } from "./wizard/step-pricing-timeline";
|
|
31
|
+
export { StepReview, draftToView } from "./wizard/step-review";
|
|
32
|
+
export { useWizardDraft } from "./wizard/use-wizard-draft";
|
|
33
|
+
export * from "./wizard/wizard.types";
|
|
34
|
+
// --- Deprecated (scheduled for removal in 0.20.0) ---
|
|
35
|
+
/** @deprecated Since 0.19.0. Use `OpportunityStackedList` with `OpportunityStackedCard` slots instead. Scheduled for removal in 0.20.0. */
|
|
1
36
|
export { OpportunitiesTable } from "./opportunities-table";
|
|
2
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/opportunities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/opportunities/index.ts"],"names":[],"mappings":"AAaA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AAEhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,cAAc,uBAAuB,CAAC;AAEtC,uDAAuD;AACvD,2IAA2I;AAC3I,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -19,5 +19,9 @@ export interface OpportunitiesTableProps {
|
|
|
19
19
|
emptyMessage?: string;
|
|
20
20
|
pageSize?: number;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Since 0.19.0. Use `OpportunityStackedList` with `OpportunityStackedCard` slots instead.
|
|
24
|
+
* Scheduled for removal in 0.20.0. See `docs/superpowers/specs/2026-04-20-opportunity-experience-redesign-design.md`.
|
|
25
|
+
*/
|
|
22
26
|
export declare function OpportunitiesTable({ data, isLoading, renderLink, getRowHref, emptyMessage, pageSize, }: OpportunitiesTableProps): import("react/jsx-runtime").JSX.Element;
|
|
23
27
|
//# sourceMappingURL=opportunities-table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opportunities-table.d.ts","sourceRoot":"","sources":["../../src/opportunities/opportunities-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0B/B,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oCAAoC;IACpC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,SAAS,CAAC;IAC1E,qEAAqE;IACrE,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,MAAM,CAAC;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAiRD,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,SAAiB,EACjB,UAAU,EACV,UAAU,EACV,YAAwC,EACxC,QAAa,GACd,EAAE,uBAAuB,2CAyHzB"}
|
|
1
|
+
{"version":3,"file":"opportunities-table.d.ts","sourceRoot":"","sources":["../../src/opportunities/opportunities-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0B/B,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oCAAoC;IACpC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,SAAS,CAAC;IAC1E,qEAAqE;IACrE,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,MAAM,CAAC;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAiRD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,SAAiB,EACjB,UAAU,EACV,UAAU,EACV,YAAwC,EACxC,QAAa,GACd,EAAE,uBAAuB,2CAyHzB"}
|
|
@@ -89,6 +89,10 @@ const DUMMY_COLUMNS = [
|
|
|
89
89
|
{ accessorKey: "status" },
|
|
90
90
|
{ accessorKey: "submissionDeadline" },
|
|
91
91
|
];
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated Since 0.19.0. Use `OpportunityStackedList` with `OpportunityStackedCard` slots instead.
|
|
94
|
+
* Scheduled for removal in 0.20.0. See `docs/superpowers/specs/2026-04-20-opportunity-experience-redesign-design.md`.
|
|
95
|
+
*/
|
|
92
96
|
export function OpportunitiesTable({ data, isLoading = false, renderLink, getRowHref, emptyMessage = "No opportunities found.", pageSize = 10, }) {
|
|
93
97
|
const [globalFilter, setGlobalFilter] = React.useState("");
|
|
94
98
|
const [density, setDensity] = React.useState("comfortable");
|