@citygross/components_v2 0.0.21 → 0.0.23
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.css.ts.vanilla.css +14 -0
- package/dist/components/Accordion/Accordion.css.vanilla.js +7 -0
- package/dist/components/Accordion/Accordion.d.ts +10 -0
- package/dist/components/Accordion/Accordion.js +8 -0
- package/dist/components/Divider/Divider.css.ts.vanilla.css +0 -2
- package/dist/components/Divider/Divider.css.vanilla.js +2 -1
- package/dist/components/Divider/Divider.d.ts +2 -1
- package/dist/components/Divider/Divider.js +3 -2
- package/dist/components/LinkButton/LinkButton.css.ts.vanilla.css +80 -0
- package/dist/components/LinkButton/LinkButton.css.vanilla.js +6 -0
- package/dist/components/LinkButton/LinkButton.d.ts +11 -0
- package/dist/components/LinkButton/LinkButton.js +21 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.Accordion_accordionContainer__1fnaf7h0 {
|
|
2
|
+
display: grid;
|
|
3
|
+
transition: grid-template-rows 0.3s ease-in-out;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
}
|
|
6
|
+
.Accordion_accordionContainer_open_true__1fnaf7h1 {
|
|
7
|
+
grid-template-rows: 1fr;
|
|
8
|
+
}
|
|
9
|
+
.Accordion_accordionContainer_open_false__1fnaf7h2 {
|
|
10
|
+
grid-template-rows: 0fr;
|
|
11
|
+
}
|
|
12
|
+
.Accordion_accordionContent__1fnaf7h3 {
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import './Accordion.css.ts.vanilla.css';
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
|
+
|
|
4
|
+
var accordionContainer = createRuntimeFn({ defaultClassName: "Accordion_accordionContainer__1fnaf7h0", variantClassNames: { open: { true: "Accordion_accordionContainer_open_true__1fnaf7h1", false: "Accordion_accordionContainer_open_false__1fnaf7h2" } }, defaultVariants: { open: false }, compoundVariants: [] });
|
|
5
|
+
var accordionContent = "Accordion_accordionContent__1fnaf7h3";
|
|
6
|
+
|
|
7
|
+
export { accordionContainer, accordionContent };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { accordionContainer, accordionContent } from './Accordion.css.vanilla.js';
|
|
3
|
+
|
|
4
|
+
const Accordion = ({ children, open, className }) => {
|
|
5
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${accordionContainer({ open })} ${className}` }, /* @__PURE__ */ React.createElement("div", { className: accordionContent }, children));
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { Accordion };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import './../../cssUtils/color.css.ts.vanilla.css';
|
|
1
2
|
import './../../cssUtils/spacings.css.ts.vanilla.css';
|
|
2
3
|
import './Divider.css.ts.vanilla.css';
|
|
3
4
|
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
4
5
|
|
|
5
|
-
var divider = createRuntimeFn({ defaultClassName: "Divider_divider__1ibthdh0", variantClassNames: { marginVertical: { xxxs: "spacings_marginVertical_xxxs__e0awtzo", xxs: "spacings_marginVertical_xxs__e0awtzp", xxs2: "spacings_marginVertical_xxs2__e0awtzq", xs: "spacings_marginVertical_xs__e0awtzr", xs2: "spacings_marginVertical_xs2__e0awtzs", sm: "spacings_marginVertical_sm__e0awtzt", sm2: "spacings_marginVertical_sm2__e0awtzu", md: "spacings_marginVertical_md__e0awtzv", lg: "spacings_marginVertical_lg__e0awtzw", xl: "spacings_marginVertical_xl__e0awtzx", xxl: "spacings_marginVertical_xxl__e0awtzy", false: "spacings_marginVertical_false__e0awtzz" } }, defaultVariants: {}, compoundVariants: [] });
|
|
6
|
+
var divider = createRuntimeFn({ defaultClassName: "Divider_divider__1ibthdh0", variantClassNames: { marginVertical: { xxxs: "spacings_marginVertical_xxxs__e0awtzo", xxs: "spacings_marginVertical_xxs__e0awtzp", xxs2: "spacings_marginVertical_xxs2__e0awtzq", xs: "spacings_marginVertical_xs__e0awtzr", xs2: "spacings_marginVertical_xs2__e0awtzs", sm: "spacings_marginVertical_sm__e0awtzt", sm2: "spacings_marginVertical_sm2__e0awtzu", md: "spacings_marginVertical_md__e0awtzv", lg: "spacings_marginVertical_lg__e0awtzw", xl: "spacings_marginVertical_xl__e0awtzx", xxl: "spacings_marginVertical_xxl__e0awtzy", false: "spacings_marginVertical_false__e0awtzz" }, backgroundColor: { primary: "color_backgroundColor_primary__13rr0b21b", secondary: "color_backgroundColor_secondary__13rr0b21c", brandYellow: "color_backgroundColor_brandYellow__13rr0b21d", brandBlue: "color_backgroundColor_brandBlue__13rr0b21e", brandPurple: "color_backgroundColor_brandPurple__13rr0b21f", brandPrio: "color_backgroundColor_brandPrio__13rr0b21g", yellowLighter: "color_backgroundColor_yellowLighter__13rr0b21h", yellowLight: "color_backgroundColor_yellowLight__13rr0b21i", blueLight: "color_backgroundColor_blueLight__13rr0b21j", blueLighter: "color_backgroundColor_blueLighter__13rr0b21k", blueMedium: "color_backgroundColor_blueMedium__13rr0b21l", greenLight: "color_backgroundColor_greenLight__13rr0b21m", greenMedium: "color_backgroundColor_greenMedium__13rr0b21n", redLight: "color_backgroundColor_redLight__13rr0b21o", recipeVego: "color_backgroundColor_recipeVego__13rr0b21p", recipeLactose: "color_backgroundColor_recipeLactose__13rr0b21q", recipeGluten: "color_backgroundColor_recipeGluten__13rr0b21r", link: "color_backgroundColor_link__13rr0b21s", white: "color_backgroundColor_white__13rr0b21t", black: "color_backgroundColor_black__13rr0b21u", lightest: "color_backgroundColor_lightest__13rr0b21v", lighter: "color_backgroundColor_lighter__13rr0b21w", light: "color_backgroundColor_light__13rr0b21x", medium: "color_backgroundColor_medium__13rr0b21y", mediumDark: "color_backgroundColor_mediumDark__13rr0b21z", dark: "color_backgroundColor_dark__13rr0b220", darker: "color_backgroundColor_darker__13rr0b221", darkest: "color_backgroundColor_darkest__13rr0b222", buttonGray: "color_backgroundColor_buttonGray__13rr0b223", disabledGray: "color_backgroundColor_disabledGray__13rr0b224", disabledDarkGray: "color_backgroundColor_disabledDarkGray__13rr0b225", placeholder: "color_backgroundColor_placeholder__13rr0b226", border: "color_backgroundColor_border__13rr0b227", boxShadow: "color_backgroundColor_boxShadow__13rr0b228", boxShadowActive: "color_backgroundColor_boxShadowActive__13rr0b229", alertRed: "color_backgroundColor_alertRed__13rr0b22a", alertBlue: "color_backgroundColor_alertBlue__13rr0b22b", alertGreen: "color_backgroundColor_alertGreen__13rr0b22c", darkOverlay: "color_backgroundColor_darkOverlay__13rr0b22d", transparent: "color_backgroundColor_transparent__13rr0b22e", brandBlueHover: "color_backgroundColor_brandBlueHover__13rr0b22f", brandYellowHover: "color_backgroundColor_brandYellowHover__13rr0b22g", brandPrioHover: "color_backgroundColor_brandPrioHover__13rr0b22h", brandBlueActive: "color_backgroundColor_brandBlueActive__13rr0b22i", brandYellowActive: "color_backgroundColor_brandYellowActive__13rr0b22j", brandPrioActive: "color_backgroundColor_brandPrioActive__13rr0b22k", none: "color_backgroundColor_none__13rr0b22l" } }, defaultVariants: { backgroundColor: "lightest" }, compoundVariants: [] });
|
|
6
7
|
|
|
7
8
|
export { divider };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TSpacingKeys } from '@citygross/design-tokens_v2';
|
|
2
|
+
import { TSpacingKeys, TPaletteKeys } from '@citygross/design-tokens_v2';
|
|
3
3
|
|
|
4
4
|
declare type TDivider = {
|
|
5
5
|
marginVertical?: TSpacingKeys;
|
|
6
|
+
color?: TPaletteKeys;
|
|
6
7
|
};
|
|
7
8
|
declare const Divider: React.FunctionComponent<TDivider>;
|
|
8
9
|
|
|
@@ -2,9 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { divider } from './Divider.css.vanilla.js';
|
|
3
3
|
|
|
4
4
|
const Divider = ({
|
|
5
|
-
marginVertical
|
|
5
|
+
marginVertical,
|
|
6
|
+
color
|
|
6
7
|
}) => {
|
|
7
|
-
return /* @__PURE__ */ React.createElement("div", { className: divider({ marginVertical }) });
|
|
8
|
+
return /* @__PURE__ */ React.createElement("div", { className: divider({ marginVertical, backgroundColor: color }) });
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
export { Divider };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.LinkButton_linkBase__1exysai0 {
|
|
2
|
+
outline: none;
|
|
3
|
+
border: none;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
font-weight: 500;
|
|
6
|
+
border-radius: 2px;
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
}
|
|
9
|
+
.LinkButton_linkBase__1exysai0:focus-visible:not(:hover) {
|
|
10
|
+
outline: none;
|
|
11
|
+
box-shadow: 0 0 0 2px #fff,0 0 0 4px #000,0 0 0 6px #fff;
|
|
12
|
+
transition: all 0.1s ease-in-out;
|
|
13
|
+
}
|
|
14
|
+
.LinkButton_linkBase__1exysai0:disabled {
|
|
15
|
+
cursor: default;
|
|
16
|
+
}
|
|
17
|
+
.LinkButton_linkVariant_primary__1exysai1 {
|
|
18
|
+
color: #0069AE;
|
|
19
|
+
text-decoration: underline;
|
|
20
|
+
}
|
|
21
|
+
.LinkButton_linkVariant_primary__1exysai1:hover:not(:disabled) {
|
|
22
|
+
color: #005C99;
|
|
23
|
+
}
|
|
24
|
+
.LinkButton_linkVariant_primary__1exysai1:active:not(:disabled) {
|
|
25
|
+
color: #004D80;
|
|
26
|
+
}
|
|
27
|
+
.LinkButton_linkVariant_primary__1exysai1:disabled {
|
|
28
|
+
color: #92B9D3;
|
|
29
|
+
}
|
|
30
|
+
.LinkButton_linkVariant_secondary__1exysai2 {
|
|
31
|
+
color: #333333;
|
|
32
|
+
}
|
|
33
|
+
.LinkButton_linkVariant_secondary__1exysai2:hover:not(:disabled) {
|
|
34
|
+
text-decoration: underline;
|
|
35
|
+
}
|
|
36
|
+
.LinkButton_linkVariant_secondary__1exysai2:active:not(:disabled) {
|
|
37
|
+
text-decoration: underline;
|
|
38
|
+
}
|
|
39
|
+
.LinkButton_linkVariant_secondary__1exysai2:disabled {
|
|
40
|
+
color: #B8B8B8;
|
|
41
|
+
}
|
|
42
|
+
.LinkButton_linkVariant_tertiary__1exysai3 {
|
|
43
|
+
color: #333333;
|
|
44
|
+
text-decoration: underline;
|
|
45
|
+
}
|
|
46
|
+
.LinkButton_linkVariant_tertiary__1exysai3:disabled {
|
|
47
|
+
color: #B8B8B8;
|
|
48
|
+
}
|
|
49
|
+
.LinkButton_linkVariant_primaryInverted__1exysai4 {
|
|
50
|
+
color: #FFFFFF;
|
|
51
|
+
text-decoration: underline;
|
|
52
|
+
}
|
|
53
|
+
.LinkButton_linkVariant_primaryInverted__1exysai4:hover:not(:disabled) {
|
|
54
|
+
color: #FFFFFF;
|
|
55
|
+
}
|
|
56
|
+
.LinkButton_linkVariant_primaryInverted__1exysai4:active:not(:disabled) {
|
|
57
|
+
color: #B8B8B8;
|
|
58
|
+
}
|
|
59
|
+
.LinkButton_linkVariant_primaryInverted__1exysai4:disabled {
|
|
60
|
+
color: #5c5c5c;
|
|
61
|
+
}
|
|
62
|
+
.LinkButton_linkVariant_secondaryInverted__1exysai5 {
|
|
63
|
+
color: #FFFFFF;
|
|
64
|
+
}
|
|
65
|
+
.LinkButton_linkVariant_secondaryInverted__1exysai5:hover:not(:disabled) {
|
|
66
|
+
text-decoration: underline;
|
|
67
|
+
}
|
|
68
|
+
.LinkButton_linkVariant_secondaryInverted__1exysai5:active:not(:disabled) {
|
|
69
|
+
text-decoration: underline;
|
|
70
|
+
color: #B8B8B8;
|
|
71
|
+
}
|
|
72
|
+
.LinkButton_linkVariant_secondaryInverted__1exysai5:disabled {
|
|
73
|
+
color: #5c5c5c;
|
|
74
|
+
}
|
|
75
|
+
.LinkButton_linkStyle_size_small__1exysaic {
|
|
76
|
+
font-size: 13px;
|
|
77
|
+
}
|
|
78
|
+
.LinkButton_linkStyle_size_default__1exysaid {
|
|
79
|
+
font-size: 15px;
|
|
80
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './LinkButton.css.ts.vanilla.css';
|
|
2
|
+
import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
|
|
3
|
+
|
|
4
|
+
var linkStyle = createRuntimeFn({ defaultClassName: "LinkButton__1exysai6 LinkButton_linkBase__1exysai0", variantClassNames: { linkVariant: { primary: "LinkButton_linkVariant_primary__1exysai1", secondary: "LinkButton_linkVariant_secondary__1exysai2", tertiary: "LinkButton_linkVariant_tertiary__1exysai3", primaryInverted: "LinkButton_linkVariant_primaryInverted__1exysai4", secondaryInverted: "LinkButton_linkVariant_secondaryInverted__1exysai5" }, size: { small: "LinkButton_linkStyle_size_small__1exysaic", "default": "LinkButton_linkStyle_size_default__1exysaid" } }, defaultVariants: { size: "default", linkVariant: "primary" }, compoundVariants: [] });
|
|
5
|
+
|
|
6
|
+
export { linkStyle };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
declare type TLinkButton = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'primaryInverted' | 'secondaryInverted';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const LinkButton: ({ onClick, children, variant, disabled }: TLinkButton) => JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { LinkButton, TLinkButton };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { linkStyle } from './LinkButton.css.vanilla.js';
|
|
3
|
+
|
|
4
|
+
const LinkButton = ({
|
|
5
|
+
onClick,
|
|
6
|
+
children,
|
|
7
|
+
variant,
|
|
8
|
+
disabled
|
|
9
|
+
}) => {
|
|
10
|
+
return /* @__PURE__ */ React.createElement(
|
|
11
|
+
"button",
|
|
12
|
+
{
|
|
13
|
+
className: linkStyle({ linkVariant: variant }),
|
|
14
|
+
disabled,
|
|
15
|
+
onClick: () => onClick && onClick()
|
|
16
|
+
},
|
|
17
|
+
children
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { LinkButton };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { AlertBox, TAlertBox } from './components/AlertBox/AlertBox.js';
|
|
2
|
+
export { Accordion, TAccordion } from './components/Accordion/Accordion.js';
|
|
2
3
|
export { Box, TBox } from './components/Box/Box.js';
|
|
3
4
|
export { BoxArrow, TBoxArrow } from './components/BoxArrow/BoxArrow.js';
|
|
4
5
|
export { Button, TCgButton } from './components/Button/Button.js';
|
|
@@ -9,6 +10,7 @@ export { Dot, TDot } from './components/Dot/Dot.js';
|
|
|
9
10
|
export { FormControl, TFormControl, TScreenWidth } from './components/FormControl/FormControl.js';
|
|
10
11
|
export { Header, THeader } from './components/Header/Header.js';
|
|
11
12
|
export { Input, TInput } from './components/Input/Input.js';
|
|
13
|
+
export { LinkButton, TLinkButton } from './components/LinkButton/LinkButton.js';
|
|
12
14
|
export { EListItemAlignment, ListItem, TItem, TListItem } from './components/ListItem/ListItem.js';
|
|
13
15
|
export { Modal, TModal } from './components/Modal/Modal.js';
|
|
14
16
|
export { BorderPosition, borderStyle, orderTable, orderTd, orderTh, orderThead, orderTr } from './components/OrderTable/OrderTable.css.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { AlertBox } from './components/AlertBox/AlertBox.js';
|
|
2
|
+
export { Accordion } from './components/Accordion/Accordion.js';
|
|
2
3
|
export { Box } from './components/Box/Box.js';
|
|
3
4
|
export { BoxArrow } from './components/BoxArrow/BoxArrow.js';
|
|
4
5
|
export { Button } from './components/Button/Button.js';
|
|
@@ -9,6 +10,7 @@ export { Dot } from './components/Dot/Dot.js';
|
|
|
9
10
|
export { FormControl, TScreenWidth } from './components/FormControl/FormControl.js';
|
|
10
11
|
export { Header } from './components/Header/Header.js';
|
|
11
12
|
export { Input } from './components/Input/Input.js';
|
|
13
|
+
export { LinkButton } from './components/LinkButton/LinkButton.js';
|
|
12
14
|
export { EListItemAlignment, ListItem } from './components/ListItem/ListItem.js';
|
|
13
15
|
export { Modal } from './components/Modal/Modal.js';
|
|
14
16
|
export { BorderPosition, borderStyle, orderTable, orderTd, orderTh, orderThead, orderTr } from './components/OrderTable/OrderTable.css.vanilla.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components_v2",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"react-slick": "^0.30.1",
|
|
80
80
|
"slick-carousel": "^1.8.1"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "f9b821bd7da7f6175f96fd6c9c3e8e8f76dee538"
|
|
83
83
|
}
|