@dxc-technology/halstack-react 9.1.0 → 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.
Files changed (81) hide show
  1. package/HalstackContext.d.ts +3 -6
  2. package/HalstackContext.js +1 -1
  3. package/accordion/Accordion.d.ts +1 -1
  4. package/accordion/Accordion.js +2 -14
  5. package/accordion/Accordion.stories.tsx +2 -100
  6. package/accordion/types.d.ts +0 -12
  7. package/accordion-group/AccordionGroup.d.ts +4 -3
  8. package/accordion-group/AccordionGroup.js +21 -42
  9. package/accordion-group/AccordionGroup.stories.tsx +77 -76
  10. package/accordion-group/AccordionGroup.test.js +6 -16
  11. package/accordion-group/AccordionGroupAccordion.d.ts +4 -0
  12. package/accordion-group/AccordionGroupAccordion.js +43 -0
  13. package/accordion-group/types.d.ts +0 -12
  14. package/alert/Alert.js +1 -3
  15. package/box/Box.d.ts +1 -1
  16. package/box/Box.js +5 -22
  17. package/box/Box.stories.tsx +25 -53
  18. package/box/types.d.ts +0 -12
  19. package/bulleted-list/BulletedList.js +4 -2
  20. package/bulleted-list/BulletedList.stories.tsx +7 -1
  21. package/bulleted-list/types.d.ts +31 -4
  22. package/button/Button.d.ts +1 -1
  23. package/button/Button.js +45 -54
  24. package/button/Button.stories.tsx +3 -3
  25. package/button/Button.test.js +11 -0
  26. package/button/types.d.ts +4 -0
  27. package/card/Card.d.ts +1 -1
  28. package/card/Card.js +18 -35
  29. package/card/Card.stories.tsx +0 -29
  30. package/card/types.d.ts +1 -7
  31. package/chip/Chip.js +23 -36
  32. package/chip/Chip.stories.tsx +25 -17
  33. package/common/OpenSans.css +68 -80
  34. package/common/coreTokens.d.ts +146 -0
  35. package/common/coreTokens.js +167 -0
  36. package/common/variables.d.ts +1 -144
  37. package/common/variables.js +952 -1095
  38. package/date-input/Calendar.js +2 -2
  39. package/dialog/Dialog.d.ts +1 -1
  40. package/dialog/Dialog.js +4 -22
  41. package/dialog/Dialog.stories.tsx +52 -176
  42. package/dialog/types.d.ts +0 -13
  43. package/dropdown/DropdownMenu.js +5 -1
  44. package/file-input/FileItem.js +2 -2
  45. package/file-input/types.d.ts +1 -1
  46. package/flex/Flex.js +4 -2
  47. package/flex/Flex.stories.tsx +24 -10
  48. package/flex/types.d.ts +70 -5
  49. package/footer/Footer.d.ts +1 -1
  50. package/footer/Footer.js +43 -61
  51. package/footer/Footer.stories.tsx +12 -89
  52. package/footer/Footer.test.js +3 -1
  53. package/footer/types.d.ts +10 -12
  54. package/grid/Grid.d.ts +1 -1
  55. package/grid/Grid.js +1 -1
  56. package/grid/Grid.stories.tsx +38 -38
  57. package/header/Header.d.ts +1 -1
  58. package/header/Header.js +3 -30
  59. package/header/Header.stories.tsx +7 -71
  60. package/header/types.d.ts +0 -14
  61. package/inset/Inset.stories.tsx +1 -1
  62. package/layout/ApplicationLayout.d.ts +2 -2
  63. package/layout/ApplicationLayout.js +7 -4
  64. package/link/Link.js +1 -1
  65. package/nav-tabs/NavTabs.d.ts +2 -2
  66. package/nav-tabs/NavTabs.js +7 -10
  67. package/nav-tabs/NavTabs.stories.tsx +14 -0
  68. package/nav-tabs/Tab.js +22 -26
  69. package/nav-tabs/types.d.ts +8 -9
  70. package/package.json +1 -1
  71. package/paginator/Paginator.js +1 -1
  72. package/paginator/Paginator.test.js +13 -0
  73. package/radio-group/Radio.js +10 -10
  74. package/radio-group/RadioGroup.js +8 -10
  75. package/sidenav/Sidenav.js +21 -23
  76. package/text-input/TextInput.js +1 -1
  77. package/text-input/TextInput.stories.tsx +1 -1
  78. package/toggle-group/ToggleGroup.d.ts +2 -2
  79. package/useTheme.d.ts +1 -1
  80. package/utils/FocusLock.js +2 -3
  81. package/card/ice-cream.jpg +0 -0
