@open-mercato/core 0.7.1-develop.7202.1.a52dc6707c → 0.8.0
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 -9
- 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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../src/modules/design_system/gallery/entries/notifications.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react'\nimport { Bell } from 'lucide-react'\nimport { Button } from '@open-mercato/ui/primitives/button'\nimport { IconButton } from '@open-mercato/ui/primitives/icon-button'\nimport {\n NotificationCountBadge,\n NotificationItem,\n NotificationPanel,\n} from '@open-mercato/ui/backend/notifications'\nimport type { NotificationDto } from '@open-mercato/shared/modules/notifications/types'\nimport type { TranslateFn } from '@open-mercato/shared/lib/i18n/context'\nimport type { GalleryEntry } from '../types'\n\n// Component titles and variant names are proper nouns from the codebase and\n// are deliberately not translated. `code` MUST contain the entry's importPath\n// (enforced by the registry-integrity test) and is always reviewed alongside\n// its sibling `render`.\n\n// All previews below run on inline mocked data \u2014 no API calls, no SSE.\n// `NotificationBell` itself is wired to `useNotifications` (SSE + API) and\n// cannot be severed from it, so its entry shows the presentational chrome\n// (bell trigger + `NotificationCountBadge`) instead of mounting the live bell.\n\nconst galleryT: TranslateFn = (key, fallbackOrParams, params) => {\n const fallback = typeof fallbackOrParams === 'string' ? fallbackOrParams : key\n const variables = (typeof fallbackOrParams === 'object' ? fallbackOrParams : params) ?? {}\n return Object.entries(variables).reduce(\n (text, [name, value]) => text.replaceAll(`{${name}}`, String(value)),\n fallback,\n )\n}\n\nconst minutesAgo = (minutes: number) => new Date(Date.now() - minutes * 60_000).toISOString()\n\nconst noopMarkAsRead = async () => {}\nconst noopDismiss = async () => {}\nconst noopExecuteAction = async () => ({})\n\nfunction mockNotification(overrides: Partial<NotificationDto>): NotificationDto {\n return {\n id: 'gallery-notification',\n type: 'gallery.demo',\n title: 'Notification',\n severity: 'info',\n status: 'unread',\n actions: [],\n createdAt: minutesAgo(5),\n ...overrides,\n }\n}\n\nconst unreadInfoNotification = mockNotification({\n id: 'gallery-unread-info',\n title: 'Nightly import finished',\n severity: 'info',\n status: 'unread',\n sourceModule: 'catalog',\n createdAt: minutesAgo(4),\n})\n\nconst successWithBodyNotification = mockNotification({\n id: 'gallery-success-body',\n title: 'Order #10023 shipped',\n body: 'Carrier picked up 3 parcels. Tracking numbers were emailed to the customer.',\n severity: 'success',\n status: 'read',\n sourceModule: 'sales',\n createdAt: minutesAgo(35),\n})\n\nconst actionRequiredNotification = mockNotification({\n id: 'gallery-action-required',\n title: 'Price list awaiting approval',\n body: 'Wholesale EU price list changes 214 products.',\n severity: 'warning',\n status: 'unread',\n sourceModule: 'pricing',\n actions: [\n { id: 'review', label: 'Review changes', variant: 'outline' },\n { id: 'approve', label: 'Approve', variant: 'default' },\n ],\n createdAt: minutesAgo(90),\n})\n\nconst panelNotifications: NotificationDto[] = [\n unreadInfoNotification,\n actionRequiredNotification,\n successWithBodyNotification,\n]\n\nfunction DemoNotificationPanel() {\n const [open, setOpen] = React.useState(false)\n return (\n <>\n <Button variant=\"outline\" onClick={() => setOpen(true)}>\n Open notification panel\n </Button>\n <NotificationPanel\n open={open}\n onOpenChange={setOpen}\n notifications={panelNotifications}\n unreadCount={2}\n onMarkAsRead={noopMarkAsRead}\n onExecuteAction={noopExecuteAction}\n onDismiss={noopDismiss}\n onMarkAllRead={noopMarkAsRead}\n t={galleryT}\n />\n </>\n )\n}\n\nconst notificationBellEntry: GalleryEntry = {\n id: 'notification-bell',\n title: 'NotificationBell',\n importPath: '@open-mercato/ui/backend/notifications',\n variants: [\n {\n id: 'presentational-mock',\n title: 'Presentational mock (live bell is SSE-wired)',\n render: () => (\n <IconButton variant=\"ghost\" size=\"sm\" className=\"relative\" aria-label=\"3 unread notifications\">\n <Bell className=\"h-5 w-5\" />\n <NotificationCountBadge count={3} />\n </IconButton>\n ),\n code: `import { NotificationBell } from '@open-mercato/ui/backend/notifications'\n\n// Wired to the notifications API + SSE \u2014 AppShell renders one in the topbar.\n<NotificationBell t={t} />`,\n },\n ],\n}\n\nconst notificationCountBadgeEntry: GalleryEntry = {\n id: 'notification-count-badge',\n title: 'NotificationCountBadge',\n importPath: '@open-mercato/ui/backend/notifications',\n variants: [\n {\n id: 'counts',\n title: 'Counts (caps at 99+)',\n render: () => (\n <>\n <IconButton variant=\"ghost\" size=\"sm\" className=\"relative\" aria-label=\"3 unread notifications\">\n <Bell className=\"h-5 w-5\" />\n <NotificationCountBadge count={3} />\n </IconButton>\n <IconButton variant=\"ghost\" size=\"sm\" className=\"relative\" aria-label=\"12 unread notifications\">\n <Bell className=\"h-5 w-5\" />\n <NotificationCountBadge count={12} />\n </IconButton>\n <IconButton variant=\"ghost\" size=\"sm\" className=\"relative\" aria-label=\"120 unread notifications\">\n <Bell className=\"h-5 w-5\" />\n <NotificationCountBadge count={120} />\n </IconButton>\n </>\n ),\n code: `import { NotificationCountBadge } from '@open-mercato/ui/backend/notifications'\n\n// Renders nothing for count <= 0; anchors to the nearest relative parent.\n<IconButton variant=\"ghost\" size=\"sm\" className=\"relative\" aria-label=\"3 unread notifications\">\n <Bell className=\"h-5 w-5\" />\n <NotificationCountBadge count={3} />\n</IconButton>`,\n },\n ],\n}\n\nconst notificationItemEntry: GalleryEntry = {\n id: 'notification-item',\n title: 'NotificationItem',\n importPath: '@open-mercato/ui/backend/notifications',\n variants: [\n {\n id: 'unread-info',\n title: 'Unread (mocked data)',\n render: () => (\n <div className=\"w-full max-w-md\">\n <NotificationItem\n notification={unreadInfoNotification}\n onMarkAsRead={noopMarkAsRead}\n onExecuteAction={noopExecuteAction}\n onDismiss={noopDismiss}\n t={galleryT}\n />\n </div>\n ),\n code: `import { NotificationItem } from '@open-mercato/ui/backend/notifications'\n\n<NotificationItem\n notification={notification} // NotificationDto with status: 'unread'\n onMarkAsRead={() => markAsRead(notification.id)}\n onExecuteAction={(actionId) => executeAction(notification.id, actionId)}\n onDismiss={() => dismiss(notification.id)}\n t={t}\n/>`,\n },\n {\n id: 'with-body',\n title: 'Read with body bubble (mocked data)',\n render: () => (\n <div className=\"w-full max-w-md\">\n <NotificationItem\n notification={successWithBodyNotification}\n onMarkAsRead={noopMarkAsRead}\n onExecuteAction={noopExecuteAction}\n onDismiss={noopDismiss}\n t={galleryT}\n />\n </div>\n ),\n code: `import { NotificationItem } from '@open-mercato/ui/backend/notifications'\n\n// A notification with a body renders it as a speech-bubble under the title.\n<NotificationItem\n notification={notification} // NotificationDto with body text\n onMarkAsRead={() => markAsRead(notification.id)}\n onExecuteAction={(actionId) => executeAction(notification.id, actionId)}\n onDismiss={() => dismiss(notification.id)}\n t={t}\n/>`,\n },\n {\n id: 'with-actions',\n title: 'Action required (mocked data)',\n render: () => (\n <div className=\"w-full max-w-md\">\n <NotificationItem\n notification={actionRequiredNotification}\n onMarkAsRead={noopMarkAsRead}\n onExecuteAction={noopExecuteAction}\n onDismiss={noopDismiss}\n t={galleryT}\n />\n </div>\n ),\n code: `import { NotificationItem } from '@open-mercato/ui/backend/notifications'\n\n// Actions come from notification.actions; the last one renders as primary.\n<NotificationItem\n notification={notification} // NotificationDto with actions[]\n onMarkAsRead={() => markAsRead(notification.id)}\n onExecuteAction={(actionId) => executeAction(notification.id, actionId)}\n onDismiss={() => dismiss(notification.id)}\n t={t}\n/>`,\n },\n ],\n}\n\nconst notificationPanelEntry: GalleryEntry = {\n id: 'notification-panel',\n title: 'NotificationPanel',\n importPath: '@open-mercato/ui/backend/notifications',\n variants: [\n {\n id: 'mocked-inbox',\n title: 'Mocked inbox (opens in a sheet)',\n render: () => <DemoNotificationPanel />,\n code: `import { NotificationPanel } from '@open-mercato/ui/backend/notifications'\n\nconst [open, setOpen] = React.useState(false)\n\n<NotificationPanel\n open={open}\n onOpenChange={setOpen}\n notifications={notifications} // NotificationDto[]\n unreadCount={unreadCount}\n onMarkAsRead={markAsRead}\n onExecuteAction={executeAction}\n onDismiss={dismiss}\n onMarkAllRead={markAllRead}\n t={t}\n/>`,\n },\n ],\n}\n\nexport const entries: GalleryEntry[] = [\n notificationBellEntry,\n notificationCountBadgeEntry,\n notificationItemEntry,\n notificationPanelEntry,\n]\n"],
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import { useT } from '@open-mercato/shared/lib/i18n/context'\nimport * as React from 'react'\nimport { Bell } from 'lucide-react'\nimport { Button } from '@open-mercato/ui/primitives/button'\nimport { IconButton } from '@open-mercato/ui/primitives/icon-button'\nimport { NotificationCountBadge, NotificationItem, NotificationPanel } from '@open-mercato/ui/backend/notifications'\nimport type { NotificationDto } from '@open-mercato/shared/modules/notifications/types'\nimport type { GalleryEntry } from '../types'\n\n// Component titles and variant names are proper nouns from the codebase and\n// are deliberately not translated. `code` MUST contain the entry's importPath\n// (enforced by the registry-integrity test) and is always reviewed alongside\n// its sibling `render`.\n\n// All previews below run on inline mocked data \u2014 no API calls, no SSE.\n// `NotificationBell` itself is wired to `useNotifications` (SSE + API) and\n// cannot be severed from it, so its entry shows the presentational chrome\n// (bell trigger + `NotificationCountBadge`) instead of mounting the live bell.\nfunction NotificationBellEntryPresentationalMockPreview() {\n const t = useT()\n return (\n <IconButton\n variant=\"ghost\"\n size=\"sm\"\n className=\"relative\"\n aria-label={t('design_system.gallery.samples.content.3UnreadNotifications')}\n >\n <Bell className=\"h-5 w-5\" />\n <NotificationCountBadge count={3} />\n </IconButton>\n )\n}\nfunction NotificationCountBadgeEntryCountsPreview() {\n const t = useT()\n return (\n <>\n <IconButton\n variant=\"ghost\"\n size=\"sm\"\n className=\"relative\"\n aria-label={t('design_system.gallery.samples.content.3UnreadNotifications')}\n >\n <Bell className=\"h-5 w-5\" />\n <NotificationCountBadge count={3} />\n </IconButton>\n <IconButton\n variant=\"ghost\"\n size=\"sm\"\n className=\"relative\"\n aria-label={t('design_system.gallery.samples.content.12UnreadNotifications')}\n >\n <Bell className=\"h-5 w-5\" />\n <NotificationCountBadge count={12} />\n </IconButton>\n <IconButton\n variant=\"ghost\"\n size=\"sm\"\n className=\"relative\"\n aria-label={t('design_system.gallery.samples.content.120UnreadNotifications')}\n >\n <Bell className=\"h-5 w-5\" />\n <NotificationCountBadge count={120} />\n </IconButton>\n </>\n )\n}\nfunction NotificationItemEntryUnreadInfoPreview() {\n const t = useT()\n return (\n <div className=\"w-full max-w-md\">\n <NotificationItem\n notification={unreadInfoNotification(t)}\n onMarkAsRead={noopMarkAsRead}\n onExecuteAction={noopExecuteAction}\n onDismiss={noopDismiss}\n t={t}\n />\n </div>\n )\n}\nfunction NotificationItemEntryWithBodyPreview() {\n const t = useT()\n return (\n <div className=\"w-full max-w-md\">\n <NotificationItem\n notification={successWithBodyNotification(t)}\n onMarkAsRead={noopMarkAsRead}\n onExecuteAction={noopExecuteAction}\n onDismiss={noopDismiss}\n t={t}\n />\n </div>\n )\n}\nfunction NotificationItemEntryWithActionsPreview() {\n const t = useT()\n return (\n <div className=\"w-full max-w-md\">\n <NotificationItem\n notification={actionRequiredNotification(t)}\n onMarkAsRead={noopMarkAsRead}\n onExecuteAction={noopExecuteAction}\n onDismiss={noopDismiss}\n t={t}\n />\n </div>\n )\n}\nconst minutesAgo = (minutes: number) => new Date(Date.now() - minutes * 60_000).toISOString()\nconst noopMarkAsRead = async () => {}\nconst noopDismiss = async () => {}\nconst noopExecuteAction = async () => ({})\nfunction mockNotification(overrides: Partial<NotificationDto> & Pick<NotificationDto, 'title'>): NotificationDto {\n return {\n id: 'gallery-notification',\n type: 'gallery.demo',\n severity: 'info',\n status: 'unread',\n actions: [],\n createdAt: minutesAgo(5),\n ...overrides,\n }\n}\nconst unreadInfoNotification = (t: ReturnType<typeof useT>) =>\n mockNotification({\n id: 'gallery-unread-info',\n title: t('design_system.gallery.samples.content.nightlyImportFinished'),\n severity: 'info',\n status: 'unread',\n sourceModule: 'catalog',\n createdAt: minutesAgo(4),\n })\nconst successWithBodyNotification = (t: ReturnType<typeof useT>) =>\n mockNotification({\n id: 'gallery-success-body',\n title: t('design_system.gallery.samples.content.order10023Shipped'),\n body: t('design_system.gallery.samples.content.carrierPickedUp3ParcelsTrackingNumbersWereEmailedToTheCustomer'),\n severity: 'success',\n status: 'read',\n sourceModule: 'sales',\n createdAt: minutesAgo(35),\n })\nconst actionRequiredNotification = (t: ReturnType<typeof useT>) =>\n mockNotification({\n id: 'gallery-action-required',\n title: t('design_system.gallery.samples.content.priceListAwaitingApproval'),\n body: t('design_system.gallery.samples.content.wholesaleEuPriceListChanges214Products'),\n severity: 'warning',\n status: 'unread',\n sourceModule: 'pricing',\n actions: [\n {\n id: 'review',\n label: t('design_system.gallery.samples.content.reviewChanges'),\n variant: 'outline',\n },\n {\n id: 'approve',\n label: t('design_system.gallery.samples.content.approve'),\n variant: 'default',\n },\n ],\n createdAt: minutesAgo(90),\n })\nconst panelNotifications = (t: ReturnType<typeof useT>): NotificationDto[] => [\n unreadInfoNotification(t),\n actionRequiredNotification(t),\n successWithBodyNotification(t),\n]\nfunction DemoNotificationPanel() {\n const t = useT()\n const [open, setOpen] = React.useState(false)\n return (\n <>\n <Button variant=\"outline\" onClick={() => setOpen(true)}>\n {t('design_system.gallery.samples.content.openNotificationPanel')}\n </Button>\n <NotificationPanel\n open={open}\n onOpenChange={setOpen}\n notifications={panelNotifications(t)}\n unreadCount={2}\n onMarkAsRead={noopMarkAsRead}\n onExecuteAction={noopExecuteAction}\n onDismiss={noopDismiss}\n onMarkAllRead={noopMarkAsRead}\n t={t}\n />\n </>\n )\n}\nconst notificationBellEntry: GalleryEntry = {\n id: 'notification-bell',\n title: 'NotificationBell',\n importPath: '@open-mercato/ui/backend/notifications',\n variants: [\n {\n id: 'presentational-mock',\n title: 'Presentational mock (live bell is SSE-wired)',\n render: () => <NotificationBellEntryPresentationalMockPreview />,\n code: `import { NotificationBell } from '@open-mercato/ui/backend/notifications'\n\n// Wired to the notifications API + SSE \u2014 AppShell renders one in the topbar.\n<NotificationBell t={t} />`,\n },\n ],\n}\nconst notificationCountBadgeEntry: GalleryEntry = {\n id: 'notification-count-badge',\n title: 'NotificationCountBadge',\n importPath: '@open-mercato/ui/backend/notifications',\n variants: [\n {\n id: 'counts',\n title: 'Counts (caps at 99+)',\n render: () => <NotificationCountBadgeEntryCountsPreview />,\n code: `import { NotificationCountBadge } from '@open-mercato/ui/backend/notifications'\n\n// Renders nothing for count <= 0; anchors to the nearest relative parent.\n<IconButton variant=\"ghost\" size=\"sm\" className=\"relative\" aria-label=\"3 unread notifications\">\n <Bell className=\"h-5 w-5\" />\n <NotificationCountBadge count={3} />\n</IconButton>`,\n },\n ],\n}\nconst notificationItemEntry: GalleryEntry = {\n id: 'notification-item',\n title: 'NotificationItem',\n importPath: '@open-mercato/ui/backend/notifications',\n variants: [\n {\n id: 'unread-info',\n title: 'Unread (mocked data)',\n render: () => <NotificationItemEntryUnreadInfoPreview />,\n code: `import { NotificationItem } from '@open-mercato/ui/backend/notifications'\n\n<NotificationItem\n notification={notification} // NotificationDto with status: 'unread'\n onMarkAsRead={() => markAsRead(notification.id)}\n onExecuteAction={(actionId) => executeAction(notification.id, actionId)}\n onDismiss={() => dismiss(notification.id)}\n t={t}\n/>`,\n },\n {\n id: 'with-body',\n title: 'Read with body bubble (mocked data)',\n render: () => <NotificationItemEntryWithBodyPreview />,\n code: `import { NotificationItem } from '@open-mercato/ui/backend/notifications'\n\n// A notification with a body renders it as a speech-bubble under the title.\n<NotificationItem\n notification={notification} // NotificationDto with body text\n onMarkAsRead={() => markAsRead(notification.id)}\n onExecuteAction={(actionId) => executeAction(notification.id, actionId)}\n onDismiss={() => dismiss(notification.id)}\n t={t}\n/>`,\n },\n {\n id: 'with-actions',\n title: 'Action required (mocked data)',\n render: () => <NotificationItemEntryWithActionsPreview />,\n code: `import { NotificationItem } from '@open-mercato/ui/backend/notifications'\n\n// Actions come from notification.actions; the last one renders as primary.\n<NotificationItem\n notification={notification} // NotificationDto with actions[]\n onMarkAsRead={() => markAsRead(notification.id)}\n onExecuteAction={(actionId) => executeAction(notification.id, actionId)}\n onDismiss={() => dismiss(notification.id)}\n t={t}\n/>`,\n },\n ],\n}\nconst notificationPanelEntry: GalleryEntry = {\n id: 'notification-panel',\n title: 'NotificationPanel',\n importPath: '@open-mercato/ui/backend/notifications',\n variants: [\n {\n id: 'mocked-inbox',\n title: 'Mocked inbox (opens in a sheet)',\n render: () => <DemoNotificationPanel />,\n code: `import { NotificationPanel } from '@open-mercato/ui/backend/notifications'\n\nconst [open, setOpen] = React.useState(false)\n\n<NotificationPanel\n open={open}\n onOpenChange={setOpen}\n notifications={notifications} // NotificationDto[]\n unreadCount={unreadCount}\n onMarkAsRead={markAsRead}\n onExecuteAction={executeAction}\n onDismiss={dismiss}\n onMarkAllRead={markAllRead}\n t={t}\n/>`,\n },\n ],\n}\nexport const entries: GalleryEntry[] = [\n notificationBellEntry,\n notificationCountBadgeEntry,\n notificationItemEntry,\n notificationPanelEntry,\n]\n"],
|
|
5
|
+
"mappings": "AAqBI,SAcA,UARE,KANF;AArBJ,SAAS,YAAY;AACrB,YAAY,WAAW;AACvB,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,SAAS,kBAAkB;AAC3B,SAAS,wBAAwB,kBAAkB,yBAAyB;AAa5E,SAAS,iDAAiD;AACxD,QAAM,IAAI,KAAK;AACf,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,WAAU;AAAA,MACV,cAAY,EAAE,4DAA4D;AAAA,MAE1E;AAAA,4BAAC,QAAK,WAAU,WAAU;AAAA,QAC1B,oBAAC,0BAAuB,OAAO,GAAG;AAAA;AAAA;AAAA,EACpC;AAEJ;AACA,SAAS,2CAA2C;AAClD,QAAM,IAAI,KAAK;AACf,SACE,iCACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,WAAU;AAAA,QACV,cAAY,EAAE,4DAA4D;AAAA,QAE1E;AAAA,8BAAC,QAAK,WAAU,WAAU;AAAA,UAC1B,oBAAC,0BAAuB,OAAO,GAAG;AAAA;AAAA;AAAA,IACpC;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,WAAU;AAAA,QACV,cAAY,EAAE,6DAA6D;AAAA,QAE3E;AAAA,8BAAC,QAAK,WAAU,WAAU;AAAA,UAC1B,oBAAC,0BAAuB,OAAO,IAAI;AAAA;AAAA;AAAA,IACrC;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA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