@evenicanpm/storefront-core 1.0.6 → 1.1.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/.storybook/main.ts +37 -0
- package/.storybook/preview.ts +14 -0
- package/README.md +17 -2
- package/__mocks__/next-font.js +4 -0
- package/package.json +19 -13
- package/src/api-manager/datasources/e4/graphqlRequestSdk.ts +265 -5
- package/src/api-manager/schemas/product.schema.ts +2 -2
- package/src/api-manager/services/cart/mutations/add-discount-code.ts +11 -0
- package/src/api-manager/services/cart/mutations/checkout.ts +1 -1
- package/src/api-manager/services/create-query.ts +11 -4
- package/src/api-manager/services/product/queries/get-product-availability.ts +1 -2
- package/src/api-manager/services/user/mutations/add-to-wishlist.ts +2 -2
- package/src/api-manager/services/user/mutations/copy-cart-to-wishlist.ts +2 -1
- package/src/api-manager/services/user/mutations/remove-from-wishlist.ts +4 -4
- package/src/api-manager/services/user/mutations/update-wishlist.ts +2 -1
- package/src/api-manager/services/user/queries/get-wishlist-details.ts +2 -2
- package/src/cms/blocks/components/product-carousel/index.tsx +6 -3
- package/src/cms/blocks/components/product-section-fullwidth/index.tsx +2 -2
- package/src/cms/blocks/components/shared/product-grid.tsx +5 -2
- package/src/cms/interfaces/navigation.ts +9 -9
- package/src/components/Blocks/Components/CategoryCarousel/index.tsx +3 -3
- package/src/components/Blocks/Components/HeroCarousel/index.tsx +2 -2
- package/src/components/Blocks/Components/ProductCarousel/index.tsx +5 -5
- package/src/components/Blocks/Components/ProductSectionFullWidth/index.tsx +6 -6
- package/src/components/Blocks/Components/Services/service-card.tsx +4 -1
- package/src/components/Blocks/Components/shared/featured-product-card.tsx +2 -2
- package/src/components/Blocks/Components/shared/product-category-item.tsx +3 -3
- package/src/components/Blocks/Components/shared/product-grid.tsx +2 -2
- package/src/components/Blocks/Components/shared/top-categories-card.tsx +1 -1
- package/src/components/Blocks/Components/shared/top-rating-product-card.tsx +6 -3
- package/src/components/Footer/sections/FooterAppStore.tsx +1 -1
- package/src/components/Footer/sections/FooterContact.tsx +1 -1
- package/src/components/Footer/sections/FooterLogo.tsx +2 -2
- package/src/components/Footer/sections/FooterSocialLinks.tsx +1 -1
- package/src/components/_components/MiniCartClient.tsx +2 -2
- package/src/components/_components/accordion/accordion-header.tsx +1 -1
- package/src/components/_components/carousel-cards/carousel-card-1/carousel-card-1.tsx +2 -2
- package/src/components/_components/carousel-cards/carousel-card-2/carousel-card-2.tsx +9 -4
- package/src/components/_components/carousel-cards/carousel-card-3/carousel-card-3.tsx +6 -3
- package/src/components/_components/carousel-cards/carousel-card-4/carousel-card-4.tsx +6 -1
- package/src/components/_components/categories/category-list/category-list.tsx +3 -3
- package/src/components/_components/categories/mega-menu/banner.tsx +7 -3
- package/src/components/_components/categories/mega-menu/column-list.tsx +3 -3
- package/src/components/_components/categories/mega-menu/mega-menu-1.tsx +2 -2
- package/src/components/_components/category-cards/category-card-1/category-card-1.tsx +2 -2
- package/src/components/_components/countdown/count-box.tsx +4 -1
- package/src/components/_components/countdown/count-down.tsx +1 -1
- package/src/components/_components/data-table/table-header.tsx +1 -1
- package/src/components/_components/footer/components/app-store.tsx +1 -1
- package/src/components/_components/footer/components/logo.tsx +2 -2
- package/src/components/_components/footer/components/social-links.tsx +1 -1
- package/src/components/_components/footer/footer-1.tsx +1 -1
- package/src/components/_components/footer/footer-2.tsx +2 -2
- package/src/components/_components/footer/footer-3.tsx +2 -2
- package/src/components/_components/footer/footer-4.tsx +3 -3
- package/src/components/_components/header/components/categories-menu.tsx +3 -3
- package/src/components/_components/header/components/mobile-header.tsx +9 -6
- package/src/components/_components/header/components/user.tsx +5 -5
- package/src/components/_components/header/header.tsx +2 -2
- package/src/components/_components/header/sticky-header.tsx +3 -3
- package/src/components/_components/mini-cart/components/cart-item.tsx +5 -2
- package/src/components/_components/mini-cart/components/empty-view.tsx +2 -2
- package/src/components/_components/mini-cart/components/top-header.tsx +5 -2
- package/src/components/_components/mini-cart/mini-cart.tsx +3 -3
- package/src/components/_components/mobile-navigation/mobile-navigation-bar.tsx +5 -5
- package/src/components/_components/nav-link/nav-link-2.tsx +1 -1
- package/src/components/_components/nav-link/nav-link-3.tsx +1 -1
- package/src/components/_components/navbar/categories.tsx +3 -3
- package/src/components/_components/navbar/category-based-menu/category-based-menu.tsx +1 -1
- package/src/components/_components/navbar/category-based-menu/components/child-categories.tsx +2 -2
- package/src/components/_components/navbar/mega-menu/category-list.tsx +1 -1
- package/src/components/_components/navbar/mega-menu/mega-menu.tsx +1 -1
- package/src/components/_components/navbar/mobile-menu/mobile-menu.tsx +2 -2
- package/src/components/_components/navbar/mobile-menu/render-levels.tsx +3 -3
- package/src/components/_components/navbar/nav-list/nav-item-child.tsx +3 -3
- package/src/components/_components/navbar/nav-list/nav-list.tsx +4 -4
- package/src/components/_components/newsletter/newsletter.tsx +5 -1
- package/src/components/_components/newsletter/social-icons.tsx +1 -1
- package/src/components/_components/page-sidenav/grocery-side-nav/components/link-item.tsx +2 -2
- package/src/components/_components/page-sidenav/grocery-side-nav/components/list-item.tsx +2 -2
- package/src/components/_components/page-sidenav/grocery-side-nav/components/nav-accordion.tsx +2 -2
- package/src/components/_components/page-sidenav/grocery-side-nav/grocery-side-nav.tsx +3 -3
- package/src/components/_components/page-sidenav/health-beauty-side-nav/components/list-item.tsx +2 -2
- package/src/components/_components/page-sidenav/health-beauty-side-nav/components/nav-accordion.tsx +2 -2
- package/src/components/_components/page-sidenav/health-beauty-side-nav/components/render-child.tsx +2 -2
- package/src/components/_components/page-sidenav/health-beauty-side-nav/health-beauty-side-nav.tsx +5 -5
- package/src/components/_components/page-sidenav/side-navbar/components/list-item.tsx +1 -1
- package/src/components/_components/page-sidenav/side-navbar/components/nav-accordion.tsx +3 -3
- package/src/components/_components/page-sidenav/side-navbar/components/render-child.tsx +1 -1
- package/src/components/_components/page-sidenav/side-navbar/side-nav-bar.tsx +4 -4
- package/src/components/_components/page-sidenav/side-navbar-2/components/sidebar-accordion.tsx +1 -1
- package/src/components/_components/page-sidenav/side-navbar-2/side-navbar-2.tsx +2 -2
- package/src/components/_components/product-cards/product-card-1/components/quantity-buttons.tsx +2 -2
- package/src/components/_components/product-cards/product-card-1/product-card.tsx +2 -2
- package/src/components/_components/product-cards/product-card-10/product-card.tsx +9 -5
- package/src/components/_components/product-cards/product-card-11/product-card.tsx +6 -3
- package/src/components/_components/product-cards/product-card-12/product-card.tsx +4 -4
- package/src/components/_components/product-cards/product-card-13/product-card.tsx +6 -3
- package/src/components/_components/product-cards/product-card-14/product-card.tsx +7 -4
- package/src/components/_components/product-cards/product-card-15/product-card.tsx +6 -3
- package/src/components/_components/product-cards/product-card-16/components/quantity-buttons.tsx +2 -2
- package/src/components/_components/product-cards/product-card-16/product-card.tsx +5 -2
- package/src/components/_components/product-cards/product-card-2/components/product-price.tsx +2 -2
- package/src/components/_components/product-cards/product-card-2/product-card.tsx +4 -4
- package/src/components/_components/product-cards/product-card-3/components/hover-actions.tsx +1 -1
- package/src/components/_components/product-cards/product-card-3/product-card.tsx +2 -2
- package/src/components/_components/product-cards/product-card-4/components/hover-actions.tsx +1 -1
- package/src/components/_components/product-cards/product-card-4/product-card.tsx +2 -2
- package/src/components/_components/product-cards/product-card-5/components/hover-actions.tsx +1 -1
- package/src/components/_components/product-cards/product-card-5/product-card.tsx +2 -2
- package/src/components/_components/product-cards/product-card-6/components/hover-actions.tsx +1 -1
- package/src/components/_components/product-cards/product-card-6/product-card.tsx +3 -3
- package/src/components/_components/product-cards/product-card-7/components/quantity-buttons.tsx +2 -2
- package/src/components/_components/product-cards/product-card-7/product-card.tsx +5 -2
- package/src/components/_components/product-cards/product-card-8/product-card.tsx +9 -5
- package/src/components/_components/product-cards/product-card-9/components/add-to-cart.tsx +5 -2
- package/src/components/_components/product-cards/product-card-9/product-card.tsx +1 -1
- package/src/components/_components/product-cards/product-price.tsx +2 -2
- package/src/components/_components/product-cards/product-rating.tsx +2 -2
- package/src/components/_components/product-cards/product-title.tsx +1 -1
- package/src/components/_components/product-cards/use-product.ts +1 -1
- package/src/components/_components/product-dimensions/product-dimensions.tsx +1 -1
- package/src/components/_components/product-quantity-buttons/product-quantity-buttons.tsx +2 -2
- package/src/components/_components/products-view/products-grid-view.tsx +2 -2
- package/src/components/_components/products-view/products-list-view.tsx +2 -2
- package/src/components/_components/search-box/components/category-dropdown.tsx +1 -1
- package/src/components/_components/search-box/components/search-result.tsx +1 -1
- package/src/components/_components/search-box/hooks/use-search.ts +1 -1
- package/src/components/_components/search-box/search-input-category.tsx +3 -3
- package/src/components/_components/service-cards/service-card-1/service-card-1.tsx +5 -2
- package/src/components/_components/service-cards/service-card-2/service-card-2.tsx +5 -2
- package/src/components/_components/service-cards/service-card-3/service-card-3.tsx +4 -1
- package/src/components/_components/settings/setting.tsx +3 -3
- package/src/components/_components/side-nav/side-nav.tsx +1 -1
- package/src/components/_components/stories/story-content/story-content.tsx +1 -1
- package/src/components/_components/stories/story-item/story-item.tsx +1 -1
- package/src/components/_components/topbar/top-bar.tsx +6 -3
- package/src/components/_components/wishlist-modal/wishlist-modal-item.tsx +1 -1
- package/src/components-v2/accordion/accordion-header.stories.tsx +28 -0
- package/src/components-v2/categories/category-list/category-list.tsx +2 -2
- package/src/components-v2/categories/category-list/styles.ts +3 -2
- package/src/components-v2/categories/mega-menu/column-list.tsx +1 -1
- package/src/components-v2/categories/mega-menu/mega-menu-1.tsx +6 -3
- package/src/components-v2/categories/mega-menu/mega-menu-2.tsx +2 -2
- package/src/components-v2/header/__tests__/user.test.tsx +12 -12
- package/src/components-v2/header/components/user.tsx +12 -11
- package/src/components-v2/mini-cart/mini-cart.tsx +9 -14
- package/src/components-v2/mobile-navigation/mobile-navigation-bar.tsx +1 -1
- package/src/components-v2/navbar/mobile-menu/mobile-menu.tsx +2 -2
- package/src/components-v2/product-cards/favorite-button.tsx +52 -0
- package/src/components-v2/product-cards/product-card/product-card.tsx +87 -47
- package/src/components-v2/product-cards/product-card-plp/product-card.tsx +140 -51
- package/src/components-v2/product-cards/product-card-plp/styles/index.ts +17 -0
- package/src/components-v2/product-cards/product-card-plp-list/product-card.tsx +76 -42
- package/src/components-v2/product-cards/product-card-search/product-card.tsx +50 -21
- package/src/components-v2/product-cards/product-card-search/styles/index.ts +0 -10
- package/src/components-v2/product-dialog/compound/product-dialog.tsx +39 -15
- package/src/components-v2/product-quantity-buttons/compound/quantity-buttons-root.tsx +22 -7
- package/src/components-v2/product-quantity-variants/index.tsx +1 -1
- package/src/components-v2/products-view/compound/context.ts +46 -1
- package/src/components-v2/products-view/compound/products-grid-view.tsx +23 -14
- package/src/components-v2/products-view/compound/products-list-view.tsx +12 -3
- package/src/components-v2/search-bar/compound/context.ts +24 -3
- package/src/components-v2/search-bar/compound/results-item-lg.tsx +14 -13
- package/src/components-v2/search-bar/compound/results-item-sm.tsx +5 -5
- package/src/components-v2/search-bar/compound/results-suspense.tsx +3 -3
- package/src/components-v2/search-bar/compound/results.tsx +4 -4
- package/src/components-v2/search-bar/compound/textfield-adornment-category.tsx +1 -1
- package/src/components-v2/search-bar/compound/textfield.tsx +3 -3
- package/src/components-v2/search-bar/hooks/use-click-outside.ts +1 -1
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/add-to-wishlist-button.tsx +2 -6
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-bottom-ui.tsx +6 -1
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-dialog.tsx +22 -15
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-list.tsx +8 -7
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/context.ts +8 -8
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-item.tsx +29 -19
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/hooks/use-add-to-wishlist.ts +27 -77
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/index.tsx +1 -9
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-bottom-ui.tsx +7 -2
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-dialog.tsx +20 -12
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-form.tsx +25 -5
- package/src/hooks/use-cart.ts +11 -14
- package/src/hooks/use-favorite.ts +17 -0
- package/src/hooks/use-variants.ts +4 -3
- package/src/pages/account/addresses/address-item.tsx +1 -1
- package/src/pages/account/dashboard-header.tsx +3 -3
- package/src/pages/account/navigation.tsx +5 -2
- package/src/pages/account/no-records.tsx +1 -1
- package/src/pages/account/orders/order-progress.tsx +5 -2
- package/src/pages/account/orders/order-row.tsx +4 -1
- package/src/pages/account/orders/order-summary.tsx +6 -2
- package/src/pages/account/orders/ordered-products.tsx +9 -2
- package/src/pages/account/profile/user-info.tsx +5 -2
- package/src/pages/account/wishlist/create-new-list.tsx +1 -1
- package/src/pages/account/wishlist/wishlist-item.tsx +2 -2
- package/src/pages/checkout/checkout-alt-form/address-card.tsx +5 -2
- package/src/pages/checkout/checkout-alt-form/checkout-step.tsx +3 -3
- package/src/pages/checkout/checkout-alt-form/customer-information.tsx +1 -1
- package/src/pages/checkout/checkout-alt-form/delivery-address.tsx +5 -1
- package/src/pages/checkout/checkout-alt-form/delivery-options.tsx +6 -2
- package/src/pages/checkout/checkout-alt-form/edit-address-form.tsx +1 -1
- package/src/pages/checkout/checkout-alt-form/heading.tsx +2 -2
- package/src/pages/checkout/checkout-alt-form/new-address-form.tsx +9 -4
- package/src/pages/checkout/checkout-alt-form/payment-details.tsx +6 -3
- package/src/pages/checkout/checkout-alt-summary/cart-item.tsx +5 -2
- package/src/pages/checkout/checkout-alt-summary/checkout-alt-summary.tsx +4 -2
- package/src/pages/checkout/checkout-alt-summary/list-item.tsx +2 -2
- package/src/pages/confirmation/address.tsx +4 -1
- package/src/pages/confirmation/confirmation-summary.tsx +6 -3
- package/src/pages/confirmation/ordered-products.tsx +9 -2
- package/src/pages/product-details/available-shops.tsx +5 -2
- package/src/pages/product-details/bopis/find-in-store-modal.tsx +1 -1
- package/src/pages/product-details/bopis/pickup-option-select.tsx +1 -1
- package/src/pages/product-details/frequently-bought.tsx +9 -2
- package/src/pages/product-details/frequently-product-card.tsx +8 -5
- package/src/pages/product-details/product-comment.tsx +7 -2
- package/src/pages/product-details/product-description.tsx +1 -1
- package/src/pages/product-details/product-filter-card.tsx +11 -3
- package/src/pages/product-details/product-intro/product-intro-images.tsx +4 -1
- package/src/pages/product-details/product-intro/product-intro.tsx +8 -5
- package/src/pages/product-details/product-review.tsx +5 -2
- package/src/pages/product-details/related-products.tsx +2 -2
- package/src/pages/product-list/facet-group.tsx +1 -1
- package/src/pages/product-list/list-filter.tsx +5 -2
- package/src/pages/product-list/pagination.tsx +1 -1
- package/src/pages/product-list/quick-view-dialog-content.tsx +2 -2
- package/src/pages/product-list/selected-facets.tsx +1 -1
- package/src/pages/quickorder/order-upload.tsx +1 -1
- package/src/pages/quickorder/quick-order-form.tsx +6 -3
- package/src/pages/quickorder/quick-order-row.tsx +1 -1
- package/src/pages-v2/account/account-navigation.tsx +1 -1
- package/src/pages-v2/account/orders/order-summary.tsx +5 -2
- package/src/pages-v2/account/profile/user-info.tsx +6 -3
- package/src/pages-v2/account/wishlist/wishlist-item.tsx +1 -1
- package/src/pages-v2/cart/__tests__/checkout-form.test.tsx +1 -1
- package/src/pages-v2/cart/estimate-shipping.tsx +3 -0
- package/src/pages-v2/checkout/checkout-alt-form/checkout-step.tsx +4 -4
- package/src/pages-v2/checkout/checkout-alt-form/steps/address/address-card.tsx +1 -1
- package/src/pages-v2/checkout/checkout-alt-form/steps/address/delivery-address.tsx +12 -5
- package/src/pages-v2/checkout/checkout-alt-form/steps/address/new-address-form.tsx +27 -5
- package/src/pages-v2/checkout/checkout-alt-form/steps/address/styles.ts +2 -1
- package/src/pages-v2/checkout/checkout-alt-form/steps/customer-info/customer-information.tsx +27 -7
- package/src/pages-v2/checkout/checkout-alt-form/steps/shipping/delivery-options.tsx +8 -1
- package/src/pages-v2/confirmation/address.tsx +5 -1
- package/src/pages-v2/product-details/available-shops.tsx +4 -1
- package/src/pages-v2/product-details/bopis/find-in-store-button.tsx +1 -1
- package/src/pages-v2/product-details/bopis/find-in-store-modal.tsx +3 -5
- package/src/pages-v2/product-details/product-intro/compound/context.ts +69 -12
- package/src/pages-v2/product-details/product-intro/compound/product-info.tsx +73 -27
- package/src/pages-v2/product-details/product-intro/compound/product-intro-images.tsx +19 -6
- package/src/pages-v2/product-details/product-intro/utils.ts +2 -2
- package/src/pages-v2/product-details/product-tabs.tsx +19 -4
- package/src/pages-v2/product-details/related-products.tsx +3 -3
- package/src/pages-v2/quickorder/context.ts +2 -2
- package/src/pages-v2/quickorder/order-upload.tsx +6 -2
- package/src/pages-v2/quickorder/provider.tsx +24 -9
- package/src/pages-v2/quickorder/quick-order-header.tsx +4 -1
- package/src/pages-v2/quickorder/quick-order-row.tsx +1 -1
- package/src/pages-v2/quickorder/quick-order-table.tsx +9 -3
- package/src/stories/Button.stories.ts +54 -0
- package/src/stories/Button.tsx +35 -0
- package/src/stories/Configure.mdx +364 -0
- package/src/stories/Header.stories.ts +34 -0
- package/src/stories/Header.tsx +54 -0
- package/src/stories/Page.stories.ts +33 -0
- package/src/stories/Page.tsx +73 -0
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +1 -0
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +1 -0
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +1 -0
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +1 -0
- package/src/stories/assets/youtube.svg +1 -0
- package/src/stories/button.css +30 -0
- package/src/stories/header.css +32 -0
- package/src/stories/page.css +68 -0
- package/src/theme/build-mui-theme.ts +104 -0
- package/src/theme/components.ts +163 -0
- package/src/theme/emotion-cache.tsx +101 -0
- package/src/theme/theme-colors.ts +205 -0
- package/src/theme/theme-options-sample.ts +69 -0
- package/src/theme/theme-options.ts +172 -0
- package/src/theme/theme-provider.tsx +44 -0
- package/src/theme/typography.ts +22 -0
- package/src/theme/utils.ts +17 -0
- package/tsconfig.json +3 -1
- package/src/api-manager/lib/cart-cookie-handler.ts +0 -14
- package/src/components-v2/product-cards/product-card/components/hover-actions.tsx +0 -37
- package/src/components-v2/product-cards/product-card-plp/components/quantity-buttons.tsx +0 -54
- package/src/components-v2/product-cards/product-card-plp-list/components/add-to-cart.tsx +0 -63
- package/src/components-v2/product-cards/product-card-plp-list/components/favorite-button.tsx +0 -27
- package/src/components-v2/product-cards/use-product.ts +0 -35
- package/src/components-v2/products-view/products-grid-view.tsx +0 -65
- package/src/components-v2/products-view/products-list-view.tsx +0 -66
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/context.ts +0 -2
- /package/src/components-v2/product-cards/{product-card/components/quantity-buttons.tsx → quantity-buttons.tsx} +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.storybook-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
align-items: center;
|
|
5
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
6
|
+
padding: 15px 20px;
|
|
7
|
+
font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.storybook-header svg {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
vertical-align: top;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.storybook-header h1 {
|
|
16
|
+
display: inline-block;
|
|
17
|
+
vertical-align: top;
|
|
18
|
+
margin: 6px 0 6px 10px;
|
|
19
|
+
font-weight: 700;
|
|
20
|
+
font-size: 20px;
|
|
21
|
+
line-height: 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.storybook-header button + button {
|
|
25
|
+
margin-left: 10px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.storybook-header .welcome {
|
|
29
|
+
margin-right: 10px;
|
|
30
|
+
color: #333;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
.storybook-page {
|
|
2
|
+
margin: 0 auto;
|
|
3
|
+
padding: 48px 20px;
|
|
4
|
+
max-width: 600px;
|
|
5
|
+
color: #333;
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
line-height: 24px;
|
|
8
|
+
font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.storybook-page h2 {
|
|
12
|
+
display: inline-block;
|
|
13
|
+
vertical-align: top;
|
|
14
|
+
margin: 0 0 4px;
|
|
15
|
+
font-weight: 700;
|
|
16
|
+
font-size: 32px;
|
|
17
|
+
line-height: 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.storybook-page p {
|
|
21
|
+
margin: 1em 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.storybook-page a {
|
|
25
|
+
color: inherit;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.storybook-page ul {
|
|
29
|
+
margin: 1em 0;
|
|
30
|
+
padding-left: 30px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.storybook-page li {
|
|
34
|
+
margin-bottom: 8px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.storybook-page .tip {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
vertical-align: top;
|
|
40
|
+
margin-right: 10px;
|
|
41
|
+
border-radius: 1em;
|
|
42
|
+
background: #e7fdd8;
|
|
43
|
+
padding: 4px 12px;
|
|
44
|
+
color: #357a14;
|
|
45
|
+
font-weight: 700;
|
|
46
|
+
font-size: 11px;
|
|
47
|
+
line-height: 12px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.storybook-page .tip-wrapper {
|
|
51
|
+
margin-top: 40px;
|
|
52
|
+
margin-bottom: 40px;
|
|
53
|
+
font-size: 13px;
|
|
54
|
+
line-height: 20px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.storybook-page .tip-wrapper svg {
|
|
58
|
+
display: inline-block;
|
|
59
|
+
vertical-align: top;
|
|
60
|
+
margin-top: 3px;
|
|
61
|
+
margin-right: 4px;
|
|
62
|
+
width: 12px;
|
|
63
|
+
height: 12px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.storybook-page .tip-wrapper svg path {
|
|
67
|
+
fill: #1ea7fd;
|
|
68
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// The file that contains a call to createTheme must have a use client directive
|
|
3
|
+
// https://mui.com/material-ui/integrations/nextjs/
|
|
4
|
+
import { createTheme, Theme } from "@mui/material/styles";
|
|
5
|
+
import { Shadows, ThemeOptions } from "@mui/material";
|
|
6
|
+
import { ThemeItem } from "@evenicanpm/storefront-core/src/api-manager/datasources/e4/graphqlRequestSdk";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Converts database theme object into an MUI theme object to pass to the ThemeProvider
|
|
10
|
+
* @param themeObject is E4 theme entity
|
|
11
|
+
* @returns an MUI theme object
|
|
12
|
+
*/
|
|
13
|
+
const themeBuilder = (themeObject: ThemeItem): Theme => {
|
|
14
|
+
const theme = {
|
|
15
|
+
breakpoints: {
|
|
16
|
+
values: {
|
|
17
|
+
xs: 0,
|
|
18
|
+
sm: themeObject.smBreakpoint,
|
|
19
|
+
md: themeObject.mdBreakpoint,
|
|
20
|
+
lg: themeObject.lgBreakpoint,
|
|
21
|
+
xl: themeObject.xlBreakpoint,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
palette: {
|
|
25
|
+
background: {
|
|
26
|
+
default: "#FAFAFA",
|
|
27
|
+
paper: themeObject.panelBackground || "#f6f9fc",
|
|
28
|
+
},
|
|
29
|
+
primary: {
|
|
30
|
+
main: themeObject.colorPrimary,
|
|
31
|
+
contrastText: "#FFF",
|
|
32
|
+
},
|
|
33
|
+
secondary: {
|
|
34
|
+
main: themeObject.colorSecondary,
|
|
35
|
+
},
|
|
36
|
+
text: {
|
|
37
|
+
primary: themeObject.textPrimary,
|
|
38
|
+
secondary: themeObject.textSecondary,
|
|
39
|
+
},
|
|
40
|
+
warning: {
|
|
41
|
+
main: themeObject.warning,
|
|
42
|
+
},
|
|
43
|
+
success: {
|
|
44
|
+
main: themeObject.success,
|
|
45
|
+
},
|
|
46
|
+
error: {
|
|
47
|
+
main: themeObject.error,
|
|
48
|
+
},
|
|
49
|
+
info: {
|
|
50
|
+
main: themeObject.info,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
typography: {
|
|
54
|
+
fontFamily: themeObject.fontFamily,
|
|
55
|
+
h1: {
|
|
56
|
+
fontSize: `${themeObject.h1}rem`,
|
|
57
|
+
fontFamily: themeObject.h1Font || themeObject.fontFamily,
|
|
58
|
+
},
|
|
59
|
+
h2: {
|
|
60
|
+
fontSize: `${themeObject.h2}rem`,
|
|
61
|
+
fontFamily: themeObject.fontFamily,
|
|
62
|
+
},
|
|
63
|
+
h3: {
|
|
64
|
+
fontSize: `${themeObject.h3}rem`,
|
|
65
|
+
fontFamily: themeObject.fontFamily,
|
|
66
|
+
},
|
|
67
|
+
h4: {
|
|
68
|
+
fontSize: `${themeObject.h4}rem`,
|
|
69
|
+
fontFamily: themeObject.fontFamily,
|
|
70
|
+
},
|
|
71
|
+
h5: {
|
|
72
|
+
fontSize: `${themeObject.h5}rem`,
|
|
73
|
+
fontFamily: themeObject.h5Font || themeObject.fontFamily,
|
|
74
|
+
},
|
|
75
|
+
h6: {
|
|
76
|
+
fontSize: `${themeObject.h6}rem`,
|
|
77
|
+
fontFamily: themeObject.h6Font || themeObject.fontFamily,
|
|
78
|
+
},
|
|
79
|
+
body1: {
|
|
80
|
+
fontSize: `${themeObject.body1}rem`,
|
|
81
|
+
fontFamily: themeObject.body1Font || themeObject.fontFamily,
|
|
82
|
+
},
|
|
83
|
+
body2: {
|
|
84
|
+
fontSize: `${themeObject.body2}rem`,
|
|
85
|
+
fontFamily: themeObject.body2Font || themeObject.fontFamily,
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
shape: {
|
|
89
|
+
borderRadius: 4,
|
|
90
|
+
},
|
|
91
|
+
shadows: [
|
|
92
|
+
"none",
|
|
93
|
+
"0px 0px 3px rgba(0, 0, 0, 0.09)",
|
|
94
|
+
"0px 35px 60px rgba(0, 0, 0, 0.25)",
|
|
95
|
+
"20px 55px 60px rgba(0, 0, 0, 0.25)",
|
|
96
|
+
"10px 15px 60px rgba(0, 0, 0, 0.25)",
|
|
97
|
+
...Array(20).fill("none"),
|
|
98
|
+
] as Shadows,
|
|
99
|
+
};
|
|
100
|
+
const e4Theme = createTheme(theme as ThemeOptions);
|
|
101
|
+
return e4Theme;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export default themeBuilder;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { Components } from "@mui/material/styles/components";
|
|
2
|
+
import { dark, grey, primary, secondary, success } from "./theme-colors";
|
|
3
|
+
import { typography } from "./typography";
|
|
4
|
+
import { classes } from "./utils";
|
|
5
|
+
|
|
6
|
+
// ========================================================
|
|
7
|
+
|
|
8
|
+
declare module "@mui/material/Button" {
|
|
9
|
+
interface ButtonPropsColorOverrides {
|
|
10
|
+
dark: true;
|
|
11
|
+
paste: true;
|
|
12
|
+
marron: true;
|
|
13
|
+
orange: true;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface ButtonPropsSizeOverrides {
|
|
17
|
+
normal: true;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
// =========================================================
|
|
21
|
+
|
|
22
|
+
export const components: Components = {
|
|
23
|
+
MuiCssBaseline: {
|
|
24
|
+
styleOverrides: {
|
|
25
|
+
"*": {
|
|
26
|
+
margin: 0,
|
|
27
|
+
padding: 0,
|
|
28
|
+
boxSizing: "border-box",
|
|
29
|
+
scrollBehavior: "smooth",
|
|
30
|
+
},
|
|
31
|
+
html: {
|
|
32
|
+
scrollBehavior: "smooth",
|
|
33
|
+
},
|
|
34
|
+
p: {
|
|
35
|
+
lineHeight: 1.75,
|
|
36
|
+
},
|
|
37
|
+
button: {
|
|
38
|
+
fontSize: 14,
|
|
39
|
+
fontFamily: typography.fontFamily,
|
|
40
|
+
},
|
|
41
|
+
".MuiRating-sizeSmall": {
|
|
42
|
+
fontSize: "20px",
|
|
43
|
+
},
|
|
44
|
+
a: {
|
|
45
|
+
color: "inherit",
|
|
46
|
+
textDecoration: "none",
|
|
47
|
+
},
|
|
48
|
+
ul: {
|
|
49
|
+
margin: 0,
|
|
50
|
+
padding: 0,
|
|
51
|
+
listStyle: "none",
|
|
52
|
+
},
|
|
53
|
+
".bg-white": {
|
|
54
|
+
backgroundColor: "white",
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
...classes(),
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
MuiInputLabel: {
|
|
61
|
+
styleOverrides: {
|
|
62
|
+
root: { zIndex: 0 },
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
MuiDialog: {
|
|
66
|
+
styleOverrides: {
|
|
67
|
+
paper: { borderRadius: 8 },
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
MuiCard: {
|
|
71
|
+
styleOverrides: {
|
|
72
|
+
root: { borderRadius: "8px" },
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
MuiPagination: {
|
|
76
|
+
defaultProps: {
|
|
77
|
+
variant: "outlined",
|
|
78
|
+
color: "primary",
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
MuiMenuItem: {
|
|
82
|
+
styleOverrides: {
|
|
83
|
+
root: { paddingTop: 8, paddingBottom: 8 },
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
MuiSvgIcon: {
|
|
87
|
+
styleOverrides: {
|
|
88
|
+
root: {
|
|
89
|
+
"& .secondary": { opacity: 0.4 },
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
MuiTextField: {
|
|
94
|
+
defaultProps: { size: "small", variant: "outlined" },
|
|
95
|
+
styleOverrides: {
|
|
96
|
+
root: ({ ownerState }) => ({
|
|
97
|
+
...(ownerState.color === "info" && {
|
|
98
|
+
"& .MuiOutlinedInput-root": { borderRadius: "8px", fontWeight: 600 },
|
|
99
|
+
"& .MuiOutlinedInput-notchedOutline": { borderColor: grey[300] },
|
|
100
|
+
}),
|
|
101
|
+
}),
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
MuiButton: {
|
|
106
|
+
styleOverrides: {
|
|
107
|
+
root: ({ ownerState }) => ({
|
|
108
|
+
minWidth: 0,
|
|
109
|
+
minHeight: 0,
|
|
110
|
+
fontWeight: 600,
|
|
111
|
+
borderRadius: "6px",
|
|
112
|
+
textTransform: "capitalize",
|
|
113
|
+
|
|
114
|
+
...(ownerState.color === "dark" && {
|
|
115
|
+
color: "#fff",
|
|
116
|
+
borderRadius: 0,
|
|
117
|
+
transition: "all 0.3s",
|
|
118
|
+
":hover": { backgroundColor: "#343434" },
|
|
119
|
+
}),
|
|
120
|
+
|
|
121
|
+
...(ownerState.color === "dark" &&
|
|
122
|
+
ownerState.variant === "outlined" && {
|
|
123
|
+
color: dark.main,
|
|
124
|
+
borderRadius: "3px",
|
|
125
|
+
transition: "all 0.3s",
|
|
126
|
+
":hover": { backgroundColor: dark.main, color: "white" },
|
|
127
|
+
}),
|
|
128
|
+
|
|
129
|
+
...((ownerState.color === "info" || ownerState.color === "orange") && {
|
|
130
|
+
borderRadius: "8px",
|
|
131
|
+
}),
|
|
132
|
+
|
|
133
|
+
...((ownerState.color === "orange" ||
|
|
134
|
+
ownerState.color === "success") && {
|
|
135
|
+
color: "white",
|
|
136
|
+
}),
|
|
137
|
+
}),
|
|
138
|
+
sizeLarge: { padding: ".6rem 2.5rem" },
|
|
139
|
+
},
|
|
140
|
+
defaultProps: { color: "inherit" },
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
MuiChip: {
|
|
144
|
+
defaultProps: { color: "primary" },
|
|
145
|
+
styleOverrides: {
|
|
146
|
+
labelSmall: { paddingInline: 12 },
|
|
147
|
+
colorSuccess: { color: success.main, backgroundColor: success[100] },
|
|
148
|
+
colorSecondary: {
|
|
149
|
+
color: secondary[500],
|
|
150
|
+
backgroundColor: secondary[100],
|
|
151
|
+
},
|
|
152
|
+
colorPrimary: {
|
|
153
|
+
color: primary[500],
|
|
154
|
+
backgroundColor: primary[100],
|
|
155
|
+
"&:hover": { color: primary[500], backgroundColor: primary[100] },
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
MuiContainer: {
|
|
161
|
+
defaultProps: { maxWidth: "xl" },
|
|
162
|
+
},
|
|
163
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import createCache from "@emotion/cache";
|
|
4
|
+
import { useServerInsertedHTML } from "next/navigation";
|
|
5
|
+
import { CacheProvider as DefaultCacheProvider } from "@emotion/react";
|
|
6
|
+
import type {
|
|
7
|
+
EmotionCache,
|
|
8
|
+
Options as OptionsOfCreateCache,
|
|
9
|
+
} from "@emotion/cache";
|
|
10
|
+
|
|
11
|
+
export type NextAppDirEmotionCacheProviderProps = {
|
|
12
|
+
/** This is the options passed to createCache() from 'import createCache from "@emotion/cache"' */
|
|
13
|
+
options: Omit<OptionsOfCreateCache, "insertionPoint">;
|
|
14
|
+
/** By default <CacheProvider /> from 'import { CacheProvider } from "@emotion/react"' */
|
|
15
|
+
CacheProvider?: (props: {
|
|
16
|
+
value: EmotionCache;
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}) => React.JSX.Element | null;
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
// Adapted from https://github.com/garronej/tss-react/blob/main/src/next/appDir.tsx
|
|
23
|
+
export default function NextAppDirEmotionCacheProvider(
|
|
24
|
+
props: NextAppDirEmotionCacheProviderProps,
|
|
25
|
+
) {
|
|
26
|
+
const { options, CacheProvider = DefaultCacheProvider, children } = props;
|
|
27
|
+
|
|
28
|
+
const [registry] = React.useState(() => {
|
|
29
|
+
const cache = createCache(options);
|
|
30
|
+
cache.compat = true;
|
|
31
|
+
const prevInsert = cache.insert;
|
|
32
|
+
let inserted: { name: string; isGlobal: boolean }[] = [];
|
|
33
|
+
|
|
34
|
+
cache.insert = (...args) => {
|
|
35
|
+
const [selector, serialized] = args;
|
|
36
|
+
if (cache.inserted[serialized.name] === undefined) {
|
|
37
|
+
inserted.push({
|
|
38
|
+
name: serialized.name,
|
|
39
|
+
isGlobal: !selector,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return prevInsert(...args);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const flush = () => {
|
|
46
|
+
const prevInserted = inserted;
|
|
47
|
+
inserted = [];
|
|
48
|
+
return prevInserted;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
return { cache, flush };
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
useServerInsertedHTML(() => {
|
|
55
|
+
const inserted = registry.flush();
|
|
56
|
+
|
|
57
|
+
if (inserted.length === 0) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
let styles = "";
|
|
62
|
+
let dataEmotionAttribute = registry.cache.key;
|
|
63
|
+
|
|
64
|
+
const globals: { name: string; style: string }[] = [];
|
|
65
|
+
|
|
66
|
+
inserted.forEach(({ name, isGlobal }) => {
|
|
67
|
+
const style = registry.cache.inserted[name] ?? "";
|
|
68
|
+
|
|
69
|
+
if (typeof style !== "boolean") {
|
|
70
|
+
if (isGlobal) {
|
|
71
|
+
globals.push({ name, style });
|
|
72
|
+
} else {
|
|
73
|
+
styles += style;
|
|
74
|
+
dataEmotionAttribute += ` ${name}`;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<React.Fragment>
|
|
81
|
+
{globals.map(({ name, style }) => (
|
|
82
|
+
<style
|
|
83
|
+
key={name}
|
|
84
|
+
data-emotion={`${registry.cache.key}-global ${name}`}
|
|
85
|
+
// eslint-disable-next-line react/no-danger
|
|
86
|
+
dangerouslySetInnerHTML={{ __html: style }}
|
|
87
|
+
/>
|
|
88
|
+
))}
|
|
89
|
+
{styles && (
|
|
90
|
+
<style
|
|
91
|
+
data-emotion={dataEmotionAttribute}
|
|
92
|
+
// eslint-disable-next-line react/no-danger
|
|
93
|
+
dangerouslySetInnerHTML={{ __html: styles }}
|
|
94
|
+
/>
|
|
95
|
+
)}
|
|
96
|
+
</React.Fragment>
|
|
97
|
+
);
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
return <CacheProvider value={registry.cache}>{children}</CacheProvider>;
|
|
101
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
// =================================================================
|
|
2
|
+
interface CustomPaletteColor {
|
|
3
|
+
50: string;
|
|
4
|
+
100: string;
|
|
5
|
+
200: string;
|
|
6
|
+
300: string;
|
|
7
|
+
400: string;
|
|
8
|
+
600: string;
|
|
9
|
+
700: string;
|
|
10
|
+
800: string;
|
|
11
|
+
900: string;
|
|
12
|
+
main: string;
|
|
13
|
+
contrastText: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare module "@mui/material/styles" {
|
|
17
|
+
interface Palette {
|
|
18
|
+
dark: CustomPaletteColor;
|
|
19
|
+
paste: CustomPaletteColor;
|
|
20
|
+
marron: CustomPaletteColor;
|
|
21
|
+
orange: CustomPaletteColor;
|
|
22
|
+
bluish: CustomPaletteColor;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface PaletteOptions {
|
|
26
|
+
gold: CustomPaletteColor;
|
|
27
|
+
dark: CustomPaletteColor;
|
|
28
|
+
paste: CustomPaletteColor;
|
|
29
|
+
marron: CustomPaletteColor;
|
|
30
|
+
orange: CustomPaletteColor;
|
|
31
|
+
bluish: CustomPaletteColor;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
// =================================================================
|
|
35
|
+
|
|
36
|
+
export const grey = {
|
|
37
|
+
900: "#2B3445", // Main Text
|
|
38
|
+
800: "#373F50", // Paragraph
|
|
39
|
+
700: "#4B566B",
|
|
40
|
+
600: "#7D879C", // Low Priority form Title/Text
|
|
41
|
+
500: "#AEB4BE",
|
|
42
|
+
400: "#DAE1E7", // Border
|
|
43
|
+
300: "#E3E9EF",
|
|
44
|
+
200: "#F3F5F9", // Line Stroke
|
|
45
|
+
100: "#FFFFFF",
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const primary = {
|
|
49
|
+
100: "#FCE9EC",
|
|
50
|
+
200: "#F8C7CF",
|
|
51
|
+
300: "#F07D90",
|
|
52
|
+
400: "#EC6178",
|
|
53
|
+
500: "#D23F57",
|
|
54
|
+
600: "#E63E58",
|
|
55
|
+
700: "#E3364E",
|
|
56
|
+
800: "#DF2E44",
|
|
57
|
+
900: "#D91F33",
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const secondary = {
|
|
61
|
+
100: "#e8e8ee",
|
|
62
|
+
200: "#b9bacb",
|
|
63
|
+
300: "#8a8ca8",
|
|
64
|
+
400: "#5b5d85",
|
|
65
|
+
500: "#141850",
|
|
66
|
+
600: "#0F3460",
|
|
67
|
+
700: "#101340",
|
|
68
|
+
800: "#0e1138",
|
|
69
|
+
900: "#0c0e30",
|
|
70
|
+
main: "#0F3460",
|
|
71
|
+
dark: "#0c0e30",
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const error = {
|
|
75
|
+
100: "#FFEAEA",
|
|
76
|
+
200: "#FFCBCB",
|
|
77
|
+
300: "#FFA9A9",
|
|
78
|
+
400: "#FF6D6D",
|
|
79
|
+
500: "#FF5353",
|
|
80
|
+
600: "#FF4C4C",
|
|
81
|
+
700: "#FF4242",
|
|
82
|
+
800: "#FF3939",
|
|
83
|
+
900: "#FF2929",
|
|
84
|
+
main: "#E94560",
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export const success = {
|
|
88
|
+
100: "#E7F9ED",
|
|
89
|
+
200: "#C2F1D1",
|
|
90
|
+
300: "#99E8B3",
|
|
91
|
+
400: "#52D77E",
|
|
92
|
+
500: "#33D067",
|
|
93
|
+
600: "#2ECB5F",
|
|
94
|
+
700: "#27C454",
|
|
95
|
+
800: "#20BE4A",
|
|
96
|
+
900: "#0b7724",
|
|
97
|
+
main: "rgb(51, 208, 103)",
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export const blue = {
|
|
101
|
+
50: "#f3f5f9",
|
|
102
|
+
100: "#DBF0FE",
|
|
103
|
+
200: "#B8DEFE",
|
|
104
|
+
300: "#94C9FE",
|
|
105
|
+
400: "#7AB6FD",
|
|
106
|
+
500: "#4E97FD",
|
|
107
|
+
600: "#3975D9",
|
|
108
|
+
700: "#2756B6",
|
|
109
|
+
800: "#183C92",
|
|
110
|
+
900: "#0E2979",
|
|
111
|
+
main: "#4E97FD",
|
|
112
|
+
contrastText: "#FFFFFF",
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export const marron = {
|
|
116
|
+
50: "#f3f5f9",
|
|
117
|
+
100: "#F6F2ED",
|
|
118
|
+
200: "#F8DBD1",
|
|
119
|
+
300: "#EBBCB3",
|
|
120
|
+
400: "#D89C98",
|
|
121
|
+
600: "#A3545C",
|
|
122
|
+
700: "#883948",
|
|
123
|
+
800: "#6E2438",
|
|
124
|
+
900: "#5B162F",
|
|
125
|
+
main: "#BE7374",
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export const paste = {
|
|
129
|
+
50: "#F5F5F5",
|
|
130
|
+
100: "#DDFBF1",
|
|
131
|
+
200: "#BDF7E8",
|
|
132
|
+
300: "#97E8DA",
|
|
133
|
+
400: "#76D2CA",
|
|
134
|
+
600: "#36929A",
|
|
135
|
+
700: "#257181",
|
|
136
|
+
800: "#175368",
|
|
137
|
+
900: "#0E3D56",
|
|
138
|
+
main: "#4BB4B4",
|
|
139
|
+
contrastText: "#FFFFFF",
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export const orange = {
|
|
143
|
+
50: "#FEE9D2",
|
|
144
|
+
100: "#FDD8AF",
|
|
145
|
+
200: "#FCC487",
|
|
146
|
+
300: "#FCB05F",
|
|
147
|
+
400: "#FB9C37",
|
|
148
|
+
500: "#FA8C16",
|
|
149
|
+
600: "#C86904",
|
|
150
|
+
700: "#A05403",
|
|
151
|
+
800: "#783F03",
|
|
152
|
+
900: "#502A02",
|
|
153
|
+
main: "#FA8C16",
|
|
154
|
+
dark: "#C86904",
|
|
155
|
+
light: "#FDD8AF",
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export const bluish = {
|
|
159
|
+
100: "#DDFBF1",
|
|
160
|
+
200: "#BDF7E8",
|
|
161
|
+
300: "#97E8DA",
|
|
162
|
+
400: "#76D2CA",
|
|
163
|
+
500: "#4BB4B4",
|
|
164
|
+
600: "#36929A",
|
|
165
|
+
700: "#257181",
|
|
166
|
+
800: "#175368",
|
|
167
|
+
900: "#0E3D56",
|
|
168
|
+
main: "#4BB4B4",
|
|
169
|
+
dark: "#36929A",
|
|
170
|
+
light: "#BDF7E8",
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export const warning = {
|
|
174
|
+
100: "#FFF8E5",
|
|
175
|
+
main: "#FFCD4E",
|
|
176
|
+
dark: "#FA8C16",
|
|
177
|
+
contrastText: "#FFFFFF",
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export const gold = {
|
|
181
|
+
main: "#BB9C36",
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export const bluishBackground = "#F6F9FC";
|
|
185
|
+
|
|
186
|
+
export const dark = { main: "#1F2937" };
|
|
187
|
+
export const white = { main: "#fff" };
|
|
188
|
+
|
|
189
|
+
export const themeColors = {
|
|
190
|
+
dark,
|
|
191
|
+
grey,
|
|
192
|
+
gold,
|
|
193
|
+
paste,
|
|
194
|
+
error,
|
|
195
|
+
orange,
|
|
196
|
+
marron,
|
|
197
|
+
bluish,
|
|
198
|
+
warning,
|
|
199
|
+
success,
|
|
200
|
+
secondary,
|
|
201
|
+
info: blue,
|
|
202
|
+
divider: grey[200],
|
|
203
|
+
background: { default: grey[100] },
|
|
204
|
+
text: { primary: grey[900], secondary: grey[800], disabled: grey[400] },
|
|
205
|
+
};
|