@ikas/component-cli 0.133.0 → 1.2.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/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 +120 -31
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/proxy.d.ts.map +1 -1
- package/dist/commands/proxy.js +5 -1
- package/dist/commands/proxy.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,85 +0,0 @@
|
|
|
1
|
-
/* ===== BundleSkeletonLoading ===== */
|
|
2
|
-
.kombos-bundle-skeleton {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: 1rem;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.kombos-bundle-skeleton__item {
|
|
9
|
-
display: flex;
|
|
10
|
-
gap: 0.75rem;
|
|
11
|
-
padding: 0.75rem 0;
|
|
12
|
-
border-bottom: 1px solid var(--kombos-gray-100);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.kombos-bundle-skeleton__image {
|
|
16
|
-
width: 6.25rem;
|
|
17
|
-
min-width: 6.25rem;
|
|
18
|
-
height: 4.75rem;
|
|
19
|
-
border-radius: 6px;
|
|
20
|
-
background-color: var(--kombos-gray-100);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.kombos-bundle-skeleton__info {
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
gap: 0.5rem;
|
|
27
|
-
flex: 1;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.kombos-bundle-skeleton__bar {
|
|
31
|
-
height: 0.875rem;
|
|
32
|
-
border-radius: 4px;
|
|
33
|
-
background-color: var(--kombos-gray-100);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.kombos-bundle-skeleton__bar--wide {
|
|
37
|
-
width: 70%;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.kombos-bundle-skeleton__bar--medium {
|
|
41
|
-
width: 50%;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.kombos-bundle-skeleton__bar--narrow {
|
|
45
|
-
width: 35%;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.kombos-bundle-skeleton__bar--price {
|
|
49
|
-
width: 4.5rem;
|
|
50
|
-
margin-left: auto;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* ===== Table variant ===== */
|
|
54
|
-
.kombos-bundle-skeleton-table {
|
|
55
|
-
border: 1px solid var(--kombos-gray-200);
|
|
56
|
-
border-radius: 6px;
|
|
57
|
-
overflow: hidden;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.kombos-bundle-skeleton-table__header {
|
|
61
|
-
height: 2.75rem;
|
|
62
|
-
background-color: var(--kombos-gray-200);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.kombos-bundle-skeleton-table__row {
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
padding: 0.75rem 1rem;
|
|
69
|
-
border-bottom: 1px solid var(--kombos-gray-100);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.kombos-bundle-skeleton-table__row:last-child {
|
|
73
|
-
border-bottom: none;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.kombos-bundle-skeleton__shimmer {
|
|
77
|
-
background: linear-gradient(
|
|
78
|
-
90deg,
|
|
79
|
-
var(--kombos-gray-100) 25%,
|
|
80
|
-
var(--kombos-gray-50) 50%,
|
|
81
|
-
var(--kombos-gray-100) 75%
|
|
82
|
-
);
|
|
83
|
-
background-size: 200% 100%;
|
|
84
|
-
animation: kombos-shimmer 1.5s ease-in-out infinite;
|
|
85
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
shouldDisplayBundleProductPrice,
|
|
3
|
-
getBundleProductFormattedFinalPrice,
|
|
4
|
-
getProductHref,
|
|
5
|
-
IkasBundleProduct,
|
|
6
|
-
} from "@ikas/bp-storefront";
|
|
7
|
-
import { observer } from "@ikas/component-utils";
|
|
8
|
-
|
|
9
|
-
interface Props {
|
|
10
|
-
bundleProduct: IkasBundleProduct;
|
|
11
|
-
withoutLink?: boolean;
|
|
12
|
-
quantityLabel: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const FurnitureRow = observer(function FurnitureRow({
|
|
16
|
-
bundleProduct,
|
|
17
|
-
withoutLink,
|
|
18
|
-
quantityLabel,
|
|
19
|
-
}: Props) {
|
|
20
|
-
const product = bundleProduct.product;
|
|
21
|
-
if (!product || bundleProduct.quantity === 0) return null;
|
|
22
|
-
|
|
23
|
-
const showPrice = shouldDisplayBundleProductPrice(bundleProduct);
|
|
24
|
-
const formattedPrice = showPrice
|
|
25
|
-
? getBundleProductFormattedFinalPrice(bundleProduct)
|
|
26
|
-
: "";
|
|
27
|
-
const productHref = getProductHref(product);
|
|
28
|
-
|
|
29
|
-
const NameTag = withoutLink ? "span" : "a";
|
|
30
|
-
const nameProps = withoutLink ? {} : { href: productHref };
|
|
31
|
-
|
|
32
|
-
return (
|
|
33
|
-
<tr className="kombos-bundle-table__row">
|
|
34
|
-
<td className="kombos-bundle-table__cell kombos-bundle-table__cell--name">
|
|
35
|
-
<NameTag
|
|
36
|
-
className="kombos-bundle-table__link text-sm-regular"
|
|
37
|
-
{...nameProps}
|
|
38
|
-
>
|
|
39
|
-
{product.name}
|
|
40
|
-
</NameTag>
|
|
41
|
-
</td>
|
|
42
|
-
<td className="kombos-bundle-table__cell kombos-bundle-table__cell--price text-sm-medium">
|
|
43
|
-
{showPrice && formattedPrice
|
|
44
|
-
? `${bundleProduct.quantity} x ${formattedPrice}`
|
|
45
|
-
: `${quantityLabel} ${bundleProduct.quantity}`}
|
|
46
|
-
</td>
|
|
47
|
-
</tr>
|
|
48
|
-
);
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
export default FurnitureRow;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
.kombos-bundle-table__row {
|
|
2
|
-
border-bottom: 1px solid var(--kombos-gray-200);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.kombos-bundle-table__row:last-child {
|
|
6
|
-
border-bottom: none;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.kombos-bundle-table__cell {
|
|
10
|
-
padding: 0.75rem 1rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.kombos-bundle-table__cell--name {
|
|
14
|
-
color: var(--kombos-gray-900);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.kombos-bundle-table__link {
|
|
18
|
-
color: inherit;
|
|
19
|
-
text-decoration: none;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
a.kombos-bundle-table__link:hover {
|
|
23
|
-
text-decoration: underline;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.kombos-bundle-table__cell--price {
|
|
27
|
-
color: var(--kombos-gray-900);
|
|
28
|
-
text-align: right;
|
|
29
|
-
white-space: nowrap;
|
|
30
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { IkasBundleProduct } from "@ikas/bp-storefront";
|
|
2
|
-
import BundleSkeletonLoading from "../BundleSkeletonLoading";
|
|
3
|
-
import FurnitureRow from "../FurnitureRow";
|
|
4
|
-
|
|
5
|
-
interface Props {
|
|
6
|
-
marginStyles: Record<string, string>;
|
|
7
|
-
isLoading: boolean;
|
|
8
|
-
skeletonCount: number;
|
|
9
|
-
sortedProducts: IkasBundleProduct[];
|
|
10
|
-
productContentTitle: string;
|
|
11
|
-
bundleProductWithoutLink?: boolean;
|
|
12
|
-
quantityLabel: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default function FurnitureView({
|
|
16
|
-
marginStyles,
|
|
17
|
-
isLoading,
|
|
18
|
-
skeletonCount,
|
|
19
|
-
sortedProducts,
|
|
20
|
-
productContentTitle,
|
|
21
|
-
bundleProductWithoutLink,
|
|
22
|
-
quantityLabel,
|
|
23
|
-
}: Props) {
|
|
24
|
-
return (
|
|
25
|
-
<div
|
|
26
|
-
className="kombos-bundle"
|
|
27
|
-
style={{ ...marginStyles, "--kombos-bundle-table-border": "var(--kombos-gray-900)" }}
|
|
28
|
-
>
|
|
29
|
-
{isLoading ? (
|
|
30
|
-
<BundleSkeletonLoading count={skeletonCount} variant="table" />
|
|
31
|
-
) : (
|
|
32
|
-
<div className="kombos-bundle-table">
|
|
33
|
-
<div className="kombos-bundle-table__header">
|
|
34
|
-
<span className="kombos-bundle-table__title text-md-semibold">
|
|
35
|
-
{productContentTitle}
|
|
36
|
-
</span>
|
|
37
|
-
</div>
|
|
38
|
-
<table className="kombos-bundle-table__table">
|
|
39
|
-
<tbody>
|
|
40
|
-
{sortedProducts.map((bp) => (
|
|
41
|
-
<FurnitureRow
|
|
42
|
-
key={bp.id}
|
|
43
|
-
bundleProduct={bp}
|
|
44
|
-
withoutLink={bundleProductWithoutLink}
|
|
45
|
-
quantityLabel={quantityLabel}
|
|
46
|
-
/>
|
|
47
|
-
))}
|
|
48
|
-
</tbody>
|
|
49
|
-
</table>
|
|
50
|
-
</div>
|
|
51
|
-
)}
|
|
52
|
-
</div>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
.kombos-bundle-table {
|
|
2
|
-
border: 1px solid var(--kombos-bundle-table-border, var(--kombos-gray-900));
|
|
3
|
-
border-radius: 6px;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.kombos-bundle-table__header {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
padding: 0.75rem 1rem;
|
|
11
|
-
background-color: var(--kombos-gray-900);
|
|
12
|
-
color: var(--kombos-white);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.kombos-bundle-table__title {
|
|
16
|
-
color: inherit;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.kombos-bundle-table__table {
|
|
20
|
-
width: 100%;
|
|
21
|
-
border-collapse: collapse;
|
|
22
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getFormattedMarginTopSize,
|
|
3
|
-
getFormattedMarginBottomSize,
|
|
4
|
-
} from "@ikas/bp-storefront";
|
|
5
|
-
import { Props } from "./types";
|
|
6
|
-
import { useBundleProducts } from "../../hooks/useBundleProducts";
|
|
7
|
-
import BundleProductItem from "./components/BundleProductItem";
|
|
8
|
-
import BundleSkeletonLoading from "./components/BundleSkeletonLoading";
|
|
9
|
-
import FurnitureView from "./components/FurnitureView";
|
|
10
|
-
|
|
11
|
-
// ---------------------------------------------------------------------------
|
|
12
|
-
// Helpers
|
|
13
|
-
// ---------------------------------------------------------------------------
|
|
14
|
-
|
|
15
|
-
function buildMarginStyles(
|
|
16
|
-
props: Pick<
|
|
17
|
-
Props,
|
|
18
|
-
| "mobileMarginTop"
|
|
19
|
-
| "mobileMarginBottom"
|
|
20
|
-
| "desktopMarginTop"
|
|
21
|
-
| "desktopMarginBottom"
|
|
22
|
-
>,
|
|
23
|
-
) {
|
|
24
|
-
return {
|
|
25
|
-
"--mobile-mt": getFormattedMarginTopSize(props.mobileMarginTop),
|
|
26
|
-
"--mobile-mb": getFormattedMarginBottomSize(props.mobileMarginBottom),
|
|
27
|
-
"--desktop-mt": getFormattedMarginTopSize(props.desktopMarginTop),
|
|
28
|
-
"--desktop-mb": getFormattedMarginBottomSize(props.desktopMarginBottom),
|
|
29
|
-
} as Record<string, string>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// ---------------------------------------------------------------------------
|
|
33
|
-
// Main component
|
|
34
|
-
// ---------------------------------------------------------------------------
|
|
35
|
-
|
|
36
|
-
export function ProductDetailBundleProduct({
|
|
37
|
-
product,
|
|
38
|
-
mobileMarginTop,
|
|
39
|
-
mobileMarginBottom,
|
|
40
|
-
desktopMarginTop,
|
|
41
|
-
desktopMarginBottom,
|
|
42
|
-
isBundleFurniture,
|
|
43
|
-
bundleProductWithoutLink,
|
|
44
|
-
quantityLabel = "Quantity",
|
|
45
|
-
outOfStockText = "Out of Stock",
|
|
46
|
-
productContentTitle = "Set Contents",
|
|
47
|
-
aspectRatio,
|
|
48
|
-
objectFit,
|
|
49
|
-
}: Props) {
|
|
50
|
-
const { isLoading, selectedVariant, bundleSettings, sortedProducts } =
|
|
51
|
-
useBundleProducts(product);
|
|
52
|
-
|
|
53
|
-
if (!product || !selectedVariant || !bundleSettings) return null;
|
|
54
|
-
|
|
55
|
-
const marginStyles = buildMarginStyles({
|
|
56
|
-
mobileMarginTop,
|
|
57
|
-
mobileMarginBottom,
|
|
58
|
-
desktopMarginTop,
|
|
59
|
-
desktopMarginBottom,
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
const skeletonCount = sortedProducts.length || 3;
|
|
63
|
-
|
|
64
|
-
if (isBundleFurniture) {
|
|
65
|
-
return (
|
|
66
|
-
<FurnitureView
|
|
67
|
-
marginStyles={marginStyles}
|
|
68
|
-
isLoading={isLoading}
|
|
69
|
-
skeletonCount={skeletonCount}
|
|
70
|
-
sortedProducts={sortedProducts}
|
|
71
|
-
productContentTitle={productContentTitle}
|
|
72
|
-
bundleProductWithoutLink={bundleProductWithoutLink}
|
|
73
|
-
quantityLabel={quantityLabel}
|
|
74
|
-
/>
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return (
|
|
79
|
-
<div className="kombos-bundle" style={marginStyles}>
|
|
80
|
-
<div className="kombos-bundle__list">
|
|
81
|
-
{isLoading ? (
|
|
82
|
-
<BundleSkeletonLoading count={skeletonCount} />
|
|
83
|
-
) : (
|
|
84
|
-
sortedProducts.map((bp) => (
|
|
85
|
-
<BundleProductItem
|
|
86
|
-
key={bp.id}
|
|
87
|
-
bundleProduct={bp}
|
|
88
|
-
quantityLabel={quantityLabel}
|
|
89
|
-
outOfStockText={outOfStockText}
|
|
90
|
-
bundleProductWithoutLink={bundleProductWithoutLink}
|
|
91
|
-
aspectRatio={aspectRatio}
|
|
92
|
-
objectFit={objectFit}
|
|
93
|
-
/>
|
|
94
|
-
))
|
|
95
|
-
)}
|
|
96
|
-
</div>
|
|
97
|
-
</div>
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export default ProductDetailBundleProduct;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/* ===== ProductDetailBundleProduct ===== */
|
|
2
|
-
.kombos-bundle {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: 1rem;
|
|
6
|
-
margin-top: var(--mobile-mt);
|
|
7
|
-
margin-bottom: var(--mobile-mb);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.kombos-bundle__list {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@media (min-width: 1024px) {
|
|
16
|
-
.kombos-bundle {
|
|
17
|
-
margin-top: var(--desktop-mt, var(--mobile-mt));
|
|
18
|
-
margin-bottom: var(--desktop-mb, var(--mobile-mb));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated — do not edit manually.
|
|
2
|
-
import type { IkasProduct, MarginTopStyleType, MarginBottomStyleType } from "@ikas/bp-storefront";
|
|
3
|
-
import type { AspectRatio, ObjectFit } from "../../global-types";
|
|
4
|
-
|
|
5
|
-
export interface Props {
|
|
6
|
-
product?: IkasProduct | null;
|
|
7
|
-
mobileMarginTop?: MarginTopStyleType;
|
|
8
|
-
mobileMarginBottom?: MarginBottomStyleType;
|
|
9
|
-
desktopMarginTop?: MarginTopStyleType;
|
|
10
|
-
desktopMarginBottom?: MarginBottomStyleType;
|
|
11
|
-
isBundleFurniture?: boolean;
|
|
12
|
-
bundleProductWithoutLink?: boolean;
|
|
13
|
-
quantityLabel?: string;
|
|
14
|
-
outOfStockText?: string;
|
|
15
|
-
productContentTitle?: string;
|
|
16
|
-
aspectRatio?: AspectRatio;
|
|
17
|
-
objectFit?: ObjectFit;
|
|
18
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getFormattedMarginTopSize,
|
|
3
|
-
getFormattedMarginBottomSize,
|
|
4
|
-
IkasComponentRenderer,
|
|
5
|
-
} from "@ikas/bp-storefront";
|
|
6
|
-
import CollapsibleGroup from "../../sub-components/CollapsibleGroup";
|
|
7
|
-
import { Props } from "./types";
|
|
8
|
-
|
|
9
|
-
export function ProductDetailDescription(props: Props) {
|
|
10
|
-
const {
|
|
11
|
-
product,
|
|
12
|
-
title = "Product Details",
|
|
13
|
-
defaultOpen = false,
|
|
14
|
-
mobileMarginTop,
|
|
15
|
-
mobileMarginBottom,
|
|
16
|
-
desktopMarginTop,
|
|
17
|
-
desktopMarginBottom,
|
|
18
|
-
components,
|
|
19
|
-
} = props;
|
|
20
|
-
if (!product) return null;
|
|
21
|
-
|
|
22
|
-
const hasDescription = !!product?.description;
|
|
23
|
-
const hasComponents = Array.isArray(components) && components.length > 0;
|
|
24
|
-
|
|
25
|
-
if (!hasDescription && !hasComponents) return null;
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<div
|
|
29
|
-
className="kombos-pd-desc"
|
|
30
|
-
style={{
|
|
31
|
-
"--mobile-mt": getFormattedMarginTopSize(mobileMarginTop),
|
|
32
|
-
"--mobile-mb": getFormattedMarginBottomSize(mobileMarginBottom),
|
|
33
|
-
"--desktop-mt": getFormattedMarginTopSize(desktopMarginTop),
|
|
34
|
-
"--desktop-mb": getFormattedMarginBottomSize(desktopMarginBottom),
|
|
35
|
-
}}
|
|
36
|
-
>
|
|
37
|
-
{hasDescription && (
|
|
38
|
-
<CollapsibleGroup title={title} defaultOpen={defaultOpen}>
|
|
39
|
-
<div
|
|
40
|
-
className="kombos-pd-desc__body text-sm-regular kombos-richtext"
|
|
41
|
-
dangerouslySetInnerHTML={{ __html: product.description }}
|
|
42
|
-
/>
|
|
43
|
-
</CollapsibleGroup>
|
|
44
|
-
)}
|
|
45
|
-
{hasComponents && (
|
|
46
|
-
<IkasComponentRenderer
|
|
47
|
-
id="product-detail-description"
|
|
48
|
-
components={components}
|
|
49
|
-
parentProps={props}
|
|
50
|
-
/>
|
|
51
|
-
)}
|
|
52
|
-
</div>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export default ProductDetailDescription;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* ===== ProductDetailDescription ===== */
|
|
2
|
-
|
|
3
|
-
.kombos-pd-desc {
|
|
4
|
-
margin-top: var(--mobile-mt);
|
|
5
|
-
margin-bottom: var(--mobile-mb);
|
|
6
|
-
border-top: 1px solid var(--kombos-gray-200);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.kombos-pd-desc__body {
|
|
10
|
-
color: var(--kombos-gray-700);
|
|
11
|
-
max-height: 500px;
|
|
12
|
-
overflow: auto;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* ===== Desktop (>=1024px) ===== */
|
|
16
|
-
@media (min-width: 1024px) {
|
|
17
|
-
.kombos-pd-desc {
|
|
18
|
-
margin-top: var(--desktop-mt, var(--mobile-mt));
|
|
19
|
-
margin-bottom: var(--desktop-mb, var(--mobile-mb));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated — do not edit manually.
|
|
2
|
-
import type { IkasProduct, MarginTopStyleType, MarginBottomStyleType } from "@ikas/bp-storefront";
|
|
3
|
-
|
|
4
|
-
export interface Props {
|
|
5
|
-
product?: IkasProduct | null;
|
|
6
|
-
mobileMarginTop?: MarginTopStyleType;
|
|
7
|
-
mobileMarginBottom?: MarginBottomStyleType;
|
|
8
|
-
desktopMarginTop?: MarginTopStyleType;
|
|
9
|
-
desktopMarginBottom?: MarginBottomStyleType;
|
|
10
|
-
title?: string;
|
|
11
|
-
defaultOpen?: boolean;
|
|
12
|
-
components?: any;
|
|
13
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { getDefaultSrc } from "@ikas/bp-storefront";
|
|
2
|
-
import { Props } from "./types";
|
|
3
|
-
|
|
4
|
-
export function ProductDetailFeatureItem({ image, text }: Props) {
|
|
5
|
-
const imageSrc = image ? getDefaultSrc(image) : null;
|
|
6
|
-
if (!imageSrc && !text) return null;
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<div className="product-detail-feature-item">
|
|
10
|
-
{imageSrc && (
|
|
11
|
-
<img
|
|
12
|
-
className="product-detail-feature-item__icon"
|
|
13
|
-
src={imageSrc}
|
|
14
|
-
alt={image?.altText || ""}
|
|
15
|
-
width={32}
|
|
16
|
-
height={32}
|
|
17
|
-
/>
|
|
18
|
-
)}
|
|
19
|
-
{text && (
|
|
20
|
-
<p className="product-detail-feature-item__text text-sm-medium">
|
|
21
|
-
{text}
|
|
22
|
-
</p>
|
|
23
|
-
)}
|
|
24
|
-
</div>
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export default ProductDetailFeatureItem;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* ===== ProductDetailFeatureItem ===== */
|
|
2
|
-
|
|
3
|
-
.product-detail-feature-item {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
gap: 0.75rem;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.product-detail-feature-item__icon {
|
|
12
|
-
width: 2rem;
|
|
13
|
-
height: auto;
|
|
14
|
-
object-fit: contain;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.product-detail-feature-item__text {
|
|
18
|
-
color: var(--kombos-gray-900);
|
|
19
|
-
text-align: center;
|
|
20
|
-
margin: 0;
|
|
21
|
-
text-wrap-style: pretty;
|
|
22
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getFormattedMarginTopSize,
|
|
3
|
-
getFormattedMarginBottomSize,
|
|
4
|
-
IkasComponentRenderer,
|
|
5
|
-
} from "@ikas/bp-storefront";
|
|
6
|
-
import { Props } from "./types";
|
|
7
|
-
|
|
8
|
-
export function ProductDetailFeatures(props: Props) {
|
|
9
|
-
const {
|
|
10
|
-
mobileMarginTop,
|
|
11
|
-
mobileMarginBottom,
|
|
12
|
-
desktopMarginTop,
|
|
13
|
-
desktopMarginBottom,
|
|
14
|
-
components,
|
|
15
|
-
} = props;
|
|
16
|
-
|
|
17
|
-
const count = components?.length ?? 0;
|
|
18
|
-
if (count === 0) return null;
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<div
|
|
22
|
-
className="kombos-pd-features"
|
|
23
|
-
style={{
|
|
24
|
-
"--mobile-mt": getFormattedMarginTopSize(mobileMarginTop),
|
|
25
|
-
"--mobile-mb": getFormattedMarginBottomSize(mobileMarginBottom),
|
|
26
|
-
"--desktop-mt": getFormattedMarginTopSize(desktopMarginTop),
|
|
27
|
-
"--desktop-mb": getFormattedMarginBottomSize(desktopMarginBottom),
|
|
28
|
-
"--columns": count,
|
|
29
|
-
}}
|
|
30
|
-
>
|
|
31
|
-
<IkasComponentRenderer
|
|
32
|
-
id="product-detail-features"
|
|
33
|
-
components={components}
|
|
34
|
-
parentProps={props}
|
|
35
|
-
/>
|
|
36
|
-
</div>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export default ProductDetailFeatures;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* ===== ProductDetailFeatures ===== */
|
|
2
|
-
|
|
3
|
-
.kombos-pd-features {
|
|
4
|
-
display: grid;
|
|
5
|
-
grid-template-columns: repeat(var(--columns, 1), 1fr);
|
|
6
|
-
gap: 1rem;
|
|
7
|
-
margin-top: var(--mobile-mt);
|
|
8
|
-
margin-bottom: var(--mobile-mb);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/* ===== Desktop (>=1024px) ===== */
|
|
12
|
-
@media (min-width: 1024px) {
|
|
13
|
-
.kombos-pd-features {
|
|
14
|
-
margin-top: var(--desktop-mt, var(--mobile-mt));
|
|
15
|
-
margin-bottom: var(--desktop-mb, var(--mobile-mb));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated — do not edit manually.
|
|
2
|
-
import type { MarginTopStyleType, MarginBottomStyleType } from "@ikas/bp-storefront";
|
|
3
|
-
|
|
4
|
-
export interface Props {
|
|
5
|
-
mobileMarginTop?: MarginTopStyleType;
|
|
6
|
-
mobileMarginBottom?: MarginBottomStyleType;
|
|
7
|
-
desktopMarginTop?: MarginTopStyleType;
|
|
8
|
-
desktopMarginBottom?: MarginBottomStyleType;
|
|
9
|
-
components?: any;
|
|
10
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
addIkasProductToFavorites,
|
|
3
|
-
customerStore,
|
|
4
|
-
getFormattedMarginTopSize,
|
|
5
|
-
getFormattedMarginBottomSize,
|
|
6
|
-
hasCustomer,
|
|
7
|
-
isFavoriteIkasProduct,
|
|
8
|
-
removeIkasProductFromFavorites,
|
|
9
|
-
Router,
|
|
10
|
-
} from "@ikas/bp-storefront";
|
|
11
|
-
import { Props } from "./types";
|
|
12
|
-
import { Heart2SVG, HeartFilledSVG } from "../../sub-components/icons";
|
|
13
|
-
|
|
14
|
-
export function ProductDetailNameFavorite({
|
|
15
|
-
product,
|
|
16
|
-
mobileMarginTop,
|
|
17
|
-
mobileMarginBottom,
|
|
18
|
-
desktopMarginTop,
|
|
19
|
-
desktopMarginBottom,
|
|
20
|
-
hideFavoriteButton,
|
|
21
|
-
}: Props) {
|
|
22
|
-
if (!product) return null;
|
|
23
|
-
|
|
24
|
-
const isFavorite = isFavoriteIkasProduct(product);
|
|
25
|
-
|
|
26
|
-
const handleToggleFavorite = async () => {
|
|
27
|
-
const isLoggedIn = hasCustomer(customerStore);
|
|
28
|
-
|
|
29
|
-
if (!isLoggedIn) {
|
|
30
|
-
Router.navigateToPage("LOGIN");
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
if (isFavorite) {
|
|
35
|
-
await removeIkasProductFromFavorites(product);
|
|
36
|
-
} else {
|
|
37
|
-
await addIkasProductToFavorites(product);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
return (
|
|
42
|
-
<div
|
|
43
|
-
className="kombos-pd-name__row"
|
|
44
|
-
style={{
|
|
45
|
-
"--mobile-mt": getFormattedMarginTopSize(mobileMarginTop),
|
|
46
|
-
"--mobile-mb": getFormattedMarginBottomSize(mobileMarginBottom),
|
|
47
|
-
"--desktop-mt": getFormattedMarginTopSize(desktopMarginTop),
|
|
48
|
-
"--desktop-mb": getFormattedMarginBottomSize(desktopMarginBottom),
|
|
49
|
-
}}
|
|
50
|
-
>
|
|
51
|
-
<h1 className="kombos-pd-name__title text-xl-medium lg:display-xs-medium">{product.name}</h1>
|
|
52
|
-
{!hideFavoriteButton && (
|
|
53
|
-
<button
|
|
54
|
-
type="button"
|
|
55
|
-
className="kombos-pd-name__fav-btn"
|
|
56
|
-
onClick={handleToggleFavorite}
|
|
57
|
-
aria-label={isFavorite ? "Remove from favorites" : "Add to favorites"}
|
|
58
|
-
>
|
|
59
|
-
{isFavorite ? <HeartFilledSVG /> : <Heart2SVG />}
|
|
60
|
-
</button>
|
|
61
|
-
)}
|
|
62
|
-
</div>
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export default ProductDetailNameFavorite;
|