@citygross/components 0.14.7 → 0.14.9

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.
Files changed (123) hide show
  1. package/build/@types/components/Accordion/Accordion.d.ts +3 -2
  2. package/build/@types/components/Accordion/Accordion.styles.d.ts +3 -1
  3. package/build/@types/components/AddressBlock/AddressBlock.d.ts +1 -1
  4. package/build/@types/components/AlertBox/AlertBox.d.ts +1 -1
  5. package/build/@types/components/BackButton/BackButton.d.ts +2 -2
  6. package/build/@types/components/BackgroundImage/BackgroundImage.d.ts +2 -2
  7. package/build/@types/components/Badge/Badge.d.ts +1 -1
  8. package/build/@types/components/Box/Box.d.ts +1 -1
  9. package/build/@types/components/BoxArrow/BoxArrow.d.ts +2 -2
  10. package/build/@types/components/Button/Button.d.ts +1 -1
  11. package/build/@types/components/Button/Button.styles.d.ts +1 -1
  12. package/build/@types/components/Button/IconButton.d.ts +2 -2
  13. package/build/@types/components/Button/PaginationButton.d.ts +1 -1
  14. package/build/@types/components/Button/SaveButton.d.ts +1 -1
  15. package/build/@types/components/CartCard/CartCard.d.ts +1 -1
  16. package/build/@types/components/CartCardLabel/CartCardLabel.d.ts +2 -2
  17. package/build/@types/components/CartItemSummary/CartItemSummary.d.ts +2 -2
  18. package/build/@types/components/CartItemSummary/CartItemSummary.styles.d.ts +1 -1
  19. package/build/@types/components/CartSubTotal/CartSubTotal.d.ts +1 -1
  20. package/build/@types/components/CartSummary/CartSummary.d.ts +1 -1
  21. package/build/@types/components/CgButton/ButtonAsLink/ButtonAsLink.d.ts +1 -1
  22. package/build/@types/components/CgButton/DivAsButton/DivAsButton.d.ts +2 -2
  23. package/build/@types/components/Chips/Chip.d.ts +2 -2
  24. package/build/@types/components/Chips/Chip.styles.d.ts +1 -1
  25. package/build/@types/components/CouponCode/CouponCode.d.ts +2 -2
  26. package/build/@types/components/CustomerInfoBlock/CustomerInfoBlock.d.ts +1 -1
  27. package/build/@types/components/DateBox/DateBox.d.ts +1 -1
  28. package/build/@types/components/DeliverySlotItem/DeliverySlotItem.d.ts +1 -1
  29. package/build/@types/components/DeliveryTimeBlock/DeliveryTimeBlock.d.ts +1 -1
  30. package/build/@types/components/DotIndicator/DotIndicator.d.ts +2 -2
  31. package/build/@types/components/Fieldset/Fieldset.d.ts +1 -1
  32. package/build/@types/components/Flex/Flex.d.ts +1 -1
  33. package/build/@types/components/Form/Form.d.ts +1 -1
  34. package/build/@types/components/FormControl/FormControl.d.ts +1 -1
  35. package/build/@types/components/FormElements/Checkbox/Checkbox.d.ts +2 -2
  36. package/build/@types/components/FormElements/InputOld/InputOld.d.ts +1 -1
  37. package/build/@types/components/FormElements/Radio/Radio.d.ts +2 -2
  38. package/build/@types/components/FormElements/Select/Select.d.ts +1 -1
  39. package/build/@types/components/FormElements/Switch/Switch.d.ts +1 -1
  40. package/build/@types/components/FormElements/Switch/Switch.styles.d.ts +1 -1
  41. package/build/@types/components/FormElements/TextArea/TextArea.d.ts +2 -2
  42. package/build/@types/components/FormGroup/FormGroup.d.ts +1 -1
  43. package/build/@types/components/GridContainer/GridContainer.d.ts +1 -1
  44. package/build/@types/components/Header/Header.d.ts +2 -2
  45. package/build/@types/components/HeaderLink/HeaderLink.d.ts +2 -2
  46. package/build/@types/components/HighlightBox/HighlightBox.d.ts +2 -2
  47. package/build/@types/components/IconText/IconText.d.ts +1 -1
  48. package/build/@types/components/IconToolTip/IconToolTip.d.ts +2 -2
  49. package/build/@types/components/InfoTextBlock/InfoTextBlock.d.ts +1 -1
  50. package/build/@types/components/Links/Link.d.ts +1 -1
  51. package/build/@types/components/ListItemWithRadio/ListItemWithRadio.d.ts +1 -1
  52. package/build/@types/components/Logo/Logo.d.ts +2 -2
  53. package/build/@types/components/MaxHeightText/MaxHeightText.d.ts +1 -1
  54. package/build/@types/components/Menu/Menu.d.ts +1 -1
  55. package/build/@types/components/Menu/MenuItem.d.ts +1 -1
  56. package/build/@types/components/MenuListDropdown/MenuListDropdown.d.ts +1 -1
  57. package/build/@types/components/MenuListDropdown/MenuListDropdown.styles.d.ts +3 -3
  58. package/build/@types/components/NavMainLink/NavMainLink.d.ts +1 -1
  59. package/build/@types/components/Pagination/Pagination.d.ts +2 -2
  60. package/build/@types/components/ProgressBar/ProgressBar.d.ts +2 -2
  61. package/build/@types/components/QuantitySelector/QuantitySelector.d.ts +2 -2
  62. package/build/@types/components/RadioBox/RadioBoxItem.d.ts +1 -1
  63. package/build/@types/components/RadioBox/RadioBoxList.d.ts +1 -1
  64. package/build/@types/components/RadioBox/RadioBoxList.styles.d.ts +1 -1
  65. package/build/@types/components/RadioGroup/RadioGroup.d.ts +1 -1
  66. package/build/@types/components/RadioListItem/RadioListItem.d.ts +2 -2
  67. package/build/@types/components/RadioListItem/RadioListItem.styles.d.ts +2 -2
  68. package/build/@types/components/RippleContainer/RippleContainer.d.ts +1 -1
  69. package/build/@types/components/RippleContainer/RippleContainer.styles.d.ts +1 -1
  70. package/build/@types/components/ScreenReader/ScreenReader.d.ts +1 -1
  71. package/build/@types/components/SearchListItem/SearchListItem.d.ts +1 -1
  72. package/build/@types/components/SelectButton/SelectButton.d.ts +2 -2
  73. package/build/@types/components/SideModal/SideModal.styles.d.ts +2 -2
  74. package/build/@types/components/SkipTo/SkipTo.d.ts +1 -1
  75. package/build/@types/components/SlideInOutContainer/SlideInOutContainer.d.ts +1 -1
  76. package/build/@types/components/SlideInOutContainer/SlideInOutContainer.styles.d.ts +1 -1
  77. package/build/@types/components/Spinner/Spinner.d.ts +2 -2
  78. package/build/@types/components/Stepper/StepperList.d.ts +1 -1
  79. package/build/@types/components/Stepper/StepperListItem.d.ts +1 -1
  80. package/build/@types/components/StepperMobile/StepperMobile.d.ts +2 -2
  81. package/build/@types/components/Tag/Tag.d.ts +2 -2
  82. package/build/@types/components/Timeline/Timeline.d.ts +2 -2
  83. package/build/@types/components/Timeline/Timeline.styles.d.ts +1 -1
  84. package/build/@types/components/ToolTip/ToolTip.d.ts +1 -1
  85. package/build/@types/components/ToolTipDialog/ToolTipDialog.d.ts +1 -1
  86. package/build/@types/components/WarningLabel/WarningLabel.d.ts +1 -1
  87. package/build/@types/components/WarningLabel/WarningLabel.styles.d.ts +1 -1
  88. package/build/@types/containers/TwoColumnsContainer/TwoColumnsPageContainer.d.ts +2 -2
  89. package/build/cjs/components/src/components/Accordion/Accordion.js +5 -5
  90. package/build/cjs/components/src/components/Accordion/Accordion.styles.js +14 -10
  91. package/build/cjs/components/src/components/Accordion/Accordion.styles.js.map +1 -1
  92. package/build/cjs/components/src/components/Button/SaveButton.js +9 -4
  93. package/build/cjs/components/src/components/Button/SaveButton.js.map +1 -1
  94. package/build/cjs/components/src/components/FormElements/Switch/Switch.styles.js +2 -2
  95. package/build/cjs/components/src/components/MenuListDropdown/MenuListDropdown.js +3 -2
  96. package/build/cjs/components/src/components/MenuListDropdown/MenuListDropdown.js.map +1 -1
  97. package/build/cjs/components/src/components/MenuListDropdown/MenuListDropdown.styles.js +4 -4
  98. package/build/cjs/components/src/components/RippleContainer/RippleContainer.styles.js +2 -2
  99. package/build/cjs/components/src/components/SideModal/SideModal.js +4 -4
  100. package/build/cjs/components/src/components/SideModal/SideModal.styles.js +3 -3
  101. package/build/cjs/components/src/components/SlideInOutContainer/SlideInOutContainer.styles.js +2 -2
  102. package/build/cjs/design-tokens/build/index.js +1 -0
  103. package/build/cjs/design-tokens/build/index.js.map +1 -1
  104. package/build/cjs/utils/build/index.js +31 -1
  105. package/build/cjs/utils/build/index.js.map +1 -1
  106. package/build/es/components/src/components/Accordion/Accordion.js +5 -5
  107. package/build/es/components/src/components/Accordion/Accordion.styles.js +14 -10
  108. package/build/es/components/src/components/Accordion/Accordion.styles.js.map +1 -1
  109. package/build/es/components/src/components/Button/SaveButton.js +9 -4
  110. package/build/es/components/src/components/Button/SaveButton.js.map +1 -1
  111. package/build/es/components/src/components/FormElements/Switch/Switch.styles.js +1 -1
  112. package/build/es/components/src/components/MenuListDropdown/MenuListDropdown.js +3 -2
  113. package/build/es/components/src/components/MenuListDropdown/MenuListDropdown.js.map +1 -1
  114. package/build/es/components/src/components/MenuListDropdown/MenuListDropdown.styles.js +1 -1
  115. package/build/es/components/src/components/RippleContainer/RippleContainer.styles.js +1 -1
  116. package/build/es/components/src/components/SideModal/SideModal.js +3 -3
  117. package/build/es/components/src/components/SideModal/SideModal.styles.js +1 -1
  118. package/build/es/components/src/components/SlideInOutContainer/SlideInOutContainer.styles.js +1 -1
  119. package/build/es/design-tokens/build/index.js +1 -0
  120. package/build/es/design-tokens/build/index.js.map +1 -1
  121. package/build/es/utils/build/index.js +31 -1
  122. package/build/es/utils/build/index.js.map +1 -1
  123. package/package.json +29 -29