@@ -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
- * Whether the card must be outlined.
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(StyledDxcChip, {
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
- prefixIcon: true,
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(ChipTextContainer, {
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
- suffixIcon: true,
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 onClickSuffix && !disabled && onClickSuffix();
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 getCursor = function getCursor(interactuable, disabled) {
76
- if (disabled) return "cursor: not-allowed;";else if (interactuable) return "cursor: pointer;";else return "cursor: default; outline:none;";
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 StyledDxcChip = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n align-items: center;\n min-height: 40px;\n max-width: ", ";\n background-color: ", ";\n border-radius: ", ";\n border-width: ", ";\n border-style: ", ";\n border-color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n cursor: ", ";\n"])), function (_ref2) {
80
- var margin = _ref2.margin;
81
- return "calc(100% - 40px - ".concat((0, _utils.getMargin)(margin, "left"), " - ").concat((0, _utils.getMargin)(margin, "right"), ")");
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 (_ref3) {
111
- var disabled = _ref3.disabled;
109
+ }, function (_ref2) {
110
+ var disabled = _ref2.disabled;
112
111
  return disabled && "not-allowed";
113
112
  });
114
113
 
115
- var ChipTextContainer = _styledComponents["default"].span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-family: ", ";\n font-weight: ", ";\n font-style: ", ";\n color: ", ";\n cursor: ", ";\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"])), function (props) {
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 ", "\n color: ", ";\n ", "\n\n &:hover {\n color: ", ";\n }\n &:focus {\n outline-color: ", ";\n outline-width: ", ";\n ", "\n }\n &:active {\n color: ", ";\n }\n img,\n svg {\n width: ", ";\n height: ", ";\n }\n"])), function (props) {
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 getCursor(props.interactuable, props.disabled);
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) {
@@ -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
- <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" />
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
- <DxcChip
89
- suffixIcon={iconSVG}
90
- 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"
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
- <DxcChip
96
- prefixIcon={iconSVG}
97
- 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"
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
- <DxcChip
103
- prefixIcon={iconSVG}
104
- suffixIcon={iconSVG}
105
- 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"
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={iconSVG} onClickSuffix={() => {}} />
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 ({ canvasElement }) => {
207
+ PrefixFocused.play = async () => {
200
208
  await userEvent.tab();
201
209
  };
202
210
 
203
211
  export const SuffixFocused = ChipSuffixFocused.bind({});
204
- SuffixFocused.play = async ({ canvasElement }) => {
212
+ SuffixFocused.play = async () => {
205
213
  await userEvent.tab();
206
214
  };
@@ -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
- @font-face {
3
- font-family: 'Open Sans';
4
- src: url('./fonts/OpenSans-Light.ttf')
5
- format('truetype');
6
- font-style: normal;
7
- font-weight: 200;
8
- }
9
-
10
- @font-face {
11
- font-family: 'Open Sans';
12
- src: url('./fonts/OpenSans-Regular.ttf')
13
- format('truetype');
14
- font-style: normal;
15
- font-weight: 400;
16
- }
17
-
18
- @font-face {
19
- font-family: 'Open Sans';
20
- src: url('./fonts/OpenSans-SemiBold.ttf')
21
- format('truetype');
22
- font-style: normal;
23
- font-weight: 600;
24
- }
25
-
26
- @font-face {
27
- font-family: 'Open Sans';
28
- src: url('./fonts/OpenSans-Bold.ttf')
29
- format('truetype');
30
- font-style: normal;
31
- font-weight: 700;
32
- }
33
-
34
- @font-face {
35
- font-family: 'Open Sans';
36
- src: url('./fonts/OpenSans-ExtraBold.ttf')
37
- format('truetype');
38
- font-style: normal;
39
- font-weight: 800;
40
- }
41
-
42
- @font-face {
43
- font-family: 'Open Sans';
44
- src: url('./fonts/OpenSans-LightItalic.ttf')
45
- format('truetype');
46
- font-style: italic;
47
- font-weight: 200;
48
- }
49
-
50
- @font-face {
51
- font-family: 'Open Sans';
52
- src: url('./fonts/OpenSans-Italic.ttf')
53
- format('truetype');
54
- font-style: italic;
55
- font-weight: 400;
56
- }
57
-
58
- @font-face {
59
- font-family: 'Open Sans';
60
- src: url('./fonts/OpenSans-SemiBoldItalic.ttf')
61
- format('truetype');
62
- font-style: italic;
63
- font-weight: 600;
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;