@citygross/components_v2 0.0.14 → 0.0.16
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/components/Box/Box.css.vanilla.js +1 -1
- package/dist/components/Button/Button.css.ts.vanilla.css +142 -0
- package/dist/components/Button/Button.css.vanilla.js +8 -0
- package/dist/components/Button/Button.js +57 -0
- package/dist/components/CartItemSummary/CartItemSummary.js +3 -3
- package/dist/components/Header/Header.css.ts.vanilla.css +29 -0
- package/dist/components/Header/Header.css.vanilla.js +9 -0
- package/dist/components/Header/Header.d.ts +11 -0
- package/dist/components/Header/Header.js +44 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +3 -2
|
@@ -4,6 +4,6 @@ import './../../cssUtils/spacings.css.ts.vanilla.css';
|
|
|
4
4
|
import './Box.css.ts.vanilla.css';
|
|
5
5
|
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
6
6
|
|
|
7
|
-
var BoxStyle = createRuntimeFn({ defaultClassName: "Box__inom6d0", variantClassNames: { backgroundColor: { primary: "color_backgroundColor_primary__13rr0b21b", secondary: "color_backgroundColor_secondary__13rr0b21c", brandYellow: "color_backgroundColor_brandYellow__13rr0b21d", brandBlue: "color_backgroundColor_brandBlue__13rr0b21e", brandPurple: "color_backgroundColor_brandPurple__13rr0b21f", brandPrio: "color_backgroundColor_brandPrio__13rr0b21g", yellowLighter: "color_backgroundColor_yellowLighter__13rr0b21h", yellowLight: "color_backgroundColor_yellowLight__13rr0b21i", blueLight: "color_backgroundColor_blueLight__13rr0b21j", blueLighter: "color_backgroundColor_blueLighter__13rr0b21k", blueMedium: "color_backgroundColor_blueMedium__13rr0b21l", greenLight: "color_backgroundColor_greenLight__13rr0b21m", greenMedium: "color_backgroundColor_greenMedium__13rr0b21n", redLight: "color_backgroundColor_redLight__13rr0b21o", recipeVego: "color_backgroundColor_recipeVego__13rr0b21p", recipeLactose: "color_backgroundColor_recipeLactose__13rr0b21q", recipeGluten: "color_backgroundColor_recipeGluten__13rr0b21r", link: "color_backgroundColor_link__13rr0b21s", white: "color_backgroundColor_white__13rr0b21t", black: "color_backgroundColor_black__13rr0b21u", lightest: "color_backgroundColor_lightest__13rr0b21v", lighter: "color_backgroundColor_lighter__13rr0b21w", light: "color_backgroundColor_light__13rr0b21x", medium: "color_backgroundColor_medium__13rr0b21y", mediumDark: "color_backgroundColor_mediumDark__13rr0b21z", dark: "color_backgroundColor_dark__13rr0b220", darker: "color_backgroundColor_darker__13rr0b221", darkest: "color_backgroundColor_darkest__13rr0b222", buttonGray: "color_backgroundColor_buttonGray__13rr0b223", disabledGray: "color_backgroundColor_disabledGray__13rr0b224", disabledDarkGray: "color_backgroundColor_disabledDarkGray__13rr0b225", placeholder: "color_backgroundColor_placeholder__13rr0b226", border: "color_backgroundColor_border__13rr0b227", boxShadow: "color_backgroundColor_boxShadow__13rr0b228", boxShadowActive: "color_backgroundColor_boxShadowActive__13rr0b229", alertRed: "color_backgroundColor_alertRed__13rr0b22a", alertBlue: "color_backgroundColor_alertBlue__13rr0b22b", alertGreen: "color_backgroundColor_alertGreen__13rr0b22c", darkOverlay: "color_backgroundColor_darkOverlay__13rr0b22d", transparent: "color_backgroundColor_transparent__13rr0b22e", brandBlueHover: "color_backgroundColor_brandBlueHover__13rr0b22f", brandYellowHover: "color_backgroundColor_brandYellowHover__13rr0b22g", brandPrioHover: "color_backgroundColor_brandPrioHover__13rr0b22h", brandBlueActive: "color_backgroundColor_brandBlueActive__13rr0b22i", brandYellowActive: "color_backgroundColor_brandYellowActive__13rr0b22j", brandPrioActive: "color_backgroundColor_brandPrioActive__13rr0b22k", none: "color_backgroundColor_none__13rr0b22l" }, hoverBackgroundColor: { primary: "color_hoverBackgroundColor_primary__13rr0b23x", secondary: "color_hoverBackgroundColor_secondary__13rr0b23y", brandYellow: "color_hoverBackgroundColor_brandYellow__13rr0b23z", brandBlue: "color_hoverBackgroundColor_brandBlue__13rr0b240", brandPurple: "color_hoverBackgroundColor_brandPurple__13rr0b241", brandPrio: "color_hoverBackgroundColor_brandPrio__13rr0b242", yellowLighter: "color_hoverBackgroundColor_yellowLighter__13rr0b243", yellowLight: "color_hoverBackgroundColor_yellowLight__13rr0b244", blueLight: "color_hoverBackgroundColor_blueLight__13rr0b245", blueLighter: "color_hoverBackgroundColor_blueLighter__13rr0b246", blueMedium: "color_hoverBackgroundColor_blueMedium__13rr0b247", greenLight: "color_hoverBackgroundColor_greenLight__13rr0b248", greenMedium: "color_hoverBackgroundColor_greenMedium__13rr0b249", redLight: "color_hoverBackgroundColor_redLight__13rr0b24a", recipeVego: "color_hoverBackgroundColor_recipeVego__13rr0b24b", recipeLactose: "color_hoverBackgroundColor_recipeLactose__13rr0b24c", recipeGluten: "color_hoverBackgroundColor_recipeGluten__13rr0b24d", link: "color_hoverBackgroundColor_link__13rr0b24e", white: "color_hoverBackgroundColor_white__13rr0b24f", black: "color_hoverBackgroundColor_black__13rr0b24g", lightest: "color_hoverBackgroundColor_lightest__13rr0b24h", lighter: "color_hoverBackgroundColor_lighter__13rr0b24i", light: "color_hoverBackgroundColor_light__13rr0b24j", medium: "color_hoverBackgroundColor_medium__13rr0b24k", mediumDark: "color_hoverBackgroundColor_mediumDark__13rr0b24l", dark: "color_hoverBackgroundColor_dark__13rr0b24m", darker: "color_hoverBackgroundColor_darker__13rr0b24n", darkest: "color_hoverBackgroundColor_darkest__13rr0b24o", buttonGray: "color_hoverBackgroundColor_buttonGray__13rr0b24p", disabledGray: "color_hoverBackgroundColor_disabledGray__13rr0b24q", disabledDarkGray: "color_hoverBackgroundColor_disabledDarkGray__13rr0b24r", placeholder: "color_hoverBackgroundColor_placeholder__13rr0b24s", border: "color_hoverBackgroundColor_border__13rr0b24t", boxShadow: "color_hoverBackgroundColor_boxShadow__13rr0b24u", boxShadowActive: "color_hoverBackgroundColor_boxShadowActive__13rr0b24v", alertRed: "color_hoverBackgroundColor_alertRed__13rr0b24w", alertBlue: "color_hoverBackgroundColor_alertBlue__13rr0b24x", alertGreen: "color_hoverBackgroundColor_alertGreen__13rr0b24y", darkOverlay: "color_hoverBackgroundColor_darkOverlay__13rr0b24z", transparent: "color_hoverBackgroundColor_transparent__13rr0b250", brandBlueHover: "color_hoverBackgroundColor_brandBlueHover__13rr0b251", brandYellowHover: "color_hoverBackgroundColor_brandYellowHover__13rr0b252", brandPrioHover: "color_hoverBackgroundColor_brandPrioHover__13rr0b253", brandBlueActive: "color_hoverBackgroundColor_brandBlueActive__13rr0b254", brandYellowActive: "color_hoverBackgroundColor_brandYellowActive__13rr0b255", brandPrioActive: "color_hoverBackgroundColor_brandPrioActive__13rr0b256", none: "color_hoverBackgroundColor_none__13rr0b257" }, borderColor: { primary: "border_borderColor_primary__c3f0gf0", secondary: "border_borderColor_secondary__c3f0gf1", brandYellow: "border_borderColor_brandYellow__c3f0gf2", brandBlue: "border_borderColor_brandBlue__c3f0gf3", brandPurple: "border_borderColor_brandPurple__c3f0gf4", brandPrio: "border_borderColor_brandPrio__c3f0gf5", yellowLighter: "border_borderColor_yellowLighter__c3f0gf6", yellowLight: "border_borderColor_yellowLight__c3f0gf7", blueLight: "border_borderColor_blueLight__c3f0gf8", blueLighter: "border_borderColor_blueLighter__c3f0gf9", blueMedium: "border_borderColor_blueMedium__c3f0gfa", greenLight: "border_borderColor_greenLight__c3f0gfb", greenMedium: "border_borderColor_greenMedium__c3f0gfc", redLight: "border_borderColor_redLight__c3f0gfd", recipeVego: "border_borderColor_recipeVego__c3f0gfe", recipeLactose: "border_borderColor_recipeLactose__c3f0gff", recipeGluten: "border_borderColor_recipeGluten__c3f0gfg", link: "border_borderColor_link__c3f0gfh", white: "border_borderColor_white__c3f0gfi", black: "border_borderColor_black__c3f0gfj", lightest: "border_borderColor_lightest__c3f0gfk", lighter: "border_borderColor_lighter__c3f0gfl", light: "border_borderColor_light__c3f0gfm", medium: "border_borderColor_medium__c3f0gfn", mediumDark: "border_borderColor_mediumDark__c3f0gfo", dark: "border_borderColor_dark__c3f0gfp", darker: "border_borderColor_darker__c3f0gfq", darkest: "border_borderColor_darkest__c3f0gfr", buttonGray: "border_borderColor_buttonGray__c3f0gfs", disabledGray: "border_borderColor_disabledGray__c3f0gft", disabledDarkGray: "border_borderColor_disabledDarkGray__c3f0gfu", placeholder: "border_borderColor_placeholder__c3f0gfv", border: "border_borderColor_border__c3f0gfw", boxShadow: "border_borderColor_boxShadow__c3f0gfx", boxShadowActive: "border_borderColor_boxShadowActive__c3f0gfy", alertRed: "border_borderColor_alertRed__c3f0gfz", alertBlue: "border_borderColor_alertBlue__c3f0gf10", alertGreen: "border_borderColor_alertGreen__c3f0gf11", darkOverlay: "border_borderColor_darkOverlay__c3f0gf12", transparent: "border_borderColor_transparent__c3f0gf13", brandBlueHover: "border_borderColor_brandBlueHover__c3f0gf14", brandYellowHover: "border_borderColor_brandYellowHover__c3f0gf15", brandPrioHover: "border_borderColor_brandPrioHover__c3f0gf16", brandBlueActive: "border_borderColor_brandBlueActive__c3f0gf17", brandYellowActive: "border_borderColor_brandYellowActive__c3f0gf18", brandPrioActive: "border_borderColor_brandPrioActive__c3f0gf19", none: "border_borderColor_none__c3f0gf1a" }, borderRadius: { none: "border_borderRadius_none__c3f0gf1b", extraSmall: "border_borderRadius_extraSmall__c3f0gf1c", small: "border_borderRadius_small__c3f0gf1d", "default": "border_borderRadius_default__c3f0gf1e", big: "border_borderRadius_big__c3f0gf1f", bigger: "border_borderRadius_bigger__c3f0gf1g", large: "border_borderRadius_large__c3f0gf1h", round: "border_borderRadius_round__c3f0gf1i" }, margin: { xxxs: "spacings_margin_xxxs__e0awtz0", xxs: "spacings_margin_xxs__e0awtz1", xxs2: "spacings_margin_xxs2__e0awtz2", xs: "spacings_margin_xs__e0awtz3", xs2: "spacings_margin_xs2__e0awtz4", sm: "spacings_margin_sm__e0awtz5", sm2: "spacings_margin_sm2__e0awtz6", md: "spacings_margin_md__e0awtz7", lg: "spacings_margin_lg__e0awtz8", xl: "spacings_margin_xl__e0awtz9", xxl: "spacings_margin_xxl__e0awtza", false: "spacings_margin_false__e0awtzb" }, marginHorizontal: { xxxs: "spacings_marginHorizontal_xxxs__e0awtzc", xxs: "spacings_marginHorizontal_xxs__e0awtzd", xxs2: "spacings_marginHorizontal_xxs2__e0awtze", xs: "spacings_marginHorizontal_xs__e0awtzf", xs2: "spacings_marginHorizontal_xs2__e0awtzg", sm: "spacings_marginHorizontal_sm__e0awtzh", sm2: "spacings_marginHorizontal_sm2__e0awtzi", md: "spacings_marginHorizontal_md__e0awtzj", lg: "spacings_marginHorizontal_lg__e0awtzk", xl: "spacings_marginHorizontal_xl__e0awtzl", xxl: "spacings_marginHorizontal_xxl__e0awtzm", false: "spacings_marginHorizontal_false__e0awtzn" }, marginVertical: { xxxs: "spacings_marginVertical_xxxs__e0awtzo", xxs: "spacings_marginVertical_xxs__e0awtzp", xxs2: "spacings_marginVertical_xxs2__e0awtzq", xs: "spacings_marginVertical_xs__e0awtzr", xs2: "spacings_marginVertical_xs2__e0awtzs", sm: "spacings_marginVertical_sm__e0awtzt", sm2: "spacings_marginVertical_sm2__e0awtzu", md: "spacings_marginVertical_md__e0awtzv", lg: "spacings_marginVertical_lg__e0awtzw", xl: "spacings_marginVertical_xl__e0awtzx", xxl: "spacings_marginVertical_xxl__e0awtzy", false: "spacings_marginVertical_false__e0awtzz" }, padding: { xxxs: "spacings_padding_xxxs__e0awtz1c", xxs: "spacings_padding_xxs__e0awtz1d", xxs2: "spacings_padding_xxs2__e0awtz1e", xs: "spacings_padding_xs__e0awtz1f", xs2: "spacings_padding_xs2__e0awtz1g", sm: "spacings_padding_sm__e0awtz1h", sm2: "spacings_padding_sm2__e0awtz1i", md: "spacings_padding_md__e0awtz1j", lg: "spacings_padding_lg__e0awtz1k", xl: "spacings_padding_xl__e0awtz1l", xxl: "spacings_padding_xxl__e0awtz1m", false: "spacings_padding_false__e0awtz1n" }, paddingHorizontal: { xxxs: "spacings_paddingHorizontal_xxxs__e0awtz1o", xxs: "spacings_paddingHorizontal_xxs__e0awtz1p", xxs2: "spacings_paddingHorizontal_xxs2__e0awtz1q", xs: "spacings_paddingHorizontal_xs__e0awtz1r", xs2: "spacings_paddingHorizontal_xs2__e0awtz1s", sm: "spacings_paddingHorizontal_sm__e0awtz1t", sm2: "spacings_paddingHorizontal_sm2__e0awtz1u", md: "spacings_paddingHorizontal_md__e0awtz1v", lg: "spacings_paddingHorizontal_lg__e0awtz1w", xl: "spacings_paddingHorizontal_xl__e0awtz1x", xxl: "spacings_paddingHorizontal_xxl__e0awtz1y", false: "spacings_paddingHorizontal_false__e0awtz1z" }, paddingVertical: { xxxs: "spacings_paddingVertical_xxxs__e0awtz20", xxs: "spacings_paddingVertical_xxs__e0awtz21", xxs2: "spacings_paddingVertical_xxs2__e0awtz22", xs: "spacings_paddingVertical_xs__e0awtz23", xs2: "spacings_paddingVertical_xs2__e0awtz24", sm: "spacings_paddingVertical_sm__e0awtz25", sm2: "spacings_paddingVertical_sm2__e0awtz26", md: "spacings_paddingVertical_md__e0awtz27", lg: "spacings_paddingVertical_lg__e0awtz28", xl: "spacings_paddingVertical_xl__e0awtz29", xxl: "spacings_paddingVertical_xxl__e0awtz2a", false: "spacings_paddingVertical_false__e0awtz2b" }, border: { true: "Box_BoxStyle_border_true__inom6d66" } }, defaultVariants: { backgroundColor: "white", hoverBackgroundColor: "transparent", borderColor: "transparent", borderRadius: "none", padding: "sm" }, compoundVariants: [] });
|
|
7
|
+
var BoxStyle = createRuntimeFn({ defaultClassName: "Box__inom6d0", variantClassNames: { backgroundColor: { primary: "color_backgroundColor_primary__13rr0b21b", secondary: "color_backgroundColor_secondary__13rr0b21c", brandYellow: "color_backgroundColor_brandYellow__13rr0b21d", brandBlue: "color_backgroundColor_brandBlue__13rr0b21e", brandPurple: "color_backgroundColor_brandPurple__13rr0b21f", brandPrio: "color_backgroundColor_brandPrio__13rr0b21g", yellowLighter: "color_backgroundColor_yellowLighter__13rr0b21h", yellowLight: "color_backgroundColor_yellowLight__13rr0b21i", blueLight: "color_backgroundColor_blueLight__13rr0b21j", blueLighter: "color_backgroundColor_blueLighter__13rr0b21k", blueMedium: "color_backgroundColor_blueMedium__13rr0b21l", greenLight: "color_backgroundColor_greenLight__13rr0b21m", greenMedium: "color_backgroundColor_greenMedium__13rr0b21n", redLight: "color_backgroundColor_redLight__13rr0b21o", recipeVego: "color_backgroundColor_recipeVego__13rr0b21p", recipeLactose: "color_backgroundColor_recipeLactose__13rr0b21q", recipeGluten: "color_backgroundColor_recipeGluten__13rr0b21r", link: "color_backgroundColor_link__13rr0b21s", white: "color_backgroundColor_white__13rr0b21t", black: "color_backgroundColor_black__13rr0b21u", lightest: "color_backgroundColor_lightest__13rr0b21v", lighter: "color_backgroundColor_lighter__13rr0b21w", light: "color_backgroundColor_light__13rr0b21x", medium: "color_backgroundColor_medium__13rr0b21y", mediumDark: "color_backgroundColor_mediumDark__13rr0b21z", dark: "color_backgroundColor_dark__13rr0b220", darker: "color_backgroundColor_darker__13rr0b221", darkest: "color_backgroundColor_darkest__13rr0b222", buttonGray: "color_backgroundColor_buttonGray__13rr0b223", disabledGray: "color_backgroundColor_disabledGray__13rr0b224", disabledDarkGray: "color_backgroundColor_disabledDarkGray__13rr0b225", placeholder: "color_backgroundColor_placeholder__13rr0b226", border: "color_backgroundColor_border__13rr0b227", boxShadow: "color_backgroundColor_boxShadow__13rr0b228", boxShadowActive: "color_backgroundColor_boxShadowActive__13rr0b229", alertRed: "color_backgroundColor_alertRed__13rr0b22a", alertBlue: "color_backgroundColor_alertBlue__13rr0b22b", alertGreen: "color_backgroundColor_alertGreen__13rr0b22c", darkOverlay: "color_backgroundColor_darkOverlay__13rr0b22d", transparent: "color_backgroundColor_transparent__13rr0b22e", brandBlueHover: "color_backgroundColor_brandBlueHover__13rr0b22f", brandYellowHover: "color_backgroundColor_brandYellowHover__13rr0b22g", brandPrioHover: "color_backgroundColor_brandPrioHover__13rr0b22h", brandBlueActive: "color_backgroundColor_brandBlueActive__13rr0b22i", brandYellowActive: "color_backgroundColor_brandYellowActive__13rr0b22j", brandPrioActive: "color_backgroundColor_brandPrioActive__13rr0b22k", none: "color_backgroundColor_none__13rr0b22l" }, hoverBackgroundColor: { primary: "color_hoverBackgroundColor_primary__13rr0b23x", secondary: "color_hoverBackgroundColor_secondary__13rr0b23y", brandYellow: "color_hoverBackgroundColor_brandYellow__13rr0b23z", brandBlue: "color_hoverBackgroundColor_brandBlue__13rr0b240", brandPurple: "color_hoverBackgroundColor_brandPurple__13rr0b241", brandPrio: "color_hoverBackgroundColor_brandPrio__13rr0b242", yellowLighter: "color_hoverBackgroundColor_yellowLighter__13rr0b243", yellowLight: "color_hoverBackgroundColor_yellowLight__13rr0b244", blueLight: "color_hoverBackgroundColor_blueLight__13rr0b245", blueLighter: "color_hoverBackgroundColor_blueLighter__13rr0b246", blueMedium: "color_hoverBackgroundColor_blueMedium__13rr0b247", greenLight: "color_hoverBackgroundColor_greenLight__13rr0b248", greenMedium: "color_hoverBackgroundColor_greenMedium__13rr0b249", redLight: "color_hoverBackgroundColor_redLight__13rr0b24a", recipeVego: "color_hoverBackgroundColor_recipeVego__13rr0b24b", recipeLactose: "color_hoverBackgroundColor_recipeLactose__13rr0b24c", recipeGluten: "color_hoverBackgroundColor_recipeGluten__13rr0b24d", link: "color_hoverBackgroundColor_link__13rr0b24e", white: "color_hoverBackgroundColor_white__13rr0b24f", black: "color_hoverBackgroundColor_black__13rr0b24g", lightest: "color_hoverBackgroundColor_lightest__13rr0b24h", lighter: "color_hoverBackgroundColor_lighter__13rr0b24i", light: "color_hoverBackgroundColor_light__13rr0b24j", medium: "color_hoverBackgroundColor_medium__13rr0b24k", mediumDark: "color_hoverBackgroundColor_mediumDark__13rr0b24l", dark: "color_hoverBackgroundColor_dark__13rr0b24m", darker: "color_hoverBackgroundColor_darker__13rr0b24n", darkest: "color_hoverBackgroundColor_darkest__13rr0b24o", buttonGray: "color_hoverBackgroundColor_buttonGray__13rr0b24p", disabledGray: "color_hoverBackgroundColor_disabledGray__13rr0b24q", disabledDarkGray: "color_hoverBackgroundColor_disabledDarkGray__13rr0b24r", placeholder: "color_hoverBackgroundColor_placeholder__13rr0b24s", border: "color_hoverBackgroundColor_border__13rr0b24t", boxShadow: "color_hoverBackgroundColor_boxShadow__13rr0b24u", boxShadowActive: "color_hoverBackgroundColor_boxShadowActive__13rr0b24v", alertRed: "color_hoverBackgroundColor_alertRed__13rr0b24w", alertBlue: "color_hoverBackgroundColor_alertBlue__13rr0b24x", alertGreen: "color_hoverBackgroundColor_alertGreen__13rr0b24y", darkOverlay: "color_hoverBackgroundColor_darkOverlay__13rr0b24z", transparent: "color_hoverBackgroundColor_transparent__13rr0b250", brandBlueHover: "color_hoverBackgroundColor_brandBlueHover__13rr0b251", brandYellowHover: "color_hoverBackgroundColor_brandYellowHover__13rr0b252", brandPrioHover: "color_hoverBackgroundColor_brandPrioHover__13rr0b253", brandBlueActive: "color_hoverBackgroundColor_brandBlueActive__13rr0b254", brandYellowActive: "color_hoverBackgroundColor_brandYellowActive__13rr0b255", brandPrioActive: "color_hoverBackgroundColor_brandPrioActive__13rr0b256", none: "color_hoverBackgroundColor_none__13rr0b257" }, borderColor: { primary: "border_borderColor_primary__c3f0gf0", secondary: "border_borderColor_secondary__c3f0gf1", brandYellow: "border_borderColor_brandYellow__c3f0gf2", brandBlue: "border_borderColor_brandBlue__c3f0gf3", brandPurple: "border_borderColor_brandPurple__c3f0gf4", brandPrio: "border_borderColor_brandPrio__c3f0gf5", yellowLighter: "border_borderColor_yellowLighter__c3f0gf6", yellowLight: "border_borderColor_yellowLight__c3f0gf7", blueLight: "border_borderColor_blueLight__c3f0gf8", blueLighter: "border_borderColor_blueLighter__c3f0gf9", blueMedium: "border_borderColor_blueMedium__c3f0gfa", greenLight: "border_borderColor_greenLight__c3f0gfb", greenMedium: "border_borderColor_greenMedium__c3f0gfc", redLight: "border_borderColor_redLight__c3f0gfd", recipeVego: "border_borderColor_recipeVego__c3f0gfe", recipeLactose: "border_borderColor_recipeLactose__c3f0gff", recipeGluten: "border_borderColor_recipeGluten__c3f0gfg", link: "border_borderColor_link__c3f0gfh", white: "border_borderColor_white__c3f0gfi", black: "border_borderColor_black__c3f0gfj", lightest: "border_borderColor_lightest__c3f0gfk", lighter: "border_borderColor_lighter__c3f0gfl", light: "border_borderColor_light__c3f0gfm", medium: "border_borderColor_medium__c3f0gfn", mediumDark: "border_borderColor_mediumDark__c3f0gfo", dark: "border_borderColor_dark__c3f0gfp", darker: "border_borderColor_darker__c3f0gfq", darkest: "border_borderColor_darkest__c3f0gfr", buttonGray: "border_borderColor_buttonGray__c3f0gfs", disabledGray: "border_borderColor_disabledGray__c3f0gft", disabledDarkGray: "border_borderColor_disabledDarkGray__c3f0gfu", placeholder: "border_borderColor_placeholder__c3f0gfv", border: "border_borderColor_border__c3f0gfw", boxShadow: "border_borderColor_boxShadow__c3f0gfx", boxShadowActive: "border_borderColor_boxShadowActive__c3f0gfy", alertRed: "border_borderColor_alertRed__c3f0gfz", alertBlue: "border_borderColor_alertBlue__c3f0gf10", alertGreen: "border_borderColor_alertGreen__c3f0gf11", darkOverlay: "border_borderColor_darkOverlay__c3f0gf12", transparent: "border_borderColor_transparent__c3f0gf13", brandBlueHover: "border_borderColor_brandBlueHover__c3f0gf14", brandYellowHover: "border_borderColor_brandYellowHover__c3f0gf15", brandPrioHover: "border_borderColor_brandPrioHover__c3f0gf16", brandBlueActive: "border_borderColor_brandBlueActive__c3f0gf17", brandYellowActive: "border_borderColor_brandYellowActive__c3f0gf18", brandPrioActive: "border_borderColor_brandPrioActive__c3f0gf19", none: "border_borderColor_none__c3f0gf1a" }, borderRadius: { none: "border_borderRadius_none__c3f0gf1b", extraSmall: "border_borderRadius_extraSmall__c3f0gf1c", small: "border_borderRadius_small__c3f0gf1d", "default": "border_borderRadius_default__c3f0gf1e", big: "border_borderRadius_big__c3f0gf1f", bigger: "border_borderRadius_bigger__c3f0gf1g", large: "border_borderRadius_large__c3f0gf1h", round: "border_borderRadius_round__c3f0gf1i" }, margin: { xxxs: "spacings_margin_xxxs__e0awtz0", xxs: "spacings_margin_xxs__e0awtz1", xxs2: "spacings_margin_xxs2__e0awtz2", xs: "spacings_margin_xs__e0awtz3", xs2: "spacings_margin_xs2__e0awtz4", sm: "spacings_margin_sm__e0awtz5", sm2: "spacings_margin_sm2__e0awtz6", md: "spacings_margin_md__e0awtz7", lg: "spacings_margin_lg__e0awtz8", xl: "spacings_margin_xl__e0awtz9", xxl: "spacings_margin_xxl__e0awtza", false: "spacings_margin_false__e0awtzb" }, marginHorizontal: { xxxs: "spacings_marginHorizontal_xxxs__e0awtzc", xxs: "spacings_marginHorizontal_xxs__e0awtzd", xxs2: "spacings_marginHorizontal_xxs2__e0awtze", xs: "spacings_marginHorizontal_xs__e0awtzf", xs2: "spacings_marginHorizontal_xs2__e0awtzg", sm: "spacings_marginHorizontal_sm__e0awtzh", sm2: "spacings_marginHorizontal_sm2__e0awtzi", md: "spacings_marginHorizontal_md__e0awtzj", lg: "spacings_marginHorizontal_lg__e0awtzk", xl: "spacings_marginHorizontal_xl__e0awtzl", xxl: "spacings_marginHorizontal_xxl__e0awtzm", false: "spacings_marginHorizontal_false__e0awtzn" }, marginVertical: { xxxs: "spacings_marginVertical_xxxs__e0awtzo", xxs: "spacings_marginVertical_xxs__e0awtzp", xxs2: "spacings_marginVertical_xxs2__e0awtzq", xs: "spacings_marginVertical_xs__e0awtzr", xs2: "spacings_marginVertical_xs2__e0awtzs", sm: "spacings_marginVertical_sm__e0awtzt", sm2: "spacings_marginVertical_sm2__e0awtzu", md: "spacings_marginVertical_md__e0awtzv", lg: "spacings_marginVertical_lg__e0awtzw", xl: "spacings_marginVertical_xl__e0awtzx", xxl: "spacings_marginVertical_xxl__e0awtzy", false: "spacings_marginVertical_false__e0awtzz" }, padding: { xxxs: "spacings_padding_xxxs__e0awtz1c", xxs: "spacings_padding_xxs__e0awtz1d", xxs2: "spacings_padding_xxs2__e0awtz1e", xs: "spacings_padding_xs__e0awtz1f", xs2: "spacings_padding_xs2__e0awtz1g", sm: "spacings_padding_sm__e0awtz1h", sm2: "spacings_padding_sm2__e0awtz1i", md: "spacings_padding_md__e0awtz1j", lg: "spacings_padding_lg__e0awtz1k", xl: "spacings_padding_xl__e0awtz1l", xxl: "spacings_padding_xxl__e0awtz1m", false: "spacings_padding_false__e0awtz1n" }, paddingHorizontal: { xxxs: "spacings_paddingHorizontal_xxxs__e0awtz1o", xxs: "spacings_paddingHorizontal_xxs__e0awtz1p", xxs2: "spacings_paddingHorizontal_xxs2__e0awtz1q", xs: "spacings_paddingHorizontal_xs__e0awtz1r", xs2: "spacings_paddingHorizontal_xs2__e0awtz1s", sm: "spacings_paddingHorizontal_sm__e0awtz1t", sm2: "spacings_paddingHorizontal_sm2__e0awtz1u", md: "spacings_paddingHorizontal_md__e0awtz1v", lg: "spacings_paddingHorizontal_lg__e0awtz1w", xl: "spacings_paddingHorizontal_xl__e0awtz1x", xxl: "spacings_paddingHorizontal_xxl__e0awtz1y", false: "spacings_paddingHorizontal_false__e0awtz1z" }, paddingVertical: { xxxs: "spacings_paddingVertical_xxxs__e0awtz20", xxs: "spacings_paddingVertical_xxs__e0awtz21", xxs2: "spacings_paddingVertical_xxs2__e0awtz22", xs: "spacings_paddingVertical_xs__e0awtz23", xs2: "spacings_paddingVertical_xs2__e0awtz24", sm: "spacings_paddingVertical_sm__e0awtz25", sm2: "spacings_paddingVertical_sm2__e0awtz26", md: "spacings_paddingVertical_md__e0awtz27", lg: "spacings_paddingVertical_lg__e0awtz28", xl: "spacings_paddingVertical_xl__e0awtz29", xxl: "spacings_paddingVertical_xxl__e0awtz2a", false: "spacings_paddingVertical_false__e0awtz2b" }, border: { true: "Box_BoxStyle_border_true__inom6d66" } }, defaultVariants: { backgroundColor: "white", borderColor: "transparent", borderRadius: "none", padding: "sm" }, compoundVariants: [] });
|
|
8
8
|
|
|
9
9
|
export { BoxStyle };
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
.Button_buttonBase__fe4m9p0 {
|
|
2
|
+
outline: none;
|
|
3
|
+
border: none;
|
|
4
|
+
}
|
|
5
|
+
.Button_buttonBase__fe4m9p0:disabled {
|
|
6
|
+
color: #FFFFFF;
|
|
7
|
+
background-color: #E8E8E8;
|
|
8
|
+
cursor: default;
|
|
9
|
+
}
|
|
10
|
+
.Button_buttonBase__fe4m9p0:focus-visible:not(:hover) {
|
|
11
|
+
outline: none;
|
|
12
|
+
box-shadow: 0 0 0 2px #fff,0 0 0 4px #000,0 0 0 6px #fff;
|
|
13
|
+
transition: all 0.1s ease-in-out;
|
|
14
|
+
}
|
|
15
|
+
.Button_buttonVariant_primary__fe4m9p1 {
|
|
16
|
+
background-color: #0069AE;
|
|
17
|
+
color: #FFFFFF;
|
|
18
|
+
}
|
|
19
|
+
.Button_buttonVariant_primary__fe4m9p1:hover:not(:disabled) {
|
|
20
|
+
background-color: #005C99;
|
|
21
|
+
}
|
|
22
|
+
.Button_buttonVariant_primary__fe4m9p1:active:not(:disabled) {
|
|
23
|
+
background-color: #004D80;
|
|
24
|
+
}
|
|
25
|
+
.Button_buttonVariant_secondary__fe4m9p2 {
|
|
26
|
+
background-color: #FFFFFF;
|
|
27
|
+
color: #333333;
|
|
28
|
+
border: 1px solid #B8B8B8;
|
|
29
|
+
}
|
|
30
|
+
.Button_buttonVariant_secondary__fe4m9p2:hover:not(:disabled) {
|
|
31
|
+
background-color: #F7F7F7;
|
|
32
|
+
}
|
|
33
|
+
.Button_buttonVariant_secondary__fe4m9p2:active:not(:disabled) {
|
|
34
|
+
background-color: #F1F1F1;
|
|
35
|
+
}
|
|
36
|
+
.Button_buttonVariant_secondary__fe4m9p2:disabled {
|
|
37
|
+
color: #B8B8B8;
|
|
38
|
+
}
|
|
39
|
+
.Button_buttonVariant_ghost__fe4m9p3 {
|
|
40
|
+
background-color: #FFFFFF;
|
|
41
|
+
color: #333333;
|
|
42
|
+
}
|
|
43
|
+
.Button_buttonVariant_ghost__fe4m9p3:hover:not(:disabled) {
|
|
44
|
+
background-color: #F7F7F7;
|
|
45
|
+
}
|
|
46
|
+
.Button_buttonVariant_ghost__fe4m9p3:active:not(:disabled) {
|
|
47
|
+
background-color: #F1F1F1;
|
|
48
|
+
}
|
|
49
|
+
.Button_buttonVariant_ghost__fe4m9p3:disabled {
|
|
50
|
+
color: #B8B8B8;
|
|
51
|
+
}
|
|
52
|
+
.Button_buttonVariant_tertiary__fe4m9p4 {
|
|
53
|
+
background-color: #FFE522;
|
|
54
|
+
color: #333333;
|
|
55
|
+
}
|
|
56
|
+
.Button_buttonVariant_tertiary__fe4m9p4:hover:not(:disabled) {
|
|
57
|
+
background-color: #F5D800;
|
|
58
|
+
}
|
|
59
|
+
.Button_buttonVariant_tertiary__fe4m9p4:active:not(:disabled) {
|
|
60
|
+
background-color: #DBC100;
|
|
61
|
+
}
|
|
62
|
+
.Button_buttonVariant_prio__fe4m9p5 {
|
|
63
|
+
background-color: #A71680;
|
|
64
|
+
color: #FFFFFF;
|
|
65
|
+
}
|
|
66
|
+
.Button_buttonVariant_prio__fe4m9p5:hover:not(:disabled) {
|
|
67
|
+
background-color: #90136F;
|
|
68
|
+
}
|
|
69
|
+
.Button_buttonVariant_prio__fe4m9p5:active:not(:disabled) {
|
|
70
|
+
background-color: #7A105E;
|
|
71
|
+
}
|
|
72
|
+
.Button_buttonFontSize_small__fe4m9p6 {
|
|
73
|
+
font-size: 13px;
|
|
74
|
+
}
|
|
75
|
+
.Button_buttonFontSize_default__fe4m9p7 {
|
|
76
|
+
font-size: 15px;
|
|
77
|
+
}
|
|
78
|
+
.Button_buttonPadding_small__fe4m9p8 {
|
|
79
|
+
padding: 6px 8px;
|
|
80
|
+
}
|
|
81
|
+
.Button_buttonPadding_medium__fe4m9p9 {
|
|
82
|
+
padding: 8px 12px;
|
|
83
|
+
}
|
|
84
|
+
.Button_buttonPadding_large__fe4m9pa {
|
|
85
|
+
padding: 12px 16px;
|
|
86
|
+
}
|
|
87
|
+
.Button_buttonPadding_icon__fe4m9pb {
|
|
88
|
+
height: 32px;
|
|
89
|
+
width: 32px;
|
|
90
|
+
display: grid;
|
|
91
|
+
place-content: center;
|
|
92
|
+
}
|
|
93
|
+
.Button_buttonShadow_none__fe4m9pc {
|
|
94
|
+
box-shadow: none;
|
|
95
|
+
}
|
|
96
|
+
.Button_buttonShadow_small__fe4m9pd {
|
|
97
|
+
box-shadow: inset 0px -1px 0px rgba(0, 0, 0, 0.15);
|
|
98
|
+
}
|
|
99
|
+
.Button_buttonShadow_default__fe4m9pe {
|
|
100
|
+
box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.15);
|
|
101
|
+
}
|
|
102
|
+
.Button_buttonRadius_round__fe4m9pf {
|
|
103
|
+
border-radius: 100px;
|
|
104
|
+
box-shadow: none;
|
|
105
|
+
}
|
|
106
|
+
.Button_buttonRadius_default__fe4m9pg {
|
|
107
|
+
border-radius: 4px;
|
|
108
|
+
}
|
|
109
|
+
.Button_button__fe4m9ph {
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
position: relative;
|
|
112
|
+
}
|
|
113
|
+
.Button_button__fe4m9ph[data-loading="true"] {
|
|
114
|
+
background-color: #F7F7F7;
|
|
115
|
+
}
|
|
116
|
+
.Button_button_fullWidth_true__fe4m9pi {
|
|
117
|
+
width: 100%;
|
|
118
|
+
}
|
|
119
|
+
.Button_buttonContent__fe4m9px {
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
align-items: center;
|
|
123
|
+
gap: 8px;
|
|
124
|
+
flex-direction: row;
|
|
125
|
+
white-space: nowrap;
|
|
126
|
+
min-width: max-content;
|
|
127
|
+
}
|
|
128
|
+
.Button_buttonContent_flexReverse_true__fe4m9p10 {
|
|
129
|
+
flex-direction: row-reverse;
|
|
130
|
+
}
|
|
131
|
+
.Button_buttonContent_loading_true__fe4m9p11 {
|
|
132
|
+
opacity: 0;
|
|
133
|
+
}
|
|
134
|
+
.Button_buttonLoader__fe4m9p12 {
|
|
135
|
+
position: absolute;
|
|
136
|
+
top: 0;
|
|
137
|
+
left: 0;
|
|
138
|
+
right: 0;
|
|
139
|
+
bottom: 0;
|
|
140
|
+
display: grid;
|
|
141
|
+
place-content: center;
|
|
142
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './Button.css.ts.vanilla.css';
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
|
+
|
|
4
|
+
var button = createRuntimeFn({ defaultClassName: "Button_button__fe4m9ph Button_buttonBase__fe4m9p0", variantClassNames: { fullWidth: { true: "Button_button_fullWidth_true__fe4m9pi" }, buttonRadius: { round: "Button_buttonRadius_round__fe4m9pf", "default": "Button_buttonRadius_default__fe4m9pg" }, buttonShadow: { none: "Button_buttonShadow_none__fe4m9pc", small: "Button_buttonShadow_small__fe4m9pd", "default": "Button_buttonShadow_default__fe4m9pe" }, buttonVariant: { primary: "Button_buttonVariant_primary__fe4m9p1", secondary: "Button_buttonVariant_secondary__fe4m9p2", ghost: "Button_buttonVariant_ghost__fe4m9p3", tertiary: "Button_buttonVariant_tertiary__fe4m9p4", prio: "Button_buttonVariant_prio__fe4m9p5" }, buttonPadding: { small: "Button_buttonPadding_small__fe4m9p8", medium: "Button_buttonPadding_medium__fe4m9p9", large: "Button_buttonPadding_large__fe4m9pa", icon: "Button_buttonPadding_icon__fe4m9pb" } }, defaultVariants: { buttonPadding: "large", buttonRadius: "default", buttonShadow: "default", buttonVariant: "primary" }, compoundVariants: [] });
|
|
5
|
+
var buttonContent = createRuntimeFn({ defaultClassName: "Button_buttonContent__fe4m9px", variantClassNames: { buttonFontSize: { small: "Button_buttonFontSize_small__fe4m9p6", "default": "Button_buttonFontSize_default__fe4m9p7" }, flexReverse: { true: "Button_buttonContent_flexReverse_true__fe4m9p10" }, loading: { true: "Button_buttonContent_loading_true__fe4m9p11" } }, defaultVariants: { buttonFontSize: "default" }, compoundVariants: [] });
|
|
6
|
+
var buttonLoader = "Button_buttonLoader__fe4m9p12";
|
|
7
|
+
|
|
8
|
+
export { button, buttonContent, buttonLoader };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { button, buttonContent, buttonLoader } from './Button.css.vanilla.js';
|
|
3
|
+
import { Spinner } from '../Spinner/Spinner.js';
|
|
4
|
+
|
|
5
|
+
const Button = ({
|
|
6
|
+
size,
|
|
7
|
+
variant,
|
|
8
|
+
icon,
|
|
9
|
+
flexReverse,
|
|
10
|
+
disabled,
|
|
11
|
+
onClick,
|
|
12
|
+
children,
|
|
13
|
+
loading,
|
|
14
|
+
fullWidth,
|
|
15
|
+
buttonRef,
|
|
16
|
+
round,
|
|
17
|
+
className
|
|
18
|
+
}) => {
|
|
19
|
+
return /* @__PURE__ */ React.createElement(
|
|
20
|
+
"button",
|
|
21
|
+
{
|
|
22
|
+
ref: buttonRef,
|
|
23
|
+
className: `${button({
|
|
24
|
+
buttonPadding: size,
|
|
25
|
+
buttonRadius: round ? "round" : "default",
|
|
26
|
+
buttonVariant: variant,
|
|
27
|
+
fullWidth,
|
|
28
|
+
buttonShadow: variant === "ghost" || variant === "secondary" ? "none" : size === "small" ? "small" : "default"
|
|
29
|
+
})} ${className}`,
|
|
30
|
+
disabled: disabled || loading,
|
|
31
|
+
onKeyDown: (event) => {
|
|
32
|
+
if (event.key === "Enter") {
|
|
33
|
+
onClick && onClick();
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
onClick: (e) => {
|
|
37
|
+
e.preventDefault();
|
|
38
|
+
onClick && onClick();
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
/* @__PURE__ */ React.createElement(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
className: buttonContent({
|
|
45
|
+
buttonFontSize: size === "small" ? "small" : "default",
|
|
46
|
+
flexReverse,
|
|
47
|
+
loading
|
|
48
|
+
})
|
|
49
|
+
},
|
|
50
|
+
icon,
|
|
51
|
+
children
|
|
52
|
+
),
|
|
53
|
+
loading && /* @__PURE__ */ React.createElement("div", { className: buttonLoader }, /* @__PURE__ */ React.createElement(Spinner, { size: size === "small" ? "small" : "medium" }))
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { Button };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BodyText } from '../../typography/BodyText/BodyText.js';
|
|
3
2
|
import Skeleton from '../Skeleton/Skeleton.js';
|
|
4
3
|
import { formatPrice } from '@citygross/utils';
|
|
5
4
|
import { H3 } from '../../typography/H3/H3.js';
|
|
6
5
|
import { cartitemsummary, cancelledWrapper, amountText, itemInformationContainer } from './CartItemSummary.css.vanilla.js';
|
|
6
|
+
import { BodyText } from '../../typography/BodyText/BodyText.js';
|
|
7
7
|
|
|
8
8
|
const CartItemSummary = ({
|
|
9
9
|
product,
|
|
@@ -13,7 +13,7 @@ const CartItemSummary = ({
|
|
|
13
13
|
return /* @__PURE__ */ React.createElement("div", { className: cartitemsummary }, product && (product.amount === 0 || product.amount) && product?.cancelledQuantity !== 0 && product?.cancelledQuantity && /* @__PURE__ */ React.createElement("div", { className: cancelledWrapper }, /* @__PURE__ */ React.createElement(BodyText, { size: "small", textDecoration: "lineThrough" }, product?.cancelledQuantity ? `${product.cancelledQuantity} st` : /* @__PURE__ */ React.createElement(Skeleton, { width: 104 })), /* @__PURE__ */ React.createElement(
|
|
14
14
|
H3,
|
|
15
15
|
{
|
|
16
|
-
|
|
16
|
+
className: amountText,
|
|
17
17
|
lineThrough: true,
|
|
18
18
|
fontWeight: withParenthesis ? "regular" : "semiBold"
|
|
19
19
|
},
|
|
@@ -21,7 +21,7 @@ const CartItemSummary = ({
|
|
|
21
21
|
)), /* @__PURE__ */ React.createElement("div", { className: itemInformationContainer }, /* @__PURE__ */ React.createElement(BodyText, { size: "small" }, product?.quantity || product?.quantity === 0 ? `${product.quantity} ${unit}` : /* @__PURE__ */ React.createElement(Skeleton, { width: 104 })), /* @__PURE__ */ React.createElement(
|
|
22
22
|
H3,
|
|
23
23
|
{
|
|
24
|
-
|
|
24
|
+
className: amountText,
|
|
25
25
|
fontWeight: withParenthesis ? "regular" : "semiBold"
|
|
26
26
|
},
|
|
27
27
|
product ? formatPrice(product.amount, withParenthesis) : /* @__PURE__ */ React.createElement(Skeleton, { width: 104 })
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.Header_wrapper__11gdejs0 {
|
|
2
|
+
position: relative;
|
|
3
|
+
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.07);
|
|
4
|
+
}
|
|
5
|
+
.Header_headerWrapper__11gdejs1 {
|
|
6
|
+
background-color: #FFFFFF;
|
|
7
|
+
margin: 0 auto;
|
|
8
|
+
max-width: 1232px;
|
|
9
|
+
padding: 12px;
|
|
10
|
+
}
|
|
11
|
+
.Header_headerContainer__11gdejs2 {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
align-items: center;
|
|
15
|
+
}
|
|
16
|
+
.Header_menuIconContainer__11gdejs3 {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-self: center;
|
|
19
|
+
}
|
|
20
|
+
.Header_sideModalHeader__11gdejs4 {
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
padding: 12px;
|
|
24
|
+
}
|
|
25
|
+
@media screen and (min-width: 960px) {
|
|
26
|
+
.Header_headerWrapper__11gdejs1 {
|
|
27
|
+
padding: 20px 24px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './Header.css.ts.vanilla.css';
|
|
2
|
+
|
|
3
|
+
var headerContainer = "Header_headerContainer__11gdejs2";
|
|
4
|
+
var headerWrapper = "Header_headerWrapper__11gdejs1";
|
|
5
|
+
var menuIconContainer = "Header_menuIconContainer__11gdejs3";
|
|
6
|
+
var sideModalHeader = "Header_sideModalHeader__11gdejs4";
|
|
7
|
+
var wrapper = "Header_wrapper__11gdejs0";
|
|
8
|
+
|
|
9
|
+
export { headerContainer, headerWrapper, menuIconContainer, sideModalHeader, wrapper };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
declare type THeader = {
|
|
4
|
+
btnLabel?: string;
|
|
5
|
+
btnOnClick?: () => void;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
headerLink?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
declare const Header: ({ btnLabel, btnOnClick, children, headerLink }: THeader) => JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { Header, THeader };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { Button } from '../Button/Button.js';
|
|
3
|
+
import { SideModal } from '@citygross/components';
|
|
4
|
+
import { Icons } from '@citygross/icons';
|
|
5
|
+
import { theme } from '@citygross/design-tokens';
|
|
6
|
+
import { wrapper, headerWrapper, headerContainer, menuIconContainer, sideModalHeader } from './Header.css.vanilla.js';
|
|
7
|
+
|
|
8
|
+
const Header = ({
|
|
9
|
+
btnLabel,
|
|
10
|
+
btnOnClick,
|
|
11
|
+
children,
|
|
12
|
+
headerLink
|
|
13
|
+
}) => {
|
|
14
|
+
const [showSideModal, setShowSideModal] = useState(false);
|
|
15
|
+
const isMobile = window.innerWidth < (theme.breakpoints?.lg ?? 960);
|
|
16
|
+
return /* @__PURE__ */ React.createElement("div", { className: wrapper }, headerLink && headerLink, /* @__PURE__ */ React.createElement("div", { className: headerWrapper }, /* @__PURE__ */ React.createElement("div", { className: headerContainer }, isMobile ? /* @__PURE__ */ React.createElement(Icons.LogoFlat, null) : /* @__PURE__ */ React.createElement(Icons.Logo, null), isMobile ? /* @__PURE__ */ React.createElement(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
className: menuIconContainer,
|
|
20
|
+
onClick: () => setShowSideModal(true)
|
|
21
|
+
},
|
|
22
|
+
/* @__PURE__ */ React.createElement(Icons.Menu, null)
|
|
23
|
+
) : btnLabel && /* @__PURE__ */ React.createElement(Button, { onClick: btnOnClick, variant: "secondary" }, btnLabel))), showSideModal && /* @__PURE__ */ React.createElement(
|
|
24
|
+
SideModal,
|
|
25
|
+
{
|
|
26
|
+
isVisible: true,
|
|
27
|
+
onBackdropClick: () => setShowSideModal(false),
|
|
28
|
+
slideFrom: "right"
|
|
29
|
+
},
|
|
30
|
+
/* @__PURE__ */ React.createElement("div", { className: sideModalHeader }, /* @__PURE__ */ React.createElement(Icons.LogoFlat, null), /* @__PURE__ */ React.createElement(
|
|
31
|
+
Button,
|
|
32
|
+
{
|
|
33
|
+
icon: /* @__PURE__ */ React.createElement(Icons.Cross, { height: 16, width: 16 }),
|
|
34
|
+
onClick: () => setShowSideModal(false),
|
|
35
|
+
round: true,
|
|
36
|
+
variant: "secondary",
|
|
37
|
+
size: "small"
|
|
38
|
+
}
|
|
39
|
+
)),
|
|
40
|
+
children
|
|
41
|
+
));
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { Header };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { Box, TBox } from './components/Box/Box.js';
|
|
2
2
|
export { AlertBox, TAlertBox } from './components/AlertBox/AlertBox.js';
|
|
3
|
+
export { Header, THeader } from './components/Header/Header.js';
|
|
3
4
|
export { CartItemSummary, TCartItemSummary, TSummaryItem } from './components/CartItemSummary/CartItemSummary.js';
|
|
4
5
|
export { Divider, TDivider } from './components/Divider/Divider.js';
|
|
5
6
|
export { Dot, TDot } from './components/Dot/Dot.js';
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export { AlertBox } from './components/AlertBox/AlertBox.js';
|
|
|
3
3
|
import '@citygross/icons_v2';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './components/BoxArrow/BoxArrow.css.vanilla.js';
|
|
6
|
+
export { Header } from './components/Header/Header.js';
|
|
6
7
|
export { CartItemSummary } from './components/CartItemSummary/CartItemSummary.js';
|
|
7
8
|
export { Divider } from './components/Divider/Divider.js';
|
|
8
9
|
export { Dot } from './components/Dot/Dot.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components_v2",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"react-dom": "^17.0.1"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
+
"@citygross/components": "^0.8.51",
|
|
68
69
|
"@citygross/design-tokens_v2": "^0.0.3",
|
|
69
70
|
"@citygross/icons": "^0.1.12",
|
|
70
71
|
"@citygross/react-use-bg-wizard": "^0.0.8",
|
|
@@ -79,5 +80,5 @@
|
|
|
79
80
|
"react-slick": "^0.30.1",
|
|
80
81
|
"slick-carousel": "^1.8.1"
|
|
81
82
|
},
|
|
82
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "4680516ff99a0ed654230c4986d5292f3627e099"
|
|
83
84
|
}
|