@citygross/components_v2 0.0.60 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +5 -5
- package/dist/components/AlertBox/AlertBox.d.ts +11 -11
- package/dist/components/Box/Box.d.ts +13 -13
- package/dist/components/BoxArrow/BoxArrow.d.ts +5 -5
- package/dist/components/Button/Button.d.ts +16 -16
- package/dist/components/CartItemSummary/CartItemSummary.d.ts +12 -12
- package/dist/components/CartSummary/CartSummary.d.ts +21 -21
- package/dist/components/Divider/Divider.d.ts +4 -4
- package/dist/components/Dot/Dot.d.ts +4 -4
- package/dist/components/EmptyBox/EmptyBox.d.ts +5 -5
- package/dist/components/FormControl/FormControl.d.ts +12 -12
- package/dist/components/Header/Header.d.ts +8 -8
- package/dist/components/Header/HeaderCheckout.css.ts.vanilla.css +41 -0
- package/dist/components/Header/HeaderCheckout.css.vanilla.js +9 -0
- package/dist/components/Header/HeaderCheckout.d.ts +8 -0
- package/dist/components/Header/HeaderCheckout.js +7 -0
- package/dist/components/Input/Input.d.ts +10 -10
- package/dist/components/LinkButton/LinkButton.d.ts +7 -7
- package/dist/components/ListItem/ListItem.d.ts +23 -23
- package/dist/components/ListItem/assets/fallback_grocery.js +1 -1
- package/dist/components/Modal/Modal.d.ts +12 -12
- package/dist/components/OrderTable/OrderTable.css.d.ts +39 -39
- package/dist/components/OrderTableMobile/OrderTableMobile.d.ts +8 -8
- package/dist/components/Pagination/Pagination.d.ts +10 -10
- package/dist/components/RippleContainer/RippleContainer.d.ts +4 -4
- package/dist/components/SideModal/SideModal.d.ts +14 -14
- package/dist/components/Skeleton/Skeleton.d.ts +8 -8
- package/dist/components/Spacer/Spacer.d.ts +3 -3
- package/dist/components/Spinner/Spinner.d.ts +5 -5
- package/dist/components/TimeLine/TimeLine.d.ts +20 -20
- package/dist/cssUtils/border.css.d.ts +1 -1
- package/dist/cssUtils/color.css.d.ts +3 -3
- package/dist/cssUtils/spacings.css.d.ts +6 -6
- package/dist/cssUtils/typography.css.d.ts +9 -9
- package/dist/cssUtils/utils.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/typography/BodyText/BodyText.d.ts +9 -9
- package/dist/typography/H1/H1.d.ts +7 -7
- package/dist/typography/H2/H2.d.ts +7 -7
- package/dist/typography/H3/H3.d.ts +7 -7
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
declare type TAccordion = {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
open: boolean;
|
|
6
|
-
className?: string;
|
|
7
|
-
};
|
|
3
|
+
declare type TAccordion = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
open: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
8
|
declare const Accordion: ({ children, open, className }: TAccordion) => JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { Accordion, TAccordion };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { THardSpacingKeys, TPaletteKeys, TSpacingKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
|
|
4
|
-
declare type TAlertBox = {
|
|
5
|
-
arrowPlacement?: 'left' | 'right';
|
|
6
|
-
arrowSpacing?: THardSpacingKeys;
|
|
7
|
-
background?: TPaletteKeys;
|
|
8
|
-
borderColor?: TPaletteKeys;
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
icon?: JSX.Element;
|
|
11
|
-
iconMinWidth?: THardSpacingKeys;
|
|
12
|
-
padding?: TSpacingKeys;
|
|
13
|
-
withArrow?: boolean;
|
|
14
|
-
};
|
|
4
|
+
declare type TAlertBox = {
|
|
5
|
+
arrowPlacement?: 'left' | 'right';
|
|
6
|
+
arrowSpacing?: THardSpacingKeys;
|
|
7
|
+
background?: TPaletteKeys;
|
|
8
|
+
borderColor?: TPaletteKeys;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
icon?: JSX.Element;
|
|
11
|
+
iconMinWidth?: THardSpacingKeys;
|
|
12
|
+
padding?: TSpacingKeys;
|
|
13
|
+
withArrow?: boolean;
|
|
14
|
+
};
|
|
15
15
|
declare function AlertBox({ arrowPlacement, arrowSpacing, background, borderColor, children, icon, iconMinWidth, padding, withArrow }: TAlertBox): JSX.Element;
|
|
16
16
|
|
|
17
17
|
export { AlertBox, TAlertBox };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TPaletteKeys, TBorderRadiusKeys, TSpacingKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
|
|
4
|
-
declare type TBox = {
|
|
5
|
-
background?: TPaletteKeys;
|
|
6
|
-
borderColor?: TPaletteKeys;
|
|
7
|
-
hoverBackgroundColor?: TPaletteKeys;
|
|
8
|
-
borderRadius?: TBorderRadiusKeys;
|
|
9
|
-
padding?: TSpacingKeys;
|
|
10
|
-
paddingHorizontal?: TSpacingKeys;
|
|
11
|
-
paddingVertical?: TSpacingKeys;
|
|
12
|
-
margin?: TSpacingKeys;
|
|
13
|
-
marginHorizontal?: TSpacingKeys;
|
|
14
|
-
marginVertical?: TSpacingKeys;
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
};
|
|
4
|
+
declare type TBox = {
|
|
5
|
+
background?: TPaletteKeys;
|
|
6
|
+
borderColor?: TPaletteKeys;
|
|
7
|
+
hoverBackgroundColor?: TPaletteKeys;
|
|
8
|
+
borderRadius?: TBorderRadiusKeys;
|
|
9
|
+
padding?: TSpacingKeys;
|
|
10
|
+
paddingHorizontal?: TSpacingKeys;
|
|
11
|
+
paddingVertical?: TSpacingKeys;
|
|
12
|
+
margin?: TSpacingKeys;
|
|
13
|
+
marginHorizontal?: TSpacingKeys;
|
|
14
|
+
marginVertical?: TSpacingKeys;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
};
|
|
17
17
|
declare function Box({ background, borderColor, borderRadius, hoverBackgroundColor, padding, paddingVertical, paddingHorizontal, margin, marginHorizontal, marginVertical, children }: TBox): JSX.Element;
|
|
18
18
|
|
|
19
19
|
export { Box, TBox };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { THardSpacingKeys, TPaletteKeys } from '@citygross/design-tokens_v2';
|
|
2
2
|
|
|
3
|
-
declare type TBoxArrow = {
|
|
4
|
-
arrowPlacement?: 'left' | 'right';
|
|
5
|
-
arrowSpacing?: THardSpacingKeys;
|
|
6
|
-
background?: TPaletteKeys;
|
|
7
|
-
};
|
|
3
|
+
declare type TBoxArrow = {
|
|
4
|
+
arrowPlacement?: 'left' | 'right';
|
|
5
|
+
arrowSpacing?: THardSpacingKeys;
|
|
6
|
+
background?: TPaletteKeys;
|
|
7
|
+
};
|
|
8
8
|
declare const BoxArrow: ({ arrowPlacement, arrowSpacing, background }: TBoxArrow) => JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { BoxArrow, TBoxArrow };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
declare type TCgButton = {
|
|
4
|
-
ariaLabel?: string;
|
|
5
|
-
buttonRef?: React.Ref<HTMLButtonElement>;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
className?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
flexReverse?: boolean;
|
|
10
|
-
fullWidth?: boolean;
|
|
11
|
-
icon?: React.ReactNode;
|
|
12
|
-
loading?: boolean;
|
|
13
|
-
onClick?: () => void;
|
|
14
|
-
round?: boolean;
|
|
15
|
-
shouldPreventDefault?: boolean;
|
|
16
|
-
size?: 'small' | 'medium' | 'icon' | 'large';
|
|
17
|
-
variant?: 'primary' | 'secondary' | 'ghost' | 'tertiary' | 'prio' | 'dark';
|
|
18
|
-
};
|
|
3
|
+
declare type TCgButton = {
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
buttonRef?: React.Ref<HTMLButtonElement>;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
flexReverse?: boolean;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
round?: boolean;
|
|
15
|
+
shouldPreventDefault?: boolean;
|
|
16
|
+
size?: 'small' | 'medium' | 'icon' | 'large';
|
|
17
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'tertiary' | 'prio' | 'dark';
|
|
18
|
+
};
|
|
19
19
|
declare const Button: ({ ariaLabel, buttonRef, children, className, disabled, flexReverse, fullWidth, icon, loading, onClick, round, shouldPreventDefault, size, variant }: TCgButton) => JSX.Element;
|
|
20
20
|
|
|
21
21
|
export { Button, TCgButton };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
declare type TSummaryItem = {
|
|
2
|
-
amount: number;
|
|
3
|
-
cancelledAmount: number;
|
|
4
|
-
quantity: number;
|
|
5
|
-
cancelledQuantity: number;
|
|
6
|
-
name?: string;
|
|
7
|
-
};
|
|
8
|
-
declare type TCartItemSummary = {
|
|
9
|
-
product: TSummaryItem;
|
|
10
|
-
withParenthesis?: boolean;
|
|
11
|
-
unit?: string;
|
|
12
|
-
};
|
|
1
|
+
declare type TSummaryItem = {
|
|
2
|
+
amount: number;
|
|
3
|
+
cancelledAmount: number;
|
|
4
|
+
quantity: number;
|
|
5
|
+
cancelledQuantity: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
};
|
|
8
|
+
declare type TCartItemSummary = {
|
|
9
|
+
product: TSummaryItem;
|
|
10
|
+
withParenthesis?: boolean;
|
|
11
|
+
unit?: string;
|
|
12
|
+
};
|
|
13
13
|
declare const CartItemSummary: ({ product, withParenthesis, unit }: TCartItemSummary) => JSX.Element;
|
|
14
14
|
|
|
15
15
|
export { CartItemSummary, TCartItemSummary, TSummaryItem };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { TSummaryItem } from '../CartItemSummary/CartItemSummary.js';
|
|
2
2
|
|
|
3
|
-
declare type TCartSummary = {
|
|
4
|
-
title?: string;
|
|
5
|
-
subTitle?: string;
|
|
6
|
-
bags?: TSummaryItem[];
|
|
7
|
-
groceries?: TSummaryItem[];
|
|
8
|
-
charges?: TSummaryItem[];
|
|
9
|
-
cateredMeals?: TSummaryItem[];
|
|
10
|
-
deliveryFee?: {
|
|
11
|
-
amount: number;
|
|
12
|
-
taxAmount: number;
|
|
13
|
-
taxPercentage: number;
|
|
14
|
-
totalDiscountAmount: number;
|
|
15
|
-
};
|
|
16
|
-
totalAmount: number;
|
|
17
|
-
totalDiscount: number;
|
|
18
|
-
totalTaxAmount: number;
|
|
19
|
-
totalLabel?: string;
|
|
20
|
-
taxLabel?: string;
|
|
21
|
-
shippingLabel?: string;
|
|
22
|
-
saveLabel?: string;
|
|
23
|
-
};
|
|
3
|
+
declare type TCartSummary = {
|
|
4
|
+
title?: string;
|
|
5
|
+
subTitle?: string;
|
|
6
|
+
bags?: TSummaryItem[];
|
|
7
|
+
groceries?: TSummaryItem[];
|
|
8
|
+
charges?: TSummaryItem[];
|
|
9
|
+
cateredMeals?: TSummaryItem[];
|
|
10
|
+
deliveryFee?: {
|
|
11
|
+
amount: number;
|
|
12
|
+
taxAmount: number;
|
|
13
|
+
taxPercentage: number;
|
|
14
|
+
totalDiscountAmount: number;
|
|
15
|
+
};
|
|
16
|
+
totalAmount: number;
|
|
17
|
+
totalDiscount: number;
|
|
18
|
+
totalTaxAmount: number;
|
|
19
|
+
totalLabel?: string;
|
|
20
|
+
taxLabel?: string;
|
|
21
|
+
shippingLabel?: string;
|
|
22
|
+
saveLabel?: string;
|
|
23
|
+
};
|
|
24
24
|
declare function CartSummary({ saveLabel, shippingLabel, totalLabel, taxLabel, ...cartSummary }: TCartSummary): JSX.Element;
|
|
25
25
|
|
|
26
26
|
export { CartSummary, TCartSummary };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TSpacingKeys, TPaletteKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
|
|
4
|
-
declare type TDivider = {
|
|
5
|
-
marginVertical?: TSpacingKeys;
|
|
6
|
-
color?: TPaletteKeys;
|
|
7
|
-
};
|
|
4
|
+
declare type TDivider = {
|
|
5
|
+
marginVertical?: TSpacingKeys;
|
|
6
|
+
color?: TPaletteKeys;
|
|
7
|
+
};
|
|
8
8
|
declare const Divider: React.FunctionComponent<TDivider>;
|
|
9
9
|
|
|
10
10
|
export { Divider, TDivider };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TPaletteKeys } from '@citygross/design-tokens_v2';
|
|
2
2
|
|
|
3
|
-
declare type TDot = {
|
|
4
|
-
color?: TPaletteKeys;
|
|
5
|
-
shadow?: TPaletteKeys;
|
|
6
|
-
};
|
|
3
|
+
declare type TDot = {
|
|
4
|
+
color?: TPaletteKeys;
|
|
5
|
+
shadow?: TPaletteKeys;
|
|
6
|
+
};
|
|
7
7
|
declare function Dot({ color, shadow }: TDot): JSX.Element;
|
|
8
8
|
|
|
9
9
|
export { Dot, TDot };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
declare type TEmptyBox = {
|
|
4
|
-
title?: string;
|
|
5
|
-
icon?: React.ReactNode;
|
|
6
|
-
description?: React.ReactNode;
|
|
7
|
-
};
|
|
3
|
+
declare type TEmptyBox = {
|
|
4
|
+
title?: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
};
|
|
8
8
|
declare const EmptyBox: ({ title, description, icon }: TEmptyBox) => JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { EmptyBox, TEmptyBox };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
declare enum TScreenWidth {
|
|
4
|
-
'1/2' = "calc(50% - 12px)",
|
|
5
|
-
'1/3' = "calc(33% - 12px)",
|
|
6
|
-
'1/4' = "calc(25% - 12px)"
|
|
7
|
-
}
|
|
8
|
-
declare type TFormControl = {
|
|
9
|
-
title?: string;
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
errorMessage?: React.ReactNode;
|
|
12
|
-
isValid?: boolean;
|
|
13
|
-
screenWidth?: '1/2' | '1/3' | '1/4';
|
|
14
|
-
};
|
|
3
|
+
declare enum TScreenWidth {
|
|
4
|
+
'1/2' = "calc(50% - 12px)",
|
|
5
|
+
'1/3' = "calc(33% - 12px)",
|
|
6
|
+
'1/4' = "calc(25% - 12px)"
|
|
7
|
+
}
|
|
8
|
+
declare type TFormControl = {
|
|
9
|
+
title?: string;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
errorMessage?: React.ReactNode;
|
|
12
|
+
isValid?: boolean;
|
|
13
|
+
screenWidth?: '1/2' | '1/3' | '1/4';
|
|
14
|
+
};
|
|
15
15
|
declare function FormControl({ title, children, errorMessage, isValid, screenWidth }: TFormControl): JSX.Element;
|
|
16
16
|
|
|
17
17
|
export { FormControl, TFormControl, TScreenWidth };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
declare type THeader = {
|
|
4
|
-
btnLabel?: string;
|
|
5
|
-
btnOnClick?: () => void;
|
|
6
|
-
onMenuClick?: () => void;
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
headerLink?: ReactNode;
|
|
9
|
-
sideModal?: ReactNode;
|
|
10
|
-
};
|
|
3
|
+
declare type THeader = {
|
|
4
|
+
btnLabel?: string;
|
|
5
|
+
btnOnClick?: () => void;
|
|
6
|
+
onMenuClick?: () => void;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
headerLink?: ReactNode;
|
|
9
|
+
sideModal?: ReactNode;
|
|
10
|
+
};
|
|
11
11
|
declare const Header: ({ btnLabel, btnOnClick, onMenuClick, sideModal, headerLink }: THeader) => JSX.Element;
|
|
12
12
|
|
|
13
13
|
export { Header, THeader };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.HeaderCheckout_wrapper__j8ucdc0 {
|
|
2
|
+
position: sticky;
|
|
3
|
+
top: 0;
|
|
4
|
+
z-index: 3;
|
|
5
|
+
background: #F7F7F7;
|
|
6
|
+
}
|
|
7
|
+
.HeaderCheckout_headerWrapper__j8ucdc1 {
|
|
8
|
+
background-color: #FFFFFF;
|
|
9
|
+
margin: 0 auto;
|
|
10
|
+
padding: 8px 24px;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
}
|
|
14
|
+
.HeaderCheckout_headerContainer__j8ucdc2 {
|
|
15
|
+
display: flex;
|
|
16
|
+
max-width: 640px;
|
|
17
|
+
width: 100%;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
.HeaderCheckout_logoContainer__j8ucdc3 {
|
|
22
|
+
display: flex;
|
|
23
|
+
width: 64px;
|
|
24
|
+
height: 48px;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: flex-start;
|
|
27
|
+
}
|
|
28
|
+
.HeaderCheckout_headerLinkContainer__j8ucdc4 {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
.HeaderCheckout_headerLink__j8ucdc5 {
|
|
33
|
+
color: #0069AE;
|
|
34
|
+
font-family: Poppins;
|
|
35
|
+
font-size: 15px;
|
|
36
|
+
text-decoration: underline;
|
|
37
|
+
}
|
|
38
|
+
.HeaderCheckout_headerLink__j8ucdc5:focus-visible {
|
|
39
|
+
outline: 2px solid #000;
|
|
40
|
+
outline-offset: 1px;
|
|
41
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './HeaderCheckout.css.ts.vanilla.css';
|
|
2
|
+
|
|
3
|
+
var headerContainer = "HeaderCheckout_headerContainer__j8ucdc2";
|
|
4
|
+
var headerLinkContainer = "HeaderCheckout_headerLinkContainer__j8ucdc4";
|
|
5
|
+
var headerWrapper = "HeaderCheckout_headerWrapper__j8ucdc1";
|
|
6
|
+
var logoContainer = "HeaderCheckout_logoContainer__j8ucdc3";
|
|
7
|
+
var wrapper = "HeaderCheckout_wrapper__j8ucdc0";
|
|
8
|
+
|
|
9
|
+
export { headerContainer, headerLinkContainer, headerWrapper, logoContainer, wrapper };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Icons } from '@citygross/icons_v2';
|
|
3
|
+
import { wrapper, headerWrapper, headerContainer, logoContainer, headerLinkContainer } from './HeaderCheckout.css.vanilla.js';
|
|
4
|
+
|
|
5
|
+
const HeaderCheckout = ({ headerLink }) => /* @__PURE__ */ React.createElement("header", { className: wrapper }, /* @__PURE__ */ React.createElement("div", { className: headerWrapper }, /* @__PURE__ */ React.createElement("div", { className: headerContainer }, /* @__PURE__ */ React.createElement("span", { className: logoContainer, "aria-label": "City Gross logo" }, /* @__PURE__ */ React.createElement(Icons.Logo, { small: true, "aria-hidden": "true" })), headerLink && /* @__PURE__ */ React.createElement("nav", { className: headerLinkContainer }, headerLink))));
|
|
6
|
+
|
|
7
|
+
export { HeaderCheckout };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { TFontSizeKeys } from '@citygross/design-tokens_v2';
|
|
2
2
|
import React, { InputHTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
|
-
declare type TInput = InputHTMLAttributes<HTMLInputElement> & {
|
|
5
|
-
icon?: JSX.Element;
|
|
6
|
-
iconOnClick?: () => void;
|
|
7
|
-
flexGrow?: boolean;
|
|
8
|
-
inValid?: boolean;
|
|
9
|
-
fontSize?: TFontSizeKeys;
|
|
10
|
-
inputSize?: 'small' | 'medium';
|
|
11
|
-
};
|
|
12
|
-
declare function Input({ icon, iconOnClick, flexGrow, inValid, fontSize, inputSize, inputRef, ...props }: TInput & {
|
|
13
|
-
inputRef?: React.RefObject<HTMLInputElement>;
|
|
4
|
+
declare type TInput = InputHTMLAttributes<HTMLInputElement> & {
|
|
5
|
+
icon?: JSX.Element;
|
|
6
|
+
iconOnClick?: () => void;
|
|
7
|
+
flexGrow?: boolean;
|
|
8
|
+
inValid?: boolean;
|
|
9
|
+
fontSize?: TFontSizeKeys;
|
|
10
|
+
inputSize?: 'small' | 'medium';
|
|
11
|
+
};
|
|
12
|
+
declare function Input({ icon, iconOnClick, flexGrow, inValid, fontSize, inputSize, inputRef, ...props }: TInput & {
|
|
13
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
14
14
|
}): JSX.Element;
|
|
15
15
|
|
|
16
16
|
export { Input, TInput };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
declare type TLinkButton = {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
variant?: 'primary' | 'secondary' | 'tertiary' | 'primaryInverted' | 'secondaryInverted';
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
ariaLabel?: string;
|
|
9
|
-
};
|
|
3
|
+
declare type TLinkButton = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'primaryInverted' | 'secondaryInverted';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
};
|
|
10
10
|
declare const LinkButton: ({ onClick, children, variant, ariaLabel, disabled }: TLinkButton) => JSX.Element;
|
|
11
11
|
|
|
12
12
|
export { LinkButton, TLinkButton };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TPaletteKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
|
|
4
|
-
declare type TItem = {
|
|
5
|
-
name?: string;
|
|
6
|
-
image?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
secondaryDescription?: React.ReactNode;
|
|
9
|
-
};
|
|
10
|
-
declare enum EListItemAlignment {
|
|
11
|
-
CENTER = "center",
|
|
12
|
-
TOP = "flex-start"
|
|
13
|
-
}
|
|
14
|
-
declare type TListItem = {
|
|
15
|
-
item?: TItem;
|
|
16
|
-
loading?: boolean;
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
fallBackImage?: string;
|
|
19
|
-
imageAutoHeight?: boolean;
|
|
20
|
-
boldHeader?: boolean;
|
|
21
|
-
smallSkeleton?: boolean;
|
|
22
|
-
isSmall?: boolean;
|
|
23
|
-
usedInSearch?: boolean;
|
|
24
|
-
alignment?: EListItemAlignment;
|
|
25
|
-
textColor?: TPaletteKeys;
|
|
26
|
-
};
|
|
4
|
+
declare type TItem = {
|
|
5
|
+
name?: string;
|
|
6
|
+
image?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
secondaryDescription?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
declare enum EListItemAlignment {
|
|
11
|
+
CENTER = "center",
|
|
12
|
+
TOP = "flex-start"
|
|
13
|
+
}
|
|
14
|
+
declare type TListItem = {
|
|
15
|
+
item?: TItem;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
fallBackImage?: string;
|
|
19
|
+
imageAutoHeight?: boolean;
|
|
20
|
+
boldHeader?: boolean;
|
|
21
|
+
smallSkeleton?: boolean;
|
|
22
|
+
isSmall?: boolean;
|
|
23
|
+
usedInSearch?: boolean;
|
|
24
|
+
alignment?: EListItemAlignment;
|
|
25
|
+
textColor?: TPaletteKeys;
|
|
26
|
+
};
|
|
27
27
|
declare function ListItem({ item, loading, isSmall, fallBackImage, imageAutoHeight, boldHeader, smallSkeleton, children, alignment, textColor, usedInSearch }: TListItem): JSX.Element;
|
|
28
28
|
|
|
29
29
|
export { EListItemAlignment, ListItem, TItem, TListItem };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var FallbackIcon = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\
|
|
1
|
+
var FallbackIcon = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"128px\" height=\"124px\" viewBox=\"0 0 128 124\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <!-- Generator: Sketch 52.4 (67378) - http://www.bohemiancoding.com/sketch -->\n <title>shopping_cart_loaded</title>\n <desc>Created with Sketch.</desc>\n <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g id=\"Artboard\" transform=\"translate(-100.000000, -53.000000)\">\n <g id=\"shopping_cart_loaded\" transform=\"translate(100.000000, 53.000000)\">\n <polygon id=\"Rectangle\" fill=\"#D8D8D8\" transform=\"translate(89.585472, 37.151291) rotate(45.000000) translate(-89.585472, -37.151291) \" points=\"69.9549199 17.5207389 109.199991 17.536771 109.216023 56.7818423 69.970952 56.7658102\"></polygon>\n <polygon id=\"Rectangle\" fill=\"#D1D1D1\" transform=\"translate(61.784256, 30.970598) rotate(45.000000) translate(-61.784256, -30.970598) \" points=\"39.9897062 9.17604823 83.5610058 9.19384764 83.5788052 52.7651473 40.0075056 52.7473478\"></polygon>\n <g id=\"Group\" transform=\"translate(6.000000, 12.000000)\" fill=\"#E8E8E8\">\n <path d=\"M40.2213256,80.6 C36.8179827,80.6 34.0334294,77.81 34.0334294,74.4 L34.0334294,43.4 L21.6576369,43.4 L21.6576369,74.4 C21.6576369,84.63 30.0112968,93 40.2213256,93 L99.0063401,93 L99.0063401,80.6 L40.2213256,80.6 Z\" id=\"Path\"></path>\n <path d=\"M24.1327954,12.4 L22.8952161,8.37 C21.0388473,3.41 16.3979251,0 11.1382133,0 L0,0 L0,12.4 L11.1382133,12.4 L28.154928,63.86 C29.0831124,66.34 31.2488761,68.2 34.0334294,68.2 L92.8184438,68.2 C95.2936023,68.2 97.459366,66.65 98.3875504,64.48 L121.901556,12.4 L24.1327954,12.4 Z\" id=\"Path\"></path>\n </g>\n <ellipse id=\"Oval\" fill=\"#D8D8D8\" cx=\"6\" cy=\"18.5\" rx=\"6\" ry=\"6.5\"></ellipse>\n <g id=\"Group\" transform=\"translate(40.000000, 105.000000)\" fill=\"#D8D8D8\">\n <ellipse id=\"Oval\" cx=\"55.7142857\" cy=\"9.5\" rx=\"9.28571429\" ry=\"9.5\"></ellipse>\n <ellipse id=\"Oval\" cx=\"9.28571429\" cy=\"9.5\" rx=\"9.28571429\" ry=\"9.5\"></ellipse>\n </g>\n <g id=\"Group\" transform=\"translate(46.000000, 112.000000)\" fill=\"#D1D1D1\">\n <ellipse id=\"Oval\" cx=\"49.8823529\" cy=\"3\" rx=\"3.11764706\" ry=\"3\"></ellipse>\n <ellipse id=\"Oval\" cx=\"3.11764706\" cy=\"3\" rx=\"3.11764706\" ry=\"3\"></ellipse>\n </g>\n </g>\n </g>\n </g>\n</svg>";
|
|
2
2
|
|
|
3
3
|
export { FallbackIcon as default };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TPaletteKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
|
|
4
|
-
declare type TModal = {
|
|
5
|
-
background?: TPaletteKeys;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
className?: string;
|
|
8
|
-
footer?: JSX.Element;
|
|
9
|
-
hideCancel?: boolean;
|
|
10
|
-
isConfirm?: boolean;
|
|
11
|
-
onBackdropClick?: () => void;
|
|
12
|
-
querySelector?: string;
|
|
13
|
-
subTitle?: string;
|
|
14
|
-
title?: string;
|
|
15
|
-
};
|
|
4
|
+
declare type TModal = {
|
|
5
|
+
background?: TPaletteKeys;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
footer?: JSX.Element;
|
|
9
|
+
hideCancel?: boolean;
|
|
10
|
+
isConfirm?: boolean;
|
|
11
|
+
onBackdropClick?: () => void;
|
|
12
|
+
querySelector?: string;
|
|
13
|
+
subTitle?: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
};
|
|
16
16
|
declare const Modal: React.ForwardRefExoticComponent<TModal & React.RefAttributes<HTMLDivElement>>;
|
|
17
17
|
|
|
18
18
|
export { Modal, TModal };
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import * as _vanilla_extract_recipes from '@vanilla-extract/recipes';
|
|
2
2
|
|
|
3
|
-
declare const BorderPosition: {
|
|
4
|
-
Top: string;
|
|
5
|
-
Bottom: string;
|
|
6
|
-
None: string;
|
|
7
|
-
TopAndBottom: string;
|
|
8
|
-
};
|
|
9
|
-
declare const borderStyle: Record<string | number, string>;
|
|
10
|
-
declare const orderTr: _vanilla_extract_recipes.RuntimeFn<{
|
|
11
|
-
borderStyle: Record<string | number, string>;
|
|
12
|
-
disableHover: {
|
|
13
|
-
true: {
|
|
14
|
-
selectors: {
|
|
15
|
-
'&:hover': {
|
|
16
|
-
backgroundColor: "transparent";
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
mobile: {
|
|
22
|
-
true: {
|
|
23
|
-
selectors: {
|
|
24
|
-
'&:hover': {
|
|
25
|
-
backgroundColor: "transparent";
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
}>;
|
|
31
|
-
declare const orderTd: _vanilla_extract_recipes.RuntimeFn<{
|
|
32
|
-
borderStyle: Record<string | number, string>;
|
|
33
|
-
lineThrough: {
|
|
34
|
-
true: {
|
|
35
|
-
textDecoration: "line-through";
|
|
36
|
-
color: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
}>;
|
|
40
|
-
declare const orderTable: string;
|
|
41
|
-
declare const orderThead: string;
|
|
3
|
+
declare const BorderPosition: {
|
|
4
|
+
Top: string;
|
|
5
|
+
Bottom: string;
|
|
6
|
+
None: string;
|
|
7
|
+
TopAndBottom: string;
|
|
8
|
+
};
|
|
9
|
+
declare const borderStyle: Record<string | number, string>;
|
|
10
|
+
declare const orderTr: _vanilla_extract_recipes.RuntimeFn<{
|
|
11
|
+
borderStyle: Record<string | number, string>;
|
|
12
|
+
disableHover: {
|
|
13
|
+
true: {
|
|
14
|
+
selectors: {
|
|
15
|
+
'&:hover': {
|
|
16
|
+
backgroundColor: "transparent";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
mobile: {
|
|
22
|
+
true: {
|
|
23
|
+
selectors: {
|
|
24
|
+
'&:hover': {
|
|
25
|
+
backgroundColor: "transparent";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
declare const orderTd: _vanilla_extract_recipes.RuntimeFn<{
|
|
32
|
+
borderStyle: Record<string | number, string>;
|
|
33
|
+
lineThrough: {
|
|
34
|
+
true: {
|
|
35
|
+
textDecoration: "line-through";
|
|
36
|
+
color: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}>;
|
|
40
|
+
declare const orderTable: string;
|
|
41
|
+
declare const orderThead: string;
|
|
42
42
|
declare const orderTh: string;
|
|
43
43
|
|
|
44
44
|
export { BorderPosition, borderStyle, orderTable, orderTd, orderTh, orderThead, orderTr };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
declare type TMobileOrderLine = {
|
|
4
|
-
orderNumber?: string;
|
|
5
|
-
deliveryString?: React.ReactNode;
|
|
6
|
-
orderStatus?: string | null;
|
|
7
|
-
orderAmount?: string | null;
|
|
8
|
-
cancelled?: boolean;
|
|
9
|
-
withBorder?: boolean;
|
|
10
|
-
};
|
|
3
|
+
declare type TMobileOrderLine = {
|
|
4
|
+
orderNumber?: string;
|
|
5
|
+
deliveryString?: React.ReactNode;
|
|
6
|
+
orderStatus?: string | null;
|
|
7
|
+
orderAmount?: string | null;
|
|
8
|
+
cancelled?: boolean;
|
|
9
|
+
withBorder?: boolean;
|
|
10
|
+
};
|
|
11
11
|
declare const MobileOrderLine: ({ deliveryString, orderAmount, orderStatus, orderNumber, cancelled, withBorder }: TMobileOrderLine) => JSX.Element;
|
|
12
12
|
|
|
13
13
|
export { MobileOrderLine };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
declare type TPagination = {
|
|
4
|
-
totalItems?: number;
|
|
5
|
-
fetchItems: (page: number) => void;
|
|
6
|
-
currentPage: number;
|
|
7
|
-
itemsPerPage?: number;
|
|
8
|
-
setPage?: (page: number) => void;
|
|
9
|
-
numOfPaginationsToShow?: number;
|
|
10
|
-
rightIcon?: React.ReactNode;
|
|
11
|
-
leftIcon?: React.ReactNode;
|
|
12
|
-
};
|
|
3
|
+
declare type TPagination = {
|
|
4
|
+
totalItems?: number;
|
|
5
|
+
fetchItems: (page: number) => void;
|
|
6
|
+
currentPage: number;
|
|
7
|
+
itemsPerPage?: number;
|
|
8
|
+
setPage?: (page: number) => void;
|
|
9
|
+
numOfPaginationsToShow?: number;
|
|
10
|
+
rightIcon?: React.ReactNode;
|
|
11
|
+
leftIcon?: React.ReactNode;
|
|
12
|
+
};
|
|
13
13
|
declare function Pagination({ totalItems, currentPage, fetchItems, itemsPerPage, setPage, numOfPaginationsToShow, rightIcon, leftIcon }: TPagination): JSX.Element;
|
|
14
14
|
|
|
15
15
|
export { Pagination, TPagination };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TPaletteKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
|
|
4
|
-
declare type TRippleContainer = {
|
|
5
|
-
color?: TPaletteKeys;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
};
|
|
4
|
+
declare type TRippleContainer = {
|
|
5
|
+
color?: TPaletteKeys;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
};
|
|
8
8
|
declare function RippleContainer({ color, children }: TRippleContainer): JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { RippleContainer, TRippleContainer };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TPaletteKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
|
|
4
|
-
declare enum EAnimate {
|
|
5
|
-
In = "in",
|
|
6
|
-
Out = "out"
|
|
7
|
-
}
|
|
8
|
-
declare type TSideModal = {
|
|
9
|
-
animate?: EAnimate;
|
|
10
|
-
backgroundColor?: TPaletteKeys;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
onBackdropClick: () => void;
|
|
13
|
-
overlayBackground?: TPaletteKeys;
|
|
14
|
-
querySelector?: string;
|
|
15
|
-
slideFrom?: 'left' | 'right' | null;
|
|
16
|
-
width?: string;
|
|
17
|
-
};
|
|
4
|
+
declare enum EAnimate {
|
|
5
|
+
In = "in",
|
|
6
|
+
Out = "out"
|
|
7
|
+
}
|
|
8
|
+
declare type TSideModal = {
|
|
9
|
+
animate?: EAnimate;
|
|
10
|
+
backgroundColor?: TPaletteKeys;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
onBackdropClick: () => void;
|
|
13
|
+
overlayBackground?: TPaletteKeys;
|
|
14
|
+
querySelector?: string;
|
|
15
|
+
slideFrom?: 'left' | 'right' | null;
|
|
16
|
+
width?: string;
|
|
17
|
+
};
|
|
18
18
|
declare const SideModal: ({ animate, backgroundColor, children, onBackdropClick, overlayBackground, querySelector, slideFrom, width }: TSideModal) => React.ReactPortal;
|
|
19
19
|
|
|
20
20
|
export { EAnimate, SideModal, TSideModal };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { THardSpacingKeys, TBorderRadiusKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
|
|
4
|
-
declare type TSkeleton = {
|
|
5
|
-
width?: THardSpacingKeys;
|
|
6
|
-
height?: THardSpacingKeys;
|
|
7
|
-
borderRadius?: TBorderRadiusKeys;
|
|
8
|
-
fullWidth?: boolean;
|
|
9
|
-
fullHeight?: boolean;
|
|
10
|
-
className?: string;
|
|
11
|
-
};
|
|
4
|
+
declare type TSkeleton = {
|
|
5
|
+
width?: THardSpacingKeys;
|
|
6
|
+
height?: THardSpacingKeys;
|
|
7
|
+
borderRadius?: TBorderRadiusKeys;
|
|
8
|
+
fullWidth?: boolean;
|
|
9
|
+
fullHeight?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
12
|
declare const Skeleton: React.FC<TSkeleton>;
|
|
13
13
|
|
|
14
14
|
export { Skeleton, TSkeleton };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TSpacingKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
|
|
4
|
-
declare type TSpacer = {
|
|
5
|
-
spacing?: TSpacingKeys;
|
|
6
|
-
};
|
|
4
|
+
declare type TSpacer = {
|
|
5
|
+
spacing?: TSpacingKeys;
|
|
6
|
+
};
|
|
7
7
|
declare const Spacer: React.FunctionComponent<TSpacer>;
|
|
8
8
|
|
|
9
9
|
export { Spacer, TSpacer };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TPaletteKeys } from '@citygross/design-tokens_v2';
|
|
2
2
|
|
|
3
|
-
declare type TSpinner = {
|
|
4
|
-
borderColor?: TPaletteKeys;
|
|
5
|
-
spinnerColor?: TPaletteKeys;
|
|
6
|
-
size?: 'small' | 'medium' | 'large';
|
|
7
|
-
};
|
|
3
|
+
declare type TSpinner = {
|
|
4
|
+
borderColor?: TPaletteKeys;
|
|
5
|
+
spinnerColor?: TPaletteKeys;
|
|
6
|
+
size?: 'small' | 'medium' | 'large';
|
|
7
|
+
};
|
|
8
8
|
declare const Spinner: ({ borderColor, size, spinnerColor }: TSpinner) => JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { Spinner, TSpinner };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { TPaletteKeys } from '@citygross/design-tokens_v2';
|
|
2
2
|
|
|
3
|
-
declare type TTimelineItem = {
|
|
4
|
-
primaryText: string;
|
|
5
|
-
time: string;
|
|
6
|
-
secondaryText?: string;
|
|
7
|
-
tiernaryText?: string;
|
|
8
|
-
};
|
|
9
|
-
declare type TTimeline = {
|
|
10
|
-
items: TTimelineItem[];
|
|
11
|
-
title?: string;
|
|
12
|
-
mobileTitle?: string;
|
|
13
|
-
current: number;
|
|
14
|
-
dotColor?: TPaletteKeys;
|
|
15
|
-
dotActiveColor?: TPaletteKeys;
|
|
16
|
-
dotShadow?: TPaletteKeys;
|
|
17
|
-
borderStyle?: 'dashed' | 'solid';
|
|
18
|
-
borderColor?: TPaletteKeys;
|
|
19
|
-
completedColor?: TPaletteKeys;
|
|
20
|
-
color?: TPaletteKeys;
|
|
21
|
-
reversed?: boolean;
|
|
22
|
-
};
|
|
3
|
+
declare type TTimelineItem = {
|
|
4
|
+
primaryText: string;
|
|
5
|
+
time: string;
|
|
6
|
+
secondaryText?: string;
|
|
7
|
+
tiernaryText?: string;
|
|
8
|
+
};
|
|
9
|
+
declare type TTimeline = {
|
|
10
|
+
items: TTimelineItem[];
|
|
11
|
+
title?: string;
|
|
12
|
+
mobileTitle?: string;
|
|
13
|
+
current: number;
|
|
14
|
+
dotColor?: TPaletteKeys;
|
|
15
|
+
dotActiveColor?: TPaletteKeys;
|
|
16
|
+
dotShadow?: TPaletteKeys;
|
|
17
|
+
borderStyle?: 'dashed' | 'solid';
|
|
18
|
+
borderColor?: TPaletteKeys;
|
|
19
|
+
completedColor?: TPaletteKeys;
|
|
20
|
+
color?: TPaletteKeys;
|
|
21
|
+
reversed?: boolean;
|
|
22
|
+
};
|
|
23
23
|
declare function Timeline({ items, title, mobileTitle, current, dotColor, dotActiveColor, dotShadow, borderStyle, borderColor, color, reversed, completedColor }: TTimeline): JSX.Element;
|
|
24
24
|
|
|
25
25
|
export { TTimeline, TTimelineItem, Timeline };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const borderColor: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "myPrioGoldDark" | "myPrioGoldLight" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
1
|
+
declare const borderColor: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "myPrioGoldDark" | "myPrioGoldLight" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
2
2
|
declare const borderRadius: Record<"none" | "big" | "small" | "round" | "default" | "large" | "extraSmall" | "bigger", string>;
|
|
3
3
|
|
|
4
4
|
export { borderColor, borderRadius };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const color: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "myPrioGoldDark" | "myPrioGoldLight" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
2
|
-
declare const backgroundColor: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "myPrioGoldDark" | "myPrioGoldLight" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
3
|
-
declare const hoverColor: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "myPrioGoldDark" | "myPrioGoldLight" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
1
|
+
declare const color: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "myPrioGoldDark" | "myPrioGoldLight" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
2
|
+
declare const backgroundColor: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "myPrioGoldDark" | "myPrioGoldLight" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
3
|
+
declare const hoverColor: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "myPrioGoldDark" | "myPrioGoldLight" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
4
4
|
declare const hoverBackgroundColor: Record<"none" | "boxShadow" | "border" | "link" | "black" | "transparent" | "white" | "medium" | "dark" | "light" | "lighter" | "primary" | "secondary" | "brandYellow" | "brandBlue" | "brandPurple" | "brandPrio" | "yellowLighter" | "yellowLight" | "blueLight" | "blueLighter" | "blueMedium" | "greenLight" | "greenMedium" | "redLight" | "recipeVego" | "recipeLactose" | "recipeGluten" | "myPrioGoldDark" | "myPrioGoldLight" | "lightest" | "mediumDark" | "darker" | "darkest" | "buttonGray" | "disabledGray" | "disabledDarkGray" | "placeholder" | "boxShadowActive" | "alertRed" | "alertBlue" | "alertGreen" | "darkOverlay" | "brandBlueHover" | "brandYellowHover" | "brandPrioHover" | "brandBlueActive" | "brandYellowActive" | "brandPrioActive", string>;
|
|
5
5
|
|
|
6
6
|
export { backgroundColor, color, hoverBackgroundColor, hoverColor };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare const margin: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
2
|
-
declare const marginHorizontal: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
3
|
-
declare const marginVertical: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
4
|
-
declare const marginBottomDynamic: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
5
|
-
declare const padding: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
6
|
-
declare const paddingHorizontal: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
1
|
+
declare const margin: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
2
|
+
declare const marginHorizontal: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
3
|
+
declare const marginVertical: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
4
|
+
declare const marginBottomDynamic: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
5
|
+
declare const padding: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
6
|
+
declare const paddingHorizontal: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
7
7
|
declare const paddingVertical: Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl" | "false", string>;
|
|
8
8
|
|
|
9
9
|
export { margin, marginBottomDynamic, marginHorizontal, marginVertical, padding, paddingHorizontal, paddingVertical };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
declare type TTextDecoration = 'underline' | 'lineThrough';
|
|
2
|
-
declare type TTextAlign = 'center' | 'left' | 'right';
|
|
3
|
-
declare type TBodyTextSizeKeys = 'tiny' | 'extraSmall' | 'small' | 'default';
|
|
4
|
-
declare const fontFamily: Record<"display" | "primary" | "code", string>;
|
|
5
|
-
declare const fontSize: Record<"xs" | "code" | "s1" | "s2" | "s3" | "s4" | "m1" | "m2" | "l1", string>;
|
|
6
|
-
declare const fontWeight: Record<"bold" | "medium" | "regular" | "semiBold", string>;
|
|
7
|
-
declare const lineHeight: Record<"xs" | "s1" | "s2" | "m1" | "m2" | "l1" | "m3", string>;
|
|
8
|
-
declare const textAlign: Record<"left" | "right" | "center", string>;
|
|
9
|
-
declare const textDecoration: Record<"underline" | "lineThrough", string>;
|
|
1
|
+
declare type TTextDecoration = 'underline' | 'lineThrough';
|
|
2
|
+
declare type TTextAlign = 'center' | 'left' | 'right';
|
|
3
|
+
declare type TBodyTextSizeKeys = 'tiny' | 'extraSmall' | 'small' | 'default';
|
|
4
|
+
declare const fontFamily: Record<"display" | "primary" | "code", string>;
|
|
5
|
+
declare const fontSize: Record<"xs" | "code" | "s1" | "s2" | "s3" | "s4" | "m1" | "m2" | "l1", string>;
|
|
6
|
+
declare const fontWeight: Record<"bold" | "medium" | "regular" | "semiBold", string>;
|
|
7
|
+
declare const lineHeight: Record<"xs" | "s1" | "s2" | "m1" | "m2" | "l1" | "m3", string>;
|
|
8
|
+
declare const textAlign: Record<"left" | "right" | "center", string>;
|
|
9
|
+
declare const textDecoration: Record<"underline" | "lineThrough", string>;
|
|
10
10
|
declare const bodyTextSize: Record<"small" | "default" | "tiny" | "extraSmall", string>;
|
|
11
11
|
|
|
12
12
|
export { TBodyTextSizeKeys, TTextAlign, TTextDecoration, bodyTextSize, fontFamily, fontSize, fontWeight, lineHeight, textAlign, textDecoration };
|
package/dist/cssUtils/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styleVariants } from '@vanilla-extract/css';
|
|
2
2
|
|
|
3
|
-
declare const spacingsToCssMapper: (fn: typeof styleVariants, css: string, unit?: string) => Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl", string>;
|
|
3
|
+
declare const spacingsToCssMapper: (fn: typeof styleVariants, css: string, unit?: string) => Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl", string>;
|
|
4
4
|
declare const customToCssMapper: (fn: typeof styleVariants, css: string, unit: string, customSizes: any) => Record<string | number | symbol, string>;
|
|
5
5
|
|
|
6
6
|
export { customToCssMapper, spacingsToCssMapper };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { Divider, TDivider } from './components/Divider/Divider.js';
|
|
|
10
10
|
export { Dot, TDot } from './components/Dot/Dot.js';
|
|
11
11
|
export { FormControl, TFormControl, TScreenWidth } from './components/FormControl/FormControl.js';
|
|
12
12
|
export { Header, THeader } from './components/Header/Header.js';
|
|
13
|
+
export { HeaderCheckout, THeaderCheckout } from './components/Header/HeaderCheckout.js';
|
|
13
14
|
export { Input, TInput } from './components/Input/Input.js';
|
|
14
15
|
export { LinkButton, TLinkButton } from './components/LinkButton/LinkButton.js';
|
|
15
16
|
export { EListItemAlignment, ListItem, TItem, TListItem } from './components/ListItem/ListItem.js';
|
package/dist/index.js
CHANGED
|
@@ -10,6 +10,7 @@ export { Divider } from './components/Divider/Divider.js';
|
|
|
10
10
|
export { Dot } from './components/Dot/Dot.js';
|
|
11
11
|
export { FormControl, TScreenWidth } from './components/FormControl/FormControl.js';
|
|
12
12
|
export { Header } from './components/Header/Header.js';
|
|
13
|
+
export { HeaderCheckout } from './components/Header/HeaderCheckout.js';
|
|
13
14
|
export { Input } from './components/Input/Input.js';
|
|
14
15
|
export { LinkButton } from './components/LinkButton/LinkButton.js';
|
|
15
16
|
export { EListItemAlignment, ListItem } from './components/ListItem/ListItem.js';
|
|
@@ -2,15 +2,15 @@ import React from 'react';
|
|
|
2
2
|
import { TPaletteKeys, TFontWeightKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
import { TBodyTextSizeKeys, TTextDecoration, TTextAlign } from '../../cssUtils/typography.css.js';
|
|
4
4
|
|
|
5
|
-
declare type TBodyText = {
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
size?: TBodyTextSizeKeys;
|
|
8
|
-
color?: TPaletteKeys;
|
|
9
|
-
textDecoration?: TTextDecoration;
|
|
10
|
-
fontWeight?: TFontWeightKeys;
|
|
11
|
-
textAlign?: TTextAlign;
|
|
12
|
-
className?: string;
|
|
13
|
-
};
|
|
5
|
+
declare type TBodyText = {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
size?: TBodyTextSizeKeys;
|
|
8
|
+
color?: TPaletteKeys;
|
|
9
|
+
textDecoration?: TTextDecoration;
|
|
10
|
+
fontWeight?: TFontWeightKeys;
|
|
11
|
+
textAlign?: TTextAlign;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
14
|
declare const BodyText: ({ children, color, fontWeight, textDecoration, size, textAlign, className }: TBodyText) => JSX.Element;
|
|
15
15
|
|
|
16
16
|
export { BodyText, TBodyText };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TPaletteKeys, TFontWeightKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
|
|
4
|
-
declare type TH1 = {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
lineThrough?: boolean;
|
|
7
|
-
color?: TPaletteKeys;
|
|
8
|
-
fontWeight?: TFontWeightKeys;
|
|
9
|
-
className?: string;
|
|
10
|
-
};
|
|
4
|
+
declare type TH1 = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
lineThrough?: boolean;
|
|
7
|
+
color?: TPaletteKeys;
|
|
8
|
+
fontWeight?: TFontWeightKeys;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
11
|
declare const H1: ({ children, color, fontWeight, lineThrough, className }: TH1) => JSX.Element;
|
|
12
12
|
|
|
13
13
|
export { H1, TH1 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TPaletteKeys, TFontWeightKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
|
|
4
|
-
declare type TH2 = {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
lineThrough?: boolean;
|
|
7
|
-
color?: TPaletteKeys;
|
|
8
|
-
fontWeight?: TFontWeightKeys;
|
|
9
|
-
className?: string;
|
|
10
|
-
};
|
|
4
|
+
declare type TH2 = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
lineThrough?: boolean;
|
|
7
|
+
color?: TPaletteKeys;
|
|
8
|
+
fontWeight?: TFontWeightKeys;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
11
|
declare const H2: ({ children, color, fontWeight, lineThrough, className }: TH2) => JSX.Element;
|
|
12
12
|
|
|
13
13
|
export { H2, TH2 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TPaletteKeys, TFontWeightKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
|
|
4
|
-
declare type TH3 = {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
lineThrough?: boolean;
|
|
7
|
-
color?: TPaletteKeys;
|
|
8
|
-
fontWeight?: TFontWeightKeys;
|
|
9
|
-
className?: string;
|
|
10
|
-
};
|
|
4
|
+
declare type TH3 = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
lineThrough?: boolean;
|
|
7
|
+
color?: TPaletteKeys;
|
|
8
|
+
fontWeight?: TFontWeightKeys;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
11
|
declare const H3: ({ children, className, color, fontWeight, lineThrough }: TH3) => JSX.Element;
|
|
12
12
|
|
|
13
13
|
export { H3, TH3 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components_v2",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"react-dom": "^17.0.1"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@citygross/design-tokens_v2": "^0.0.
|
|
66
|
+
"@citygross/design-tokens_v2": "^0.0.7",
|
|
67
67
|
"@citygross/icons_v2": "^0.0.5",
|
|
68
68
|
"@citygross/react-use-bg-wizard": "^0.0.8",
|
|
69
69
|
"@citygross/typography": "^0.0.89",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"react-slick": "^0.30.1",
|
|
78
78
|
"slick-carousel": "^1.8.1"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "9689ed1055a89211b68777d29774bc3be1801ecb"
|
|
81
81
|
}
|