@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,4 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useT } from "@open-mercato/shared/lib/i18n/context";
|
|
3
|
+
import { MarketingWidgetDemo } from "../demos/marketing-widgets.js";
|
|
4
|
+
import { marketingWidgetExampleCode } from "../demos/marketing-widgets-code.generated.js";
|
|
2
5
|
import {
|
|
3
6
|
BarChart,
|
|
4
7
|
DeltaBadge,
|
|
@@ -8,49 +11,409 @@ import {
|
|
|
8
11
|
Sparkline,
|
|
9
12
|
TopNTable
|
|
10
13
|
} from "@open-mercato/ui/backend/charts";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
function KpiCardEntryDeltaBadgePreview() {
|
|
15
|
+
const t = useT();
|
|
16
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
17
|
+
/* @__PURE__ */ jsx(DeltaBadge, { direction: "up", value: 12.4 }),
|
|
18
|
+
/* @__PURE__ */ jsx(DeltaBadge, { direction: "down", value: 4.7 }),
|
|
19
|
+
/* @__PURE__ */ jsx(DeltaBadge, { direction: "unchanged", value: 0 }),
|
|
20
|
+
/* @__PURE__ */ jsx(DeltaBadge, { direction: "up", value: 38, unit: t("design_system.gallery.samples.content.pts") })
|
|
21
|
+
] });
|
|
22
|
+
}
|
|
23
|
+
function SparklineEntryDefaultPreview() {
|
|
24
|
+
const t = useT();
|
|
25
|
+
return /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: /* @__PURE__ */ jsx(Sparkline, { values: weeklyOrdersTrend, ariaLabel: t("design_system.gallery.samples.content.weeklyOrdersTrend") }) });
|
|
26
|
+
}
|
|
27
|
+
function SparklineEntrySemanticColorPreview() {
|
|
28
|
+
const t = useT();
|
|
29
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-6", children: [
|
|
30
|
+
/* @__PURE__ */ jsx("span", { className: "text-primary", children: /* @__PURE__ */ jsx(Sparkline, { values: weeklyOrdersTrend, ariaLabel: t("design_system.gallery.samples.content.ordersTrendingUp") }) }),
|
|
31
|
+
/* @__PURE__ */ jsx("span", { className: "text-destructive", children: /* @__PURE__ */ jsx(
|
|
32
|
+
Sparkline,
|
|
33
|
+
{
|
|
34
|
+
values: [...weeklyOrdersTrend].reverse(),
|
|
35
|
+
ariaLabel: t("design_system.gallery.samples.content.returnsTrendingDown")
|
|
36
|
+
}
|
|
37
|
+
) })
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
40
|
+
function SparklineEntrySizesPreview() {
|
|
41
|
+
const t = useT();
|
|
42
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-end gap-6 text-muted-foreground", children: [
|
|
43
|
+
/* @__PURE__ */ jsx(
|
|
44
|
+
Sparkline,
|
|
45
|
+
{
|
|
46
|
+
values: weeklyOrdersTrend,
|
|
47
|
+
ariaLabel: t("design_system.gallery.samples.content.smallTrend"),
|
|
48
|
+
width: 64,
|
|
49
|
+
height: 20
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ jsx(Sparkline, { values: weeklyOrdersTrend, ariaLabel: t("design_system.gallery.samples.content.defaultTrend") }),
|
|
53
|
+
/* @__PURE__ */ jsx(
|
|
54
|
+
Sparkline,
|
|
55
|
+
{
|
|
56
|
+
values: weeklyOrdersTrend,
|
|
57
|
+
ariaLabel: t("design_system.gallery.samples.content.largeTrend"),
|
|
58
|
+
width: 160,
|
|
59
|
+
height: 40
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] });
|
|
63
|
+
}
|
|
64
|
+
function KpiCardEntryTrendDirectionsPreview() {
|
|
65
|
+
const t = useT();
|
|
66
|
+
return /* @__PURE__ */ jsxs("div", { className: "grid w-full max-w-3xl grid-cols-1 gap-4 sm:grid-cols-3", children: [
|
|
67
|
+
/* @__PURE__ */ jsx(
|
|
68
|
+
KpiCard,
|
|
69
|
+
{
|
|
70
|
+
title: t("design_system.gallery.samples.content.revenue"),
|
|
71
|
+
value: 67300,
|
|
72
|
+
prefix: "\u20AC",
|
|
73
|
+
trend: {
|
|
74
|
+
value: 14.8,
|
|
75
|
+
direction: "up"
|
|
76
|
+
},
|
|
77
|
+
comparisonLabel: t("design_system.gallery.samples.content.vsPreviousMonth")
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
KpiCard,
|
|
82
|
+
{
|
|
83
|
+
title: t("design_system.gallery.samples.content.cancelledOrders"),
|
|
84
|
+
value: 22,
|
|
85
|
+
trend: {
|
|
86
|
+
value: 6.1,
|
|
87
|
+
direction: "down"
|
|
88
|
+
},
|
|
89
|
+
comparisonLabel: t("design_system.gallery.samples.content.vsPreviousMonth")
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
/* @__PURE__ */ jsx(
|
|
93
|
+
KpiCard,
|
|
94
|
+
{
|
|
95
|
+
title: t("design_system.gallery.samples.content.activeCustomers"),
|
|
96
|
+
value: 1284,
|
|
97
|
+
trend: {
|
|
98
|
+
value: 0,
|
|
99
|
+
direction: "unchanged"
|
|
100
|
+
},
|
|
101
|
+
comparisonLabel: t("design_system.gallery.samples.content.vsPreviousMonth")
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
] });
|
|
105
|
+
}
|
|
106
|
+
function KpiCardEntrySuffixAndFooterPreview() {
|
|
107
|
+
const t = useT();
|
|
108
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-xs", children: /* @__PURE__ */ jsx(
|
|
109
|
+
KpiCard,
|
|
110
|
+
{
|
|
111
|
+
title: t("design_system.gallery.samples.content.averageOrderValue"),
|
|
112
|
+
value: 86.4,
|
|
113
|
+
prefix: "\u20AC",
|
|
114
|
+
suffix: t("design_system.gallery.samples.content.net"),
|
|
115
|
+
trend: {
|
|
116
|
+
value: 3.2,
|
|
117
|
+
direction: "up"
|
|
118
|
+
},
|
|
119
|
+
footer: /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: /* @__PURE__ */ jsx(
|
|
120
|
+
Sparkline,
|
|
121
|
+
{
|
|
122
|
+
values: weeklyOrdersTrend,
|
|
123
|
+
ariaLabel: t("design_system.gallery.samples.content.weeklyOrdersTrend")
|
|
124
|
+
}
|
|
125
|
+
) })
|
|
126
|
+
}
|
|
127
|
+
) });
|
|
128
|
+
}
|
|
129
|
+
function KpiCardEntryStatesPreview() {
|
|
130
|
+
const t = useT();
|
|
131
|
+
return /* @__PURE__ */ jsxs("div", { className: "grid w-full max-w-3xl grid-cols-1 gap-4 sm:grid-cols-3", children: [
|
|
132
|
+
/* @__PURE__ */ jsx(KpiCard, { title: t("design_system.gallery.samples.content.loading"), value: null, loading: true }),
|
|
133
|
+
/* @__PURE__ */ jsx(
|
|
134
|
+
KpiCard,
|
|
135
|
+
{
|
|
136
|
+
title: t("design_system.gallery.samples.content.error"),
|
|
137
|
+
value: null,
|
|
138
|
+
error: t("design_system.gallery.samples.content.failedToLoadMetric")
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
/* @__PURE__ */ jsx(KpiCard, { title: t("design_system.gallery.samples.content.noData"), value: null })
|
|
142
|
+
] });
|
|
143
|
+
}
|
|
144
|
+
function BarChartEntryBasicPreview() {
|
|
145
|
+
const t = useT();
|
|
146
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ jsx(
|
|
147
|
+
BarChart,
|
|
148
|
+
{
|
|
149
|
+
title: t("design_system.gallery.samples.content.revenueByMonth"),
|
|
150
|
+
data: revenueByMonth(t),
|
|
151
|
+
index: "month",
|
|
152
|
+
categories: ["revenue"],
|
|
153
|
+
showLegend: false
|
|
154
|
+
}
|
|
155
|
+
) });
|
|
156
|
+
}
|
|
157
|
+
function BarChartEntryHorizontalPreview() {
|
|
158
|
+
const t = useT();
|
|
159
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ jsx(
|
|
160
|
+
BarChart,
|
|
161
|
+
{
|
|
162
|
+
title: t("design_system.gallery.samples.content.revenueByChannel"),
|
|
163
|
+
data: revenueByChannel(t),
|
|
164
|
+
index: "channel",
|
|
165
|
+
categories: ["revenue"],
|
|
166
|
+
layout: "horizontal",
|
|
167
|
+
showLegend: false
|
|
168
|
+
}
|
|
169
|
+
) });
|
|
170
|
+
}
|
|
171
|
+
function BarChartEntryMultiSeriesPreview() {
|
|
172
|
+
const t = useT();
|
|
173
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ jsx(
|
|
174
|
+
BarChart,
|
|
175
|
+
{
|
|
176
|
+
title: t("design_system.gallery.samples.content.ordersByMonth"),
|
|
177
|
+
data: ordersByMonth(t),
|
|
178
|
+
index: "month",
|
|
179
|
+
categories: ["online", "retail"],
|
|
180
|
+
categoryLabels: {
|
|
181
|
+
online: t("design_system.gallery.samples.content.online"),
|
|
182
|
+
retail: t("design_system.gallery.samples.content.retail")
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
) });
|
|
186
|
+
}
|
|
187
|
+
function LineChartEntryBasicPreview() {
|
|
188
|
+
const t = useT();
|
|
189
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ jsx(
|
|
190
|
+
LineChart,
|
|
191
|
+
{
|
|
192
|
+
title: t("design_system.gallery.samples.content.revenueByMonth"),
|
|
193
|
+
data: revenueByMonth(t),
|
|
194
|
+
index: "month",
|
|
195
|
+
categories: ["revenue"],
|
|
196
|
+
showLegend: false
|
|
197
|
+
}
|
|
198
|
+
) });
|
|
199
|
+
}
|
|
200
|
+
function LineChartEntryAreaPreview() {
|
|
201
|
+
const t = useT();
|
|
202
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ jsx(
|
|
203
|
+
LineChart,
|
|
204
|
+
{
|
|
205
|
+
title: t("design_system.gallery.samples.content.revenueByMonth"),
|
|
206
|
+
data: revenueByMonth(t),
|
|
207
|
+
index: "month",
|
|
208
|
+
categories: ["revenue"],
|
|
209
|
+
showArea: true,
|
|
210
|
+
showLegend: false
|
|
211
|
+
}
|
|
212
|
+
) });
|
|
213
|
+
}
|
|
214
|
+
function LineChartEntryMultiSeriesPreview() {
|
|
215
|
+
const t = useT();
|
|
216
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ jsx(
|
|
217
|
+
LineChart,
|
|
218
|
+
{
|
|
219
|
+
title: t("design_system.gallery.samples.content.ordersByMonth"),
|
|
220
|
+
data: ordersByMonth(t),
|
|
221
|
+
index: "month",
|
|
222
|
+
categories: ["online", "retail"],
|
|
223
|
+
categoryLabels: {
|
|
224
|
+
online: t("design_system.gallery.samples.content.online"),
|
|
225
|
+
retail: t("design_system.gallery.samples.content.retail")
|
|
226
|
+
},
|
|
227
|
+
curveType: "monotone"
|
|
228
|
+
}
|
|
229
|
+
) });
|
|
230
|
+
}
|
|
231
|
+
function PieChartEntryPiePreview() {
|
|
232
|
+
const t = useT();
|
|
233
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-md", children: /* @__PURE__ */ jsx(PieChart, { title: t("design_system.gallery.samples.content.ordersByStatus"), data: ordersByStatus(t) }) });
|
|
234
|
+
}
|
|
235
|
+
function PieChartEntryDonutPreview() {
|
|
236
|
+
const t = useT();
|
|
237
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-md", children: /* @__PURE__ */ jsx(
|
|
238
|
+
PieChart,
|
|
239
|
+
{
|
|
240
|
+
title: t("design_system.gallery.samples.content.ordersByStatus"),
|
|
241
|
+
data: ordersByStatus(t),
|
|
242
|
+
variant: "donut"
|
|
243
|
+
}
|
|
244
|
+
) });
|
|
245
|
+
}
|
|
246
|
+
function TopNTableEntryBasicPreview() {
|
|
247
|
+
const t = useT();
|
|
248
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ jsx(
|
|
249
|
+
TopNTable,
|
|
250
|
+
{
|
|
251
|
+
title: t("design_system.gallery.samples.content.topProducts"),
|
|
252
|
+
data: topProducts(t),
|
|
253
|
+
columns: topProductColumns(t)
|
|
254
|
+
}
|
|
255
|
+
) });
|
|
256
|
+
}
|
|
257
|
+
function TopNTableEntryMaxRowsPreview() {
|
|
258
|
+
const t = useT();
|
|
259
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ jsx(
|
|
260
|
+
TopNTable,
|
|
261
|
+
{
|
|
262
|
+
title: t("design_system.gallery.samples.content.top3Products"),
|
|
263
|
+
data: topProducts(t),
|
|
264
|
+
columns: topProductColumns(t),
|
|
265
|
+
maxRows: 3
|
|
266
|
+
}
|
|
267
|
+
) });
|
|
268
|
+
}
|
|
269
|
+
function TopNTableEntryEmptyPreview() {
|
|
270
|
+
const t = useT();
|
|
271
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ jsx(
|
|
272
|
+
TopNTable,
|
|
273
|
+
{
|
|
274
|
+
title: t("design_system.gallery.samples.content.topProducts"),
|
|
275
|
+
data: [],
|
|
276
|
+
columns: topProductColumns(t),
|
|
277
|
+
emptyMessage: t("design_system.gallery.samples.content.noSalesInThisPeriod")
|
|
278
|
+
}
|
|
279
|
+
) });
|
|
280
|
+
}
|
|
281
|
+
const revenueByMonth = (t) => [
|
|
282
|
+
{
|
|
283
|
+
month: t("design_system.gallery.samples.content.jan"),
|
|
284
|
+
revenue: 48200
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
month: t("design_system.gallery.samples.content.feb"),
|
|
288
|
+
revenue: 51400
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
month: t("design_system.gallery.samples.content.mar"),
|
|
292
|
+
revenue: 47900
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
month: t("design_system.gallery.samples.content.apr"),
|
|
296
|
+
revenue: 61200
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
month: t("design_system.gallery.samples.content.may"),
|
|
300
|
+
revenue: 58600
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
month: t("design_system.gallery.samples.content.jun"),
|
|
304
|
+
revenue: 67300
|
|
305
|
+
}
|
|
18
306
|
];
|
|
19
|
-
const revenueByChannel = [
|
|
20
|
-
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
307
|
+
const revenueByChannel = (t) => [
|
|
308
|
+
{
|
|
309
|
+
channel: t("design_system.gallery.samples.content.onlineStore"),
|
|
310
|
+
revenue: 182400
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
channel: t("design_system.gallery.samples.content.marketplace"),
|
|
314
|
+
revenue: 96800
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
channel: t("design_system.gallery.samples.content.retail"),
|
|
318
|
+
revenue: 64200
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
channel: t("design_system.gallery.samples.content.wholesale"),
|
|
322
|
+
revenue: 41500
|
|
323
|
+
}
|
|
24
324
|
];
|
|
25
|
-
const ordersByMonth = [
|
|
26
|
-
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
{
|
|
325
|
+
const ordersByMonth = (t) => [
|
|
326
|
+
{
|
|
327
|
+
month: t("design_system.gallery.samples.content.jan"),
|
|
328
|
+
online: 320,
|
|
329
|
+
retail: 180
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
month: t("design_system.gallery.samples.content.feb"),
|
|
333
|
+
online: 348,
|
|
334
|
+
retail: 164
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
month: t("design_system.gallery.samples.content.mar"),
|
|
338
|
+
online: 331,
|
|
339
|
+
retail: 196
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
month: t("design_system.gallery.samples.content.apr"),
|
|
343
|
+
online: 402,
|
|
344
|
+
retail: 214
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
month: t("design_system.gallery.samples.content.may"),
|
|
348
|
+
online: 389,
|
|
349
|
+
retail: 205
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
month: t("design_system.gallery.samples.content.jun"),
|
|
353
|
+
online: 446,
|
|
354
|
+
retail: 232
|
|
355
|
+
}
|
|
32
356
|
];
|
|
33
|
-
const ordersByStatus = [
|
|
34
|
-
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
357
|
+
const ordersByStatus = (t) => [
|
|
358
|
+
{
|
|
359
|
+
name: t("design_system.gallery.samples.content.completed"),
|
|
360
|
+
value: 268
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
name: t("design_system.gallery.samples.content.processing"),
|
|
364
|
+
value: 84
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
name: t("design_system.gallery.samples.content.pendingPayment"),
|
|
368
|
+
value: 37
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
name: t("design_system.gallery.samples.content.cancelled"),
|
|
372
|
+
value: 22
|
|
373
|
+
}
|
|
38
374
|
];
|
|
39
375
|
const weeklyOrdersTrend = [12, 18, 14, 22, 19, 27, 24, 31, 28, 35, 33, 41];
|
|
40
|
-
const topProducts = [
|
|
41
|
-
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
376
|
+
const topProducts = (t) => [
|
|
377
|
+
{
|
|
378
|
+
product: t("design_system.gallery.samples.content.auroraDeskLamp"),
|
|
379
|
+
orders: 412,
|
|
380
|
+
revenue: 28840
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
product: t("design_system.gallery.samples.content.birchSideTable"),
|
|
384
|
+
orders: 366,
|
|
385
|
+
revenue: 47580
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
product: t("design_system.gallery.samples.content.linenThrowPillow"),
|
|
389
|
+
orders: 341,
|
|
390
|
+
revenue: 11935
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
product: t("design_system.gallery.samples.content.oakBookshelf"),
|
|
394
|
+
orders: 214,
|
|
395
|
+
revenue: 53500
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
product: t("design_system.gallery.samples.content.ceramicVaseSet"),
|
|
399
|
+
orders: 198,
|
|
400
|
+
revenue: 8910
|
|
401
|
+
}
|
|
46
402
|
];
|
|
47
403
|
const formatCurrency = (value) => `\u20AC${value.toLocaleString("en-US")}`;
|
|
48
|
-
const topProductColumns = [
|
|
49
|
-
{
|
|
50
|
-
|
|
404
|
+
const topProductColumns = (t) => [
|
|
405
|
+
{
|
|
406
|
+
key: "product",
|
|
407
|
+
header: t("design_system.gallery.samples.content.product")
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
key: "orders",
|
|
411
|
+
header: t("design_system.gallery.samples.content.orders"),
|
|
412
|
+
align: "right"
|
|
413
|
+
},
|
|
51
414
|
{
|
|
52
415
|
key: "revenue",
|
|
53
|
-
header: "
|
|
416
|
+
header: t("design_system.gallery.samples.content.revenue"),
|
|
54
417
|
align: "right",
|
|
55
418
|
formatter: (value) => formatCurrency(value)
|
|
56
419
|
}
|
|
@@ -63,36 +426,7 @@ const kpiCardEntry = {
|
|
|
63
426
|
{
|
|
64
427
|
id: "trend-directions",
|
|
65
428
|
title: "Trend directions",
|
|
66
|
-
render: () => /* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */ jsx(
|
|
68
|
-
KpiCard,
|
|
69
|
-
{
|
|
70
|
-
title: "Revenue",
|
|
71
|
-
value: 67300,
|
|
72
|
-
prefix: "\u20AC",
|
|
73
|
-
trend: { value: 14.8, direction: "up" },
|
|
74
|
-
comparisonLabel: "vs. previous month"
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
/* @__PURE__ */ jsx(
|
|
78
|
-
KpiCard,
|
|
79
|
-
{
|
|
80
|
-
title: "Cancelled orders",
|
|
81
|
-
value: 22,
|
|
82
|
-
trend: { value: 6.1, direction: "down" },
|
|
83
|
-
comparisonLabel: "vs. previous month"
|
|
84
|
-
}
|
|
85
|
-
),
|
|
86
|
-
/* @__PURE__ */ jsx(
|
|
87
|
-
KpiCard,
|
|
88
|
-
{
|
|
89
|
-
title: "Active customers",
|
|
90
|
-
value: 1284,
|
|
91
|
-
trend: { value: 0, direction: "unchanged" },
|
|
92
|
-
comparisonLabel: "vs. previous month"
|
|
93
|
-
}
|
|
94
|
-
)
|
|
95
|
-
] }),
|
|
429
|
+
render: () => /* @__PURE__ */ jsx(KpiCardEntryTrendDirectionsPreview, {}),
|
|
96
430
|
code: `import { KpiCard } from '@open-mercato/ui/backend/charts'
|
|
97
431
|
|
|
98
432
|
<KpiCard
|
|
@@ -106,17 +440,7 @@ const kpiCardEntry = {
|
|
|
106
440
|
{
|
|
107
441
|
id: "suffix-and-footer",
|
|
108
442
|
title: "Suffix and footer slot",
|
|
109
|
-
render: () => /* @__PURE__ */ jsx(
|
|
110
|
-
KpiCard,
|
|
111
|
-
{
|
|
112
|
-
title: "Average order value",
|
|
113
|
-
value: 86.4,
|
|
114
|
-
prefix: "\u20AC",
|
|
115
|
-
suffix: "net",
|
|
116
|
-
trend: { value: 3.2, direction: "up" },
|
|
117
|
-
footer: /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: /* @__PURE__ */ jsx(Sparkline, { values: weeklyOrdersTrend, ariaLabel: "Weekly orders trend" }) })
|
|
118
|
-
}
|
|
119
|
-
) }),
|
|
443
|
+
render: () => /* @__PURE__ */ jsx(KpiCardEntrySuffixAndFooterPreview, {}),
|
|
120
444
|
code: `import { KpiCard, Sparkline } from '@open-mercato/ui/backend/charts'
|
|
121
445
|
|
|
122
446
|
<KpiCard
|
|
@@ -131,11 +455,7 @@ const kpiCardEntry = {
|
|
|
131
455
|
{
|
|
132
456
|
id: "states",
|
|
133
457
|
title: "Loading, error and empty states",
|
|
134
|
-
render: () => /* @__PURE__ */
|
|
135
|
-
/* @__PURE__ */ jsx(KpiCard, { title: "Loading", value: null, loading: true }),
|
|
136
|
-
/* @__PURE__ */ jsx(KpiCard, { title: "Error", value: null, error: "Failed to load metric" }),
|
|
137
|
-
/* @__PURE__ */ jsx(KpiCard, { title: "No data", value: null })
|
|
138
|
-
] }),
|
|
458
|
+
render: () => /* @__PURE__ */ jsx(KpiCardEntryStatesPreview, {}),
|
|
139
459
|
code: `import { KpiCard } from '@open-mercato/ui/backend/charts'
|
|
140
460
|
|
|
141
461
|
<KpiCard title="Loading" value={null} loading />
|
|
@@ -145,12 +465,7 @@ const kpiCardEntry = {
|
|
|
145
465
|
{
|
|
146
466
|
id: "delta-badge",
|
|
147
467
|
title: "DeltaBadge (standalone)",
|
|
148
|
-
render: () => /* @__PURE__ */
|
|
149
|
-
/* @__PURE__ */ jsx(DeltaBadge, { direction: "up", value: 12.4 }),
|
|
150
|
-
/* @__PURE__ */ jsx(DeltaBadge, { direction: "down", value: 4.7 }),
|
|
151
|
-
/* @__PURE__ */ jsx(DeltaBadge, { direction: "unchanged", value: 0 }),
|
|
152
|
-
/* @__PURE__ */ jsx(DeltaBadge, { direction: "up", value: 38, unit: " pts" })
|
|
153
|
-
] }),
|
|
468
|
+
render: () => /* @__PURE__ */ jsx(KpiCardEntryDeltaBadgePreview, {}),
|
|
154
469
|
code: `import { DeltaBadge } from '@open-mercato/ui/backend/charts'
|
|
155
470
|
|
|
156
471
|
<DeltaBadge direction="up" value={12.4} />
|
|
@@ -168,7 +483,7 @@ const sparklineEntry = {
|
|
|
168
483
|
{
|
|
169
484
|
id: "default",
|
|
170
485
|
title: "default",
|
|
171
|
-
render: () => /* @__PURE__ */ jsx(
|
|
486
|
+
render: () => /* @__PURE__ */ jsx(SparklineEntryDefaultPreview, {}),
|
|
172
487
|
code: `import { Sparkline } from '@open-mercato/ui/backend/charts'
|
|
173
488
|
|
|
174
489
|
<Sparkline values={[12, 18, 14, 22, 19, 27, 24, 31]} ariaLabel="Weekly orders trend" />`
|
|
@@ -176,16 +491,7 @@ const sparklineEntry = {
|
|
|
176
491
|
{
|
|
177
492
|
id: "semantic-color",
|
|
178
493
|
title: "Colored via currentColor",
|
|
179
|
-
render: () => /* @__PURE__ */
|
|
180
|
-
/* @__PURE__ */ jsx("span", { className: "text-primary", children: /* @__PURE__ */ jsx(Sparkline, { values: weeklyOrdersTrend, ariaLabel: "Orders trending up" }) }),
|
|
181
|
-
/* @__PURE__ */ jsx("span", { className: "text-destructive", children: /* @__PURE__ */ jsx(
|
|
182
|
-
Sparkline,
|
|
183
|
-
{
|
|
184
|
-
values: [...weeklyOrdersTrend].reverse(),
|
|
185
|
-
ariaLabel: "Returns trending down"
|
|
186
|
-
}
|
|
187
|
-
) })
|
|
188
|
-
] }),
|
|
494
|
+
render: () => /* @__PURE__ */ jsx(SparklineEntrySemanticColorPreview, {}),
|
|
189
495
|
code: `import { Sparkline } from '@open-mercato/ui/backend/charts'
|
|
190
496
|
|
|
191
497
|
// Sparkline strokes with currentColor \u2014 set a semantic text token on the wrapper.
|
|
@@ -196,11 +502,7 @@ const sparklineEntry = {
|
|
|
196
502
|
{
|
|
197
503
|
id: "sizes",
|
|
198
504
|
title: "Custom width and height",
|
|
199
|
-
render: () => /* @__PURE__ */
|
|
200
|
-
/* @__PURE__ */ jsx(Sparkline, { values: weeklyOrdersTrend, ariaLabel: "Small trend", width: 64, height: 20 }),
|
|
201
|
-
/* @__PURE__ */ jsx(Sparkline, { values: weeklyOrdersTrend, ariaLabel: "Default trend" }),
|
|
202
|
-
/* @__PURE__ */ jsx(Sparkline, { values: weeklyOrdersTrend, ariaLabel: "Large trend", width: 160, height: 40 })
|
|
203
|
-
] }),
|
|
505
|
+
render: () => /* @__PURE__ */ jsx(SparklineEntrySizesPreview, {}),
|
|
204
506
|
code: `import { Sparkline } from '@open-mercato/ui/backend/charts'
|
|
205
507
|
|
|
206
508
|
<Sparkline values={values} ariaLabel="Small trend" width={64} height={20} />
|
|
@@ -217,16 +519,7 @@ const barChartEntry = {
|
|
|
217
519
|
{
|
|
218
520
|
id: "basic",
|
|
219
521
|
title: "Basic (revenue by month)",
|
|
220
|
-
render: () => /* @__PURE__ */ jsx(
|
|
221
|
-
BarChart,
|
|
222
|
-
{
|
|
223
|
-
title: "Revenue by month",
|
|
224
|
-
data: revenueByMonth,
|
|
225
|
-
index: "month",
|
|
226
|
-
categories: ["revenue"],
|
|
227
|
-
showLegend: false
|
|
228
|
-
}
|
|
229
|
-
) }),
|
|
522
|
+
render: () => /* @__PURE__ */ jsx(BarChartEntryBasicPreview, {}),
|
|
230
523
|
code: `import { BarChart } from '@open-mercato/ui/backend/charts'
|
|
231
524
|
|
|
232
525
|
<BarChart
|
|
@@ -240,17 +533,7 @@ const barChartEntry = {
|
|
|
240
533
|
{
|
|
241
534
|
id: "horizontal",
|
|
242
535
|
title: "Horizontal layout",
|
|
243
|
-
render: () => /* @__PURE__ */ jsx(
|
|
244
|
-
BarChart,
|
|
245
|
-
{
|
|
246
|
-
title: "Revenue by channel",
|
|
247
|
-
data: revenueByChannel,
|
|
248
|
-
index: "channel",
|
|
249
|
-
categories: ["revenue"],
|
|
250
|
-
layout: "horizontal",
|
|
251
|
-
showLegend: false
|
|
252
|
-
}
|
|
253
|
-
) }),
|
|
536
|
+
render: () => /* @__PURE__ */ jsx(BarChartEntryHorizontalPreview, {}),
|
|
254
537
|
code: `import { BarChart } from '@open-mercato/ui/backend/charts'
|
|
255
538
|
|
|
256
539
|
<BarChart
|
|
@@ -265,16 +548,7 @@ const barChartEntry = {
|
|
|
265
548
|
{
|
|
266
549
|
id: "multi-series",
|
|
267
550
|
title: "Multiple series with legend",
|
|
268
|
-
render: () => /* @__PURE__ */ jsx(
|
|
269
|
-
BarChart,
|
|
270
|
-
{
|
|
271
|
-
title: "Orders by month",
|
|
272
|
-
data: ordersByMonth,
|
|
273
|
-
index: "month",
|
|
274
|
-
categories: ["online", "retail"],
|
|
275
|
-
categoryLabels: { online: "Online", retail: "Retail" }
|
|
276
|
-
}
|
|
277
|
-
) }),
|
|
551
|
+
render: () => /* @__PURE__ */ jsx(BarChartEntryMultiSeriesPreview, {}),
|
|
278
552
|
code: `import { BarChart } from '@open-mercato/ui/backend/charts'
|
|
279
553
|
|
|
280
554
|
<BarChart
|
|
@@ -295,16 +569,7 @@ const lineChartEntry = {
|
|
|
295
569
|
{
|
|
296
570
|
id: "basic",
|
|
297
571
|
title: "Basic (revenue by month)",
|
|
298
|
-
render: () => /* @__PURE__ */ jsx(
|
|
299
|
-
LineChart,
|
|
300
|
-
{
|
|
301
|
-
title: "Revenue by month",
|
|
302
|
-
data: revenueByMonth,
|
|
303
|
-
index: "month",
|
|
304
|
-
categories: ["revenue"],
|
|
305
|
-
showLegend: false
|
|
306
|
-
}
|
|
307
|
-
) }),
|
|
572
|
+
render: () => /* @__PURE__ */ jsx(LineChartEntryBasicPreview, {}),
|
|
308
573
|
code: `import { LineChart } from '@open-mercato/ui/backend/charts'
|
|
309
574
|
|
|
310
575
|
<LineChart
|
|
@@ -318,17 +583,7 @@ const lineChartEntry = {
|
|
|
318
583
|
{
|
|
319
584
|
id: "area",
|
|
320
585
|
title: "Area fill",
|
|
321
|
-
render: () => /* @__PURE__ */ jsx(
|
|
322
|
-
LineChart,
|
|
323
|
-
{
|
|
324
|
-
title: "Revenue by month",
|
|
325
|
-
data: revenueByMonth,
|
|
326
|
-
index: "month",
|
|
327
|
-
categories: ["revenue"],
|
|
328
|
-
showArea: true,
|
|
329
|
-
showLegend: false
|
|
330
|
-
}
|
|
331
|
-
) }),
|
|
586
|
+
render: () => /* @__PURE__ */ jsx(LineChartEntryAreaPreview, {}),
|
|
332
587
|
code: `import { LineChart } from '@open-mercato/ui/backend/charts'
|
|
333
588
|
|
|
334
589
|
<LineChart
|
|
@@ -343,17 +598,7 @@ const lineChartEntry = {
|
|
|
343
598
|
{
|
|
344
599
|
id: "multi-series",
|
|
345
600
|
title: "Multiple series, monotone curve",
|
|
346
|
-
render: () => /* @__PURE__ */ jsx(
|
|
347
|
-
LineChart,
|
|
348
|
-
{
|
|
349
|
-
title: "Orders by month",
|
|
350
|
-
data: ordersByMonth,
|
|
351
|
-
index: "month",
|
|
352
|
-
categories: ["online", "retail"],
|
|
353
|
-
categoryLabels: { online: "Online", retail: "Retail" },
|
|
354
|
-
curveType: "monotone"
|
|
355
|
-
}
|
|
356
|
-
) }),
|
|
601
|
+
render: () => /* @__PURE__ */ jsx(LineChartEntryMultiSeriesPreview, {}),
|
|
357
602
|
code: `import { LineChart } from '@open-mercato/ui/backend/charts'
|
|
358
603
|
|
|
359
604
|
<LineChart
|
|
@@ -375,7 +620,7 @@ const pieChartEntry = {
|
|
|
375
620
|
{
|
|
376
621
|
id: "pie",
|
|
377
622
|
title: "Pie (orders by status)",
|
|
378
|
-
render: () => /* @__PURE__ */ jsx(
|
|
623
|
+
render: () => /* @__PURE__ */ jsx(PieChartEntryPiePreview, {}),
|
|
379
624
|
code: `import { PieChart } from '@open-mercato/ui/backend/charts'
|
|
380
625
|
|
|
381
626
|
<PieChart title="Orders by status" data={ordersByStatus} />`
|
|
@@ -383,7 +628,7 @@ const pieChartEntry = {
|
|
|
383
628
|
{
|
|
384
629
|
id: "donut",
|
|
385
630
|
title: "Donut",
|
|
386
|
-
render: () => /* @__PURE__ */ jsx(
|
|
631
|
+
render: () => /* @__PURE__ */ jsx(PieChartEntryDonutPreview, {}),
|
|
387
632
|
code: `import { PieChart } from '@open-mercato/ui/backend/charts'
|
|
388
633
|
|
|
389
634
|
<PieChart title="Orders by status" data={ordersByStatus} variant="donut" />`
|
|
@@ -398,7 +643,7 @@ const topNTableEntry = {
|
|
|
398
643
|
{
|
|
399
644
|
id: "basic",
|
|
400
645
|
title: "Top products by revenue",
|
|
401
|
-
render: () => /* @__PURE__ */ jsx(
|
|
646
|
+
render: () => /* @__PURE__ */ jsx(TopNTableEntryBasicPreview, {}),
|
|
402
647
|
code: `import { TopNTable, type TopNTableColumn } from '@open-mercato/ui/backend/charts'
|
|
403
648
|
|
|
404
649
|
const columns: TopNTableColumn<TopProductRow>[] = [
|
|
@@ -412,15 +657,7 @@ const columns: TopNTableColumn<TopProductRow>[] = [
|
|
|
412
657
|
{
|
|
413
658
|
id: "max-rows",
|
|
414
659
|
title: "Capped with maxRows",
|
|
415
|
-
render: () => /* @__PURE__ */ jsx(
|
|
416
|
-
TopNTable,
|
|
417
|
-
{
|
|
418
|
-
title: "Top 3 products",
|
|
419
|
-
data: topProducts,
|
|
420
|
-
columns: topProductColumns,
|
|
421
|
-
maxRows: 3
|
|
422
|
-
}
|
|
423
|
-
) }),
|
|
660
|
+
render: () => /* @__PURE__ */ jsx(TopNTableEntryMaxRowsPreview, {}),
|
|
424
661
|
code: `import { TopNTable } from '@open-mercato/ui/backend/charts'
|
|
425
662
|
|
|
426
663
|
<TopNTable title="Top 3 products" data={topProducts} columns={columns} maxRows={3} />`
|
|
@@ -428,22 +665,131 @@ const columns: TopNTableColumn<TopProductRow>[] = [
|
|
|
428
665
|
{
|
|
429
666
|
id: "empty",
|
|
430
667
|
title: "Empty state",
|
|
431
|
-
render: () => /* @__PURE__ */ jsx(
|
|
432
|
-
TopNTable,
|
|
433
|
-
{
|
|
434
|
-
title: "Top products",
|
|
435
|
-
data: [],
|
|
436
|
-
columns: topProductColumns,
|
|
437
|
-
emptyMessage: "No sales in this period"
|
|
438
|
-
}
|
|
439
|
-
) }),
|
|
668
|
+
render: () => /* @__PURE__ */ jsx(TopNTableEntryEmptyPreview, {}),
|
|
440
669
|
code: `import { TopNTable } from '@open-mercato/ui/backend/charts'
|
|
441
670
|
|
|
442
671
|
<TopNTable title="Top products" data={[]} columns={columns} emptyMessage="No sales in this period" />`
|
|
443
672
|
}
|
|
444
673
|
]
|
|
445
674
|
};
|
|
675
|
+
const marketingWidgetsEntry = {
|
|
676
|
+
id: "marketing-widgets",
|
|
677
|
+
title: "Marketing & Sales Widgets",
|
|
678
|
+
importPath: "@open-mercato/ui/primitives/card",
|
|
679
|
+
figmaNodeId: "164628:1734",
|
|
680
|
+
variants: [
|
|
681
|
+
{
|
|
682
|
+
id: "total-sales",
|
|
683
|
+
title: "total-sales",
|
|
684
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "total-sales" }),
|
|
685
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="total-sales" />')
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
id: "total-visitors",
|
|
689
|
+
title: "total-visitors",
|
|
690
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "total-visitors" }),
|
|
691
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="total-visitors" />')
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
id: "conversion-rate",
|
|
695
|
+
title: "conversion-rate",
|
|
696
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "conversion-rate" }),
|
|
697
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="conversion-rate" />')
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
id: "user-retention",
|
|
701
|
+
title: "user-retention",
|
|
702
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "user-retention" }),
|
|
703
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="user-retention" />')
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
id: "weekly-visitors",
|
|
707
|
+
title: "weekly-visitors",
|
|
708
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "weekly-visitors" }),
|
|
709
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="weekly-visitors" />')
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
id: "visitor-channels",
|
|
713
|
+
title: "visitor-channels",
|
|
714
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "visitor-channels" }),
|
|
715
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="visitor-channels" />')
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
id: "geography",
|
|
719
|
+
title: "geography",
|
|
720
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "geography" }),
|
|
721
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="geography" />')
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
id: "realtime-visitors",
|
|
725
|
+
title: "realtime-visitors",
|
|
726
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "realtime-visitors" }),
|
|
727
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="realtime-visitors" />')
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
id: "marketing-channels",
|
|
731
|
+
title: "marketing-channels",
|
|
732
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "marketing-channels" }),
|
|
733
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="marketing-channels" />')
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
id: "product-performance",
|
|
737
|
+
title: "product-performance",
|
|
738
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "product-performance" }),
|
|
739
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="product-performance" />')
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
id: "shipping-tracking",
|
|
743
|
+
title: "shipping-tracking",
|
|
744
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "shipping-tracking" }),
|
|
745
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="shipping-tracking" />')
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
id: "my-products",
|
|
749
|
+
title: "my-products",
|
|
750
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "my-products" }),
|
|
751
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="my-products" />')
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
id: "product-categories",
|
|
755
|
+
title: "product-categories",
|
|
756
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "product-categories" }),
|
|
757
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="product-categories" />')
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
id: "customer-segments",
|
|
761
|
+
title: "customer-segments",
|
|
762
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "customer-segments" }),
|
|
763
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="customer-segments" />')
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
id: "sales-channels",
|
|
767
|
+
title: "sales-channels",
|
|
768
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "sales-channels" }),
|
|
769
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="sales-channels" />')
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
id: "campaign-data",
|
|
773
|
+
title: "campaign-data",
|
|
774
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "campaign-data" }),
|
|
775
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="campaign-data" />')
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
id: "support-analytics",
|
|
779
|
+
title: "support-analytics",
|
|
780
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "support-analytics" }),
|
|
781
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="support-analytics" />')
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
id: "recent-activities",
|
|
785
|
+
title: "recent-activities",
|
|
786
|
+
render: () => /* @__PURE__ */ jsx(MarketingWidgetDemo, { kind: "recent-activities" }),
|
|
787
|
+
code: marketingWidgetExampleCode('<MarketingWidgetDemo kind="recent-activities" />')
|
|
788
|
+
}
|
|
789
|
+
]
|
|
790
|
+
};
|
|
446
791
|
const entries = [
|
|
792
|
+
marketingWidgetsEntry,
|
|
447
793
|
kpiCardEntry,
|
|
448
794
|
sparklineEntry,
|
|
449
795
|
barChartEntry,
|