@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,176 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Currency codes accepted by the wizard. Extend on demand. */
|
|
3
|
+
export declare const currencyCodeSchema: z.ZodEnum<{
|
|
4
|
+
EUR: "EUR";
|
|
5
|
+
USD: "USD";
|
|
6
|
+
GBP: "GBP";
|
|
7
|
+
SEK: "SEK";
|
|
8
|
+
NOK: "NOK";
|
|
9
|
+
DKK: "DKK";
|
|
10
|
+
CHF: "CHF";
|
|
11
|
+
JPY: "JPY";
|
|
12
|
+
}>;
|
|
13
|
+
export type CurrencyCode = z.infer<typeof currencyCodeSchema>;
|
|
14
|
+
/** Packaging / closure codes — kept as loose strings for MVP; dashboards resolve labels via @cellarnode/beverage-utils. */
|
|
15
|
+
export declare const packagingCodeSchema: z.ZodString;
|
|
16
|
+
export declare const closureCodeSchema: z.ZodString;
|
|
17
|
+
export declare const categoryCodeSchema: z.ZodString;
|
|
18
|
+
export declare const subtypeCodeSchema: z.ZodString;
|
|
19
|
+
/** --- Opportunity-item schema (inside a tender) --- */
|
|
20
|
+
export declare const opportunityDraftSchema: z.ZodObject<{
|
|
21
|
+
clientId: z.ZodString;
|
|
22
|
+
id: z.ZodOptional<z.ZodString>;
|
|
23
|
+
name: z.ZodOptional<z.ZodString>;
|
|
24
|
+
category: z.ZodOptional<z.ZodString>;
|
|
25
|
+
subtype: z.ZodOptional<z.ZodString>;
|
|
26
|
+
countryOfOrigin: z.ZodOptional<z.ZodString>;
|
|
27
|
+
packaging: z.ZodOptional<z.ZodString>;
|
|
28
|
+
closure: z.ZodOptional<z.ZodString>;
|
|
29
|
+
volume: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
priceMin: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
priceMax: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
EUR: "EUR";
|
|
34
|
+
USD: "USD";
|
|
35
|
+
GBP: "GBP";
|
|
36
|
+
SEK: "SEK";
|
|
37
|
+
NOK: "NOK";
|
|
38
|
+
DKK: "DKK";
|
|
39
|
+
CHF: "CHF";
|
|
40
|
+
JPY: "JPY";
|
|
41
|
+
}>>;
|
|
42
|
+
targetMargin: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
distributionRequirements: z.ZodOptional<z.ZodString>;
|
|
44
|
+
submissionDeadline: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
45
|
+
sampleDeadline: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
46
|
+
launchDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export type OpportunityDraft = z.infer<typeof opportunityDraftSchema>;
|
|
49
|
+
/** --- Tender draft schema (for autosave PATCH) --- */
|
|
50
|
+
export declare const tenderDraftSchema: z.ZodObject<{
|
|
51
|
+
id: z.ZodOptional<z.ZodString>;
|
|
52
|
+
name: z.ZodOptional<z.ZodString>;
|
|
53
|
+
targetCountry: z.ZodOptional<z.ZodString>;
|
|
54
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
55
|
+
opportunities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
|
+
clientId: z.ZodString;
|
|
57
|
+
id: z.ZodOptional<z.ZodString>;
|
|
58
|
+
name: z.ZodOptional<z.ZodString>;
|
|
59
|
+
category: z.ZodOptional<z.ZodString>;
|
|
60
|
+
subtype: z.ZodOptional<z.ZodString>;
|
|
61
|
+
countryOfOrigin: z.ZodOptional<z.ZodString>;
|
|
62
|
+
packaging: z.ZodOptional<z.ZodString>;
|
|
63
|
+
closure: z.ZodOptional<z.ZodString>;
|
|
64
|
+
volume: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
priceMin: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
priceMax: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
68
|
+
EUR: "EUR";
|
|
69
|
+
USD: "USD";
|
|
70
|
+
GBP: "GBP";
|
|
71
|
+
SEK: "SEK";
|
|
72
|
+
NOK: "NOK";
|
|
73
|
+
DKK: "DKK";
|
|
74
|
+
CHF: "CHF";
|
|
75
|
+
JPY: "JPY";
|
|
76
|
+
}>>;
|
|
77
|
+
targetMargin: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
distributionRequirements: z.ZodOptional<z.ZodString>;
|
|
79
|
+
submissionDeadline: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
80
|
+
sampleDeadline: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
81
|
+
launchDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
82
|
+
}, z.core.$strip>>>;
|
|
83
|
+
draftCurrentStep: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type TenderDraft = z.infer<typeof tenderDraftSchema>;
|
|
87
|
+
/** --- Publish-strict schemas ---
|
|
88
|
+
* Zod v4: `code` defaults to "custom" on ctx.addIssue — omitted here.
|
|
89
|
+
* `.required({keys})` must come BEFORE `.superRefine()` — ZodEffects has no .required(). */
|
|
90
|
+
export declare const opportunityPublishSchema: z.ZodObject<{
|
|
91
|
+
clientId: z.ZodString;
|
|
92
|
+
id: z.ZodOptional<z.ZodString>;
|
|
93
|
+
name: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
94
|
+
category: z.ZodOptional<z.ZodString>;
|
|
95
|
+
subtype: z.ZodOptional<z.ZodString>;
|
|
96
|
+
countryOfOrigin: z.ZodOptional<z.ZodString>;
|
|
97
|
+
packaging: z.ZodOptional<z.ZodString>;
|
|
98
|
+
closure: z.ZodOptional<z.ZodString>;
|
|
99
|
+
volume: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
priceMin: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
priceMax: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
103
|
+
EUR: "EUR";
|
|
104
|
+
USD: "USD";
|
|
105
|
+
GBP: "GBP";
|
|
106
|
+
SEK: "SEK";
|
|
107
|
+
NOK: "NOK";
|
|
108
|
+
DKK: "DKK";
|
|
109
|
+
CHF: "CHF";
|
|
110
|
+
JPY: "JPY";
|
|
111
|
+
}>>;
|
|
112
|
+
targetMargin: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
distributionRequirements: z.ZodOptional<z.ZodString>;
|
|
114
|
+
submissionDeadline: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
115
|
+
sampleDeadline: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
116
|
+
launchDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export declare const tenderPublishSchema: z.ZodObject<{
|
|
119
|
+
id: z.ZodOptional<z.ZodString>;
|
|
120
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
121
|
+
draftCurrentStep: z.ZodOptional<z.ZodNumber>;
|
|
122
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
name: z.ZodString;
|
|
124
|
+
targetCountry: z.ZodString;
|
|
125
|
+
opportunities: z.ZodArray<z.ZodObject<{
|
|
126
|
+
clientId: z.ZodString;
|
|
127
|
+
id: z.ZodOptional<z.ZodString>;
|
|
128
|
+
name: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
129
|
+
category: z.ZodOptional<z.ZodString>;
|
|
130
|
+
subtype: z.ZodOptional<z.ZodString>;
|
|
131
|
+
countryOfOrigin: z.ZodOptional<z.ZodString>;
|
|
132
|
+
packaging: z.ZodOptional<z.ZodString>;
|
|
133
|
+
closure: z.ZodOptional<z.ZodString>;
|
|
134
|
+
volume: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
priceMin: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
priceMax: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
138
|
+
EUR: "EUR";
|
|
139
|
+
USD: "USD";
|
|
140
|
+
GBP: "GBP";
|
|
141
|
+
SEK: "SEK";
|
|
142
|
+
NOK: "NOK";
|
|
143
|
+
DKK: "DKK";
|
|
144
|
+
CHF: "CHF";
|
|
145
|
+
JPY: "JPY";
|
|
146
|
+
}>>;
|
|
147
|
+
targetMargin: z.ZodOptional<z.ZodNumber>;
|
|
148
|
+
distributionRequirements: z.ZodOptional<z.ZodString>;
|
|
149
|
+
submissionDeadline: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
150
|
+
sampleDeadline: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
151
|
+
launchDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
152
|
+
}, z.core.$strip>>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
/** --- Draft-state machine types --- */
|
|
155
|
+
export type DraftState = {
|
|
156
|
+
phase: "idle";
|
|
157
|
+
} | {
|
|
158
|
+
phase: "creating";
|
|
159
|
+
createPromise: Promise<{
|
|
160
|
+
id: string;
|
|
161
|
+
version: number;
|
|
162
|
+
}>;
|
|
163
|
+
} | {
|
|
164
|
+
phase: "created";
|
|
165
|
+
draftId: string;
|
|
166
|
+
version: number;
|
|
167
|
+
savingPhase: "idle" | "saving" | "error";
|
|
168
|
+
retryCount: number;
|
|
169
|
+
conflictDetected?: boolean;
|
|
170
|
+
};
|
|
171
|
+
/** --- Wizard step identifier --- */
|
|
172
|
+
export declare const wizardStepIds: readonly ["tender", "opportunities", "pricing", "review"];
|
|
173
|
+
export type WizardStepId = (typeof wizardStepIds)[number];
|
|
174
|
+
/** --- Error codes the backend can return on publish --- */
|
|
175
|
+
export type PublishErrorCode = "VALIDATION" | "ALREADY_PUBLISHED" | "CONFLICT" | "SERVER" | "NETWORK";
|
|
176
|
+
//# sourceMappingURL=wizard.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizard.types.d.ts","sourceRoot":"","sources":["../../../src/opportunities/wizard/wizard.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+DAA+D;AAC/D,eAAO,MAAM,kBAAkB;;;;;;;;;EAAmE,CAAC;AACnG,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,2HAA2H;AAC3H,eAAO,MAAM,mBAAmB,aAA4B,CAAC;AAC7D,eAAO,MAAM,iBAAiB,aAA4B,CAAC;AAC3D,eAAO,MAAM,kBAAkB,aAA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AAmB,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Currency codes accepted by the wizard. Extend on demand. */
|
|
3
|
+
export const currencyCodeSchema = z.enum(["EUR", "USD", "SEK", "NOK", "DKK", "GBP", "CHF", "JPY"]);
|
|
4
|
+
/** Packaging / closure codes — kept as loose strings for MVP; dashboards resolve labels via @cellarnode/beverage-utils. */
|
|
5
|
+
export const packagingCodeSchema = z.string().min(1).max(64);
|
|
6
|
+
export const closureCodeSchema = z.string().min(1).max(64);
|
|
7
|
+
export const categoryCodeSchema = z.string().min(1).max(128);
|
|
8
|
+
export const subtypeCodeSchema = z.string().min(1).max(128);
|
|
9
|
+
/** --- Opportunity-item schema (inside a tender) --- */
|
|
10
|
+
export const opportunityDraftSchema = z.object({
|
|
11
|
+
clientId: z.string(), // client-side uuid for keyed lists; not persisted
|
|
12
|
+
id: z.string().optional(), // server id once created
|
|
13
|
+
name: z.string().max(200).optional(),
|
|
14
|
+
category: categoryCodeSchema.optional(),
|
|
15
|
+
subtype: subtypeCodeSchema.optional(),
|
|
16
|
+
countryOfOrigin: z.string().length(2).optional(), // ISO-3166 alpha-2
|
|
17
|
+
packaging: packagingCodeSchema.optional(),
|
|
18
|
+
closure: closureCodeSchema.optional(),
|
|
19
|
+
volume: z.number().int().nonnegative().optional(),
|
|
20
|
+
priceMin: z.number().nonnegative().optional(),
|
|
21
|
+
priceMax: z.number().nonnegative().optional(),
|
|
22
|
+
currency: currencyCodeSchema.optional(),
|
|
23
|
+
targetMargin: z.number().min(0).max(1).optional(),
|
|
24
|
+
distributionRequirements: z.string().max(2000).optional(),
|
|
25
|
+
submissionDeadline: z.coerce.date().optional(),
|
|
26
|
+
sampleDeadline: z.coerce.date().optional(),
|
|
27
|
+
launchDate: z.coerce.date().optional(),
|
|
28
|
+
});
|
|
29
|
+
/** --- Tender draft schema (for autosave PATCH) --- */
|
|
30
|
+
export const tenderDraftSchema = z.object({
|
|
31
|
+
id: z.string().optional(),
|
|
32
|
+
name: z.string().max(200).optional(),
|
|
33
|
+
targetCountry: z.string().length(2).optional(),
|
|
34
|
+
instructions: z.string().max(2000).optional(),
|
|
35
|
+
opportunities: z.array(opportunityDraftSchema).optional(),
|
|
36
|
+
draftCurrentStep: z.number().int().min(0).max(3).optional(),
|
|
37
|
+
version: z.number().int().min(1).optional(), // optimistic locking
|
|
38
|
+
});
|
|
39
|
+
/** --- Publish-strict schemas ---
|
|
40
|
+
* Zod v4: `code` defaults to "custom" on ctx.addIssue — omitted here.
|
|
41
|
+
* `.required({keys})` must come BEFORE `.superRefine()` — ZodEffects has no .required(). */
|
|
42
|
+
export const opportunityPublishSchema = opportunityDraftSchema
|
|
43
|
+
.required({ name: true, submissionDeadline: true })
|
|
44
|
+
.superRefine((v, ctx) => {
|
|
45
|
+
if (v.priceMin != null && v.priceMax != null && v.priceMin > v.priceMax) {
|
|
46
|
+
ctx.addIssue({ code: "custom", path: ["priceMax"], message: "Maximum price must be greater than or equal to the minimum." });
|
|
47
|
+
}
|
|
48
|
+
if (v.sampleDeadline && v.submissionDeadline && v.sampleDeadline > v.submissionDeadline) {
|
|
49
|
+
ctx.addIssue({ code: "custom", path: ["sampleDeadline"], message: "Sample deadline must be on or before the submission deadline." });
|
|
50
|
+
}
|
|
51
|
+
if (v.launchDate && v.submissionDeadline && v.launchDate < v.submissionDeadline) {
|
|
52
|
+
ctx.addIssue({ code: "custom", path: ["launchDate"], message: "Launch date must be on or after the submission deadline." });
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export const tenderPublishSchema = tenderDraftSchema.extend({
|
|
56
|
+
name: z.string().min(2).max(200),
|
|
57
|
+
targetCountry: z.string().length(2),
|
|
58
|
+
opportunities: z.array(opportunityPublishSchema).min(1, "Add at least one opportunity before publishing."),
|
|
59
|
+
});
|
|
60
|
+
/** --- Wizard step identifier --- */
|
|
61
|
+
export const wizardStepIds = ["tender", "opportunities", "pricing", "review"];
|
|
62
|
+
//# sourceMappingURL=wizard.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizard.types.js","sourceRoot":"","sources":["../../../src/opportunities/wizard/wizard.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+DAA+D;AAC/D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AAGnG,2HAA2H;AAC3H,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE5D,wDAAwD;AACxD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,EAAkC,kDAAkD;IACxG,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAA6B,yBAAyB;IAC/E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,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,CAAC;QACxF,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,+DAA+D,EAAE,CAAC,CAAC;IACvI,CAAC;IACD,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,kBAAkB,IAAI,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,kBAAkB,EAAE,CAAC;QAChF,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,0DAA0D,EAAE,CAAC,CAAC;IAC9H,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC,MAAM,CAAC;IAC1D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACnC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,iDAAiD,CAAC;CAC3G,CAAC,CAAC;AAQH,qCAAqC;AACrC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cellarnode/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Shared UI components, theme tokens, and chat/offer primitives for CellarNode dashboards.",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"default": "./dist/index.js"
|
|
24
24
|
},
|
|
25
25
|
"./theme/tokens.css": "./src/theme/tokens.css",
|
|
26
|
+
"./offer/offer-document.print.css": "./src/offer/offer-document.print.css",
|
|
26
27
|
"./chat": {
|
|
27
28
|
"types": "./dist/chat/index.d.ts",
|
|
28
29
|
"default": "./dist/chat/index.js"
|
|
@@ -66,6 +67,10 @@
|
|
|
66
67
|
"types": "./dist/opportunities/index.d.ts",
|
|
67
68
|
"default": "./dist/opportunities/index.js"
|
|
68
69
|
},
|
|
70
|
+
"./hooks": {
|
|
71
|
+
"types": "./dist/hooks/index.d.ts",
|
|
72
|
+
"default": "./dist/hooks/index.js"
|
|
73
|
+
},
|
|
69
74
|
"./notifications": {
|
|
70
75
|
"types": "./dist/notifications/index.d.ts",
|
|
71
76
|
"default": "./dist/notifications/index.js"
|
|
@@ -77,7 +82,8 @@
|
|
|
77
82
|
},
|
|
78
83
|
"files": [
|
|
79
84
|
"dist",
|
|
80
|
-
"src/theme/tokens.css"
|
|
85
|
+
"src/theme/tokens.css",
|
|
86
|
+
"src/offer/offer-document.print.css"
|
|
81
87
|
],
|
|
82
88
|
"scripts": {
|
|
83
89
|
"build": "tsc",
|
|
@@ -152,6 +158,7 @@
|
|
|
152
158
|
"dependencies": {
|
|
153
159
|
"@headlessui/react": "^2.2.9",
|
|
154
160
|
"@heroicons/react": "^2.2.0",
|
|
161
|
+
"@hookform/resolvers": "^5.2.2",
|
|
155
162
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
156
163
|
"@radix-ui/react-avatar": "^1.1.11",
|
|
157
164
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
@@ -180,7 +187,8 @@
|
|
|
180
187
|
"tailwind-merge": "^2.6.1",
|
|
181
188
|
"topojson-client": "^3.1.0",
|
|
182
189
|
"vaul": "^1.1.2",
|
|
183
|
-
"world-atlas": "^2.0.2"
|
|
190
|
+
"world-atlas": "^2.0.2",
|
|
191
|
+
"zod": "^4.3.6"
|
|
184
192
|
},
|
|
185
193
|
"devDependencies": {
|
|
186
194
|
"@dnd-kit/dom": "^0.3.2",
|
|
@@ -225,6 +233,7 @@
|
|
|
225
233
|
"three": "^0.183.0",
|
|
226
234
|
"typescript": "^5.9.3",
|
|
227
235
|
"typescript-eslint": "^8.57.2",
|
|
228
|
-
"vitest": "^4.1.2"
|
|
236
|
+
"vitest": "^4.1.2",
|
|
237
|
+
"vitest-axe": "^0.1.0"
|
|
229
238
|
}
|
|
230
239
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* ui/src/offer/offer-document.print.css */
|
|
2
|
+
|
|
3
|
+
@media print {
|
|
4
|
+
/* Hide interactive / non-document chrome */
|
|
5
|
+
[data-offer-rail],
|
|
6
|
+
[data-offer-composer],
|
|
7
|
+
[data-offer-activity-pill],
|
|
8
|
+
[data-offer-action-dock],
|
|
9
|
+
[data-offer-nav-chrome],
|
|
10
|
+
[aria-label="Export offer as PDF"],
|
|
11
|
+
button[aria-label^="Close "],
|
|
12
|
+
nav,
|
|
13
|
+
header[role="banner"] {
|
|
14
|
+
display: none !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Force all collapsible sections open */
|
|
18
|
+
[data-offer-section] {
|
|
19
|
+
display: block !important;
|
|
20
|
+
}
|
|
21
|
+
[data-offer-section-body] {
|
|
22
|
+
display: block !important;
|
|
23
|
+
max-height: none !important;
|
|
24
|
+
overflow: visible !important;
|
|
25
|
+
}
|
|
26
|
+
[data-offer-section] [aria-expanded="false"] + * {
|
|
27
|
+
display: block !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Unfix sticky Facts Card so it flows with content */
|
|
31
|
+
[data-offer-facts-card] {
|
|
32
|
+
position: static !important;
|
|
33
|
+
box-shadow: none !important;
|
|
34
|
+
break-inside: avoid;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Serif typography — matches contract-style documents */
|
|
38
|
+
body,
|
|
39
|
+
[data-offer-document] {
|
|
40
|
+
font-family: Georgia, "Times New Roman", Times, serif !important;
|
|
41
|
+
color: #000 !important;
|
|
42
|
+
background: #fff !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Section break hints — avoid splitting cards across pages */
|
|
46
|
+
[data-offer-section],
|
|
47
|
+
[data-offer-timeline-event] {
|
|
48
|
+
break-inside: avoid;
|
|
49
|
+
page-break-inside: avoid;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Link URLs surfaced after the anchor text */
|
|
53
|
+
a[href]::after {
|
|
54
|
+
content: " (" attr(href) ")";
|
|
55
|
+
font-size: 0.75rem;
|
|
56
|
+
color: #444;
|
|
57
|
+
}
|
|
58
|
+
a[href^="#"]::after,
|
|
59
|
+
a[href^="javascript:"]::after {
|
|
60
|
+
content: "";
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Print footer — injected via running element */
|
|
64
|
+
@page {
|
|
65
|
+
margin: 18mm 15mm 22mm 15mm;
|
|
66
|
+
@bottom-center {
|
|
67
|
+
content: "CellarNode — confidential — printed from offer " attr(data-offer-id) " · " attr(data-printed-at);
|
|
68
|
+
font-size: 9pt;
|
|
69
|
+
color: #555;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|