@@ -1,8 +1,9 @@
1
- import { HTMLAttributes } from 'react';
1
+ import React, { HTMLAttributes } from 'react';
2
2
  export declare type TAccordion = {
3
3
  defaultOpen?: boolean;
4
+ hideBottomBorder?: boolean;
4
5
  id: string;
5
6
  onToggle?: (isOpen: boolean) => void;
6
7
  title: string;
7
8
  } & HTMLAttributes<HTMLDivElement>;
8
- export declare const Accordion: ({ children, defaultOpen, id, onToggle, title }: TAccordion) => JSX.Element;
9
+ export declare const Accordion: ({ children, defaultOpen, hideBottomBorder, id, onToggle, title }: TAccordion) => React.JSX.Element;
@@ -1,4 +1,6 @@
1
- export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
1
+ import type { TAccordion } from './Accordion';
2
+ declare type TContainer = Pick<TAccordion, 'hideBottomBorder'>;
3
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TContainer, never>;
2
4
  export declare const Header: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
3
5
  export declare const Chevron: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
4
6
  declare type TContent = {
@@ -14,4 +14,4 @@ export declare type TAddressBlock = {
14
14
  xsSpacing?: keyof Spacings;
15
15
  lgSpacing?: keyof Spacings;
16
16
  };
17
- export declare function AddressBlock({ deliverOption, icon, storeName, customerName, street, zipCode, city, doorCode, floor, deliveryInstructions, xsSpacing, lgSpacing }: TAddressBlock): JSX.Element;
17
+ export declare function AddressBlock({ deliverOption, icon, storeName, customerName, street, zipCode, city, doorCode, floor, deliveryInstructions, xsSpacing, lgSpacing }: TAddressBlock): React.JSX.Element;
@@ -10,4 +10,4 @@ export declare type TAlertBox = {
10
10
  text?: string;
11
11
  variant?: EAlertBoxVariant;
12
12
  } & React.HTMLAttributes<HTMLDivElement>;
13
- export declare function AlertBox({ customElement, headLine, text, variant, ...props }: TAlertBox): JSX.Element;
13
+ export declare function AlertBox({ customElement, headLine, text, variant, ...props }: TAlertBox): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare type TBackButton = {
3
3
  label?: string;
4
4
  icon?: JSX.Element;
@@ -6,4 +6,4 @@ export declare type TBackButton = {
6
6
  onClick?: () => void;
7
7
  children?: JSX.Element;
8
8
  };
9
- export declare function BackButton({ label, color, icon, onClick, children }: TBackButton): JSX.Element;
9
+ export declare function BackButton({ label, color, icon, onClick, children }: TBackButton): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare type TBackgroundImage = {
3
3
  image?: JSX.Element;
4
4
  children?: JSX.Element;
@@ -7,4 +7,4 @@ export declare type TBackgroundImage = {
7
7
  showBackdrop?: boolean;
8
8
  onClick?: () => void;
9
9
  };
10
- export declare function BackgroundImage({ image, height, width, onClick, showBackdrop, children }: TBackgroundImage): JSX.Element;
10
+ export declare function BackgroundImage({ image, height, width, onClick, showBackdrop, children }: TBackgroundImage): React.JSX.Element;
@@ -6,4 +6,4 @@ export declare type TBadge = styles.TBaseBadge & {
6
6
  background?: string;
7
7
  borderColor?: string;
8
8
  };
9
- export declare function Badge({ color, background, height, width, borderColor, children }: TBadge): JSX.Element;
9
+ export declare function Badge({ color, background, height, width, borderColor, children }: TBadge): React.JSX.Element;
@@ -8,4 +8,4 @@ export declare type TBox = {
8
8
  rounded?: boolean;
9
9
  withArrow?: boolean;
10
10
  } & React.HTMLAttributes<HTMLDivElement>;
11
- export declare const Box: ({ arrowPlacement, arrowSpacing, background, children, padding, paddingVertical, rounded, withArrow, ...props }: TBox) => JSX.Element;
11
+ export declare const Box: ({ arrowPlacement, arrowSpacing, background, children, padding, paddingVertical, rounded, withArrow, ...props }: TBox) => React.JSX.Element;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare type TBoxArrow = {
3
3
  arrowPlacement?: 'left' | 'right';
4
4
  arrowSpacing?: number;
5
5
  background?: string;
6
6
  };
7
- declare const BoxArrow: ({ arrowPlacement, arrowSpacing, background }: TBoxArrow) => JSX.Element;
7
+ declare const BoxArrow: ({ arrowPlacement, arrowSpacing, background }: TBoxArrow) => React.JSX.Element;
8
8
  export default BoxArrow;
@@ -26,4 +26,4 @@ export declare type TBaseButton = styles.TButton & {
26
26
  xsSize?: keyof typeof ButtonSize;
27
27
  tabIndex?: number;
28
28
  };
29
- export declare const Button: ({ ariaLabel, badgeBackground, borderRadius, buttonBadge, center, childGap, children, color, fullWidth, flexReverse, hoverBackground, icon, isDisabled, loading, noShadow, noWrap, onClick, size, selected, tabIndex, xsSize }: TBaseButton) => JSX.Element;
29
+ export declare const Button: ({ ariaLabel, badgeBackground, borderRadius, buttonBadge, center, childGap, children, color, fullWidth, flexReverse, hoverBackground, icon, isDisabled, loading, noShadow, noWrap, onClick, size, selected, tabIndex, xsSize }: TBaseButton) => React.JSX.Element;
@@ -56,7 +56,7 @@ export declare const IconWrapper: import("styled-components").StyledComponent<"d
56
56
  export declare const IconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
57
57
  export declare const Loading: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
58
58
  export declare const LoadingContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TButtonLoadingSpinner, never>;
59
- export declare const LoadingSpinner: import("styled-components").StyledComponent<({ spinnerColor, borderColor, animationSpeedMs, size, ...props }: import("../../components/Spinner/Spinner").TSpinner) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
59
+ export declare const LoadingSpinner: import("styled-components").StyledComponent<({ spinnerColor, borderColor, animationSpeedMs, size, ...props }: import("../../components/Spinner/Spinner").TSpinner) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
60
60
  export declare const BaseIconButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, TButton & Omit<TButton, "size" | "flexReverse" | "fullWidth" | "center"> & {
61
61
  width?: number | undefined;
62
62
  height?: number | undefined;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import * as styles from './Button.styles';
3
3
  import { TButtonColor } from './Button';
4
4
  export declare type TIconButton = styles.TBaseSmallButton & {
@@ -9,4 +9,4 @@ export declare type TIconButton = styles.TBaseSmallButton & {
9
9
  tabIndex?: number;
10
10
  opacity?: string;
11
11
  };
12
- export declare const IconButton: ({ ariaLabel, badgeBackground, border, buttonBadge, color, height, width, icon, isDisabled, loading, noWrap, onClick, opacity, shadow, tabIndex, ...props }: TIconButton) => JSX.Element;
12
+ export declare const IconButton: ({ ariaLabel, badgeBackground, border, buttonBadge, color, height, width, icon, isDisabled, loading, noWrap, onClick, opacity, shadow, tabIndex, ...props }: TIconButton) => React.JSX.Element;
@@ -6,4 +6,4 @@ export declare type TPaginationButton = styles.TBaseSmallButton & {
6
6
  color?: TButtonColor;
7
7
  icon?: JSX.Element;
8
8
  };
9
- export declare const PaginationButton: ({ ariaLabel, color, children, height, width, icon, isDisabled, loading, noWrap, onClick }: TPaginationButton) => JSX.Element;
9
+ export declare const PaginationButton: ({ ariaLabel, color, children, height, width, icon, isDisabled, loading, noWrap, onClick }: TPaginationButton) => React.JSX.Element;
@@ -15,4 +15,4 @@ export declare type TSaveButton = styles.TButton & {
15
15
  onSavedColor?: string;
16
16
  xsSize?: keyof typeof ButtonSize;
17
17
  };
18
- export declare const SaveButton: ({ afterSaveText, ariaLabel, beforeSaveText, childGap, color, fullWidth, icon, isDisabled, loading, noWrap, onAnimationComplete, onClick, onSavedColor, saved, size, xsSize }: TSaveButton) => JSX.Element;
18
+ export declare const SaveButton: ({ afterSaveText, ariaLabel, beforeSaveText, childGap, color, fullWidth, icon, isDisabled, loading, noWrap, onAnimationComplete, onClick, onSavedColor, saved, size, xsSize }: TSaveButton) => React.JSX.Element;
@@ -14,4 +14,4 @@ export declare type TCartCard = {
14
14
  titleLineClamp?: number;
15
15
  titleLink?: React.ReactNode;
16
16
  };
17
- export declare const CartCard: ({ buttonAriaLabel, description, image, imageAlt, markings, onDelete, price, quantitySelector, secondaryDescription, showDelete, title, titleLineClamp, titleLink }: TCartCard) => JSX.Element;
17
+ export declare const CartCard: ({ buttonAriaLabel, description, image, imageAlt, markings, onDelete, price, quantitySelector, secondaryDescription, showDelete, title, titleLineClamp, titleLink }: TCartCard) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare type TCartCardLabel = {
3
3
  background: string;
4
4
  label: string;
5
5
  };
6
- export declare const CartCardLabel: ({ background, label }: TCartCardLabel) => JSX.Element;
6
+ export declare const CartCardLabel: ({ background, label }: TCartCardLabel) => React.JSX.Element;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { TSummaryItem } from '../CartSummary/CartSummary';
3
3
  export declare type TCartItemSummary = {
4
4
  product: TSummaryItem;
5
5
  withParenthesis?: boolean;
6
6
  unit?: string;
7
7
  };
8
- export declare function CartItemSummary({ product, withParenthesis, unit }: TCartItemSummary): JSX.Element;
8
+ export declare function CartItemSummary({ product, withParenthesis, unit }: TCartItemSummary): React.JSX.Element;
@@ -2,4 +2,4 @@
2
2
  export declare const CartItemSummaryWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
3
  export declare const CancelledWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
4
  export declare const ItemInformationContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
- export declare const AmountText: import("styled-components").StyledComponent<({ children, lineThrough, color, fontWeight, ...props }: import("@citygross/typography/build/headers/h3/h3").TH3) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const AmountText: import("styled-components").StyledComponent<({ children, lineThrough, color, fontWeight, ...props }: import("@citygross/typography/build/headers/h3/h3").TH3) => import("react").JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -14,4 +14,4 @@ export declare enum ECartSubTotalTypes {
14
14
  items = "items",
15
15
  charges = "charges"
16
16
  }
17
- export declare const CartSubTotal: ({ children, fromPrice, info, infoOnBottom, label, priceColor, tooltipAriaLabel, type, value }: TCartSubTotal) => JSX.Element;
17
+ export declare const CartSubTotal: ({ children, fromPrice, info, infoOnBottom, label, priceColor, tooltipAriaLabel, type, value }: TCartSubTotal) => React.JSX.Element;
@@ -30,4 +30,4 @@ export declare type TSummaryItem = {
30
30
  quantity: number;
31
31
  tooltipAriaLabel?: string;
32
32
  };
33
- export declare function CartSummary({ saveLabel, totalLabel, itemsLabel, ...cartSummary }: TCartSummary): JSX.Element;
33
+ export declare function CartSummary({ saveLabel, totalLabel, itemsLabel, ...cartSummary }: TCartSummary): React.JSX.Element;
@@ -3,4 +3,4 @@ export declare type TButtonAsLink = {
3
3
  children: React.ReactNode;
4
4
  type?: 'button' | 'submit' | 'reset';
5
5
  } & React.ButtonHTMLAttributes<HTMLButtonElement>;
6
- export declare const ButtonAsLink: ({ children, type, ...props }: TButtonAsLink) => JSX.Element;
6
+ export declare const ButtonAsLink: ({ children, type, ...props }: TButtonAsLink) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { TCgButtonRoot } from '../CgButton.types';
3
- export declare const DivAsButton: ({ boxShadow, children, circle, fullWidth, rounded, size, variant, ...props }: TCgButtonRoot) => JSX.Element;
3
+ export declare const DivAsButton: ({ boxShadow, children, circle, fullWidth, rounded, size, variant, ...props }: TCgButtonRoot) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import * as styles from './Chip.styles';
3
- export declare function Chip({ label, checked, onClick, background, activeBackground, loading }: styles.TChip): JSX.Element;
3
+ export declare function Chip({ label, checked, onClick, background, activeBackground, loading }: styles.TChip): React.JSX.Element;
@@ -9,4 +9,4 @@ export declare type TChip = {
9
9
  };
10
10
  export declare const BaseChip: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TChip, never>;
11
11
  export declare const ChipCheckbox: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
12
- export declare const ChipLabel: import("styled-components").StyledComponent<({ children, color, fontWeight, size, textAlign, ...props }: import("@citygross/typography/build/bodyText/bodyText").TBodyText) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
12
+ export declare const ChipLabel: import("styled-components").StyledComponent<({ children, color, fontWeight, size, textAlign, ...props }: import("@citygross/typography/build/bodyText/bodyText").TBodyText) => import("react").JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare enum ECouponCodeStatus {
3
3
  Empty = "Empty",
4
4
  Error = "Error",
@@ -21,5 +21,5 @@ export declare type TCouponCode = {
21
21
  status?: TSubmitResult;
22
22
  value: string;
23
23
  };
24
- export declare const CouponCode: ({ buttonText, inputLabel, loading, onReset, onSubmit, resetLabel, placeholder, setValue, status, value }: TCouponCode) => JSX.Element;
24
+ export declare const CouponCode: ({ buttonText, inputLabel, loading, onReset, onSubmit, resetLabel, placeholder, setValue, status, value }: TCouponCode) => React.JSX.Element;
25
25
  export {};
@@ -5,4 +5,4 @@ export declare type TCustomerInfoBlock = {
5
5
  background?: string;
6
6
  children: React.ReactNode;
7
7
  };
8
- export declare function CustomerInfoBlock({ title, boldTitle, children }: TCustomerInfoBlock): JSX.Element;
8
+ export declare function CustomerInfoBlock({ title, boldTitle, children }: TCustomerInfoBlock): React.JSX.Element;
@@ -4,4 +4,4 @@ export declare type TDateBox = {
4
4
  children?: React.ReactNode;
5
5
  labelBackground?: string;
6
6
  };
7
- export declare function DateBox({ dateHeader, labelBackground, children }: TDateBox): JSX.Element;
7
+ export declare function DateBox({ dateHeader, labelBackground, children }: TDateBox): React.JSX.Element;
@@ -6,4 +6,4 @@ export declare type TDeliverySlotItem = {
6
6
  onSelect: () => void;
7
7
  icon?: React.ReactNode;
8
8
  };
9
- export declare function DeliverySlotItem({ date, selected, children, onSelect, icon }: TDeliverySlotItem): JSX.Element;
9
+ export declare function DeliverySlotItem({ date, selected, children, onSelect, icon }: TDeliverySlotItem): React.JSX.Element;
@@ -8,4 +8,4 @@ export declare type TDeliveryTimeBlock = {
8
8
  localTimeVar?: string;
9
9
  children?: React.ReactNode;
10
10
  };
11
- export declare function DeliveryTimeBlock({ deliveryDate, deliveryFromTime, deliveryToTime, icon, localTimeVar, deliverOption, children }: TDeliveryTimeBlock): JSX.Element;
11
+ export declare function DeliveryTimeBlock({ deliveryDate, deliveryFromTime, deliveryToTime, icon, localTimeVar, deliverOption, children }: TDeliveryTimeBlock): React.JSX.Element;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare type TDot = {
3
3
  color?: string;
4
4
  shadow?: string;
5
5
  size?: number;
6
6
  };
7
- export declare const Dot: ({ color, shadow, size }: TDot) => JSX.Element;
7
+ export declare const Dot: ({ color, shadow, size }: TDot) => React.JSX.Element;
@@ -4,4 +4,4 @@ export declare type TFieldset = {
4
4
  gap?: number;
5
5
  legend?: string;
6
6
  };
7
- export declare const Fieldset: ({ children, gap, legend }: TFieldset) => JSX.Element;
7
+ export declare const Fieldset: ({ children, gap, legend }: TFieldset) => React.JSX.Element;
@@ -6,4 +6,4 @@ export declare type TFlex = {
6
6
  justifyContent?: 'center' | 'flex-start' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
7
7
  row?: boolean;
8
8
  } & React.HTMLAttributes<HTMLDivElement>;
9
- export declare const Flex: ({ children, ...props }: TFlex) => JSX.Element;
9
+ export declare const Flex: ({ children, ...props }: TFlex) => React.JSX.Element;
@@ -6,4 +6,4 @@ export declare type TForm = {
6
6
  background?: string;
7
7
  onSubmit?: (e: React.FormEvent<HTMLFormElement>) => void;
8
8
  };
9
- export declare function Form({ title, icon, children, onSubmit, background }: TForm): JSX.Element;
9
+ export declare function Form({ title, icon, children, onSubmit, background }: TForm): React.JSX.Element;
@@ -11,4 +11,4 @@ export declare type TFormControl = {
11
11
  isValid?: boolean;
12
12
  screenWidth?: TScreenWidth;
13
13
  };
14
- export declare function FormControl({ title, children, errorMessage, isValid, screenWidth }: TFormControl): JSX.Element;
14
+ export declare function FormControl({ title, children, errorMessage, isValid, screenWidth }: TFormControl): React.JSX.Element;
@@ -1,7 +1,7 @@
1
- import { InputHTMLAttributes } from 'react';
1
+ import React, { InputHTMLAttributes } from 'react';
2
2
  export declare type TCheckbox = {
3
3
  alignItems?: 'flex-start' | 'center';
4
4
  hideLabel?: boolean;
5
5
  label: string;
6
6
  } & InputHTMLAttributes<HTMLInputElement>;
7
- export declare const Checkbox: ({ alignItems, checked, disabled, hideLabel, label, ...props }: TCheckbox) => JSX.Element;
7
+ export declare const Checkbox: ({ alignItems, checked, disabled, hideLabel, label, ...props }: TCheckbox) => React.JSX.Element;
@@ -6,5 +6,5 @@ declare type TInputOld = styles.InputProps & {
6
6
  };
7
7
  export declare function InputOld({ icon, iconOnClick, flexGrow, isValid, fontSize, inputSize, inputRef, ...props }: TInputOld & {
8
8
  inputRef?: React.RefObject<HTMLInputElement>;
9
- }): JSX.Element;
9
+ }): React.JSX.Element;
10
10
  export {};
@@ -1,6 +1,6 @@
1
- import { InputHTMLAttributes } from 'react';
1
+ import React, { InputHTMLAttributes } from 'react';
2
2
  export declare type TRadio = {
3
3
  label: string;
4
4
  showLabel?: boolean;
5
5
  } & InputHTMLAttributes<HTMLInputElement>;
6
- export declare const Radio: ({ checked, disabled, label, showLabel, ...props }: TRadio) => JSX.Element;
6
+ export declare const Radio: ({ checked, disabled, label, showLabel, ...props }: TRadio) => React.JSX.Element;
@@ -3,4 +3,4 @@ import { TFormElement } from '../FormElement.types';
3
3
  export declare type TSelect = {
4
4
  isOpen?: boolean;
5
5
  } & TFormElement & Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'size'>;
6
- export declare const Select: ({ children, error, errorLabel, hideLabel, id, isOpen, label, required, size, ...props }: TSelect) => JSX.Element;
6
+ export declare const Select: ({ children, error, errorLabel, hideLabel, id, isOpen, label, required, size, ...props }: TSelect) => React.JSX.Element;
@@ -2,4 +2,4 @@ import React, { InputHTMLAttributes } from 'react';
2
2
  export interface ISwitchProps extends InputHTMLAttributes<HTMLInputElement> {
3
3
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
4
4
  }
5
- export declare function Switch({ onChange, ...inputProps }: ISwitchProps): JSX.Element;
5
+ export declare function Switch({ onChange, ...inputProps }: ISwitchProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare const SwitchWrapper: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, {}, never>;
1
+ export declare const SwitchWrapper: import("styled-components").StyledComponent<import("framer-motion/dist/types.d-CQ4vRM6h").F<HTMLDivElement, import("framer-motion/dist/types.d-CQ4vRM6h").b<"div">>, import("styled-components").DefaultTheme, {}, never>;
2
2
  export declare const Switch: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
3
3
  export declare const CustomSwitch: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
4
  export declare const SwitchInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as styles from './TextArea.styles';
3
- export declare function TextArea({ flexGrow, fontSize, ...props }: styles.TextAreaProps): JSX.Element;
2
+ import React from 'react';
3
+ export declare function TextArea({ flexGrow, fontSize, ...props }: styles.TextAreaProps): React.JSX.Element;
@@ -3,4 +3,4 @@ export declare type TFormGroup = {
3
3
  children: React.ReactNode;
4
4
  justifyContent?: string;
5
5
  };
6
- export declare function FormGroup({ children, justifyContent }: TFormGroup): JSX.Element;
6
+ export declare function FormGroup({ children, justifyContent }: TFormGroup): React.JSX.Element;
@@ -3,4 +3,4 @@ import * as styles from './GridContainer.styles';
3
3
  export declare type TGridContainer = styles.TGrid & {
4
4
  children: React.ReactNode;
5
5
  };
6
- export declare function GridContainer({ alignItems, gap, columns, columnWidth, children }: TGridContainer): JSX.Element;
6
+ export declare function GridContainer({ alignItems, gap, columns, columnWidth, children }: TGridContainer): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export declare type THeader = {
3
3
  children?: ReactNode;
4
4
  logoImage?: JSX.Element;
@@ -8,4 +8,4 @@ export declare type THeader = {
8
8
  topLinkHref?: string;
9
9
  topLinkLabel: string;
10
10
  };
11
- export declare function Header({ children, logoImage, logOut, logOutLabel, lowerContainerMaxWidth, topLinkHref, topLinkLabel }: THeader): JSX.Element;
11
+ export declare function Header({ children, logoImage, logOut, logOutLabel, lowerContainerMaxWidth, topLinkHref, topLinkLabel }: THeader): React.JSX.Element;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare type THeaderLink = {
3
3
  linkHref: string;
4
4
  linkLabel: string;
5
5
  icon: JSX.Element;
6
6
  };
7
- export declare function HeaderLink({ linkHref, icon, linkLabel }: THeaderLink): JSX.Element;
7
+ export declare function HeaderLink({ linkHref, icon, linkLabel }: THeaderLink): React.JSX.Element;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import * as styles from './HighlightBox.styles';
3
3
  export declare type THighlightBox = styles.THighlightBoxContainer & {
4
4
  children: JSX.Element;
5
5
  };
6
- export declare function HighlightBox({ cancelled, children }: THighlightBox): JSX.Element;
6
+ export declare function HighlightBox({ cancelled, children }: THighlightBox): React.JSX.Element;
@@ -5,4 +5,4 @@ export declare type TIconText = {
5
5
  showOnlyIcon?: boolean;
6
6
  spacing?: number;
7
7
  };
8
- export declare const IconText: ({ icon, spacing, children, showOnlyIcon }: TIconText) => JSX.Element;
8
+ export declare const IconText: ({ icon, spacing, children, showOnlyIcon }: TIconText) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare type TIconToolTip = {
3
3
  icon?: JSX.Element;
4
4
  header?: JSX.Element;
@@ -6,4 +6,4 @@ export declare type TIconToolTip = {
6
6
  right?: number;
7
7
  left?: number;
8
8
  };
9
- export declare function IconToolTip({ icon, header, right, left, children }: TIconToolTip): JSX.Element;
9
+ export declare function IconToolTip({ icon, header, right, left, children }: TIconToolTip): React.JSX.Element;
@@ -14,4 +14,4 @@ export declare type TInfoWithButtonBlock = {
14
14
  imageWidth?: number;
15
15
  imageHeight?: number;
16
16
  };
17
- export declare function InfoWithButtonBlock({ background, image, buttonText, buttonColor, imageHeight, imageWidth, handleClick, children }: TInfoWithButtonBlock): JSX.Element;
17
+ export declare function InfoWithButtonBlock({ background, image, buttonText, buttonColor, imageHeight, imageWidth, handleClick, children }: TInfoWithButtonBlock): React.JSX.Element;
@@ -29,4 +29,4 @@ export declare type TLink = {
29
29
  tabIndex?: number;
30
30
  variant?: ELinkVariant;
31
31
  };
32
- export declare function Link({ asButton, borderRadius, children, hrefPath, icon, inverted, isDisabled, noWrap, onClick, size, target, tabIndex, variant, ...props }: TLink): JSX.Element;
32
+ export declare function Link({ asButton, borderRadius, children, hrefPath, icon, inverted, isDisabled, noWrap, onClick, size, target, tabIndex, variant, ...props }: TLink): React.JSX.Element;
@@ -15,4 +15,4 @@ export declare type TListItemWithRadio = {
15
15
  rightChildren?: React.ReactNode;
16
16
  radioChildren?: React.ReactNode;
17
17
  };
18
- export declare function ListItemWithRadio({ item, loading, rightChildren, radioChildren }: TListItemWithRadio): JSX.Element;
18
+ export declare function ListItemWithRadio({ item, loading, rightChildren, radioChildren }: TListItemWithRadio): React.JSX.Element;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare type TLogo = {
3
3
  logoImage?: JSX.Element;
4
4
  };
5
- export declare function Logo({ logoImage }: TLogo): JSX.Element;
5
+ export declare function Logo({ logoImage }: TLogo): React.JSX.Element;
@@ -5,4 +5,4 @@ export declare type TMaxHeightText = {
5
5
  readLessText?: string;
6
6
  maxHeight: number;
7
7
  };
8
- export declare function MaxHeightText({ readMoreText, readLessText, maxHeight, children }: TMaxHeightText): JSX.Element;
8
+ export declare function MaxHeightText({ readMoreText, readLessText, maxHeight, children }: TMaxHeightText): React.JSX.Element;
@@ -4,4 +4,4 @@ export declare type TMenu = {
4
4
  showFade?: boolean;
5
5
  onScroll?: React.UIEventHandler<HTMLElement>;
6
6
  };
7
- export declare function Menu({ showFade, onScroll, children }: TMenu): JSX.Element;
7
+ export declare function Menu({ showFade, onScroll, children }: TMenu): React.JSX.Element;
@@ -9,4 +9,4 @@ export declare type TMenuItem = AnchorHTMLAttributes<HTMLAnchorElement> & {
9
9
  minWidth?: number;
10
10
  textAlign?: string;
11
11
  };
12
- export declare function MenuItem({ active, isFirstChild, isLastChild, borderColor, fontWeight, minWidth, textAlign, children, ...props }: TMenuItem): JSX.Element;
12
+ export declare function MenuItem({ active, isFirstChild, isLastChild, borderColor, fontWeight, minWidth, textAlign, children, ...props }: TMenuItem): React.JSX.Element;
@@ -5,4 +5,4 @@ export declare type TMenuListDropdown = {
5
5
  isOpen?: boolean;
6
6
  onClick?: () => void;
7
7
  };
8
- export declare const MenuListDropdown: ({ children, dropdownHeader, isOpen, onClick }: TMenuListDropdown) => JSX.Element;
8
+ export declare const MenuListDropdown: ({ children, dropdownHeader, isOpen, onClick }: TMenuListDropdown) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  export declare type TDropdownChildContainer = {
2
2
  isOpen?: boolean;
3
3
  };
4
- export declare const DropdownContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, {}, never>;
5
- export declare const DropdownHeader: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, {}, never>;
6
- export declare const DropdownChildContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, TDropdownChildContainer, never>;
4
+ export declare const DropdownContainer: import("styled-components").StyledComponent<import("framer-motion/dist/types.d-CQ4vRM6h").F<HTMLDivElement, import("framer-motion/dist/types.d-CQ4vRM6h").b<"div">>, import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const DropdownHeader: import("styled-components").StyledComponent<import("framer-motion/dist/types.d-CQ4vRM6h").F<HTMLDivElement, import("framer-motion/dist/types.d-CQ4vRM6h").b<"div">>, import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const DropdownChildContainer: import("styled-components").StyledComponent<import("framer-motion/dist/types.d-CQ4vRM6h").F<HTMLDivElement, import("framer-motion/dist/types.d-CQ4vRM6h").b<"div">>, import("styled-components").DefaultTheme, TDropdownChildContainer, never>;
@@ -7,4 +7,4 @@ export declare type TNavMainLink = {
7
7
  borderColor?: string;
8
8
  component?: React.ReactNode;
9
9
  };
10
- export declare const NavMainLink: ({ text, href, target, active, borderColor }: TNavMainLink) => JSX.Element;
10
+ export declare const NavMainLink: ({ text, href, target, active, borderColor }: TNavMainLink) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare type TPagination = {
3
3
  fetchItems: (page: number) => void;
4
4
  currentPage: number;
@@ -8,4 +8,4 @@ export declare type TPagination = {
8
8
  pageLabel?: string;
9
9
  onPageChange?: (page: number) => void;
10
10
  };
11
- export declare function Pagination({ totalItems, currentPage, fetchItems, itemsPerPage, setPage, pageLabel, onPageChange }: TPagination): JSX.Element | null;
11
+ export declare function Pagination({ totalItems, currentPage, fetchItems, itemsPerPage, setPage, pageLabel, onPageChange }: TPagination): React.JSX.Element | null;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare type TProgressBar = {
3
3
  maxValue: number;
4
4
  currentValue: number;
@@ -6,4 +6,4 @@ export declare type TProgressBar = {
6
6
  color?: string;
7
7
  small?: boolean;
8
8
  };
9
- export declare function ProgressBar({ maxValue, currentValue, background, color, small }: TProgressBar): JSX.Element;
9
+ export declare function ProgressBar({ maxValue, currentValue, background, color, small }: TProgressBar): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { TQuantitySelector } from './QuantitySelector.types';
3
- export declare const QuantitySelector: ({ id, label, maxQuantity, onAdd, onBlur, onChange, onSubtract, productName, quantity, size }: TQuantitySelector) => JSX.Element;
3
+ export declare const QuantitySelector: ({ id, label, maxQuantity, onAdd, onBlur, onChange, onSubtract, productName, quantity, size }: TQuantitySelector) => React.JSX.Element;
@@ -10,4 +10,4 @@ export declare type TRadioBox = styles.TBaseRadioBox & {
10
10
  padding?: number;
11
11
  setActive?: () => void;
12
12
  };
13
- export declare const RadioBoxItem: ({ align, background, border, boxShadow, checked, children, hideRadioButton, flexDirection, isDisabled, name, padding, setActive }: TRadioBox) => JSX.Element;
13
+ export declare const RadioBoxItem: ({ align, background, border, boxShadow, checked, children, hideRadioButton, flexDirection, isDisabled, name, padding, setActive }: TRadioBox) => React.JSX.Element;
@@ -7,4 +7,4 @@ export declare type TRadioBoxList = TBaseRadioBox & {
7
7
  text: string;
8
8
  setActive: () => void;
9
9
  };
10
- export declare function RadioBoxList({ isDisabled, name, align, setActive, title, text, checked, children }: TRadioBoxList): JSX.Element;
10
+ export declare function RadioBoxList({ isDisabled, name, align, setActive, title, text, checked, children }: TRadioBoxList): React.JSX.Element;
@@ -3,4 +3,4 @@ import { TBaseRadioBox } from './RadioBoxItem.styles';
3
3
  export declare const BaseRadioBoxList: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TBaseRadioBox, never>;
4
4
  export declare const RadioBoxListChildContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TBaseRadioBox, never>;
5
5
  export declare const DividerPadding: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
- export declare const RadioBoxListParagraph: import("styled-components").StyledComponent<({ children, color, fontWeight, size, textAlign, ...props }: import("@citygross/typography/build/bodyText/bodyText").TBodyText) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const RadioBoxListParagraph: import("styled-components").StyledComponent<({ children, color, fontWeight, size, textAlign, ...props }: import("@citygross/typography/build/bodyText/bodyText").TBodyText) => import("react").JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -3,4 +3,4 @@ import * as styles from './RadioGroup.styles';
3
3
  export declare type TRadioGroup = styles.TBaseRadioGroup & {
4
4
  children: React.ReactNode;
5
5
  };
6
- export declare function RadioGroup({ header, children }: TRadioGroup): JSX.Element;
6
+ export declare function RadioGroup({ header, children }: TRadioGroup): React.JSX.Element;