@ikas/component-cli 0.132.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +43 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/create.d.ts +8 -3
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +8 -227
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +134 -32
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/proxy.js +1 -1
- package/dist/commands/proxy.js.map +1 -1
- package/dist/utils/component-helpers.d.ts +13 -0
- package/dist/utils/component-helpers.d.ts.map +1 -1
- package/dist/utils/component-helpers.js +52 -0
- package/dist/utils/component-helpers.js.map +1 -1
- package/dist/utils/websocket-server.d.ts +12 -0
- package/dist/utils/websocket-server.d.ts.map +1 -1
- package/dist/utils/websocket-server.js +25 -0
- package/dist/utils/websocket-server.js.map +1 -1
- package/package.json +4 -5
- package/bin/create-ikas-component.js +0 -8
- package/templates/create/README.md +0 -50
- package/templates/create/claude-md +0 -275
- package/templates/create/cursorrules +0 -123
- package/templates/create/gitignore +0 -6
- package/templates/create/ikas.config.json +0 -95
- package/templates/create/mcp.json +0 -10
- package/templates/create/package.json +0 -22
- package/templates/create/src/components/ExampleComponent/index.tsx +0 -22
- package/templates/create/src/components/ExampleComponent/styles.css +0 -36
- package/templates/create/src/components/ExampleComponent/types.ts +0 -7
- package/templates/create/src/components/ExampleSection/index.tsx +0 -14
- package/templates/create/src/components/ExampleSection/styles.css +0 -29
- package/templates/create/src/components/ExampleSection/types.ts +0 -6
- package/templates/create/src/components/index.ts +0 -2
- package/templates/create/src/global-types.ts +0 -5
- package/templates/create/src/global.css +0 -29
- package/templates/create/src/ikas-component-utils.d.ts +0 -3
- package/templates/create/tsconfig.json +0 -30
- package/templates/create/vite.config.ts +0 -15
- package/templates/create-full/README.md +0 -78
- package/templates/create-full/claude-md +0 -752
- package/templates/create-full/cursorrules +0 -117
- package/templates/create-full/gitignore +0 -4
- package/templates/create-full/ikas.config.json +0 -5009
- package/templates/create-full/mcp.json +0 -10
- package/templates/create-full/package.json +0 -23
- package/templates/create-full/src/components/AccountAddresses/components/AddressCard/index.tsx +0 -55
- package/templates/create-full/src/components/AccountAddresses/components/AddressCard/styles.css +0 -46
- package/templates/create-full/src/components/AccountAddresses/components/AddressModal/index.tsx +0 -298
- package/templates/create-full/src/components/AccountAddresses/components/AddressModal/styles.css +0 -23
- package/templates/create-full/src/components/AccountAddresses/index.tsx +0 -127
- package/templates/create-full/src/components/AccountAddresses/styles.css +0 -41
- package/templates/create-full/src/components/AccountAddresses/types.ts +0 -15
- package/templates/create-full/src/components/AccountFavorites/index.tsx +0 -82
- package/templates/create-full/src/components/AccountFavorites/styles.css +0 -52
- package/templates/create-full/src/components/AccountFavorites/types.ts +0 -7
- package/templates/create-full/src/components/AccountInfo/components/AccountSidebar/index.tsx +0 -171
- package/templates/create-full/src/components/AccountInfo/components/AccountSidebar/styles.css +0 -144
- package/templates/create-full/src/components/AccountInfo/index.tsx +0 -91
- package/templates/create-full/src/components/AccountInfo/styles.css +0 -35
- package/templates/create-full/src/components/AccountInfo/types.ts +0 -9
- package/templates/create-full/src/components/AccountInfoContent/index.tsx +0 -134
- package/templates/create-full/src/components/AccountInfoContent/styles.css +0 -57
- package/templates/create-full/src/components/AccountInfoContent/types.ts +0 -8
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderHeader/index.tsx +0 -78
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderHeader/styles.css +0 -46
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderItemRow/index.tsx +0 -20
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderItemRow/styles.css +0 -16
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderLineItemDisplay/index.tsx +0 -112
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderLineItemDisplay/styles.css +0 -86
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderSidebar/index.tsx +0 -195
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderSidebar/styles.css +0 -93
- package/templates/create-full/src/components/AccountOrderDetail/components/PackageGroup/index.tsx +0 -156
- package/templates/create-full/src/components/AccountOrderDetail/components/PackageGroup/styles.css +0 -100
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnItemRow/index.tsx +0 -56
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnItemRow/styles.css +0 -57
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnView/index.tsx +0 -159
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnView/styles.css +0 -29
- package/templates/create-full/src/components/AccountOrderDetail/index.tsx +0 -244
- package/templates/create-full/src/components/AccountOrderDetail/styles.css +0 -125
- package/templates/create-full/src/components/AccountOrderDetail/types.ts +0 -32
- package/templates/create-full/src/components/AccountOrders/components/OrderCard/index.tsx +0 -122
- package/templates/create-full/src/components/AccountOrders/components/OrderCard/styles.css +0 -114
- package/templates/create-full/src/components/AccountOrders/index.tsx +0 -105
- package/templates/create-full/src/components/AccountOrders/styles.css +0 -36
- package/templates/create-full/src/components/AccountOrders/types.ts +0 -11
- package/templates/create-full/src/components/Announcement/index.tsx +0 -11
- package/templates/create-full/src/components/Announcement/styles.css +0 -4
- package/templates/create-full/src/components/Announcement/types.ts +0 -4
- package/templates/create-full/src/components/Announcements/index.tsx +0 -91
- package/templates/create-full/src/components/Announcements/styles.css +0 -46
- package/templates/create-full/src/components/Announcements/types.ts +0 -8
- package/templates/create-full/src/components/BlogHome/components/BlogCard/index.tsx +0 -89
- package/templates/create-full/src/components/BlogHome/components/BlogCard/styles.css +0 -121
- package/templates/create-full/src/components/BlogHome/index.tsx +0 -124
- package/templates/create-full/src/components/BlogHome/styles.css +0 -118
- package/templates/create-full/src/components/BlogHome/types.ts +0 -15
- package/templates/create-full/src/components/BlogPost/index.tsx +0 -128
- package/templates/create-full/src/components/BlogPost/styles.css +0 -120
- package/templates/create-full/src/components/BlogPost/types.ts +0 -12
- package/templates/create-full/src/components/CardProductName/index.tsx +0 -25
- package/templates/create-full/src/components/CardProductName/styles.css +0 -22
- package/templates/create-full/src/components/CardProductName/types.ts +0 -7
- package/templates/create-full/src/components/CardProductPrice/index.tsx +0 -30
- package/templates/create-full/src/components/CardProductPrice/styles.css +0 -13
- package/templates/create-full/src/components/CardProductPrice/types.ts +0 -6
- package/templates/create-full/src/components/CardProductVariants/index.tsx +0 -10
- package/templates/create-full/src/components/CardProductVariants/styles.css +0 -1
- package/templates/create-full/src/components/CardProductVariants/types.ts +0 -6
- package/templates/create-full/src/components/CartPage/components/CouponCode/index.tsx +0 -108
- package/templates/create-full/src/components/CartPage/components/CouponCode/styles.css +0 -68
- package/templates/create-full/src/components/CartPage/components/EmptyState/index.tsx +0 -31
- package/templates/create-full/src/components/CartPage/components/EmptyState/styles.css +0 -18
- package/templates/create-full/src/components/CartPage/components/OrderSummary/index.tsx +0 -106
- package/templates/create-full/src/components/CartPage/components/OrderSummary/styles.css +0 -70
- package/templates/create-full/src/components/CartPage/index.tsx +0 -107
- package/templates/create-full/src/components/CartPage/styles.css +0 -54
- package/templates/create-full/src/components/CartPage/types.ts +0 -16
- package/templates/create-full/src/components/CategoryImageItem/components/Card/index.tsx +0 -64
- package/templates/create-full/src/components/CategoryImageItem/components/Card/styles.css +0 -56
- package/templates/create-full/src/components/CategoryImageItem/index.tsx +0 -64
- package/templates/create-full/src/components/CategoryImageItem/styles.css +0 -10
- package/templates/create-full/src/components/CategoryImageItem/types.ts +0 -16
- package/templates/create-full/src/components/CategoryImages/index.tsx +0 -62
- package/templates/create-full/src/components/CategoryImages/styles.css +0 -38
- package/templates/create-full/src/components/CategoryImages/types.ts +0 -11
- package/templates/create-full/src/components/CategoryList/components/CategoryListControls/index.tsx +0 -129
- package/templates/create-full/src/components/CategoryList/components/CategoryListControls/styles.css +0 -99
- package/templates/create-full/src/components/CategoryList/components/FilterBoxValues/index.tsx +0 -42
- package/templates/create-full/src/components/CategoryList/components/FilterBoxValues/styles.css +0 -27
- package/templates/create-full/src/components/CategoryList/components/FilterCategoryList/index.tsx +0 -43
- package/templates/create-full/src/components/CategoryList/components/FilterCategoryList/styles.css +0 -20
- package/templates/create-full/src/components/CategoryList/components/FilterGroupValues/index.tsx +0 -114
- package/templates/create-full/src/components/CategoryList/components/FilterGroupValues/styles.css +0 -1
- package/templates/create-full/src/components/CategoryList/components/FilterListValues/index.tsx +0 -54
- package/templates/create-full/src/components/CategoryList/components/FilterListValues/styles.css +0 -22
- package/templates/create-full/src/components/CategoryList/components/FilterRangeListValues/index.tsx +0 -50
- package/templates/create-full/src/components/CategoryList/components/FilterRangeListValues/styles.css +0 -25
- package/templates/create-full/src/components/CategoryList/components/FilterRangeValues/index.tsx +0 -189
- package/templates/create-full/src/components/CategoryList/components/FilterRangeValues/styles.css +0 -89
- package/templates/create-full/src/components/CategoryList/components/FilterSidebar/index.tsx +0 -92
- package/templates/create-full/src/components/CategoryList/components/FilterSidebar/styles.css +0 -27
- package/templates/create-full/src/components/CategoryList/components/FilterSwatchValues/index.tsx +0 -63
- package/templates/create-full/src/components/CategoryList/components/FilterSwatchValues/styles.css +0 -48
- package/templates/create-full/src/components/CategoryList/components/MobileFilterModal/index.tsx +0 -146
- package/templates/create-full/src/components/CategoryList/components/MobileFilterModal/styles.css +0 -133
- package/templates/create-full/src/components/CategoryList/index.tsx +0 -333
- package/templates/create-full/src/components/CategoryList/styles.css +0 -110
- package/templates/create-full/src/components/CategoryList/types.ts +0 -30
- package/templates/create-full/src/components/CollapsibleContent/index.tsx +0 -23
- package/templates/create-full/src/components/CollapsibleContent/styles.css +0 -11
- package/templates/create-full/src/components/CollapsibleContent/types.ts +0 -6
- package/templates/create-full/src/components/CookieBar/index.tsx +0 -78
- package/templates/create-full/src/components/CookieBar/styles.css +0 -111
- package/templates/create-full/src/components/CookieBar/types.ts +0 -10
- package/templates/create-full/src/components/CustomerEmailVerification/index.tsx +0 -168
- package/templates/create-full/src/components/CustomerEmailVerification/styles.css +0 -118
- package/templates/create-full/src/components/CustomerEmailVerification/types.ts +0 -17
- package/templates/create-full/src/components/FeatureItem/index.tsx +0 -27
- package/templates/create-full/src/components/FeatureItem/styles.css +0 -19
- package/templates/create-full/src/components/FeatureItem/types.ts +0 -7
- package/templates/create-full/src/components/Features/index.tsx +0 -25
- package/templates/create-full/src/components/Features/styles.css +0 -39
- package/templates/create-full/src/components/Features/types.ts +0 -5
- package/templates/create-full/src/components/Footer/index.tsx +0 -154
- package/templates/create-full/src/components/Footer/styles.css +0 -175
- package/templates/create-full/src/components/Footer/types.ts +0 -15
- package/templates/create-full/src/components/ForgotPassword/components/ForgotPasswordForm/index.tsx +0 -129
- package/templates/create-full/src/components/ForgotPassword/components/ForgotPasswordForm/styles.css +0 -0
- package/templates/create-full/src/components/ForgotPassword/index.tsx +0 -30
- package/templates/create-full/src/components/ForgotPassword/styles.css +0 -85
- package/templates/create-full/src/components/ForgotPassword/types.ts +0 -13
- package/templates/create-full/src/components/Header/index.tsx +0 -46
- package/templates/create-full/src/components/Header/styles.css +0 -4
- package/templates/create-full/src/components/Header/types.ts +0 -4
- package/templates/create-full/src/components/HeroSlider/index.tsx +0 -110
- package/templates/create-full/src/components/HeroSlider/styles.css +0 -129
- package/templates/create-full/src/components/HeroSlider/types.ts +0 -9
- package/templates/create-full/src/components/HeroSliderItem/index.tsx +0 -231
- package/templates/create-full/src/components/HeroSliderItem/styles.css +0 -152
- package/templates/create-full/src/components/HeroSliderItem/types.ts +0 -34
- package/templates/create-full/src/components/Login/components/LoginForm/index.tsx +0 -181
- package/templates/create-full/src/components/Login/components/LoginForm/styles.css +0 -0
- package/templates/create-full/src/components/Login/index.tsx +0 -37
- package/templates/create-full/src/components/Login/styles.css +0 -129
- package/templates/create-full/src/components/Login/types.ts +0 -18
- package/templates/create-full/src/components/Navbar/components/CartSidebar/index.tsx +0 -203
- package/templates/create-full/src/components/Navbar/components/CartSidebar/styles.css +0 -175
- package/templates/create-full/src/components/Navbar/components/MobileMenu/index.tsx +0 -198
- package/templates/create-full/src/components/Navbar/components/MobileMenu/styles.css +0 -122
- package/templates/create-full/src/components/Navbar/components/NavItem/index.tsx +0 -65
- package/templates/create-full/src/components/Navbar/components/SearchModal/index.tsx +0 -339
- package/templates/create-full/src/components/Navbar/components/SearchModal/styles.css +0 -191
- package/templates/create-full/src/components/Navbar/index.tsx +0 -254
- package/templates/create-full/src/components/Navbar/styles.css +0 -254
- package/templates/create-full/src/components/Navbar/types.ts +0 -42
- package/templates/create-full/src/components/NotFound/index.tsx +0 -39
- package/templates/create-full/src/components/NotFound/styles.css +0 -46
- package/templates/create-full/src/components/NotFound/types.ts +0 -8
- package/templates/create-full/src/components/ProductDetail/components/ProductGallery/index.tsx +0 -316
- package/templates/create-full/src/components/ProductDetail/components/ProductGallery/styles.css +0 -213
- package/templates/create-full/src/components/ProductDetail/index.tsx +0 -92
- package/templates/create-full/src/components/ProductDetail/styles.css +0 -58
- package/templates/create-full/src/components/ProductDetail/types.ts +0 -12
- package/templates/create-full/src/components/ProductDetailAddToCart/components/PayWithIkas/index.tsx +0 -34
- package/templates/create-full/src/components/ProductDetailAddToCart/components/PayWithIkas/styles.css +0 -4
- package/templates/create-full/src/components/ProductDetailAddToCart/index.tsx +0 -146
- package/templates/create-full/src/components/ProductDetailAddToCart/styles.css +0 -27
- package/templates/create-full/src/components/ProductDetailAddToCart/types.ts +0 -18
- package/templates/create-full/src/components/ProductDetailBundleFurniture/components/BundleFurnitureRow/index.tsx +0 -164
- package/templates/create-full/src/components/ProductDetailBundleFurniture/components/BundleFurnitureSection/index.tsx +0 -134
- package/templates/create-full/src/components/ProductDetailBundleFurniture/components/BundleFurnitureSection/styles.css +0 -188
- package/templates/create-full/src/components/ProductDetailBundleFurniture/index.tsx +0 -61
- package/templates/create-full/src/components/ProductDetailBundleFurniture/styles.css +0 -12
- package/templates/create-full/src/components/ProductDetailBundleFurniture/types.ts +0 -21
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleProductItem/index.tsx +0 -169
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleProductItem/styles.css +0 -141
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleSkeletonLoading/index.tsx +0 -35
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleSkeletonLoading/styles.css +0 -85
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureRow/index.tsx +0 -51
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureRow/styles.css +0 -30
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureView/index.tsx +0 -54
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureView/styles.css +0 -22
- package/templates/create-full/src/components/ProductDetailBundleProduct/index.tsx +0 -101
- package/templates/create-full/src/components/ProductDetailBundleProduct/styles.css +0 -20
- package/templates/create-full/src/components/ProductDetailBundleProduct/types.ts +0 -18
- package/templates/create-full/src/components/ProductDetailDescription/index.tsx +0 -56
- package/templates/create-full/src/components/ProductDetailDescription/styles.css +0 -21
- package/templates/create-full/src/components/ProductDetailDescription/types.ts +0 -13
- package/templates/create-full/src/components/ProductDetailFeatureItem/index.tsx +0 -28
- package/templates/create-full/src/components/ProductDetailFeatureItem/styles.css +0 -22
- package/templates/create-full/src/components/ProductDetailFeatureItem/types.ts +0 -7
- package/templates/create-full/src/components/ProductDetailFeatures/index.tsx +0 -40
- package/templates/create-full/src/components/ProductDetailFeatures/styles.css +0 -17
- package/templates/create-full/src/components/ProductDetailFeatures/types.ts +0 -10
- package/templates/create-full/src/components/ProductDetailNameFavorite/index.tsx +0 -66
- package/templates/create-full/src/components/ProductDetailNameFavorite/styles.css +0 -45
- package/templates/create-full/src/components/ProductDetailNameFavorite/types.ts +0 -11
- package/templates/create-full/src/components/ProductDetailOffer/components/OfferCard/index.tsx +0 -209
- package/templates/create-full/src/components/ProductDetailOffer/components/OfferCard/styles.css +0 -146
- package/templates/create-full/src/components/ProductDetailOffer/components/OfferSummary/index.tsx +0 -175
- package/templates/create-full/src/components/ProductDetailOffer/index.tsx +0 -199
- package/templates/create-full/src/components/ProductDetailOffer/styles.css +0 -211
- package/templates/create-full/src/components/ProductDetailOffer/types.ts +0 -24
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionCheckbox/index.tsx +0 -52
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionCheckbox/styles.css +0 -19
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceBox/index.tsx +0 -60
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceBox/styles.css +0 -38
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSelect/index.tsx +0 -102
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSelect/styles.css +0 -34
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSwatch/index.tsx +0 -121
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSwatch/styles.css +0 -87
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/index.tsx +0 -57
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionColorPicker/index.tsx +0 -54
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionColorPicker/styles.css +0 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionDatePicker/index.tsx +0 -124
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionDatePicker/styles.css +0 -1
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionFile/index.tsx +0 -217
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionFile/styles.css +0 -87
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionRenderer/index.tsx +0 -133
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionText/index.tsx +0 -60
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionText/styles.css +0 -1
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionTextarea/index.tsx +0 -74
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionTextarea/styles.css +0 -10
- package/templates/create-full/src/components/ProductDetailOptionSet/index.tsx +0 -99
- package/templates/create-full/src/components/ProductDetailOptionSet/styles.css +0 -30
- package/templates/create-full/src/components/ProductDetailOptionSet/types.ts +0 -21
- package/templates/create-full/src/components/ProductDetailPrices/index.tsx +0 -62
- package/templates/create-full/src/components/ProductDetailPrices/styles.css +0 -32
- package/templates/create-full/src/components/ProductDetailPrices/types.ts +0 -10
- package/templates/create-full/src/components/ProductDetailProductGroup/index.tsx +0 -74
- package/templates/create-full/src/components/ProductDetailProductGroup/styles.css +0 -33
- package/templates/create-full/src/components/ProductDetailProductGroup/types.ts +0 -10
- package/templates/create-full/src/components/ProductDetailReviews/index.tsx +0 -205
- package/templates/create-full/src/components/ProductDetailReviews/styles.css +0 -43
- package/templates/create-full/src/components/ProductDetailReviews/types.ts +0 -19
- package/templates/create-full/src/components/ProductDetailSku/index.tsx +0 -38
- package/templates/create-full/src/components/ProductDetailSku/styles.css +0 -16
- package/templates/create-full/src/components/ProductDetailSku/types.ts +0 -11
- package/templates/create-full/src/components/ProductDetailVariant/index.tsx +0 -38
- package/templates/create-full/src/components/ProductDetailVariant/styles.css +0 -14
- package/templates/create-full/src/components/ProductDetailVariant/types.ts +0 -12
- package/templates/create-full/src/components/ProductSlider/index.tsx +0 -151
- package/templates/create-full/src/components/ProductSlider/styles.css +0 -105
- package/templates/create-full/src/components/ProductSlider/types.ts +0 -17
- package/templates/create-full/src/components/RecoverPassword/components/RecoverPasswordForm/index.tsx +0 -133
- package/templates/create-full/src/components/RecoverPassword/components/RecoverPasswordForm/styles.css +0 -0
- package/templates/create-full/src/components/RecoverPassword/index.tsx +0 -30
- package/templates/create-full/src/components/RecoverPassword/styles.css +0 -93
- package/templates/create-full/src/components/RecoverPassword/types.ts +0 -13
- package/templates/create-full/src/components/Register/components/RegisterForm/index.tsx +0 -326
- package/templates/create-full/src/components/Register/components/RegisterForm/styles.css +0 -0
- package/templates/create-full/src/components/Register/index.tsx +0 -30
- package/templates/create-full/src/components/Register/styles.css +0 -152
- package/templates/create-full/src/components/Register/types.ts +0 -27
- package/templates/create-full/src/components/RichText/index.tsx +0 -25
- package/templates/create-full/src/components/RichText/styles.css +0 -51
- package/templates/create-full/src/components/RichText/types.ts +0 -5
- package/templates/create-full/src/components/SocialMediaIcon/index.tsx +0 -26
- package/templates/create-full/src/components/SocialMediaIcon/styles.css +0 -17
- package/templates/create-full/src/components/SocialMediaIcon/types.ts +0 -7
- package/templates/create-full/src/components/index.ts +0 -50
- package/templates/create-full/src/global-types.ts +0 -11
- package/templates/create-full/src/global.css +0 -598
- package/templates/create-full/src/hooks/useBundleProducts.ts +0 -75
- package/templates/create-full/src/hooks/useColumnPreference.ts +0 -26
- package/templates/create-full/src/hooks/useInfiniteScroll.ts +0 -49
- package/templates/create-full/src/hooks/usePageTracking.ts +0 -56
- package/templates/create-full/src/hooks/usePayWithIkas.ts +0 -114
- package/templates/create-full/src/hooks/useRedirectIfLoggedIn.ts +0 -35
- package/templates/create-full/src/hooks/useScrollLock.ts +0 -19
- package/templates/create-full/src/hooks/useToast.ts +0 -27
- package/templates/create-full/src/ikas-component-utils.d.ts +0 -3
- package/templates/create-full/src/sub-components/Badge/index.tsx +0 -208
- package/templates/create-full/src/sub-components/Badge/styles.css +0 -129
- package/templates/create-full/src/sub-components/Breadcrumb/index.tsx +0 -57
- package/templates/create-full/src/sub-components/Breadcrumb/styles.css +0 -49
- package/templates/create-full/src/sub-components/BundleMedia/index.tsx +0 -72
- package/templates/create-full/src/sub-components/BundleQuantityBox/index.tsx +0 -73
- package/templates/create-full/src/sub-components/BundleQuantityBox/styles.css +0 -43
- package/templates/create-full/src/sub-components/Button/index.tsx +0 -52
- package/templates/create-full/src/sub-components/Button/styles.css +0 -114
- package/templates/create-full/src/sub-components/CartItem/components/BundleProductItem/index.tsx +0 -59
- package/templates/create-full/src/sub-components/CartItem/components/BundleProductItem/styles.css +0 -24
- package/templates/create-full/src/sub-components/CartItem/components/BundleProducts/index.tsx +0 -55
- package/templates/create-full/src/sub-components/CartItem/components/BundleProducts/styles.css +0 -30
- package/templates/create-full/src/sub-components/CartItem/components/ItemOptions/index.tsx +0 -31
- package/templates/create-full/src/sub-components/CartItem/components/ItemOptions/styles.css +0 -6
- package/templates/create-full/src/sub-components/CartItem/components/OptionValueDisplay/index.tsx +0 -79
- package/templates/create-full/src/sub-components/CartItem/components/OptionValueDisplay/styles.css +0 -28
- package/templates/create-full/src/sub-components/CartItem/index.tsx +0 -216
- package/templates/create-full/src/sub-components/CartItem/styles.css +0 -170
- package/templates/create-full/src/sub-components/Checkbox/index.tsx +0 -42
- package/templates/create-full/src/sub-components/Checkbox/styles.css +0 -65
- package/templates/create-full/src/sub-components/CollapsibleGroup/index.tsx +0 -52
- package/templates/create-full/src/sub-components/CollapsibleGroup/styles.css +0 -51
- package/templates/create-full/src/sub-components/ColorInput/index.tsx +0 -33
- package/templates/create-full/src/sub-components/ColorInput/styles.css +0 -53
- package/templates/create-full/src/sub-components/ConfirmModal/index.tsx +0 -60
- package/templates/create-full/src/sub-components/ConfirmModal/styles.css +0 -20
- package/templates/create-full/src/sub-components/FormItem/index.tsx +0 -66
- package/templates/create-full/src/sub-components/FormItem/styles.css +0 -38
- package/templates/create-full/src/sub-components/ImagePreviewModal/index.tsx +0 -55
- package/templates/create-full/src/sub-components/ImagePreviewModal/styles.css +0 -50
- package/templates/create-full/src/sub-components/Input/index.tsx +0 -69
- package/templates/create-full/src/sub-components/Input/styles.css +0 -162
- package/templates/create-full/src/sub-components/Modal/index.tsx +0 -120
- package/templates/create-full/src/sub-components/Modal/styles.css +0 -70
- package/templates/create-full/src/sub-components/PageLoader/index.tsx +0 -14
- package/templates/create-full/src/sub-components/PageLoader/styles.css +0 -12
- package/templates/create-full/src/sub-components/Pagination/index.tsx +0 -107
- package/templates/create-full/src/sub-components/Pagination/styles.css +0 -88
- package/templates/create-full/src/sub-components/ProductCard/index.tsx +0 -276
- package/templates/create-full/src/sub-components/ProductCard/styles.css +0 -99
- package/templates/create-full/src/sub-components/QuantitySelector/index.tsx +0 -41
- package/templates/create-full/src/sub-components/QuantitySelector/styles.css +0 -51
- package/templates/create-full/src/sub-components/ReviewCard/index.tsx +0 -103
- package/templates/create-full/src/sub-components/ReviewCard/styles.css +0 -95
- package/templates/create-full/src/sub-components/ReviewForm/index.tsx +0 -115
- package/templates/create-full/src/sub-components/ReviewForm/styles.css +0 -11
- package/templates/create-full/src/sub-components/ReviewSummary/index.tsx +0 -65
- package/templates/create-full/src/sub-components/ReviewSummary/styles.css +0 -86
- package/templates/create-full/src/sub-components/Select/index.tsx +0 -86
- package/templates/create-full/src/sub-components/Select/styles.css +0 -110
- package/templates/create-full/src/sub-components/SkeletonField/index.tsx +0 -12
- package/templates/create-full/src/sub-components/SkeletonField/styles.css +0 -29
- package/templates/create-full/src/sub-components/SliderArrow/index.tsx +0 -26
- package/templates/create-full/src/sub-components/SliderArrow/styles.css +0 -24
- package/templates/create-full/src/sub-components/SocialLoginButton/index.tsx +0 -24
- package/templates/create-full/src/sub-components/SocialLoginButton/styles.css +0 -19
- package/templates/create-full/src/sub-components/SpinnerIcon/index.tsx +0 -10
- package/templates/create-full/src/sub-components/SpinnerIcon/styles.css +0 -8
- package/templates/create-full/src/sub-components/StarRating/index.tsx +0 -76
- package/templates/create-full/src/sub-components/StarRating/styles.css +0 -40
- package/templates/create-full/src/sub-components/Tag/index.tsx +0 -21
- package/templates/create-full/src/sub-components/Tag/styles.css +0 -30
- package/templates/create-full/src/sub-components/Textarea/index.tsx +0 -45
- package/templates/create-full/src/sub-components/Textarea/styles.css +0 -82
- package/templates/create-full/src/sub-components/Toast/index.tsx +0 -257
- package/templates/create-full/src/sub-components/Toast/styles.css +0 -3
- package/templates/create-full/src/sub-components/Toggle/index.tsx +0 -46
- package/templates/create-full/src/sub-components/Toggle/styles.css +0 -86
- package/templates/create-full/src/sub-components/VariantBadge/index.tsx +0 -153
- package/templates/create-full/src/sub-components/VariantBadge/styles.css +0 -47
- package/templates/create-full/src/sub-components/icons/index.tsx +0 -981
- package/templates/create-full/src/utils/bundle.ts +0 -70
- package/templates/create-full/src/utils/cx.ts +0 -4
- package/templates/create-full/src/utils/fullName.ts +0 -6
- package/templates/create-full/src/utils/media.ts +0 -36
- package/templates/create-full/src/utils/optionPrice.ts +0 -19
- package/templates/create-full/src/utils/optionSet.ts +0 -17
- package/templates/create-full/src/utils/orderStatus.ts +0 -28
- package/templates/create-full/src/utils/pagination.ts +0 -29
- package/templates/create-full/src/utils/toast.ts +0 -5
- package/templates/create-full/tsconfig.json +0 -30
- package/templates/create-full/vite.config.ts +0 -15
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,168 +0,0 @@
|
|
|
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 = "Account Activation",
|
|
22
|
-
successTitle = "Your Account Has Been Activated!",
|
|
23
|
-
successMessage = "Your account has been successfully activated. You can sign in and start shopping.",
|
|
24
|
-
errorTitle = "Activation Failed",
|
|
25
|
-
errorMessage = "Your activation link may be invalid or expired.",
|
|
26
|
-
loadingMessage = "Activating your account...",
|
|
27
|
-
loginButtonText = "Sign In",
|
|
28
|
-
resendTitle = "Resend Activation Email",
|
|
29
|
-
emailLabel = "Email",
|
|
30
|
-
emailPlaceholder = "example@email.com",
|
|
31
|
-
resendButtonText = "Resend",
|
|
32
|
-
resendingButtonText = "Sending...",
|
|
33
|
-
resendSuccessMessage = "Activation email has been resent. Please check your inbox.",
|
|
34
|
-
resendErrorMessage = "Failed to send email. Please try again.",
|
|
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;
|
|
@@ -1,118 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
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;
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
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;
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,154 +0,0 @@
|
|
|
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 Store. All Rights Reserved",
|
|
15
|
-
linkColor,
|
|
16
|
-
linkHoverColor,
|
|
17
|
-
contactTitle = "Contact Information",
|
|
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
|
-
Powered by ikas E-Commerce.
|
|
146
|
-
</span>
|
|
147
|
-
</div>
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
</footer>
|
|
151
|
-
);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export default Footer;
|