@ikas/component-cli 0.103.0 → 0.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +385 -5
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +118 -43
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +135 -5
- package/dist/commands/dev.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/component-helpers.d.ts +5 -0
- package/dist/utils/component-helpers.d.ts.map +1 -1
- package/dist/utils/component-helpers.js +14 -1
- package/dist/utils/component-helpers.js.map +1 -1
- package/dist/utils/template.d.ts +12 -0
- package/dist/utils/template.d.ts.map +1 -1
- package/dist/utils/template.js +44 -0
- package/dist/utils/template.js.map +1 -1
- package/dist/utils/websocket-server.d.ts +26 -0
- package/dist/utils/websocket-server.d.ts.map +1 -1
- package/dist/utils/websocket-server.js +42 -0
- package/dist/utils/websocket-server.js.map +1 -1
- package/package.json +3 -2
- package/templates/create/claude-md +2 -1
- package/templates/create/cursorrules +1 -1
- package/templates/create/package.json +1 -0
- package/templates/create/src/components/ExampleComponent/types.ts +1 -1
- package/templates/create/src/components/ExampleSection/types.ts +1 -1
- package/templates/create-full/README.md +78 -0
- package/templates/create-full/cursorrules +103 -0
- package/templates/create-full/gitignore +4 -0
- package/templates/create-full/ikas.config.json +5007 -0
- package/templates/create-full/mcp.json +10 -0
- package/templates/create-full/package.json +22 -0
- package/templates/create-full/src/components/AccountAddresses/components/AddressCard/index.tsx +55 -0
- package/templates/create-full/src/components/AccountAddresses/components/AddressCard/styles.css +46 -0
- package/templates/create-full/src/components/AccountAddresses/components/AddressModal/index.tsx +301 -0
- package/templates/create-full/src/components/AccountAddresses/components/AddressModal/styles.css +22 -0
- package/templates/create-full/src/components/AccountAddresses/index.tsx +127 -0
- package/templates/create-full/src/components/AccountAddresses/styles.css +41 -0
- package/templates/create-full/src/components/AccountAddresses/types.ts +15 -0
- package/templates/create-full/src/components/AccountFavorites/index.tsx +82 -0
- package/templates/create-full/src/components/AccountFavorites/styles.css +52 -0
- package/templates/create-full/src/components/AccountFavorites/types.ts +7 -0
- package/templates/create-full/src/components/AccountInfo/components/AccountSidebar/index.tsx +171 -0
- package/templates/create-full/src/components/AccountInfo/components/AccountSidebar/styles.css +144 -0
- package/templates/create-full/src/components/AccountInfo/index.tsx +91 -0
- package/templates/create-full/src/components/AccountInfo/styles.css +35 -0
- package/templates/create-full/src/components/AccountInfo/types.ts +9 -0
- package/templates/create-full/src/components/AccountInfoContent/index.tsx +134 -0
- package/templates/create-full/src/components/AccountInfoContent/styles.css +57 -0
- package/templates/create-full/src/components/AccountInfoContent/types.ts +8 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderHeader/index.tsx +78 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderHeader/styles.css +46 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderItemRow/index.tsx +20 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderItemRow/styles.css +16 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderLineItemDisplay/index.tsx +112 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderLineItemDisplay/styles.css +86 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderSidebar/index.tsx +195 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderSidebar/styles.css +93 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/PackageGroup/index.tsx +156 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/PackageGroup/styles.css +100 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnItemRow/index.tsx +56 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnItemRow/styles.css +57 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnView/index.tsx +159 -0
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnView/styles.css +29 -0
- package/templates/create-full/src/components/AccountOrderDetail/index.tsx +244 -0
- package/templates/create-full/src/components/AccountOrderDetail/styles.css +125 -0
- package/templates/create-full/src/components/AccountOrderDetail/types.ts +32 -0
- package/templates/create-full/src/components/AccountOrders/components/OrderCard/index.tsx +122 -0
- package/templates/create-full/src/components/AccountOrders/components/OrderCard/styles.css +114 -0
- package/templates/create-full/src/components/AccountOrders/index.tsx +105 -0
- package/templates/create-full/src/components/AccountOrders/styles.css +36 -0
- package/templates/create-full/src/components/AccountOrders/types.ts +11 -0
- package/templates/create-full/src/components/Announcement/index.tsx +11 -0
- package/templates/create-full/src/components/Announcement/styles.css +4 -0
- package/templates/create-full/src/components/Announcement/types.ts +4 -0
- package/templates/create-full/src/components/Announcements/index.tsx +91 -0
- package/templates/create-full/src/components/Announcements/styles.css +45 -0
- package/templates/create-full/src/components/Announcements/types.ts +8 -0
- package/templates/create-full/src/components/BlogHome/components/BlogCard/index.tsx +89 -0
- package/templates/create-full/src/components/BlogHome/components/BlogCard/styles.css +121 -0
- package/templates/create-full/src/components/BlogHome/index.tsx +124 -0
- package/templates/create-full/src/components/BlogHome/styles.css +118 -0
- package/templates/create-full/src/components/BlogHome/types.ts +15 -0
- package/templates/create-full/src/components/BlogPost/index.tsx +128 -0
- package/templates/create-full/src/components/BlogPost/styles.css +120 -0
- package/templates/create-full/src/components/BlogPost/types.ts +12 -0
- package/templates/create-full/src/components/CardProductName/index.tsx +25 -0
- package/templates/create-full/src/components/CardProductName/styles.css +22 -0
- package/templates/create-full/src/components/CardProductName/types.ts +7 -0
- package/templates/create-full/src/components/CardProductPrice/index.tsx +30 -0
- package/templates/create-full/src/components/CardProductPrice/styles.css +13 -0
- package/templates/create-full/src/components/CardProductPrice/types.ts +6 -0
- package/templates/create-full/src/components/CardProductVariants/index.tsx +10 -0
- package/templates/create-full/src/components/CardProductVariants/styles.css +1 -0
- package/templates/create-full/src/components/CardProductVariants/types.ts +6 -0
- package/templates/create-full/src/components/CartPage/components/CouponCode/index.tsx +108 -0
- package/templates/create-full/src/components/CartPage/components/CouponCode/styles.css +68 -0
- package/templates/create-full/src/components/CartPage/components/EmptyState/index.tsx +31 -0
- package/templates/create-full/src/components/CartPage/components/EmptyState/styles.css +18 -0
- package/templates/create-full/src/components/CartPage/components/OrderSummary/index.tsx +106 -0
- package/templates/create-full/src/components/CartPage/components/OrderSummary/styles.css +70 -0
- package/templates/create-full/src/components/CartPage/index.tsx +107 -0
- package/templates/create-full/src/components/CartPage/styles.css +54 -0
- package/templates/create-full/src/components/CartPage/types.ts +16 -0
- package/templates/create-full/src/components/CategoryImageItem/components/Card/index.tsx +64 -0
- package/templates/create-full/src/components/CategoryImageItem/components/Card/styles.css +56 -0
- package/templates/create-full/src/components/CategoryImageItem/index.tsx +64 -0
- package/templates/create-full/src/components/CategoryImageItem/styles.css +10 -0
- package/templates/create-full/src/components/CategoryImageItem/types.ts +16 -0
- package/templates/create-full/src/components/CategoryImages/index.tsx +62 -0
- package/templates/create-full/src/components/CategoryImages/styles.css +38 -0
- package/templates/create-full/src/components/CategoryImages/types.ts +11 -0
- package/templates/create-full/src/components/CategoryList/components/CategoryListControls/index.tsx +129 -0
- package/templates/create-full/src/components/CategoryList/components/CategoryListControls/styles.css +99 -0
- package/templates/create-full/src/components/CategoryList/components/FilterBoxValues/index.tsx +42 -0
- package/templates/create-full/src/components/CategoryList/components/FilterBoxValues/styles.css +27 -0
- package/templates/create-full/src/components/CategoryList/components/FilterCategoryList/index.tsx +43 -0
- package/templates/create-full/src/components/CategoryList/components/FilterCategoryList/styles.css +20 -0
- package/templates/create-full/src/components/CategoryList/components/FilterGroupValues/index.tsx +114 -0
- package/templates/create-full/src/components/CategoryList/components/FilterGroupValues/styles.css +1 -0
- package/templates/create-full/src/components/CategoryList/components/FilterListValues/index.tsx +54 -0
- package/templates/create-full/src/components/CategoryList/components/FilterListValues/styles.css +22 -0
- package/templates/create-full/src/components/CategoryList/components/FilterRangeListValues/index.tsx +50 -0
- package/templates/create-full/src/components/CategoryList/components/FilterRangeListValues/styles.css +25 -0
- package/templates/create-full/src/components/CategoryList/components/FilterRangeValues/index.tsx +189 -0
- package/templates/create-full/src/components/CategoryList/components/FilterRangeValues/styles.css +89 -0
- package/templates/create-full/src/components/CategoryList/components/FilterSidebar/index.tsx +92 -0
- package/templates/create-full/src/components/CategoryList/components/FilterSidebar/styles.css +27 -0
- package/templates/create-full/src/components/CategoryList/components/FilterSwatchValues/index.tsx +63 -0
- package/templates/create-full/src/components/CategoryList/components/FilterSwatchValues/styles.css +48 -0
- package/templates/create-full/src/components/CategoryList/components/MobileFilterModal/index.tsx +146 -0
- package/templates/create-full/src/components/CategoryList/components/MobileFilterModal/styles.css +133 -0
- package/templates/create-full/src/components/CategoryList/index.tsx +333 -0
- package/templates/create-full/src/components/CategoryList/styles.css +110 -0
- package/templates/create-full/src/components/CategoryList/types.ts +30 -0
- package/templates/create-full/src/components/CollapsibleContent/index.tsx +23 -0
- package/templates/create-full/src/components/CollapsibleContent/styles.css +11 -0
- package/templates/create-full/src/components/CollapsibleContent/types.ts +6 -0
- package/templates/create-full/src/components/CookieBar/index.tsx +78 -0
- package/templates/create-full/src/components/CookieBar/styles.css +111 -0
- package/templates/create-full/src/components/CookieBar/types.ts +10 -0
- package/templates/create-full/src/components/CustomerEmailVerification/index.tsx +168 -0
- package/templates/create-full/src/components/CustomerEmailVerification/styles.css +118 -0
- package/templates/create-full/src/components/CustomerEmailVerification/types.ts +17 -0
- package/templates/create-full/src/components/FeatureItem/index.tsx +27 -0
- package/templates/create-full/src/components/FeatureItem/styles.css +19 -0
- package/templates/create-full/src/components/FeatureItem/types.ts +7 -0
- package/templates/create-full/src/components/Features/index.tsx +25 -0
- package/templates/create-full/src/components/Features/styles.css +39 -0
- package/templates/create-full/src/components/Features/types.ts +5 -0
- package/templates/create-full/src/components/Footer/index.tsx +154 -0
- package/templates/create-full/src/components/Footer/styles.css +175 -0
- package/templates/create-full/src/components/Footer/types.ts +15 -0
- package/templates/create-full/src/components/ForgotPassword/components/ForgotPasswordForm/index.tsx +129 -0
- package/templates/create-full/src/components/ForgotPassword/components/ForgotPasswordForm/styles.css +0 -0
- package/templates/create-full/src/components/ForgotPassword/index.tsx +30 -0
- package/templates/create-full/src/components/ForgotPassword/styles.css +85 -0
- package/templates/create-full/src/components/ForgotPassword/types.ts +13 -0
- package/templates/create-full/src/components/Header/index.tsx +53 -0
- package/templates/create-full/src/components/Header/styles.css +6 -0
- package/templates/create-full/src/components/Header/types.ts +6 -0
- package/templates/create-full/src/components/HeroSlider/index.tsx +110 -0
- package/templates/create-full/src/components/HeroSlider/styles.css +129 -0
- package/templates/create-full/src/components/HeroSlider/types.ts +9 -0
- package/templates/create-full/src/components/HeroSliderItem/index.tsx +231 -0
- package/templates/create-full/src/components/HeroSliderItem/styles.css +152 -0
- package/templates/create-full/src/components/HeroSliderItem/types.ts +34 -0
- package/templates/create-full/src/components/Login/components/LoginForm/index.tsx +181 -0
- package/templates/create-full/src/components/Login/components/LoginForm/styles.css +0 -0
- package/templates/create-full/src/components/Login/index.tsx +37 -0
- package/templates/create-full/src/components/Login/styles.css +129 -0
- package/templates/create-full/src/components/Login/types.ts +18 -0
- package/templates/create-full/src/components/Navbar/components/CartSidebar/index.tsx +203 -0
- package/templates/create-full/src/components/Navbar/components/CartSidebar/styles.css +175 -0
- package/templates/create-full/src/components/Navbar/components/MobileMenu/index.tsx +198 -0
- package/templates/create-full/src/components/Navbar/components/MobileMenu/styles.css +122 -0
- package/templates/create-full/src/components/Navbar/components/NavItem/index.tsx +65 -0
- package/templates/create-full/src/components/Navbar/components/SearchModal/index.tsx +267 -0
- package/templates/create-full/src/components/Navbar/components/SearchModal/styles.css +182 -0
- package/templates/create-full/src/components/Navbar/index.tsx +250 -0
- package/templates/create-full/src/components/Navbar/styles.css +243 -0
- package/templates/create-full/src/components/Navbar/types.ts +37 -0
- package/templates/create-full/src/components/NotFound/index.tsx +39 -0
- package/templates/create-full/src/components/NotFound/styles.css +46 -0
- package/templates/create-full/src/components/NotFound/types.ts +8 -0
- package/templates/create-full/src/components/ProductDetail/components/ProductGallery/index.tsx +316 -0
- package/templates/create-full/src/components/ProductDetail/components/ProductGallery/styles.css +213 -0
- package/templates/create-full/src/components/ProductDetail/index.tsx +92 -0
- package/templates/create-full/src/components/ProductDetail/styles.css +58 -0
- package/templates/create-full/src/components/ProductDetail/types.ts +12 -0
- package/templates/create-full/src/components/ProductDetailAddToCart/components/PayWithIkas/index.tsx +34 -0
- package/templates/create-full/src/components/ProductDetailAddToCart/components/PayWithIkas/styles.css +4 -0
- package/templates/create-full/src/components/ProductDetailAddToCart/index.tsx +146 -0
- package/templates/create-full/src/components/ProductDetailAddToCart/styles.css +27 -0
- package/templates/create-full/src/components/ProductDetailAddToCart/types.ts +18 -0
- package/templates/create-full/src/components/ProductDetailBundleFurniture/components/BundleFurnitureRow/index.tsx +164 -0
- package/templates/create-full/src/components/ProductDetailBundleFurniture/components/BundleFurnitureSection/index.tsx +134 -0
- package/templates/create-full/src/components/ProductDetailBundleFurniture/components/BundleFurnitureSection/styles.css +188 -0
- package/templates/create-full/src/components/ProductDetailBundleFurniture/index.tsx +61 -0
- package/templates/create-full/src/components/ProductDetailBundleFurniture/styles.css +12 -0
- package/templates/create-full/src/components/ProductDetailBundleFurniture/types.ts +21 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleProductItem/index.tsx +169 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleProductItem/styles.css +141 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleSkeletonLoading/index.tsx +35 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleSkeletonLoading/styles.css +85 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureRow/index.tsx +51 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureRow/styles.css +30 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureView/index.tsx +54 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureView/styles.css +22 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/index.tsx +101 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/styles.css +20 -0
- package/templates/create-full/src/components/ProductDetailBundleProduct/types.ts +18 -0
- package/templates/create-full/src/components/ProductDetailDescription/index.tsx +56 -0
- package/templates/create-full/src/components/ProductDetailDescription/styles.css +21 -0
- package/templates/create-full/src/components/ProductDetailDescription/types.ts +13 -0
- package/templates/create-full/src/components/ProductDetailFeatureItem/index.tsx +28 -0
- package/templates/create-full/src/components/ProductDetailFeatureItem/styles.css +22 -0
- package/templates/create-full/src/components/ProductDetailFeatureItem/types.ts +7 -0
- package/templates/create-full/src/components/ProductDetailFeatures/index.tsx +40 -0
- package/templates/create-full/src/components/ProductDetailFeatures/styles.css +17 -0
- package/templates/create-full/src/components/ProductDetailFeatures/types.ts +10 -0
- package/templates/create-full/src/components/ProductDetailNameFavorite/index.tsx +66 -0
- package/templates/create-full/src/components/ProductDetailNameFavorite/styles.css +45 -0
- package/templates/create-full/src/components/ProductDetailNameFavorite/types.ts +11 -0
- package/templates/create-full/src/components/ProductDetailOffer/components/OfferCard/index.tsx +209 -0
- package/templates/create-full/src/components/ProductDetailOffer/components/OfferCard/styles.css +146 -0
- package/templates/create-full/src/components/ProductDetailOffer/components/OfferSummary/index.tsx +175 -0
- package/templates/create-full/src/components/ProductDetailOffer/index.tsx +199 -0
- package/templates/create-full/src/components/ProductDetailOffer/styles.css +211 -0
- package/templates/create-full/src/components/ProductDetailOffer/types.ts +24 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionCheckbox/index.tsx +52 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionCheckbox/styles.css +19 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceBox/index.tsx +60 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceBox/styles.css +38 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSelect/index.tsx +102 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSelect/styles.css +34 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSwatch/index.tsx +121 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSwatch/styles.css +87 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/index.tsx +57 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionColorPicker/index.tsx +54 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionColorPicker/styles.css +0 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionDatePicker/index.tsx +124 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionDatePicker/styles.css +1 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionFile/index.tsx +217 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionFile/styles.css +87 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionRenderer/index.tsx +133 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionText/index.tsx +60 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionText/styles.css +1 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionTextarea/index.tsx +74 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionTextarea/styles.css +10 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/index.tsx +99 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/styles.css +30 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/types.ts +21 -0
- package/templates/create-full/src/components/ProductDetailPrices/index.tsx +62 -0
- package/templates/create-full/src/components/ProductDetailPrices/styles.css +32 -0
- package/templates/create-full/src/components/ProductDetailPrices/types.ts +10 -0
- package/templates/create-full/src/components/ProductDetailProductGroup/index.tsx +74 -0
- package/templates/create-full/src/components/ProductDetailProductGroup/styles.css +33 -0
- package/templates/create-full/src/components/ProductDetailProductGroup/types.ts +10 -0
- package/templates/create-full/src/components/ProductDetailReviews/index.tsx +205 -0
- package/templates/create-full/src/components/ProductDetailReviews/styles.css +43 -0
- package/templates/create-full/src/components/ProductDetailReviews/types.ts +19 -0
- package/templates/create-full/src/components/ProductDetailSku/index.tsx +38 -0
- package/templates/create-full/src/components/ProductDetailSku/styles.css +16 -0
- package/templates/create-full/src/components/ProductDetailSku/types.ts +11 -0
- package/templates/create-full/src/components/ProductDetailVariant/index.tsx +38 -0
- package/templates/create-full/src/components/ProductDetailVariant/styles.css +14 -0
- package/templates/create-full/src/components/ProductDetailVariant/types.ts +12 -0
- package/templates/create-full/src/components/ProductSlider/index.tsx +151 -0
- package/templates/create-full/src/components/ProductSlider/styles.css +105 -0
- package/templates/create-full/src/components/ProductSlider/types.ts +17 -0
- package/templates/create-full/src/components/RecoverPassword/components/RecoverPasswordForm/index.tsx +133 -0
- package/templates/create-full/src/components/RecoverPassword/components/RecoverPasswordForm/styles.css +0 -0
- package/templates/create-full/src/components/RecoverPassword/index.tsx +30 -0
- package/templates/create-full/src/components/RecoverPassword/styles.css +93 -0
- package/templates/create-full/src/components/RecoverPassword/types.ts +13 -0
- package/templates/create-full/src/components/Register/components/RegisterForm/index.tsx +326 -0
- package/templates/create-full/src/components/Register/components/RegisterForm/styles.css +0 -0
- package/templates/create-full/src/components/Register/index.tsx +30 -0
- package/templates/create-full/src/components/Register/styles.css +152 -0
- package/templates/create-full/src/components/Register/types.ts +27 -0
- package/templates/create-full/src/components/RichText/index.tsx +25 -0
- package/templates/create-full/src/components/RichText/styles.css +51 -0
- package/templates/create-full/src/components/RichText/types.ts +5 -0
- package/templates/create-full/src/components/SocialMediaIcon/index.tsx +26 -0
- package/templates/create-full/src/components/SocialMediaIcon/styles.css +17 -0
- package/templates/create-full/src/components/SocialMediaIcon/types.ts +7 -0
- package/templates/create-full/src/components/index.ts +50 -0
- package/templates/create-full/src/global-types.ts +13 -0
- package/templates/create-full/src/global.css +582 -0
- package/templates/create-full/src/hooks/useBundleProducts.ts +75 -0
- package/templates/create-full/src/hooks/useColumnPreference.ts +26 -0
- package/templates/create-full/src/hooks/useInfiniteScroll.ts +49 -0
- package/templates/create-full/src/hooks/usePageTracking.ts +56 -0
- package/templates/create-full/src/hooks/usePayWithIkas.ts +114 -0
- package/templates/create-full/src/hooks/useRedirectIfLoggedIn.ts +35 -0
- package/templates/create-full/src/hooks/useScrollLock.ts +20 -0
- package/templates/create-full/src/hooks/useToast.ts +27 -0
- package/templates/create-full/src/ikas-component-utils.d.ts +3 -0
- package/templates/create-full/src/sub-components/Badge/index.tsx +208 -0
- package/templates/create-full/src/sub-components/Badge/styles.css +129 -0
- package/templates/create-full/src/sub-components/Breadcrumb/index.tsx +57 -0
- package/templates/create-full/src/sub-components/Breadcrumb/styles.css +49 -0
- package/templates/create-full/src/sub-components/BundleMedia/index.tsx +72 -0
- package/templates/create-full/src/sub-components/BundleQuantityBox/index.tsx +73 -0
- package/templates/create-full/src/sub-components/BundleQuantityBox/styles.css +43 -0
- package/templates/create-full/src/sub-components/Button/index.tsx +52 -0
- package/templates/create-full/src/sub-components/Button/styles.css +114 -0
- package/templates/create-full/src/sub-components/CartItem/components/BundleProductItem/index.tsx +59 -0
- package/templates/create-full/src/sub-components/CartItem/components/BundleProductItem/styles.css +24 -0
- package/templates/create-full/src/sub-components/CartItem/components/BundleProducts/index.tsx +55 -0
- package/templates/create-full/src/sub-components/CartItem/components/BundleProducts/styles.css +30 -0
- package/templates/create-full/src/sub-components/CartItem/components/ItemOptions/index.tsx +31 -0
- package/templates/create-full/src/sub-components/CartItem/components/ItemOptions/styles.css +6 -0
- package/templates/create-full/src/sub-components/CartItem/components/OptionValueDisplay/index.tsx +79 -0
- package/templates/create-full/src/sub-components/CartItem/components/OptionValueDisplay/styles.css +28 -0
- package/templates/create-full/src/sub-components/CartItem/index.tsx +216 -0
- package/templates/create-full/src/sub-components/CartItem/styles.css +170 -0
- package/templates/create-full/src/sub-components/Checkbox/index.tsx +42 -0
- package/templates/create-full/src/sub-components/Checkbox/styles.css +65 -0
- package/templates/create-full/src/sub-components/CollapsibleGroup/index.tsx +52 -0
- package/templates/create-full/src/sub-components/CollapsibleGroup/styles.css +51 -0
- package/templates/create-full/src/sub-components/ColorInput/index.tsx +33 -0
- package/templates/create-full/src/sub-components/ColorInput/styles.css +53 -0
- package/templates/create-full/src/sub-components/ConfirmModal/index.tsx +60 -0
- package/templates/create-full/src/sub-components/ConfirmModal/styles.css +20 -0
- package/templates/create-full/src/sub-components/FormItem/index.tsx +66 -0
- package/templates/create-full/src/sub-components/FormItem/styles.css +38 -0
- package/templates/create-full/src/sub-components/ImagePreviewModal/index.tsx +55 -0
- package/templates/create-full/src/sub-components/ImagePreviewModal/styles.css +50 -0
- package/templates/create-full/src/sub-components/Input/index.tsx +69 -0
- package/templates/create-full/src/sub-components/Input/styles.css +162 -0
- package/templates/create-full/src/sub-components/Modal/index.tsx +118 -0
- package/templates/create-full/src/sub-components/Modal/styles.css +70 -0
- package/templates/create-full/src/sub-components/PageLoader/index.tsx +14 -0
- package/templates/create-full/src/sub-components/PageLoader/styles.css +12 -0
- package/templates/create-full/src/sub-components/Pagination/index.tsx +107 -0
- package/templates/create-full/src/sub-components/Pagination/styles.css +88 -0
- package/templates/create-full/src/sub-components/ProductCard/index.tsx +276 -0
- package/templates/create-full/src/sub-components/ProductCard/styles.css +99 -0
- package/templates/create-full/src/sub-components/QuantitySelector/index.tsx +41 -0
- package/templates/create-full/src/sub-components/QuantitySelector/styles.css +51 -0
- package/templates/create-full/src/sub-components/ReviewCard/index.tsx +103 -0
- package/templates/create-full/src/sub-components/ReviewCard/styles.css +95 -0
- package/templates/create-full/src/sub-components/ReviewForm/index.tsx +115 -0
- package/templates/create-full/src/sub-components/ReviewForm/styles.css +11 -0
- package/templates/create-full/src/sub-components/ReviewSummary/index.tsx +65 -0
- package/templates/create-full/src/sub-components/ReviewSummary/styles.css +86 -0
- package/templates/create-full/src/sub-components/Select/index.tsx +86 -0
- package/templates/create-full/src/sub-components/Select/styles.css +110 -0
- package/templates/create-full/src/sub-components/SkeletonField/index.tsx +12 -0
- package/templates/create-full/src/sub-components/SkeletonField/styles.css +29 -0
- package/templates/create-full/src/sub-components/SliderArrow/index.tsx +26 -0
- package/templates/create-full/src/sub-components/SliderArrow/styles.css +24 -0
- package/templates/create-full/src/sub-components/SocialLoginButton/index.tsx +24 -0
- package/templates/create-full/src/sub-components/SocialLoginButton/styles.css +19 -0
- package/templates/create-full/src/sub-components/SpinnerIcon/index.tsx +10 -0
- package/templates/create-full/src/sub-components/SpinnerIcon/styles.css +8 -0
- package/templates/create-full/src/sub-components/StarRating/index.tsx +76 -0
- package/templates/create-full/src/sub-components/StarRating/styles.css +40 -0
- package/templates/create-full/src/sub-components/Tag/index.tsx +21 -0
- package/templates/create-full/src/sub-components/Tag/styles.css +30 -0
- package/templates/create-full/src/sub-components/Textarea/index.tsx +45 -0
- package/templates/create-full/src/sub-components/Textarea/styles.css +82 -0
- package/templates/create-full/src/sub-components/Toast/index.tsx +257 -0
- package/templates/create-full/src/sub-components/Toast/styles.css +3 -0
- package/templates/create-full/src/sub-components/Toggle/index.tsx +46 -0
- package/templates/create-full/src/sub-components/Toggle/styles.css +86 -0
- package/templates/create-full/src/sub-components/VariantBadge/index.tsx +153 -0
- package/templates/create-full/src/sub-components/VariantBadge/styles.css +47 -0
- package/templates/create-full/src/sub-components/icons/index.tsx +981 -0
- package/templates/create-full/src/utils/bundle.ts +70 -0
- package/templates/create-full/src/utils/cx.ts +4 -0
- package/templates/create-full/src/utils/fullName.ts +6 -0
- package/templates/create-full/src/utils/media.ts +36 -0
- package/templates/create-full/src/utils/optionPrice.ts +19 -0
- package/templates/create-full/src/utils/optionSet.ts +17 -0
- package/templates/create-full/src/utils/orderStatus.ts +28 -0
- package/templates/create-full/src/utils/pagination.ts +29 -0
- package/templates/create-full/src/utils/toast.ts +5 -0
- package/templates/create-full/tsconfig.json +30 -0
- package/templates/create-full/vite.config.ts +15 -0
|
@@ -0,0 +1,582 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Global styles for your ikas code components project.
|
|
3
|
+
* These styles are NOT scoped — they apply across all components.
|
|
4
|
+
* Use this for CSS resets, base typography, utility classes, or CSS variables.
|
|
5
|
+
*
|
|
6
|
+
* Loading order:
|
|
7
|
+
* 1. Global CSS (this file) — lowest specificity
|
|
8
|
+
* 2. Shared chunk CSS — multi-scope (.cc_a .sel, .cc_b .sel)
|
|
9
|
+
* 3. Component CSS — single scope (.cc_id .sel) — highest specificity
|
|
10
|
+
*
|
|
11
|
+
* Component-scoped styles naturally override these globals.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/* ===== Colors — Kombos Design System ===== */
|
|
15
|
+
|
|
16
|
+
:root {
|
|
17
|
+
/* Z-Index */
|
|
18
|
+
--kombos-z-dropdown: 50;
|
|
19
|
+
--kombos-z-header: 100;
|
|
20
|
+
--kombos-z-overlay: 200;
|
|
21
|
+
|
|
22
|
+
/* Base */
|
|
23
|
+
--kombos-white: #ffffff;
|
|
24
|
+
|
|
25
|
+
/* Semantic */
|
|
26
|
+
--kombos-error: #d4323b;
|
|
27
|
+
--kombos-success: #0a8a4f;
|
|
28
|
+
--kombos-warning: #b87514;
|
|
29
|
+
--kombos-info: #2563eb;
|
|
30
|
+
--kombos-badge-bg: #ff0000;
|
|
31
|
+
--kombos-discount-bg: #c8102e;
|
|
32
|
+
--kombos-success-bg: #ceffb3;
|
|
33
|
+
--kombos-error-hover: #c82f37;
|
|
34
|
+
|
|
35
|
+
/* Gray */
|
|
36
|
+
--kombos-gray-50: #fafafa;
|
|
37
|
+
--kombos-gray-100: #f6f6f6;
|
|
38
|
+
--kombos-gray-200: #ececed;
|
|
39
|
+
--kombos-gray-300: #c4c4c6;
|
|
40
|
+
--kombos-gray-400: #9c9c9f;
|
|
41
|
+
--kombos-gray-500: #727276;
|
|
42
|
+
--kombos-gray-600: #4a4a4f;
|
|
43
|
+
--kombos-gray-700: #2e2e33;
|
|
44
|
+
--kombos-gray-800: #202025;
|
|
45
|
+
--kombos-gray-900: #14141a;
|
|
46
|
+
|
|
47
|
+
/* Layout */
|
|
48
|
+
--kombos-max-width: 93.75rem;
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* ===== Typography — Kombos Design System ===== */
|
|
53
|
+
/* Font: Montserrat | Weights: Regular 400, Medium 500, Semibold 600 */
|
|
54
|
+
|
|
55
|
+
/* --- Display --- */
|
|
56
|
+
|
|
57
|
+
.display-xxl-regular { font-weight: 400; font-size: 4.5rem; line-height: 5.625rem; }
|
|
58
|
+
.display-xxl-medium { font-weight: 500; font-size: 4.5rem; line-height: 5.625rem; }
|
|
59
|
+
.display-xxl-semibold { font-weight: 600; font-size: 4.5rem; line-height: 5.625rem; }
|
|
60
|
+
|
|
61
|
+
.display-xl-regular { font-weight: 400; font-size: 3.75rem; line-height: 4.5rem; }
|
|
62
|
+
.display-xl-medium { font-weight: 500; font-size: 3.75rem; line-height: 4.5rem; }
|
|
63
|
+
.display-xl-semibold { font-weight: 600; font-size: 3.75rem; line-height: 4.5rem; }
|
|
64
|
+
|
|
65
|
+
.display-lg-regular { font-weight: 400; font-size: 3rem; line-height: 3.75rem; }
|
|
66
|
+
.display-lg-medium { font-weight: 500; font-size: 3rem; line-height: 3.75rem; }
|
|
67
|
+
.display-lg-semibold { font-weight: 600; font-size: 3rem; line-height: 3.75rem; }
|
|
68
|
+
|
|
69
|
+
.display-md-regular { font-weight: 400; font-size: 2.25rem; line-height: 2.75rem; }
|
|
70
|
+
.display-md-medium { font-weight: 500; font-size: 2.25rem; line-height: 2.75rem; }
|
|
71
|
+
.display-md-semibold { font-weight: 600; font-size: 2.25rem; line-height: 2.75rem; }
|
|
72
|
+
|
|
73
|
+
.display-sm-regular { font-weight: 400; font-size: 1.875rem; line-height: 2.375rem; }
|
|
74
|
+
.display-sm-medium { font-weight: 500; font-size: 1.875rem; line-height: 2.375rem; }
|
|
75
|
+
.display-sm-semibold { font-weight: 600; font-size: 1.875rem; line-height: 2.375rem; }
|
|
76
|
+
|
|
77
|
+
.display-xs-regular { font-weight: 400; font-size: 1.5rem; line-height: 2rem; }
|
|
78
|
+
.display-xs-medium { font-weight: 500; font-size: 1.5rem; line-height: 2rem; }
|
|
79
|
+
.display-xs-semibold { font-weight: 600; font-size: 1.5rem; line-height: 2rem; }
|
|
80
|
+
|
|
81
|
+
/* --- Text --- */
|
|
82
|
+
|
|
83
|
+
.text-xl-regular { font-weight: 400; font-size: 1.25rem; line-height: 1.875rem; }
|
|
84
|
+
.text-xl-medium { font-weight: 500; font-size: 1.25rem; line-height: 1.875rem; }
|
|
85
|
+
.text-xl-semibold { font-weight: 600; font-size: 1.25rem; line-height: 1.875rem; }
|
|
86
|
+
|
|
87
|
+
.text-lg-regular { font-weight: 400; font-size: 1.125rem; line-height: 1.75rem; }
|
|
88
|
+
.text-lg-medium { font-weight: 500; font-size: 1.125rem; line-height: 1.75rem; }
|
|
89
|
+
.text-lg-semibold { font-weight: 600; font-size: 1.125rem; line-height: 1.75rem; }
|
|
90
|
+
|
|
91
|
+
.text-md-regular { font-weight: 400; font-size: 1rem; line-height: 1.5rem; }
|
|
92
|
+
.text-md-medium { font-weight: 500; font-size: 1rem; line-height: 1.5rem; }
|
|
93
|
+
.text-md-semibold { font-weight: 600; font-size: 1rem; line-height: 1.5rem; }
|
|
94
|
+
|
|
95
|
+
.text-sm-regular { font-weight: 400; font-size: 0.875rem; line-height: 1.25rem; }
|
|
96
|
+
.text-sm-medium { font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; }
|
|
97
|
+
.text-sm-semibold { font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; }
|
|
98
|
+
|
|
99
|
+
.text-xs-regular { font-weight: 400; font-size: 0.75rem; line-height: 1.125rem; }
|
|
100
|
+
.text-xs-medium { font-weight: 500; font-size: 0.75rem; line-height: 1.125rem; }
|
|
101
|
+
.text-xs-semibold { font-weight: 600; font-size: 0.75rem; line-height: 1.125rem; }
|
|
102
|
+
|
|
103
|
+
/* --- Strikethrough variants --- */
|
|
104
|
+
|
|
105
|
+
.text-xl-medium-strike { font-weight: 500; font-size: 1.25rem; line-height: 1.875rem; text-decoration: line-through; }
|
|
106
|
+
.text-md-regular-strike { font-weight: 400; font-size: 1rem; line-height: 1.5rem; text-decoration: line-through; }
|
|
107
|
+
.text-sm-regular-strike { font-weight: 400; font-size: 0.875rem; line-height: 1.25rem; text-decoration: line-through; }
|
|
108
|
+
.text-xs-regular-strike { font-weight: 400; font-size: 0.75rem; line-height: 1.125rem; text-decoration: line-through; }
|
|
109
|
+
|
|
110
|
+
/* --- Underline variants --- */
|
|
111
|
+
|
|
112
|
+
.display-xxl-underline { font-weight: 400; font-size: 4.5rem; line-height: 5.625rem; text-decoration: underline; }
|
|
113
|
+
.display-xl-underline { font-weight: 400; font-size: 3.75rem; line-height: 4.5rem; text-decoration: underline; }
|
|
114
|
+
.display-lg-underline { font-weight: 400; font-size: 3rem; line-height: 3.75rem; text-decoration: underline; }
|
|
115
|
+
.display-md-underline { font-weight: 400; font-size: 2.25rem; line-height: 2.75rem; text-decoration: underline; }
|
|
116
|
+
.display-sm-underline { font-weight: 400; font-size: 1.875rem; line-height: 2.375rem; text-decoration: underline; }
|
|
117
|
+
.display-xs-underline { font-weight: 400; font-size: 1.5rem; line-height: 2rem; text-decoration: underline; }
|
|
118
|
+
.text-xl-underline { font-weight: 400; font-size: 1.25rem; line-height: 1.875rem; text-decoration: underline; }
|
|
119
|
+
.text-lg-underline { font-weight: 400; font-size: 1.125rem; line-height: 1.75rem; text-decoration: underline; }
|
|
120
|
+
.text-md-underline { font-weight: 400; font-size: 1rem; line-height: 1.5rem; text-decoration: underline; }
|
|
121
|
+
.text-sm-underline { font-weight: 400; font-size: 0.875rem; line-height: 1.25rem; text-decoration: underline; }
|
|
122
|
+
.text-xs-underline { font-weight: 400; font-size: 0.75rem; line-height: 1.125rem; text-decoration: underline; }
|
|
123
|
+
|
|
124
|
+
/* --- Responsive: sm (640px+) — Tailwind-style prefix --- */
|
|
125
|
+
|
|
126
|
+
@media (min-width: 640px) {
|
|
127
|
+
/* Display */
|
|
128
|
+
.sm\:display-xxl-regular { font-weight: 400; font-size: 4.5rem; line-height: 5.625rem; }
|
|
129
|
+
.sm\:display-xxl-medium { font-weight: 500; font-size: 4.5rem; line-height: 5.625rem; }
|
|
130
|
+
.sm\:display-xxl-semibold { font-weight: 600; font-size: 4.5rem; line-height: 5.625rem; }
|
|
131
|
+
|
|
132
|
+
.sm\:display-xl-regular { font-weight: 400; font-size: 3.75rem; line-height: 4.5rem; }
|
|
133
|
+
.sm\:display-xl-medium { font-weight: 500; font-size: 3.75rem; line-height: 4.5rem; }
|
|
134
|
+
.sm\:display-xl-semibold { font-weight: 600; font-size: 3.75rem; line-height: 4.5rem; }
|
|
135
|
+
|
|
136
|
+
.sm\:display-lg-regular { font-weight: 400; font-size: 3rem; line-height: 3.75rem; }
|
|
137
|
+
.sm\:display-lg-medium { font-weight: 500; font-size: 3rem; line-height: 3.75rem; }
|
|
138
|
+
.sm\:display-lg-semibold { font-weight: 600; font-size: 3rem; line-height: 3.75rem; }
|
|
139
|
+
|
|
140
|
+
.sm\:display-md-regular { font-weight: 400; font-size: 2.25rem; line-height: 2.75rem; }
|
|
141
|
+
.sm\:display-md-medium { font-weight: 500; font-size: 2.25rem; line-height: 2.75rem; }
|
|
142
|
+
.sm\:display-md-semibold { font-weight: 600; font-size: 2.25rem; line-height: 2.75rem; }
|
|
143
|
+
|
|
144
|
+
.sm\:display-sm-regular { font-weight: 400; font-size: 1.875rem; line-height: 2.375rem; }
|
|
145
|
+
.sm\:display-sm-medium { font-weight: 500; font-size: 1.875rem; line-height: 2.375rem; }
|
|
146
|
+
.sm\:display-sm-semibold { font-weight: 600; font-size: 1.875rem; line-height: 2.375rem; }
|
|
147
|
+
|
|
148
|
+
.sm\:display-xs-regular { font-weight: 400; font-size: 1.5rem; line-height: 2rem; }
|
|
149
|
+
.sm\:display-xs-medium { font-weight: 500; font-size: 1.5rem; line-height: 2rem; }
|
|
150
|
+
.sm\:display-xs-semibold { font-weight: 600; font-size: 1.5rem; line-height: 2rem; }
|
|
151
|
+
|
|
152
|
+
/* Text */
|
|
153
|
+
.sm\:text-xl-regular { font-weight: 400; font-size: 1.25rem; line-height: 1.875rem; }
|
|
154
|
+
.sm\:text-xl-medium { font-weight: 500; font-size: 1.25rem; line-height: 1.875rem; }
|
|
155
|
+
.sm\:text-xl-semibold { font-weight: 600; font-size: 1.25rem; line-height: 1.875rem; }
|
|
156
|
+
|
|
157
|
+
.sm\:text-lg-regular { font-weight: 400; font-size: 1.125rem; line-height: 1.75rem; }
|
|
158
|
+
.sm\:text-lg-medium { font-weight: 500; font-size: 1.125rem; line-height: 1.75rem; }
|
|
159
|
+
.sm\:text-lg-semibold { font-weight: 600; font-size: 1.125rem; line-height: 1.75rem; }
|
|
160
|
+
|
|
161
|
+
.sm\:text-md-regular { font-weight: 400; font-size: 1rem; line-height: 1.5rem; }
|
|
162
|
+
.sm\:text-md-medium { font-weight: 500; font-size: 1rem; line-height: 1.5rem; }
|
|
163
|
+
.sm\:text-md-semibold { font-weight: 600; font-size: 1rem; line-height: 1.5rem; }
|
|
164
|
+
|
|
165
|
+
.sm\:text-sm-regular { font-weight: 400; font-size: 0.875rem; line-height: 1.25rem; }
|
|
166
|
+
.sm\:text-sm-medium { font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; }
|
|
167
|
+
.sm\:text-sm-semibold { font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; }
|
|
168
|
+
|
|
169
|
+
.sm\:text-xs-regular { font-weight: 400; font-size: 0.75rem; line-height: 1.125rem; }
|
|
170
|
+
.sm\:text-xs-medium { font-weight: 500; font-size: 0.75rem; line-height: 1.125rem; }
|
|
171
|
+
.sm\:text-xs-semibold { font-weight: 600; font-size: 0.75rem; line-height: 1.125rem; }
|
|
172
|
+
|
|
173
|
+
/* Strikethrough */
|
|
174
|
+
.sm\:text-xl-medium-strike { font-weight: 500; font-size: 1.25rem; line-height: 1.875rem; text-decoration: line-through; }
|
|
175
|
+
.sm\:text-md-regular-strike { font-weight: 400; font-size: 1rem; line-height: 1.5rem; text-decoration: line-through; }
|
|
176
|
+
.sm\:text-sm-regular-strike { font-weight: 400; font-size: 0.875rem; line-height: 1.25rem; text-decoration: line-through; }
|
|
177
|
+
.sm\:text-xs-regular-strike { font-weight: 400; font-size: 0.75rem; line-height: 1.125rem; text-decoration: line-through; }
|
|
178
|
+
|
|
179
|
+
/* Underline — Display */
|
|
180
|
+
.sm\:display-xxl-underline { font-weight: 400; font-size: 4.5rem; line-height: 5.625rem; text-decoration: underline; }
|
|
181
|
+
.sm\:display-xl-underline { font-weight: 400; font-size: 3.75rem; line-height: 4.5rem; text-decoration: underline; }
|
|
182
|
+
.sm\:display-lg-underline { font-weight: 400; font-size: 3rem; line-height: 3.75rem; text-decoration: underline; }
|
|
183
|
+
.sm\:display-md-underline { font-weight: 400; font-size: 2.25rem; line-height: 2.75rem; text-decoration: underline; }
|
|
184
|
+
.sm\:display-sm-underline { font-weight: 400; font-size: 1.875rem; line-height: 2.375rem; text-decoration: underline; }
|
|
185
|
+
.sm\:display-xs-underline { font-weight: 400; font-size: 1.5rem; line-height: 2rem; text-decoration: underline; }
|
|
186
|
+
|
|
187
|
+
/* Underline — Text */
|
|
188
|
+
.sm\:text-xl-underline { font-weight: 400; font-size: 1.25rem; line-height: 1.875rem; text-decoration: underline; }
|
|
189
|
+
.sm\:text-lg-underline { font-weight: 400; font-size: 1.125rem; line-height: 1.75rem; text-decoration: underline; }
|
|
190
|
+
.sm\:text-md-underline { font-weight: 400; font-size: 1rem; line-height: 1.5rem; text-decoration: underline; }
|
|
191
|
+
.sm\:text-sm-underline { font-weight: 400; font-size: 0.875rem; line-height: 1.25rem; text-decoration: underline; }
|
|
192
|
+
.sm\:text-xs-underline { font-weight: 400; font-size: 0.75rem; line-height: 1.125rem; text-decoration: underline; }
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* --- Responsive: md (768px+) — Tailwind-style prefix --- */
|
|
196
|
+
|
|
197
|
+
@media (min-width: 768px) {
|
|
198
|
+
/* Display */
|
|
199
|
+
.md\:display-xxl-regular { font-weight: 400; font-size: 4.5rem; line-height: 5.625rem; }
|
|
200
|
+
.md\:display-xxl-medium { font-weight: 500; font-size: 4.5rem; line-height: 5.625rem; }
|
|
201
|
+
.md\:display-xxl-semibold { font-weight: 600; font-size: 4.5rem; line-height: 5.625rem; }
|
|
202
|
+
|
|
203
|
+
.md\:display-xl-regular { font-weight: 400; font-size: 3.75rem; line-height: 4.5rem; }
|
|
204
|
+
.md\:display-xl-medium { font-weight: 500; font-size: 3.75rem; line-height: 4.5rem; }
|
|
205
|
+
.md\:display-xl-semibold { font-weight: 600; font-size: 3.75rem; line-height: 4.5rem; }
|
|
206
|
+
|
|
207
|
+
.md\:display-lg-regular { font-weight: 400; font-size: 3rem; line-height: 3.75rem; }
|
|
208
|
+
.md\:display-lg-medium { font-weight: 500; font-size: 3rem; line-height: 3.75rem; }
|
|
209
|
+
.md\:display-lg-semibold { font-weight: 600; font-size: 3rem; line-height: 3.75rem; }
|
|
210
|
+
|
|
211
|
+
.md\:display-md-regular { font-weight: 400; font-size: 2.25rem; line-height: 2.75rem; }
|
|
212
|
+
.md\:display-md-medium { font-weight: 500; font-size: 2.25rem; line-height: 2.75rem; }
|
|
213
|
+
.md\:display-md-semibold { font-weight: 600; font-size: 2.25rem; line-height: 2.75rem; }
|
|
214
|
+
|
|
215
|
+
.md\:display-sm-regular { font-weight: 400; font-size: 1.875rem; line-height: 2.375rem; }
|
|
216
|
+
.md\:display-sm-medium { font-weight: 500; font-size: 1.875rem; line-height: 2.375rem; }
|
|
217
|
+
.md\:display-sm-semibold { font-weight: 600; font-size: 1.875rem; line-height: 2.375rem; }
|
|
218
|
+
|
|
219
|
+
.md\:display-xs-regular { font-weight: 400; font-size: 1.5rem; line-height: 2rem; }
|
|
220
|
+
.md\:display-xs-medium { font-weight: 500; font-size: 1.5rem; line-height: 2rem; }
|
|
221
|
+
.md\:display-xs-semibold { font-weight: 600; font-size: 1.5rem; line-height: 2rem; }
|
|
222
|
+
|
|
223
|
+
/* Text */
|
|
224
|
+
.md\:text-xl-regular { font-weight: 400; font-size: 1.25rem; line-height: 1.875rem; }
|
|
225
|
+
.md\:text-xl-medium { font-weight: 500; font-size: 1.25rem; line-height: 1.875rem; }
|
|
226
|
+
.md\:text-xl-semibold { font-weight: 600; font-size: 1.25rem; line-height: 1.875rem; }
|
|
227
|
+
|
|
228
|
+
.md\:text-lg-regular { font-weight: 400; font-size: 1.125rem; line-height: 1.75rem; }
|
|
229
|
+
.md\:text-lg-medium { font-weight: 500; font-size: 1.125rem; line-height: 1.75rem; }
|
|
230
|
+
.md\:text-lg-semibold { font-weight: 600; font-size: 1.125rem; line-height: 1.75rem; }
|
|
231
|
+
|
|
232
|
+
.md\:text-md-regular { font-weight: 400; font-size: 1rem; line-height: 1.5rem; }
|
|
233
|
+
.md\:text-md-medium { font-weight: 500; font-size: 1rem; line-height: 1.5rem; }
|
|
234
|
+
.md\:text-md-semibold { font-weight: 600; font-size: 1rem; line-height: 1.5rem; }
|
|
235
|
+
|
|
236
|
+
.md\:text-sm-regular { font-weight: 400; font-size: 0.875rem; line-height: 1.25rem; }
|
|
237
|
+
.md\:text-sm-medium { font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; }
|
|
238
|
+
.md\:text-sm-semibold { font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; }
|
|
239
|
+
|
|
240
|
+
.md\:text-xs-regular { font-weight: 400; font-size: 0.75rem; line-height: 1.125rem; }
|
|
241
|
+
.md\:text-xs-medium { font-weight: 500; font-size: 0.75rem; line-height: 1.125rem; }
|
|
242
|
+
.md\:text-xs-semibold { font-weight: 600; font-size: 0.75rem; line-height: 1.125rem; }
|
|
243
|
+
|
|
244
|
+
/* Strikethrough */
|
|
245
|
+
.md\:text-xl-medium-strike { font-weight: 500; font-size: 1.25rem; line-height: 1.875rem; text-decoration: line-through; }
|
|
246
|
+
.md\:text-md-regular-strike { font-weight: 400; font-size: 1rem; line-height: 1.5rem; text-decoration: line-through; }
|
|
247
|
+
.md\:text-sm-regular-strike { font-weight: 400; font-size: 0.875rem; line-height: 1.25rem; text-decoration: line-through; }
|
|
248
|
+
.md\:text-xs-regular-strike { font-weight: 400; font-size: 0.75rem; line-height: 1.125rem; text-decoration: line-through; }
|
|
249
|
+
|
|
250
|
+
/* Underline — Display */
|
|
251
|
+
.md\:display-xxl-underline { font-weight: 400; font-size: 4.5rem; line-height: 5.625rem; text-decoration: underline; }
|
|
252
|
+
.md\:display-xl-underline { font-weight: 400; font-size: 3.75rem; line-height: 4.5rem; text-decoration: underline; }
|
|
253
|
+
.md\:display-lg-underline { font-weight: 400; font-size: 3rem; line-height: 3.75rem; text-decoration: underline; }
|
|
254
|
+
.md\:display-md-underline { font-weight: 400; font-size: 2.25rem; line-height: 2.75rem; text-decoration: underline; }
|
|
255
|
+
.md\:display-sm-underline { font-weight: 400; font-size: 1.875rem; line-height: 2.375rem; text-decoration: underline; }
|
|
256
|
+
.md\:display-xs-underline { font-weight: 400; font-size: 1.5rem; line-height: 2rem; text-decoration: underline; }
|
|
257
|
+
|
|
258
|
+
/* Underline — Text */
|
|
259
|
+
.md\:text-xl-underline { font-weight: 400; font-size: 1.25rem; line-height: 1.875rem; text-decoration: underline; }
|
|
260
|
+
.md\:text-lg-underline { font-weight: 400; font-size: 1.125rem; line-height: 1.75rem; text-decoration: underline; }
|
|
261
|
+
.md\:text-md-underline { font-weight: 400; font-size: 1rem; line-height: 1.5rem; text-decoration: underline; }
|
|
262
|
+
.md\:text-sm-underline { font-weight: 400; font-size: 0.875rem; line-height: 1.25rem; text-decoration: underline; }
|
|
263
|
+
.md\:text-xs-underline { font-weight: 400; font-size: 0.75rem; line-height: 1.125rem; text-decoration: underline; }
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* --- Responsive: lg (1024px+) — Tailwind-style prefix --- */
|
|
267
|
+
|
|
268
|
+
@media (min-width: 1024px) {
|
|
269
|
+
/* Display */
|
|
270
|
+
.lg\:display-xxl-regular { font-weight: 400; font-size: 4.5rem; line-height: 5.625rem; }
|
|
271
|
+
.lg\:display-xxl-medium { font-weight: 500; font-size: 4.5rem; line-height: 5.625rem; }
|
|
272
|
+
.lg\:display-xxl-semibold { font-weight: 600; font-size: 4.5rem; line-height: 5.625rem; }
|
|
273
|
+
|
|
274
|
+
.lg\:display-xl-regular { font-weight: 400; font-size: 3.75rem; line-height: 4.5rem; }
|
|
275
|
+
.lg\:display-xl-medium { font-weight: 500; font-size: 3.75rem; line-height: 4.5rem; }
|
|
276
|
+
.lg\:display-xl-semibold { font-weight: 600; font-size: 3.75rem; line-height: 4.5rem; }
|
|
277
|
+
|
|
278
|
+
.lg\:display-lg-regular { font-weight: 400; font-size: 3rem; line-height: 3.75rem; }
|
|
279
|
+
.lg\:display-lg-medium { font-weight: 500; font-size: 3rem; line-height: 3.75rem; }
|
|
280
|
+
.lg\:display-lg-semibold { font-weight: 600; font-size: 3rem; line-height: 3.75rem; }
|
|
281
|
+
|
|
282
|
+
.lg\:display-md-regular { font-weight: 400; font-size: 2.25rem; line-height: 2.75rem; }
|
|
283
|
+
.lg\:display-md-medium { font-weight: 500; font-size: 2.25rem; line-height: 2.75rem; }
|
|
284
|
+
.lg\:display-md-semibold { font-weight: 600; font-size: 2.25rem; line-height: 2.75rem; }
|
|
285
|
+
|
|
286
|
+
.lg\:display-sm-regular { font-weight: 400; font-size: 1.875rem; line-height: 2.375rem; }
|
|
287
|
+
.lg\:display-sm-medium { font-weight: 500; font-size: 1.875rem; line-height: 2.375rem; }
|
|
288
|
+
.lg\:display-sm-semibold { font-weight: 600; font-size: 1.875rem; line-height: 2.375rem; }
|
|
289
|
+
|
|
290
|
+
.lg\:display-xs-regular { font-weight: 400; font-size: 1.5rem; line-height: 2rem; }
|
|
291
|
+
.lg\:display-xs-medium { font-weight: 500; font-size: 1.5rem; line-height: 2rem; }
|
|
292
|
+
.lg\:display-xs-semibold { font-weight: 600; font-size: 1.5rem; line-height: 2rem; }
|
|
293
|
+
|
|
294
|
+
/* Text */
|
|
295
|
+
.lg\:text-xl-regular { font-weight: 400; font-size: 1.25rem; line-height: 1.875rem; }
|
|
296
|
+
.lg\:text-xl-medium { font-weight: 500; font-size: 1.25rem; line-height: 1.875rem; }
|
|
297
|
+
.lg\:text-xl-semibold { font-weight: 600; font-size: 1.25rem; line-height: 1.875rem; }
|
|
298
|
+
|
|
299
|
+
.lg\:text-lg-regular { font-weight: 400; font-size: 1.125rem; line-height: 1.75rem; }
|
|
300
|
+
.lg\:text-lg-medium { font-weight: 500; font-size: 1.125rem; line-height: 1.75rem; }
|
|
301
|
+
.lg\:text-lg-semibold { font-weight: 600; font-size: 1.125rem; line-height: 1.75rem; }
|
|
302
|
+
|
|
303
|
+
.lg\:text-md-regular { font-weight: 400; font-size: 1rem; line-height: 1.5rem; }
|
|
304
|
+
.lg\:text-md-medium { font-weight: 500; font-size: 1rem; line-height: 1.5rem; }
|
|
305
|
+
.lg\:text-md-semibold { font-weight: 600; font-size: 1rem; line-height: 1.5rem; }
|
|
306
|
+
|
|
307
|
+
.lg\:text-sm-regular { font-weight: 400; font-size: 0.875rem; line-height: 1.25rem; }
|
|
308
|
+
.lg\:text-sm-medium { font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; }
|
|
309
|
+
.lg\:text-sm-semibold { font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; }
|
|
310
|
+
|
|
311
|
+
.lg\:text-xs-regular { font-weight: 400; font-size: 0.75rem; line-height: 1.125rem; }
|
|
312
|
+
.lg\:text-xs-medium { font-weight: 500; font-size: 0.75rem; line-height: 1.125rem; }
|
|
313
|
+
.lg\:text-xs-semibold { font-weight: 600; font-size: 0.75rem; line-height: 1.125rem; }
|
|
314
|
+
|
|
315
|
+
/* Strikethrough */
|
|
316
|
+
.lg\:text-xl-medium-strike { font-weight: 500; font-size: 1.25rem; line-height: 1.875rem; text-decoration: line-through; }
|
|
317
|
+
.lg\:text-md-regular-strike { font-weight: 400; font-size: 1rem; line-height: 1.5rem; text-decoration: line-through; }
|
|
318
|
+
.lg\:text-sm-regular-strike { font-weight: 400; font-size: 0.875rem; line-height: 1.25rem; text-decoration: line-through; }
|
|
319
|
+
|
|
320
|
+
/* Underline — Display */
|
|
321
|
+
.lg\:display-xxl-underline { font-weight: 400; font-size: 4.5rem; line-height: 5.625rem; text-decoration: underline; }
|
|
322
|
+
.lg\:display-xl-underline { font-weight: 400; font-size: 3.75rem; line-height: 4.5rem; text-decoration: underline; }
|
|
323
|
+
.lg\:display-lg-underline { font-weight: 400; font-size: 3rem; line-height: 3.75rem; text-decoration: underline; }
|
|
324
|
+
.lg\:display-md-underline { font-weight: 400; font-size: 2.25rem; line-height: 2.75rem; text-decoration: underline; }
|
|
325
|
+
.lg\:display-sm-underline { font-weight: 400; font-size: 1.875rem; line-height: 2.375rem; text-decoration: underline; }
|
|
326
|
+
.lg\:display-xs-underline { font-weight: 400; font-size: 1.5rem; line-height: 2rem; text-decoration: underline; }
|
|
327
|
+
|
|
328
|
+
/* Underline — Text */
|
|
329
|
+
.lg\:text-xl-underline { font-weight: 400; font-size: 1.25rem; line-height: 1.875rem; text-decoration: underline; }
|
|
330
|
+
.lg\:text-lg-underline { font-weight: 400; font-size: 1.125rem; line-height: 1.75rem; text-decoration: underline; }
|
|
331
|
+
.lg\:text-md-underline { font-weight: 400; font-size: 1rem; line-height: 1.5rem; text-decoration: underline; }
|
|
332
|
+
.lg\:text-sm-underline { font-weight: 400; font-size: 0.875rem; line-height: 1.25rem; text-decoration: underline; }
|
|
333
|
+
.lg\:text-xs-underline { font-weight: 400; font-size: 0.75rem; line-height: 1.125rem; text-decoration: underline; }
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* --- Icons --- */
|
|
337
|
+
|
|
338
|
+
svg.kombos-icon {
|
|
339
|
+
fill: none;
|
|
340
|
+
font-size: inherit;
|
|
341
|
+
height: 1em;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
svg.kombos-icon path {
|
|
345
|
+
color: currentColor;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* ===== Container — Max-Width Wrapper ===== */
|
|
349
|
+
|
|
350
|
+
.kombos-container {
|
|
351
|
+
max-width: var(--kombos-max-width);
|
|
352
|
+
margin-left: auto;
|
|
353
|
+
margin-right: auto;
|
|
354
|
+
width: 100%;
|
|
355
|
+
padding-left: 1rem;
|
|
356
|
+
padding-right: 1rem;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
@media (min-width: 768px) {
|
|
360
|
+
.kombos-container {
|
|
361
|
+
padding-left: 1.5rem;
|
|
362
|
+
padding-right: 1.5rem;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
@media (min-width: 1024px) {
|
|
367
|
+
.kombos-container {
|
|
368
|
+
padding-left: 1.5rem;
|
|
369
|
+
padding-right: 1.5rem;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
/* ===== Base Reset ===== */
|
|
375
|
+
|
|
376
|
+
* {
|
|
377
|
+
word-break: break-word;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/* ===== Richtext ===== */
|
|
381
|
+
|
|
382
|
+
img,
|
|
383
|
+
video {
|
|
384
|
+
max-width: 100%;
|
|
385
|
+
height: auto;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.kombos-richtext {
|
|
389
|
+
color: var(--kombos-gray-900);
|
|
390
|
+
font-size: 14px;
|
|
391
|
+
overflow: hidden;
|
|
392
|
+
position: relative;
|
|
393
|
+
width: 100%;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.kombos-richtext th {
|
|
397
|
+
font-weight: bolder;
|
|
398
|
+
text-align: left;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.kombos-richtext caption {
|
|
402
|
+
text-align: left;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.kombos-richtext h1 {
|
|
406
|
+
font-size: 2em;
|
|
407
|
+
margin: 0;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.kombos-richtext h2 {
|
|
411
|
+
font-size: 1.5em;
|
|
412
|
+
margin: 0;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.kombos-richtext h3 {
|
|
416
|
+
font-size: 1.17em;
|
|
417
|
+
margin: 0;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.kombos-richtext h4,
|
|
421
|
+
.kombos-richtext p,
|
|
422
|
+
.kombos-richtext blockquote,
|
|
423
|
+
.kombos-richtext ul,
|
|
424
|
+
.kombos-richtext fieldset,
|
|
425
|
+
.kombos-richtext form,
|
|
426
|
+
.kombos-richtext ol,
|
|
427
|
+
.kombos-richtext dl,
|
|
428
|
+
.kombos-richtext dir,
|
|
429
|
+
.kombos-richtext menu {
|
|
430
|
+
margin: 0;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.kombos-richtext h5 {
|
|
434
|
+
font-size: 0.83em;
|
|
435
|
+
margin: 0;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.kombos-richtext h6 {
|
|
439
|
+
font-size: 0.75em;
|
|
440
|
+
margin: 0;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.kombos-richtext h1,
|
|
444
|
+
.kombos-richtext h2,
|
|
445
|
+
.kombos-richtext h3,
|
|
446
|
+
.kombos-richtext h4,
|
|
447
|
+
.kombos-richtext h5,
|
|
448
|
+
.kombos-richtext h6,
|
|
449
|
+
.kombos-richtext b,
|
|
450
|
+
.kombos-richtext strong {
|
|
451
|
+
font-weight: bolder;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.kombos-richtext blockquote {
|
|
455
|
+
margin-top: 0.625rem !important;
|
|
456
|
+
margin-bottom: 0.625rem !important;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.kombos-richtext i,
|
|
460
|
+
.kombos-richtext cite,
|
|
461
|
+
.kombos-richtext em,
|
|
462
|
+
.kombos-richtext var,
|
|
463
|
+
.kombos-richtext address {
|
|
464
|
+
font-style: italic;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.kombos-richtext pre,
|
|
468
|
+
.kombos-richtext tt,
|
|
469
|
+
.kombos-richtext code,
|
|
470
|
+
.kombos-richtext kbd,
|
|
471
|
+
.kombos-richtext samp {
|
|
472
|
+
font-family: monospace;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.kombos-richtext pre {
|
|
476
|
+
white-space: pre;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.kombos-richtext big {
|
|
480
|
+
font-size: 1.17em;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.kombos-richtext small,
|
|
484
|
+
.kombos-richtext sub,
|
|
485
|
+
.kombos-richtext sup {
|
|
486
|
+
font-size: 0.83em;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.kombos-richtext sub {
|
|
490
|
+
vertical-align: sub;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.kombos-richtext sup {
|
|
494
|
+
vertical-align: super;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.kombos-richtext table {
|
|
498
|
+
border-spacing: 2px;
|
|
499
|
+
border-collapse: collapse;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.kombos-richtext thead,
|
|
503
|
+
.kombos-richtext tbody,
|
|
504
|
+
.kombos-richtext tfoot {
|
|
505
|
+
vertical-align: middle;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.kombos-richtext td,
|
|
509
|
+
.kombos-richtext th,
|
|
510
|
+
.kombos-richtext tr {
|
|
511
|
+
vertical-align: inherit;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.kombos-richtext s,
|
|
515
|
+
.kombos-richtext strike,
|
|
516
|
+
.kombos-richtext del {
|
|
517
|
+
text-decoration: line-through;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.kombos-richtext hr {
|
|
521
|
+
border: 1px inset;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.kombos-richtext ol,
|
|
525
|
+
.kombos-richtext ul,
|
|
526
|
+
.kombos-richtext dir,
|
|
527
|
+
.kombos-richtext menu,
|
|
528
|
+
.kombos-richtext dd {
|
|
529
|
+
margin-left: 2.5rem;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.kombos-richtext ol {
|
|
533
|
+
list-style-type: decimal;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.kombos-richtext ul {
|
|
537
|
+
list-style-type: disc;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.kombos-richtext ol ul,
|
|
541
|
+
.kombos-richtext ul ol,
|
|
542
|
+
.kombos-richtext ul ul,
|
|
543
|
+
.kombos-richtext ol ol {
|
|
544
|
+
margin-top: 0;
|
|
545
|
+
margin-bottom: 0;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.kombos-richtext {
|
|
549
|
+
line-height: 1.2;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/* HTML5 */
|
|
553
|
+
|
|
554
|
+
.kombos-richtext figure {
|
|
555
|
+
margin: 1em 40px;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.centered-images img {
|
|
559
|
+
margin: 0 auto;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/* ===== Reduced Motion ===== */
|
|
563
|
+
|
|
564
|
+
@media (prefers-reduced-motion: reduce) {
|
|
565
|
+
*, *::before, *::after {
|
|
566
|
+
animation-duration: 0.01ms !important;
|
|
567
|
+
animation-iteration-count: 1 !important;
|
|
568
|
+
transition-duration: 0.01ms !important;
|
|
569
|
+
scroll-behavior: auto !important;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/* ===== Shimmer Animation ===== */
|
|
574
|
+
|
|
575
|
+
@keyframes kombos-shimmer {
|
|
576
|
+
0% {
|
|
577
|
+
background-position: -200% 0;
|
|
578
|
+
}
|
|
579
|
+
100% {
|
|
580
|
+
background-position: 200% 0;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useState, useEffect, useMemo } from "preact/hooks";
|
|
2
|
+
import {
|
|
3
|
+
getSelectedProductVariant,
|
|
4
|
+
getBundleProductsOfVariant,
|
|
5
|
+
initBundleProducts,
|
|
6
|
+
hasBundleSettings,
|
|
7
|
+
IkasBundleProduct,
|
|
8
|
+
IkasProduct,
|
|
9
|
+
cartStore,
|
|
10
|
+
waitForCartStoreInit,
|
|
11
|
+
} from "@ikas/bp-storefront";
|
|
12
|
+
import { runInAction } from "mobx";
|
|
13
|
+
import { adjustBundleProductQuantity } from "../utils/bundle";
|
|
14
|
+
|
|
15
|
+
function adjustBundleQuantities(products: IkasBundleProduct[]) {
|
|
16
|
+
runInAction(() => {
|
|
17
|
+
for (const bp of products) {
|
|
18
|
+
adjustBundleProductQuantity(bp);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function useBundleProducts(product: IkasProduct | null | undefined) {
|
|
24
|
+
const [isLoading, setIsLoading] = useState(true);
|
|
25
|
+
|
|
26
|
+
const editLineID =
|
|
27
|
+
typeof window !== "undefined"
|
|
28
|
+
? new URLSearchParams(window.location.search).get("editLineID")
|
|
29
|
+
: null;
|
|
30
|
+
|
|
31
|
+
const selectedVariant = product ? getSelectedProductVariant(product) : null;
|
|
32
|
+
|
|
33
|
+
const hasBundle = selectedVariant
|
|
34
|
+
? hasBundleSettings(selectedVariant)
|
|
35
|
+
: false;
|
|
36
|
+
|
|
37
|
+
const bundleSettings = hasBundle ? selectedVariant!.bundleSettings : null;
|
|
38
|
+
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
if (!product || !selectedVariant || !bundleSettings) return;
|
|
41
|
+
|
|
42
|
+
let cancelled = false;
|
|
43
|
+
|
|
44
|
+
async function load() {
|
|
45
|
+
setIsLoading(true);
|
|
46
|
+
|
|
47
|
+
try {
|
|
48
|
+
if (editLineID) await waitForCartStoreInit(cartStore);
|
|
49
|
+
|
|
50
|
+
await getBundleProductsOfVariant(product!, selectedVariant!);
|
|
51
|
+
await initBundleProducts(product!);
|
|
52
|
+
|
|
53
|
+
if (!cancelled && bundleSettings) {
|
|
54
|
+
adjustBundleQuantities(bundleSettings.products);
|
|
55
|
+
}
|
|
56
|
+
} finally {
|
|
57
|
+
if (!cancelled) setIsLoading(false);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
load();
|
|
62
|
+
|
|
63
|
+
return () => {
|
|
64
|
+
cancelled = true;
|
|
65
|
+
};
|
|
66
|
+
}, [selectedVariant, editLineID]);
|
|
67
|
+
|
|
68
|
+
const sortedProducts = useMemo(() => {
|
|
69
|
+
if (!bundleSettings) return [];
|
|
70
|
+
|
|
71
|
+
return [...bundleSettings.products].sort((a, b) => a.order - b.order);
|
|
72
|
+
}, [bundleSettings?.products]);
|
|
73
|
+
|
|
74
|
+
return { isLoading, selectedVariant, bundleSettings, sortedProducts };
|
|
75
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useCallback, useEffect, useState } from "preact/hooks";
|
|
2
|
+
|
|
3
|
+
const COLUMNS_STORAGE_KEY = "kombos-product-list-columns";
|
|
4
|
+
|
|
5
|
+
export function useColumnPreference() {
|
|
6
|
+
const [columns, setColumns] = useState<3 | 4>(4);
|
|
7
|
+
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
try {
|
|
10
|
+
const stored = localStorage.getItem(COLUMNS_STORAGE_KEY);
|
|
11
|
+
if (stored === "3") setColumns(3);
|
|
12
|
+
} catch {}
|
|
13
|
+
}, []);
|
|
14
|
+
|
|
15
|
+
const toggleColumns = useCallback(() => {
|
|
16
|
+
setColumns((prev) => {
|
|
17
|
+
const next = prev === 4 ? 3 : 4;
|
|
18
|
+
try {
|
|
19
|
+
localStorage.setItem(COLUMNS_STORAGE_KEY, String(next));
|
|
20
|
+
} catch {}
|
|
21
|
+
return next;
|
|
22
|
+
});
|
|
23
|
+
}, []);
|
|
24
|
+
|
|
25
|
+
return { columns, toggleColumns };
|
|
26
|
+
}
|