@open-mercato/core 0.7.1-develop.7203.1.9396450b78 → 0.8.1-develop.7204.1.83330e271e
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/.turbo/turbo-build.log +1 -1
- package/build.mjs +11 -0
- package/dist/modules/catalog/backend/catalog/products/[id]/page.js +23 -0
- package/dist/modules/catalog/backend/catalog/products/[id]/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/companies/[id]/page.js +2 -1
- package/dist/modules/customers/backend/customers/companies/[id]/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/companies-v2/[id]/page.js +2 -1
- package/dist/modules/customers/backend/customers/companies-v2/[id]/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/people/[id]/page.js +2 -2
- package/dist/modules/customers/backend/customers/people/[id]/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/people-v2/[id]/page.js +2 -1
- package/dist/modules/customers/backend/customers/people-v2/[id]/page.js.map +2 -2
- package/dist/modules/customers/lib/detailHelpers.js +4 -0
- package/dist/modules/customers/lib/detailHelpers.js.map +2 -2
- package/dist/modules/customers/lib/todoCompatibility.js +5 -0
- package/dist/modules/customers/lib/todoCompatibility.js.map +2 -2
- package/dist/modules/design_system/backend/design-system/page.meta.js +3 -2
- package/dist/modules/design_system/backend/design-system/page.meta.js.map +2 -2
- package/dist/modules/design_system/gallery/assets/ai-prompt-image.png +0 -0
- package/dist/modules/design_system/gallery/assets/avatar-illustration.png +0 -0
- package/dist/modules/design_system/gallery/assets/avatar-memoji.png +0 -0
- package/dist/modules/design_system/gallery/assets/avatar-photo.png +0 -0
- package/dist/modules/design_system/gallery/assets/blog-photo-0.png +0 -0
- package/dist/modules/design_system/gallery/assets/contact-support-portrait.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-ada.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-avax.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-bnb.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-brand.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-btc.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-clock.svg +3 -0
- package/dist/modules/design_system/gallery/assets/crypto-crown.svg +3 -0
- package/dist/modules/design_system/gallery/assets/crypto-dot.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-eth.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-hbar.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-history.svg +3 -0
- package/dist/modules/design_system/gallery/assets/crypto-link.svg +3 -0
- package/dist/modules/design_system/gallery/assets/crypto-menu.svg +3 -0
- package/dist/modules/design_system/gallery/assets/crypto-metamask.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-more.svg +3 -0
- package/dist/modules/design_system/gallery/assets/crypto-phantom.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-rewards.svg +3 -0
- package/dist/modules/design_system/gallery/assets/crypto-sad-face.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-sol.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-star.svg +3 -0
- package/dist/modules/design_system/gallery/assets/crypto-status-cancelled.svg +3 -0
- package/dist/modules/design_system/gallery/assets/crypto-status-pending.svg +3 -0
- package/dist/modules/design_system/gallery/assets/crypto-status-success.svg +3 -0
- package/dist/modules/design_system/gallery/assets/crypto-status-warning.svg +3 -0
- package/dist/modules/design_system/gallery/assets/crypto-trx.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-usdc.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-usdt.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-walletconnect.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-wei.png +0 -0
- package/dist/modules/design_system/gallery/assets/crypto-xrp.png +0 -0
- package/dist/modules/design_system/gallery/assets/cryptocurrency-artwork.js +67 -0
- package/dist/modules/design_system/gallery/assets/cryptocurrency-artwork.js.map +7 -0
- package/dist/modules/design_system/gallery/assets/github-logo.png +0 -0
- package/dist/modules/design_system/gallery/assets/images.d.js +1 -0
- package/dist/modules/design_system/gallery/assets/images.d.js.map +7 -0
- package/dist/modules/design_system/gallery/assets/input-european-union.svg +18 -0
- package/dist/modules/design_system/gallery/assets/landing-teams-01.png +0 -0
- package/dist/modules/design_system/gallery/assets/marketing-artwork.js +83 -0
- package/dist/modules/design_system/gallery/assets/marketing-artwork.js.map +7 -0
- package/dist/modules/design_system/gallery/assets/menu-apex.svg +18 -0
- package/dist/modules/design_system/gallery/assets/menu-mastercard.svg +7 -0
- package/dist/modules/design_system/gallery/assets/menu-spotify.svg +4 -0
- package/dist/modules/design_system/gallery/assets/menu-united-states.svg +16 -0
- package/dist/modules/design_system/gallery/assets/select-google.png +0 -0
- package/dist/modules/design_system/gallery/assets/select-poland.png +0 -0
- package/dist/modules/design_system/gallery/assets/selection-artwork.js +5 -0
- package/dist/modules/design_system/gallery/assets/selection-artwork.js.map +7 -0
- package/dist/modules/design_system/gallery/assets/social-apple-filled.svg +4 -0
- package/dist/modules/design_system/gallery/assets/social-apple-stroke.svg +4 -0
- package/dist/modules/design_system/gallery/assets/social-dropbox-filled.svg +5 -0
- package/dist/modules/design_system/gallery/assets/social-dropbox-stroke.svg +5 -0
- package/dist/modules/design_system/gallery/assets/social-facebook-filled.svg +4 -0
- package/dist/modules/design_system/gallery/assets/social-facebook-stroke.svg +10 -0
- package/dist/modules/design_system/gallery/assets/social-github-filled.svg +4 -0
- package/dist/modules/design_system/gallery/assets/social-github-stroke.svg +4 -0
- package/dist/modules/design_system/gallery/assets/social-google-filled.svg +7 -0
- package/dist/modules/design_system/gallery/assets/social-google-stroke.svg +7 -0
- package/dist/modules/design_system/gallery/assets/social-linkedin-filled.svg +4 -0
- package/dist/modules/design_system/gallery/assets/social-linkedin-stroke.svg +4 -0
- package/dist/modules/design_system/gallery/assets/social-x-filled.svg +4 -0
- package/dist/modules/design_system/gallery/assets/social-x-stroke.svg +4 -0
- package/dist/modules/design_system/gallery/assets/style-studio-product.png +0 -0
- package/dist/modules/design_system/gallery/assets/upload-images.js +8 -0
- package/dist/modules/design_system/gallery/assets/upload-images.js.map +7 -0
- package/dist/modules/design_system/gallery/components/BrandStylePreview.js +74 -0
- package/dist/modules/design_system/gallery/components/BrandStylePreview.js.map +7 -0
- package/dist/modules/design_system/gallery/components/CodeSnippet.js +31 -31
- package/dist/modules/design_system/gallery/components/CodeSnippet.js.map +2 -2
- package/dist/modules/design_system/gallery/components/ColorPlayground.js +408 -0
- package/dist/modules/design_system/gallery/components/ColorPlayground.js.map +7 -0
- package/dist/modules/design_system/gallery/components/ColorStudioCompositions.js +166 -0
- package/dist/modules/design_system/gallery/components/ColorStudioCompositions.js.map +7 -0
- package/dist/modules/design_system/gallery/components/ColorStudioSpecimen.js +182 -0
- package/dist/modules/design_system/gallery/components/ColorStudioSpecimen.js.map +7 -0
- package/dist/modules/design_system/gallery/components/CompactEntrySpecimen.js +80 -0
- package/dist/modules/design_system/gallery/components/CompactEntrySpecimen.js.map +7 -0
- package/dist/modules/design_system/gallery/components/ComponentIndex.js +42 -0
- package/dist/modules/design_system/gallery/components/ComponentIndex.js.map +7 -0
- package/dist/modules/design_system/gallery/components/DesignSystemHome.js +69 -0
- package/dist/modules/design_system/gallery/components/DesignSystemHome.js.map +7 -0
- package/dist/modules/design_system/gallery/components/EntryCard.js +47 -41
- package/dist/modules/design_system/gallery/components/EntryCard.js.map +2 -2
- package/dist/modules/design_system/gallery/components/EntryHeader.js +68 -0
- package/dist/modules/design_system/gallery/components/EntryHeader.js.map +7 -0
- package/dist/modules/design_system/gallery/components/FamilyEntryPreview.js +19 -0
- package/dist/modules/design_system/gallery/components/FamilyEntryPreview.js.map +7 -0
- package/dist/modules/design_system/gallery/components/FoundationGuide.js +46 -0
- package/dist/modules/design_system/gallery/components/FoundationGuide.js.map +7 -0
- package/dist/modules/design_system/gallery/components/GalleryLink.js +21 -0
- package/dist/modules/design_system/gallery/components/GalleryLink.js.map +7 -0
- package/dist/modules/design_system/gallery/components/GalleryNavigation.js +82 -0
- package/dist/modules/design_system/gallery/components/GalleryNavigation.js.map +7 -0
- package/dist/modules/design_system/gallery/components/GalleryShell.js +147 -67
- package/dist/modules/design_system/gallery/components/GalleryShell.js.map +3 -3
- package/dist/modules/design_system/gallery/components/IconsBrowser.js +33 -0
- package/dist/modules/design_system/gallery/components/IconsBrowser.js.map +7 -0
- package/dist/modules/design_system/gallery/components/SourceLibrary.js +93 -0
- package/dist/modules/design_system/gallery/components/SourceLibrary.js.map +7 -0
- package/dist/modules/design_system/gallery/components/StyleAgents.js +139 -0
- package/dist/modules/design_system/gallery/components/StyleAgents.js.map +7 -0
- package/dist/modules/design_system/gallery/components/ThemeTokenReference.js +101 -0
- package/dist/modules/design_system/gallery/components/ThemeTokenReference.js.map +7 -0
- package/dist/modules/design_system/gallery/components/VariantPreview.js +2 -2
- package/dist/modules/design_system/gallery/components/VariantPreview.js.map +2 -2
- package/dist/modules/design_system/gallery/components/colorPreview.js +58 -0
- package/dist/modules/design_system/gallery/components/colorPreview.js.map +7 -0
- package/dist/modules/design_system/gallery/components/colorStudio.js +218 -0
- package/dist/modules/design_system/gallery/components/colorStudio.js.map +7 -0
- package/dist/modules/design_system/gallery/components/styleAgentBranding.js +46 -0
- package/dist/modules/design_system/gallery/components/styleAgentBranding.js.map +7 -0
- package/dist/modules/design_system/gallery/components/themeTokens.js +32 -0
- package/dist/modules/design_system/gallery/components/themeTokens.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/ai-product-code.generated.js +194 -0
- package/dist/modules/design_system/gallery/demos/ai-product-code.generated.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/ai-product.js +423 -0
- package/dist/modules/design_system/gallery/demos/ai-product.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/buttons.js +289 -0
- package/dist/modules/design_system/gallery/demos/buttons.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/cryptocurrency.js +1708 -0
- package/dist/modules/design_system/gallery/demos/cryptocurrency.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/feeds-code.generated.js +92 -0
- package/dist/modules/design_system/gallery/demos/feeds-code.generated.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/feeds.js +148 -0
- package/dist/modules/design_system/gallery/demos/feeds.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/file-upload.js +72 -0
- package/dist/modules/design_system/gallery/demos/file-upload.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/foundation-reference-data.js +4875 -0
- package/dist/modules/design_system/gallery/demos/foundation-reference-data.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/foundation-references.js +188 -0
- package/dist/modules/design_system/gallery/demos/foundation-references.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/key-components-code.generated.js +6 -0
- package/dist/modules/design_system/gallery/demos/key-components-code.generated.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/key-components.js +127 -0
- package/dist/modules/design_system/gallery/demos/key-components.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/marketing-controls-code.generated.js +98 -0
- package/dist/modules/design_system/gallery/demos/marketing-controls-code.generated.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/marketing-controls.js +134 -0
- package/dist/modules/design_system/gallery/demos/marketing-controls.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/marketing-widgets-code.generated.js +195 -0
- package/dist/modules/design_system/gallery/demos/marketing-widgets-code.generated.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/marketing-widgets.js +586 -0
- package/dist/modules/design_system/gallery/demos/marketing-widgets.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/menu-fixtures.js +40 -0
- package/dist/modules/design_system/gallery/demos/menu-fixtures.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/menu-sources.js +295 -0
- package/dist/modules/design_system/gallery/demos/menu-sources.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/menus.js +150 -0
- package/dist/modules/design_system/gallery/demos/menus.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/rating-reviews.js +53 -0
- package/dist/modules/design_system/gallery/demos/rating-reviews.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/registered-icons.js +104 -0
- package/dist/modules/design_system/gallery/demos/registered-icons.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/selection-cards.js +99 -0
- package/dist/modules/design_system/gallery/demos/selection-cards.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/shell-code.generated.js +189 -0
- package/dist/modules/design_system/gallery/demos/shell-code.generated.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/shell.js +330 -0
- package/dist/modules/design_system/gallery/demos/shell.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/source-artwork.js +120 -0
- package/dist/modules/design_system/gallery/demos/source-artwork.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/source-filters-code.generated.js +125 -0
- package/dist/modules/design_system/gallery/demos/source-filters-code.generated.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/source-filters.js +185 -0
- package/dist/modules/design_system/gallery/demos/source-filters.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/source-icons.js +69 -0
- package/dist/modules/design_system/gallery/demos/source-icons.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/table-cells-code.generated.js +150 -0
- package/dist/modules/design_system/gallery/demos/table-cells-code.generated.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/table-cells.js +181 -0
- package/dist/modules/design_system/gallery/demos/table-cells.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/text-inputs.js +113 -0
- package/dist/modules/design_system/gallery/demos/text-inputs.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/time-picker-code.generated.js +41 -0
- package/dist/modules/design_system/gallery/demos/time-picker-code.generated.js.map +7 -0
- package/dist/modules/design_system/gallery/demos/time-picker.js +41 -0
- package/dist/modules/design_system/gallery/demos/time-picker.js.map +7 -0
- package/dist/modules/design_system/gallery/entries/banners.js +123 -60
- package/dist/modules/design_system/gallery/entries/banners.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/buttons-snippets.js +433 -0
- package/dist/modules/design_system/gallery/entries/buttons-snippets.js.map +7 -0
- package/dist/modules/design_system/gallery/entries/buttons.js +127 -148
- package/dist/modules/design_system/gallery/entries/buttons.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/charts.js +532 -186
- package/dist/modules/design_system/gallery/entries/charts.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/dates.js +191 -3
- package/dist/modules/design_system/gallery/entries/dates.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/detail.js +118 -77
- package/dist/modules/design_system/gallery/entries/detail.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/display.js +1449 -240
- package/dist/modules/design_system/gallery/entries/display.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/feedback.js +1058 -132
- package/dist/modules/design_system/gallery/entries/feedback.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/filters.js +231 -103
- package/dist/modules/design_system/gallery/entries/filters.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/foundations.js +368 -57
- package/dist/modules/design_system/gallery/entries/foundations.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/icons.js +29 -91
- package/dist/modules/design_system/gallery/entries/icons.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/inputs-snippets.js +154 -0
- package/dist/modules/design_system/gallery/entries/inputs-snippets.js.map +7 -0
- package/dist/modules/design_system/gallery/entries/inputs.js +2043 -306
- package/dist/modules/design_system/gallery/entries/inputs.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/library.js +20 -0
- package/dist/modules/design_system/gallery/entries/library.js.map +7 -0
- package/dist/modules/design_system/gallery/entries/messages.js +121 -103
- package/dist/modules/design_system/gallery/entries/messages.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/navigation.js +676 -103
- package/dist/modules/design_system/gallery/entries/navigation.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/notifications.js +131 -78
- package/dist/modules/design_system/gallery/entries/notifications.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/overlays.js +611 -203
- package/dist/modules/design_system/gallery/entries/overlays.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/scaffolding.js +1175 -120
- package/dist/modules/design_system/gallery/entries/scaffolding.js.map +2 -2
- package/dist/modules/design_system/gallery/entries/schedule.js +79 -54
- package/dist/modules/design_system/gallery/entries/schedule.js.map +2 -2
- package/dist/modules/design_system/gallery/presentation.js +108 -0
- package/dist/modules/design_system/gallery/presentation.js.map +7 -0
- package/dist/modules/design_system/gallery/registry.js +8 -5
- package/dist/modules/design_system/gallery/registry.js.map +2 -2
- package/dist/modules/design_system/gallery/source-library.generated.js +5 -0
- package/dist/modules/design_system/gallery/source-library.generated.js.map +7 -0
- package/dist/modules/design_system/i18n/de.json +7167 -0
- package/dist/modules/design_system/i18n/en.json +7167 -0
- package/dist/modules/design_system/i18n/es.json +7167 -0
- package/dist/modules/design_system/i18n/ko.json +7167 -0
- package/dist/modules/design_system/i18n/pl.json +7167 -0
- package/dist/modules/push_notifications/lib/queue.js +1 -31
- package/dist/modules/push_notifications/lib/queue.js.map +2 -2
- package/jest.config.cjs +1 -0
- package/jest.mocks/image.js +1 -0
- package/package.json +8 -8
- package/src/modules/catalog/backend/catalog/products/[id]/page.tsx +50 -0
- package/src/modules/customers/backend/customers/companies/[id]/page.tsx +2 -1
- package/src/modules/customers/backend/customers/companies-v2/[id]/page.tsx +2 -1
- package/src/modules/customers/backend/customers/people/[id]/page.tsx +2 -2
- package/src/modules/customers/backend/customers/people-v2/[id]/page.tsx +2 -1
- package/src/modules/customers/lib/detailHelpers.ts +4 -0
- package/src/modules/customers/lib/todoCompatibility.ts +10 -0
- package/src/modules/design_system/backend/design-system/page.meta.ts +3 -2
- package/src/modules/design_system/gallery/assets/README.md +30 -0
- package/src/modules/design_system/gallery/assets/ai-prompt-image.png +0 -0
- package/src/modules/design_system/gallery/assets/avatar-illustration.png +0 -0
- package/src/modules/design_system/gallery/assets/avatar-memoji.png +0 -0
- package/src/modules/design_system/gallery/assets/avatar-photo.png +0 -0
- package/src/modules/design_system/gallery/assets/blog-photo-0.png +0 -0
- package/src/modules/design_system/gallery/assets/contact-support-portrait.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-ada.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-avax.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-bnb.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-brand.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-btc.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-clock.svg +3 -0
- package/src/modules/design_system/gallery/assets/crypto-crown.svg +3 -0
- package/src/modules/design_system/gallery/assets/crypto-dot.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-eth.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-hbar.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-history.svg +3 -0
- package/src/modules/design_system/gallery/assets/crypto-link.svg +3 -0
- package/src/modules/design_system/gallery/assets/crypto-menu.svg +3 -0
- package/src/modules/design_system/gallery/assets/crypto-metamask.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-more.svg +3 -0
- package/src/modules/design_system/gallery/assets/crypto-phantom.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-rewards.svg +3 -0
- package/src/modules/design_system/gallery/assets/crypto-sad-face.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-sol.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-star.svg +3 -0
- package/src/modules/design_system/gallery/assets/crypto-status-cancelled.svg +3 -0
- package/src/modules/design_system/gallery/assets/crypto-status-pending.svg +3 -0
- package/src/modules/design_system/gallery/assets/crypto-status-success.svg +3 -0
- package/src/modules/design_system/gallery/assets/crypto-status-warning.svg +3 -0
- package/src/modules/design_system/gallery/assets/crypto-trx.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-usdc.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-usdt.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-walletconnect.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-wei.png +0 -0
- package/src/modules/design_system/gallery/assets/crypto-xrp.png +0 -0
- package/src/modules/design_system/gallery/assets/cryptocurrency-artwork.ts +63 -0
- package/src/modules/design_system/gallery/assets/github-logo.png +0 -0
- package/src/modules/design_system/gallery/assets/images.d.ts +9 -0
- package/src/modules/design_system/gallery/assets/input-european-union.svg +18 -0
- package/src/modules/design_system/gallery/assets/landing-teams-01.png +0 -0
- package/src/modules/design_system/gallery/assets/marketing-artwork.ts +79 -0
- package/src/modules/design_system/gallery/assets/menu-apex.svg +18 -0
- package/src/modules/design_system/gallery/assets/menu-mastercard.svg +7 -0
- package/src/modules/design_system/gallery/assets/menu-spotify.svg +4 -0
- package/src/modules/design_system/gallery/assets/menu-united-states.svg +16 -0
- package/src/modules/design_system/gallery/assets/select-google.png +0 -0
- package/src/modules/design_system/gallery/assets/select-poland.png +0 -0
- package/src/modules/design_system/gallery/assets/selection-artwork.ts +1 -0
- package/src/modules/design_system/gallery/assets/social-apple-filled.svg +4 -0
- package/src/modules/design_system/gallery/assets/social-apple-stroke.svg +4 -0
- package/src/modules/design_system/gallery/assets/social-dropbox-filled.svg +5 -0
- package/src/modules/design_system/gallery/assets/social-dropbox-stroke.svg +5 -0
- package/src/modules/design_system/gallery/assets/social-facebook-filled.svg +4 -0
- package/src/modules/design_system/gallery/assets/social-facebook-stroke.svg +10 -0
- package/src/modules/design_system/gallery/assets/social-github-filled.svg +4 -0
- package/src/modules/design_system/gallery/assets/social-github-stroke.svg +4 -0
- package/src/modules/design_system/gallery/assets/social-google-filled.svg +7 -0
- package/src/modules/design_system/gallery/assets/social-google-stroke.svg +7 -0
- package/src/modules/design_system/gallery/assets/social-linkedin-filled.svg +4 -0
- package/src/modules/design_system/gallery/assets/social-linkedin-stroke.svg +4 -0
- package/src/modules/design_system/gallery/assets/social-x-filled.svg +4 -0
- package/src/modules/design_system/gallery/assets/social-x-stroke.svg +4 -0
- package/src/modules/design_system/gallery/assets/style-studio-product.png +0 -0
- package/src/modules/design_system/gallery/assets/upload-images.ts +5 -0
- package/src/modules/design_system/gallery/components/BrandStylePreview.tsx +94 -0
- package/src/modules/design_system/gallery/components/CodeSnippet.tsx +34 -34
- package/src/modules/design_system/gallery/components/ColorPlayground.tsx +324 -0
- package/src/modules/design_system/gallery/components/ColorStudioCompositions.tsx +96 -0
- package/src/modules/design_system/gallery/components/ColorStudioSpecimen.tsx +164 -0
- package/src/modules/design_system/gallery/components/CompactEntrySpecimen.tsx +65 -0
- package/src/modules/design_system/gallery/components/ComponentIndex.tsx +47 -0
- package/src/modules/design_system/gallery/components/DesignSystemHome.tsx +66 -0
- package/src/modules/design_system/gallery/components/EntryCard.tsx +52 -37
- package/src/modules/design_system/gallery/components/EntryHeader.tsx +80 -0
- package/src/modules/design_system/gallery/components/FamilyEntryPreview.tsx +22 -0
- package/src/modules/design_system/gallery/components/FoundationGuide.tsx +43 -0
- package/src/modules/design_system/gallery/components/GalleryLink.tsx +19 -0
- package/src/modules/design_system/gallery/components/GalleryNavigation.tsx +86 -0
- package/src/modules/design_system/gallery/components/GalleryShell.tsx +149 -63
- package/src/modules/design_system/gallery/components/IconsBrowser.tsx +40 -0
- package/src/modules/design_system/gallery/components/SourceLibrary.tsx +90 -0
- package/src/modules/design_system/gallery/components/StyleAgents.tsx +115 -0
- package/src/modules/design_system/gallery/components/ThemeTokenReference.tsx +76 -0
- package/src/modules/design_system/gallery/components/VariantPreview.tsx +2 -2
- package/src/modules/design_system/gallery/components/colorPreview.ts +63 -0
- package/src/modules/design_system/gallery/components/colorStudio.ts +260 -0
- package/src/modules/design_system/gallery/components/styleAgentBranding.ts +42 -0
- package/src/modules/design_system/gallery/components/themeTokens.ts +26 -0
- package/src/modules/design_system/gallery/demos/ai-product-code.generated.ts +3 -0
- package/src/modules/design_system/gallery/demos/ai-product.tsx +188 -0
- package/src/modules/design_system/gallery/demos/buttons.tsx +331 -0
- package/src/modules/design_system/gallery/demos/cryptocurrency.tsx +1943 -0
- package/src/modules/design_system/gallery/demos/feeds-code.generated.ts +4 -0
- package/src/modules/design_system/gallery/demos/feeds.tsx +82 -0
- package/src/modules/design_system/gallery/demos/file-upload.tsx +61 -0
- package/src/modules/design_system/gallery/demos/foundation-reference-data.ts +4872 -0
- package/src/modules/design_system/gallery/demos/foundation-references.tsx +140 -0
- package/src/modules/design_system/gallery/demos/key-components-code.generated.ts +3 -0
- package/src/modules/design_system/gallery/demos/key-components.tsx +106 -0
- package/src/modules/design_system/gallery/demos/marketing-controls-code.generated.ts +3 -0
- package/src/modules/design_system/gallery/demos/marketing-controls.tsx +92 -0
- package/src/modules/design_system/gallery/demos/marketing-widgets-code.generated.ts +3 -0
- package/src/modules/design_system/gallery/demos/marketing-widgets.tsx +189 -0
- package/src/modules/design_system/gallery/demos/menu-fixtures.tsx +48 -0
- package/src/modules/design_system/gallery/demos/menu-sources.ts +5 -0
- package/src/modules/design_system/gallery/demos/menus.tsx +122 -0
- package/src/modules/design_system/gallery/demos/rating-reviews.tsx +44 -0
- package/src/modules/design_system/gallery/demos/registered-icons.tsx +117 -0
- package/src/modules/design_system/gallery/demos/selection-cards.tsx +97 -0
- package/src/modules/design_system/gallery/demos/shell-code.generated.ts +3 -0
- package/src/modules/design_system/gallery/demos/shell.tsx +183 -0
- package/src/modules/design_system/gallery/demos/source-artwork.tsx +88 -0
- package/src/modules/design_system/gallery/demos/source-filters-code.generated.ts +3 -0
- package/src/modules/design_system/gallery/demos/source-filters.tsx +119 -0
- package/src/modules/design_system/gallery/demos/source-icons.tsx +62 -0
- package/src/modules/design_system/gallery/demos/table-cells-code.generated.ts +3 -0
- package/src/modules/design_system/gallery/demos/table-cells.tsx +144 -0
- package/src/modules/design_system/gallery/demos/text-inputs.tsx +90 -0
- package/src/modules/design_system/gallery/demos/time-picker-code.generated.ts +5 -0
- package/src/modules/design_system/gallery/demos/time-picker.tsx +31 -0
- package/src/modules/design_system/gallery/entries/banners.tsx +143 -94
- package/src/modules/design_system/gallery/entries/buttons-snippets.ts +432 -0
- package/src/modules/design_system/gallery/entries/buttons.tsx +125 -196
- package/src/modules/design_system/gallery/entries/charts.tsx +545 -233
- package/src/modules/design_system/gallery/entries/dates.tsx +171 -3
- package/src/modules/design_system/gallery/entries/detail.tsx +142 -115
- package/src/modules/design_system/gallery/entries/display.tsx +1691 -319
- package/src/modules/design_system/gallery/entries/feedback.tsx +1082 -169
- package/src/modules/design_system/gallery/entries/filters.tsx +238 -143
- package/src/modules/design_system/gallery/entries/foundations.tsx +404 -61
- package/src/modules/design_system/gallery/entries/icons.tsx +31 -117
- package/src/modules/design_system/gallery/entries/inputs-snippets.ts +156 -0
- package/src/modules/design_system/gallery/entries/inputs.tsx +2146 -503
- package/src/modules/design_system/gallery/entries/library.tsx +16 -0
- package/src/modules/design_system/gallery/entries/messages.tsx +114 -106
- package/src/modules/design_system/gallery/entries/navigation.tsx +782 -192
- package/src/modules/design_system/gallery/entries/notifications.tsx +145 -120
- package/src/modules/design_system/gallery/entries/overlays.tsx +696 -280
- package/src/modules/design_system/gallery/entries/scaffolding.tsx +1192 -158
- package/src/modules/design_system/gallery/entries/schedule.tsx +72 -58
- package/src/modules/design_system/gallery/presentation.ts +106 -0
- package/src/modules/design_system/gallery/registry.ts +8 -6
- package/src/modules/design_system/gallery/source-library.generated.ts +2 -0
- package/src/modules/design_system/i18n/de.json +7112 -3
- package/src/modules/design_system/i18n/en.json +7112 -3
- package/src/modules/design_system/i18n/es.json +7112 -3
- package/src/modules/design_system/i18n/ko.json +7112 -3
- package/src/modules/design_system/i18n/pl.json +7112 -3
- package/src/modules/push_notifications/AGENTS.md +9 -5
- package/src/modules/push_notifications/lib/queue.ts +15 -44
|
@@ -1,14 +1,10 @@
|
|
|
1
|
+
import { useT } from '@open-mercato/shared/lib/i18n/context'
|
|
1
2
|
import * as React from 'react'
|
|
2
3
|
import { Bell } from 'lucide-react'
|
|
3
4
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
4
5
|
import { IconButton } from '@open-mercato/ui/primitives/icon-button'
|
|
5
|
-
import {
|
|
6
|
-
NotificationCountBadge,
|
|
7
|
-
NotificationItem,
|
|
8
|
-
NotificationPanel,
|
|
9
|
-
} from '@open-mercato/ui/backend/notifications'
|
|
6
|
+
import { NotificationCountBadge, NotificationItem, NotificationPanel } from '@open-mercato/ui/backend/notifications'
|
|
10
7
|
import type { NotificationDto } from '@open-mercato/shared/modules/notifications/types'
|
|
11
|
-
import type { TranslateFn } from '@open-mercato/shared/lib/i18n/context'
|
|
12
8
|
import type { GalleryEntry } from '../types'
|
|
13
9
|
|
|
14
10
|
// Component titles and variant names are proper nouns from the codebase and
|
|
@@ -20,27 +16,104 @@ import type { GalleryEntry } from '../types'
|
|
|
20
16
|
// `NotificationBell` itself is wired to `useNotifications` (SSE + API) and
|
|
21
17
|
// cannot be severed from it, so its entry shows the presentational chrome
|
|
22
18
|
// (bell trigger + `NotificationCountBadge`) instead of mounting the live bell.
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
function NotificationBellEntryPresentationalMockPreview() {
|
|
20
|
+
const t = useT()
|
|
21
|
+
return (
|
|
22
|
+
<IconButton
|
|
23
|
+
variant="ghost"
|
|
24
|
+
size="sm"
|
|
25
|
+
className="relative"
|
|
26
|
+
aria-label={t('design_system.gallery.samples.content.3UnreadNotifications')}
|
|
27
|
+
>
|
|
28
|
+
<Bell className="h-5 w-5" />
|
|
29
|
+
<NotificationCountBadge count={3} />
|
|
30
|
+
</IconButton>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
function NotificationCountBadgeEntryCountsPreview() {
|
|
34
|
+
const t = useT()
|
|
35
|
+
return (
|
|
36
|
+
<>
|
|
37
|
+
<IconButton
|
|
38
|
+
variant="ghost"
|
|
39
|
+
size="sm"
|
|
40
|
+
className="relative"
|
|
41
|
+
aria-label={t('design_system.gallery.samples.content.3UnreadNotifications')}
|
|
42
|
+
>
|
|
43
|
+
<Bell className="h-5 w-5" />
|
|
44
|
+
<NotificationCountBadge count={3} />
|
|
45
|
+
</IconButton>
|
|
46
|
+
<IconButton
|
|
47
|
+
variant="ghost"
|
|
48
|
+
size="sm"
|
|
49
|
+
className="relative"
|
|
50
|
+
aria-label={t('design_system.gallery.samples.content.12UnreadNotifications')}
|
|
51
|
+
>
|
|
52
|
+
<Bell className="h-5 w-5" />
|
|
53
|
+
<NotificationCountBadge count={12} />
|
|
54
|
+
</IconButton>
|
|
55
|
+
<IconButton
|
|
56
|
+
variant="ghost"
|
|
57
|
+
size="sm"
|
|
58
|
+
className="relative"
|
|
59
|
+
aria-label={t('design_system.gallery.samples.content.120UnreadNotifications')}
|
|
60
|
+
>
|
|
61
|
+
<Bell className="h-5 w-5" />
|
|
62
|
+
<NotificationCountBadge count={120} />
|
|
63
|
+
</IconButton>
|
|
64
|
+
</>
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
function NotificationItemEntryUnreadInfoPreview() {
|
|
68
|
+
const t = useT()
|
|
69
|
+
return (
|
|
70
|
+
<div className="w-full max-w-md">
|
|
71
|
+
<NotificationItem
|
|
72
|
+
notification={unreadInfoNotification(t)}
|
|
73
|
+
onMarkAsRead={noopMarkAsRead}
|
|
74
|
+
onExecuteAction={noopExecuteAction}
|
|
75
|
+
onDismiss={noopDismiss}
|
|
76
|
+
t={t}
|
|
77
|
+
/>
|
|
78
|
+
</div>
|
|
79
|
+
)
|
|
80
|
+
}
|
|
81
|
+
function NotificationItemEntryWithBodyPreview() {
|
|
82
|
+
const t = useT()
|
|
83
|
+
return (
|
|
84
|
+
<div className="w-full max-w-md">
|
|
85
|
+
<NotificationItem
|
|
86
|
+
notification={successWithBodyNotification(t)}
|
|
87
|
+
onMarkAsRead={noopMarkAsRead}
|
|
88
|
+
onExecuteAction={noopExecuteAction}
|
|
89
|
+
onDismiss={noopDismiss}
|
|
90
|
+
t={t}
|
|
91
|
+
/>
|
|
92
|
+
</div>
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
function NotificationItemEntryWithActionsPreview() {
|
|
96
|
+
const t = useT()
|
|
97
|
+
return (
|
|
98
|
+
<div className="w-full max-w-md">
|
|
99
|
+
<NotificationItem
|
|
100
|
+
notification={actionRequiredNotification(t)}
|
|
101
|
+
onMarkAsRead={noopMarkAsRead}
|
|
102
|
+
onExecuteAction={noopExecuteAction}
|
|
103
|
+
onDismiss={noopDismiss}
|
|
104
|
+
t={t}
|
|
105
|
+
/>
|
|
106
|
+
</div>
|
|
30
107
|
)
|
|
31
108
|
}
|
|
32
|
-
|
|
33
109
|
const minutesAgo = (minutes: number) => new Date(Date.now() - minutes * 60_000).toISOString()
|
|
34
|
-
|
|
35
110
|
const noopMarkAsRead = async () => {}
|
|
36
111
|
const noopDismiss = async () => {}
|
|
37
112
|
const noopExecuteAction = async () => ({})
|
|
38
|
-
|
|
39
|
-
function mockNotification(overrides: Partial<NotificationDto>): NotificationDto {
|
|
113
|
+
function mockNotification(overrides: Partial<NotificationDto> & Pick<NotificationDto, 'title'>): NotificationDto {
|
|
40
114
|
return {
|
|
41
115
|
id: 'gallery-notification',
|
|
42
116
|
type: 'gallery.demo',
|
|
43
|
-
title: 'Notification',
|
|
44
117
|
severity: 'info',
|
|
45
118
|
status: 'unread',
|
|
46
119
|
actions: [],
|
|
@@ -48,68 +121,74 @@ function mockNotification(overrides: Partial<NotificationDto>): NotificationDto
|
|
|
48
121
|
...overrides,
|
|
49
122
|
}
|
|
50
123
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
124
|
+
const unreadInfoNotification = (t: ReturnType<typeof useT>) =>
|
|
125
|
+
mockNotification({
|
|
126
|
+
id: 'gallery-unread-info',
|
|
127
|
+
title: t('design_system.gallery.samples.content.nightlyImportFinished'),
|
|
128
|
+
severity: 'info',
|
|
129
|
+
status: 'unread',
|
|
130
|
+
sourceModule: 'catalog',
|
|
131
|
+
createdAt: minutesAgo(4),
|
|
132
|
+
})
|
|
133
|
+
const successWithBodyNotification = (t: ReturnType<typeof useT>) =>
|
|
134
|
+
mockNotification({
|
|
135
|
+
id: 'gallery-success-body',
|
|
136
|
+
title: t('design_system.gallery.samples.content.order10023Shipped'),
|
|
137
|
+
body: t('design_system.gallery.samples.content.carrierPickedUp3ParcelsTrackingNumbersWereEmailedToTheCustomer'),
|
|
138
|
+
severity: 'success',
|
|
139
|
+
status: 'read',
|
|
140
|
+
sourceModule: 'sales',
|
|
141
|
+
createdAt: minutesAgo(35),
|
|
142
|
+
})
|
|
143
|
+
const actionRequiredNotification = (t: ReturnType<typeof useT>) =>
|
|
144
|
+
mockNotification({
|
|
145
|
+
id: 'gallery-action-required',
|
|
146
|
+
title: t('design_system.gallery.samples.content.priceListAwaitingApproval'),
|
|
147
|
+
body: t('design_system.gallery.samples.content.wholesaleEuPriceListChanges214Products'),
|
|
148
|
+
severity: 'warning',
|
|
149
|
+
status: 'unread',
|
|
150
|
+
sourceModule: 'pricing',
|
|
151
|
+
actions: [
|
|
152
|
+
{
|
|
153
|
+
id: 'review',
|
|
154
|
+
label: t('design_system.gallery.samples.content.reviewChanges'),
|
|
155
|
+
variant: 'outline',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: 'approve',
|
|
159
|
+
label: t('design_system.gallery.samples.content.approve'),
|
|
160
|
+
variant: 'default',
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
createdAt: minutesAgo(90),
|
|
164
|
+
})
|
|
165
|
+
const panelNotifications = (t: ReturnType<typeof useT>): NotificationDto[] => [
|
|
166
|
+
unreadInfoNotification(t),
|
|
167
|
+
actionRequiredNotification(t),
|
|
168
|
+
successWithBodyNotification(t),
|
|
89
169
|
]
|
|
90
|
-
|
|
91
170
|
function DemoNotificationPanel() {
|
|
171
|
+
const t = useT()
|
|
92
172
|
const [open, setOpen] = React.useState(false)
|
|
93
173
|
return (
|
|
94
174
|
<>
|
|
95
175
|
<Button variant="outline" onClick={() => setOpen(true)}>
|
|
96
|
-
|
|
176
|
+
{t('design_system.gallery.samples.content.openNotificationPanel')}
|
|
97
177
|
</Button>
|
|
98
178
|
<NotificationPanel
|
|
99
179
|
open={open}
|
|
100
180
|
onOpenChange={setOpen}
|
|
101
|
-
notifications={panelNotifications}
|
|
181
|
+
notifications={panelNotifications(t)}
|
|
102
182
|
unreadCount={2}
|
|
103
183
|
onMarkAsRead={noopMarkAsRead}
|
|
104
184
|
onExecuteAction={noopExecuteAction}
|
|
105
185
|
onDismiss={noopDismiss}
|
|
106
186
|
onMarkAllRead={noopMarkAsRead}
|
|
107
|
-
t={
|
|
187
|
+
t={t}
|
|
108
188
|
/>
|
|
109
189
|
</>
|
|
110
190
|
)
|
|
111
191
|
}
|
|
112
|
-
|
|
113
192
|
const notificationBellEntry: GalleryEntry = {
|
|
114
193
|
id: 'notification-bell',
|
|
115
194
|
title: 'NotificationBell',
|
|
@@ -118,12 +197,7 @@ const notificationBellEntry: GalleryEntry = {
|
|
|
118
197
|
{
|
|
119
198
|
id: 'presentational-mock',
|
|
120
199
|
title: 'Presentational mock (live bell is SSE-wired)',
|
|
121
|
-
render: () =>
|
|
122
|
-
<IconButton variant="ghost" size="sm" className="relative" aria-label="3 unread notifications">
|
|
123
|
-
<Bell className="h-5 w-5" />
|
|
124
|
-
<NotificationCountBadge count={3} />
|
|
125
|
-
</IconButton>
|
|
126
|
-
),
|
|
200
|
+
render: () => <NotificationBellEntryPresentationalMockPreview />,
|
|
127
201
|
code: `import { NotificationBell } from '@open-mercato/ui/backend/notifications'
|
|
128
202
|
|
|
129
203
|
// Wired to the notifications API + SSE — AppShell renders one in the topbar.
|
|
@@ -131,7 +205,6 @@ const notificationBellEntry: GalleryEntry = {
|
|
|
131
205
|
},
|
|
132
206
|
],
|
|
133
207
|
}
|
|
134
|
-
|
|
135
208
|
const notificationCountBadgeEntry: GalleryEntry = {
|
|
136
209
|
id: 'notification-count-badge',
|
|
137
210
|
title: 'NotificationCountBadge',
|
|
@@ -140,22 +213,7 @@ const notificationCountBadgeEntry: GalleryEntry = {
|
|
|
140
213
|
{
|
|
141
214
|
id: 'counts',
|
|
142
215
|
title: 'Counts (caps at 99+)',
|
|
143
|
-
render: () =>
|
|
144
|
-
<>
|
|
145
|
-
<IconButton variant="ghost" size="sm" className="relative" aria-label="3 unread notifications">
|
|
146
|
-
<Bell className="h-5 w-5" />
|
|
147
|
-
<NotificationCountBadge count={3} />
|
|
148
|
-
</IconButton>
|
|
149
|
-
<IconButton variant="ghost" size="sm" className="relative" aria-label="12 unread notifications">
|
|
150
|
-
<Bell className="h-5 w-5" />
|
|
151
|
-
<NotificationCountBadge count={12} />
|
|
152
|
-
</IconButton>
|
|
153
|
-
<IconButton variant="ghost" size="sm" className="relative" aria-label="120 unread notifications">
|
|
154
|
-
<Bell className="h-5 w-5" />
|
|
155
|
-
<NotificationCountBadge count={120} />
|
|
156
|
-
</IconButton>
|
|
157
|
-
</>
|
|
158
|
-
),
|
|
216
|
+
render: () => <NotificationCountBadgeEntryCountsPreview />,
|
|
159
217
|
code: `import { NotificationCountBadge } from '@open-mercato/ui/backend/notifications'
|
|
160
218
|
|
|
161
219
|
// Renders nothing for count <= 0; anchors to the nearest relative parent.
|
|
@@ -166,7 +224,6 @@ const notificationCountBadgeEntry: GalleryEntry = {
|
|
|
166
224
|
},
|
|
167
225
|
],
|
|
168
226
|
}
|
|
169
|
-
|
|
170
227
|
const notificationItemEntry: GalleryEntry = {
|
|
171
228
|
id: 'notification-item',
|
|
172
229
|
title: 'NotificationItem',
|
|
@@ -175,17 +232,7 @@ const notificationItemEntry: GalleryEntry = {
|
|
|
175
232
|
{
|
|
176
233
|
id: 'unread-info',
|
|
177
234
|
title: 'Unread (mocked data)',
|
|
178
|
-
render: () =>
|
|
179
|
-
<div className="w-full max-w-md">
|
|
180
|
-
<NotificationItem
|
|
181
|
-
notification={unreadInfoNotification}
|
|
182
|
-
onMarkAsRead={noopMarkAsRead}
|
|
183
|
-
onExecuteAction={noopExecuteAction}
|
|
184
|
-
onDismiss={noopDismiss}
|
|
185
|
-
t={galleryT}
|
|
186
|
-
/>
|
|
187
|
-
</div>
|
|
188
|
-
),
|
|
235
|
+
render: () => <NotificationItemEntryUnreadInfoPreview />,
|
|
189
236
|
code: `import { NotificationItem } from '@open-mercato/ui/backend/notifications'
|
|
190
237
|
|
|
191
238
|
<NotificationItem
|
|
@@ -199,17 +246,7 @@ const notificationItemEntry: GalleryEntry = {
|
|
|
199
246
|
{
|
|
200
247
|
id: 'with-body',
|
|
201
248
|
title: 'Read with body bubble (mocked data)',
|
|
202
|
-
render: () =>
|
|
203
|
-
<div className="w-full max-w-md">
|
|
204
|
-
<NotificationItem
|
|
205
|
-
notification={successWithBodyNotification}
|
|
206
|
-
onMarkAsRead={noopMarkAsRead}
|
|
207
|
-
onExecuteAction={noopExecuteAction}
|
|
208
|
-
onDismiss={noopDismiss}
|
|
209
|
-
t={galleryT}
|
|
210
|
-
/>
|
|
211
|
-
</div>
|
|
212
|
-
),
|
|
249
|
+
render: () => <NotificationItemEntryWithBodyPreview />,
|
|
213
250
|
code: `import { NotificationItem } from '@open-mercato/ui/backend/notifications'
|
|
214
251
|
|
|
215
252
|
// A notification with a body renders it as a speech-bubble under the title.
|
|
@@ -224,17 +261,7 @@ const notificationItemEntry: GalleryEntry = {
|
|
|
224
261
|
{
|
|
225
262
|
id: 'with-actions',
|
|
226
263
|
title: 'Action required (mocked data)',
|
|
227
|
-
render: () =>
|
|
228
|
-
<div className="w-full max-w-md">
|
|
229
|
-
<NotificationItem
|
|
230
|
-
notification={actionRequiredNotification}
|
|
231
|
-
onMarkAsRead={noopMarkAsRead}
|
|
232
|
-
onExecuteAction={noopExecuteAction}
|
|
233
|
-
onDismiss={noopDismiss}
|
|
234
|
-
t={galleryT}
|
|
235
|
-
/>
|
|
236
|
-
</div>
|
|
237
|
-
),
|
|
264
|
+
render: () => <NotificationItemEntryWithActionsPreview />,
|
|
238
265
|
code: `import { NotificationItem } from '@open-mercato/ui/backend/notifications'
|
|
239
266
|
|
|
240
267
|
// Actions come from notification.actions; the last one renders as primary.
|
|
@@ -248,7 +275,6 @@ const notificationItemEntry: GalleryEntry = {
|
|
|
248
275
|
},
|
|
249
276
|
],
|
|
250
277
|
}
|
|
251
|
-
|
|
252
278
|
const notificationPanelEntry: GalleryEntry = {
|
|
253
279
|
id: 'notification-panel',
|
|
254
280
|
title: 'NotificationPanel',
|
|
@@ -276,7 +302,6 @@ const [open, setOpen] = React.useState(false)
|
|
|
276
302
|
},
|
|
277
303
|
],
|
|
278
304
|
}
|
|
279
|
-
|
|
280
305
|
export const entries: GalleryEntry[] = [
|
|
281
306
|
notificationBellEntry,
|
|
282
307
|
notificationCountBadgeEntry,
|