@ikas/code-components-mcp 0.104.0 → 0.106.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/data/section-templates/account-info-section/_meta.json +4 -0
- package/data/section-templates/account-info-section/children/AccountAddresses/components/AddressCard/index.tsx +55 -0
- package/data/section-templates/account-info-section/children/AccountAddresses/components/AddressCard/styles.css +46 -0
- package/data/section-templates/account-info-section/children/AccountAddresses/components/AddressModal/index.tsx +301 -0
- package/data/section-templates/account-info-section/children/AccountAddresses/components/AddressModal/styles.css +22 -0
- package/data/section-templates/account-info-section/children/AccountAddresses/ikas-config-snippet.json +122 -0
- package/data/section-templates/account-info-section/children/AccountAddresses/index.tsx +127 -0
- package/data/section-templates/account-info-section/children/AccountAddresses/styles.css +41 -0
- package/data/section-templates/account-info-section/children/AccountAddresses/types.ts +14 -0
- package/data/section-templates/account-info-section/children/AccountFavorites/ikas-config-snippet.json +57 -0
- package/data/section-templates/account-info-section/children/AccountFavorites/index.tsx +82 -0
- package/data/section-templates/account-info-section/children/AccountFavorites/styles.css +52 -0
- package/data/section-templates/account-info-section/children/AccountFavorites/types.ts +6 -0
- package/data/section-templates/account-info-section/children/AccountInfoContent/ikas-config-snippet.json +66 -0
- package/data/section-templates/account-info-section/children/AccountInfoContent/index.tsx +134 -0
- package/data/section-templates/account-info-section/children/AccountInfoContent/styles.css +57 -0
- package/data/section-templates/account-info-section/children/AccountInfoContent/types.ts +7 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderHeader/index.tsx +78 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderHeader/styles.css +46 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderItemRow/index.tsx +20 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderItemRow/styles.css +16 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderLineItemDisplay/index.tsx +112 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderLineItemDisplay/styles.css +86 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderSidebar/index.tsx +195 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderSidebar/styles.css +93 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/PackageGroup/index.tsx +156 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/PackageGroup/styles.css +100 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/ReturnItemRow/index.tsx +56 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/ReturnItemRow/styles.css +57 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/ReturnView/index.tsx +159 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/components/ReturnView/styles.css +29 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/ikas-config-snippet.json +283 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/index.tsx +244 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/styles.css +125 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/types.ts +31 -0
- package/data/section-templates/account-info-section/children/AccountOrders/components/OrderCard/index.tsx +122 -0
- package/data/section-templates/account-info-section/children/AccountOrders/components/OrderCard/styles.css +114 -0
- package/data/section-templates/account-info-section/children/AccountOrders/ikas-config-snippet.json +85 -0
- package/data/section-templates/account-info-section/children/AccountOrders/index.tsx +105 -0
- package/data/section-templates/account-info-section/children/AccountOrders/styles.css +36 -0
- package/data/section-templates/account-info-section/children/AccountOrders/types.ts +10 -0
- package/data/section-templates/account-info-section/components/AccountSidebar/index.tsx +171 -0
- package/data/section-templates/account-info-section/components/AccountSidebar/styles.css +144 -0
- package/data/section-templates/account-info-section/global-types.ts +13 -0
- package/data/section-templates/account-info-section/hooks/useScrollLock.ts +20 -0
- package/data/section-templates/account-info-section/ikas-config-snippet.json +69 -0
- package/data/section-templates/account-info-section/index.tsx +91 -0
- package/data/section-templates/account-info-section/styles.css +35 -0
- package/data/section-templates/account-info-section/sub-components/Breadcrumb/index.tsx +57 -0
- package/data/section-templates/account-info-section/sub-components/Breadcrumb/styles.css +49 -0
- package/data/section-templates/account-info-section/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/account-info-section/sub-components/Button/styles.css +114 -0
- package/data/section-templates/account-info-section/sub-components/Checkbox/index.tsx +42 -0
- package/data/section-templates/account-info-section/sub-components/Checkbox/styles.css +65 -0
- package/data/section-templates/account-info-section/sub-components/ConfirmModal/index.tsx +60 -0
- package/data/section-templates/account-info-section/sub-components/ConfirmModal/styles.css +20 -0
- package/data/section-templates/account-info-section/sub-components/FormItem/index.tsx +66 -0
- package/data/section-templates/account-info-section/sub-components/FormItem/styles.css +38 -0
- package/data/section-templates/account-info-section/sub-components/Input/index.tsx +69 -0
- package/data/section-templates/account-info-section/sub-components/Input/styles.css +162 -0
- package/data/section-templates/account-info-section/sub-components/Modal/index.tsx +118 -0
- package/data/section-templates/account-info-section/sub-components/Modal/styles.css +70 -0
- package/data/section-templates/account-info-section/sub-components/PageLoader/index.tsx +14 -0
- package/data/section-templates/account-info-section/sub-components/PageLoader/styles.css +12 -0
- package/data/section-templates/account-info-section/sub-components/ProductCard/index.tsx +276 -0
- package/data/section-templates/account-info-section/sub-components/ProductCard/styles.css +99 -0
- package/data/section-templates/account-info-section/sub-components/Select/index.tsx +86 -0
- package/data/section-templates/account-info-section/sub-components/Select/styles.css +110 -0
- package/data/section-templates/account-info-section/sub-components/SkeletonField/index.tsx +12 -0
- package/data/section-templates/account-info-section/sub-components/SkeletonField/styles.css +29 -0
- package/data/section-templates/account-info-section/sub-components/SpinnerIcon/index.tsx +10 -0
- package/data/section-templates/account-info-section/sub-components/SpinnerIcon/styles.css +8 -0
- package/data/section-templates/account-info-section/sub-components/Tag/index.tsx +21 -0
- package/data/section-templates/account-info-section/sub-components/Tag/styles.css +30 -0
- package/data/section-templates/account-info-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/account-info-section/types.ts +8 -0
- package/data/section-templates/account-info-section/utils/cx.ts +4 -0
- package/data/section-templates/account-info-section/utils/fullName.ts +6 -0
- package/data/section-templates/account-info-section/utils/media.ts +36 -0
- package/data/section-templates/account-info-section/utils/orderStatus.ts +28 -0
- package/data/section-templates/account-info-section/utils/toast.ts +5 -0
- package/data/section-templates/add-to-cart/_meta.json +4 -0
- package/data/section-templates/add-to-cart/components/PayWithIkas/index.tsx +34 -0
- package/data/section-templates/add-to-cart/components/PayWithIkas/styles.css +4 -0
- package/data/section-templates/add-to-cart/hooks/usePayWithIkas.ts +114 -0
- package/data/section-templates/add-to-cart/ikas-config-snippet.json +139 -0
- package/data/section-templates/add-to-cart/index.tsx +146 -0
- package/data/section-templates/add-to-cart/styles.css +27 -0
- package/data/section-templates/add-to-cart/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/add-to-cart/sub-components/Button/styles.css +114 -0
- package/data/section-templates/add-to-cart/sub-components/QuantitySelector/index.tsx +41 -0
- package/data/section-templates/add-to-cart/sub-components/QuantitySelector/styles.css +51 -0
- package/data/section-templates/add-to-cart/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/add-to-cart/types.ts +17 -0
- package/data/section-templates/add-to-cart/utils/bundle.ts +70 -0
- package/data/section-templates/add-to-cart/utils/cx.ts +4 -0
- package/data/section-templates/add-to-cart/utils/optionSet.ts +17 -0
- package/data/section-templates/add-to-cart/utils/toast.ts +5 -0
- package/data/section-templates/blog-home-section/_meta.json +4 -0
- package/data/section-templates/blog-home-section/components/BlogCard/index.tsx +89 -0
- package/data/section-templates/blog-home-section/components/BlogCard/styles.css +121 -0
- package/data/section-templates/blog-home-section/global-types.ts +13 -0
- package/data/section-templates/blog-home-section/ikas-config-snippet.json +95 -0
- package/data/section-templates/blog-home-section/index.tsx +124 -0
- package/data/section-templates/blog-home-section/styles.css +118 -0
- package/data/section-templates/blog-home-section/sub-components/Pagination/index.tsx +107 -0
- package/data/section-templates/blog-home-section/sub-components/Pagination/styles.css +88 -0
- package/data/section-templates/blog-home-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/blog-home-section/types.ts +14 -0
- package/data/section-templates/blog-home-section/utils/cx.ts +4 -0
- package/data/section-templates/blog-home-section/utils/fullName.ts +6 -0
- package/data/section-templates/blog-home-section/utils/media.ts +36 -0
- package/data/section-templates/blog-home-section/utils/pagination.ts +29 -0
- package/data/section-templates/blog-post-section/_meta.json +4 -0
- package/data/section-templates/blog-post-section/global-types.ts +13 -0
- package/data/section-templates/blog-post-section/ikas-config-snippet.json +75 -0
- package/data/section-templates/blog-post-section/index.tsx +128 -0
- package/data/section-templates/blog-post-section/styles.css +120 -0
- package/data/section-templates/blog-post-section/sub-components/Breadcrumb/index.tsx +57 -0
- package/data/section-templates/blog-post-section/sub-components/Breadcrumb/styles.css +49 -0
- package/data/section-templates/blog-post-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/blog-post-section/types.ts +11 -0
- package/data/section-templates/blog-post-section/utils/cx.ts +4 -0
- package/data/section-templates/blog-post-section/utils/fullName.ts +6 -0
- package/data/section-templates/blog-post-section/utils/media.ts +36 -0
- package/data/section-templates/bundle-products/_meta.json +4 -0
- package/data/section-templates/bundle-products/components/BundleProductItem/index.tsx +169 -0
- package/data/section-templates/bundle-products/components/BundleProductItem/styles.css +141 -0
- package/data/section-templates/bundle-products/components/BundleSkeletonLoading/index.tsx +35 -0
- package/data/section-templates/bundle-products/components/BundleSkeletonLoading/styles.css +85 -0
- package/data/section-templates/bundle-products/components/FurnitureRow/index.tsx +51 -0
- package/data/section-templates/bundle-products/components/FurnitureRow/styles.css +30 -0
- package/data/section-templates/bundle-products/components/FurnitureView/index.tsx +54 -0
- package/data/section-templates/bundle-products/components/FurnitureView/styles.css +22 -0
- package/data/section-templates/bundle-products/global-types.ts +13 -0
- package/data/section-templates/bundle-products/hooks/useBundleProducts.ts +75 -0
- package/data/section-templates/bundle-products/ikas-config-snippet.json +130 -0
- package/data/section-templates/bundle-products/index.tsx +101 -0
- package/data/section-templates/bundle-products/styles.css +20 -0
- package/data/section-templates/bundle-products/sub-components/Badge/index.tsx +208 -0
- package/data/section-templates/bundle-products/sub-components/Badge/styles.css +129 -0
- package/data/section-templates/bundle-products/sub-components/BundleMedia/index.tsx +72 -0
- package/data/section-templates/bundle-products/sub-components/BundleQuantityBox/index.tsx +73 -0
- package/data/section-templates/bundle-products/sub-components/BundleQuantityBox/styles.css +43 -0
- package/data/section-templates/bundle-products/sub-components/VariantBadge/index.tsx +153 -0
- package/data/section-templates/bundle-products/sub-components/VariantBadge/styles.css +47 -0
- package/data/section-templates/bundle-products/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/bundle-products/types.ts +17 -0
- package/data/section-templates/bundle-products/utils/bundle.ts +70 -0
- package/data/section-templates/bundle-products/utils/cx.ts +4 -0
- package/data/section-templates/bundle-products/utils/media.ts +36 -0
- package/data/section-templates/cart-section/_meta.json +4 -0
- package/data/section-templates/cart-section/components/CouponCode/index.tsx +108 -0
- package/data/section-templates/cart-section/components/CouponCode/styles.css +68 -0
- package/data/section-templates/cart-section/components/EmptyState/index.tsx +31 -0
- package/data/section-templates/cart-section/components/EmptyState/styles.css +18 -0
- package/data/section-templates/cart-section/components/OrderSummary/index.tsx +106 -0
- package/data/section-templates/cart-section/components/OrderSummary/styles.css +70 -0
- package/data/section-templates/cart-section/global-types.ts +13 -0
- package/data/section-templates/cart-section/ikas-config-snippet.json +130 -0
- package/data/section-templates/cart-section/index.tsx +107 -0
- package/data/section-templates/cart-section/styles.css +54 -0
- package/data/section-templates/cart-section/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/cart-section/sub-components/Button/styles.css +114 -0
- package/data/section-templates/cart-section/sub-components/CartItem/components/BundleProductItem/index.tsx +59 -0
- package/data/section-templates/cart-section/sub-components/CartItem/components/BundleProductItem/styles.css +24 -0
- package/data/section-templates/cart-section/sub-components/CartItem/components/BundleProducts/index.tsx +55 -0
- package/data/section-templates/cart-section/sub-components/CartItem/components/BundleProducts/styles.css +30 -0
- package/data/section-templates/cart-section/sub-components/CartItem/components/ItemOptions/index.tsx +31 -0
- package/data/section-templates/cart-section/sub-components/CartItem/components/ItemOptions/styles.css +6 -0
- package/data/section-templates/cart-section/sub-components/CartItem/components/OptionValueDisplay/index.tsx +79 -0
- package/data/section-templates/cart-section/sub-components/CartItem/components/OptionValueDisplay/styles.css +28 -0
- package/data/section-templates/cart-section/sub-components/CartItem/index.tsx +216 -0
- package/data/section-templates/cart-section/sub-components/CartItem/styles.css +170 -0
- package/data/section-templates/cart-section/sub-components/Input/index.tsx +69 -0
- package/data/section-templates/cart-section/sub-components/Input/styles.css +162 -0
- package/data/section-templates/cart-section/sub-components/PageLoader/index.tsx +14 -0
- package/data/section-templates/cart-section/sub-components/PageLoader/styles.css +12 -0
- package/data/section-templates/cart-section/sub-components/QuantitySelector/index.tsx +41 -0
- package/data/section-templates/cart-section/sub-components/QuantitySelector/styles.css +51 -0
- package/data/section-templates/cart-section/sub-components/SpinnerIcon/index.tsx +10 -0
- package/data/section-templates/cart-section/sub-components/SpinnerIcon/styles.css +8 -0
- package/data/section-templates/cart-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/cart-section/types.ts +15 -0
- package/data/section-templates/cart-section/utils/cx.ts +4 -0
- package/data/section-templates/cart-section/utils/media.ts +36 -0
- package/data/section-templates/category-images-section/_meta.json +4 -0
- package/data/section-templates/category-images-section/children/CategoryImageItem/components/Card/index.tsx +64 -0
- package/data/section-templates/category-images-section/children/CategoryImageItem/components/Card/styles.css +56 -0
- package/data/section-templates/category-images-section/children/CategoryImageItem/ikas-config-snippet.json +93 -0
- package/data/section-templates/category-images-section/children/CategoryImageItem/index.tsx +64 -0
- package/data/section-templates/category-images-section/children/CategoryImageItem/styles.css +10 -0
- package/data/section-templates/category-images-section/children/CategoryImageItem/types.ts +15 -0
- package/data/section-templates/category-images-section/global-types.ts +13 -0
- package/data/section-templates/category-images-section/ikas-config-snippet.json +69 -0
- package/data/section-templates/category-images-section/index.tsx +62 -0
- package/data/section-templates/category-images-section/styles.css +38 -0
- package/data/section-templates/category-images-section/types.ts +10 -0
- package/data/section-templates/category-images-section/utils/cx.ts +4 -0
- package/data/section-templates/category-images-section/utils/media.ts +36 -0
- package/data/section-templates/category-list-section/_meta.json +4 -0
- package/data/section-templates/category-list-section/children/CardProductName/ikas-config-snippet.json +21 -0
- package/data/section-templates/category-list-section/children/CardProductName/index.tsx +25 -0
- package/data/section-templates/category-list-section/children/CardProductName/styles.css +22 -0
- package/data/section-templates/category-list-section/children/CardProductName/types.ts +6 -0
- package/data/section-templates/category-list-section/children/CardProductPrice/ikas-config-snippet.json +15 -0
- package/data/section-templates/category-list-section/children/CardProductPrice/index.tsx +30 -0
- package/data/section-templates/category-list-section/children/CardProductPrice/styles.css +13 -0
- package/data/section-templates/category-list-section/children/CardProductPrice/types.ts +5 -0
- package/data/section-templates/category-list-section/children/CardProductVariants/ikas-config-snippet.json +15 -0
- package/data/section-templates/category-list-section/children/CardProductVariants/index.tsx +10 -0
- package/data/section-templates/category-list-section/children/CardProductVariants/styles.css +1 -0
- package/data/section-templates/category-list-section/children/CardProductVariants/types.ts +5 -0
- package/data/section-templates/category-list-section/components/CategoryListControls/index.tsx +129 -0
- package/data/section-templates/category-list-section/components/CategoryListControls/styles.css +99 -0
- package/data/section-templates/category-list-section/components/FilterBoxValues/index.tsx +42 -0
- package/data/section-templates/category-list-section/components/FilterBoxValues/styles.css +27 -0
- package/data/section-templates/category-list-section/components/FilterCategoryList/index.tsx +43 -0
- package/data/section-templates/category-list-section/components/FilterCategoryList/styles.css +20 -0
- package/data/section-templates/category-list-section/components/FilterGroupValues/index.tsx +114 -0
- package/data/section-templates/category-list-section/components/FilterGroupValues/styles.css +1 -0
- package/data/section-templates/category-list-section/components/FilterListValues/index.tsx +54 -0
- package/data/section-templates/category-list-section/components/FilterListValues/styles.css +22 -0
- package/data/section-templates/category-list-section/components/FilterRangeListValues/index.tsx +50 -0
- package/data/section-templates/category-list-section/components/FilterRangeListValues/styles.css +25 -0
- package/data/section-templates/category-list-section/components/FilterRangeValues/index.tsx +189 -0
- package/data/section-templates/category-list-section/components/FilterRangeValues/styles.css +89 -0
- package/data/section-templates/category-list-section/components/FilterSidebar/index.tsx +92 -0
- package/data/section-templates/category-list-section/components/FilterSidebar/styles.css +27 -0
- package/data/section-templates/category-list-section/components/FilterSwatchValues/index.tsx +63 -0
- package/data/section-templates/category-list-section/components/FilterSwatchValues/styles.css +48 -0
- package/data/section-templates/category-list-section/components/MobileFilterModal/index.tsx +146 -0
- package/data/section-templates/category-list-section/components/MobileFilterModal/styles.css +133 -0
- package/data/section-templates/category-list-section/global-types.ts +13 -0
- package/data/section-templates/category-list-section/hooks/useColumnPreference.ts +26 -0
- package/data/section-templates/category-list-section/hooks/useInfiniteScroll.ts +49 -0
- package/data/section-templates/category-list-section/hooks/usePageTracking.ts +56 -0
- package/data/section-templates/category-list-section/hooks/useScrollLock.ts +20 -0
- package/data/section-templates/category-list-section/ikas-config-snippet.json +240 -0
- package/data/section-templates/category-list-section/index.tsx +333 -0
- package/data/section-templates/category-list-section/styles.css +110 -0
- package/data/section-templates/category-list-section/sub-components/Badge/index.tsx +208 -0
- package/data/section-templates/category-list-section/sub-components/Badge/styles.css +129 -0
- package/data/section-templates/category-list-section/sub-components/Breadcrumb/index.tsx +57 -0
- package/data/section-templates/category-list-section/sub-components/Breadcrumb/styles.css +49 -0
- package/data/section-templates/category-list-section/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/category-list-section/sub-components/Button/styles.css +114 -0
- package/data/section-templates/category-list-section/sub-components/Checkbox/index.tsx +42 -0
- package/data/section-templates/category-list-section/sub-components/Checkbox/styles.css +65 -0
- package/data/section-templates/category-list-section/sub-components/CollapsibleGroup/index.tsx +52 -0
- package/data/section-templates/category-list-section/sub-components/CollapsibleGroup/styles.css +51 -0
- package/data/section-templates/category-list-section/sub-components/Input/index.tsx +69 -0
- package/data/section-templates/category-list-section/sub-components/Input/styles.css +162 -0
- package/data/section-templates/category-list-section/sub-components/Pagination/index.tsx +107 -0
- package/data/section-templates/category-list-section/sub-components/Pagination/styles.css +88 -0
- package/data/section-templates/category-list-section/sub-components/ProductCard/index.tsx +276 -0
- package/data/section-templates/category-list-section/sub-components/ProductCard/styles.css +99 -0
- package/data/section-templates/category-list-section/sub-components/Select/index.tsx +86 -0
- package/data/section-templates/category-list-section/sub-components/Select/styles.css +110 -0
- package/data/section-templates/category-list-section/sub-components/SpinnerIcon/index.tsx +10 -0
- package/data/section-templates/category-list-section/sub-components/SpinnerIcon/styles.css +8 -0
- package/data/section-templates/category-list-section/sub-components/Tag/index.tsx +21 -0
- package/data/section-templates/category-list-section/sub-components/Tag/styles.css +30 -0
- package/data/section-templates/category-list-section/sub-components/VariantBadge/index.tsx +153 -0
- package/data/section-templates/category-list-section/sub-components/VariantBadge/styles.css +47 -0
- package/data/section-templates/category-list-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/category-list-section/types.ts +29 -0
- package/data/section-templates/category-list-section/utils/cx.ts +4 -0
- package/data/section-templates/category-list-section/utils/media.ts +36 -0
- package/data/section-templates/category-list-section/utils/pagination.ts +29 -0
- package/data/section-templates/category-list-section/utils/toast.ts +5 -0
- package/data/section-templates/component-renderer/_meta.json +4 -0
- package/data/section-templates/component-renderer/additional/Features/index.tsx +25 -0
- package/data/section-templates/component-renderer/additional/Features/styles.css +39 -0
- package/data/section-templates/component-renderer/additional/Features/types.ts +4 -0
- package/data/section-templates/component-renderer/additional/ProductDetail/index.tsx +92 -0
- package/data/section-templates/component-renderer/additional/ProductDetail/styles.css +58 -0
- package/data/section-templates/component-renderer/additional/ProductDetail/types.ts +11 -0
- package/data/section-templates/component-renderer/global-types.ts +13 -0
- package/data/section-templates/component-renderer/hooks/useToast.ts +27 -0
- package/data/section-templates/component-renderer/ikas-config-snippet.json +44 -0
- package/data/section-templates/component-renderer/index.tsx +53 -0
- package/data/section-templates/component-renderer/styles.css +6 -0
- package/data/section-templates/component-renderer/sub-components/Breadcrumb/index.tsx +57 -0
- package/data/section-templates/component-renderer/sub-components/Breadcrumb/styles.css +49 -0
- package/data/section-templates/component-renderer/sub-components/Toast/index.tsx +257 -0
- package/data/section-templates/component-renderer/sub-components/Toast/styles.css +3 -0
- package/data/section-templates/component-renderer/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/component-renderer/types.ts +5 -0
- package/data/section-templates/component-renderer/utils/cx.ts +4 -0
- package/data/section-templates/email-verification-section/_meta.json +4 -0
- package/data/section-templates/email-verification-section/ikas-config-snippet.json +143 -0
- package/data/section-templates/email-verification-section/index.tsx +168 -0
- package/data/section-templates/email-verification-section/styles.css +118 -0
- package/data/section-templates/email-verification-section/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/email-verification-section/sub-components/Button/styles.css +114 -0
- package/data/section-templates/email-verification-section/sub-components/FormItem/index.tsx +66 -0
- package/data/section-templates/email-verification-section/sub-components/FormItem/styles.css +38 -0
- package/data/section-templates/email-verification-section/sub-components/Input/index.tsx +69 -0
- package/data/section-templates/email-verification-section/sub-components/Input/styles.css +162 -0
- package/data/section-templates/email-verification-section/sub-components/SpinnerIcon/index.tsx +10 -0
- package/data/section-templates/email-verification-section/sub-components/SpinnerIcon/styles.css +8 -0
- package/data/section-templates/email-verification-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/email-verification-section/types.ts +16 -0
- package/data/section-templates/email-verification-section/utils/cx.ts +4 -0
- package/data/section-templates/favorites/_meta.json +4 -0
- package/data/section-templates/favorites/ikas-config-snippet.json +72 -0
- package/data/section-templates/favorites/index.tsx +66 -0
- package/data/section-templates/favorites/styles.css +45 -0
- package/data/section-templates/favorites/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/favorites/types.ts +10 -0
- package/data/section-templates/favorites/utils/cx.ts +4 -0
- package/data/section-templates/features-section/_meta.json +4 -0
- package/data/section-templates/features-section/children/FeatureItem/ikas-config-snippet.json +21 -0
- package/data/section-templates/features-section/children/FeatureItem/index.tsx +27 -0
- package/data/section-templates/features-section/children/FeatureItem/styles.css +19 -0
- package/data/section-templates/features-section/children/FeatureItem/types.ts +6 -0
- package/data/section-templates/features-section/ikas-config-snippet.json +25 -0
- package/data/section-templates/features-section/index.tsx +25 -0
- package/data/section-templates/features-section/styles.css +39 -0
- package/data/section-templates/features-section/types.ts +4 -0
- package/data/section-templates/footer-section/_meta.json +4 -0
- package/data/section-templates/footer-section/children/SocialMediaIcon/ikas-config-snippet.json +21 -0
- package/data/section-templates/footer-section/children/SocialMediaIcon/index.tsx +26 -0
- package/data/section-templates/footer-section/children/SocialMediaIcon/styles.css +17 -0
- package/data/section-templates/footer-section/children/SocialMediaIcon/types.ts +6 -0
- package/data/section-templates/footer-section/ikas-config-snippet.json +108 -0
- package/data/section-templates/footer-section/index.tsx +154 -0
- package/data/section-templates/footer-section/styles.css +175 -0
- package/data/section-templates/footer-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/footer-section/types.ts +14 -0
- package/data/section-templates/footer-section/utils/cx.ts +4 -0
- package/data/section-templates/forgot-password-section/_meta.json +4 -0
- package/data/section-templates/forgot-password-section/components/ForgotPasswordForm/index.tsx +129 -0
- package/data/section-templates/forgot-password-section/components/ForgotPasswordForm/styles.css +0 -0
- package/data/section-templates/forgot-password-section/hooks/useRedirectIfLoggedIn.ts +35 -0
- package/data/section-templates/forgot-password-section/ikas-config-snippet.json +117 -0
- package/data/section-templates/forgot-password-section/index.tsx +30 -0
- package/data/section-templates/forgot-password-section/styles.css +85 -0
- package/data/section-templates/forgot-password-section/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/forgot-password-section/sub-components/Button/styles.css +114 -0
- package/data/section-templates/forgot-password-section/sub-components/FormItem/index.tsx +66 -0
- package/data/section-templates/forgot-password-section/sub-components/FormItem/styles.css +38 -0
- package/data/section-templates/forgot-password-section/sub-components/Input/index.tsx +69 -0
- package/data/section-templates/forgot-password-section/sub-components/Input/styles.css +162 -0
- package/data/section-templates/forgot-password-section/sub-components/PageLoader/index.tsx +14 -0
- package/data/section-templates/forgot-password-section/sub-components/PageLoader/styles.css +12 -0
- package/data/section-templates/forgot-password-section/sub-components/SpinnerIcon/index.tsx +10 -0
- package/data/section-templates/forgot-password-section/sub-components/SpinnerIcon/styles.css +8 -0
- package/data/section-templates/forgot-password-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/forgot-password-section/types.ts +12 -0
- package/data/section-templates/forgot-password-section/utils/cx.ts +4 -0
- package/data/section-templates/header-section/_meta.json +4 -0
- package/data/section-templates/header-section/children/Announcements/ikas-config-snippet.json +62 -0
- package/data/section-templates/header-section/children/Announcements/index.tsx +91 -0
- package/data/section-templates/header-section/children/Announcements/styles.css +45 -0
- package/data/section-templates/header-section/children/Announcements/types.ts +7 -0
- package/data/section-templates/header-section/children/CookieBar/ikas-config-snippet.json +79 -0
- package/data/section-templates/header-section/children/CookieBar/index.tsx +78 -0
- package/data/section-templates/header-section/children/CookieBar/styles.css +111 -0
- package/data/section-templates/header-section/children/CookieBar/types.ts +9 -0
- package/data/section-templates/header-section/children/Navbar/components/CartSidebar/index.tsx +203 -0
- package/data/section-templates/header-section/children/Navbar/components/CartSidebar/styles.css +175 -0
- package/data/section-templates/header-section/children/Navbar/components/MobileMenu/index.tsx +198 -0
- package/data/section-templates/header-section/children/Navbar/components/MobileMenu/styles.css +122 -0
- package/data/section-templates/header-section/children/Navbar/components/NavItem/index.tsx +65 -0
- package/data/section-templates/header-section/children/Navbar/components/SearchModal/index.tsx +267 -0
- package/data/section-templates/header-section/children/Navbar/components/SearchModal/styles.css +182 -0
- package/data/section-templates/header-section/children/Navbar/ikas-config-snippet.json +315 -0
- package/data/section-templates/header-section/children/Navbar/index.tsx +250 -0
- package/data/section-templates/header-section/children/Navbar/styles.css +243 -0
- package/data/section-templates/header-section/children/Navbar/types.ts +36 -0
- package/data/section-templates/header-section/global-types.ts +13 -0
- package/data/section-templates/header-section/hooks/useScrollLock.ts +20 -0
- package/data/section-templates/header-section/hooks/useToast.ts +27 -0
- package/data/section-templates/header-section/ikas-config-snippet.json +44 -0
- package/data/section-templates/header-section/index.tsx +53 -0
- package/data/section-templates/header-section/styles.css +6 -0
- package/data/section-templates/header-section/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/header-section/sub-components/Button/styles.css +114 -0
- package/data/section-templates/header-section/sub-components/CartItem/components/BundleProductItem/index.tsx +59 -0
- package/data/section-templates/header-section/sub-components/CartItem/components/BundleProductItem/styles.css +24 -0
- package/data/section-templates/header-section/sub-components/CartItem/components/BundleProducts/index.tsx +55 -0
- package/data/section-templates/header-section/sub-components/CartItem/components/BundleProducts/styles.css +30 -0
- package/data/section-templates/header-section/sub-components/CartItem/components/ItemOptions/index.tsx +31 -0
- package/data/section-templates/header-section/sub-components/CartItem/components/ItemOptions/styles.css +6 -0
- package/data/section-templates/header-section/sub-components/CartItem/components/OptionValueDisplay/index.tsx +79 -0
- package/data/section-templates/header-section/sub-components/CartItem/components/OptionValueDisplay/styles.css +28 -0
- package/data/section-templates/header-section/sub-components/CartItem/index.tsx +216 -0
- package/data/section-templates/header-section/sub-components/CartItem/styles.css +170 -0
- package/data/section-templates/header-section/sub-components/Input/index.tsx +69 -0
- package/data/section-templates/header-section/sub-components/Input/styles.css +162 -0
- package/data/section-templates/header-section/sub-components/ProductCard/index.tsx +276 -0
- package/data/section-templates/header-section/sub-components/ProductCard/styles.css +99 -0
- package/data/section-templates/header-section/sub-components/QuantitySelector/index.tsx +41 -0
- package/data/section-templates/header-section/sub-components/QuantitySelector/styles.css +51 -0
- package/data/section-templates/header-section/sub-components/SpinnerIcon/index.tsx +10 -0
- package/data/section-templates/header-section/sub-components/SpinnerIcon/styles.css +8 -0
- package/data/section-templates/header-section/sub-components/Tag/index.tsx +21 -0
- package/data/section-templates/header-section/sub-components/Tag/styles.css +30 -0
- package/data/section-templates/header-section/sub-components/Toast/index.tsx +257 -0
- package/data/section-templates/header-section/sub-components/Toast/styles.css +3 -0
- package/data/section-templates/header-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/header-section/types.ts +5 -0
- package/data/section-templates/header-section/utils/cx.ts +4 -0
- package/data/section-templates/header-section/utils/media.ts +36 -0
- package/data/section-templates/header-section/utils/toast.ts +5 -0
- package/data/section-templates/hero-slider-section/_meta.json +4 -0
- package/data/section-templates/hero-slider-section/children/HeroSliderItem/ikas-config-snippet.json +239 -0
- package/data/section-templates/hero-slider-section/children/HeroSliderItem/index.tsx +231 -0
- package/data/section-templates/hero-slider-section/children/HeroSliderItem/styles.css +152 -0
- package/data/section-templates/hero-slider-section/children/HeroSliderItem/types.ts +33 -0
- package/data/section-templates/hero-slider-section/global-types.ts +13 -0
- package/data/section-templates/hero-slider-section/ikas-config-snippet.json +67 -0
- package/data/section-templates/hero-slider-section/index.tsx +110 -0
- package/data/section-templates/hero-slider-section/styles.css +129 -0
- package/data/section-templates/hero-slider-section/sub-components/SliderArrow/index.tsx +26 -0
- package/data/section-templates/hero-slider-section/sub-components/SliderArrow/styles.css +24 -0
- package/data/section-templates/hero-slider-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/hero-slider-section/types.ts +8 -0
- package/data/section-templates/hero-slider-section/utils/cx.ts +4 -0
- package/data/section-templates/hero-slider-section/utils/media.ts +36 -0
- package/data/section-templates/image-handling/_meta.json +4 -0
- package/data/section-templates/image-handling/components/ProductGallery/index.tsx +316 -0
- package/data/section-templates/image-handling/components/ProductGallery/styles.css +213 -0
- package/data/section-templates/image-handling/global-types.ts +13 -0
- package/data/section-templates/image-handling/ikas-config-snippet.json +80 -0
- package/data/section-templates/image-handling/index.tsx +92 -0
- package/data/section-templates/image-handling/styles.css +58 -0
- package/data/section-templates/image-handling/sub-components/Breadcrumb/index.tsx +57 -0
- package/data/section-templates/image-handling/sub-components/Breadcrumb/styles.css +49 -0
- package/data/section-templates/image-handling/sub-components/SliderArrow/index.tsx +26 -0
- package/data/section-templates/image-handling/sub-components/SliderArrow/styles.css +24 -0
- package/data/section-templates/image-handling/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/image-handling/types.ts +11 -0
- package/data/section-templates/image-handling/utils/cx.ts +4 -0
- package/data/section-templates/image-handling/utils/media.ts +36 -0
- package/data/section-templates/login-section/_meta.json +4 -0
- package/data/section-templates/login-section/components/LoginForm/index.tsx +181 -0
- package/data/section-templates/login-section/components/LoginForm/styles.css +0 -0
- package/data/section-templates/login-section/hooks/useRedirectIfLoggedIn.ts +35 -0
- package/data/section-templates/login-section/ikas-config-snippet.json +169 -0
- package/data/section-templates/login-section/index.tsx +37 -0
- package/data/section-templates/login-section/styles.css +129 -0
- package/data/section-templates/login-section/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/login-section/sub-components/Button/styles.css +114 -0
- package/data/section-templates/login-section/sub-components/FormItem/index.tsx +66 -0
- package/data/section-templates/login-section/sub-components/FormItem/styles.css +38 -0
- package/data/section-templates/login-section/sub-components/Input/index.tsx +69 -0
- package/data/section-templates/login-section/sub-components/Input/styles.css +162 -0
- package/data/section-templates/login-section/sub-components/PageLoader/index.tsx +14 -0
- package/data/section-templates/login-section/sub-components/PageLoader/styles.css +12 -0
- package/data/section-templates/login-section/sub-components/SocialLoginButton/index.tsx +24 -0
- package/data/section-templates/login-section/sub-components/SocialLoginButton/styles.css +19 -0
- package/data/section-templates/login-section/sub-components/SpinnerIcon/index.tsx +10 -0
- package/data/section-templates/login-section/sub-components/SpinnerIcon/styles.css +8 -0
- package/data/section-templates/login-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/login-section/types.ts +17 -0
- package/data/section-templates/login-section/utils/cx.ts +4 -0
- package/data/section-templates/navigation/_meta.json +4 -0
- package/data/section-templates/navigation/components/CartSidebar/index.tsx +203 -0
- package/data/section-templates/navigation/components/CartSidebar/styles.css +175 -0
- package/data/section-templates/navigation/components/MobileMenu/index.tsx +198 -0
- package/data/section-templates/navigation/components/MobileMenu/styles.css +122 -0
- package/data/section-templates/navigation/components/NavItem/index.tsx +65 -0
- package/data/section-templates/navigation/components/SearchModal/index.tsx +267 -0
- package/data/section-templates/navigation/components/SearchModal/styles.css +182 -0
- package/data/section-templates/navigation/global-types.ts +13 -0
- package/data/section-templates/navigation/hooks/useScrollLock.ts +20 -0
- package/data/section-templates/navigation/ikas-config-snippet.json +315 -0
- package/data/section-templates/navigation/index.tsx +250 -0
- package/data/section-templates/navigation/styles.css +243 -0
- package/data/section-templates/navigation/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/navigation/sub-components/Button/styles.css +114 -0
- package/data/section-templates/navigation/sub-components/CartItem/components/BundleProductItem/index.tsx +59 -0
- package/data/section-templates/navigation/sub-components/CartItem/components/BundleProductItem/styles.css +24 -0
- package/data/section-templates/navigation/sub-components/CartItem/components/BundleProducts/index.tsx +55 -0
- package/data/section-templates/navigation/sub-components/CartItem/components/BundleProducts/styles.css +30 -0
- package/data/section-templates/navigation/sub-components/CartItem/components/ItemOptions/index.tsx +31 -0
- package/data/section-templates/navigation/sub-components/CartItem/components/ItemOptions/styles.css +6 -0
- package/data/section-templates/navigation/sub-components/CartItem/components/OptionValueDisplay/index.tsx +79 -0
- package/data/section-templates/navigation/sub-components/CartItem/components/OptionValueDisplay/styles.css +28 -0
- package/data/section-templates/navigation/sub-components/CartItem/index.tsx +216 -0
- package/data/section-templates/navigation/sub-components/CartItem/styles.css +170 -0
- package/data/section-templates/navigation/sub-components/Input/index.tsx +69 -0
- package/data/section-templates/navigation/sub-components/Input/styles.css +162 -0
- package/data/section-templates/navigation/sub-components/ProductCard/index.tsx +276 -0
- package/data/section-templates/navigation/sub-components/ProductCard/styles.css +99 -0
- package/data/section-templates/navigation/sub-components/QuantitySelector/index.tsx +41 -0
- package/data/section-templates/navigation/sub-components/QuantitySelector/styles.css +51 -0
- package/data/section-templates/navigation/sub-components/SpinnerIcon/index.tsx +10 -0
- package/data/section-templates/navigation/sub-components/SpinnerIcon/styles.css +8 -0
- package/data/section-templates/navigation/sub-components/Tag/index.tsx +21 -0
- package/data/section-templates/navigation/sub-components/Tag/styles.css +30 -0
- package/data/section-templates/navigation/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/navigation/types.ts +36 -0
- package/data/section-templates/navigation/utils/cx.ts +4 -0
- package/data/section-templates/navigation/utils/media.ts +36 -0
- package/data/section-templates/navigation/utils/toast.ts +5 -0
- package/data/section-templates/not-found-section/_meta.json +4 -0
- package/data/section-templates/not-found-section/ikas-config-snippet.json +44 -0
- package/data/section-templates/not-found-section/index.tsx +39 -0
- package/data/section-templates/not-found-section/styles.css +46 -0
- package/data/section-templates/not-found-section/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/not-found-section/sub-components/Button/styles.css +114 -0
- package/data/section-templates/not-found-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/not-found-section/types.ts +7 -0
- package/data/section-templates/not-found-section/utils/cx.ts +4 -0
- package/data/section-templates/product-detail-section/_meta.json +4 -0
- package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/components/PayWithIkas/index.tsx +34 -0
- package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/components/PayWithIkas/styles.css +4 -0
- package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/ikas-config-snippet.json +139 -0
- package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/index.tsx +146 -0
- package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/styles.css +27 -0
- package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/types.ts +17 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/components/BundleFurnitureRow/index.tsx +164 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/components/BundleFurnitureSection/index.tsx +134 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/components/BundleFurnitureSection/styles.css +188 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/ikas-config-snippet.json +156 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/index.tsx +61 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/styles.css +12 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/types.ts +20 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/BundleProductItem/index.tsx +169 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/BundleProductItem/styles.css +141 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/BundleSkeletonLoading/index.tsx +35 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/BundleSkeletonLoading/styles.css +85 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/FurnitureRow/index.tsx +51 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/FurnitureRow/styles.css +30 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/FurnitureView/index.tsx +54 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/FurnitureView/styles.css +22 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/ikas-config-snippet.json +130 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/index.tsx +101 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/styles.css +20 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/types.ts +17 -0
- package/data/section-templates/product-detail-section/children/ProductDetailDescription/ikas-config-snippet.json +100 -0
- package/data/section-templates/product-detail-section/children/ProductDetailDescription/index.tsx +56 -0
- package/data/section-templates/product-detail-section/children/ProductDetailDescription/styles.css +21 -0
- package/data/section-templates/product-detail-section/children/ProductDetailDescription/types.ts +12 -0
- package/data/section-templates/product-detail-section/children/ProductDetailFeatures/ikas-config-snippet.json +69 -0
- package/data/section-templates/product-detail-section/children/ProductDetailFeatures/index.tsx +40 -0
- package/data/section-templates/product-detail-section/children/ProductDetailFeatures/styles.css +17 -0
- package/data/section-templates/product-detail-section/children/ProductDetailFeatures/types.ts +9 -0
- package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/ikas-config-snippet.json +72 -0
- package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/index.tsx +66 -0
- package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/styles.css +45 -0
- package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/types.ts +10 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/components/OfferCard/index.tsx +209 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/components/OfferCard/styles.css +146 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/components/OfferSummary/index.tsx +175 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/ikas-config-snippet.json +183 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/index.tsx +199 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/styles.css +211 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/types.ts +23 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionCheckbox/index.tsx +52 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionCheckbox/styles.css +19 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/components/ChoiceBox/index.tsx +60 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/components/ChoiceBox/styles.css +38 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSelect/index.tsx +102 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSelect/styles.css +34 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSwatch/index.tsx +121 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSwatch/styles.css +87 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/index.tsx +57 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionColorPicker/index.tsx +54 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionColorPicker/styles.css +0 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionDatePicker/index.tsx +124 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionDatePicker/styles.css +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionFile/index.tsx +217 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionFile/styles.css +87 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionRenderer/index.tsx +133 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionText/index.tsx +60 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionText/styles.css +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionTextarea/index.tsx +74 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionTextarea/styles.css +10 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/ikas-config-snippet.json +159 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/index.tsx +99 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/styles.css +30 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/types.ts +20 -0
- package/data/section-templates/product-detail-section/children/ProductDetailPrices/ikas-config-snippet.json +66 -0
- package/data/section-templates/product-detail-section/children/ProductDetailPrices/index.tsx +62 -0
- package/data/section-templates/product-detail-section/children/ProductDetailPrices/styles.css +32 -0
- package/data/section-templates/product-detail-section/children/ProductDetailPrices/types.ts +9 -0
- package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/ikas-config-snippet.json +66 -0
- package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/index.tsx +74 -0
- package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/styles.css +33 -0
- package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/types.ts +9 -0
- package/data/section-templates/product-detail-section/children/ProductDetailSku/ikas-config-snippet.json +79 -0
- package/data/section-templates/product-detail-section/children/ProductDetailSku/index.tsx +38 -0
- package/data/section-templates/product-detail-section/children/ProductDetailSku/styles.css +16 -0
- package/data/section-templates/product-detail-section/children/ProductDetailSku/types.ts +10 -0
- package/data/section-templates/product-detail-section/children/ProductDetailVariant/ikas-config-snippet.json +73 -0
- package/data/section-templates/product-detail-section/children/ProductDetailVariant/index.tsx +38 -0
- package/data/section-templates/product-detail-section/children/ProductDetailVariant/styles.css +14 -0
- package/data/section-templates/product-detail-section/children/ProductDetailVariant/types.ts +11 -0
- package/data/section-templates/product-detail-section/components/ProductGallery/index.tsx +316 -0
- package/data/section-templates/product-detail-section/components/ProductGallery/styles.css +213 -0
- package/data/section-templates/product-detail-section/global-types.ts +13 -0
- package/data/section-templates/product-detail-section/hooks/useBundleProducts.ts +75 -0
- package/data/section-templates/product-detail-section/hooks/usePayWithIkas.ts +114 -0
- package/data/section-templates/product-detail-section/hooks/useScrollLock.ts +20 -0
- package/data/section-templates/product-detail-section/ikas-config-snippet.json +80 -0
- package/data/section-templates/product-detail-section/index.tsx +92 -0
- package/data/section-templates/product-detail-section/styles.css +58 -0
- package/data/section-templates/product-detail-section/sub-components/Badge/index.tsx +208 -0
- package/data/section-templates/product-detail-section/sub-components/Badge/styles.css +129 -0
- package/data/section-templates/product-detail-section/sub-components/Breadcrumb/index.tsx +57 -0
- package/data/section-templates/product-detail-section/sub-components/Breadcrumb/styles.css +49 -0
- package/data/section-templates/product-detail-section/sub-components/BundleMedia/index.tsx +72 -0
- package/data/section-templates/product-detail-section/sub-components/BundleQuantityBox/index.tsx +73 -0
- package/data/section-templates/product-detail-section/sub-components/BundleQuantityBox/styles.css +43 -0
- package/data/section-templates/product-detail-section/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/product-detail-section/sub-components/Button/styles.css +114 -0
- package/data/section-templates/product-detail-section/sub-components/Checkbox/index.tsx +42 -0
- package/data/section-templates/product-detail-section/sub-components/Checkbox/styles.css +65 -0
- package/data/section-templates/product-detail-section/sub-components/CollapsibleGroup/index.tsx +52 -0
- package/data/section-templates/product-detail-section/sub-components/CollapsibleGroup/styles.css +51 -0
- package/data/section-templates/product-detail-section/sub-components/ColorInput/index.tsx +33 -0
- package/data/section-templates/product-detail-section/sub-components/ColorInput/styles.css +53 -0
- package/data/section-templates/product-detail-section/sub-components/FormItem/index.tsx +66 -0
- package/data/section-templates/product-detail-section/sub-components/FormItem/styles.css +38 -0
- package/data/section-templates/product-detail-section/sub-components/ImagePreviewModal/index.tsx +55 -0
- package/data/section-templates/product-detail-section/sub-components/ImagePreviewModal/styles.css +50 -0
- package/data/section-templates/product-detail-section/sub-components/Input/index.tsx +69 -0
- package/data/section-templates/product-detail-section/sub-components/Input/styles.css +162 -0
- package/data/section-templates/product-detail-section/sub-components/QuantitySelector/index.tsx +41 -0
- package/data/section-templates/product-detail-section/sub-components/QuantitySelector/styles.css +51 -0
- package/data/section-templates/product-detail-section/sub-components/Select/index.tsx +86 -0
- package/data/section-templates/product-detail-section/sub-components/Select/styles.css +110 -0
- package/data/section-templates/product-detail-section/sub-components/SliderArrow/index.tsx +26 -0
- package/data/section-templates/product-detail-section/sub-components/SliderArrow/styles.css +24 -0
- package/data/section-templates/product-detail-section/sub-components/Tag/index.tsx +21 -0
- package/data/section-templates/product-detail-section/sub-components/Tag/styles.css +30 -0
- package/data/section-templates/product-detail-section/sub-components/Textarea/index.tsx +45 -0
- package/data/section-templates/product-detail-section/sub-components/Textarea/styles.css +82 -0
- package/data/section-templates/product-detail-section/sub-components/Toggle/index.tsx +46 -0
- package/data/section-templates/product-detail-section/sub-components/Toggle/styles.css +86 -0
- package/data/section-templates/product-detail-section/sub-components/VariantBadge/index.tsx +153 -0
- package/data/section-templates/product-detail-section/sub-components/VariantBadge/styles.css +47 -0
- package/data/section-templates/product-detail-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/product-detail-section/types.ts +11 -0
- package/data/section-templates/product-detail-section/utils/bundle.ts +70 -0
- package/data/section-templates/product-detail-section/utils/cx.ts +4 -0
- package/data/section-templates/product-detail-section/utils/media.ts +36 -0
- package/data/section-templates/product-detail-section/utils/optionPrice.ts +19 -0
- package/data/section-templates/product-detail-section/utils/optionSet.ts +17 -0
- package/data/section-templates/product-detail-section/utils/toast.ts +5 -0
- package/data/section-templates/product-pricing/_meta.json +4 -0
- package/data/section-templates/product-pricing/ikas-config-snippet.json +66 -0
- package/data/section-templates/product-pricing/index.tsx +62 -0
- package/data/section-templates/product-pricing/styles.css +32 -0
- package/data/section-templates/product-pricing/sub-components/Tag/index.tsx +21 -0
- package/data/section-templates/product-pricing/sub-components/Tag/styles.css +30 -0
- package/data/section-templates/product-pricing/types.ts +9 -0
- package/data/section-templates/product-reviews-section/_meta.json +4 -0
- package/data/section-templates/product-reviews-section/hooks/useScrollLock.ts +20 -0
- package/data/section-templates/product-reviews-section/ikas-config-snippet.json +136 -0
- package/data/section-templates/product-reviews-section/index.tsx +205 -0
- package/data/section-templates/product-reviews-section/styles.css +43 -0
- package/data/section-templates/product-reviews-section/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/product-reviews-section/sub-components/Button/styles.css +114 -0
- package/data/section-templates/product-reviews-section/sub-components/FormItem/index.tsx +66 -0
- package/data/section-templates/product-reviews-section/sub-components/FormItem/styles.css +38 -0
- package/data/section-templates/product-reviews-section/sub-components/ImagePreviewModal/index.tsx +55 -0
- package/data/section-templates/product-reviews-section/sub-components/ImagePreviewModal/styles.css +50 -0
- package/data/section-templates/product-reviews-section/sub-components/Input/index.tsx +69 -0
- package/data/section-templates/product-reviews-section/sub-components/Input/styles.css +162 -0
- package/data/section-templates/product-reviews-section/sub-components/Modal/index.tsx +118 -0
- package/data/section-templates/product-reviews-section/sub-components/Modal/styles.css +70 -0
- package/data/section-templates/product-reviews-section/sub-components/PageLoader/index.tsx +14 -0
- package/data/section-templates/product-reviews-section/sub-components/PageLoader/styles.css +12 -0
- package/data/section-templates/product-reviews-section/sub-components/Pagination/index.tsx +107 -0
- package/data/section-templates/product-reviews-section/sub-components/Pagination/styles.css +88 -0
- package/data/section-templates/product-reviews-section/sub-components/ReviewCard/index.tsx +103 -0
- package/data/section-templates/product-reviews-section/sub-components/ReviewCard/styles.css +95 -0
- package/data/section-templates/product-reviews-section/sub-components/ReviewForm/index.tsx +115 -0
- package/data/section-templates/product-reviews-section/sub-components/ReviewForm/styles.css +11 -0
- package/data/section-templates/product-reviews-section/sub-components/ReviewSummary/index.tsx +65 -0
- package/data/section-templates/product-reviews-section/sub-components/ReviewSummary/styles.css +86 -0
- package/data/section-templates/product-reviews-section/sub-components/SpinnerIcon/index.tsx +10 -0
- package/data/section-templates/product-reviews-section/sub-components/SpinnerIcon/styles.css +8 -0
- package/data/section-templates/product-reviews-section/sub-components/StarRating/index.tsx +76 -0
- package/data/section-templates/product-reviews-section/sub-components/StarRating/styles.css +40 -0
- package/data/section-templates/product-reviews-section/sub-components/Textarea/index.tsx +45 -0
- package/data/section-templates/product-reviews-section/sub-components/Textarea/styles.css +82 -0
- package/data/section-templates/product-reviews-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/product-reviews-section/types.ts +18 -0
- package/data/section-templates/product-reviews-section/utils/cx.ts +4 -0
- package/data/section-templates/product-reviews-section/utils/fullName.ts +6 -0
- package/data/section-templates/product-reviews-section/utils/pagination.ts +29 -0
- package/data/section-templates/product-reviews-section/utils/toast.ts +5 -0
- package/data/section-templates/product-slider-section/_meta.json +4 -0
- package/data/section-templates/product-slider-section/children/CardProductName/ikas-config-snippet.json +21 -0
- package/data/section-templates/product-slider-section/children/CardProductName/index.tsx +25 -0
- package/data/section-templates/product-slider-section/children/CardProductName/styles.css +22 -0
- package/data/section-templates/product-slider-section/children/CardProductName/types.ts +6 -0
- package/data/section-templates/product-slider-section/children/CardProductPrice/ikas-config-snippet.json +15 -0
- package/data/section-templates/product-slider-section/children/CardProductPrice/index.tsx +30 -0
- package/data/section-templates/product-slider-section/children/CardProductPrice/styles.css +13 -0
- package/data/section-templates/product-slider-section/children/CardProductPrice/types.ts +5 -0
- package/data/section-templates/product-slider-section/children/CardProductVariants/ikas-config-snippet.json +15 -0
- package/data/section-templates/product-slider-section/children/CardProductVariants/index.tsx +10 -0
- package/data/section-templates/product-slider-section/children/CardProductVariants/styles.css +1 -0
- package/data/section-templates/product-slider-section/children/CardProductVariants/types.ts +5 -0
- package/data/section-templates/product-slider-section/global-types.ts +13 -0
- package/data/section-templates/product-slider-section/ikas-config-snippet.json +121 -0
- package/data/section-templates/product-slider-section/index.tsx +151 -0
- package/data/section-templates/product-slider-section/styles.css +105 -0
- package/data/section-templates/product-slider-section/sub-components/Badge/index.tsx +208 -0
- package/data/section-templates/product-slider-section/sub-components/Badge/styles.css +129 -0
- package/data/section-templates/product-slider-section/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/product-slider-section/sub-components/Button/styles.css +114 -0
- package/data/section-templates/product-slider-section/sub-components/ProductCard/index.tsx +276 -0
- package/data/section-templates/product-slider-section/sub-components/ProductCard/styles.css +99 -0
- package/data/section-templates/product-slider-section/sub-components/SliderArrow/index.tsx +26 -0
- package/data/section-templates/product-slider-section/sub-components/SliderArrow/styles.css +24 -0
- package/data/section-templates/product-slider-section/sub-components/SpinnerIcon/index.tsx +10 -0
- package/data/section-templates/product-slider-section/sub-components/SpinnerIcon/styles.css +8 -0
- package/data/section-templates/product-slider-section/sub-components/Tag/index.tsx +21 -0
- package/data/section-templates/product-slider-section/sub-components/Tag/styles.css +30 -0
- package/data/section-templates/product-slider-section/sub-components/VariantBadge/index.tsx +153 -0
- package/data/section-templates/product-slider-section/sub-components/VariantBadge/styles.css +47 -0
- package/data/section-templates/product-slider-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/product-slider-section/types.ts +16 -0
- package/data/section-templates/product-slider-section/utils/cx.ts +4 -0
- package/data/section-templates/product-slider-section/utils/media.ts +36 -0
- package/data/section-templates/product-slider-section/utils/toast.ts +5 -0
- package/data/section-templates/recover-password-section/_meta.json +4 -0
- package/data/section-templates/recover-password-section/components/RecoverPasswordForm/index.tsx +133 -0
- package/data/section-templates/recover-password-section/components/RecoverPasswordForm/styles.css +0 -0
- package/data/section-templates/recover-password-section/hooks/useRedirectIfLoggedIn.ts +35 -0
- package/data/section-templates/recover-password-section/ikas-config-snippet.json +111 -0
- package/data/section-templates/recover-password-section/index.tsx +30 -0
- package/data/section-templates/recover-password-section/styles.css +93 -0
- package/data/section-templates/recover-password-section/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/recover-password-section/sub-components/Button/styles.css +114 -0
- package/data/section-templates/recover-password-section/sub-components/FormItem/index.tsx +66 -0
- package/data/section-templates/recover-password-section/sub-components/FormItem/styles.css +38 -0
- package/data/section-templates/recover-password-section/sub-components/Input/index.tsx +69 -0
- package/data/section-templates/recover-password-section/sub-components/Input/styles.css +162 -0
- package/data/section-templates/recover-password-section/sub-components/PageLoader/index.tsx +14 -0
- package/data/section-templates/recover-password-section/sub-components/PageLoader/styles.css +12 -0
- package/data/section-templates/recover-password-section/sub-components/SpinnerIcon/index.tsx +10 -0
- package/data/section-templates/recover-password-section/sub-components/SpinnerIcon/styles.css +8 -0
- package/data/section-templates/recover-password-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/recover-password-section/types.ts +12 -0
- package/data/section-templates/recover-password-section/utils/cx.ts +4 -0
- package/data/section-templates/register-section/_meta.json +4 -0
- package/data/section-templates/register-section/components/RegisterForm/index.tsx +326 -0
- package/data/section-templates/register-section/components/RegisterForm/styles.css +0 -0
- package/data/section-templates/register-section/hooks/useRedirectIfLoggedIn.ts +35 -0
- package/data/section-templates/register-section/ikas-config-snippet.json +244 -0
- package/data/section-templates/register-section/index.tsx +30 -0
- package/data/section-templates/register-section/styles.css +152 -0
- package/data/section-templates/register-section/sub-components/Button/index.tsx +52 -0
- package/data/section-templates/register-section/sub-components/Button/styles.css +114 -0
- package/data/section-templates/register-section/sub-components/Checkbox/index.tsx +42 -0
- package/data/section-templates/register-section/sub-components/Checkbox/styles.css +65 -0
- package/data/section-templates/register-section/sub-components/FormItem/index.tsx +66 -0
- package/data/section-templates/register-section/sub-components/FormItem/styles.css +38 -0
- package/data/section-templates/register-section/sub-components/Input/index.tsx +69 -0
- package/data/section-templates/register-section/sub-components/Input/styles.css +162 -0
- package/data/section-templates/register-section/sub-components/PageLoader/index.tsx +14 -0
- package/data/section-templates/register-section/sub-components/PageLoader/styles.css +12 -0
- package/data/section-templates/register-section/sub-components/SocialLoginButton/index.tsx +24 -0
- package/data/section-templates/register-section/sub-components/SocialLoginButton/styles.css +19 -0
- package/data/section-templates/register-section/sub-components/SpinnerIcon/index.tsx +10 -0
- package/data/section-templates/register-section/sub-components/SpinnerIcon/styles.css +8 -0
- package/data/section-templates/register-section/sub-components/icons/index.tsx +981 -0
- package/data/section-templates/register-section/types.ts +26 -0
- package/data/section-templates/register-section/utils/cx.ts +4 -0
- package/data/section-templates/rich-text-section/_meta.json +4 -0
- package/data/section-templates/rich-text-section/ikas-config-snippet.json +22 -0
- package/data/section-templates/rich-text-section/index.tsx +25 -0
- package/data/section-templates/rich-text-section/styles.css +51 -0
- package/data/section-templates/rich-text-section/types.ts +4 -0
- package/data/section-templates/variant-selection/_meta.json +4 -0
- package/data/section-templates/variant-selection/ikas-config-snippet.json +73 -0
- package/data/section-templates/variant-selection/index.tsx +38 -0
- package/data/section-templates/variant-selection/styles.css +14 -0
- package/data/section-templates/variant-selection/sub-components/Badge/index.tsx +208 -0
- package/data/section-templates/variant-selection/sub-components/Badge/styles.css +129 -0
- package/data/section-templates/variant-selection/sub-components/VariantBadge/index.tsx +153 -0
- package/data/section-templates/variant-selection/sub-components/VariantBadge/styles.css +47 -0
- package/data/section-templates/variant-selection/types.ts +11 -0
- package/data/section-templates/variant-selection/utils/cx.ts +4 -0
- package/data/storefront-api.json +2 -2024
- package/data/storefront-types.json +1 -1
- package/dist/index.js +40 -11
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
- package/data/section-templates.json +0 -928
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
title?: string;
|
|
3
|
+
subtitle?: string;
|
|
4
|
+
passwordLabel?: string;
|
|
5
|
+
passwordPlaceholder?: string;
|
|
6
|
+
passwordAgainLabel?: string;
|
|
7
|
+
passwordAgainPlaceholder?: string;
|
|
8
|
+
submitButtonText?: string;
|
|
9
|
+
submittingButtonText?: string;
|
|
10
|
+
successMessage?: string;
|
|
11
|
+
loginLinkText?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import {
|
|
2
|
+
customerStore,
|
|
3
|
+
getRegisterForm,
|
|
4
|
+
setRegisterFormFirstName,
|
|
5
|
+
setRegisterFormLastName,
|
|
6
|
+
setRegisterFormEmail,
|
|
7
|
+
setRegisterFormPassword,
|
|
8
|
+
setRegisterFormIsMarketingAccepted,
|
|
9
|
+
setRegisterFormIsMembershipAgreementAccepted,
|
|
10
|
+
submitRegisterForm,
|
|
11
|
+
socialLogin,
|
|
12
|
+
Router,
|
|
13
|
+
} from "@ikas/bp-storefront";
|
|
14
|
+
import { observer } from "@ikas/component-utils";
|
|
15
|
+
|
|
16
|
+
import { Props } from "../../types";
|
|
17
|
+
import Button from "../../../../sub-components/Button";
|
|
18
|
+
import Input from "../../../../sub-components/Input";
|
|
19
|
+
import FormItem from "../../../../sub-components/FormItem";
|
|
20
|
+
import Checkbox from "../../../../sub-components/Checkbox";
|
|
21
|
+
import SocialLoginButton from "../../../../sub-components/SocialLoginButton";
|
|
22
|
+
import { GoogleSVG, FacebookSVG } from "../../../../sub-components/icons";
|
|
23
|
+
|
|
24
|
+
interface RegisterFormProps extends Props {
|
|
25
|
+
registerForm: ReturnType<typeof getRegisterForm>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const RegisterForm = observer(function RegisterForm({
|
|
29
|
+
registerForm,
|
|
30
|
+
title = "Hesap Oluştur",
|
|
31
|
+
subtitle = "Hemen ücretsiz hesap oluşturun ve alışverişe başlayın.",
|
|
32
|
+
firstNameLabel = "İsim",
|
|
33
|
+
lastNameLabel = "Soyisim",
|
|
34
|
+
emailLabel = "E-posta",
|
|
35
|
+
passwordLabel = "Şifre",
|
|
36
|
+
firstNamePlaceholder,
|
|
37
|
+
lastNamePlaceholder,
|
|
38
|
+
emailPlaceholder,
|
|
39
|
+
passwordPlaceholder = "Şifrenizi girin",
|
|
40
|
+
submitButtonText = "Kayıt Ol",
|
|
41
|
+
submittingButtonText = "Kayıt yapılıyor...",
|
|
42
|
+
loginLinkText = "Zaten hesabınız var mı? Giriş yapın",
|
|
43
|
+
marketingConsentText = "Kampanya ve promosyonlardan e-posta ile haberdar olmak istiyorum",
|
|
44
|
+
agreementConsentText = "Üyelik sözleşmesini kabul ediyorum",
|
|
45
|
+
googleButtonText = "Google ile kayıt ol",
|
|
46
|
+
facebookButtonText = "Facebook ile kayıt ol",
|
|
47
|
+
dividerText = "veya",
|
|
48
|
+
showGoogleLogin = false,
|
|
49
|
+
showFacebookLogin = false,
|
|
50
|
+
marketingConsentLink,
|
|
51
|
+
agreementConsentLink,
|
|
52
|
+
}: RegisterFormProps) {
|
|
53
|
+
const resolvedFirstNamePlaceholder = firstNamePlaceholder || firstNameLabel;
|
|
54
|
+
const resolvedLastNamePlaceholder = lastNamePlaceholder || lastNameLabel;
|
|
55
|
+
const resolvedEmailPlaceholder = emailPlaceholder || emailLabel;
|
|
56
|
+
|
|
57
|
+
const showSocialLogin = showGoogleLogin || showFacebookLogin;
|
|
58
|
+
|
|
59
|
+
const handleSubmit = async (e: Event) => {
|
|
60
|
+
e.preventDefault();
|
|
61
|
+
const success = await submitRegisterForm(registerForm);
|
|
62
|
+
if (success) {
|
|
63
|
+
Router.navigateToPage("ACCOUNT");
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return (
|
|
68
|
+
<div className="register__container">
|
|
69
|
+
<div className="register__header">
|
|
70
|
+
<h1 className="register__title text-xl-medium md:display-xs-medium">
|
|
71
|
+
{title}
|
|
72
|
+
</h1>
|
|
73
|
+
<div
|
|
74
|
+
className="register__subtitle text-sm-regular"
|
|
75
|
+
dangerouslySetInnerHTML={{ __html: subtitle }}
|
|
76
|
+
/>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
{registerForm.isFailure && registerForm.responseMessage && (
|
|
80
|
+
<div className="register__error-banner text-sm-regular">
|
|
81
|
+
{registerForm.responseMessage}
|
|
82
|
+
</div>
|
|
83
|
+
)}
|
|
84
|
+
|
|
85
|
+
{showSocialLogin && (
|
|
86
|
+
<div className="register__social">
|
|
87
|
+
{showGoogleLogin && (
|
|
88
|
+
<SocialLoginButton
|
|
89
|
+
icon={<GoogleSVG />}
|
|
90
|
+
onClick={() => socialLogin(customerStore, "google")}
|
|
91
|
+
>
|
|
92
|
+
{googleButtonText}
|
|
93
|
+
</SocialLoginButton>
|
|
94
|
+
)}
|
|
95
|
+
{showFacebookLogin && (
|
|
96
|
+
<SocialLoginButton
|
|
97
|
+
icon={<FacebookSVG />}
|
|
98
|
+
onClick={() => socialLogin(customerStore, "facebook")}
|
|
99
|
+
>
|
|
100
|
+
{facebookButtonText}
|
|
101
|
+
</SocialLoginButton>
|
|
102
|
+
)}
|
|
103
|
+
</div>
|
|
104
|
+
)}
|
|
105
|
+
|
|
106
|
+
{showSocialLogin && (
|
|
107
|
+
<div className="register__divider">
|
|
108
|
+
<span className="register__divider-line" />
|
|
109
|
+
<span className="register__divider-text text-xs-regular">
|
|
110
|
+
{dividerText}
|
|
111
|
+
</span>
|
|
112
|
+
<span className="register__divider-line" />
|
|
113
|
+
</div>
|
|
114
|
+
)}
|
|
115
|
+
|
|
116
|
+
<form className="register__form" onSubmit={handleSubmit}>
|
|
117
|
+
<FormItem
|
|
118
|
+
label={firstNameLabel}
|
|
119
|
+
htmlFor="register-first-name"
|
|
120
|
+
status={registerForm.firstName?.hasError ? "error" : "default"}
|
|
121
|
+
helper={
|
|
122
|
+
registerForm.firstName?.hasError
|
|
123
|
+
? registerForm.firstName.message
|
|
124
|
+
: undefined
|
|
125
|
+
}
|
|
126
|
+
>
|
|
127
|
+
<Input
|
|
128
|
+
id="register-first-name"
|
|
129
|
+
name="given-name"
|
|
130
|
+
autoComplete="given-name"
|
|
131
|
+
placeholder={resolvedFirstNamePlaceholder}
|
|
132
|
+
value={registerForm.firstName?.value ?? ""}
|
|
133
|
+
onInput={(e: Event) =>
|
|
134
|
+
setRegisterFormFirstName(
|
|
135
|
+
registerForm,
|
|
136
|
+
(e.target as HTMLInputElement).value,
|
|
137
|
+
)
|
|
138
|
+
}
|
|
139
|
+
/>
|
|
140
|
+
</FormItem>
|
|
141
|
+
|
|
142
|
+
<FormItem
|
|
143
|
+
label={lastNameLabel}
|
|
144
|
+
htmlFor="register-last-name"
|
|
145
|
+
status={registerForm.lastName?.hasError ? "error" : "default"}
|
|
146
|
+
helper={
|
|
147
|
+
registerForm.lastName?.hasError
|
|
148
|
+
? registerForm.lastName.message
|
|
149
|
+
: undefined
|
|
150
|
+
}
|
|
151
|
+
>
|
|
152
|
+
<Input
|
|
153
|
+
id="register-last-name"
|
|
154
|
+
name="family-name"
|
|
155
|
+
autoComplete="family-name"
|
|
156
|
+
placeholder={resolvedLastNamePlaceholder}
|
|
157
|
+
value={registerForm.lastName?.value ?? ""}
|
|
158
|
+
onInput={(e: Event) =>
|
|
159
|
+
setRegisterFormLastName(
|
|
160
|
+
registerForm,
|
|
161
|
+
(e.target as HTMLInputElement).value,
|
|
162
|
+
)
|
|
163
|
+
}
|
|
164
|
+
/>
|
|
165
|
+
</FormItem>
|
|
166
|
+
|
|
167
|
+
<FormItem
|
|
168
|
+
label={emailLabel}
|
|
169
|
+
htmlFor="register-email"
|
|
170
|
+
status={registerForm.email?.hasError ? "error" : "default"}
|
|
171
|
+
helper={
|
|
172
|
+
registerForm.email?.hasError
|
|
173
|
+
? registerForm.email.message
|
|
174
|
+
: undefined
|
|
175
|
+
}
|
|
176
|
+
>
|
|
177
|
+
<Input
|
|
178
|
+
id="register-email"
|
|
179
|
+
type="email"
|
|
180
|
+
name="email"
|
|
181
|
+
autoComplete="email"
|
|
182
|
+
placeholder={resolvedEmailPlaceholder}
|
|
183
|
+
value={registerForm.email?.value ?? ""}
|
|
184
|
+
onInput={(e: Event) =>
|
|
185
|
+
setRegisterFormEmail(
|
|
186
|
+
registerForm,
|
|
187
|
+
(e.target as HTMLInputElement).value,
|
|
188
|
+
)
|
|
189
|
+
}
|
|
190
|
+
/>
|
|
191
|
+
</FormItem>
|
|
192
|
+
|
|
193
|
+
<FormItem
|
|
194
|
+
label={passwordLabel}
|
|
195
|
+
htmlFor="register-password"
|
|
196
|
+
status={registerForm.password?.hasError ? "error" : "default"}
|
|
197
|
+
helper={
|
|
198
|
+
registerForm.password?.hasError
|
|
199
|
+
? registerForm.password.message
|
|
200
|
+
: undefined
|
|
201
|
+
}
|
|
202
|
+
>
|
|
203
|
+
<Input
|
|
204
|
+
id="register-password"
|
|
205
|
+
password
|
|
206
|
+
name="new-password"
|
|
207
|
+
autoComplete="new-password"
|
|
208
|
+
placeholder={passwordPlaceholder}
|
|
209
|
+
value={registerForm.password?.value ?? ""}
|
|
210
|
+
onInput={(e: Event) =>
|
|
211
|
+
setRegisterFormPassword(
|
|
212
|
+
registerForm,
|
|
213
|
+
(e.target as HTMLInputElement).value,
|
|
214
|
+
)
|
|
215
|
+
}
|
|
216
|
+
/>
|
|
217
|
+
</FormItem>
|
|
218
|
+
|
|
219
|
+
<div className="register__consents">
|
|
220
|
+
<div className="register__consent-field">
|
|
221
|
+
<div className="register__consent-row">
|
|
222
|
+
<Checkbox
|
|
223
|
+
checked={registerForm.isMarketingAccepted?.value ?? false}
|
|
224
|
+
onChange={(checked) =>
|
|
225
|
+
setRegisterFormIsMarketingAccepted(registerForm, checked)
|
|
226
|
+
}
|
|
227
|
+
/>
|
|
228
|
+
{marketingConsentLink?.href ? (
|
|
229
|
+
<a
|
|
230
|
+
className="register__consent-label text-sm-regular"
|
|
231
|
+
href={marketingConsentLink.href}
|
|
232
|
+
target={
|
|
233
|
+
marketingConsentLink.openInNewTab ? "_blank" : undefined
|
|
234
|
+
}
|
|
235
|
+
rel={
|
|
236
|
+
marketingConsentLink.openInNewTab
|
|
237
|
+
? "noopener noreferrer"
|
|
238
|
+
: undefined
|
|
239
|
+
}
|
|
240
|
+
dangerouslySetInnerHTML={{ __html: marketingConsentText }}
|
|
241
|
+
/>
|
|
242
|
+
) : (
|
|
243
|
+
<span
|
|
244
|
+
className="register__consent-label text-sm-regular"
|
|
245
|
+
dangerouslySetInnerHTML={{ __html: marketingConsentText }}
|
|
246
|
+
/>
|
|
247
|
+
)}
|
|
248
|
+
</div>
|
|
249
|
+
{registerForm.isMarketingAccepted?.hasError && (
|
|
250
|
+
<span className="register__consent-error text-xs-regular">
|
|
251
|
+
{registerForm.isMarketingAccepted.message}
|
|
252
|
+
</span>
|
|
253
|
+
)}
|
|
254
|
+
</div>
|
|
255
|
+
|
|
256
|
+
<div className="register__consent-field">
|
|
257
|
+
<div className="register__consent-row">
|
|
258
|
+
<Checkbox
|
|
259
|
+
checked={
|
|
260
|
+
registerForm.isMembershipAgreementAccepted?.value ?? false
|
|
261
|
+
}
|
|
262
|
+
onChange={(checked) =>
|
|
263
|
+
setRegisterFormIsMembershipAgreementAccepted(
|
|
264
|
+
registerForm,
|
|
265
|
+
checked,
|
|
266
|
+
)
|
|
267
|
+
}
|
|
268
|
+
status={
|
|
269
|
+
registerForm.isMembershipAgreementAccepted?.hasError
|
|
270
|
+
? "error"
|
|
271
|
+
: "default"
|
|
272
|
+
}
|
|
273
|
+
/>
|
|
274
|
+
{agreementConsentLink?.href ? (
|
|
275
|
+
<a
|
|
276
|
+
className="register__consent-label text-sm-regular"
|
|
277
|
+
href={agreementConsentLink.href}
|
|
278
|
+
target={
|
|
279
|
+
agreementConsentLink.openInNewTab ? "_blank" : undefined
|
|
280
|
+
}
|
|
281
|
+
rel={
|
|
282
|
+
agreementConsentLink.openInNewTab
|
|
283
|
+
? "noopener noreferrer"
|
|
284
|
+
: undefined
|
|
285
|
+
}
|
|
286
|
+
dangerouslySetInnerHTML={{ __html: agreementConsentText }}
|
|
287
|
+
/>
|
|
288
|
+
) : (
|
|
289
|
+
<span
|
|
290
|
+
className="register__consent-label text-sm-regular"
|
|
291
|
+
dangerouslySetInnerHTML={{ __html: agreementConsentText }}
|
|
292
|
+
/>
|
|
293
|
+
)}
|
|
294
|
+
</div>
|
|
295
|
+
{registerForm.isMembershipAgreementAccepted?.hasError && (
|
|
296
|
+
<span className="register__consent-error text-xs-regular">
|
|
297
|
+
{registerForm.isMembershipAgreementAccepted.message}
|
|
298
|
+
</span>
|
|
299
|
+
)}
|
|
300
|
+
</div>
|
|
301
|
+
</div>
|
|
302
|
+
|
|
303
|
+
<Button
|
|
304
|
+
variant="primary"
|
|
305
|
+
size="s"
|
|
306
|
+
className="register__submit-btn"
|
|
307
|
+
disabled={registerForm.isSubmitting}
|
|
308
|
+
>
|
|
309
|
+
{registerForm.isSubmitting ? submittingButtonText : submitButtonText}
|
|
310
|
+
</Button>
|
|
311
|
+
</form>
|
|
312
|
+
|
|
313
|
+
<div className="register__footer">
|
|
314
|
+
<button
|
|
315
|
+
type="button"
|
|
316
|
+
className="register__login-link text-sm-medium"
|
|
317
|
+
onClick={() => Router.navigateToPage("LOGIN")}
|
|
318
|
+
>
|
|
319
|
+
{loginLinkText}
|
|
320
|
+
</button>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
);
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
export default RegisterForm;
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useEffect, useState } from "preact/hooks";
|
|
2
|
+
import {
|
|
3
|
+
customerStore,
|
|
4
|
+
waitForCustomerStoreInit,
|
|
5
|
+
Router,
|
|
6
|
+
} from "@ikas/bp-storefront";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Redirects logged-in users to the account page.
|
|
10
|
+
* Returns `true` while the check is in progress (use to hide content and prevent flash).
|
|
11
|
+
* Calls `onGuest` only if the user is not logged in.
|
|
12
|
+
*/
|
|
13
|
+
export function useRedirectIfLoggedIn(onGuest: () => void): boolean {
|
|
14
|
+
const [isChecking, setIsChecking] = useState(true);
|
|
15
|
+
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
let isMounted = true;
|
|
18
|
+
|
|
19
|
+
waitForCustomerStoreInit(customerStore).then(() => {
|
|
20
|
+
if (!isMounted) return;
|
|
21
|
+
if (customerStore.customer) {
|
|
22
|
+
Router.navigateToPage("ACCOUNT");
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
onGuest();
|
|
26
|
+
setIsChecking(false);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
return () => {
|
|
30
|
+
isMounted = false;
|
|
31
|
+
};
|
|
32
|
+
}, []);
|
|
33
|
+
|
|
34
|
+
return isChecking;
|
|
35
|
+
}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "{{PROJECT_ID}}-register",
|
|
3
|
+
"name": "Register",
|
|
4
|
+
"type": "section",
|
|
5
|
+
"entry": "./src/components/Register/index.tsx",
|
|
6
|
+
"styles": "./src/components/Register/styles.css",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "title",
|
|
10
|
+
"displayName": "Başlık",
|
|
11
|
+
"type": "TEXT",
|
|
12
|
+
"required": false,
|
|
13
|
+
"defaultValue": "Hesap Oluştur",
|
|
14
|
+
"groupId": "content"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "subtitle",
|
|
18
|
+
"displayName": "Alt Başlık",
|
|
19
|
+
"type": "RICH_TEXT",
|
|
20
|
+
"required": false,
|
|
21
|
+
"defaultValue": "<p>Hemen ücretsiz hesap oluşturun ve alışverişe başlayın.</p>",
|
|
22
|
+
"groupId": "content"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "firstNameLabel",
|
|
26
|
+
"displayName": "İsim Etiketi",
|
|
27
|
+
"type": "TEXT",
|
|
28
|
+
"required": false,
|
|
29
|
+
"defaultValue": "İsim",
|
|
30
|
+
"groupId": "firstName"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "firstNamePlaceholder",
|
|
34
|
+
"displayName": "İsim Placeholder",
|
|
35
|
+
"type": "TEXT",
|
|
36
|
+
"required": false,
|
|
37
|
+
"defaultValue": "İsim",
|
|
38
|
+
"groupId": "firstName"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "lastNameLabel",
|
|
42
|
+
"displayName": "Soyisim Etiketi",
|
|
43
|
+
"type": "TEXT",
|
|
44
|
+
"required": false,
|
|
45
|
+
"defaultValue": "Soyisim",
|
|
46
|
+
"groupId": "lastName"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "lastNamePlaceholder",
|
|
50
|
+
"displayName": "Soyisim Placeholder",
|
|
51
|
+
"type": "TEXT",
|
|
52
|
+
"required": false,
|
|
53
|
+
"defaultValue": "Soyisim",
|
|
54
|
+
"groupId": "lastName"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "emailLabel",
|
|
58
|
+
"displayName": "E-posta Etiketi",
|
|
59
|
+
"type": "TEXT",
|
|
60
|
+
"required": false,
|
|
61
|
+
"defaultValue": "E-posta",
|
|
62
|
+
"groupId": "email"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "emailPlaceholder",
|
|
66
|
+
"displayName": "E-posta Placeholder",
|
|
67
|
+
"type": "TEXT",
|
|
68
|
+
"required": false,
|
|
69
|
+
"defaultValue": "ornek@email.com",
|
|
70
|
+
"groupId": "email"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "passwordLabel",
|
|
74
|
+
"displayName": "Şifre Etiketi",
|
|
75
|
+
"type": "TEXT",
|
|
76
|
+
"required": false,
|
|
77
|
+
"defaultValue": "Şifre",
|
|
78
|
+
"groupId": "password"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "passwordPlaceholder",
|
|
82
|
+
"displayName": "Şifre Placeholder",
|
|
83
|
+
"type": "TEXT",
|
|
84
|
+
"required": false,
|
|
85
|
+
"defaultValue": "Şifrenizi girin",
|
|
86
|
+
"groupId": "password"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "submitButtonText",
|
|
90
|
+
"displayName": "Kayıt Butonu Metni",
|
|
91
|
+
"type": "TEXT",
|
|
92
|
+
"required": false,
|
|
93
|
+
"defaultValue": "Kayıt Ol",
|
|
94
|
+
"groupId": "buttons"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "submittingButtonText",
|
|
98
|
+
"displayName": "Kayıt Yapılıyor Metni",
|
|
99
|
+
"type": "TEXT",
|
|
100
|
+
"required": false,
|
|
101
|
+
"defaultValue": "Kayıt yapılıyor...",
|
|
102
|
+
"groupId": "buttons"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "loginLinkText",
|
|
106
|
+
"displayName": "Giriş Yap Metni",
|
|
107
|
+
"type": "TEXT",
|
|
108
|
+
"required": false,
|
|
109
|
+
"defaultValue": "Zaten hesabınız var mı? Giriş yapın",
|
|
110
|
+
"groupId": "buttons"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "marketingConsentText",
|
|
114
|
+
"displayName": "Pazarlama Onay Metni",
|
|
115
|
+
"type": "RICH_TEXT",
|
|
116
|
+
"required": false,
|
|
117
|
+
"groupId": "marketing-consent"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "marketingConsentLink",
|
|
121
|
+
"displayName": "İletişim İzni Linki",
|
|
122
|
+
"type": "LINK",
|
|
123
|
+
"required": false,
|
|
124
|
+
"groupId": "marketing-consent"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "agreementConsentText",
|
|
128
|
+
"displayName": "Üyelik Sözleşmesi Metni",
|
|
129
|
+
"type": "RICH_TEXT",
|
|
130
|
+
"required": false,
|
|
131
|
+
"groupId": "agreement-consent"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "agreementConsentLink",
|
|
135
|
+
"displayName": "Üyelik Sözleşmesi Linki",
|
|
136
|
+
"type": "LINK",
|
|
137
|
+
"required": false,
|
|
138
|
+
"groupId": "agreement-consent"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "showGoogleLogin",
|
|
142
|
+
"displayName": "Google ile Giriş",
|
|
143
|
+
"type": "BOOLEAN",
|
|
144
|
+
"required": false,
|
|
145
|
+
"groupId": "google"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "googleButtonText",
|
|
149
|
+
"displayName": "Google Buton Metni",
|
|
150
|
+
"type": "TEXT",
|
|
151
|
+
"required": false,
|
|
152
|
+
"defaultValue": "Google ile kayıt ol",
|
|
153
|
+
"groupId": "google"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "showFacebookLogin",
|
|
157
|
+
"displayName": "Facebook ile Giriş",
|
|
158
|
+
"type": "BOOLEAN",
|
|
159
|
+
"required": false,
|
|
160
|
+
"groupId": "facebook"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "facebookButtonText",
|
|
164
|
+
"displayName": "Facebook Buton Metni",
|
|
165
|
+
"type": "TEXT",
|
|
166
|
+
"required": false,
|
|
167
|
+
"defaultValue": "Facebook ile kayıt ol",
|
|
168
|
+
"groupId": "facebook"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "dividerText",
|
|
172
|
+
"displayName": "Ayırıcı Metni",
|
|
173
|
+
"type": "TEXT",
|
|
174
|
+
"required": false,
|
|
175
|
+
"defaultValue": "veya",
|
|
176
|
+
"groupId": "socialLogin"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"propGroups": [
|
|
180
|
+
{
|
|
181
|
+
"id": "content",
|
|
182
|
+
"name": "İçerik",
|
|
183
|
+
"description": "Sayfa başlığı ve açıklama"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"id": "formFields",
|
|
187
|
+
"name": "Form Alanları",
|
|
188
|
+
"description": "Kayıt formu etiket ve placeholder metinleri",
|
|
189
|
+
"children": [
|
|
190
|
+
{
|
|
191
|
+
"id": "firstName",
|
|
192
|
+
"name": "İsim"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"id": "lastName",
|
|
196
|
+
"name": "Soyisim"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"id": "email",
|
|
200
|
+
"name": "E-posta"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"id": "password",
|
|
204
|
+
"name": "Şifre"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"id": "buttons",
|
|
210
|
+
"name": "Butonlar",
|
|
211
|
+
"description": "Buton ve link metinleri"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"id": "consents",
|
|
215
|
+
"name": "Onay Metinleri",
|
|
216
|
+
"description": "İletişim izni ve üyelik sözleşmesi",
|
|
217
|
+
"children": [
|
|
218
|
+
{
|
|
219
|
+
"id": "marketing-consent",
|
|
220
|
+
"name": "İletişim İzni"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "agreement-consent",
|
|
224
|
+
"name": "Üyelik Sözleşmesi"
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": "socialLogin",
|
|
230
|
+
"name": "Sosyal Medya ile Giriş",
|
|
231
|
+
"description": "Google ve Facebook ile giriş ayarları",
|
|
232
|
+
"children": [
|
|
233
|
+
{
|
|
234
|
+
"id": "google",
|
|
235
|
+
"name": "Google"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"id": "facebook",
|
|
239
|
+
"name": "Facebook"
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
customerStore,
|
|
3
|
+
getRegisterForm,
|
|
4
|
+
initRegisterForm,
|
|
5
|
+
} from "@ikas/bp-storefront";
|
|
6
|
+
import { useRedirectIfLoggedIn } from "../../hooks/useRedirectIfLoggedIn";
|
|
7
|
+
|
|
8
|
+
import { Props } from "./types";
|
|
9
|
+
import RegisterForm from "./components/RegisterForm";
|
|
10
|
+
import PageLoader from "../../sub-components/PageLoader";
|
|
11
|
+
|
|
12
|
+
export function Register(props: Props) {
|
|
13
|
+
const registerForm = getRegisterForm(customerStore);
|
|
14
|
+
|
|
15
|
+
const isChecking = useRedirectIfLoggedIn(() => {
|
|
16
|
+
initRegisterForm(registerForm);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
if (isChecking) return <PageLoader />;
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<section className="register">
|
|
23
|
+
<div className="register__wrapper kombos-container">
|
|
24
|
+
<RegisterForm registerForm={registerForm} {...props} />
|
|
25
|
+
</div>
|
|
26
|
+
</section>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default Register;
|