@ikas/component-cli 0.103.0 → 0.105.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/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +385 -5
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +118 -43
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +135 -5
- package/dist/commands/dev.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/component-helpers.d.ts +5 -0
- package/dist/utils/component-helpers.d.ts.map +1 -1
- package/dist/utils/component-helpers.js +14 -1
- package/dist/utils/component-helpers.js.map +1 -1
- package/dist/utils/template.d.ts +12 -0
- package/dist/utils/template.d.ts.map +1 -1
- package/dist/utils/template.js +44 -0
- package/dist/utils/template.js.map +1 -1
- package/dist/utils/websocket-server.d.ts +26 -0
- package/dist/utils/websocket-server.d.ts.map +1 -1
- package/dist/utils/websocket-server.js +42 -0
- package/dist/utils/websocket-server.js.map +1 -1
- package/package.json +3 -2
- package/templates/create/claude-md +2 -1
- package/templates/create/cursorrules +1 -1
- package/templates/create/package.json +1 -0
- package/templates/create/src/components/ExampleComponent/types.ts +1 -1
- package/templates/create/src/components/ExampleSection/types.ts +1 -1
- package/templates/create-full/README.md +78 -0
- package/templates/create-full/claude-md +721 -0
- package/templates/create-full/cursorrules +103 -0
- package/templates/create-full/gitignore +4 -0
- package/templates/create-full/ikas.config.json +5007 -0
- package/templates/create-full/mcp.json +10 -0
- package/templates/create-full/package.json +22 -0
- package/templates/create-full/src/components/AccountAddresses/components/AddressCard/index.tsx +55 -0
- package/templates/create-full/src/components/AccountAddresses/components/AddressCard/styles.css +46 -0
- package/templates/create-full/src/components/AccountAddresses/components/AddressModal/index.tsx +301 -0
- package/templates/create-full/src/components/AccountAddresses/components/AddressModal/styles.css +22 -0
- package/templates/create-full/src/components/AccountAddresses/index.tsx +127 -0
- package/templates/create-full/src/components/AccountAddresses/styles.css +41 -0
- package/templates/create-full/src/components/AccountAddresses/types.ts +15 -0
- package/templates/create-full/src/components/AccountFavorites/index.tsx +82 -0
- package/templates/create-full/src/components/AccountFavorites/styles.css +52 -0
- package/templates/create-full/src/components/AccountFavorites/types.ts +7 -0
- package/templates/create-full/src/components/AccountInfo/components/AccountSidebar/index.tsx +171 -0
- package/templates/create-full/src/components/AccountInfo/components/AccountSidebar/styles.css +144 -0
- package/templates/create-full/src/components/AccountInfo/index.tsx +91 -0
- package/templates/create-full/src/components/AccountInfo/styles.css +35 -0
- package/templates/create-full/src/components/AccountInfo/types.ts +9 -0
- package/templates/create-full/src/components/AccountInfoContent/index.tsx +134 -0
- package/templates/create-full/src/components/AccountInfoContent/styles.css +57 -0
- package/templates/create-full/src/components/AccountInfoContent/types.ts +8 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderHeader/index.tsx +78 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderHeader/styles.css +46 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderItemRow/index.tsx +20 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderItemRow/styles.css +16 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderLineItemDisplay/index.tsx +112 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderLineItemDisplay/styles.css +86 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderSidebar/index.tsx +195 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderSidebar/styles.css +93 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/PackageGroup/index.tsx +156 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/PackageGroup/styles.css +100 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnItemRow/index.tsx +56 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnItemRow/styles.css +57 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnView/index.tsx +159 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnView/styles.css +29 -0
- package/templates/create-full/src/components/AccountOrderDetail/index.tsx +244 -0
- package/templates/create-full/src/components/AccountOrderDetail/styles.css +125 -0
- package/templates/create-full/src/components/AccountOrderDetail/types.ts +32 -0
- package/templates/create-full/src/components/AccountOrders/components/OrderCard/index.tsx +122 -0
- package/templates/create-full/src/components/AccountOrders/components/OrderCard/styles.css +114 -0
- package/templates/create-full/src/components/AccountOrders/index.tsx +105 -0
- package/templates/create-full/src/components/AccountOrders/styles.css +36 -0
- package/templates/create-full/src/components/AccountOrders/types.ts +11 -0
- package/templates/create-full/src/components/Announcement/index.tsx +11 -0
- package/templates/create-full/src/components/Announcement/styles.css +4 -0
- package/templates/create-full/src/components/Announcement/types.ts +4 -0
- package/templates/create-full/src/components/Announcements/index.tsx +91 -0
- package/templates/create-full/src/components/Announcements/styles.css +45 -0
- package/templates/create-full/src/components/Announcements/types.ts +8 -0
- package/templates/create-full/src/components/BlogHome/components/BlogCard/index.tsx +89 -0
- package/templates/create-full/src/components/BlogHome/components/BlogCard/styles.css +121 -0
- package/templates/create-full/src/components/BlogHome/index.tsx +124 -0
- package/templates/create-full/src/components/BlogHome/styles.css +118 -0
- package/templates/create-full/src/components/BlogHome/types.ts +15 -0
- package/templates/create-full/src/components/BlogPost/index.tsx +128 -0
- package/templates/create-full/src/components/BlogPost/styles.css +120 -0
- package/templates/create-full/src/components/BlogPost/types.ts +12 -0
- package/templates/create-full/src/components/CardProductName/index.tsx +25 -0
- package/templates/create-full/src/components/CardProductName/styles.css +22 -0
- package/templates/create-full/src/components/CardProductName/types.ts +7 -0
- package/templates/create-full/src/components/CardProductPrice/index.tsx +30 -0
- package/templates/create-full/src/components/CardProductPrice/styles.css +13 -0
- package/templates/create-full/src/components/CardProductPrice/types.ts +6 -0
- package/templates/create-full/src/components/CardProductVariants/index.tsx +10 -0
- package/templates/create-full/src/components/CardProductVariants/styles.css +1 -0
- package/templates/create-full/src/components/CardProductVariants/types.ts +6 -0
- package/templates/create-full/src/components/CartPage/components/CouponCode/index.tsx +108 -0
- package/templates/create-full/src/components/CartPage/components/CouponCode/styles.css +68 -0
- package/templates/create-full/src/components/CartPage/components/EmptyState/index.tsx +31 -0
- package/templates/create-full/src/components/CartPage/components/EmptyState/styles.css +18 -0
- package/templates/create-full/src/components/CartPage/components/OrderSummary/index.tsx +106 -0
- package/templates/create-full/src/components/CartPage/components/OrderSummary/styles.css +70 -0
- package/templates/create-full/src/components/CartPage/index.tsx +107 -0
- package/templates/create-full/src/components/CartPage/styles.css +54 -0
- package/templates/create-full/src/components/CartPage/types.ts +16 -0
- package/templates/create-full/src/components/CategoryImageItem/components/Card/index.tsx +64 -0
- package/templates/create-full/src/components/CategoryImageItem/components/Card/styles.css +56 -0
- package/templates/create-full/src/components/CategoryImageItem/index.tsx +64 -0
- package/templates/create-full/src/components/CategoryImageItem/styles.css +10 -0
- package/templates/create-full/src/components/CategoryImageItem/types.ts +16 -0
- package/templates/create-full/src/components/CategoryImages/index.tsx +62 -0
- package/templates/create-full/src/components/CategoryImages/styles.css +38 -0
- package/templates/create-full/src/components/CategoryImages/types.ts +11 -0
- package/templates/create-full/src/components/CategoryList/components/CategoryListControls/index.tsx +129 -0
- package/templates/create-full/src/components/CategoryList/components/CategoryListControls/styles.css +99 -0
- package/templates/create-full/src/components/CategoryList/components/FilterBoxValues/index.tsx +42 -0
- package/templates/create-full/src/components/CategoryList/components/FilterBoxValues/styles.css +27 -0
- package/templates/create-full/src/components/CategoryList/components/FilterCategoryList/index.tsx +43 -0
- package/templates/create-full/src/components/CategoryList/components/FilterCategoryList/styles.css +20 -0
- package/templates/create-full/src/components/CategoryList/components/FilterGroupValues/index.tsx +114 -0
- package/templates/create-full/src/components/CategoryList/components/FilterGroupValues/styles.css +1 -0
- package/templates/create-full/src/components/CategoryList/components/FilterListValues/index.tsx +54 -0
- package/templates/create-full/src/components/CategoryList/components/FilterListValues/styles.css +22 -0
- package/templates/create-full/src/components/CategoryList/components/FilterRangeListValues/index.tsx +50 -0
- package/templates/create-full/src/components/CategoryList/components/FilterRangeListValues/styles.css +25 -0
- package/templates/create-full/src/components/CategoryList/components/FilterRangeValues/index.tsx +189 -0
- package/templates/create-full/src/components/CategoryList/components/FilterRangeValues/styles.css +89 -0
- package/templates/create-full/src/components/CategoryList/components/FilterSidebar/index.tsx +92 -0
- package/templates/create-full/src/components/CategoryList/components/FilterSidebar/styles.css +27 -0
- package/templates/create-full/src/components/CategoryList/components/FilterSwatchValues/index.tsx +63 -0
- package/templates/create-full/src/components/CategoryList/components/FilterSwatchValues/styles.css +48 -0
- package/templates/create-full/src/components/CategoryList/components/MobileFilterModal/index.tsx +146 -0
- package/templates/create-full/src/components/CategoryList/components/MobileFilterModal/styles.css +133 -0
- package/templates/create-full/src/components/CategoryList/index.tsx +333 -0
- package/templates/create-full/src/components/CategoryList/styles.css +110 -0
- package/templates/create-full/src/components/CategoryList/types.ts +30 -0
- package/templates/create-full/src/components/CollapsibleContent/index.tsx +23 -0
- package/templates/create-full/src/components/CollapsibleContent/styles.css +11 -0
- package/templates/create-full/src/components/CollapsibleContent/types.ts +6 -0
- package/templates/create-full/src/components/CookieBar/index.tsx +78 -0
- package/templates/create-full/src/components/CookieBar/styles.css +111 -0
- package/templates/create-full/src/components/CookieBar/types.ts +10 -0
- package/templates/create-full/src/components/CustomerEmailVerification/index.tsx +168 -0
- package/templates/create-full/src/components/CustomerEmailVerification/styles.css +118 -0
- package/templates/create-full/src/components/CustomerEmailVerification/types.ts +17 -0
- package/templates/create-full/src/components/FeatureItem/index.tsx +27 -0
- package/templates/create-full/src/components/FeatureItem/styles.css +19 -0
- package/templates/create-full/src/components/FeatureItem/types.ts +7 -0
- package/templates/create-full/src/components/Features/index.tsx +25 -0
- package/templates/create-full/src/components/Features/styles.css +39 -0
- package/templates/create-full/src/components/Features/types.ts +5 -0
- package/templates/create-full/src/components/Footer/index.tsx +154 -0
- package/templates/create-full/src/components/Footer/styles.css +175 -0
- package/templates/create-full/src/components/Footer/types.ts +15 -0
- package/templates/create-full/src/components/ForgotPassword/components/ForgotPasswordForm/index.tsx +129 -0
- package/templates/create-full/src/components/ForgotPassword/components/ForgotPasswordForm/styles.css +0 -0
- package/templates/create-full/src/components/ForgotPassword/index.tsx +30 -0
- package/templates/create-full/src/components/ForgotPassword/styles.css +85 -0
- package/templates/create-full/src/components/ForgotPassword/types.ts +13 -0
- package/templates/create-full/src/components/Header/index.tsx +53 -0
- package/templates/create-full/src/components/Header/styles.css +6 -0
- package/templates/create-full/src/components/Header/types.ts +6 -0
- package/templates/create-full/src/components/HeroSlider/index.tsx +110 -0
- package/templates/create-full/src/components/HeroSlider/styles.css +129 -0
- package/templates/create-full/src/components/HeroSlider/types.ts +9 -0
- package/templates/create-full/src/components/HeroSliderItem/index.tsx +231 -0
- package/templates/create-full/src/components/HeroSliderItem/styles.css +152 -0
- package/templates/create-full/src/components/HeroSliderItem/types.ts +34 -0
- package/templates/create-full/src/components/Login/components/LoginForm/index.tsx +181 -0
- package/templates/create-full/src/components/Login/components/LoginForm/styles.css +0 -0
- package/templates/create-full/src/components/Login/index.tsx +37 -0
- package/templates/create-full/src/components/Login/styles.css +129 -0
- package/templates/create-full/src/components/Login/types.ts +18 -0
- package/templates/create-full/src/components/Navbar/components/CartSidebar/index.tsx +203 -0
- package/templates/create-full/src/components/Navbar/components/CartSidebar/styles.css +175 -0
- package/templates/create-full/src/components/Navbar/components/MobileMenu/index.tsx +198 -0
- package/templates/create-full/src/components/Navbar/components/MobileMenu/styles.css +122 -0
- package/templates/create-full/src/components/Navbar/components/NavItem/index.tsx +65 -0
- package/templates/create-full/src/components/Navbar/components/SearchModal/index.tsx +267 -0
- package/templates/create-full/src/components/Navbar/components/SearchModal/styles.css +182 -0
- package/templates/create-full/src/components/Navbar/index.tsx +250 -0
- package/templates/create-full/src/components/Navbar/styles.css +243 -0
- package/templates/create-full/src/components/Navbar/types.ts +37 -0
- package/templates/create-full/src/components/NotFound/index.tsx +39 -0
- package/templates/create-full/src/components/NotFound/styles.css +46 -0
- package/templates/create-full/src/components/NotFound/types.ts +8 -0
- package/templates/create-full/src/components/ProductDetail/components/ProductGallery/index.tsx +316 -0
- package/templates/create-full/src/components/ProductDetail/components/ProductGallery/styles.css +213 -0
- package/templates/create-full/src/components/ProductDetail/index.tsx +92 -0
- package/templates/create-full/src/components/ProductDetail/styles.css +58 -0
- package/templates/create-full/src/components/ProductDetail/types.ts +12 -0
- package/templates/create-full/src/components/ProductDetailAddToCart/components/PayWithIkas/index.tsx +34 -0
- package/templates/create-full/src/components/ProductDetailAddToCart/components/PayWithIkas/styles.css +4 -0
- package/templates/create-full/src/components/ProductDetailAddToCart/index.tsx +146 -0
- package/templates/create-full/src/components/ProductDetailAddToCart/styles.css +27 -0
- package/templates/create-full/src/components/ProductDetailAddToCart/types.ts +18 -0
- package/templates/create-full/src/components/ProductDetailBundleFurniture/components/BundleFurnitureRow/index.tsx +164 -0
- package/templates/create-full/src/components/ProductDetailBundleFurniture/components/BundleFurnitureSection/index.tsx +134 -0
- package/templates/create-full/src/components/ProductDetailBundleFurniture/components/BundleFurnitureSection/styles.css +188 -0
- package/templates/create-full/src/components/ProductDetailBundleFurniture/index.tsx +61 -0
- package/templates/create-full/src/components/ProductDetailBundleFurniture/styles.css +12 -0
- package/templates/create-full/src/components/ProductDetailBundleFurniture/types.ts +21 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleProductItem/index.tsx +169 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleProductItem/styles.css +141 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleSkeletonLoading/index.tsx +35 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleSkeletonLoading/styles.css +85 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureRow/index.tsx +51 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureRow/styles.css +30 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureView/index.tsx +54 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureView/styles.css +22 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/index.tsx +101 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/styles.css +20 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/types.ts +18 -0
- package/templates/create-full/src/components/ProductDetailDescription/index.tsx +56 -0
- package/templates/create-full/src/components/ProductDetailDescription/styles.css +21 -0
- package/templates/create-full/src/components/ProductDetailDescription/types.ts +13 -0
- package/templates/create-full/src/components/ProductDetailFeatureItem/index.tsx +28 -0
- package/templates/create-full/src/components/ProductDetailFeatureItem/styles.css +22 -0
- package/templates/create-full/src/components/ProductDetailFeatureItem/types.ts +7 -0
- package/templates/create-full/src/components/ProductDetailFeatures/index.tsx +40 -0
- package/templates/create-full/src/components/ProductDetailFeatures/styles.css +17 -0
- package/templates/create-full/src/components/ProductDetailFeatures/types.ts +10 -0
- package/templates/create-full/src/components/ProductDetailNameFavorite/index.tsx +66 -0
- package/templates/create-full/src/components/ProductDetailNameFavorite/styles.css +45 -0
- package/templates/create-full/src/components/ProductDetailNameFavorite/types.ts +11 -0
- package/templates/create-full/src/components/ProductDetailOffer/components/OfferCard/index.tsx +209 -0
- package/templates/create-full/src/components/ProductDetailOffer/components/OfferCard/styles.css +146 -0
- package/templates/create-full/src/components/ProductDetailOffer/components/OfferSummary/index.tsx +175 -0
- package/templates/create-full/src/components/ProductDetailOffer/index.tsx +199 -0
- package/templates/create-full/src/components/ProductDetailOffer/styles.css +211 -0
- package/templates/create-full/src/components/ProductDetailOffer/types.ts +24 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionCheckbox/index.tsx +52 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionCheckbox/styles.css +19 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceBox/index.tsx +60 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceBox/styles.css +38 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSelect/index.tsx +102 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSelect/styles.css +34 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSwatch/index.tsx +121 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSwatch/styles.css +87 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/index.tsx +57 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionColorPicker/index.tsx +54 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionColorPicker/styles.css +0 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionDatePicker/index.tsx +124 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionDatePicker/styles.css +1 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionFile/index.tsx +217 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionFile/styles.css +87 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionRenderer/index.tsx +133 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionText/index.tsx +60 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionText/styles.css +1 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionTextarea/index.tsx +74 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionTextarea/styles.css +10 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/index.tsx +99 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/styles.css +30 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/types.ts +21 -0
- package/templates/create-full/src/components/ProductDetailPrices/index.tsx +62 -0
- package/templates/create-full/src/components/ProductDetailPrices/styles.css +32 -0
- package/templates/create-full/src/components/ProductDetailPrices/types.ts +10 -0
- package/templates/create-full/src/components/ProductDetailProductGroup/index.tsx +74 -0
- package/templates/create-full/src/components/ProductDetailProductGroup/styles.css +33 -0
- package/templates/create-full/src/components/ProductDetailProductGroup/types.ts +10 -0
- package/templates/create-full/src/components/ProductDetailReviews/index.tsx +205 -0
- package/templates/create-full/src/components/ProductDetailReviews/styles.css +43 -0
- package/templates/create-full/src/components/ProductDetailReviews/types.ts +19 -0
- package/templates/create-full/src/components/ProductDetailSku/index.tsx +38 -0
- package/templates/create-full/src/components/ProductDetailSku/styles.css +16 -0
- package/templates/create-full/src/components/ProductDetailSku/types.ts +11 -0
- package/templates/create-full/src/components/ProductDetailVariant/index.tsx +38 -0
- package/templates/create-full/src/components/ProductDetailVariant/styles.css +14 -0
- package/templates/create-full/src/components/ProductDetailVariant/types.ts +12 -0
- package/templates/create-full/src/components/ProductSlider/index.tsx +151 -0
- package/templates/create-full/src/components/ProductSlider/styles.css +105 -0
- package/templates/create-full/src/components/ProductSlider/types.ts +17 -0
- package/templates/create-full/src/components/RecoverPassword/components/RecoverPasswordForm/index.tsx +133 -0
- package/templates/create-full/src/components/RecoverPassword/components/RecoverPasswordForm/styles.css +0 -0
- package/templates/create-full/src/components/RecoverPassword/index.tsx +30 -0
- package/templates/create-full/src/components/RecoverPassword/styles.css +93 -0
- package/templates/create-full/src/components/RecoverPassword/types.ts +13 -0
- package/templates/create-full/src/components/Register/components/RegisterForm/index.tsx +326 -0
- package/templates/create-full/src/components/Register/components/RegisterForm/styles.css +0 -0
- package/templates/create-full/src/components/Register/index.tsx +30 -0
- package/templates/create-full/src/components/Register/styles.css +152 -0
- package/templates/create-full/src/components/Register/types.ts +27 -0
- package/templates/create-full/src/components/RichText/index.tsx +25 -0
- package/templates/create-full/src/components/RichText/styles.css +51 -0
- package/templates/create-full/src/components/RichText/types.ts +5 -0
- package/templates/create-full/src/components/SocialMediaIcon/index.tsx +26 -0
- package/templates/create-full/src/components/SocialMediaIcon/styles.css +17 -0
- package/templates/create-full/src/components/SocialMediaIcon/types.ts +7 -0
- package/templates/create-full/src/components/index.ts +50 -0
- package/templates/create-full/src/global-types.ts +13 -0
- package/templates/create-full/src/global.css +582 -0
- package/templates/create-full/src/hooks/useBundleProducts.ts +75 -0
- package/templates/create-full/src/hooks/useColumnPreference.ts +26 -0
- package/templates/create-full/src/hooks/useInfiniteScroll.ts +49 -0
- package/templates/create-full/src/hooks/usePageTracking.ts +56 -0
- package/templates/create-full/src/hooks/usePayWithIkas.ts +114 -0
- package/templates/create-full/src/hooks/useRedirectIfLoggedIn.ts +35 -0
- package/templates/create-full/src/hooks/useScrollLock.ts +20 -0
- package/templates/create-full/src/hooks/useToast.ts +27 -0
- package/templates/create-full/src/ikas-component-utils.d.ts +3 -0
- package/templates/create-full/src/sub-components/Badge/index.tsx +208 -0
- package/templates/create-full/src/sub-components/Badge/styles.css +129 -0
- package/templates/create-full/src/sub-components/Breadcrumb/index.tsx +57 -0
- package/templates/create-full/src/sub-components/Breadcrumb/styles.css +49 -0
- package/templates/create-full/src/sub-components/BundleMedia/index.tsx +72 -0
- package/templates/create-full/src/sub-components/BundleQuantityBox/index.tsx +73 -0
- package/templates/create-full/src/sub-components/BundleQuantityBox/styles.css +43 -0
- package/templates/create-full/src/sub-components/Button/index.tsx +52 -0
- package/templates/create-full/src/sub-components/Button/styles.css +114 -0
- package/templates/create-full/src/sub-components/CartItem/components/BundleProductItem/index.tsx +59 -0
- package/templates/create-full/src/sub-components/CartItem/components/BundleProductItem/styles.css +24 -0
- package/templates/create-full/src/sub-components/CartItem/components/BundleProducts/index.tsx +55 -0
- package/templates/create-full/src/sub-components/CartItem/components/BundleProducts/styles.css +30 -0
- package/templates/create-full/src/sub-components/CartItem/components/ItemOptions/index.tsx +31 -0
- package/templates/create-full/src/sub-components/CartItem/components/ItemOptions/styles.css +6 -0
- package/templates/create-full/src/sub-components/CartItem/components/OptionValueDisplay/index.tsx +79 -0
- package/templates/create-full/src/sub-components/CartItem/components/OptionValueDisplay/styles.css +28 -0
- package/templates/create-full/src/sub-components/CartItem/index.tsx +216 -0
- package/templates/create-full/src/sub-components/CartItem/styles.css +170 -0
- package/templates/create-full/src/sub-components/Checkbox/index.tsx +42 -0
- package/templates/create-full/src/sub-components/Checkbox/styles.css +65 -0
- package/templates/create-full/src/sub-components/CollapsibleGroup/index.tsx +52 -0
- package/templates/create-full/src/sub-components/CollapsibleGroup/styles.css +51 -0
- package/templates/create-full/src/sub-components/ColorInput/index.tsx +33 -0
- package/templates/create-full/src/sub-components/ColorInput/styles.css +53 -0
- package/templates/create-full/src/sub-components/ConfirmModal/index.tsx +60 -0
- package/templates/create-full/src/sub-components/ConfirmModal/styles.css +20 -0
- package/templates/create-full/src/sub-components/FormItem/index.tsx +66 -0
- package/templates/create-full/src/sub-components/FormItem/styles.css +38 -0
- package/templates/create-full/src/sub-components/ImagePreviewModal/index.tsx +55 -0
- package/templates/create-full/src/sub-components/ImagePreviewModal/styles.css +50 -0
- package/templates/create-full/src/sub-components/Input/index.tsx +69 -0
- package/templates/create-full/src/sub-components/Input/styles.css +162 -0
- package/templates/create-full/src/sub-components/Modal/index.tsx +118 -0
- package/templates/create-full/src/sub-components/Modal/styles.css +70 -0
- package/templates/create-full/src/sub-components/PageLoader/index.tsx +14 -0
- package/templates/create-full/src/sub-components/PageLoader/styles.css +12 -0
- package/templates/create-full/src/sub-components/Pagination/index.tsx +107 -0
- package/templates/create-full/src/sub-components/Pagination/styles.css +88 -0
- package/templates/create-full/src/sub-components/ProductCard/index.tsx +276 -0
- package/templates/create-full/src/sub-components/ProductCard/styles.css +99 -0
- package/templates/create-full/src/sub-components/QuantitySelector/index.tsx +41 -0
- package/templates/create-full/src/sub-components/QuantitySelector/styles.css +51 -0
- package/templates/create-full/src/sub-components/ReviewCard/index.tsx +103 -0
- package/templates/create-full/src/sub-components/ReviewCard/styles.css +95 -0
- package/templates/create-full/src/sub-components/ReviewForm/index.tsx +115 -0
- package/templates/create-full/src/sub-components/ReviewForm/styles.css +11 -0
- package/templates/create-full/src/sub-components/ReviewSummary/index.tsx +65 -0
- package/templates/create-full/src/sub-components/ReviewSummary/styles.css +86 -0
- package/templates/create-full/src/sub-components/Select/index.tsx +86 -0
- package/templates/create-full/src/sub-components/Select/styles.css +110 -0
- package/templates/create-full/src/sub-components/SkeletonField/index.tsx +12 -0
- package/templates/create-full/src/sub-components/SkeletonField/styles.css +29 -0
- package/templates/create-full/src/sub-components/SliderArrow/index.tsx +26 -0
- package/templates/create-full/src/sub-components/SliderArrow/styles.css +24 -0
- package/templates/create-full/src/sub-components/SocialLoginButton/index.tsx +24 -0
- package/templates/create-full/src/sub-components/SocialLoginButton/styles.css +19 -0
- package/templates/create-full/src/sub-components/SpinnerIcon/index.tsx +10 -0
- package/templates/create-full/src/sub-components/SpinnerIcon/styles.css +8 -0
- package/templates/create-full/src/sub-components/StarRating/index.tsx +76 -0
- package/templates/create-full/src/sub-components/StarRating/styles.css +40 -0
- package/templates/create-full/src/sub-components/Tag/index.tsx +21 -0
- package/templates/create-full/src/sub-components/Tag/styles.css +30 -0
- package/templates/create-full/src/sub-components/Textarea/index.tsx +45 -0
- package/templates/create-full/src/sub-components/Textarea/styles.css +82 -0
- package/templates/create-full/src/sub-components/Toast/index.tsx +257 -0
- package/templates/create-full/src/sub-components/Toast/styles.css +3 -0
- package/templates/create-full/src/sub-components/Toggle/index.tsx +46 -0
- package/templates/create-full/src/sub-components/Toggle/styles.css +86 -0
- package/templates/create-full/src/sub-components/VariantBadge/index.tsx +153 -0
- package/templates/create-full/src/sub-components/VariantBadge/styles.css +47 -0
- package/templates/create-full/src/sub-components/icons/index.tsx +981 -0
- package/templates/create-full/src/utils/bundle.ts +70 -0
- package/templates/create-full/src/utils/cx.ts +4 -0
- package/templates/create-full/src/utils/fullName.ts +6 -0
- package/templates/create-full/src/utils/media.ts +36 -0
- package/templates/create-full/src/utils/optionPrice.ts +19 -0
- package/templates/create-full/src/utils/optionSet.ts +17 -0
- package/templates/create-full/src/utils/orderStatus.ts +28 -0
- package/templates/create-full/src/utils/pagination.ts +29 -0
- package/templates/create-full/src/utils/toast.ts +5 -0
- package/templates/create-full/tsconfig.json +30 -0
- package/templates/create-full/vite.config.ts +15 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file is auto-generated — do not edit manually.
|
|
2
|
+
export interface Props {
|
|
3
|
+
cookieContent: string;
|
|
4
|
+
buttonText?: string;
|
|
5
|
+
position?: boolean;
|
|
6
|
+
showCloseIcon?: boolean;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
textColor?: string;
|
|
9
|
+
buttonTextColor?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { useState, useEffect } from "preact/hooks";
|
|
2
|
+
import {
|
|
3
|
+
customerStore,
|
|
4
|
+
activateCustomer,
|
|
5
|
+
resendCustomerActivationMail,
|
|
6
|
+
Router,
|
|
7
|
+
} from "@ikas/bp-storefront";
|
|
8
|
+
|
|
9
|
+
import { Props } from "./types";
|
|
10
|
+
import { cx } from "../../utils/cx";
|
|
11
|
+
import { CheckCircleSVG, XCircleSVG } from "../../sub-components/icons";
|
|
12
|
+
import SpinnerIcon from "../../sub-components/SpinnerIcon";
|
|
13
|
+
import Button from "../../sub-components/Button";
|
|
14
|
+
import FormItem from "../../sub-components/FormItem";
|
|
15
|
+
import Input from "../../sub-components/Input";
|
|
16
|
+
|
|
17
|
+
type Status = "loading" | "success" | "error";
|
|
18
|
+
type ResendStatus = "idle" | "sending" | "success" | "error";
|
|
19
|
+
|
|
20
|
+
export function CustomerEmailVerification({
|
|
21
|
+
title = "E-posta Doğrulama",
|
|
22
|
+
successTitle = "E-posta Doğrulandı",
|
|
23
|
+
successMessage = "E-posta adresiniz başarıyla doğrulandı. Artık giriş yapabilirsiniz.",
|
|
24
|
+
errorTitle = "Doğrulama Başarısız",
|
|
25
|
+
errorMessage = "E-posta doğrulama bağlantısı geçersiz veya süresi dolmuş.",
|
|
26
|
+
loadingMessage = "E-posta adresiniz doğrulanıyor, lütfen bekleyin...",
|
|
27
|
+
loginButtonText = "Giriş Yap",
|
|
28
|
+
resendTitle = "Doğrulama E-postasını Tekrar Gönder",
|
|
29
|
+
emailLabel = "E-posta",
|
|
30
|
+
emailPlaceholder = "ornek@email.com",
|
|
31
|
+
resendButtonText = "Tekrar Gönder",
|
|
32
|
+
resendingButtonText = "Gönderiliyor...",
|
|
33
|
+
resendSuccessMessage = "Doğrulama e-postası başarıyla gönderildi.",
|
|
34
|
+
resendErrorMessage = "E-posta gönderilemedi. Lütfen tekrar deneyin.",
|
|
35
|
+
}: Props) {
|
|
36
|
+
const [status, setStatus] = useState<Status>("loading");
|
|
37
|
+
const [email, setEmail] = useState("");
|
|
38
|
+
const [resendStatus, setResendStatus] = useState<ResendStatus>("idle");
|
|
39
|
+
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
let cancelled = false;
|
|
42
|
+
|
|
43
|
+
activateCustomer(customerStore)
|
|
44
|
+
.then((success) => {
|
|
45
|
+
if (!cancelled) setStatus(success ? "success" : "error");
|
|
46
|
+
})
|
|
47
|
+
.catch(() => {
|
|
48
|
+
if (!cancelled) setStatus("error");
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
return () => {
|
|
52
|
+
cancelled = true;
|
|
53
|
+
};
|
|
54
|
+
}, []);
|
|
55
|
+
|
|
56
|
+
const resending = resendStatus === "sending";
|
|
57
|
+
|
|
58
|
+
const handleResend = async () => {
|
|
59
|
+
const trimmed = email.trim();
|
|
60
|
+
if (!trimmed || resending) return;
|
|
61
|
+
setResendStatus("sending");
|
|
62
|
+
|
|
63
|
+
const success = await resendCustomerActivationMail(customerStore, trimmed);
|
|
64
|
+
setResendStatus(success ? "success" : "error");
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return (
|
|
68
|
+
<section className="customer-email-verification">
|
|
69
|
+
<div className="customer-email-verification__wrapper kombos-container">
|
|
70
|
+
<div className="customer-email-verification__container">
|
|
71
|
+
{status === "loading" && (
|
|
72
|
+
<div className="customer-email-verification__state">
|
|
73
|
+
<h1 className="customer-email-verification__title text-xl-medium md:display-xs-medium">
|
|
74
|
+
{title}
|
|
75
|
+
</h1>
|
|
76
|
+
<SpinnerIcon className="customer-email-verification__spinner" />
|
|
77
|
+
<p className="customer-email-verification__state-text text-md-regular">
|
|
78
|
+
{loadingMessage}
|
|
79
|
+
</p>
|
|
80
|
+
</div>
|
|
81
|
+
)}
|
|
82
|
+
|
|
83
|
+
{status === "success" && (
|
|
84
|
+
<div className="customer-email-verification__state">
|
|
85
|
+
<div className="customer-email-verification__icon customer-email-verification__icon--success">
|
|
86
|
+
<CheckCircleSVG />
|
|
87
|
+
</div>
|
|
88
|
+
<h1 className="customer-email-verification__title text-xl-medium md:display-xs-medium">
|
|
89
|
+
{successTitle}
|
|
90
|
+
</h1>
|
|
91
|
+
<p className="customer-email-verification__message text-md-regular">{successMessage}</p>
|
|
92
|
+
<Button
|
|
93
|
+
className="customer-email-verification__action-btn"
|
|
94
|
+
variant="primary"
|
|
95
|
+
size="s"
|
|
96
|
+
onClick={() => Router.navigateToPage("LOGIN")}
|
|
97
|
+
>
|
|
98
|
+
{loginButtonText}
|
|
99
|
+
</Button>
|
|
100
|
+
</div>
|
|
101
|
+
)}
|
|
102
|
+
|
|
103
|
+
{status === "error" && (
|
|
104
|
+
<div className="customer-email-verification__state">
|
|
105
|
+
<div className="customer-email-verification__icon customer-email-verification__icon--error">
|
|
106
|
+
<XCircleSVG />
|
|
107
|
+
</div>
|
|
108
|
+
<h1 className="customer-email-verification__title text-xl-medium md:display-xs-medium">
|
|
109
|
+
{errorTitle}
|
|
110
|
+
</h1>
|
|
111
|
+
<p className="customer-email-verification__message text-md-regular">{errorMessage}</p>
|
|
112
|
+
|
|
113
|
+
<div className="customer-email-verification__resend">
|
|
114
|
+
<h2 className="customer-email-verification__resend-title text-md-semibold md:text-lg-semibold">
|
|
115
|
+
{resendTitle}
|
|
116
|
+
</h2>
|
|
117
|
+
<form
|
|
118
|
+
className="customer-email-verification__resend-form"
|
|
119
|
+
onSubmit={(e) => {
|
|
120
|
+
e.preventDefault();
|
|
121
|
+
handleResend();
|
|
122
|
+
}}
|
|
123
|
+
>
|
|
124
|
+
<FormItem label={emailLabel} htmlFor="customer-email-verification-email">
|
|
125
|
+
<Input
|
|
126
|
+
id="customer-email-verification-email"
|
|
127
|
+
type="email"
|
|
128
|
+
name="email"
|
|
129
|
+
autoComplete="email"
|
|
130
|
+
placeholder={emailPlaceholder}
|
|
131
|
+
value={email}
|
|
132
|
+
onInput={(e) =>
|
|
133
|
+
setEmail((e.target as HTMLInputElement).value)
|
|
134
|
+
}
|
|
135
|
+
/>
|
|
136
|
+
</FormItem>
|
|
137
|
+
<Button
|
|
138
|
+
className="customer-email-verification__resend-btn"
|
|
139
|
+
variant="primary"
|
|
140
|
+
size="s"
|
|
141
|
+
disabled={resending || !email.trim()}
|
|
142
|
+
>
|
|
143
|
+
{resending ? resendingButtonText : resendButtonText}
|
|
144
|
+
</Button>
|
|
145
|
+
</form>
|
|
146
|
+
|
|
147
|
+
{(resendStatus === "success" || resendStatus === "error") && (
|
|
148
|
+
<div
|
|
149
|
+
className={cx(
|
|
150
|
+
"customer-email-verification__banner text-sm-regular",
|
|
151
|
+
`customer-email-verification__banner--${resendStatus}`,
|
|
152
|
+
)}
|
|
153
|
+
>
|
|
154
|
+
{resendStatus === "success"
|
|
155
|
+
? resendSuccessMessage
|
|
156
|
+
: resendErrorMessage}
|
|
157
|
+
</div>
|
|
158
|
+
)}
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
)}
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</section>
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export default CustomerEmailVerification;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
.customer-email-verification {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.customer-email-verification__wrapper {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
padding-top: 1rem;
|
|
10
|
+
padding-bottom: 1rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.customer-email-verification__container {
|
|
14
|
+
width: 100%;
|
|
15
|
+
max-width: 29rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.customer-email-verification__state {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: 1rem;
|
|
23
|
+
text-align: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.customer-email-verification__spinner {
|
|
27
|
+
font-size: 2.5rem;
|
|
28
|
+
color: var(--kombos-gray-500);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.customer-email-verification__state-text {
|
|
32
|
+
color: var(--kombos-gray-500);
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.customer-email-verification__icon {
|
|
37
|
+
font-size: 3rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.customer-email-verification__icon--success {
|
|
41
|
+
color: var(--kombos-success);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.customer-email-verification__icon--error {
|
|
45
|
+
color: var(--kombos-error);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.customer-email-verification__title {
|
|
49
|
+
color: var(--kombos-gray-900);
|
|
50
|
+
margin: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.customer-email-verification__message {
|
|
54
|
+
color: var(--kombos-gray-500);
|
|
55
|
+
margin: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.customer-email-verification__action-btn {
|
|
59
|
+
width: 100%;
|
|
60
|
+
margin-top: 0.5rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.customer-email-verification__resend {
|
|
64
|
+
width: 100%;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
gap: 1rem;
|
|
68
|
+
margin-top: 1rem;
|
|
69
|
+
padding-top: 1.5rem;
|
|
70
|
+
border-top: 1px solid var(--kombos-gray-200);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.customer-email-verification__resend-title {
|
|
74
|
+
color: var(--kombos-gray-900);
|
|
75
|
+
margin: 0;
|
|
76
|
+
text-align: left;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.customer-email-verification__resend-form {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
gap: 1rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.customer-email-verification__resend-btn {
|
|
86
|
+
width: 100%;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.customer-email-verification__banner {
|
|
90
|
+
padding: 0.75rem 1rem;
|
|
91
|
+
border-radius: 6px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.customer-email-verification__banner--success {
|
|
95
|
+
background: rgba(18, 183, 106, 0.08);
|
|
96
|
+
border: 1px solid var(--kombos-success);
|
|
97
|
+
color: var(--kombos-success);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.customer-email-verification__banner--error {
|
|
101
|
+
background: rgba(255, 60, 72, 0.08);
|
|
102
|
+
border: 1px solid var(--kombos-error);
|
|
103
|
+
color: var(--kombos-error);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@media (min-width: 768px) {
|
|
107
|
+
.customer-email-verification__wrapper {
|
|
108
|
+
padding-top: 1.5rem;
|
|
109
|
+
padding-bottom: 1.5rem;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@media (min-width: 1024px) {
|
|
114
|
+
.customer-email-verification__wrapper {
|
|
115
|
+
padding-top: 2rem;
|
|
116
|
+
padding-bottom: 2rem;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// This file is auto-generated — do not edit manually.
|
|
2
|
+
export interface Props {
|
|
3
|
+
title?: string;
|
|
4
|
+
successTitle?: string;
|
|
5
|
+
successMessage?: string;
|
|
6
|
+
errorTitle?: string;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
loadingMessage?: string;
|
|
9
|
+
loginButtonText?: string;
|
|
10
|
+
resendTitle?: string;
|
|
11
|
+
emailLabel?: string;
|
|
12
|
+
emailPlaceholder?: string;
|
|
13
|
+
resendButtonText?: string;
|
|
14
|
+
resendingButtonText?: string;
|
|
15
|
+
resendSuccessMessage?: string;
|
|
16
|
+
resendErrorMessage?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { getDefaultSrc } from "@ikas/bp-storefront";
|
|
2
|
+
|
|
3
|
+
import { Props } from "./types";
|
|
4
|
+
|
|
5
|
+
export function FeatureItem({ image, text }: Props) {
|
|
6
|
+
const src = image ? getDefaultSrc(image) : undefined;
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<div className="kombos-feature-item">
|
|
10
|
+
{src && (
|
|
11
|
+
<img
|
|
12
|
+
className="kombos-feature-item__icon"
|
|
13
|
+
src={src}
|
|
14
|
+
alt={image?.altText || ""}
|
|
15
|
+
/>
|
|
16
|
+
)}
|
|
17
|
+
{text && (
|
|
18
|
+
<div
|
|
19
|
+
className="kombos-feature-item__text text-sm-medium"
|
|
20
|
+
dangerouslySetInnerHTML={{ __html: text }}
|
|
21
|
+
/>
|
|
22
|
+
)}
|
|
23
|
+
</div>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default FeatureItem;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.kombos-feature-item {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 1.5rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.kombos-feature-item__icon {
|
|
9
|
+
width: 2rem;
|
|
10
|
+
height: 2rem;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
object-fit: contain;
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.kombos-feature-item__text {
|
|
17
|
+
color: var(--kombos-gray-900);
|
|
18
|
+
text-align: center;
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// import { IkasComponentRenderer } from "@ikas/bp-storefront";
|
|
2
|
+
|
|
3
|
+
import { IkasComponentRenderer } from "@ikas/bp-storefront";
|
|
4
|
+
import { Props } from "./types";
|
|
5
|
+
|
|
6
|
+
export function Features(props: Props) {
|
|
7
|
+
const { backgroundColor, components } = props;
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<section
|
|
11
|
+
className="kombos-features"
|
|
12
|
+
style={backgroundColor ? { backgroundColor } : undefined}
|
|
13
|
+
>
|
|
14
|
+
<div className="kombos-container kombos-features__container">
|
|
15
|
+
<IkasComponentRenderer
|
|
16
|
+
id="features"
|
|
17
|
+
components={components}
|
|
18
|
+
parentProps={props}
|
|
19
|
+
/>
|
|
20
|
+
</div>
|
|
21
|
+
</section>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default Features;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.kombos-features {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.kombos-features__container {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
gap: 1.5rem;
|
|
10
|
+
padding: 2rem 1rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.kombos-features__container > * > * > * {
|
|
14
|
+
width: calc(50% - 0.75rem);
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media (min-width: 640px) {
|
|
19
|
+
.kombos-features__container > * > * > * {
|
|
20
|
+
width: calc(33.33% - 1rem);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media (min-width: 768px) {
|
|
25
|
+
.kombos-features__container {
|
|
26
|
+
padding: 3rem 2rem;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@media (min-width: 1024px) {
|
|
31
|
+
.kombos-features__container {
|
|
32
|
+
padding: 3rem 4.5rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.kombos-features__container > * > * > * {
|
|
36
|
+
width: auto;
|
|
37
|
+
flex: 1 0 calc(16.66% - 1.25rem);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IkasNavigationLink,
|
|
3
|
+
IkasComponentRenderer,
|
|
4
|
+
createMediaSrcset,
|
|
5
|
+
getDefaultSrc,
|
|
6
|
+
} from "@ikas/bp-storefront";
|
|
7
|
+
import { Props } from "./types";
|
|
8
|
+
import { IkasLogoSVG } from "../../sub-components/icons";
|
|
9
|
+
|
|
10
|
+
export function Footer(props: Props) {
|
|
11
|
+
const {
|
|
12
|
+
logo,
|
|
13
|
+
description,
|
|
14
|
+
copyrightText = "© 2026 ikas Mağazası. Tüm Hakları Saklıdır",
|
|
15
|
+
linkColor,
|
|
16
|
+
linkHoverColor,
|
|
17
|
+
contactTitle = "İletişim Bilgileri",
|
|
18
|
+
contactEmail,
|
|
19
|
+
contactPhone,
|
|
20
|
+
footerLinks,
|
|
21
|
+
socialMediaIcons,
|
|
22
|
+
} = props;
|
|
23
|
+
|
|
24
|
+
const columns = footerLinks?.links ?? [];
|
|
25
|
+
const hasContact = !!(contactEmail || contactPhone);
|
|
26
|
+
const hasSocials = socialMediaIcons?.length > 0;
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<footer
|
|
30
|
+
className="kombos-footer"
|
|
31
|
+
style={{
|
|
32
|
+
...(linkColor ? { "--footer-link-color": linkColor } : {}),
|
|
33
|
+
...(linkHoverColor
|
|
34
|
+
? { "--footer-link-hover-color": linkHoverColor }
|
|
35
|
+
: {}),
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
<div className="kombos-footer__wrapper kombos-container">
|
|
39
|
+
<div className="kombos-footer__top">
|
|
40
|
+
{/* Brand column */}
|
|
41
|
+
<div className="kombos-footer__brand">
|
|
42
|
+
{logo && (
|
|
43
|
+
<div className="kombos-footer__logo-wrap">
|
|
44
|
+
<img
|
|
45
|
+
src={getDefaultSrc(logo)}
|
|
46
|
+
srcSet={createMediaSrcset(logo)}
|
|
47
|
+
sizes="96px"
|
|
48
|
+
alt={logo?.altText || "Logo"}
|
|
49
|
+
className="kombos-footer__logo-img"
|
|
50
|
+
loading="lazy"
|
|
51
|
+
decoding="async"
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
54
|
+
)}
|
|
55
|
+
|
|
56
|
+
{description && (
|
|
57
|
+
<div
|
|
58
|
+
className="kombos-footer__desc text-sm-regular"
|
|
59
|
+
dangerouslySetInnerHTML={{ __html: description }}
|
|
60
|
+
/>
|
|
61
|
+
)}
|
|
62
|
+
|
|
63
|
+
{hasSocials && (
|
|
64
|
+
<div className="kombos-footer__socials">
|
|
65
|
+
<IkasComponentRenderer
|
|
66
|
+
id="footer-socials"
|
|
67
|
+
components={socialMediaIcons}
|
|
68
|
+
parentProps={props}
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
)}
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
{/* Link columns */}
|
|
75
|
+
{(columns.length > 0 || hasContact) && (
|
|
76
|
+
<div className="kombos-footer__columns">
|
|
77
|
+
{columns.map((column: IkasNavigationLink, i: number) => (
|
|
78
|
+
<div key={i} className="kombos-footer__col">
|
|
79
|
+
<p className="kombos-footer__col-title text-sm-medium">
|
|
80
|
+
{column.label}
|
|
81
|
+
</p>
|
|
82
|
+
{column.subLinks?.length > 0 && (
|
|
83
|
+
<nav className="kombos-footer__col-links">
|
|
84
|
+
{column.subLinks.map(
|
|
85
|
+
(link: IkasNavigationLink, j: number) => (
|
|
86
|
+
<a
|
|
87
|
+
key={j}
|
|
88
|
+
href={link.href}
|
|
89
|
+
className="kombos-footer__col-link text-sm-regular"
|
|
90
|
+
target={link.openInNewTab ? "_blank" : undefined}
|
|
91
|
+
rel={
|
|
92
|
+
link.openInNewTab
|
|
93
|
+
? "noopener noreferrer"
|
|
94
|
+
: undefined
|
|
95
|
+
}
|
|
96
|
+
>
|
|
97
|
+
{link.label}
|
|
98
|
+
</a>
|
|
99
|
+
),
|
|
100
|
+
)}
|
|
101
|
+
</nav>
|
|
102
|
+
)}
|
|
103
|
+
</div>
|
|
104
|
+
))}
|
|
105
|
+
|
|
106
|
+
{/* Contact column */}
|
|
107
|
+
{hasContact && (
|
|
108
|
+
<div className="kombos-footer__col">
|
|
109
|
+
<p className="kombos-footer__col-title text-sm-medium">
|
|
110
|
+
{contactTitle}
|
|
111
|
+
</p>
|
|
112
|
+
<div className="kombos-footer__col-links">
|
|
113
|
+
{contactEmail && (
|
|
114
|
+
<a
|
|
115
|
+
href={`mailto:${contactEmail}`}
|
|
116
|
+
className="kombos-footer__col-link text-sm-regular"
|
|
117
|
+
>
|
|
118
|
+
{contactEmail}
|
|
119
|
+
</a>
|
|
120
|
+
)}
|
|
121
|
+
{contactPhone && (
|
|
122
|
+
<a
|
|
123
|
+
href={`tel:${contactPhone.replace(/\s/g, "")}`}
|
|
124
|
+
className="kombos-footer__col-link text-sm-regular"
|
|
125
|
+
>
|
|
126
|
+
{contactPhone}
|
|
127
|
+
</a>
|
|
128
|
+
)}
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
)}
|
|
132
|
+
</div>
|
|
133
|
+
)}
|
|
134
|
+
</div>
|
|
135
|
+
|
|
136
|
+
{/* Bottom bar */}
|
|
137
|
+
<div className="kombos-footer__bottom">
|
|
138
|
+
<div
|
|
139
|
+
className="kombos-footer__copyright text-xs-regular"
|
|
140
|
+
dangerouslySetInnerHTML={{ __html: copyrightText }}
|
|
141
|
+
/>
|
|
142
|
+
<div className="kombos-footer__badge">
|
|
143
|
+
<IkasLogoSVG className="kombos-footer__badge-logo" />
|
|
144
|
+
<span className="kombos-footer__badge-text text-xs-medium">
|
|
145
|
+
E-Ticaret Altyapısı ile Hazırlanmıştır.
|
|
146
|
+
</span>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
</footer>
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export default Footer;
|