@ikas/code-components-mcp 0.105.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,209 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IkasProductOffer,
|
|
3
|
+
getSelectedProductVariant,
|
|
4
|
+
getProductVariantMainImage,
|
|
5
|
+
getDefaultSrc,
|
|
6
|
+
getProductVariantFormattedFinalPrice,
|
|
7
|
+
getProductVariantFormattedSellPrice,
|
|
8
|
+
hasProductVariantDiscount,
|
|
9
|
+
hasProductVariantStock,
|
|
10
|
+
isAcceptedProductOffer,
|
|
11
|
+
acceptProductOffer,
|
|
12
|
+
rejectProductOffer,
|
|
13
|
+
getDisplayedProductVariantTypes,
|
|
14
|
+
selectVariantValue,
|
|
15
|
+
getProductHref,
|
|
16
|
+
} from "@ikas/bp-storefront";
|
|
17
|
+
import { observer } from "@ikas/component-utils";
|
|
18
|
+
import { cx } from "../../../../utils/cx";
|
|
19
|
+
import Toggle from "../../../../sub-components/Toggle";
|
|
20
|
+
import Select from "../../../../sub-components/Select";
|
|
21
|
+
import { CheckCircleSVG, NoProductSVG } from "../../../../sub-components/icons";
|
|
22
|
+
|
|
23
|
+
interface Props {
|
|
24
|
+
offer: IkasProductOffer;
|
|
25
|
+
outOfStockText?: string;
|
|
26
|
+
addedToCartBannerText?: string;
|
|
27
|
+
imageAspectRatio?: string;
|
|
28
|
+
imageObjectFit?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const OfferCard = observer(function OfferCard({
|
|
32
|
+
offer,
|
|
33
|
+
outOfStockText = "Tükendi",
|
|
34
|
+
addedToCartBannerText = "Sepete eklenmiş",
|
|
35
|
+
imageAspectRatio,
|
|
36
|
+
imageObjectFit,
|
|
37
|
+
}: Props) {
|
|
38
|
+
const product = offer.product;
|
|
39
|
+
if (!product) return null;
|
|
40
|
+
|
|
41
|
+
const variant = getSelectedProductVariant(product);
|
|
42
|
+
const isSelected = offer.isSelected;
|
|
43
|
+
const isAccepted = isAcceptedProductOffer(offer);
|
|
44
|
+
const inStock = variant ? hasProductVariantStock(variant) : false;
|
|
45
|
+
|
|
46
|
+
const productImage = variant
|
|
47
|
+
? getProductVariantMainImage(variant)
|
|
48
|
+
: undefined;
|
|
49
|
+
const image = productImage?.image;
|
|
50
|
+
const imageSrc = image ? getDefaultSrc(image) : undefined;
|
|
51
|
+
|
|
52
|
+
const price = getProductVariantFormattedFinalPrice(variant);
|
|
53
|
+
const hasDiscount = hasProductVariantDiscount(variant);
|
|
54
|
+
const originalPrice = getProductVariantFormattedSellPrice(variant);
|
|
55
|
+
const variantTypes = getDisplayedProductVariantTypes(product);
|
|
56
|
+
const productHref = getProductHref(product);
|
|
57
|
+
|
|
58
|
+
function handleToggle(checked: boolean) {
|
|
59
|
+
if (isAccepted) return;
|
|
60
|
+
|
|
61
|
+
if (checked) {
|
|
62
|
+
acceptProductOffer(offer);
|
|
63
|
+
} else {
|
|
64
|
+
rejectProductOffer(offer);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const imageStyle =
|
|
69
|
+
imageAspectRatio || imageObjectFit
|
|
70
|
+
? {
|
|
71
|
+
...(imageAspectRatio && { aspectRatio: imageAspectRatio }),
|
|
72
|
+
...(imageObjectFit && { objectFit: imageObjectFit }),
|
|
73
|
+
}
|
|
74
|
+
: undefined;
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<div
|
|
78
|
+
className={cx(
|
|
79
|
+
"kombos-offer-card",
|
|
80
|
+
isSelected && "kombos-offer-card--selected",
|
|
81
|
+
isAccepted && "kombos-offer-card--accepted",
|
|
82
|
+
!inStock && "kombos-offer-card--out-of-stock",
|
|
83
|
+
)}
|
|
84
|
+
>
|
|
85
|
+
<div className="kombos-offer-card__content">
|
|
86
|
+
<a href={productHref} className="kombos-offer-card__link">
|
|
87
|
+
{image?.isVideo ? (
|
|
88
|
+
<video
|
|
89
|
+
src={imageSrc}
|
|
90
|
+
className="kombos-offer-card__image"
|
|
91
|
+
style={imageStyle}
|
|
92
|
+
muted
|
|
93
|
+
loop
|
|
94
|
+
autoPlay
|
|
95
|
+
playsInline
|
|
96
|
+
>
|
|
97
|
+
<track kind="captions" />
|
|
98
|
+
</video>
|
|
99
|
+
) : imageSrc ? (
|
|
100
|
+
<img
|
|
101
|
+
className="kombos-offer-card__image"
|
|
102
|
+
src={imageSrc}
|
|
103
|
+
alt={product.name}
|
|
104
|
+
loading="lazy"
|
|
105
|
+
style={imageStyle}
|
|
106
|
+
/>
|
|
107
|
+
) : (
|
|
108
|
+
<div
|
|
109
|
+
className="kombos-offer-card__image kombos-offer-card__image--placeholder"
|
|
110
|
+
style={imageStyle}
|
|
111
|
+
>
|
|
112
|
+
<NoProductSVG />
|
|
113
|
+
</div>
|
|
114
|
+
)}
|
|
115
|
+
</a>
|
|
116
|
+
|
|
117
|
+
<div className="kombos-offer-card__body">
|
|
118
|
+
<a
|
|
119
|
+
href={productHref}
|
|
120
|
+
className="kombos-offer-card__link kombos-offer-card__name text-sm-medium"
|
|
121
|
+
>
|
|
122
|
+
{product.name}
|
|
123
|
+
</a>
|
|
124
|
+
|
|
125
|
+
{variantTypes.length > 0 && (
|
|
126
|
+
<div className="kombos-offer-card__variants">
|
|
127
|
+
{variantTypes.map((dvt) => {
|
|
128
|
+
const selected = dvt.displayedVariantValues.find(
|
|
129
|
+
(dvv) => dvv.isSelected,
|
|
130
|
+
);
|
|
131
|
+
const options = dvt.displayedVariantValues.map((dvv) => ({
|
|
132
|
+
label: dvv.variantValue.name,
|
|
133
|
+
value: dvv.variantValue.id,
|
|
134
|
+
}));
|
|
135
|
+
|
|
136
|
+
return (
|
|
137
|
+
<div
|
|
138
|
+
key={dvt.variantType.id}
|
|
139
|
+
className="kombos-offer-card__variant-group"
|
|
140
|
+
>
|
|
141
|
+
<span className="kombos-offer-card__variant-label text-xs-medium">
|
|
142
|
+
{dvt.variantType.name}
|
|
143
|
+
</span>
|
|
144
|
+
<Select
|
|
145
|
+
disabled={isAccepted}
|
|
146
|
+
size="xs"
|
|
147
|
+
options={options}
|
|
148
|
+
value={selected?.variantValue.id}
|
|
149
|
+
aria-label={dvt.variantType.name}
|
|
150
|
+
onChange={(e) => {
|
|
151
|
+
const val = (e.target as HTMLSelectElement).value;
|
|
152
|
+
const dvv = dvt.displayedVariantValues.find(
|
|
153
|
+
(d) => d.variantValue.id === val,
|
|
154
|
+
);
|
|
155
|
+
if (dvv) {
|
|
156
|
+
selectVariantValue(product, dvv.variantValue, true);
|
|
157
|
+
}
|
|
158
|
+
}}
|
|
159
|
+
style={{
|
|
160
|
+
maxWidth: 180,
|
|
161
|
+
}}
|
|
162
|
+
/>
|
|
163
|
+
</div>
|
|
164
|
+
);
|
|
165
|
+
})}
|
|
166
|
+
</div>
|
|
167
|
+
)}
|
|
168
|
+
|
|
169
|
+
{inStock ? (
|
|
170
|
+
<div className="kombos-offer-card__prices">
|
|
171
|
+
<span className="kombos-offer-card__price text-sm-semibold">
|
|
172
|
+
{price}
|
|
173
|
+
</span>
|
|
174
|
+
|
|
175
|
+
{hasDiscount && (
|
|
176
|
+
<span className="kombos-offer-card__original-price text-sm-regular-strike">
|
|
177
|
+
{originalPrice}
|
|
178
|
+
</span>
|
|
179
|
+
)}
|
|
180
|
+
</div>
|
|
181
|
+
) : (
|
|
182
|
+
<span className="kombos-offer-card__out-of-stock text-xs-medium">
|
|
183
|
+
{outOfStockText}
|
|
184
|
+
</span>
|
|
185
|
+
)}
|
|
186
|
+
</div>
|
|
187
|
+
|
|
188
|
+
<div className="kombos-offer-card__toggle">
|
|
189
|
+
<Toggle
|
|
190
|
+
checked={isSelected || isAccepted}
|
|
191
|
+
onChange={inStock ? handleToggle : undefined}
|
|
192
|
+
disabled={!inStock || isAccepted}
|
|
193
|
+
/>
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
{isAccepted && (
|
|
198
|
+
<div className="kombos-offer-card__banner">
|
|
199
|
+
<span className="kombos-offer-card__banner-icon">
|
|
200
|
+
<CheckCircleSVG />
|
|
201
|
+
</span>
|
|
202
|
+
<span className="text-xs-medium">{addedToCartBannerText}</span>
|
|
203
|
+
</div>
|
|
204
|
+
)}
|
|
205
|
+
</div>
|
|
206
|
+
);
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
export default OfferCard;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/* ===== Offer Card ===== */
|
|
2
|
+
|
|
3
|
+
.kombos-offer-card {
|
|
4
|
+
position: relative;
|
|
5
|
+
border: 1px solid var(--kombos-gray-200);
|
|
6
|
+
border-radius: 6px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.kombos-offer-card--selected {
|
|
10
|
+
border-color: var(--kombos-gray-900);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.kombos-offer-card--accepted {
|
|
14
|
+
padding-bottom: 0.75rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.kombos-offer-card--out-of-stock {
|
|
18
|
+
opacity: 0.5;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.kombos-offer-card__content {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: flex-start;
|
|
24
|
+
gap: 0.75rem;
|
|
25
|
+
padding: 0.75rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.kombos-offer-card__image {
|
|
29
|
+
width: 4rem;
|
|
30
|
+
height: auto;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
border-radius: 4px;
|
|
33
|
+
object-fit: cover;
|
|
34
|
+
aspect-ratio: 1 / 1;
|
|
35
|
+
background: var(--kombos-gray-100);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.kombos-offer-card__image--placeholder {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
color: var(--kombos-gray-300);
|
|
43
|
+
font-size: 1.5rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.kombos-offer-card__body {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
gap: 0.25rem;
|
|
50
|
+
flex: 1;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.kombos-offer-card__link {
|
|
55
|
+
text-decoration: none;
|
|
56
|
+
color: inherit;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.kombos-offer-card__name {
|
|
60
|
+
display: block;
|
|
61
|
+
color: var(--kombos-gray-900);
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
width: fit-content;
|
|
66
|
+
max-width: 100%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.kombos-offer-card__name:hover {
|
|
70
|
+
text-decoration: underline;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.kombos-offer-card__variants {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
gap: 0.375rem;
|
|
77
|
+
margin-top: 0.25rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.kombos-offer-card__variant-group {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
gap: 0.125rem;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.kombos-offer-card__variant-label {
|
|
87
|
+
color: var(--kombos-gray-500);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.kombos-offer-card__prices {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
gap: 0.375rem;
|
|
94
|
+
margin-top: 0.375rem;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.kombos-offer-card__original-price {
|
|
98
|
+
color: var(--kombos-gray-500);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.kombos-offer-card__price {
|
|
102
|
+
color: var(--kombos-gray-900);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.kombos-offer-card__out-of-stock {
|
|
106
|
+
color: var(--kombos-gray-500);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.kombos-offer-card__toggle {
|
|
110
|
+
flex-shrink: 0;
|
|
111
|
+
margin-top: 0.125rem;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Added to cart banner */
|
|
115
|
+
.kombos-offer-card__banner {
|
|
116
|
+
position: absolute;
|
|
117
|
+
bottom: 0;
|
|
118
|
+
left: 50%;
|
|
119
|
+
transform: translate(-50%, 50%);
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
gap: 0.25rem;
|
|
123
|
+
padding: 0.375rem 0.5rem;
|
|
124
|
+
background: var(--kombos-gray-900);
|
|
125
|
+
color: var(--kombos-white);
|
|
126
|
+
border-radius: 6px;
|
|
127
|
+
white-space: nowrap;
|
|
128
|
+
z-index: 1;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.kombos-offer-card__banner-icon {
|
|
132
|
+
flex-shrink: 0;
|
|
133
|
+
font-size: 0.875rem;
|
|
134
|
+
display: flex;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@media (min-width: 768px) {
|
|
138
|
+
.kombos-offer-card__content {
|
|
139
|
+
gap: 1rem;
|
|
140
|
+
padding: 1rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.kombos-offer-card__image {
|
|
144
|
+
width: 5rem;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IkasProduct,
|
|
3
|
+
isAcceptedProductOffer,
|
|
4
|
+
getSelectedProductVariant,
|
|
5
|
+
getProductVariantCampaignOffersDiscountPercentage,
|
|
6
|
+
getProductVariantFormattedFinalPriceWithCampaignOffers,
|
|
7
|
+
getProductVariantFormattedSellPriceWithCampaignOffers,
|
|
8
|
+
hasProductVariantStock,
|
|
9
|
+
isAddToCartEnabled,
|
|
10
|
+
cartStore,
|
|
11
|
+
findExistingCartItem,
|
|
12
|
+
changeItemQuantity,
|
|
13
|
+
addItemToCart,
|
|
14
|
+
initProductOptionSetValues,
|
|
15
|
+
} from "@ikas/bp-storefront";
|
|
16
|
+
import { validateOptionSet } from "../../../../utils/optionSet";
|
|
17
|
+
import { showToast } from "../../../../utils/toast";
|
|
18
|
+
import { observer } from "@ikas/component-utils";
|
|
19
|
+
import Button from "../../../../sub-components/Button";
|
|
20
|
+
import Tag from "../../../../sub-components/Tag";
|
|
21
|
+
import { InfoCircleSVG } from "../../../../sub-components/icons";
|
|
22
|
+
import { useState } from "preact/hooks";
|
|
23
|
+
|
|
24
|
+
interface Props {
|
|
25
|
+
product: IkasProduct;
|
|
26
|
+
offerInfoText: string;
|
|
27
|
+
totalText: string;
|
|
28
|
+
advantageousTotalText: string;
|
|
29
|
+
isInline: boolean;
|
|
30
|
+
addingToCartText: string;
|
|
31
|
+
addToCartTogetherText: string;
|
|
32
|
+
errorMessage: string;
|
|
33
|
+
optionSetErrorMessage: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const OfferSummary = observer(function OfferSummary({
|
|
37
|
+
product,
|
|
38
|
+
offerInfoText,
|
|
39
|
+
totalText,
|
|
40
|
+
advantageousTotalText,
|
|
41
|
+
isInline,
|
|
42
|
+
addingToCartText,
|
|
43
|
+
addToCartTogetherText,
|
|
44
|
+
errorMessage,
|
|
45
|
+
optionSetErrorMessage,
|
|
46
|
+
}: Props) {
|
|
47
|
+
const [isAdding, setIsAdding] = useState(false);
|
|
48
|
+
|
|
49
|
+
const selectedVariant = getSelectedProductVariant(product);
|
|
50
|
+
|
|
51
|
+
const discountPercentage =
|
|
52
|
+
getProductVariantCampaignOffersDiscountPercentage(selectedVariant);
|
|
53
|
+
const finalPrice =
|
|
54
|
+
getProductVariantFormattedFinalPriceWithCampaignOffers(selectedVariant);
|
|
55
|
+
const sellPrice =
|
|
56
|
+
getProductVariantFormattedSellPriceWithCampaignOffers(selectedVariant);
|
|
57
|
+
const hasDiscount = discountPercentage > 0;
|
|
58
|
+
const mainInStock = selectedVariant
|
|
59
|
+
? hasProductVariantStock(selectedVariant)
|
|
60
|
+
: false;
|
|
61
|
+
|
|
62
|
+
const acceptedCount =
|
|
63
|
+
product.offers
|
|
64
|
+
?.filter((o) => !isAcceptedProductOffer(o))
|
|
65
|
+
.reduce((acc, offer) => acc + (offer.isSelected ? 1 : 0), 0) || 0;
|
|
66
|
+
|
|
67
|
+
async function handleAddToCartTogether() {
|
|
68
|
+
if (isAdding || !mainInStock) return;
|
|
69
|
+
|
|
70
|
+
if (!validateOptionSet(product.productOptionSet, optionSetErrorMessage))
|
|
71
|
+
return;
|
|
72
|
+
|
|
73
|
+
if (!isAddToCartEnabled(product!)) {
|
|
74
|
+
showToast(errorMessage, "error");
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
setIsAdding(true);
|
|
79
|
+
try {
|
|
80
|
+
const cart = cartStore.cart;
|
|
81
|
+
if (cart) {
|
|
82
|
+
const existingItem = findExistingCartItem(
|
|
83
|
+
cart,
|
|
84
|
+
selectedVariant!,
|
|
85
|
+
product!,
|
|
86
|
+
);
|
|
87
|
+
if (existingItem) {
|
|
88
|
+
const result = await changeItemQuantity(
|
|
89
|
+
existingItem,
|
|
90
|
+
existingItem.quantity + 1,
|
|
91
|
+
product!.offers,
|
|
92
|
+
product!,
|
|
93
|
+
);
|
|
94
|
+
if (result.success) {
|
|
95
|
+
if (product.productOptionSet) {
|
|
96
|
+
initProductOptionSetValues(product.productOptionSet);
|
|
97
|
+
}
|
|
98
|
+
window.dispatchEvent(new CustomEvent("ikas:reset-option-state"));
|
|
99
|
+
window.dispatchEvent(new CustomEvent("ikas:open-cart-sidebar"));
|
|
100
|
+
} else {
|
|
101
|
+
showToast(errorMessage, "error");
|
|
102
|
+
}
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const result = await addItemToCart(selectedVariant!, product!, 1);
|
|
108
|
+
if (result.success) {
|
|
109
|
+
if (product.productOptionSet) {
|
|
110
|
+
initProductOptionSetValues(product.productOptionSet);
|
|
111
|
+
}
|
|
112
|
+
window.dispatchEvent(new CustomEvent("ikas:reset-option-state"));
|
|
113
|
+
window.dispatchEvent(new CustomEvent("ikas:open-cart-sidebar"));
|
|
114
|
+
} else {
|
|
115
|
+
showToast(errorMessage, "error");
|
|
116
|
+
}
|
|
117
|
+
} finally {
|
|
118
|
+
setIsAdding(false);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return (
|
|
123
|
+
<div className="kombos-pd-offer__summary">
|
|
124
|
+
<div className="kombos-pd-offer__summary-info">
|
|
125
|
+
<span className="kombos-pd-offer__summary-info-icon">
|
|
126
|
+
<InfoCircleSVG />
|
|
127
|
+
</span>
|
|
128
|
+
<span className="text-xs-regular">{offerInfoText}</span>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
{hasDiscount && (
|
|
132
|
+
<div className="kombos-pd-offer__total-row">
|
|
133
|
+
<span className="kombos-pd-offer__total-label text-sm-regular">
|
|
134
|
+
{totalText}
|
|
135
|
+
</span>
|
|
136
|
+
<span className="kombos-pd-offer__total-price--strike text-sm-regular">
|
|
137
|
+
{sellPrice}
|
|
138
|
+
</span>
|
|
139
|
+
</div>
|
|
140
|
+
)}
|
|
141
|
+
|
|
142
|
+
<div className="kombos-pd-offer__discount-row">
|
|
143
|
+
<span className="kombos-pd-offer__total-label text-sm-medium">
|
|
144
|
+
{hasDiscount ? advantageousTotalText : totalText}
|
|
145
|
+
</span>
|
|
146
|
+
<div className="kombos-pd-offer__discount-values">
|
|
147
|
+
{hasDiscount && (
|
|
148
|
+
<Tag type="dark" size="s">
|
|
149
|
+
-{Math.round(discountPercentage)}%
|
|
150
|
+
</Tag>
|
|
151
|
+
)}
|
|
152
|
+
<span className="kombos-pd-offer__total-price text-md-semibold">
|
|
153
|
+
{finalPrice}
|
|
154
|
+
</span>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
{!isInline && (
|
|
159
|
+
<Button
|
|
160
|
+
variant="primary"
|
|
161
|
+
size="s"
|
|
162
|
+
className="kombos-pd-offer__btn"
|
|
163
|
+
disabled={isAdding || !mainInStock}
|
|
164
|
+
onClick={handleAddToCartTogether}
|
|
165
|
+
>
|
|
166
|
+
{isAdding
|
|
167
|
+
? addingToCartText
|
|
168
|
+
: `${addToCartTogetherText} (${acceptedCount + 1})`}
|
|
169
|
+
</Button>
|
|
170
|
+
)}
|
|
171
|
+
</div>
|
|
172
|
+
);
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
export default OfferSummary;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "{{PROJECT_ID}}-product-detail-offer",
|
|
3
|
+
"name": "ProductDetailOffer",
|
|
4
|
+
"type": "component",
|
|
5
|
+
"entry": "./src/components/ProductDetailOffer/index.tsx",
|
|
6
|
+
"styles": "./src/components/ProductDetailOffer/styles.css",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "product",
|
|
10
|
+
"displayName": "Ürün",
|
|
11
|
+
"type": "PRODUCT",
|
|
12
|
+
"required": false
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "preselectOffers",
|
|
16
|
+
"displayName": "Teklifleri Otomatik Seç",
|
|
17
|
+
"type": "BOOLEAN",
|
|
18
|
+
"required": false,
|
|
19
|
+
"groupId": "layout"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "addToCartTogetherText",
|
|
23
|
+
"displayName": "Birlikte Sepete Ekle Metni",
|
|
24
|
+
"type": "TEXT",
|
|
25
|
+
"required": false,
|
|
26
|
+
"defaultValue": "Birlikte Sepete Ekle",
|
|
27
|
+
"groupId": "texts"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "addingToCartText",
|
|
31
|
+
"displayName": "Ekleniyor Metni",
|
|
32
|
+
"type": "TEXT",
|
|
33
|
+
"required": false,
|
|
34
|
+
"defaultValue": "Ekleniyor...",
|
|
35
|
+
"groupId": "texts"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "offerInfoText",
|
|
39
|
+
"displayName": "Teklif Bilgi Metni",
|
|
40
|
+
"type": "TEXT",
|
|
41
|
+
"required": false,
|
|
42
|
+
"defaultValue": "Seçtiğiniz ürünleri birlikte sepete ekleyerek indirimden yararlanın.",
|
|
43
|
+
"groupId": "texts"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "totalText",
|
|
47
|
+
"displayName": "Toplam Metni",
|
|
48
|
+
"type": "TEXT",
|
|
49
|
+
"required": false,
|
|
50
|
+
"defaultValue": "Toplam",
|
|
51
|
+
"groupId": "texts"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "advantageousTotalText",
|
|
55
|
+
"displayName": "Avantajlı Toplam Metni",
|
|
56
|
+
"type": "TEXT",
|
|
57
|
+
"required": false,
|
|
58
|
+
"defaultValue": "Avantajlı Toplam",
|
|
59
|
+
"groupId": "texts"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "outOfStockText",
|
|
63
|
+
"displayName": "Tükendi Metni",
|
|
64
|
+
"type": "TEXT",
|
|
65
|
+
"required": false,
|
|
66
|
+
"defaultValue": "Tükendi",
|
|
67
|
+
"groupId": "texts"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "imageAspectRatio",
|
|
71
|
+
"displayName": "Görsel En-Boy Oranı",
|
|
72
|
+
"type": "ENUM",
|
|
73
|
+
"required": false,
|
|
74
|
+
"groupId": "image",
|
|
75
|
+
"enumTypeId": "s3OODUmZpJ"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "imageObjectFit",
|
|
79
|
+
"displayName": "Görsel Sığdırma",
|
|
80
|
+
"type": "ENUM",
|
|
81
|
+
"required": false,
|
|
82
|
+
"groupId": "image",
|
|
83
|
+
"enumTypeId": "GrylMqHxui"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "addedToCartBannerText",
|
|
87
|
+
"displayName": "Sepete Eklenmiş Metni",
|
|
88
|
+
"type": "TEXT",
|
|
89
|
+
"required": false,
|
|
90
|
+
"defaultValue": "Sepete eklenmiş",
|
|
91
|
+
"groupId": "texts"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "compactView",
|
|
95
|
+
"displayName": "Kompakt Görünüm",
|
|
96
|
+
"type": "BOOLEAN",
|
|
97
|
+
"required": false,
|
|
98
|
+
"groupId": "layout"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "mobileMarginTop",
|
|
102
|
+
"displayName": "Üst Boşluk",
|
|
103
|
+
"type": "TYPE",
|
|
104
|
+
"required": false,
|
|
105
|
+
"groupId": "mobile",
|
|
106
|
+
"typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "mobileMarginBottom",
|
|
110
|
+
"displayName": "Alt Boşluk",
|
|
111
|
+
"type": "TYPE",
|
|
112
|
+
"required": false,
|
|
113
|
+
"groupId": "mobile",
|
|
114
|
+
"typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "desktopMarginTop",
|
|
118
|
+
"displayName": "Üst Boşluk",
|
|
119
|
+
"type": "TYPE",
|
|
120
|
+
"required": false,
|
|
121
|
+
"groupId": "desktop",
|
|
122
|
+
"typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "desktopMarginBottom",
|
|
126
|
+
"displayName": "Alt Boşluk",
|
|
127
|
+
"type": "TYPE",
|
|
128
|
+
"required": false,
|
|
129
|
+
"groupId": "desktop",
|
|
130
|
+
"typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "errorMessage",
|
|
134
|
+
"displayName": "Hata Mesajı",
|
|
135
|
+
"type": "TEXT",
|
|
136
|
+
"required": false,
|
|
137
|
+
"defaultValue": "Ürün sepete eklenemedi",
|
|
138
|
+
"groupId": "texts"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "optionSetErrorMessage",
|
|
142
|
+
"displayName": "Seçenek Seti Hata Mesajı",
|
|
143
|
+
"type": "TEXT",
|
|
144
|
+
"required": false,
|
|
145
|
+
"defaultValue": "Lütfen gerekli seçenekleri doldurun",
|
|
146
|
+
"groupId": "texts"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"propGroups": [
|
|
150
|
+
{
|
|
151
|
+
"id": "texts",
|
|
152
|
+
"name": "Metinler",
|
|
153
|
+
"description": "Kullanıcıya görünen tüm metin içerikleri"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"id": "layout",
|
|
157
|
+
"name": "Düzen",
|
|
158
|
+
"description": "Bileşen düzen ve davranış ayarları"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"id": "image",
|
|
162
|
+
"name": "Görsel",
|
|
163
|
+
"description": "Görsel boyut ve sığdırma ayarları"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"id": "appearance",
|
|
167
|
+
"name": "Görünüm Ayarları",
|
|
168
|
+
"description": "Bileşenin mobil ve masaüstü görünüm ayarları",
|
|
169
|
+
"children": [
|
|
170
|
+
{
|
|
171
|
+
"id": "mobile",
|
|
172
|
+
"name": "Mobil Görünüm",
|
|
173
|
+
"description": "Mobil cihazlarda uygulanacak margin ayarları"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"id": "desktop",
|
|
177
|
+
"name": "Masaüstü Görünüm",
|
|
178
|
+
"description": "Masaüstü cihazlarda uygulanacak margin ayarları"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
}
|