@ikas/code-components-mcp 0.105.0 → 0.107.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,17 @@
|
|
|
1
|
+
import type { IkasProduct, MarginTopStyleType, MarginBottomStyleType } from "@ikas/bp-storefront";
|
|
2
|
+
import type { AspectRatio, ObjectFit } from "../../global-types";
|
|
3
|
+
|
|
4
|
+
export interface Props {
|
|
5
|
+
product?: IkasProduct | null;
|
|
6
|
+
mobileMarginTop?: MarginTopStyleType;
|
|
7
|
+
mobileMarginBottom?: MarginBottomStyleType;
|
|
8
|
+
desktopMarginTop?: MarginTopStyleType;
|
|
9
|
+
desktopMarginBottom?: MarginBottomStyleType;
|
|
10
|
+
isBundleFurniture?: boolean;
|
|
11
|
+
bundleProductWithoutLink?: boolean;
|
|
12
|
+
quantityLabel?: string;
|
|
13
|
+
outOfStockText?: string;
|
|
14
|
+
productContentTitle?: string;
|
|
15
|
+
aspectRatio?: AspectRatio;
|
|
16
|
+
objectFit?: ObjectFit;
|
|
17
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSelectedProductVariant,
|
|
3
|
+
hasProductVariantStock,
|
|
4
|
+
setBundleProductQuantity,
|
|
5
|
+
IkasBundleProduct,
|
|
6
|
+
IkasBundleSettings,
|
|
7
|
+
} from "@ikas/bp-storefront";
|
|
8
|
+
|
|
9
|
+
export function adjustBundleProductQuantity(bp: IkasBundleProduct): void {
|
|
10
|
+
if (!bp.product) return;
|
|
11
|
+
|
|
12
|
+
const variant = getSelectedProductVariant(bp.product);
|
|
13
|
+
|
|
14
|
+
const stock = variant.stock ?? 0;
|
|
15
|
+
const inStock = hasProductVariantStock(variant);
|
|
16
|
+
|
|
17
|
+
if (bp.minQuantity === 0 && !inStock) {
|
|
18
|
+
setBundleProductQuantity(bp, 0);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (stock < 10 && bp.quantity > stock && !variant.sellIfOutOfStock) {
|
|
23
|
+
setBundleProductQuantity(bp, Math.max(stock, bp.minQuantity ?? 0));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function isBundleOutOfStock(
|
|
28
|
+
bundleSettings: IkasBundleSettings,
|
|
29
|
+
): boolean {
|
|
30
|
+
const { products, minBundleQuantity, maxBundleQuantity } = bundleSettings;
|
|
31
|
+
|
|
32
|
+
// Skip check while bundle product data is still loading
|
|
33
|
+
const loaded = products.some((bp) => !!bp.product);
|
|
34
|
+
if (!loaded) return false;
|
|
35
|
+
|
|
36
|
+
// A required bundle product (minQuantity !== 0) is out of stock
|
|
37
|
+
const hasRequiredOutOfStock = products.some((bp) => {
|
|
38
|
+
if (!bp.product) return false;
|
|
39
|
+
|
|
40
|
+
const variant = getSelectedProductVariant(bp.product);
|
|
41
|
+
const bpHasStock = variant ? hasProductVariantStock(variant) : false;
|
|
42
|
+
|
|
43
|
+
return !bpHasStock && bp.minQuantity !== 0;
|
|
44
|
+
});
|
|
45
|
+
if (hasRequiredOutOfStock) return true;
|
|
46
|
+
|
|
47
|
+
// All bundle products have zero quantity
|
|
48
|
+
const allZeroQuantity = products.every((p) => p.quantity === 0);
|
|
49
|
+
if (allZeroQuantity) return true;
|
|
50
|
+
|
|
51
|
+
// Total quantity violates bundle-level min/max constraints
|
|
52
|
+
const totalQuantity = products.reduce((sum, p) => sum + p.quantity, 0);
|
|
53
|
+
if (minBundleQuantity != null && totalQuantity < minBundleQuantity)
|
|
54
|
+
return true;
|
|
55
|
+
if (maxBundleQuantity != null && totalQuantity > maxBundleQuantity)
|
|
56
|
+
return true;
|
|
57
|
+
|
|
58
|
+
// Individual bundle product min/max quantity violations
|
|
59
|
+
const hasMinQuantityError = products.some(
|
|
60
|
+
(bp) => bp.minQuantity != null && bp.quantity < bp.minQuantity,
|
|
61
|
+
);
|
|
62
|
+
if (hasMinQuantityError) return true;
|
|
63
|
+
|
|
64
|
+
const hasMaxQuantityError = products.some(
|
|
65
|
+
(bp) => bp.maxQuantity != null && bp.quantity > bp.maxQuantity!,
|
|
66
|
+
);
|
|
67
|
+
if (hasMaxQuantityError) return true;
|
|
68
|
+
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { AspectRatio, ObjectFit, VerticalAlignment } from "../global-types";
|
|
2
|
+
|
|
3
|
+
const DEFAULT_ASPECT_RATIO: AspectRatio = "Square";
|
|
4
|
+
const DEFAULT_OBJECT_FIT: ObjectFit = "Cover";
|
|
5
|
+
const DEFAULT_VERTICAL_ALIGNMENT: VerticalAlignment = "Middle";
|
|
6
|
+
|
|
7
|
+
const ASPECT_RATIO_MAP: Record<AspectRatio, string> = {
|
|
8
|
+
Square: "1 / 1",
|
|
9
|
+
Portrait: "3 / 4",
|
|
10
|
+
Landscape: "4 / 3",
|
|
11
|
+
Video: "16 / 9",
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const OBJECT_FIT_MAP: Record<ObjectFit, string> = {
|
|
15
|
+
Fill: "fill",
|
|
16
|
+
Cover: "cover",
|
|
17
|
+
Contain: "contain",
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const ALIGNMENT_MAP: Record<VerticalAlignment, string> = {
|
|
21
|
+
Top: "flex-start",
|
|
22
|
+
Middle: "center",
|
|
23
|
+
Bottom: "flex-end",
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export function resolveAspectRatio(value?: AspectRatio): string {
|
|
27
|
+
return ASPECT_RATIO_MAP[value ?? DEFAULT_ASPECT_RATIO];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function resolveObjectFit(value?: ObjectFit): string {
|
|
31
|
+
return OBJECT_FIT_MAP[value ?? DEFAULT_OBJECT_FIT];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function resolveVerticalAlignment(value?: VerticalAlignment): string {
|
|
35
|
+
return ALIGNMENT_MAP[value ?? DEFAULT_VERTICAL_ALIGNMENT];
|
|
36
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { useState, useEffect } from "preact/hooks";
|
|
2
|
+
import {
|
|
3
|
+
customerStore,
|
|
4
|
+
getCouponCodeForm,
|
|
5
|
+
initCouponCodeForm,
|
|
6
|
+
setCouponCodeFormCouponCode,
|
|
7
|
+
submitCouponCodeForm,
|
|
8
|
+
removeCouponCodeForm,
|
|
9
|
+
} from "@ikas/bp-storefront";
|
|
10
|
+
import { observer } from "@ikas/component-utils";
|
|
11
|
+
import Button from "../../../../sub-components/Button";
|
|
12
|
+
import Input from "../../../../sub-components/Input";
|
|
13
|
+
|
|
14
|
+
interface Props {
|
|
15
|
+
appliedCoupon?: string | null;
|
|
16
|
+
toggleText: string;
|
|
17
|
+
placeholder: string;
|
|
18
|
+
applyText: string;
|
|
19
|
+
removeText: string;
|
|
20
|
+
applyingText: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const CouponCode = observer(function CouponCode({
|
|
24
|
+
appliedCoupon,
|
|
25
|
+
toggleText,
|
|
26
|
+
placeholder,
|
|
27
|
+
applyText,
|
|
28
|
+
removeText,
|
|
29
|
+
applyingText,
|
|
30
|
+
}: Props) {
|
|
31
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
32
|
+
const couponForm = getCouponCodeForm(customerStore);
|
|
33
|
+
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
initCouponCodeForm(couponForm);
|
|
36
|
+
}, [couponForm]);
|
|
37
|
+
|
|
38
|
+
const handleSubmit = async (e: Event) => {
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
await submitCouponCodeForm(couponForm);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const handleRemove = async () => {
|
|
44
|
+
await removeCouponCodeForm(couponForm);
|
|
45
|
+
setIsOpen(false);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
if (appliedCoupon) {
|
|
49
|
+
return (
|
|
50
|
+
<div className="coupon-code">
|
|
51
|
+
<div className="coupon-code__applied">
|
|
52
|
+
<span className="coupon-code__value text-sm-medium">
|
|
53
|
+
{appliedCoupon}
|
|
54
|
+
</span>
|
|
55
|
+
<button
|
|
56
|
+
type="button"
|
|
57
|
+
className="coupon-code__remove text-sm-medium"
|
|
58
|
+
onClick={handleRemove}
|
|
59
|
+
>
|
|
60
|
+
{removeText}
|
|
61
|
+
</button>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return (
|
|
68
|
+
<div className="coupon-code">
|
|
69
|
+
{!isOpen ? (
|
|
70
|
+
<button
|
|
71
|
+
type="button"
|
|
72
|
+
className="coupon-code__toggle text-sm-semibold"
|
|
73
|
+
onClick={() => setIsOpen(true)}
|
|
74
|
+
>
|
|
75
|
+
{toggleText}
|
|
76
|
+
</button>
|
|
77
|
+
) : (
|
|
78
|
+
<form className="coupon-code__form" onSubmit={handleSubmit}>
|
|
79
|
+
<Input
|
|
80
|
+
placeholder={couponForm.couponCode?.placeholder ?? placeholder}
|
|
81
|
+
value={couponForm.couponCode?.value ?? ""}
|
|
82
|
+
onInput={(e: Event) =>
|
|
83
|
+
setCouponCodeFormCouponCode(
|
|
84
|
+
couponForm,
|
|
85
|
+
(e.target as HTMLInputElement).value,
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
status={couponForm.isFailure ? "error" : undefined}
|
|
89
|
+
/>
|
|
90
|
+
<Button
|
|
91
|
+
variant="secondary"
|
|
92
|
+
size="xs"
|
|
93
|
+
disabled={couponForm.isSubmitting}
|
|
94
|
+
>
|
|
95
|
+
{couponForm.isSubmitting ? applyingText : applyText}
|
|
96
|
+
</Button>
|
|
97
|
+
</form>
|
|
98
|
+
)}
|
|
99
|
+
{couponForm.isFailure && couponForm.responseMessage && (
|
|
100
|
+
<p className="coupon-code__error text-xs-regular">
|
|
101
|
+
{couponForm.responseMessage}
|
|
102
|
+
</p>
|
|
103
|
+
)}
|
|
104
|
+
</div>
|
|
105
|
+
);
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
export default CouponCode;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* CouponCode */
|
|
2
|
+
.coupon-code {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 0.5rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.coupon-code__toggle {
|
|
9
|
+
background: none;
|
|
10
|
+
border: none;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
padding: 0;
|
|
13
|
+
color: var(--kombos-gray-900);
|
|
14
|
+
text-decoration: underline;
|
|
15
|
+
text-align: left;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.coupon-code__toggle:hover {
|
|
19
|
+
color: var(--kombos-gray-700);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.coupon-code__form {
|
|
23
|
+
display: flex;
|
|
24
|
+
gap: 0.5rem;
|
|
25
|
+
align-items: stretch;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.coupon-code__form > :first-child {
|
|
29
|
+
flex: 1;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.coupon-code__form > :last-child {
|
|
34
|
+
flex-shrink: 0;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.coupon-code__applied {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
padding: 0.625rem 0.875rem;
|
|
43
|
+
background-color: var(--kombos-gray-50);
|
|
44
|
+
border-radius: 6px;
|
|
45
|
+
min-height: 2.75rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.coupon-code__value {
|
|
49
|
+
color: var(--kombos-gray-900);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.coupon-code__remove {
|
|
53
|
+
background: none;
|
|
54
|
+
border: none;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
padding: 0;
|
|
57
|
+
color: var(--kombos-gray-500);
|
|
58
|
+
text-decoration: underline;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.coupon-code__remove:hover {
|
|
62
|
+
color: var(--kombos-gray-700);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.coupon-code__error {
|
|
66
|
+
color: var(--kombos-error);
|
|
67
|
+
margin: 0;
|
|
68
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Router } from "@ikas/bp-storefront";
|
|
2
|
+
import { Handbag1SVG } from "../../../../sub-components/icons";
|
|
3
|
+
import Button from "../../../../sub-components/Button";
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
emptyCartText: string;
|
|
7
|
+
continueShoppingText: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default function EmptyState({
|
|
11
|
+
emptyCartText,
|
|
12
|
+
continueShoppingText,
|
|
13
|
+
}: Props) {
|
|
14
|
+
const handleContinueShopping = () => {
|
|
15
|
+
Router.navigate("/");
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<div className="cart-page__empty">
|
|
20
|
+
<span className="cart-page__empty-icon">
|
|
21
|
+
<Handbag1SVG />
|
|
22
|
+
</span>
|
|
23
|
+
<p className="cart-page__empty-text text-xl-semibold md:display-xs-semibold">
|
|
24
|
+
{emptyCartText}
|
|
25
|
+
</p>
|
|
26
|
+
<Button variant="primary" size="s" onClick={handleContinueShopping}>
|
|
27
|
+
{continueShoppingText}
|
|
28
|
+
</Button>
|
|
29
|
+
</div>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* EmptyState */
|
|
2
|
+
.cart-page__empty {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: 1.5rem;
|
|
7
|
+
padding: 5rem 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.cart-page__empty-icon {
|
|
11
|
+
font-size: 3rem;
|
|
12
|
+
color: var(--kombos-gray-300);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cart-page__empty-text {
|
|
16
|
+
color: var(--kombos-gray-700);
|
|
17
|
+
margin: 0;
|
|
18
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cartStore,
|
|
3
|
+
IkasCart,
|
|
4
|
+
getIkasOrderFormattedTotalFinalPrice,
|
|
5
|
+
getIkasOrderFormattedTotalPrice,
|
|
6
|
+
getOrderAdjustmentDisplayName,
|
|
7
|
+
getOrderAdjustmentFormattedAmount,
|
|
8
|
+
getOrderAdjustmentIsDecrement,
|
|
9
|
+
getCheckoutUrlFromCartStore,
|
|
10
|
+
} from "@ikas/bp-storefront";
|
|
11
|
+
import { observer } from "@ikas/component-utils";
|
|
12
|
+
import Button from "../../../../sub-components/Button";
|
|
13
|
+
import CouponCode from "../CouponCode";
|
|
14
|
+
import { cx } from "../../../../utils/cx";
|
|
15
|
+
|
|
16
|
+
interface Props {
|
|
17
|
+
cart: IkasCart;
|
|
18
|
+
title: string;
|
|
19
|
+
subtotalLabel: string;
|
|
20
|
+
totalLabel: string;
|
|
21
|
+
checkoutButtonText: string;
|
|
22
|
+
couponToggleText: string;
|
|
23
|
+
couponPlaceholder: string;
|
|
24
|
+
couponApplyText: string;
|
|
25
|
+
couponRemoveText: string;
|
|
26
|
+
couponApplyingText: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const OrderSummary = observer(function OrderSummary({
|
|
30
|
+
cart,
|
|
31
|
+
title,
|
|
32
|
+
subtotalLabel,
|
|
33
|
+
totalLabel,
|
|
34
|
+
checkoutButtonText,
|
|
35
|
+
couponToggleText,
|
|
36
|
+
couponPlaceholder,
|
|
37
|
+
couponApplyText,
|
|
38
|
+
couponRemoveText,
|
|
39
|
+
couponApplyingText,
|
|
40
|
+
}: Props) {
|
|
41
|
+
const adjustments = cart.orderAdjustments ?? [];
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<div className="order-summary">
|
|
45
|
+
<h2 className="order-summary__title text-md-semibold md:text-lg-semibold">{title}</h2>
|
|
46
|
+
|
|
47
|
+
<div className="order-summary__rows">
|
|
48
|
+
<div className="order-summary__row">
|
|
49
|
+
<span className="text-md-regular">{subtotalLabel}</span>
|
|
50
|
+
<span className="text-md-semibold">
|
|
51
|
+
{getIkasOrderFormattedTotalPrice(cart)}
|
|
52
|
+
</span>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
{adjustments.map((adj, i) => {
|
|
56
|
+
const isDecrement = !!getOrderAdjustmentIsDecrement(adj);
|
|
57
|
+
|
|
58
|
+
return (
|
|
59
|
+
<div key={i} className="order-summary__row">
|
|
60
|
+
<span className="text-sm-regular">
|
|
61
|
+
{getOrderAdjustmentDisplayName(adj)}
|
|
62
|
+
</span>
|
|
63
|
+
<span
|
|
64
|
+
className={cx(
|
|
65
|
+
"order-summary__adjustment-amount text-sm-semibold",
|
|
66
|
+
isDecrement && "order-summary__adjustment-amount--discount",
|
|
67
|
+
)}
|
|
68
|
+
>
|
|
69
|
+
{getOrderAdjustmentFormattedAmount(adj)}
|
|
70
|
+
</span>
|
|
71
|
+
</div>
|
|
72
|
+
);
|
|
73
|
+
})}
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div className="order-summary__divider" />
|
|
77
|
+
|
|
78
|
+
<div className="order-summary__row order-summary__total">
|
|
79
|
+
<span className="text-md-semibold md:text-lg-semibold">{totalLabel}</span>
|
|
80
|
+
<span className="text-md-semibold md:text-lg-semibold">
|
|
81
|
+
{getIkasOrderFormattedTotalFinalPrice(cart)}
|
|
82
|
+
</span>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<CouponCode
|
|
86
|
+
appliedCoupon={cart.couponCode}
|
|
87
|
+
toggleText={couponToggleText}
|
|
88
|
+
placeholder={couponPlaceholder}
|
|
89
|
+
applyText={couponApplyText}
|
|
90
|
+
removeText={couponRemoveText}
|
|
91
|
+
applyingText={couponApplyingText}
|
|
92
|
+
/>
|
|
93
|
+
|
|
94
|
+
<a
|
|
95
|
+
className="order-summary__checkout-link"
|
|
96
|
+
href={getCheckoutUrlFromCartStore(cartStore)}
|
|
97
|
+
>
|
|
98
|
+
<Button variant="primary" className="order-summary__checkout-btn">
|
|
99
|
+
{checkoutButtonText}
|
|
100
|
+
</Button>
|
|
101
|
+
</a>
|
|
102
|
+
</div>
|
|
103
|
+
);
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
export default OrderSummary;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* OrderSummary */
|
|
2
|
+
.order-summary {
|
|
3
|
+
border: 1px solid var(--kombos-gray-200);
|
|
4
|
+
border-radius: 6px;
|
|
5
|
+
padding: 1.25rem;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 1rem;
|
|
9
|
+
background-color: var(--kombos-white);
|
|
10
|
+
min-width: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@media (min-width: 768px) {
|
|
14
|
+
.order-summary {
|
|
15
|
+
padding: 1.5rem;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (min-width: 1024px) {
|
|
20
|
+
.order-summary {
|
|
21
|
+
position: sticky;
|
|
22
|
+
top: 7rem;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.order-summary__title {
|
|
27
|
+
margin: 0;
|
|
28
|
+
color: var(--kombos-gray-900);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.order-summary__rows {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: 0.5rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.order-summary__row {
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
align-items: center;
|
|
41
|
+
color: var(--kombos-gray-700);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.order-summary__adjustment-amount {
|
|
45
|
+
color: var(--kombos-gray-500);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.order-summary__adjustment-amount--discount {
|
|
49
|
+
color: var(--kombos-error);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.order-summary__divider {
|
|
53
|
+
height: 1px;
|
|
54
|
+
background-color: var(--kombos-gray-200);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.order-summary__total {
|
|
58
|
+
color: var(--kombos-gray-900);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Checkout */
|
|
62
|
+
.order-summary__checkout-link {
|
|
63
|
+
display: block;
|
|
64
|
+
text-decoration: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.order-summary__checkout-btn {
|
|
68
|
+
display: flex;
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Auto-generated global type definitions for ikas code components.
|
|
2
|
+
// This file is regenerated automatically — do not edit manually.
|
|
3
|
+
|
|
4
|
+
/** Enum type: s3OODUmZpJ */
|
|
5
|
+
export type AspectRatio = "Square" | "Portrait" | "Landscape" | "Video";
|
|
6
|
+
/** Enum type: __breakpointsEnum__ */
|
|
7
|
+
export type Breakpoints = "desktop";
|
|
8
|
+
/** Enum type: Tkt3wfuJ5F */
|
|
9
|
+
export type NumberOfColumns = "One" | "Two" | "Three" | "Four" | "Five";
|
|
10
|
+
/** Enum type: GrylMqHxui */
|
|
11
|
+
export type ObjectFit = "Fill" | "Cover" | "Contain";
|
|
12
|
+
/** Enum type: 08UWYbbs0P */
|
|
13
|
+
export type VerticalAlignment = "Top" | "Middle" | "Bottom";
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "{{PROJECT_ID}}-cart-page",
|
|
3
|
+
"name": "CartPage",
|
|
4
|
+
"type": "section",
|
|
5
|
+
"entry": "./src/components/CartPage/index.tsx",
|
|
6
|
+
"styles": "./src/components/CartPage/styles.css",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "title",
|
|
10
|
+
"displayName": "Başlık",
|
|
11
|
+
"type": "TEXT",
|
|
12
|
+
"required": false,
|
|
13
|
+
"defaultValue": "Sepet",
|
|
14
|
+
"groupId": "page"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "emptyCartText",
|
|
18
|
+
"displayName": "Boş Sepet Metni",
|
|
19
|
+
"type": "TEXT",
|
|
20
|
+
"required": false,
|
|
21
|
+
"defaultValue": "Sepetinizde Ürün Bulunmamaktadır",
|
|
22
|
+
"groupId": "page"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "subtotalLabel",
|
|
26
|
+
"displayName": "Ara Toplam Etiketi",
|
|
27
|
+
"type": "TEXT",
|
|
28
|
+
"required": false,
|
|
29
|
+
"defaultValue": "Ara Toplam",
|
|
30
|
+
"groupId": "summary"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "totalLabel",
|
|
34
|
+
"displayName": "Toplam Etiketi",
|
|
35
|
+
"type": "TEXT",
|
|
36
|
+
"required": false,
|
|
37
|
+
"defaultValue": "Toplam",
|
|
38
|
+
"groupId": "summary"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "checkoutButtonText",
|
|
42
|
+
"displayName": "Ödeme Butonu Metni",
|
|
43
|
+
"type": "TEXT",
|
|
44
|
+
"required": false,
|
|
45
|
+
"defaultValue": "Siparişi Tamamla",
|
|
46
|
+
"groupId": "summary"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "itemsText",
|
|
50
|
+
"displayName": "Ürün Sayısı Metni",
|
|
51
|
+
"type": "TEXT",
|
|
52
|
+
"required": false,
|
|
53
|
+
"defaultValue": "ürün",
|
|
54
|
+
"groupId": "page"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "couponPlaceholder",
|
|
58
|
+
"displayName": "Kupon Yer Tutucu",
|
|
59
|
+
"type": "TEXT",
|
|
60
|
+
"required": false,
|
|
61
|
+
"defaultValue": "Kupon kodu girin",
|
|
62
|
+
"groupId": "coupon"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "couponApplyText",
|
|
66
|
+
"displayName": "Kupon Uygula Metni",
|
|
67
|
+
"type": "TEXT",
|
|
68
|
+
"required": false,
|
|
69
|
+
"defaultValue": "Uygula",
|
|
70
|
+
"groupId": "coupon"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "couponRemoveText",
|
|
74
|
+
"displayName": "Kupon Kaldır Metni",
|
|
75
|
+
"type": "TEXT",
|
|
76
|
+
"required": false,
|
|
77
|
+
"defaultValue": "Kaldır",
|
|
78
|
+
"groupId": "coupon"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "couponApplyingText",
|
|
82
|
+
"displayName": "Kupon Uygulanıyor Metni",
|
|
83
|
+
"type": "TEXT",
|
|
84
|
+
"required": false,
|
|
85
|
+
"defaultValue": "Uygulanıyor...",
|
|
86
|
+
"groupId": "coupon"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "orderSummaryTitle",
|
|
90
|
+
"displayName": "Sipariş Özeti Başlığı",
|
|
91
|
+
"type": "TEXT",
|
|
92
|
+
"required": false,
|
|
93
|
+
"defaultValue": "Sipariş Özeti",
|
|
94
|
+
"groupId": "summary"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "couponToggleText",
|
|
98
|
+
"displayName": "Kupon Aç/Kapa Metni",
|
|
99
|
+
"type": "TEXT",
|
|
100
|
+
"required": false,
|
|
101
|
+
"defaultValue": "Hediye Kodunu Kullan!",
|
|
102
|
+
"groupId": "coupon"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "continueShoppingText",
|
|
106
|
+
"displayName": "Alışverişe Devam Butonu Metni",
|
|
107
|
+
"type": "TEXT",
|
|
108
|
+
"required": false,
|
|
109
|
+
"defaultValue": "Alışverişe Başla",
|
|
110
|
+
"groupId": "page"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"propGroups": [
|
|
114
|
+
{
|
|
115
|
+
"id": "page",
|
|
116
|
+
"name": "Sayfa",
|
|
117
|
+
"description": "Sayfa başlığı, yükleme ve boş sepet metinleri"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"id": "summary",
|
|
121
|
+
"name": "Sipariş Özeti",
|
|
122
|
+
"description": "Sipariş özeti başlığı, fiyat etiketleri ve ödeme butonu"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": "coupon",
|
|
126
|
+
"name": "Kupon Kodu",
|
|
127
|
+
"description": "Kupon kodu toggle, giriş alanı ve buton metinleri"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|