@cellarnode/ui 0.17.4 → 0.19.2
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/journey-card.d.ts +9 -1
- package/dist/components/journey-card.d.ts.map +1 -1
- package/dist/components/journey-card.js +13 -6
- package/dist/components/journey-card.js.map +1 -1
- package/dist/components/journey-card.stories.d.ts +2 -0
- package/dist/components/journey-card.stories.d.ts.map +1 -1
- package/dist/components/journey-card.stories.js +43 -0
- package/dist/components/journey-card.stories.js.map +1 -1
- package/dist/components/sortable-card-context.d.ts +18 -0
- package/dist/components/sortable-card-context.d.ts.map +1 -0
- package/dist/components/sortable-card-context.js +18 -0
- package/dist/components/sortable-card-context.js.map +1 -0
- package/dist/components/sortable-card-shell.d.ts +40 -21
- package/dist/components/sortable-card-shell.d.ts.map +1 -1
- package/dist/components/sortable-card-shell.js +46 -39
- package/dist/components/sortable-card-shell.js.map +1 -1
- package/dist/components/sortable-card-shell.stories.d.ts +1 -1
- package/dist/components/sortable-card-shell.stories.d.ts.map +1 -1
- package/dist/components/sortable-card-shell.stories.js +28 -15
- package/dist/components/sortable-card-shell.stories.js.map +1 -1
- package/dist/components/sortable-card-shell.test.js +57 -16
- package/dist/components/sortable-card-shell.test.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,177 @@
|
|
|
1
|
+
import { FactsCard } from "./facts-card";
|
|
2
|
+
const meta = {
|
|
3
|
+
title: "Offer/FactsCard",
|
|
4
|
+
component: FactsCard,
|
|
5
|
+
tags: ["autodocs"],
|
|
6
|
+
parameters: { layout: "padded" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
const baseTerms = {
|
|
10
|
+
price: 4.1,
|
|
11
|
+
currency: "EUR",
|
|
12
|
+
volume: 20000,
|
|
13
|
+
volumeUnit: "L",
|
|
14
|
+
paymentTerms: "Net 30",
|
|
15
|
+
incoterms: "FOB",
|
|
16
|
+
validUntil: "2026-05-22T12:00:00Z",
|
|
17
|
+
};
|
|
18
|
+
export const Proposed = {
|
|
19
|
+
args: {
|
|
20
|
+
status: "proposed",
|
|
21
|
+
round: 1,
|
|
22
|
+
terms: baseTerms,
|
|
23
|
+
viewerAdvantage: "neutral",
|
|
24
|
+
presence: [
|
|
25
|
+
{ orgRole: "producer", state: "active", typing: false },
|
|
26
|
+
{ orgRole: "importer", state: "idle", typing: false },
|
|
27
|
+
],
|
|
28
|
+
onExport: () => { },
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
export const CounterPending = {
|
|
32
|
+
args: {
|
|
33
|
+
status: "counter_pending",
|
|
34
|
+
round: 2,
|
|
35
|
+
terms: { ...baseTerms, price: 4.4 },
|
|
36
|
+
previousPrice: 4.1,
|
|
37
|
+
viewerAdvantage: "worsened",
|
|
38
|
+
presence: [
|
|
39
|
+
{ orgRole: "producer", state: "active", typing: true },
|
|
40
|
+
{ orgRole: "importer", state: "active", typing: false },
|
|
41
|
+
],
|
|
42
|
+
onExport: () => { },
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
export const Accepted = {
|
|
46
|
+
args: {
|
|
47
|
+
status: "accepted",
|
|
48
|
+
round: 3,
|
|
49
|
+
terms: baseTerms,
|
|
50
|
+
viewerAdvantage: "neutral",
|
|
51
|
+
presence: [],
|
|
52
|
+
onExport: () => { },
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
export const Declined = {
|
|
56
|
+
args: { status: "declined", round: 2, terms: baseTerms, viewerAdvantage: "neutral", presence: [], onExport: () => { } },
|
|
57
|
+
};
|
|
58
|
+
export const Expired = {
|
|
59
|
+
args: { status: "expired", round: 2, terms: baseTerms, viewerAdvantage: "neutral", presence: [], onExport: () => { } },
|
|
60
|
+
};
|
|
61
|
+
export const Withdrawn = {
|
|
62
|
+
args: { status: "withdrawn", round: 2, terms: baseTerms, viewerAdvantage: "neutral", presence: [], onExport: () => { } },
|
|
63
|
+
};
|
|
64
|
+
export const WithFxConversion = {
|
|
65
|
+
args: {
|
|
66
|
+
status: "proposed",
|
|
67
|
+
round: 1,
|
|
68
|
+
terms: baseTerms,
|
|
69
|
+
viewerAdvantage: "neutral",
|
|
70
|
+
presence: [],
|
|
71
|
+
fx: {
|
|
72
|
+
rate: 1.09,
|
|
73
|
+
base: "EUR",
|
|
74
|
+
quote: "USD",
|
|
75
|
+
fetchedAt: "2026-04-20T09:00:00Z",
|
|
76
|
+
provider: "frankfurter",
|
|
77
|
+
},
|
|
78
|
+
tenderCurrency: "USD",
|
|
79
|
+
onExport: () => { },
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
export const WithStaleFx = {
|
|
83
|
+
args: {
|
|
84
|
+
status: "proposed",
|
|
85
|
+
round: 1,
|
|
86
|
+
terms: baseTerms,
|
|
87
|
+
viewerAdvantage: "neutral",
|
|
88
|
+
presence: [],
|
|
89
|
+
fx: {
|
|
90
|
+
rate: 1.09,
|
|
91
|
+
base: "EUR",
|
|
92
|
+
quote: "USD",
|
|
93
|
+
fetchedAt: "2026-04-20T07:00:00Z",
|
|
94
|
+
provider: "frankfurter",
|
|
95
|
+
stale: true,
|
|
96
|
+
},
|
|
97
|
+
tenderCurrency: "USD",
|
|
98
|
+
onExport: () => { },
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
export const CondensedMobile = {
|
|
102
|
+
args: {
|
|
103
|
+
status: "counter_pending",
|
|
104
|
+
round: 2,
|
|
105
|
+
terms: baseTerms,
|
|
106
|
+
viewerAdvantage: "improved",
|
|
107
|
+
presence: [],
|
|
108
|
+
condensed: true,
|
|
109
|
+
onExport: () => { },
|
|
110
|
+
},
|
|
111
|
+
// Spec §5.5: `<768px` (mobile) condenses the Facts Card. Exercising under
|
|
112
|
+
// a mobile viewport catches layout-shift + max-height regressions.
|
|
113
|
+
parameters: { viewport: { defaultViewport: "mobile1" } },
|
|
114
|
+
};
|
|
115
|
+
// Responsive coverage per spec §5.5 — sm/md viewport variants so chromatic /
|
|
116
|
+
// visual-regression catches breakpoint regressions independent of the
|
|
117
|
+
// desktop stories above.
|
|
118
|
+
export const ResponsiveSmall = {
|
|
119
|
+
args: {
|
|
120
|
+
status: "counter_pending",
|
|
121
|
+
round: 2,
|
|
122
|
+
terms: baseTerms,
|
|
123
|
+
viewerAdvantage: "worsened",
|
|
124
|
+
presence: [{ orgRole: "producer", state: "active", typing: true }],
|
|
125
|
+
onExport: () => { },
|
|
126
|
+
},
|
|
127
|
+
parameters: { viewport: { defaultViewport: "mobile2" } },
|
|
128
|
+
};
|
|
129
|
+
// Spec §19 — debounced aria-live announcement (1s). This story's play
|
|
130
|
+
// function asserts that a rapid sequence of price changes produces a
|
|
131
|
+
// SINGLE announcement, not one per keystroke.
|
|
132
|
+
export const DebouncedAriaLive = {
|
|
133
|
+
args: {
|
|
134
|
+
status: "counter_pending",
|
|
135
|
+
round: 2,
|
|
136
|
+
terms: baseTerms,
|
|
137
|
+
viewerAdvantage: "worsened",
|
|
138
|
+
presence: [],
|
|
139
|
+
onExport: () => { },
|
|
140
|
+
},
|
|
141
|
+
play: async ({ canvasElement, step }) => {
|
|
142
|
+
const { within } = await import("storybook/test");
|
|
143
|
+
const { expect } = await import("vitest");
|
|
144
|
+
const canvas = within(canvasElement);
|
|
145
|
+
await step("live region exists and is initially populated", async () => {
|
|
146
|
+
const region = canvas.getByRole("status");
|
|
147
|
+
await expect(region).toBeInTheDocument();
|
|
148
|
+
// Initial render seeds `announced` with the starting value — visible
|
|
149
|
+
// text already present.
|
|
150
|
+
await expect(region.textContent?.length ?? 0).toBeGreaterThan(0);
|
|
151
|
+
});
|
|
152
|
+
// A full debounce regression test is easier in a sandbox with
|
|
153
|
+
// jest.useFakeTimers — for Storybook we assert the wiring exists and
|
|
154
|
+
// defer the timing assertion to a Vitest component test during CI.
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
// Print-media coverage per §10.5 + spec §14.4. Storybook Chromatic can
|
|
158
|
+
// render this mode; locally a Playwright-component test uses
|
|
159
|
+
// page.emulateMedia({ media: "print" }) and takes a snapshot.
|
|
160
|
+
export const PrintMedia = {
|
|
161
|
+
args: {
|
|
162
|
+
status: "proposed",
|
|
163
|
+
round: 1,
|
|
164
|
+
terms: baseTerms,
|
|
165
|
+
viewerAdvantage: "neutral",
|
|
166
|
+
presence: [],
|
|
167
|
+
onExport: () => { },
|
|
168
|
+
},
|
|
169
|
+
parameters: {
|
|
170
|
+
// Storybook Chromatic `modes.print` lands in MODE_PRINT, which applies
|
|
171
|
+
// `@media print` rules from offer-document.print.css. Consumer apps
|
|
172
|
+
// that cannot install Chromatic should run a Playwright-component test
|
|
173
|
+
// using `page.emulateMedia({ media: "print" })`.
|
|
174
|
+
chromatic: { modes: { print: { media: "print" } } },
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
//# sourceMappingURL=facts-card.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"facts-card.stories.js","sourceRoot":"","sources":["../../src/offer/facts-card.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;CACA,CAAC;AAEnC,eAAe,IAAI,CAAC;AAGpB,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,GAAG;IACV,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,GAAG;IACf,YAAY,EAAE,QAAQ;IACtB,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE,sBAAsB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,SAAS;QAChB,eAAe,EAAE,SAAS;QAC1B,QAAQ,EAAE;YACR,EAAE,OAAO,EAA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C;QAClD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC1C,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;QAErC,MAAM,IAAI,CAAC,+CAA+C,EAAE,KAAK,IAAI,EAAE;YACrE,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YAC1C,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,iBAAiB,EAAE,CAAC;YACzC,qEAAqE;YACrE,wBAAwB;YACxB,MAAM,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;QACH,8DAA8D;QAC9D,qEAAqE;QACrE,mEAAmE;IACrE,CAAC;CACF,CAAC;AAEF,uEAAuE;AACvE,6DAA6D;AAC7D,8DAA8D;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAU;IAC/B,IAAI,EAAE;QACJ,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,SAAS;QAChB,eAAe,EAAE,SAAS;QAC1B,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;KACnB;IACD,UAAU,EAAE;QACV,uEAAuE;QACvE,oEAAoE;QACpE,uEAAuE;QACvE,iDAAiD;QACjD,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;KACpD;CACF,CAAC"}
|
package/dist/offer/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export { OfferStatusBadge } from "./offer-status-badge";
|
|
2
2
|
export type { OfferStatusBadgeProps } from "./offer-status-badge";
|
|
3
3
|
export { NegotiationEventCard } from "../chat/negotiation-event-card";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated since 0.18.0 — prefer `CounterSlideOver`. See
|
|
6
|
+
* `inline-counter-form.tsx` JSDoc for the migration path.
|
|
7
|
+
*/
|
|
4
8
|
export { InlineCounterForm } from "./inline-counter-form";
|
|
5
9
|
export type { InlineCounterFormProps } from "./inline-counter-form";
|
|
6
10
|
export { ConfirmActionDialog } from "./confirm-action-dialog";
|
|
@@ -8,6 +12,7 @@ export type { ConfirmActionDialogProps } from "./confirm-action-dialog";
|
|
|
8
12
|
export { AttachmentsFolder } from "./attachments-folder";
|
|
9
13
|
export type { AttachmentsFolderProps } from "./attachments-folder";
|
|
10
14
|
export type { OfferResponseThread, OfferResponseInput, TranslationFn, AttachmentMetadata, OfferActionType, } from "./types";
|
|
15
|
+
export type * from "./types";
|
|
11
16
|
export { BeverageDetails } from "./beverage-details";
|
|
12
17
|
export type { BeverageDetailsProps } from "./beverage-details";
|
|
13
18
|
export { SensoryProfile } from "./sensory-profile";
|
|
@@ -24,6 +29,40 @@ export { OfferDetailHeader } from "./offer-detail-header";
|
|
|
24
29
|
export type { OfferDetailHeaderProps } from "./offer-detail-header";
|
|
25
30
|
export { OfferDetailTabs } from "./offer-detail-tabs";
|
|
26
31
|
export type { OfferDetailTabsProps, OfferTab } from "./offer-detail-tabs";
|
|
32
|
+
export { MatchGlyph } from "./match-glyph";
|
|
33
|
+
export type { MatchGlyphProps } from "./match-glyph";
|
|
34
|
+
export { MatchHeadlineBar } from "./match-headline-bar";
|
|
35
|
+
export type { MatchHeadlineBarProps } from "./match-headline-bar";
|
|
36
|
+
export { FactsCard } from "./facts-card";
|
|
37
|
+
export type { FactsCardProps, FactsCardStatus } from "./facts-card";
|
|
38
|
+
export { PartiesCard } from "./parties-card";
|
|
39
|
+
export type { PartiesCardProps } from "./parties-card";
|
|
40
|
+
export { OpportunityCard } from "./opportunity-card";
|
|
41
|
+
export type { OpportunityCardProps, OpportunityCardData } from "./opportunity-card";
|
|
42
|
+
export { OfferProductCard } from "./offer-product-card";
|
|
43
|
+
export type { OfferProductCardProps, OfferProductVariant, OfferProductBeverage, } from "./offer-product-card";
|
|
44
|
+
export { TermsCard } from "./terms-card";
|
|
45
|
+
export type { TermsCardProps } from "./terms-card";
|
|
46
|
+
export { MatchCompatibilityCard } from "./match-compatibility-card";
|
|
47
|
+
export type { MatchCompatibilityCardProps } from "./match-compatibility-card";
|
|
48
|
+
export { MatchPreview } from "./match-preview";
|
|
49
|
+
export type { MatchPreviewProps } from "./match-preview";
|
|
50
|
+
export { BuyerNotesCard } from "./buyer-notes-card";
|
|
51
|
+
export type { BuyerNotesCardProps } from "./buyer-notes-card";
|
|
52
|
+
export { AttachmentsCard } from "./attachments-card";
|
|
53
|
+
export type { AttachmentsCardProps } from "./attachments-card";
|
|
54
|
+
export { TimelineEvent } from "./timeline-event";
|
|
55
|
+
export type { TimelineEventProps } from "./timeline-event";
|
|
56
|
+
export { NewActivityPill } from "./new-activity-pill";
|
|
57
|
+
export type { NewActivityPillProps } from "./new-activity-pill";
|
|
58
|
+
export { CounterSlideOver } from "./counter-slide-over";
|
|
59
|
+
export type { CounterSlideOverProps, CounterBanner, CounterDraft } from "./counter-slide-over";
|
|
60
|
+
export { NegotiationSection } from "./negotiation-section";
|
|
61
|
+
export type { NegotiationSectionProps } from "./negotiation-section";
|
|
62
|
+
export { OfferExportButton } from "./offer-export-button";
|
|
63
|
+
export type { OfferExportButtonProps } from "./offer-export-button";
|
|
64
|
+
export { OfferDocument } from "./offer-document";
|
|
65
|
+
export type { OfferDocumentProps, OfferDocumentAction } from "./offer-document";
|
|
27
66
|
export { ImporterPickerModal, type ImporterPickerModalProps, type ImporterPickerImporter, type ImporterPickerMode, } from "../components/importer-picker-modal";
|
|
28
67
|
export { OffersSentPanel, type OffersSentPanelProps, type OfferBranch, } from "../components/branch-overview-panel";
|
|
29
68
|
export { FinalizeDealModal, type FinalizeDealModalProps, type FinalizeDealTerm, type FinalizeDealClosedBranch, } from "../components/branch-resolution-modal";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/offer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAKlE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,YAAY,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACnE,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,eAAe,GAChB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/offer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAKlE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE;;;GAGG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,YAAY,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACnE,YAAY,EACV,mBAAm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AAY,EAAE,MAAM,sBAAsB,CAAC;AAE/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOhF,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,GACxB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,WAAW,GACjB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,GAC9B,MAAM,uCAAuC,CAAC"}
|
package/dist/offer/index.js
CHANGED
|
@@ -4,6 +4,10 @@ export { OfferStatusBadge } from "./offer-status-badge";
|
|
|
4
4
|
// importing from @cellarnode/ui/chat and @cellarnode/ui/offer get the same
|
|
5
5
|
// component — there is only one implementation.
|
|
6
6
|
export { NegotiationEventCard } from "../chat/negotiation-event-card";
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated since 0.18.0 — prefer `CounterSlideOver`. See
|
|
9
|
+
* `inline-counter-form.tsx` JSDoc for the migration path.
|
|
10
|
+
*/
|
|
7
11
|
export { InlineCounterForm } from "./inline-counter-form";
|
|
8
12
|
export { ConfirmActionDialog } from "./confirm-action-dialog";
|
|
9
13
|
export { AttachmentsFolder } from "./attachments-folder";
|
|
@@ -15,6 +19,23 @@ export { OpportunityRequirements } from "./opportunity-requirements";
|
|
|
15
19
|
export { OfferDetailShell } from "./offer-detail-shell";
|
|
16
20
|
export { OfferDetailHeader } from "./offer-detail-header";
|
|
17
21
|
export { OfferDetailTabs } from "./offer-detail-tabs";
|
|
22
|
+
export { MatchGlyph } from "./match-glyph";
|
|
23
|
+
export { MatchHeadlineBar } from "./match-headline-bar";
|
|
24
|
+
export { FactsCard } from "./facts-card";
|
|
25
|
+
export { PartiesCard } from "./parties-card";
|
|
26
|
+
export { OpportunityCard } from "./opportunity-card";
|
|
27
|
+
export { OfferProductCard } from "./offer-product-card";
|
|
28
|
+
export { TermsCard } from "./terms-card";
|
|
29
|
+
export { MatchCompatibilityCard } from "./match-compatibility-card";
|
|
30
|
+
export { MatchPreview } from "./match-preview";
|
|
31
|
+
export { BuyerNotesCard } from "./buyer-notes-card";
|
|
32
|
+
export { AttachmentsCard } from "./attachments-card";
|
|
33
|
+
export { TimelineEvent } from "./timeline-event";
|
|
34
|
+
export { NewActivityPill } from "./new-activity-pill";
|
|
35
|
+
export { CounterSlideOver } from "./counter-slide-over";
|
|
36
|
+
export { NegotiationSection } from "./negotiation-section";
|
|
37
|
+
export { OfferExportButton } from "./offer-export-button";
|
|
38
|
+
export { OfferDocument } from "./offer-document";
|
|
18
39
|
// ─── Offer-branching modals + slide-over (new in v0.10.x) ───────────────
|
|
19
40
|
// Internal files use "branch" / "branch-overview" / "branch-resolution"
|
|
20
41
|
// terminology — exports use the user-facing "offer" naming per the
|
package/dist/offer/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/offer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,kFAAkF;AAClF,6EAA6E;AAC7E,2EAA2E;AAC3E,gDAAgD;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,MAAM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E,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,2EAA2E;AAC3E,wEAAwE;AACxE,mEAAmE;AACnE,wBAAwB;AAExB,OAAO,EACL,mBAAmB,GAIpB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,eAAe,GAGhB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,iBAAiB,GAIlB,MAAM,uCAAuC,CAAC"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import type { OfferResponseInput, TranslationFn } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated since 0.18.0 — use `CounterSlideOver` from `@cellarnode/ui/offer`
|
|
4
|
+
* for the unified offer page counter composer. `InlineCounterForm` is retained
|
|
5
|
+
* for existing inline / chat-bubble use cases where a slide-over is not
|
|
6
|
+
* desired. It will remain supported through 0.x; a removal window will be
|
|
7
|
+
* announced with 1.0. Consumers building NEW counter surfaces should prefer
|
|
8
|
+
* `CounterSlideOver`.
|
|
9
|
+
*/
|
|
2
10
|
export interface InlineCounterFormProps {
|
|
3
11
|
offerId: string;
|
|
4
12
|
defaultCurrency?: string | null;
|
|
@@ -15,5 +23,13 @@ export interface InlineCounterFormProps {
|
|
|
15
23
|
/** Optional translation function; falls back to English defaults. */
|
|
16
24
|
t?: TranslationFn;
|
|
17
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated since 0.18.0 — use `CounterSlideOver` from `@cellarnode/ui/offer`
|
|
28
|
+
* for the unified offer page counter composer. `InlineCounterForm` is retained
|
|
29
|
+
* for existing inline / chat-bubble use cases where a slide-over is not
|
|
30
|
+
* desired. It will remain supported through 0.x; a removal window will be
|
|
31
|
+
* announced with 1.0. Consumers building NEW counter surfaces should prefer
|
|
32
|
+
* `CounterSlideOver`.
|
|
33
|
+
*/
|
|
18
34
|
export declare function InlineCounterForm({ offerId, defaultCurrency, parentResponseId, onCancel, onSuccess, onSubmit, isSubmitting, t, }: InlineCounterFormProps): import("react/jsx-runtime").JSX.Element;
|
|
19
35
|
//# sourceMappingURL=inline-counter-form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-counter-form.d.ts","sourceRoot":"","sources":["../../src/offer/inline-counter-form.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEjE,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;OAGG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,wCAAwC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qEAAqE;IACrE,CAAC,CAAC,EAAE,aAAa,CAAC;CACnB;AAID,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,YAAoB,EACpB,CAAY,GACb,EAAE,sBAAsB,2CA6MxB"}
|
|
1
|
+
{"version":3,"file":"inline-counter-form.d.ts","sourceRoot":"","sources":["../../src/offer/inline-counter-form.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;OAGG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,wCAAwC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qEAAqE;IACrE,CAAC,CAAC,EAAE,aAAa,CAAC;CACnB;AAID;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,YAAoB,EACpB,CAAY,GACb,EAAE,sBAAsB,2CA6MxB"}
|
|
@@ -11,6 +11,14 @@ import { ArrowLeftRight, ChevronDown, ChevronUp, Loader2 } from "lucide-react";
|
|
|
11
11
|
import { COMMON_CURRENCIES } from "../lib/currencies";
|
|
12
12
|
import { toneClass } from "../lib/semantic-tones";
|
|
13
13
|
const defaultT = (_key, fallback) => fallback;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated since 0.18.0 — use `CounterSlideOver` from `@cellarnode/ui/offer`
|
|
16
|
+
* for the unified offer page counter composer. `InlineCounterForm` is retained
|
|
17
|
+
* for existing inline / chat-bubble use cases where a slide-over is not
|
|
18
|
+
* desired. It will remain supported through 0.x; a removal window will be
|
|
19
|
+
* announced with 1.0. Consumers building NEW counter surfaces should prefer
|
|
20
|
+
* `CounterSlideOver`.
|
|
21
|
+
*/
|
|
14
22
|
export function InlineCounterForm({ offerId, defaultCurrency, parentResponseId, onCancel, onSuccess, onSubmit, isSubmitting = false, t = defaultT, }) {
|
|
15
23
|
const [price, setPrice] = useState("");
|
|
16
24
|
const [currency, setCurrency] = useState(defaultCurrency ?? "EUR");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-counter-form.js","sourceRoot":"","sources":["../../src/offer/inline-counter-form.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,WAAW,IAAI,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,WAAW,IAAI,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACL,YAAY,IAAI,MAAM,EACtB,mBAAmB,IAAI,aAAa,EACpC,gBAAgB,IAAI,UAAU,EAC9B,mBAAmB,IAAI,aAAa,EACpC,iBAAiB,IAAI,WAAW,GACjC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,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AC,OAAO,EAAC,eAAe,EAAC,SAAS,EAAC,SAAS,YAC/C,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,GACd,EACR,KAAC,QAAQ,IACP,EAAE,EAAC,eAAe,EAClB,WAAW,EAAE,CAAC,CAAC,kBAAkB,EAAE,4BAA4B,CAAC,EAChE,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GACzC,IACE,IACF,EAGN,eAAK,SAAS,EAAC,mCAAmC,aAChD,eAAM,SAAS,EAAC,+BAA+B,YAC5C,CAAC,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,GACzC,EACP,eAAK,SAAS,EAAC,YAAY,aACzB,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,OAAO,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,QAAQ,YAC9D,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,GACf,EACT,MAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,IAAI,EACT,QAAQ,EAAE,SAAS,EACnB,KAAK,EAAE;gDACL,UAAU,EAAE,mBAAmB;gDAC/B,KAAK,EAAE,sBAAsB;6CAC9B,aAEA,SAAS,IAAI,CACZ,KAAC,OAAO,IAAC,SAAS,EAAC,0BAA0B,GAAG,CACjD,EACA,CAAC,CAAC,aAAa,EAAE,cAAc,CAAC,IAC1B,IACL,IACF,IACK,CACd,GACe,IACb,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { MatchEvaluation, Perspective } from "./types";
|
|
2
|
+
export interface MatchCompatibilityCardProps {
|
|
3
|
+
evaluation: MatchEvaluation;
|
|
4
|
+
/**
|
|
5
|
+
* Viewer perspective. Color polarity on each criterion row still comes
|
|
6
|
+
* from the criterion's own `viewerAdvantage` field (blocker B3, spec
|
|
7
|
+
* §11) — the backend scopes advantage to the viewer. `perspective` here
|
|
8
|
+
* is informational: used to compose aria-labels ("Producer: price
|
|
9
|
+
* improved by 4.7%"), never to invert colour polarity. Consumers that
|
|
10
|
+
* only need headline colour can omit this prop.
|
|
11
|
+
*/
|
|
12
|
+
perspective?: Perspective;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function MatchCompatibilityCard({ evaluation, perspective, className, }: MatchCompatibilityCardProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=match-compatibility-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match-compatibility-card.d.ts","sourceRoot":"","sources":["../../src/offer/match-compatibility-card.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,eAAe,CAAC;IAC5B;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,sBAAsB,CAAC,EACrC,UAAU,EACV,WAAW,EACX,SAAS,GACV,EAAE,2BAA2B,2CA8F7B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { cn } from "../lib/utils";
|
|
4
|
+
import { MatchGlyph } from "./match-glyph";
|
|
5
|
+
import { MatchHeadlineBar } from "./match-headline-bar";
|
|
6
|
+
export function MatchCompatibilityCard({ evaluation, perspective, className, }) {
|
|
7
|
+
const [expanded, setExpanded] = useState(evaluation.headline !== "strong");
|
|
8
|
+
const total = evaluation.criteria.length;
|
|
9
|
+
const exceptions = evaluation.criteria.filter((c) => c.state === "partial" || c.state === "miss");
|
|
10
|
+
const positives = evaluation.criteria.filter((c) => c.state === "ok" || c.state === "not_specified" || c.state === "n_a");
|
|
11
|
+
return (_jsxs("section", { "aria-labelledby": "match-heading", className: cn("space-y-3 rounded-2xl border border-border/60 bg-card p-4", className), children: [_jsx("h2", { id: "match-heading", className: "text-xs/5 font-semibold uppercase tracking-wide text-muted-foreground", children: "Match with tender" }), _jsx(MatchHeadlineBar, { state: evaluation.headline, summary: evaluation.headlineSummary, count: total, expanded: expanded, onToggleExpand: () => setExpanded((v) => !v) }), expanded && (_jsxs("div", { className: "space-y-3", children: [exceptions.length > 0 && (_jsx("ul", { className: "space-y-2", children: exceptions.map((c) => {
|
|
12
|
+
// Blocker B3 — per-criterion viewerAdvantage from the
|
|
13
|
+
// backend, not a page-level constant. Empty / neutral is
|
|
14
|
+
// the safe fallback when the evaluator omits it (e.g. the
|
|
15
|
+
// FX-unavailable degraded case, §6.6).
|
|
16
|
+
const advantageClass = c.viewerAdvantage === "improved"
|
|
17
|
+
? "border-emerald-200 bg-emerald-50/60 dark:bg-emerald-950/30"
|
|
18
|
+
: c.viewerAdvantage === "worsened"
|
|
19
|
+
? "border-rose-200 bg-rose-50/60 dark:bg-rose-950/30"
|
|
20
|
+
: "border-border/60 bg-muted/30";
|
|
21
|
+
const perspectiveLabel = perspective
|
|
22
|
+
? `${perspective === "producer" ? "Producer" : "Importer"} view: `
|
|
23
|
+
: "";
|
|
24
|
+
return (_jsxs("li", { "aria-label": `${perspectiveLabel}${c.label} — ${c.state}${c.viewerAdvantage !== "neutral" ? `, ${c.viewerAdvantage}` : ""}`, className: cn("flex items-start justify-between gap-3 rounded-lg border p-3", advantageClass), children: [_jsxs("div", { className: "min-w-0", children: [_jsx("div", { className: "text-sm/6 font-medium", children: c.label }), c.reason && (_jsx("div", { className: "text-xs/5 text-muted-foreground", children: c.reason }))] }), _jsx(MatchGlyph, { state: c.state })] }, c.id));
|
|
25
|
+
}) })), positives.length > 0 && (_jsxs("div", { "aria-label": `${positives.length} additional checks passed or not applicable`, className: "flex flex-wrap gap-2", children: [_jsxs("span", { className: "rounded-full border border-border/60 bg-card px-3 py-1 text-xs font-medium text-muted-foreground", children: ["+", positives.length, " more"] }), positives.slice(0, 6).map((c) => (_jsxs("span", { className: "inline-flex items-center gap-1 rounded-full border border-border/60 bg-card px-2 py-1 text-xs", children: [_jsx(MatchGlyph, { state: c.state }), _jsx("span", { children: c.label })] }, c.id)))] })), evaluation.fx && (_jsxs("div", { className: "text-xs text-muted-foreground", children: ["Price converted via ", evaluation.fx.provider, " @ ", evaluation.fx.rate, " ", "(", evaluation.fx.base, " \u2192 ", evaluation.fx.quote, ")."] }))] }))] }));
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=match-compatibility-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match-compatibility-card.js","sourceRoot":"","sources":["../../src/offer/match-compatibility-card.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAiBxD,MAAM,UAAU,sBAAsB,CAAC,EACrC,UAAU,EACV,WAAW,EACX,SAAS,GACmB;IAC5B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CACtC,UAAU,CAAC,QAAQ,KAAK,QAAQ,CACjC,CAAC;IACF,MAAM,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC;IACzC,MAAM,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC,MAAM,CAC3C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,CACnD,CAAC;IACF,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC,M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AAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { MatchCompatibilityCard } from "./match-compatibility-card";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof MatchCompatibilityCard;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Strong: Story;
|
|
14
|
+
export declare const Partial: Story;
|
|
15
|
+
export declare const Miss: Story;
|
|
16
|
+
export declare const NotSpecified: Story;
|
|
17
|
+
export declare const NA: Story;
|
|
18
|
+
export declare const CurrencyConversion: Story;
|
|
19
|
+
//# sourceMappingURL=match-compatibility-card.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match-compatibility-card.stories.d.ts","sourceRoot":"","sources":["../../src/offer/match-compatibility-card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,QAAA,MAAM,IAAI;;;;;;;CAKqC,CAAC;AAEhD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAyGnC,eAAO,MAAM,MAAM,EAAE,KAAwC,CAAC;AAC9D,eAAO,MAAM,OAAO,EAAE,KAAyC,CAAC;AAChE,eAAO,MAAM,IAAI,EAAE,KAAsC,CAAC;AAC1D,eAAO,MAAM,YAAY,EAAE,KAA8C,CAAC;AAC1E,eAAO,MAAM,EAAE,EAAE,KAAyC,CAAC;AAC3D,eAAO,MAAM,kBAAkB,EAAE,KAAoD,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { MatchCompatibilityCard } from "./match-compatibility-card";
|
|
2
|
+
const meta = {
|
|
3
|
+
title: "Offer/MatchCompatibilityCard",
|
|
4
|
+
component: MatchCompatibilityCard,
|
|
5
|
+
tags: ["autodocs"],
|
|
6
|
+
parameters: { layout: "padded" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
const okCriterion = (id, label) => ({
|
|
10
|
+
id: id,
|
|
11
|
+
label,
|
|
12
|
+
state: "ok",
|
|
13
|
+
offered: "ok",
|
|
14
|
+
required: "ok",
|
|
15
|
+
viewerAdvantage: "neutral",
|
|
16
|
+
});
|
|
17
|
+
const strong = {
|
|
18
|
+
headline: "strong",
|
|
19
|
+
headlineSummary: "All requirements met",
|
|
20
|
+
criteria: [
|
|
21
|
+
okCriterion("price", "Price"),
|
|
22
|
+
okCriterion("volume", "Volume"),
|
|
23
|
+
okCriterion("alcoholRange", "ABV range"),
|
|
24
|
+
okCriterion("beverageCategory", "Category"),
|
|
25
|
+
],
|
|
26
|
+
freeTextFields: [],
|
|
27
|
+
hiddenReasons: [],
|
|
28
|
+
};
|
|
29
|
+
const partial = {
|
|
30
|
+
...strong,
|
|
31
|
+
headline: "partial",
|
|
32
|
+
headlineSummary: "Price is 4% over the ceiling",
|
|
33
|
+
criteria: [
|
|
34
|
+
{
|
|
35
|
+
id: "price",
|
|
36
|
+
label: "Price",
|
|
37
|
+
state: "partial",
|
|
38
|
+
offered: 4.4,
|
|
39
|
+
required: 4.2,
|
|
40
|
+
reason: "Price 4.4 is 4.7% above the ceiling of 4.2",
|
|
41
|
+
viewerAdvantage: "improved",
|
|
42
|
+
},
|
|
43
|
+
okCriterion("volume", "Volume"),
|
|
44
|
+
okCriterion("alcoholRange", "ABV range"),
|
|
45
|
+
],
|
|
46
|
+
};
|
|
47
|
+
const miss = {
|
|
48
|
+
...strong,
|
|
49
|
+
headline: "miss",
|
|
50
|
+
headlineSummary: "Beverage subtype does not match",
|
|
51
|
+
criteria: [
|
|
52
|
+
{
|
|
53
|
+
id: "beverageSubtype",
|
|
54
|
+
label: "Subtype",
|
|
55
|
+
state: "miss",
|
|
56
|
+
offered: "red",
|
|
57
|
+
required: "white",
|
|
58
|
+
reason: "Requested white; offered red",
|
|
59
|
+
viewerAdvantage: "neutral",
|
|
60
|
+
},
|
|
61
|
+
okCriterion("price", "Price"),
|
|
62
|
+
okCriterion("volume", "Volume"),
|
|
63
|
+
],
|
|
64
|
+
};
|
|
65
|
+
const notSpecified = {
|
|
66
|
+
...strong,
|
|
67
|
+
headline: "strong",
|
|
68
|
+
criteria: [
|
|
69
|
+
{
|
|
70
|
+
id: "vintage",
|
|
71
|
+
label: "Vintage",
|
|
72
|
+
state: "not_specified",
|
|
73
|
+
offered: 2020,
|
|
74
|
+
required: null,
|
|
75
|
+
viewerAdvantage: "neutral",
|
|
76
|
+
},
|
|
77
|
+
okCriterion("price", "Price"),
|
|
78
|
+
],
|
|
79
|
+
};
|
|
80
|
+
const naStory = {
|
|
81
|
+
...strong,
|
|
82
|
+
headline: "strong",
|
|
83
|
+
criteria: [
|
|
84
|
+
{
|
|
85
|
+
id: "vintage",
|
|
86
|
+
label: "Vintage",
|
|
87
|
+
state: "n_a",
|
|
88
|
+
offered: null,
|
|
89
|
+
required: [2019, 2021],
|
|
90
|
+
viewerAdvantage: "neutral",
|
|
91
|
+
},
|
|
92
|
+
okCriterion("price", "Price"),
|
|
93
|
+
],
|
|
94
|
+
};
|
|
95
|
+
const currencyConversion = {
|
|
96
|
+
...partial,
|
|
97
|
+
fx: {
|
|
98
|
+
rate: 1.09,
|
|
99
|
+
base: "EUR",
|
|
100
|
+
quote: "USD",
|
|
101
|
+
fetchedAt: "2026-04-20T09:00:00Z",
|
|
102
|
+
provider: "frankfurter",
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
export const Strong = { args: { evaluation: strong } };
|
|
106
|
+
export const Partial = { args: { evaluation: partial } };
|
|
107
|
+
export const Miss = { args: { evaluation: miss } };
|
|
108
|
+
export const NotSpecified = { args: { evaluation: notSpecified } };
|
|
109
|
+
export const NA = { args: { evaluation: naStory } };
|
|
110
|
+
export const CurrencyConversion = { args: { evaluation: currencyConversion } };
|
|
111
|
+
//# sourceMappingURL=match-compatibility-card.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match-compatibility-card.stories.js","sourceRoot":"","sources":["../../src/offer/match-compatibility-card.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,sBAAsB;IACjC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;CACa,CAAC;AAEhD,eAAe,IAAI,CAAC;AAGpB,MAAM,WAAW,GAAG,CAAC,EAAU,EAAE,KAAa,EAAuC,EAAE,CAAC,CAAC;IACvF,EAAE,EAAE,EAAW;IACf,KAAK;IACL,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;IACd,eAAe,EAAE,SAAS;CAC3B,CAAC,CAAC;AAEH,MAAM,MAAM,GAAoB;IAC9B,QAAQ,EAAE,QAAQ;IAClB,eAAe,EAAE,sBAAsB;IACvC,QAAQ,EAAE;QACR,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC;QAC7B,WAAW,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAC/B,WAAW,CAAC,cAAc,EAAE,WAAW,CAAC;QACxC,WAAW,CAAC,kBAAkB,EAAE,UAAU,CAAC;KAC5C;IACD,cAAc,EAAE,EAAE;IAClB,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF,MAAM,OAAO,GAAoB;IAC/B,GAAG,MAAM;IACT,QAAQ,EAAE,SAAS;IACnB,eAAe,EAAE,8BAA8B;IAC/C,QAAQ,EAAE;QACR;YACE,EAAE,EAAE,OAAO;YACX,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C,OAAO,EAAE,OAAO,CAAC;KAC9B;CACF,CAAC;AAEF,MAAM,kBAAkB,GAAoB;IAC1C,GAAG,OAAO;IACV,EAAE,EAAE;QACF,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,sBAAsB;QACjC,QAAQ,EAAE,aAAa;KACxB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAU,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC;AAC9D,MAAM,CAAC,MAAM,OAAO,GAAU,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,CAAC;AAChE,MAAM,CAAC,MAAM,IAAI,GAAU,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;AAC1D,MAAM,CAAC,MAAM,YAAY,GAAU,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,CAAC;AAC1E,MAAM,CAAC,MAAM,EAAE,GAAU,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,CAAC;AAC3D,MAAM,CAAC,MAAM,kBAAkB,GAAU,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,kBAAkB,EAAE,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MatchState } from "./types";
|
|
2
|
+
export interface MatchGlyphProps {
|
|
3
|
+
state: MatchState;
|
|
4
|
+
/** Optional visible text label. When omitted, an aria-label is still applied. */
|
|
5
|
+
label?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Non-color glyph for a match criterion state.
|
|
10
|
+
* Always exposes the state via aria-label so color-blind users and screen
|
|
11
|
+
* readers receive the same information.
|
|
12
|
+
*/
|
|
13
|
+
export declare function MatchGlyph({ state, label, className }: MatchGlyphProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=match-glyph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match-glyph.d.ts","sourceRoot":"","sources":["../../src/offer/match-glyph.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,UAAU,CAAC;IAClB,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiCD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,eAAe,2CAYtE"}
|