@open-mercato/core 0.7.1-develop.7203.1.9396450b78 → 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,3 +1,4 @@
|
|
|
1
|
+
import { useT } from '@open-mercato/shared/lib/i18n/context'
|
|
1
2
|
import * as React from 'react'
|
|
2
3
|
import { CircleCheck, Rocket, Sparkles } from 'lucide-react'
|
|
3
4
|
import { Button } from '@open-mercato/ui/primitives/button'
|
|
@@ -14,6 +15,140 @@ import type { GalleryEntry } from '../types'
|
|
|
14
15
|
// `FlashMessages` itself is a singleton mounted by AppShell — the gallery only
|
|
15
16
|
// demonstrates the imperative `flash()` API; the triggered toast renders
|
|
16
17
|
// through the already-mounted singleton.
|
|
18
|
+
function FlashMessagesEntryKindsPreview() {
|
|
19
|
+
const t = useT()
|
|
20
|
+
return (
|
|
21
|
+
<>
|
|
22
|
+
<Button
|
|
23
|
+
variant="outline"
|
|
24
|
+
onClick={() => flash(t('design_system.gallery.samples.content.changesSaved'), 'success')}
|
|
25
|
+
>
|
|
26
|
+
{t('design_system.gallery.samples.content.fireSuccess')}
|
|
27
|
+
</Button>
|
|
28
|
+
<Button variant="outline" onClick={() => flash(t('design_system.gallery.samples.content.syncScheduled'), 'info')}>
|
|
29
|
+
{t('design_system.gallery.samples.content.fireInfo')}
|
|
30
|
+
</Button>
|
|
31
|
+
<Button
|
|
32
|
+
variant="outline"
|
|
33
|
+
onClick={() => flash(t('design_system.gallery.samples.content.quotaAlmostReached'), 'warning')}
|
|
34
|
+
>
|
|
35
|
+
{t('design_system.gallery.samples.content.fireWarning')}
|
|
36
|
+
</Button>
|
|
37
|
+
<Button variant="outline" onClick={() => flash(t('design_system.gallery.samples.content.saveFailed'), 'error')}>
|
|
38
|
+
{t('design_system.gallery.samples.content.fireError')}
|
|
39
|
+
</Button>
|
|
40
|
+
</>
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
function NextStepCalloutEntryBasicPreview() {
|
|
44
|
+
const t = useT()
|
|
45
|
+
return (
|
|
46
|
+
<div className="w-full">
|
|
47
|
+
<NextStepCallout
|
|
48
|
+
icon={<Rocket className="size-6" />}
|
|
49
|
+
title={t('design_system.gallery.samples.content.publishYourCatalog')}
|
|
50
|
+
description={t(
|
|
51
|
+
'design_system.gallery.samples.content.productsAreImportedAndPricedPublishingMakesThemVisibleOnEverySalesChannel',
|
|
52
|
+
)}
|
|
53
|
+
actionLabel={t('design_system.gallery.samples.content.publishCatalog')}
|
|
54
|
+
actionIcon={<Sparkles className="mr-2 size-4" />}
|
|
55
|
+
onAction={() => {}}
|
|
56
|
+
/>
|
|
57
|
+
</div>
|
|
58
|
+
)
|
|
59
|
+
}
|
|
60
|
+
function NextStepCalloutEntryWithStepsPreview() {
|
|
61
|
+
const t = useT()
|
|
62
|
+
return (
|
|
63
|
+
<div className="w-full">
|
|
64
|
+
<NextStepCallout
|
|
65
|
+
title={t('design_system.gallery.samples.content.finishStoreSetup')}
|
|
66
|
+
description={t('design_system.gallery.samples.content.twoStepsAreDoneConnectAPaymentProviderToStartSelling')}
|
|
67
|
+
steps={[
|
|
68
|
+
{
|
|
69
|
+
id: 'import',
|
|
70
|
+
label: t('design_system.gallery.samples.content.importProducts'),
|
|
71
|
+
state: 'completed',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: 'pricing',
|
|
75
|
+
label: t('design_system.gallery.samples.content.setPricing'),
|
|
76
|
+
state: 'completed',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: 'payments',
|
|
80
|
+
label: t('design_system.gallery.samples.content.connectPayments'),
|
|
81
|
+
state: 'active',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: 'launch',
|
|
85
|
+
label: t('design_system.gallery.samples.content.launch'),
|
|
86
|
+
state: 'pending',
|
|
87
|
+
},
|
|
88
|
+
]}
|
|
89
|
+
actionLabel={t('design_system.gallery.samples.content.connectPayments')}
|
|
90
|
+
onAction={() => {}}
|
|
91
|
+
/>
|
|
92
|
+
</div>
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
function NextStepCalloutEntryWithStatusPreview() {
|
|
96
|
+
const t = useT()
|
|
97
|
+
return (
|
|
98
|
+
<div className="w-full">
|
|
99
|
+
<NextStepCallout
|
|
100
|
+
title={t('design_system.gallery.samples.content.indexYourProducts')}
|
|
101
|
+
description={t('design_system.gallery.samples.content.searchStaysDisabledUntilTheFirstIndexingRunCompletes')}
|
|
102
|
+
actionLabel={t('design_system.gallery.samples.content.reRunIndexing')}
|
|
103
|
+
onAction={() => {}}
|
|
104
|
+
busy
|
|
105
|
+
status={{
|
|
106
|
+
tone: 'info',
|
|
107
|
+
icon: <CircleCheck className="size-4" />,
|
|
108
|
+
label: t('design_system.gallery.samples.content.indexingInProgress'),
|
|
109
|
+
progressValue: 64,
|
|
110
|
+
progressDescription: t('design_system.gallery.samples.content.1280Of2000ProductsIndexed'),
|
|
111
|
+
}}
|
|
112
|
+
/>
|
|
113
|
+
</div>
|
|
114
|
+
)
|
|
115
|
+
}
|
|
116
|
+
function ContextHelpEntryDefaultPreview() {
|
|
117
|
+
const t = useT()
|
|
118
|
+
return (
|
|
119
|
+
<div className="w-full max-w-md">
|
|
120
|
+
<ContextHelp title={t('design_system.gallery.samples.content.howDoExchangeRatesWork')}>
|
|
121
|
+
{t(
|
|
122
|
+
'design_system.gallery.samples.content.ratesRefreshNightlyFromTheConfiguredProviderManualOverridesStayPinnedUntilYouClearThem',
|
|
123
|
+
)}
|
|
124
|
+
</ContextHelp>
|
|
125
|
+
</div>
|
|
126
|
+
)
|
|
127
|
+
}
|
|
128
|
+
function ContextHelpEntryDefaultOpenPreview() {
|
|
129
|
+
const t = useT()
|
|
130
|
+
return (
|
|
131
|
+
<div className="w-full max-w-md">
|
|
132
|
+
<ContextHelp title={t('design_system.gallery.samples.content.whyIsThisFieldRequired')} defaultOpen>
|
|
133
|
+
{t(
|
|
134
|
+
'design_system.gallery.samples.content.theTaxOfficeIdentifierIsMandatoryForInvoicesIssuedToCompaniesRegisteredInTheEu',
|
|
135
|
+
)}
|
|
136
|
+
</ContextHelp>
|
|
137
|
+
</div>
|
|
138
|
+
)
|
|
139
|
+
}
|
|
140
|
+
function ContextHelpEntryInfoIconPreview() {
|
|
141
|
+
const t = useT()
|
|
142
|
+
return (
|
|
143
|
+
<div className="w-full max-w-md">
|
|
144
|
+
<ContextHelp title={t('design_system.gallery.samples.content.aboutDraftOrders')} bulb={false} defaultOpen>
|
|
145
|
+
{t(
|
|
146
|
+
'design_system.gallery.samples.content.draftOrdersAreInvisibleToCustomersAndSkipStockReservationUntilTheyAreConfirmed',
|
|
147
|
+
)}
|
|
148
|
+
</ContextHelp>
|
|
149
|
+
</div>
|
|
150
|
+
)
|
|
151
|
+
}
|
|
17
152
|
const flashMessagesEntry: GalleryEntry = {
|
|
18
153
|
id: 'flash-messages',
|
|
19
154
|
title: 'FlashMessages',
|
|
@@ -22,22 +157,7 @@ const flashMessagesEntry: GalleryEntry = {
|
|
|
22
157
|
{
|
|
23
158
|
id: 'kinds',
|
|
24
159
|
title: 'flash() kinds (toast via the AppShell singleton)',
|
|
25
|
-
render: () =>
|
|
26
|
-
<>
|
|
27
|
-
<Button variant="outline" onClick={() => flash('Changes saved', 'success')}>
|
|
28
|
-
Fire success
|
|
29
|
-
</Button>
|
|
30
|
-
<Button variant="outline" onClick={() => flash('Sync scheduled', 'info')}>
|
|
31
|
-
Fire info
|
|
32
|
-
</Button>
|
|
33
|
-
<Button variant="outline" onClick={() => flash('Quota almost reached', 'warning')}>
|
|
34
|
-
Fire warning
|
|
35
|
-
</Button>
|
|
36
|
-
<Button variant="outline" onClick={() => flash('Save failed', 'error')}>
|
|
37
|
-
Fire error
|
|
38
|
-
</Button>
|
|
39
|
-
</>
|
|
40
|
-
),
|
|
160
|
+
render: () => <FlashMessagesEntryKindsPreview />,
|
|
41
161
|
code: `import { flash } from '@open-mercato/ui/backend/FlashMessages'
|
|
42
162
|
|
|
43
163
|
// FlashMessages is mounted once by AppShell — never mount your own.
|
|
@@ -48,7 +168,6 @@ flash('Save failed', 'error')`,
|
|
|
48
168
|
},
|
|
49
169
|
],
|
|
50
170
|
}
|
|
51
|
-
|
|
52
171
|
const nextStepCalloutEntry: GalleryEntry = {
|
|
53
172
|
id: 'next-step-callout',
|
|
54
173
|
title: 'NextStepCallout',
|
|
@@ -57,18 +176,7 @@ const nextStepCalloutEntry: GalleryEntry = {
|
|
|
57
176
|
{
|
|
58
177
|
id: 'basic',
|
|
59
178
|
title: 'Basic',
|
|
60
|
-
render: () =>
|
|
61
|
-
<div className="w-full">
|
|
62
|
-
<NextStepCallout
|
|
63
|
-
icon={<Rocket className="size-6" />}
|
|
64
|
-
title="Publish your catalog"
|
|
65
|
-
description="Products are imported and priced. Publishing makes them visible on every sales channel."
|
|
66
|
-
actionLabel="Publish catalog"
|
|
67
|
-
actionIcon={<Sparkles className="mr-2 size-4" />}
|
|
68
|
-
onAction={() => {}}
|
|
69
|
-
/>
|
|
70
|
-
</div>
|
|
71
|
-
),
|
|
179
|
+
render: () => <NextStepCalloutEntryBasicPreview />,
|
|
72
180
|
code: `import { Rocket, Sparkles } from 'lucide-react'
|
|
73
181
|
import { NextStepCallout } from '@open-mercato/ui/backend/NextStepCallout'
|
|
74
182
|
|
|
@@ -84,22 +192,7 @@ import { NextStepCallout } from '@open-mercato/ui/backend/NextStepCallout'
|
|
|
84
192
|
{
|
|
85
193
|
id: 'with-steps',
|
|
86
194
|
title: 'With steps',
|
|
87
|
-
render: () =>
|
|
88
|
-
<div className="w-full">
|
|
89
|
-
<NextStepCallout
|
|
90
|
-
title="Finish store setup"
|
|
91
|
-
description="Two steps are done — connect a payment provider to start selling."
|
|
92
|
-
steps={[
|
|
93
|
-
{ id: 'import', label: 'Import products', state: 'completed' },
|
|
94
|
-
{ id: 'pricing', label: 'Set pricing', state: 'completed' },
|
|
95
|
-
{ id: 'payments', label: 'Connect payments', state: 'active' },
|
|
96
|
-
{ id: 'launch', label: 'Launch', state: 'pending' },
|
|
97
|
-
]}
|
|
98
|
-
actionLabel="Connect payments"
|
|
99
|
-
onAction={() => {}}
|
|
100
|
-
/>
|
|
101
|
-
</div>
|
|
102
|
-
),
|
|
195
|
+
render: () => <NextStepCalloutEntryWithStepsPreview />,
|
|
103
196
|
code: `import { NextStepCallout } from '@open-mercato/ui/backend/NextStepCallout'
|
|
104
197
|
|
|
105
198
|
<NextStepCallout
|
|
@@ -118,24 +211,7 @@ import { NextStepCallout } from '@open-mercato/ui/backend/NextStepCallout'
|
|
|
118
211
|
{
|
|
119
212
|
id: 'with-status',
|
|
120
213
|
title: 'With status progress',
|
|
121
|
-
render: () =>
|
|
122
|
-
<div className="w-full">
|
|
123
|
-
<NextStepCallout
|
|
124
|
-
title="Index your products"
|
|
125
|
-
description="Search stays disabled until the first indexing run completes."
|
|
126
|
-
actionLabel="Re-run indexing"
|
|
127
|
-
onAction={() => {}}
|
|
128
|
-
busy
|
|
129
|
-
status={{
|
|
130
|
-
tone: 'info',
|
|
131
|
-
icon: <CircleCheck className="size-4" />,
|
|
132
|
-
label: 'Indexing in progress',
|
|
133
|
-
progressValue: 64,
|
|
134
|
-
progressDescription: '1,280 of 2,000 products indexed',
|
|
135
|
-
}}
|
|
136
|
-
/>
|
|
137
|
-
</div>
|
|
138
|
-
),
|
|
214
|
+
render: () => <NextStepCalloutEntryWithStatusPreview />,
|
|
139
215
|
code: `import { CircleCheck } from 'lucide-react'
|
|
140
216
|
import { NextStepCallout } from '@open-mercato/ui/backend/NextStepCallout'
|
|
141
217
|
|
|
@@ -156,7 +232,6 @@ import { NextStepCallout } from '@open-mercato/ui/backend/NextStepCallout'
|
|
|
156
232
|
},
|
|
157
233
|
],
|
|
158
234
|
}
|
|
159
|
-
|
|
160
235
|
const contextHelpEntry: GalleryEntry = {
|
|
161
236
|
id: 'context-help',
|
|
162
237
|
title: 'ContextHelp',
|
|
@@ -165,14 +240,7 @@ const contextHelpEntry: GalleryEntry = {
|
|
|
165
240
|
{
|
|
166
241
|
id: 'default',
|
|
167
242
|
title: 'default (collapsed)',
|
|
168
|
-
render: () =>
|
|
169
|
-
<div className="w-full max-w-md">
|
|
170
|
-
<ContextHelp title="How do exchange rates work?">
|
|
171
|
-
Rates refresh nightly from the configured provider. Manual overrides
|
|
172
|
-
stay pinned until you clear them.
|
|
173
|
-
</ContextHelp>
|
|
174
|
-
</div>
|
|
175
|
-
),
|
|
243
|
+
render: () => <ContextHelpEntryDefaultPreview />,
|
|
176
244
|
code: `import { ContextHelp } from '@open-mercato/ui/backend/ContextHelp'
|
|
177
245
|
|
|
178
246
|
<ContextHelp title="How do exchange rates work?">
|
|
@@ -183,14 +251,7 @@ const contextHelpEntry: GalleryEntry = {
|
|
|
183
251
|
{
|
|
184
252
|
id: 'default-open',
|
|
185
253
|
title: 'defaultOpen',
|
|
186
|
-
render: () =>
|
|
187
|
-
<div className="w-full max-w-md">
|
|
188
|
-
<ContextHelp title="Why is this field required?" defaultOpen>
|
|
189
|
-
The tax office identifier is mandatory for invoices issued to
|
|
190
|
-
companies registered in the EU.
|
|
191
|
-
</ContextHelp>
|
|
192
|
-
</div>
|
|
193
|
-
),
|
|
254
|
+
render: () => <ContextHelpEntryDefaultOpenPreview />,
|
|
194
255
|
code: `import { ContextHelp } from '@open-mercato/ui/backend/ContextHelp'
|
|
195
256
|
|
|
196
257
|
<ContextHelp title="Why is this field required?" defaultOpen>
|
|
@@ -201,14 +262,7 @@ const contextHelpEntry: GalleryEntry = {
|
|
|
201
262
|
{
|
|
202
263
|
id: 'info-icon',
|
|
203
264
|
title: 'Info icon (bulb={false})',
|
|
204
|
-
render: () =>
|
|
205
|
-
<div className="w-full max-w-md">
|
|
206
|
-
<ContextHelp title="About draft orders" bulb={false} defaultOpen>
|
|
207
|
-
Draft orders are invisible to customers and skip stock reservation
|
|
208
|
-
until they are confirmed.
|
|
209
|
-
</ContextHelp>
|
|
210
|
-
</div>
|
|
211
|
-
),
|
|
265
|
+
render: () => <ContextHelpEntryInfoIconPreview />,
|
|
212
266
|
code: `import { ContextHelp } from '@open-mercato/ui/backend/ContextHelp'
|
|
213
267
|
|
|
214
268
|
<ContextHelp title="About draft orders" bulb={false} defaultOpen>
|
|
@@ -218,9 +272,4 @@ const contextHelpEntry: GalleryEntry = {
|
|
|
218
272
|
},
|
|
219
273
|
],
|
|
220
274
|
}
|
|
221
|
-
|
|
222
|
-
export const entries: GalleryEntry[] = [
|
|
223
|
-
flashMessagesEntry,
|
|
224
|
-
nextStepCalloutEntry,
|
|
225
|
-
contextHelpEntry,
|
|
226
|
-
]
|
|
275
|
+
export const entries: GalleryEntry[] = [flashMessagesEntry, nextStepCalloutEntry, contextHelpEntry]
|