@cellarnode/ui 0.17.4 → 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/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/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-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/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-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-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-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/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-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-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-list.d.ts.map +1 -1
- package/dist/opportunities/opportunity-stacked-list.js +3 -1
- package/dist/opportunities/opportunity-stacked-list.js.map +1 -1
- 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/two-column-section.d.ts.map +1 -1
- package/dist/opportunities/two-column-section.js +4 -3
- package/dist/opportunities/two-column-section.js.map +1 -1
- 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/package.json +13 -4
- package/src/offer/offer-document.print.css +72 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type FactsCardStatus } from "./facts-card";
|
|
2
|
+
import { type OfferProductBeverage, type OfferProductVariant } from "./offer-product-card";
|
|
3
|
+
import { type OpportunityCardData } from "./opportunity-card";
|
|
4
|
+
import type { MatchEvaluation, OfferAttachmentItem, OfferFxInfo, OfferPartyInfo, OfferPresenceEntry, OfferSectionId, OfferTerms, Perspective, SectionOverride, TimelineEventData } from "./types";
|
|
5
|
+
export type OfferDocumentAction = "counter" | "accept" | "decline" | "withdraw" | "reopen" | "renew";
|
|
6
|
+
export interface OfferDocumentProps {
|
|
7
|
+
offerId: string;
|
|
8
|
+
status: FactsCardStatus;
|
|
9
|
+
round: number;
|
|
10
|
+
perspective: Perspective;
|
|
11
|
+
viewerOrgId: string;
|
|
12
|
+
producer: OfferPartyInfo;
|
|
13
|
+
importer: OfferPartyInfo;
|
|
14
|
+
opportunity: OpportunityCardData;
|
|
15
|
+
beverage: OfferProductBeverage;
|
|
16
|
+
variant: OfferProductVariant;
|
|
17
|
+
terms: OfferTerms;
|
|
18
|
+
previousTerms?: OfferTerms;
|
|
19
|
+
evaluation: MatchEvaluation;
|
|
20
|
+
attachments: OfferAttachmentItem[];
|
|
21
|
+
events: TimelineEventData[];
|
|
22
|
+
presence: OfferPresenceEntry[];
|
|
23
|
+
fx?: OfferFxInfo;
|
|
24
|
+
tenderCurrency?: string;
|
|
25
|
+
/** Per-section overrides (hide / reorder / override default-open). */
|
|
26
|
+
sections?: Partial<Record<OfferSectionId, SectionOverride>>;
|
|
27
|
+
onAction: (action: OfferDocumentAction) => void;
|
|
28
|
+
onOpenComposer?: () => void;
|
|
29
|
+
onOpenAttachment?: (a: OfferAttachmentItem) => void;
|
|
30
|
+
className?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare function OfferDocument({ offerId, status, round, perspective, viewerOrgId, producer, importer, opportunity, beverage, variant, terms, previousTerms, evaluation, attachments, events, presence, fx, tenderCurrency, sections, onAction, onOpenComposer, onOpenAttachment, className, }: OfferDocumentProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=offer-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-document.d.ts","sourceRoot":"","sources":["../../src/offer/offer-document.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/D,OAAO,EAAoB,KAAK,oBAAoB,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC7G,OAAO,EAAmB,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAG/E,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,WAAW,EACX,eAAe,EACf,iBAAiB,EAElB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,QAAQ,GACR,SAAS,GACT,UAAU,GACV,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IAEpB,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,mBAAmB,CAAC;IACjC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,KAAK,EAAE,UAAU,CAAC;IAClB,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,UAAU,EAAE,eAAe,CAAC;IAC5B,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACnC,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC,CAAC;IAE5D,QAAQ,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,gBAAgB,CAAC,EAAE,CAAC,CAAC,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAEpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6ED,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,MAAM,EACN,KAAK,EACL,WAAW,EACX,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,aAAa,EACb,UAAU,EACV,WAAW,EACX,MAAM,EACN,QAAQ,EACR,EAAE,EACF,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,SAAS,GACV,EAAE,kBAAkB,2CAgMpB"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { cn } from "../lib/utils";
|
|
4
|
+
import { ShadcnButton as Button } from "../components/shadcn-button";
|
|
5
|
+
import { AttachmentsCard } from "./attachments-card";
|
|
6
|
+
import { BuyerNotesCard } from "./buyer-notes-card";
|
|
7
|
+
import { FactsCard } from "./facts-card";
|
|
8
|
+
import { MatchCompatibilityCard } from "./match-compatibility-card";
|
|
9
|
+
import { NegotiationSection } from "./negotiation-section";
|
|
10
|
+
import { OfferExportButton } from "./offer-export-button";
|
|
11
|
+
import { OfferProductCard } from "./offer-product-card";
|
|
12
|
+
import { OpportunityCard } from "./opportunity-card";
|
|
13
|
+
import { PartiesCard } from "./parties-card";
|
|
14
|
+
import { TermsCard } from "./terms-card";
|
|
15
|
+
const DEFAULT_ORDER = [
|
|
16
|
+
"parties",
|
|
17
|
+
"opportunity",
|
|
18
|
+
"product",
|
|
19
|
+
"terms",
|
|
20
|
+
"match",
|
|
21
|
+
"notes",
|
|
22
|
+
"attachments",
|
|
23
|
+
"negotiation",
|
|
24
|
+
];
|
|
25
|
+
function producerCtas(status, viewerInitiator) {
|
|
26
|
+
switch (status) {
|
|
27
|
+
case "proposed":
|
|
28
|
+
return viewerInitiator ? ["withdraw"] : ["counter", "accept", "decline"];
|
|
29
|
+
case "counter_pending":
|
|
30
|
+
return viewerInitiator ? ["withdraw"] : ["counter", "accept", "decline"];
|
|
31
|
+
case "accepted":
|
|
32
|
+
case "withdrawn":
|
|
33
|
+
return [];
|
|
34
|
+
case "declined":
|
|
35
|
+
return ["reopen"];
|
|
36
|
+
case "expired":
|
|
37
|
+
return ["renew"];
|
|
38
|
+
default:
|
|
39
|
+
return [];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
// Blocker B9 — CTA aria-label composition. Screen-reader users should
|
|
43
|
+
// hear the full context ("Accept offer for Barolo DOCG 2020 from Fattoria
|
|
44
|
+
// San Marco") rather than a raw UUID ("Accept offer offer-1"). When the
|
|
45
|
+
// beverage or producer name is missing (defensive — this should not
|
|
46
|
+
// happen in practice), we fall back to the offer id segment.
|
|
47
|
+
const ACTION_VERB = {
|
|
48
|
+
counter: "Counter",
|
|
49
|
+
accept: "Accept",
|
|
50
|
+
decline: "Decline",
|
|
51
|
+
withdraw: "Withdraw",
|
|
52
|
+
reopen: "Reopen",
|
|
53
|
+
renew: "Renew",
|
|
54
|
+
};
|
|
55
|
+
function ctaAriaLabel(action, beverageName, producerName, offerId) {
|
|
56
|
+
const verb = ACTION_VERB[action];
|
|
57
|
+
if (beverageName && producerName) {
|
|
58
|
+
return `${verb} offer for ${beverageName} from ${producerName}`;
|
|
59
|
+
}
|
|
60
|
+
if (beverageName)
|
|
61
|
+
return `${verb} offer for ${beverageName}`;
|
|
62
|
+
// Defensive fallback — should never fire because OfferDocumentProps
|
|
63
|
+
// requires `beverage.name` and `producer.name`, but keeps the aria-label
|
|
64
|
+
// non-empty even if a consumer passes an empty string.
|
|
65
|
+
return `${verb} offer ${offerId}`;
|
|
66
|
+
}
|
|
67
|
+
// Blocker B9 / spec §19 — Screen-reader announcement on offer state
|
|
68
|
+
// transitions. The OfferDocument rail exposes a dedicated
|
|
69
|
+
// `role="status"` live region separate from FactsCard's price-focused
|
|
70
|
+
// live region. It emits a composed sentence like
|
|
71
|
+
// "Offer accepted — no further counters possible"
|
|
72
|
+
// whenever the `status` prop changes. This is the region that the
|
|
73
|
+
// `StateTransitionAnnouncement` story asserts against.
|
|
74
|
+
const STATE_TRANSITION_SENTENCE = {
|
|
75
|
+
proposed: "Offer proposed — awaiting counterparty response",
|
|
76
|
+
counter_pending: "Counter pending — awaiting review",
|
|
77
|
+
accepted: "Offer accepted — no further counters possible",
|
|
78
|
+
declined: "Offer declined",
|
|
79
|
+
expired: "Offer expired — validity window closed",
|
|
80
|
+
withdrawn: "Offer withdrawn by initiator",
|
|
81
|
+
};
|
|
82
|
+
export function OfferDocument({ offerId, status, round, perspective, viewerOrgId, producer, importer, opportunity, beverage, variant, terms, previousTerms, evaluation, attachments, events, presence, fx, tenderCurrency, sections, onAction, onOpenComposer, onOpenAttachment, className, }) {
|
|
83
|
+
const orderedIds = useMemo(() => {
|
|
84
|
+
const overrides = sections ?? {};
|
|
85
|
+
const active = DEFAULT_ORDER.filter((id) => !overrides[id]?.hidden);
|
|
86
|
+
return [...active].sort((a, b) => {
|
|
87
|
+
const oa = overrides[a]?.order ?? DEFAULT_ORDER.indexOf(a);
|
|
88
|
+
const ob = overrides[b]?.order ?? DEFAULT_ORDER.indexOf(b);
|
|
89
|
+
return oa - ob;
|
|
90
|
+
});
|
|
91
|
+
}, [sections]);
|
|
92
|
+
const viewerInitiator = (status === "proposed" && viewerOrgId === producer.orgId) ||
|
|
93
|
+
(status === "counter_pending" && events[events.length - 1]?.actorOrgId === viewerOrgId);
|
|
94
|
+
const ctas = producerCtas(status, viewerInitiator);
|
|
95
|
+
// Blocker B3 — viewerAdvantage is per-criterion and per-round. It must
|
|
96
|
+
// come from the backend evaluator (Plan 2) where each `MatchCriterion`
|
|
97
|
+
// carries its own `viewerAdvantage` scoped to the viewer. A flat
|
|
98
|
+
// page-level constant is wrong per spec §11: "Delta polarity: Producer:
|
|
99
|
+
// emerald · Importer: rose" describes a per-field rule, not a page-wide
|
|
100
|
+
// tone. We do NOT compute one here. Downstream cards that need the top-
|
|
101
|
+
// line viewer advantage (e.g. FactsCard price delta) derive it from the
|
|
102
|
+
// `price` criterion's own `viewerAdvantage`, with "neutral" as a safe
|
|
103
|
+
// fallback when the criterion is missing / FX-unavailable (§6.6).
|
|
104
|
+
const priceCriterion = evaluation.criteria.find((c) => c.id === "price");
|
|
105
|
+
const topLineAdvantage = priceCriterion?.viewerAdvantage ?? "neutral";
|
|
106
|
+
// Stable document-generation timestamp: captured once per mount, not on every re-render.
|
|
107
|
+
const printedAt = useMemo(() => new Date().toISOString(), []);
|
|
108
|
+
return (_jsxs("div", { "data-offer-document": true, "data-offer-id": offerId, "data-printed-at": printedAt, className: cn("mx-auto w-full max-w-6xl space-y-4 p-4", className), children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("nav", { "data-offer-nav-chrome": true, "aria-label": "breadcrumb", className: "text-xs text-muted-foreground", children: [perspective === "producer" ? "Sprint board" : "Offers", " / Offer ", offerId.slice(0, 8)] }), _jsx(OfferExportButton, { offerId: offerId })] }), _jsx("div", { role: "status", "aria-live": "polite", className: "sr-only", children: STATE_TRANSITION_SENTENCE[status] }), _jsx("div", { "data-offer-facts-card": true, children: _jsx(FactsCard, { status: status, round: round, terms: terms, previousPrice: previousTerms?.price,
|
|
109
|
+
// Blocker B3 — derived from the `price` criterion's own
|
|
110
|
+
// `viewerAdvantage`, not a flat page-level constant. This keeps
|
|
111
|
+
// the price-delta chip polarity aligned with the backend's
|
|
112
|
+
// viewer-scoped evaluation (spec §11: "Delta polarity" per-field).
|
|
113
|
+
viewerAdvantage: topLineAdvantage, perspective: perspective, presence: presence, fx: fx, tenderCurrency: tenderCurrency, onExport: () => window.print() }) }), _jsxs("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-[minmax(0,1fr)_220px]", children: [_jsx("main", { className: "space-y-4", children: orderedIds.map((id) => (_jsxs("div", { "data-offer-section": true, "data-section-id": id, children: [id === "parties" && (_jsx(PartiesCard, { producer: producer, importer: importer, viewerOrgId: viewerOrgId, variant: sections?.parties?.defaultOpen ? "expanded" : "collapsed" })), id === "opportunity" && (_jsx(OpportunityCard, { opportunity: opportunity, variant: sections?.opportunity?.defaultOpen ? "expanded" : "collapsed" })), id === "product" && (_jsx(OfferProductCard, { variant: variant, beverage: beverage, variantDisplay: sections?.product?.defaultOpen === false ? "collapsed" : "expanded" })), id === "terms" && (_jsx(TermsCard, { terms: terms, previousTerms: previousTerms, variant: sections?.terms?.defaultOpen ? "expanded" : "collapsed",
|
|
114
|
+
// Blocker B3 — TermsCard now derives per-row polarity
|
|
115
|
+
// from `perspective` + each cell's delta direction rather
|
|
116
|
+
// than a single flat `viewerAdvantage` constant. Price up
|
|
117
|
+
// is emerald for a producer, rose for an importer, etc.
|
|
118
|
+
perspective: perspective })), id === "match" && (_jsx(MatchCompatibilityCard, { evaluation: evaluation,
|
|
119
|
+
// Blocker B3 — each criterion row derives its own colour
|
|
120
|
+
// from its own `viewerAdvantage` field. Passing
|
|
121
|
+
// `perspective` is informational (e.g. for accessible
|
|
122
|
+
// labels like "Producer: price improved").
|
|
123
|
+
perspective: perspective })), id === "notes" && _jsx(BuyerNotesCard, { notes: evaluation.freeTextFields }), id === "attachments" && (_jsx(AttachmentsCard, { attachments: attachments, onOpen: (a) => onOpenAttachment?.(a) })), id === "negotiation" && (_jsx(NegotiationSection, { events: events, viewerOrgId: viewerOrgId, viewerRole: perspective, onOpenComposer: onOpenComposer }))] }, id))) }), _jsx("aside", { "data-offer-rail": true, "aria-label": "Actions and meta", className: "hidden lg:block", children: _jsxs("div", { className: "sticky top-24 space-y-3", children: [_jsxs("div", { className: "rounded-xl border border-border/60 bg-card p-3", children: [_jsx("div", { className: "text-xs uppercase tracking-wide text-muted-foreground", children: "Actions" }), _jsxs("div", { className: "mt-2 flex flex-wrap gap-2", children: [ctas.length === 0 && (_jsx("span", { className: "text-xs text-muted-foreground", children: "No actions available." })), ctas.map((a) => (_jsx(Button, { size: "sm", "aria-label": ctaAriaLabel(a, beverage.name, producer.name, offerId), onClick: () => onAction(a), children: a }, a)))] })] }), _jsxs("div", { className: "rounded-xl border border-border/60 bg-card p-3 text-xs", children: [_jsx("div", { className: "uppercase tracking-wide text-muted-foreground", children: "Status" }), _jsx("div", { className: "mt-1 font-medium capitalize", children: status.replace("_", " ") }), _jsxs("div", { className: "mt-1 text-muted-foreground", children: ["R", round, " of 4 max"] })] }), _jsxs("div", { className: "rounded-xl border border-border/60 bg-card p-3 text-xs", children: [_jsx("div", { className: "uppercase tracking-wide text-muted-foreground", children: "Offer" }), _jsx("div", { className: "mt-1 font-mono", children: offerId }), _jsxs("div", { className: "mt-1 text-muted-foreground", children: [events.length, " events \u00B7 ", attachments.length, " files"] })] }), _jsxs("div", { className: "rounded-xl border border-border/60 bg-card p-3", children: [_jsx("div", { className: "text-xs uppercase tracking-wide text-muted-foreground", children: "Export" }), _jsx("div", { className: "mt-2", children: _jsx(OfferExportButton, { offerId: offerId }) })] })] }) })] })] }));
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=offer-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-document.js","sourceRoot":"","sources":["../../src/offer/offer-document.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAA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,aACrE,cAAK,SAAS,EAAC,+CAA+C,sBAAY,EAC1E,cAAK,SAAS,EAAC,gBAAgB,YAAE,OAAO,GAAO,EAC/C,eAAK,SAAS,EAAC,4BAA4B,aACxC,MAAM,CAAC,MAAM,qBAAY,WAAW,CAAC,MAAM,cACxC,IACF,EACN,eAAK,SAAS,EAAC,gDAAgD,aAC7D,cAAK,SAAS,EAAC,uDAAuD,uBAAa,EACnF,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,iBAAiB,IAAC,OAAO,EAAE,OAAO,GAAI,GACnC,IACF,IACF,GACA,IACJ,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { OfferDocument } from "./offer-document";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof OfferDocument;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const ProposedProducer: Story;
|
|
14
|
+
export declare const ProposedImporter: Story;
|
|
15
|
+
export declare const CounterPendingProducer: Story;
|
|
16
|
+
export declare const CounterPendingImporter: Story;
|
|
17
|
+
export declare const Accepted: Story;
|
|
18
|
+
export declare const Declined: Story;
|
|
19
|
+
export declare const Expired: Story;
|
|
20
|
+
export declare const Withdrawn: Story;
|
|
21
|
+
export declare const SectionHidden: Story;
|
|
22
|
+
export declare const SectionReordered: Story;
|
|
23
|
+
export declare const StateTransitionAnnouncement: Story;
|
|
24
|
+
export declare const ResponsiveMobile: Story;
|
|
25
|
+
//# sourceMappingURL=offer-document.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-document.stories.d.ts","sourceRoot":"","sources":["../../src/offer/offer-document.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AASjD,QAAA,MAAM,IAAI;;;;;;;CAK4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA8EnC,eAAO,MAAM,gBAAgB,EAAE,KAA0B,CAAC;AAC1D,eAAO,MAAM,gBAAgB,EAAE,KAA2F,CAAC;AAC3H,eAAO,MAAM,sBAAsB,EAAE,KAA+E,CAAC;AACrH,eAAO,MAAM,sBAAsB,EAAE,KAAyI,CAAC;AAC/K,eAAO,MAAM,QAAQ,EAAE,KAA8D,CAAC;AACtF,eAAO,MAAM,QAAQ,EAAE,KAA8D,CAAC;AACtF,eAAO,MAAM,OAAO,EAAE,KAA6D,CAAC;AACpF,eAAO,MAAM,SAAS,EAAE,KAA+D,CAAC;AACxF,eAAO,MAAM,aAAa,EAAE,KAkB3B,CAAC;AACF,eAAO,MAAM,gBAAgB,EAAE,KA8B9B,CAAC;AAuBF,eAAO,MAAM,2BAA2B,EAAE,KAczC,CAAC;AAMF,eAAO,MAAM,gBAAgB,EAAE,KAG9B,CAAC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { OfferDocument } from "./offer-document";
|
|
4
|
+
const meta = {
|
|
5
|
+
title: "Offer/OfferDocument",
|
|
6
|
+
component: OfferDocument,
|
|
7
|
+
tags: ["autodocs"],
|
|
8
|
+
parameters: { layout: "fullscreen" },
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
const producer = {
|
|
12
|
+
orgId: "org-prod",
|
|
13
|
+
name: "Chianti Wines SRL",
|
|
14
|
+
location: "Tuscany, IT",
|
|
15
|
+
};
|
|
16
|
+
const importerParty = {
|
|
17
|
+
orgId: "org-imp",
|
|
18
|
+
name: "Maxwell Importers Ltd",
|
|
19
|
+
location: "London, UK",
|
|
20
|
+
};
|
|
21
|
+
const terms = {
|
|
22
|
+
price: 4.1,
|
|
23
|
+
currency: "EUR",
|
|
24
|
+
volume: 20000,
|
|
25
|
+
volumeUnit: "L",
|
|
26
|
+
incoterms: "FOB",
|
|
27
|
+
paymentTerms: "Net 30",
|
|
28
|
+
deliveryDate: "2026-08-15",
|
|
29
|
+
validUntil: "2026-05-22",
|
|
30
|
+
};
|
|
31
|
+
const evaluation = {
|
|
32
|
+
headline: "partial",
|
|
33
|
+
headlineSummary: "Price is 4% over the ceiling",
|
|
34
|
+
criteria: [
|
|
35
|
+
{ id: "price", label: "Price", state: "partial", offered: 4.4, required: 4.2, reason: "4.7% over ceiling", viewerAdvantage: "improved" },
|
|
36
|
+
{ id: "volume", label: "Volume", state: "ok", offered: 20000, required: 20000, viewerAdvantage: "neutral" },
|
|
37
|
+
{ id: "alcoholRange", label: "ABV range", state: "ok", offered: 13.5, required: [12.5, 14], viewerAdvantage: "neutral" },
|
|
38
|
+
],
|
|
39
|
+
freeTextFields: [
|
|
40
|
+
{ id: "styleTasteProfile", label: "Style / taste profile", value: "Fruit-forward, balanced tannins." },
|
|
41
|
+
],
|
|
42
|
+
hiddenReasons: [],
|
|
43
|
+
};
|
|
44
|
+
const events = [
|
|
45
|
+
{ id: "t1", kind: "propose", createdAt: "2026-04-18T10:00:00Z", actorOrgId: "org-prod", actorRole: "producer", round: 1, terms },
|
|
46
|
+
{ id: "t2", kind: "message", createdAt: "2026-04-18T11:00:00Z", actorOrgId: "org-imp", actorRole: "importer", content: "Can you attach your lab cert?" },
|
|
47
|
+
];
|
|
48
|
+
const attachments = [
|
|
49
|
+
{ id: "a1", fileName: "product-sheet.pdf", mimeType: "application/pdf", sizeBytes: 250_000, uploadedAt: "2026-04-18T10:00:00Z", source: "formal", sourceLabel: "formal attachment" },
|
|
50
|
+
];
|
|
51
|
+
const opportunity = {
|
|
52
|
+
id: "opp-1",
|
|
53
|
+
title: "Bulk Chianti DOCG — Q3 2026",
|
|
54
|
+
closingDays: 12,
|
|
55
|
+
priceCeilingEuro: 4.2,
|
|
56
|
+
volumeOptions: [20000],
|
|
57
|
+
requirements: ["ABV 12.5–14%", "750ml glass bottles", "Organic certification required"],
|
|
58
|
+
};
|
|
59
|
+
const beverage = { id: "bev-1", name: "Chianti Riserva", producer: "Chianti Wines SRL", countryOfOrigin: "Italy", beverageType: { category: "wine", subtype: "red" } };
|
|
60
|
+
const variant = { id: "var-1", vintage: 2020, packaging: "750ml glass bottle", closure: "cork", abv: 13.5, residualSugar: 2.3, organic: true, fairtrade: false, sustainable: true, imageUrl: null };
|
|
61
|
+
const baseArgs = {
|
|
62
|
+
offerId: "offer-1",
|
|
63
|
+
status: "proposed",
|
|
64
|
+
round: 1,
|
|
65
|
+
perspective: "producer",
|
|
66
|
+
viewerOrgId: "org-prod",
|
|
67
|
+
producer,
|
|
68
|
+
importer: importerParty,
|
|
69
|
+
opportunity,
|
|
70
|
+
beverage,
|
|
71
|
+
variant,
|
|
72
|
+
terms,
|
|
73
|
+
evaluation,
|
|
74
|
+
attachments,
|
|
75
|
+
events,
|
|
76
|
+
presence: [],
|
|
77
|
+
onAction: () => { },
|
|
78
|
+
onOpenComposer: () => { },
|
|
79
|
+
};
|
|
80
|
+
export const ProposedProducer = { args: baseArgs };
|
|
81
|
+
export const ProposedImporter = { args: { ...baseArgs, perspective: "importer", viewerOrgId: "org-imp" } };
|
|
82
|
+
export const CounterPendingProducer = { args: { ...baseArgs, status: "counter_pending", round: 2 } };
|
|
83
|
+
export const CounterPendingImporter = { args: { ...baseArgs, status: "counter_pending", round: 2, perspective: "importer", viewerOrgId: "org-imp" } };
|
|
84
|
+
export const Accepted = { args: { ...baseArgs, status: "accepted" } };
|
|
85
|
+
export const Declined = { args: { ...baseArgs, status: "declined" } };
|
|
86
|
+
export const Expired = { args: { ...baseArgs, status: "expired" } };
|
|
87
|
+
export const Withdrawn = { args: { ...baseArgs, status: "withdrawn" } };
|
|
88
|
+
export const SectionHidden = {
|
|
89
|
+
args: {
|
|
90
|
+
...baseArgs,
|
|
91
|
+
sections: { notes: { hidden: true } },
|
|
92
|
+
},
|
|
93
|
+
// Blocker B7 — assert the hidden section is actually absent from the DOM.
|
|
94
|
+
play: async ({ canvasElement }) => {
|
|
95
|
+
const { within } = await import("storybook/test");
|
|
96
|
+
const { expect } = await import("vitest");
|
|
97
|
+
const canvas = within(canvasElement);
|
|
98
|
+
// Every rendered section carries `data-section-id="<id>"` in Task 5.3.
|
|
99
|
+
const notes = canvas.queryByTestId?.("section-notes")
|
|
100
|
+
?? canvasElement.querySelector('[data-section-id="notes"]');
|
|
101
|
+
await expect(notes).toBeNull();
|
|
102
|
+
// And other sections remain rendered
|
|
103
|
+
const match = canvasElement.querySelector('[data-section-id="match"]');
|
|
104
|
+
await expect(match).not.toBeNull();
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
export const SectionReordered = {
|
|
108
|
+
args: {
|
|
109
|
+
...baseArgs,
|
|
110
|
+
sections: {
|
|
111
|
+
match: { order: 0, defaultOpen: true },
|
|
112
|
+
terms: { order: 1 },
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
// Blocker B7 — assert the actual DOM order reflects the `order` override.
|
|
116
|
+
// Without this assertion the `sections` prop's claim to accept stable ids
|
|
117
|
+
// for reordering is untested.
|
|
118
|
+
play: async ({ canvasElement }) => {
|
|
119
|
+
const { within: _within } = await import("storybook/test");
|
|
120
|
+
const { expect } = await import("vitest");
|
|
121
|
+
void _within;
|
|
122
|
+
const sections = Array.from(canvasElement.querySelectorAll("[data-section-id]"));
|
|
123
|
+
const ids = sections.map((el) => el.getAttribute("data-section-id"));
|
|
124
|
+
// With `match.order=0` + `terms.order=1`, match MUST precede terms,
|
|
125
|
+
// and BOTH must precede any unmodified section.
|
|
126
|
+
const matchIdx = ids.indexOf("match");
|
|
127
|
+
const termsIdx = ids.indexOf("terms");
|
|
128
|
+
await expect(matchIdx).toBeGreaterThanOrEqual(0);
|
|
129
|
+
await expect(termsIdx).toBeGreaterThan(matchIdx);
|
|
130
|
+
// Unmodified sections keep their default relative order after the
|
|
131
|
+
// overridden ones; `parties` defaults to index 0, so after override it
|
|
132
|
+
// should be AFTER the explicit order-0 `match`.
|
|
133
|
+
await expect(ids.indexOf("parties")).toBeGreaterThan(matchIdx);
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
function StateTransitionAnnouncementDemo() {
|
|
137
|
+
const [status, setStatus] = useState("proposed");
|
|
138
|
+
return (_jsxs("div", { children: [_jsxs("div", { className: "mb-2 flex gap-2", children: [_jsx("button", { "data-testid": "to-proposed", onClick: () => setStatus("proposed"), children: "Proposed" }), _jsx("button", { "data-testid": "to-accepted", onClick: () => setStatus("accepted"), children: "Accept" }), _jsx("button", { "data-testid": "to-declined", onClick: () => setStatus("declined"), children: "Decline" })] }), _jsx(OfferDocument, { ...baseArgs, status: status })] }));
|
|
139
|
+
}
|
|
140
|
+
// Spec §19: "Screen-reader announcement on offer state transitions". The
|
|
141
|
+
// rail should expose a <div role="status" aria-live="polite"> that emits
|
|
142
|
+
// composed strings like "Offer accepted — no further counters possible"
|
|
143
|
+
// when the status prop changes. This story swaps status mid-render and
|
|
144
|
+
// asserts the region updates.
|
|
145
|
+
export const StateTransitionAnnouncement = {
|
|
146
|
+
args: baseArgs,
|
|
147
|
+
render: () => _jsx(StateTransitionAnnouncementDemo, {}),
|
|
148
|
+
play: async ({ canvasElement, step }) => {
|
|
149
|
+
const { within, userEvent } = await import("storybook/test");
|
|
150
|
+
const { expect } = await import("vitest");
|
|
151
|
+
const canvas = within(canvasElement);
|
|
152
|
+
await step("transitioning to accepted announces the composed sentence", async () => {
|
|
153
|
+
await userEvent.click(canvas.getByTestId("to-accepted"));
|
|
154
|
+
const regions = canvas.getAllByRole("status");
|
|
155
|
+
const joined = regions.map((r) => r.textContent ?? "").join(" · ");
|
|
156
|
+
await expect(joined).toMatch(/accepted.*no further counters possible/i);
|
|
157
|
+
});
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
// Responsive coverage per spec §5.5 — OfferDocument is the page shell
|
|
161
|
+
// and must collapse its right-rail below the `lg:` breakpoint. This
|
|
162
|
+
// story renders at `mobile1` (360×640) so chromatic / visual regression
|
|
163
|
+
// catches rail-hide + section-stack regressions on narrow viewports.
|
|
164
|
+
export const ResponsiveMobile = {
|
|
165
|
+
args: { ...baseArgs },
|
|
166
|
+
parameters: { viewport: { defaultViewport: "mobile1" } },
|
|
167
|
+
};
|
|
168
|
+
//# sourceMappingURL=offer-document.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-document.stories.js","sourceRoot":"","sources":["../../src/offer/offer-document.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AASjD,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;CACA,CAAC;AAEvC,eAAe,IAAI,CAAC;AAGpB,MAAM,QAAQ,GAAmB;IAC/B,KAAK,EAAE,UAAU;IACjB,IAAI,EAAE,mBAAmB;IACzB,QAAQ,EAAE,aAAa;CACxB,CAAC;AACF,MAAM,aAAa,GAAmB;IACpC,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,uBAAuB;IAC7B,QAAQ,EAAE,YAAY;CACvB,CAAC;AAEF,MAAM,KAAK,GAAe;IACxB,KAAK,EAAE,GAAG;IACV,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,GAAG;IACf,SAAS,EAAE,KAAK;IAChB,YAAY,EAAE,QAAQ;IACtB,YA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|
+
variant?: "full" | "icon";
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function OfferExportButton({ offerId: _offerId, variant, disabled, className, }: OfferExportButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=offer-export-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-export-button.d.ts","sourceRoot":"","sources":["../../src/offer/offer-export-button.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EAAE,QAAQ,EACjB,OAAgB,EAChB,QAAQ,EACR,SAAS,GACV,EAAE,sBAAsB,2CA2BxB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Printer } from "lucide-react";
|
|
3
|
+
import { ShadcnButton as Button } from "../components/shadcn-button";
|
|
4
|
+
import { cn } from "../lib/utils";
|
|
5
|
+
export function OfferExportButton({ offerId: _offerId, variant = "full", disabled, className, }) {
|
|
6
|
+
if (variant === "icon") {
|
|
7
|
+
return (_jsx(Button, { variant: "ghost", size: "icon", disabled: disabled, onClick: () => window.print(), "aria-label": "Export offer as PDF", className: cn(className), children: _jsx(Printer, { "aria-hidden": true, className: "size-4" }) }));
|
|
8
|
+
}
|
|
9
|
+
return (_jsxs(Button, { variant: "ghost", size: "sm", disabled: disabled, onClick: () => window.print(), className: cn(className), children: [_jsx(Printer, { "aria-hidden": true, className: "size-4" }), "Export PDF"] }));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=offer-export-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-export-button.js","sourceRoot":"","sources":["../../src/offer/offer-export-button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AASlC,MAAM,UAAU,iBAAiB,CAAC,EAChC,OAAO,EAAE,QAAQ,EACjB,OAAO,GAAG,MAAM,EAChB,QAAQ,EACR,SAAS,GACc;IACvB,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QACvB,OAAO,CACL,KAAC,MAAM,IACL,OAAO,EAAC,OAAO,EACf,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,gBAClB,qBAAqB,EAChC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,YAExB,KAAC,OAAO,yBAAa,SAAS,EAAC,QAAQ,GAAG,GACnC,CACV,CAAC;IACJ,CAAC;IACD,OAAO,CACL,MAAC,MAAM,IACL,OAAO,EAAC,OAAO,EACf,IAAI,EAAC,IAAI,EACT,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAC7B,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,aAExB,KAAC,OAAO,yBAAa,SAAS,EAAC,QAAQ,GAAG,kBAEnC,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { OfferExportButton } from "./offer-export-button";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof OfferExportButton;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const IconOnly: Story;
|
|
15
|
+
//# sourceMappingURL=offer-export-button.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-export-button.stories.d.ts","sourceRoot":"","sources":["../../src/offer/offer-export-button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,QAAA,MAAM,IAAI;;;;;;;CAKgC,CAAC;AAE3C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAwC,CAAC;AAC/D,eAAO,MAAM,QAAQ,EAAE,KAAyD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OfferExportButton } from "./offer-export-button";
|
|
2
|
+
const meta = {
|
|
3
|
+
title: "Offer/OfferExportButton",
|
|
4
|
+
component: OfferExportButton,
|
|
5
|
+
tags: ["autodocs"],
|
|
6
|
+
parameters: { layout: "centered" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
export const Default = { args: { offerId: "offer-1" } };
|
|
10
|
+
export const IconOnly = { args: { offerId: "offer-1", variant: "icon" } };
|
|
11
|
+
//# sourceMappingURL=offer-export-button.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-export-button.stories.js","sourceRoot":"","sources":["../../src/offer/offer-export-button.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,yBAAyB;IAChC,SAAS,EAAE,iBAAiB;IAC5B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;CACM,CAAC;AAE3C,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,CAAC;AAC/D,MAAM,CAAC,MAAM,QAAQ,GAAU,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface OfferProductBeverage {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
producer?: string;
|
|
5
|
+
countryOfOrigin?: string;
|
|
6
|
+
beverageType?: {
|
|
7
|
+
category?: string;
|
|
8
|
+
subtype?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface OfferProductVariant {
|
|
12
|
+
id: string;
|
|
13
|
+
vintage?: number | null;
|
|
14
|
+
packaging?: string;
|
|
15
|
+
closure?: string;
|
|
16
|
+
abv?: number | null;
|
|
17
|
+
residualSugar?: number | null;
|
|
18
|
+
organic?: boolean;
|
|
19
|
+
fairtrade?: boolean;
|
|
20
|
+
sustainable?: boolean;
|
|
21
|
+
imageUrl?: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface OfferProductCardProps {
|
|
24
|
+
variant: OfferProductVariant;
|
|
25
|
+
beverage: OfferProductBeverage;
|
|
26
|
+
variantDisplay?: "collapsed" | "expanded";
|
|
27
|
+
/** True when the variant was frozen at offer time and may not reflect the live record. */
|
|
28
|
+
fromSnapshot?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function OfferProductCard({ variant, beverage, variantDisplay, fromSnapshot, className, }: OfferProductCardProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
//# sourceMappingURL=offer-product-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-product-card.d.ts","sourceRoot":"","sources":["../../src/offer/offer-product-card.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxD;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,cAAc,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC;IAC1C,0FAA0F;IAC1F,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,QAAQ,EACR,cAA2B,EAC3B,YAAoB,EACpB,SAAS,GACV,EAAE,qBAAqB,2CAyGvB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { BadgeCheck, Leaf, Award } from "lucide-react";
|
|
3
|
+
import { cn } from "../lib/utils";
|
|
4
|
+
import { ShadcnBadge as Badge } from "../components/shadcn-badge";
|
|
5
|
+
export function OfferProductCard({ variant, beverage, variantDisplay = "expanded", fromSnapshot = false, className, }) {
|
|
6
|
+
const expanded = variantDisplay === "expanded";
|
|
7
|
+
const category = beverage.beverageType?.subtype ?? beverage.beverageType?.category ?? null;
|
|
8
|
+
return (_jsxs("section", { "aria-labelledby": "product-heading", className: cn("rounded-2xl border border-border/60 bg-card p-4", className), children: [_jsxs("div", { className: "flex items-start justify-between gap-3", children: [_jsx("h2", { id: "product-heading", className: "text-xs/5 font-semibold uppercase tracking-wide text-muted-foreground", children: "Product" }), fromSnapshot && (_jsx(Badge, { variant: "ghost", className: "text-xs", children: "Snapshot \u2014 live variant may differ" }))] }), _jsxs("div", { className: "mt-3 flex gap-4", children: [_jsx("div", { className: "size-20 shrink-0 overflow-hidden rounded-xl bg-muted", children: variant.imageUrl ? (_jsx("img", { src: variant.imageUrl, alt: "", className: "size-full object-cover", loading: "lazy" })) : (_jsx("div", { className: "flex size-full items-center justify-center text-xs text-muted-foreground", children: "No image" })) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "truncate text-base/7 font-semibold", children: beverage.name }), beverage.producer && (_jsxs("div", { className: "truncate text-xs text-muted-foreground", children: [beverage.producer, beverage.countryOfOrigin ? ` · ${beverage.countryOfOrigin}` : ""] })), expanded && (_jsxs("dl", { className: "mt-2 grid grid-cols-2 gap-x-3 gap-y-1 text-xs", children: [category && (_jsxs("div", { children: [_jsx("dt", { className: "text-muted-foreground", children: "Category" }), _jsx("dd", { className: "font-medium capitalize", children: category })] })), variant.vintage != null && (_jsxs("div", { children: [_jsx("dt", { className: "text-muted-foreground", children: "Vintage" }), _jsx("dd", { className: "font-medium", children: variant.vintage })] })), variant.abv != null && (_jsxs("div", { children: [_jsx("dt", { className: "text-muted-foreground", children: "ABV" }), _jsxs("dd", { className: "font-medium", children: [variant.abv, "%"] })] })), variant.packaging && (_jsxs("div", { children: [_jsx("dt", { className: "text-muted-foreground", children: "Packaging" }), _jsx("dd", { className: "font-medium", children: variant.packaging })] })), variant.closure && (_jsxs("div", { children: [_jsx("dt", { className: "text-muted-foreground", children: "Closure" }), _jsx("dd", { className: "font-medium", children: variant.closure })] })), variant.residualSugar != null && (_jsxs("div", { children: [_jsx("dt", { className: "text-muted-foreground", children: "Residual sugar" }), _jsxs("dd", { className: "font-medium", children: [variant.residualSugar, " g/L"] })] }))] })), expanded && (_jsxs("div", { className: "mt-3 flex flex-wrap gap-2", children: [variant.organic && (_jsxs(Badge, { variant: "ghost", className: "text-xs", children: [_jsx(Leaf, { "aria-hidden": true, className: "size-3" }), " Organic"] })), variant.fairtrade && (_jsxs(Badge, { variant: "ghost", className: "text-xs", children: [_jsx(BadgeCheck, { "aria-hidden": true, className: "size-3" }), " Fairtrade"] })), variant.sustainable && (_jsxs(Badge, { variant: "ghost", className: "text-xs", children: [_jsx(Award, { "aria-hidden": true, className: "size-3" }), " Sustainable"] }))] }))] })] })] }));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=offer-product-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-product-card.js","sourceRoot":"","sources":["../../src/offer/offer-product-card.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,WAAW,IAAI,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAgClE,MAAM,UAAU,gBAAgB,CAAC,EAC/B,OAAO,EACP,QAAQ,EACR,cAAc,GAAG,UAAU,EAC3B,YAAY,GAAG,KAAK,EACpB,SAAS,GACa;IACtB,MAAM,QAAQ,GAAG,cAAc,KAA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AS,EAAC,QAAQ,GAAG,oBAClC,CACT,IACG,CACP,IACG,IACF,IACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { OfferProductCard } from "./offer-product-card";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof OfferProductCard;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const NonVintage: Story;
|
|
15
|
+
export declare const FromSnapshot: Story;
|
|
16
|
+
//# sourceMappingURL=offer-product-card.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-product-card.stories.d.ts","sourceRoot":"","sources":["../../src/offer/offer-product-card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,QAAA,MAAM,IAAI;;;;;;;CAK+B,CAAC;AAE1C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAsBnC,eAAO,MAAM,OAAO,EAAE,KAAmE,CAAC;AAE1F,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { OfferProductCard } from "./offer-product-card";
|
|
2
|
+
const meta = {
|
|
3
|
+
title: "Offer/OfferProductCard",
|
|
4
|
+
component: OfferProductCard,
|
|
5
|
+
tags: ["autodocs"],
|
|
6
|
+
parameters: { layout: "padded" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
const variant = {
|
|
10
|
+
id: "var-1",
|
|
11
|
+
vintage: 2020,
|
|
12
|
+
packaging: "750ml glass bottle",
|
|
13
|
+
closure: "cork",
|
|
14
|
+
abv: 13.5,
|
|
15
|
+
residualSugar: 2.3,
|
|
16
|
+
organic: true,
|
|
17
|
+
fairtrade: false,
|
|
18
|
+
sustainable: true,
|
|
19
|
+
imageUrl: null,
|
|
20
|
+
};
|
|
21
|
+
const beverage = {
|
|
22
|
+
id: "bev-1",
|
|
23
|
+
name: "Chianti Riserva",
|
|
24
|
+
producer: "Chianti Wines SRL",
|
|
25
|
+
countryOfOrigin: "Italy",
|
|
26
|
+
beverageType: { category: "wine", subtype: "red" },
|
|
27
|
+
};
|
|
28
|
+
export const Default = { args: { variant, beverage, variantDisplay: "expanded" } };
|
|
29
|
+
export const NonVintage = {
|
|
30
|
+
args: { variant: { ...variant, vintage: null }, beverage, variantDisplay: "expanded" },
|
|
31
|
+
};
|
|
32
|
+
export const FromSnapshot = {
|
|
33
|
+
args: {
|
|
34
|
+
variant,
|
|
35
|
+
beverage,
|
|
36
|
+
variantDisplay: "expanded",
|
|
37
|
+
fromSnapshot: true,
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=offer-product-card.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-product-card.stories.js","sourceRoot":"","sources":["../../src/offer/offer-product-card.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,gBAAgB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;CACO,CAAC;AAE1C,eAAe,IAAI,CAAC;AAGpB,MAAM,OAAO,GAAG;IACd,EAAE,EAAE,OAAO;IACX,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,oBAAoB;IAC/B,OAAO,EAAE,MAAM;IACf,GAAG,EAAE,IAAI;IACT,aAAa,EAAE,GAAG;IAClB,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,KAAK;IAChB,WAAW,EAAE,IAAI;IACjB,QAAQ,EAAE,IAAqB;CAChC,CAAC;AACF,MAAM,QAAQ,GAAG;IACf,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,mBAAmB;IAC7B,eAAe,EAAE,OAAO;IACxB,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;CACnD,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,EAAE,CAAC;AAE1F,MAAM,CAAC,MAAM,UAAU,GAAU;IAC/B,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE;CACvF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAU;IACjC,IAAI,EAAE;QACJ,OAAO;QACP,QAAQ;QACR,cAAc,EAAE,UAAU;QAC1B,YAAY,EAAE,IAAI;KACnB;CACF,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface OpportunityCardData {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
closingDays: number;
|
|
5
|
+
priceCeilingEuro?: number;
|
|
6
|
+
volumeOptions?: number[];
|
|
7
|
+
requirements?: string[];
|
|
8
|
+
deletedAt?: string | null;
|
|
9
|
+
}
|
|
10
|
+
export interface OpportunityCardProps {
|
|
11
|
+
opportunity: OpportunityCardData;
|
|
12
|
+
variant?: "collapsed" | "expanded";
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function OpportunityCard({ opportunity, variant, className, }: OpportunityCardProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=opportunity-card.d.ts.map
|