@dxc-technology/halstack-react 9.0.1 → 10.0.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/HalstackContext.d.ts +2 -2
- package/HalstackContext.js +2 -2
- package/accordion/Accordion.d.ts +1 -1
- package/accordion/Accordion.js +2 -14
- package/accordion/Accordion.stories.tsx +3 -101
- package/accordion/types.d.ts +0 -12
- package/accordion-group/AccordionGroup.d.ts +4 -3
- package/accordion-group/AccordionGroup.js +21 -42
- package/accordion-group/AccordionGroup.stories.tsx +77 -76
- package/accordion-group/AccordionGroup.test.js +6 -16
- package/accordion-group/AccordionGroupAccordion.d.ts +4 -0
- package/accordion-group/AccordionGroupAccordion.js +43 -0
- package/accordion-group/types.d.ts +0 -12
- package/alert/Alert.js +1 -3
- package/bleed/Bleed.stories.tsx +1 -0
- package/box/Box.d.ts +1 -1
- package/box/Box.js +5 -22
- package/box/Box.stories.tsx +25 -53
- package/box/types.d.ts +0 -12
- package/bulleted-list/BulletedList.js +4 -2
- package/bulleted-list/BulletedList.stories.tsx +7 -1
- package/bulleted-list/types.d.ts +31 -4
- package/button/Button.d.ts +1 -1
- package/button/Button.js +45 -55
- package/button/Button.stories.tsx +4 -4
- package/button/Button.test.js +11 -0
- package/button/types.d.ts +4 -0
- package/card/Card.d.ts +1 -1
- package/card/Card.js +18 -35
- package/card/Card.stories.tsx +0 -29
- package/card/types.d.ts +1 -7
- package/chip/Chip.js +23 -36
- package/chip/Chip.stories.tsx +25 -17
- package/common/OpenSans.css +68 -80
- package/common/coreTokens.d.ts +146 -0
- package/common/coreTokens.js +167 -0
- package/common/variables.d.ts +1 -144
- package/common/variables.js +952 -1095
- package/date-input/Calendar.js +2 -2
- package/dialog/Dialog.d.ts +1 -1
- package/dialog/Dialog.js +4 -22
- package/dialog/Dialog.stories.tsx +52 -176
- package/dialog/types.d.ts +0 -13
- package/dropdown/DropdownMenu.js +5 -1
- package/file-input/FileItem.js +2 -2
- package/file-input/types.d.ts +1 -1
- package/flex/Flex.js +4 -2
- package/flex/Flex.stories.tsx +35 -26
- package/flex/types.d.ts +70 -5
- package/footer/Footer.d.ts +1 -1
- package/footer/Footer.js +43 -61
- package/footer/Footer.stories.tsx +12 -89
- package/footer/Footer.test.js +3 -1
- package/footer/types.d.ts +10 -12
- package/grid/Grid.d.ts +7 -0
- package/grid/Grid.js +91 -0
- package/grid/Grid.stories.tsx +219 -0
- package/grid/types.d.ts +115 -0
- package/grid/types.js +5 -0
- package/header/Header.d.ts +1 -1
- package/header/Header.js +3 -30
- package/header/Header.stories.tsx +7 -71
- package/header/types.d.ts +0 -14
- package/inset/Inset.stories.tsx +2 -1
- package/layout/ApplicationLayout.d.ts +4 -4
- package/layout/ApplicationLayout.js +7 -4
- package/layout/types.d.ts +2 -3
- package/link/Link.js +1 -1
- package/main.d.ts +2 -1
- package/main.js +8 -0
- package/nav-tabs/NavTabs.d.ts +2 -2
- package/nav-tabs/NavTabs.js +7 -10
- package/nav-tabs/NavTabs.stories.tsx +14 -0
- package/nav-tabs/Tab.js +22 -26
- package/nav-tabs/types.d.ts +8 -9
- package/package.json +1 -1
- package/paginator/Paginator.js +1 -1
- package/paginator/Paginator.test.js +13 -0
- package/radio-group/Radio.js +10 -10
- package/radio-group/RadioGroup.js +8 -10
- package/sidenav/Icons.d.ts +7 -0
- package/sidenav/Icons.js +51 -0
- package/sidenav/Sidenav.d.ts +2 -2
- package/sidenav/Sidenav.js +65 -93
- package/sidenav/Sidenav.stories.tsx +60 -60
- package/sidenav/types.d.ts +21 -18
- package/tabs/Tab.js +1 -2
- package/tabs/Tabs.js +10 -14
- package/text-input/TextInput.js +1 -1
- package/text-input/TextInput.stories.tsx +1 -1
- package/textarea/Textarea.js +0 -1
- package/textarea/Textarea.test.js +1 -3
- package/toggle-group/ToggleGroup.d.ts +2 -2
- package/useTheme.d.ts +1 -1
- package/utils/FocusLock.js +3 -4
- package/card/ice-cream.jpg +0 -0
package/card/Card.stories.tsx
CHANGED
|
@@ -106,35 +106,6 @@ const Card = () => (
|
|
|
106
106
|
Xxlarge
|
|
107
107
|
</DxcCard>
|
|
108
108
|
</ExampleContainer>
|
|
109
|
-
<Title title="Content padding" theme="light" level={2} />
|
|
110
|
-
<ExampleContainer>
|
|
111
|
-
<Title title="Xxsmall" theme="light" level={4} />
|
|
112
|
-
<DxcCard contentPadding="xxsmall">Xxsmall</DxcCard>
|
|
113
|
-
</ExampleContainer>
|
|
114
|
-
<ExampleContainer>
|
|
115
|
-
<Title title="Xsmall" theme="light" level={4} />
|
|
116
|
-
<DxcCard contentPadding="xsmall">Xsmall</DxcCard>
|
|
117
|
-
</ExampleContainer>
|
|
118
|
-
<ExampleContainer>
|
|
119
|
-
<Title title="Small" theme="light" level={4} />
|
|
120
|
-
<DxcCard contentPadding="small">Small</DxcCard>
|
|
121
|
-
</ExampleContainer>
|
|
122
|
-
<ExampleContainer>
|
|
123
|
-
<Title title="Medium" theme="light" level={4} />
|
|
124
|
-
<DxcCard contentPadding="medium">Medium</DxcCard>
|
|
125
|
-
</ExampleContainer>
|
|
126
|
-
<ExampleContainer>
|
|
127
|
-
<Title title="Large" theme="light" level={4} />
|
|
128
|
-
<DxcCard contentPadding="large">Large</DxcCard>
|
|
129
|
-
</ExampleContainer>
|
|
130
|
-
<ExampleContainer>
|
|
131
|
-
<Title title="Xlarge" theme="light" level={4} />
|
|
132
|
-
<DxcCard contentPadding="xlarge">Xlarge</DxcCard>
|
|
133
|
-
</ExampleContainer>
|
|
134
|
-
<ExampleContainer>
|
|
135
|
-
<Title title="Xxlarge" theme="light" level={4} />
|
|
136
|
-
<DxcCard contentPadding="xxlarge">Xxlarge</DxcCard>
|
|
137
|
-
</ExampleContainer>
|
|
138
109
|
<Title title="Margin" theme="light" level={2} />
|
|
139
110
|
<ExampleContainer>
|
|
140
111
|
<Title title="Xxsmall" theme="light" level={4} />
|
package/card/types.d.ts
CHANGED
|
@@ -46,18 +46,12 @@ declare type Props = {
|
|
|
46
46
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
47
47
|
*/
|
|
48
48
|
margin?: Space | Size;
|
|
49
|
-
/**
|
|
50
|
-
* @deprecated This prop will be removed shortly, consider using the Inset component for this purpose.
|
|
51
|
-
* Size of the padding to be applied to the content area ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
52
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different padding sizes.
|
|
53
|
-
*/
|
|
54
|
-
contentPadding?: Space | Size;
|
|
55
49
|
/**
|
|
56
50
|
* Value of the tabindex given when there is an href.
|
|
57
51
|
*/
|
|
58
52
|
tabIndex?: number;
|
|
59
53
|
/**
|
|
60
|
-
*
|
|
54
|
+
* Determines whether or not the component should have an outline.
|
|
61
55
|
*/
|
|
62
56
|
outlined?: boolean;
|
|
63
57
|
/**
|
package/chip/Chip.js
CHANGED
|
@@ -42,43 +42,42 @@ var DxcChip = function DxcChip(_ref) {
|
|
|
42
42
|
var colorsTheme = (0, _useTheme["default"])();
|
|
43
43
|
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
44
44
|
theme: colorsTheme.chip
|
|
45
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
45
|
+
}, /*#__PURE__*/_react["default"].createElement(Chip, {
|
|
46
46
|
disabled: disabled,
|
|
47
47
|
margin: margin
|
|
48
48
|
}, prefixIcon && /*#__PURE__*/_react["default"].createElement(IconContainer, {
|
|
49
|
+
role: typeof onClickPrefix === "function" ? "button" : undefined,
|
|
49
50
|
disabled: disabled,
|
|
50
|
-
|
|
51
|
-
label: label,
|
|
51
|
+
interactuable: typeof onClickPrefix === "function" && !disabled,
|
|
52
52
|
tabIndex: typeof onClickPrefix === "function" && !disabled ? tabIndex : -1,
|
|
53
53
|
onClick: function onClick() {
|
|
54
54
|
return onClickPrefix && !disabled && onClickPrefix();
|
|
55
|
-
}
|
|
56
|
-
interactuable: typeof onClickPrefix === "function" && !disabled
|
|
55
|
+
}
|
|
57
56
|
}, typeof prefixIcon === "string" ? /*#__PURE__*/_react["default"].createElement("img", {
|
|
58
57
|
src: prefixIcon
|
|
59
|
-
}) : prefixIcon), label && /*#__PURE__*/_react["default"].createElement(
|
|
58
|
+
}) : prefixIcon), label && /*#__PURE__*/_react["default"].createElement(LabelContainer, {
|
|
60
59
|
disabled: disabled
|
|
61
60
|
}, label), suffixIcon && /*#__PURE__*/_react["default"].createElement(IconContainer, {
|
|
61
|
+
role: typeof onClickSuffix === "function" ? "button" : undefined,
|
|
62
62
|
disabled: disabled,
|
|
63
|
-
|
|
64
|
-
label: label,
|
|
63
|
+
interactuable: typeof onClickSuffix === "function" && !disabled,
|
|
65
64
|
tabIndex: typeof onClickSuffix === "function" && !disabled ? tabIndex : -1,
|
|
66
65
|
onClick: function onClick() {
|
|
67
|
-
return
|
|
68
|
-
}
|
|
69
|
-
interactuable: typeof onClickSuffix === "function" && !disabled
|
|
66
|
+
return !disabled && (onClickSuffix === null || onClickSuffix === void 0 ? void 0 : onClickSuffix());
|
|
67
|
+
}
|
|
70
68
|
}, typeof suffixIcon === "string" ? /*#__PURE__*/_react["default"].createElement("img", {
|
|
71
69
|
src: suffixIcon
|
|
72
70
|
}) : suffixIcon)));
|
|
73
71
|
};
|
|
74
72
|
|
|
75
|
-
var
|
|
76
|
-
|
|
73
|
+
var calculateWidth = function calculateWidth(margin) {
|
|
74
|
+
return "calc(100% - ".concat((0, _utils.getMargin)(margin, "left"), " - ").concat((0, _utils.getMargin)(margin, "right"), ")");
|
|
77
75
|
};
|
|
78
76
|
|
|
79
|
-
var
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
var Chip = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n gap: ", ";\n min-height: 40px;\n max-width: ", ";\n background-color: ", ";\n border-radius: ", ";\n border-width: ", ";\n border-style: ", ";\n border-color: ", ";\n\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n cursor: ", ";\n"])), function (props) {
|
|
78
|
+
return props.theme.iconSpacing;
|
|
79
|
+
}, function (props) {
|
|
80
|
+
return calculateWidth(props.margin);
|
|
82
81
|
}, function (props) {
|
|
83
82
|
return props.disabled && props.theme.disabledBackgroundColor || props.theme.backgroundColor;
|
|
84
83
|
}, function (props) {
|
|
@@ -107,12 +106,12 @@ var StyledDxcChip = _styledComponents["default"].div(_templateObject || (_templa
|
|
|
107
106
|
return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.bottom ? _variables.spaces[props.margin.bottom] : "";
|
|
108
107
|
}, function (props) {
|
|
109
108
|
return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.left ? _variables.spaces[props.margin.left] : "";
|
|
110
|
-
}, function (
|
|
111
|
-
var disabled =
|
|
109
|
+
}, function (_ref2) {
|
|
110
|
+
var disabled = _ref2.disabled;
|
|
112
111
|
return disabled && "not-allowed";
|
|
113
112
|
});
|
|
114
113
|
|
|
115
|
-
var
|
|
114
|
+
var LabelContainer = _styledComponents["default"].span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-family: ", ";\n font-weight: ", ";\n font-style: ", ";\n color: ", ";\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"])), function (props) {
|
|
116
115
|
return props.theme.fontSize;
|
|
117
116
|
}, function (props) {
|
|
118
117
|
return props.theme.fontFamily;
|
|
@@ -122,27 +121,15 @@ var ChipTextContainer = _styledComponents["default"].span(_templateObject2 || (_
|
|
|
122
121
|
return props.theme.fontStyle;
|
|
123
122
|
}, function (props) {
|
|
124
123
|
return props.disabled ? props.theme.disabledFontColor : props.theme.fontColor;
|
|
125
|
-
}, function (_ref4) {
|
|
126
|
-
var disabled = _ref4.disabled;
|
|
127
|
-
return disabled && "not-allowed" || "default";
|
|
128
124
|
});
|
|
129
125
|
|
|
130
|
-
var IconContainer = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n
|
|
131
|
-
return props.prefixIcon ? "margin-right: ".concat((props.label || props.suffixIcon) && props.theme.iconSpacing || props.prefixIcon && "0", ";") : "margin-left: ".concat((props.label || props.prefixIcon) && props.theme.iconSpacing || props.prefixIcon && "0", ";");
|
|
132
|
-
}, function (props) {
|
|
126
|
+
var IconContainer = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n border-radius: 0.25rem;\n color: ", ";\n ", "\n\n ", "\n\n img,\n svg {\n width: ", ";\n height: ", ";\n }\n"])), function (props) {
|
|
133
127
|
return props.disabled ? props.theme.disabledIconColor : props.theme.iconColor;
|
|
128
|
+
}, function (_ref3) {
|
|
129
|
+
var interactuable = _ref3.interactuable;
|
|
130
|
+
return interactuable && "cursor: pointer;";
|
|
134
131
|
}, function (props) {
|
|
135
|
-
return
|
|
136
|
-
}, function (props) {
|
|
137
|
-
return !props.disabled && props.theme.hoverIconColor;
|
|
138
|
-
}, function (props) {
|
|
139
|
-
return !props.disabled && props.theme.focusColor;
|
|
140
|
-
}, function (props) {
|
|
141
|
-
return !props.disabled && props.theme.focusBorderThickness;
|
|
142
|
-
}, function (props) {
|
|
143
|
-
return props.disabled && "outline: none;";
|
|
144
|
-
}, function (props) {
|
|
145
|
-
return !props.disabled && props.theme.activeIconColor;
|
|
132
|
+
return props.interactuable && "\n &:hover {\n color: ".concat(props.theme.hoverIconColor, ";\n }\n &:focus,\n &:focus-visible {\n outline: ").concat(props.theme.focusBorderThickness, " solid ").concat(props.theme.focusColor, ";\n }\n &:active {\n color: ").concat(props.theme.activeIconColor, ";\n }\n ");
|
|
146
133
|
}, function (props) {
|
|
147
134
|
return props.theme.iconSize;
|
|
148
135
|
}, function (props) {
|
package/chip/Chip.stories.tsx
CHANGED
|
@@ -81,29 +81,37 @@ export const Chromatic = () => (
|
|
|
81
81
|
</ExampleContainer>
|
|
82
82
|
<ExampleContainer>
|
|
83
83
|
<Title title="Chip with ellipsis" theme="light" level={4} />
|
|
84
|
-
<
|
|
84
|
+
<div style={{ width: "200px" }}>
|
|
85
|
+
<DxcChip label="With ellipsis asdfasdf asdf asdfasdf asdf asdfasdf asdfasdf asdf asdf adfasrfasf afsdg afgasfg asdf asdf asdf asdf asdf asdf asdf afdg asfg asdfg asdf asdf asdf asdfasdf asd fas df asd asdf asdf asdfasd fg ssssssssssss ssss" />
|
|
86
|
+
</div>
|
|
85
87
|
</ExampleContainer>
|
|
86
88
|
<ExampleContainer>
|
|
87
89
|
<Title title="Chip with ellipsis and suffix" theme="light" level={4} />
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
<div style={{ width: "200px" }}>
|
|
91
|
+
<DxcChip
|
|
92
|
+
suffixIcon={iconSVG}
|
|
93
|
+
label="With ellipsis asdfasdf asdf asdfasdf asdf asdfasdf asdfasdf asdf asdf adfasrfasf afsdg afgasfg asdf asdf asdf asdf asdf asdf asdf afdg asfg asdfg asdf asdf asdf asdfasdf asd fas df asd asdf asdf asdfasd fgsss"
|
|
94
|
+
/>
|
|
95
|
+
</div>
|
|
92
96
|
</ExampleContainer>
|
|
93
97
|
<ExampleContainer>
|
|
94
98
|
<Title title="Chip with ellipsis and prefix" theme="light" level={4} />
|
|
95
|
-
<
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
<div style={{ width: "200px" }}>
|
|
100
|
+
<DxcChip
|
|
101
|
+
prefixIcon={iconSVG}
|
|
102
|
+
label="With ellipsis asdfasdf asdf asdfasdf asdf asdfasdf asdfasdf asdf asdf adfasrfasf afsdg afgasfg asdf asdf asdf asdf asdf asdf asdf afdg asfg asdfg asdf asdf asdf asdfasdf asd fas df asd asdf asdf asdfasd fgsss"
|
|
103
|
+
/>
|
|
104
|
+
</div>
|
|
99
105
|
</ExampleContainer>
|
|
100
106
|
<ExampleContainer>
|
|
101
107
|
<Title title="Chip with ellipsis, suffix and prefix" theme="light" level={4} />
|
|
102
|
-
<
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
108
|
+
<div style={{ width: "200px" }}>
|
|
109
|
+
<DxcChip
|
|
110
|
+
prefixIcon={iconSVG}
|
|
111
|
+
suffixIcon={iconSVG}
|
|
112
|
+
label="With ellipsis asdfasdf asdf asdfasdf asdf asdfasdf asdfasdf asdf asdf adfasrfasf afsdg afgasfg asdf asdf asdf asdf asdf asdf asdf afdg asfg asdfg asdf asdf asdf asdfasdf asd fas df asd asdf asdf asdfasdf"
|
|
113
|
+
/>
|
|
114
|
+
</div>
|
|
107
115
|
</ExampleContainer>
|
|
108
116
|
<Title title="Margins" theme="light" level={2} />
|
|
109
117
|
<ExampleContainer>
|
|
@@ -191,16 +199,16 @@ const ChipPrefixFocused = () => (
|
|
|
191
199
|
const ChipSuffixFocused = () => (
|
|
192
200
|
<ExampleContainer>
|
|
193
201
|
<Title title="Chip with suffix" theme="light" level={4} />
|
|
194
|
-
<DxcChip label="Chip with suffix" suffixIcon=
|
|
202
|
+
<DxcChip label="Chip with suffix" suffixIcon="https://icons-for-free.com/download-icon-close+icon-1320184117228553763_512.png" onClickSuffix={() => {}} />
|
|
195
203
|
</ExampleContainer>
|
|
196
204
|
);
|
|
197
205
|
|
|
198
206
|
export const PrefixFocused = ChipPrefixFocused.bind({});
|
|
199
|
-
PrefixFocused.play = async (
|
|
207
|
+
PrefixFocused.play = async () => {
|
|
200
208
|
await userEvent.tab();
|
|
201
209
|
};
|
|
202
210
|
|
|
203
211
|
export const SuffixFocused = ChipSuffixFocused.bind({});
|
|
204
|
-
SuffixFocused.play = async (
|
|
212
|
+
SuffixFocused.play = async () => {
|
|
205
213
|
await userEvent.tab();
|
|
206
214
|
};
|
package/common/OpenSans.css
CHANGED
|
@@ -1,81 +1,69 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "Open Sans";
|
|
3
|
+
src: url("./fonts/OpenSans-Light.ttf") format("truetype");
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 200;
|
|
6
|
+
}
|
|
1
7
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@font-face {
|
|
67
|
-
font-family: 'Open Sans';
|
|
68
|
-
src: url('./fonts/OpenSans-BoldItalic.ttf')
|
|
69
|
-
format('truetype');
|
|
70
|
-
font-style: italic;
|
|
71
|
-
font-weight: 700;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@font-face {
|
|
75
|
-
font-family: 'Open Sans';
|
|
76
|
-
src: url('./fonts/OpenSans-ExtraBoldItalic.ttf')
|
|
77
|
-
format('truetype');
|
|
78
|
-
font-style: italic;
|
|
79
|
-
font-weight: 800;
|
|
80
|
-
}
|
|
81
|
-
|
|
8
|
+
@font-face {
|
|
9
|
+
font-family: "Open Sans";
|
|
10
|
+
src: url("./fonts/OpenSans-Regular.ttf") format("truetype");
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@font-face {
|
|
16
|
+
font-family: "Open Sans";
|
|
17
|
+
src: url("./fonts/OpenSans-SemiBold.ttf") format("truetype");
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@font-face {
|
|
23
|
+
font-family: "Open Sans";
|
|
24
|
+
src: url("./fonts/OpenSans-Bold.ttf") format("truetype");
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: "Open Sans";
|
|
31
|
+
src: url("./fonts/OpenSans-ExtraBold.ttf") format("truetype");
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-weight: 800;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@font-face {
|
|
37
|
+
font-family: "Open Sans";
|
|
38
|
+
src: url("./fonts/OpenSans-LightItalic.ttf") format("truetype");
|
|
39
|
+
font-style: italic;
|
|
40
|
+
font-weight: 200;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@font-face {
|
|
44
|
+
font-family: "Open Sans";
|
|
45
|
+
src: url("./fonts/OpenSans-Italic.ttf") format("truetype");
|
|
46
|
+
font-style: italic;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@font-face {
|
|
51
|
+
font-family: "Open Sans";
|
|
52
|
+
src: url("./fonts/OpenSans-SemiBoldItalic.ttf") format("truetype");
|
|
53
|
+
font-style: italic;
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@font-face {
|
|
58
|
+
font-family: "Open Sans";
|
|
59
|
+
src: url("./fonts/OpenSans-BoldItalic.ttf") format("truetype");
|
|
60
|
+
font-style: italic;
|
|
61
|
+
font-weight: 700;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@font-face {
|
|
65
|
+
font-family: "Open Sans";
|
|
66
|
+
src: url("./fonts/OpenSans-ExtraBoldItalic.ttf") format("truetype");
|
|
67
|
+
font-style: italic;
|
|
68
|
+
font-weight: 800;
|
|
69
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
declare const CORE_TOKENS: {
|
|
2
|
+
inherit: string;
|
|
3
|
+
color_black: string;
|
|
4
|
+
color_white: string;
|
|
5
|
+
color_transparent: string;
|
|
6
|
+
color_grey_50: string;
|
|
7
|
+
color_grey_100: string;
|
|
8
|
+
color_grey_200: string;
|
|
9
|
+
color_grey_300: string;
|
|
10
|
+
color_grey_400: string;
|
|
11
|
+
color_grey_500: string;
|
|
12
|
+
color_grey_600: string;
|
|
13
|
+
color_grey_700: string;
|
|
14
|
+
color_grey_800: string;
|
|
15
|
+
color_grey_900: string;
|
|
16
|
+
color_grey_50_a: string;
|
|
17
|
+
color_grey_100_a: string;
|
|
18
|
+
color_grey_200_a: string;
|
|
19
|
+
color_grey_300_a: string;
|
|
20
|
+
color_grey_400_a: string;
|
|
21
|
+
color_grey_500_a: string;
|
|
22
|
+
color_grey_600_a: string;
|
|
23
|
+
color_grey_700_a: string;
|
|
24
|
+
color_grey_800_a: string;
|
|
25
|
+
color_grey_900_a: string;
|
|
26
|
+
color_purple_50: string;
|
|
27
|
+
color_purple_100: string;
|
|
28
|
+
color_purple_200: string;
|
|
29
|
+
color_purple_300: string;
|
|
30
|
+
color_purple_400: string;
|
|
31
|
+
color_purple_500: string;
|
|
32
|
+
color_purple_600: string;
|
|
33
|
+
color_purple_700: string;
|
|
34
|
+
color_purple_800: string;
|
|
35
|
+
color_purple_900: string;
|
|
36
|
+
color_blue_50: string;
|
|
37
|
+
color_blue_100: string;
|
|
38
|
+
color_blue_200: string;
|
|
39
|
+
color_blue_300: string;
|
|
40
|
+
color_blue_400: string;
|
|
41
|
+
color_blue_500: string;
|
|
42
|
+
color_blue_600: string;
|
|
43
|
+
color_blue_700: string;
|
|
44
|
+
color_blue_800: string;
|
|
45
|
+
color_blue_900: string;
|
|
46
|
+
color_red_50: string;
|
|
47
|
+
color_red_100: string;
|
|
48
|
+
color_red_200: string;
|
|
49
|
+
color_red_300: string;
|
|
50
|
+
color_red_400: string;
|
|
51
|
+
color_red_500: string;
|
|
52
|
+
color_red_600: string;
|
|
53
|
+
color_red_700: string;
|
|
54
|
+
color_red_800: string;
|
|
55
|
+
color_red_900: string;
|
|
56
|
+
color_green_50: string;
|
|
57
|
+
color_green_100: string;
|
|
58
|
+
color_green_200: string;
|
|
59
|
+
color_green_300: string;
|
|
60
|
+
color_green_400: string;
|
|
61
|
+
color_green_500: string;
|
|
62
|
+
color_green_600: string;
|
|
63
|
+
color_green_700: string;
|
|
64
|
+
color_green_800: string;
|
|
65
|
+
color_green_900: string;
|
|
66
|
+
color_yellow_50: string;
|
|
67
|
+
color_yellow_100: string;
|
|
68
|
+
color_yellow_200: string;
|
|
69
|
+
color_yellow_300: string;
|
|
70
|
+
color_yellow_400: string;
|
|
71
|
+
color_yellow_500: string;
|
|
72
|
+
color_yellow_600: string;
|
|
73
|
+
color_yellow_700: string;
|
|
74
|
+
color_yellow_800: string;
|
|
75
|
+
color_yellow_900: string;
|
|
76
|
+
color_orange_50: string;
|
|
77
|
+
color_orange_100: string;
|
|
78
|
+
color_orange_200: string;
|
|
79
|
+
color_orange_300: string;
|
|
80
|
+
color_orange_400: string;
|
|
81
|
+
color_orange_500: string;
|
|
82
|
+
color_orange_600: string;
|
|
83
|
+
color_orange_700: string;
|
|
84
|
+
color_orange_800: string;
|
|
85
|
+
color_orange_900: string;
|
|
86
|
+
type_sans: string;
|
|
87
|
+
type_scale_root: string;
|
|
88
|
+
type_scale_08: string;
|
|
89
|
+
type_scale_07: string;
|
|
90
|
+
type_scale_06: string;
|
|
91
|
+
type_scale_05: string;
|
|
92
|
+
type_scale_04: string;
|
|
93
|
+
type_scale_03: string;
|
|
94
|
+
type_scale_02: string;
|
|
95
|
+
type_scale_01: string;
|
|
96
|
+
type_light: string;
|
|
97
|
+
type_regular: string;
|
|
98
|
+
type_semibold: string;
|
|
99
|
+
type_bold: string;
|
|
100
|
+
type_italic: string;
|
|
101
|
+
type_normal: string;
|
|
102
|
+
type_spacing_tight_02: string;
|
|
103
|
+
type_spacing_tight_01: string;
|
|
104
|
+
type_spacing_normal: string;
|
|
105
|
+
type_spacing_wide_01: string;
|
|
106
|
+
type_spacing_wide_02: string;
|
|
107
|
+
type_spacing_wide_03: string;
|
|
108
|
+
type_initial: string;
|
|
109
|
+
type_uppercase: string;
|
|
110
|
+
type_no_line: string;
|
|
111
|
+
type_underline: string;
|
|
112
|
+
type_line_through: string;
|
|
113
|
+
type_leading_compact_03: string;
|
|
114
|
+
type_leading_compact_02: string;
|
|
115
|
+
type_leading_compact_01: string;
|
|
116
|
+
type_leading_normal: string;
|
|
117
|
+
type_leading_loose_01: string;
|
|
118
|
+
type_leading_loose_02: string;
|
|
119
|
+
spacing_0: string;
|
|
120
|
+
spacing_2: string;
|
|
121
|
+
spacing_4: string;
|
|
122
|
+
spacing_8: string;
|
|
123
|
+
spacing_12: string;
|
|
124
|
+
spacing_16: string;
|
|
125
|
+
spacing_24: string;
|
|
126
|
+
spacing_32: string;
|
|
127
|
+
spacing_40: string;
|
|
128
|
+
spacing_48: string;
|
|
129
|
+
spacing_56: string;
|
|
130
|
+
spacing_64: string;
|
|
131
|
+
spacing_80: string;
|
|
132
|
+
spacing_96: string;
|
|
133
|
+
spacing_112: string;
|
|
134
|
+
border_width_0: string;
|
|
135
|
+
border_width_1: string;
|
|
136
|
+
border_width_2: string;
|
|
137
|
+
border_width_4: string;
|
|
138
|
+
border_radius_none: string;
|
|
139
|
+
border_radius_small: string;
|
|
140
|
+
border_radius_medium: string;
|
|
141
|
+
border_radius_large: string;
|
|
142
|
+
border_solid: string;
|
|
143
|
+
border_dashed: string;
|
|
144
|
+
border_none: string;
|
|
145
|
+
};
|
|
146
|
+
export default CORE_TOKENS;
|