@dxc-technology/halstack-react 0.0.0-d3ac293 → 0.0.0-d3df47e
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/BackgroundColorContext.d.ts +1 -10
- package/BackgroundColorContext.js +4 -21
- package/HalstackContext.d.ts +24 -139
- package/HalstackContext.js +11 -36
- package/README.md +47 -0
- package/accordion/Accordion.d.ts +1 -1
- package/accordion/Accordion.js +26 -83
- package/accordion/Accordion.stories.tsx +2 -114
- package/accordion/Accordion.test.js +18 -33
- package/accordion/types.d.ts +5 -17
- package/accordion-group/AccordionGroup.d.ts +4 -3
- package/accordion-group/AccordionGroup.js +27 -75
- package/accordion-group/AccordionGroup.stories.tsx +78 -77
- package/accordion-group/AccordionGroup.test.js +43 -71
- package/accordion-group/AccordionGroupAccordion.d.ts +4 -0
- package/accordion-group/AccordionGroupAccordion.js +31 -0
- package/accordion-group/types.d.ts +6 -18
- package/action-icon/ActionIcon.d.ts +4 -0
- package/action-icon/ActionIcon.js +47 -0
- package/action-icon/ActionIcon.stories.tsx +41 -0
- package/action-icon/ActionIcon.test.js +64 -0
- package/action-icon/types.d.ts +26 -0
- package/alert/Alert.js +17 -56
- package/alert/Alert.test.js +28 -45
- package/alert/types.d.ts +5 -5
- package/badge/Badge.d.ts +1 -1
- package/badge/Badge.js +142 -42
- package/badge/Badge.stories.tsx +210 -0
- package/badge/Badge.test.js +30 -0
- package/badge/types.d.ts +52 -3
- package/bleed/Bleed.js +13 -21
- package/bleed/Bleed.stories.tsx +1 -0
- package/bleed/types.d.ts +2 -2
- package/box/Box.d.ts +1 -1
- package/box/Box.js +16 -55
- package/box/Box.stories.tsx +25 -53
- package/box/Box.test.js +1 -6
- package/box/types.d.ts +3 -15
- package/bulleted-list/BulletedList.js +19 -53
- package/bulleted-list/BulletedList.stories.tsx +8 -93
- package/bulleted-list/types.d.ts +32 -5
- package/button/Button.d.ts +1 -1
- package/button/Button.js +66 -100
- package/button/Button.stories.tsx +9 -90
- package/button/Button.test.js +19 -16
- package/button/types.d.ts +8 -4
- package/card/Card.d.ts +1 -1
- package/card/Card.js +47 -88
- package/card/Card.stories.tsx +12 -42
- package/card/Card.test.js +10 -21
- package/card/types.d.ts +6 -12
- package/checkbox/Checkbox.js +85 -120
- package/checkbox/Checkbox.stories.tsx +16 -54
- package/checkbox/Checkbox.test.js +107 -63
- package/checkbox/types.d.ts +8 -4
- package/chip/Chip.js +34 -68
- package/chip/Chip.stories.tsx +25 -17
- package/chip/Chip.test.js +15 -28
- package/chip/types.d.ts +4 -4
- package/common/OpenSans.css +68 -80
- package/common/coreTokens.d.ts +237 -0
- package/common/coreTokens.js +184 -0
- package/common/utils.js +2 -8
- package/common/variables.d.ts +24 -282
- package/common/variables.js +860 -1125
- package/container/Container.d.ts +4 -0
- package/container/Container.js +194 -0
- package/container/Container.stories.tsx +214 -0
- package/container/types.d.ts +74 -0
- package/date-input/Calendar.js +15 -59
- package/date-input/DateInput.js +50 -96
- package/date-input/DateInput.stories.tsx +11 -30
- package/date-input/DateInput.test.js +674 -701
- package/date-input/DatePicker.js +11 -42
- package/date-input/Icons.d.ts +6 -6
- package/date-input/Icons.js +6 -23
- package/date-input/YearPicker.js +8 -34
- package/date-input/types.d.ts +27 -21
- package/dialog/Dialog.d.ts +1 -1
- package/dialog/Dialog.js +15 -60
- package/dialog/Dialog.stories.tsx +215 -169
- package/dialog/Dialog.test.js +125 -187
- package/dialog/types.d.ts +18 -26
- package/dropdown/Dropdown.js +39 -93
- package/dropdown/Dropdown.test.js +391 -378
- package/dropdown/DropdownMenu.js +13 -20
- package/dropdown/DropdownMenuItem.js +5 -19
- package/dropdown/types.d.ts +17 -19
- package/file-input/FileInput.js +180 -249
- package/file-input/FileInput.stories.tsx +1 -1
- package/file-input/FileInput.test.js +356 -354
- package/file-input/FileItem.js +14 -41
- package/file-input/types.d.ts +10 -10
- package/flex/Flex.js +27 -39
- package/flex/Flex.stories.tsx +35 -26
- package/flex/types.d.ts +74 -9
- package/footer/Footer.d.ts +1 -1
- package/footer/Footer.js +69 -116
- package/footer/Footer.stories.tsx +38 -95
- package/footer/Footer.test.js +21 -33
- package/footer/Icons.d.ts +3 -2
- package/footer/Icons.js +66 -7
- package/footer/types.d.ts +25 -27
- package/grid/Grid.d.ts +7 -0
- package/grid/Grid.js +76 -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 +4 -3
- package/header/Header.js +33 -116
- package/header/Header.stories.tsx +7 -71
- package/header/Header.test.js +12 -25
- package/header/Icons.d.ts +2 -2
- package/header/Icons.js +2 -7
- package/header/types.d.ts +5 -20
- package/heading/Heading.js +9 -31
- package/heading/Heading.test.js +70 -87
- package/heading/types.d.ts +7 -7
- package/image/Image.d.ts +4 -0
- package/image/Image.js +70 -0
- package/image/Image.stories.tsx +127 -0
- package/image/types.d.ts +72 -0
- package/image/types.js +5 -0
- package/inset/Inset.js +13 -21
- package/inset/Inset.stories.tsx +2 -1
- package/inset/types.d.ts +2 -2
- package/layout/ApplicationLayout.d.ts +5 -5
- package/layout/ApplicationLayout.js +28 -65
- package/layout/ApplicationLayout.stories.tsx +1 -1
- package/layout/Icons.d.ts +8 -5
- package/layout/Icons.js +51 -59
- package/layout/SidenavContext.d.ts +1 -1
- package/layout/SidenavContext.js +3 -9
- package/layout/types.d.ts +5 -6
- package/link/Link.js +23 -44
- package/link/Link.test.js +23 -41
- package/link/types.d.ts +14 -14
- package/main.d.ts +7 -4
- package/main.js +32 -58
- package/nav-tabs/NavTabs.d.ts +2 -2
- package/nav-tabs/NavTabs.js +22 -54
- package/nav-tabs/NavTabs.stories.tsx +21 -5
- package/nav-tabs/NavTabs.test.js +38 -44
- package/nav-tabs/Tab.js +40 -72
- package/nav-tabs/types.d.ts +14 -15
- package/number-input/NumberInput.d.ts +7 -0
- package/number-input/NumberInput.js +26 -35
- package/number-input/NumberInput.stories.tsx +42 -26
- package/number-input/NumberInput.test.js +700 -412
- package/number-input/types.d.ts +11 -5
- package/package.json +30 -28
- package/paginator/Icons.d.ts +5 -5
- package/paginator/Icons.js +5 -19
- package/paginator/Paginator.js +17 -47
- package/paginator/Paginator.test.js +229 -199
- package/paginator/types.d.ts +3 -3
- package/paragraph/Paragraph.d.ts +2 -3
- package/paragraph/Paragraph.js +3 -19
- package/paragraph/Paragraph.stories.tsx +0 -17
- package/password-input/Icons.d.ts +6 -0
- package/password-input/Icons.js +35 -0
- package/password-input/PasswordInput.js +57 -126
- package/password-input/PasswordInput.stories.tsx +1 -33
- package/password-input/PasswordInput.test.js +157 -140
- package/password-input/types.d.ts +8 -7
- package/progress-bar/ProgressBar.d.ts +2 -2
- package/progress-bar/ProgressBar.js +21 -53
- package/progress-bar/{ProgressBar.stories.jsx → ProgressBar.stories.tsx} +1 -1
- package/progress-bar/ProgressBar.test.js +35 -52
- package/progress-bar/types.d.ts +4 -3
- package/quick-nav/QuickNav.js +4 -27
- package/quick-nav/QuickNav.stories.tsx +1 -1
- package/quick-nav/types.d.ts +10 -10
- package/radio-group/Radio.d.ts +1 -1
- package/radio-group/Radio.js +31 -63
- package/radio-group/RadioGroup.js +45 -93
- package/radio-group/RadioGroup.stories.tsx +10 -10
- package/radio-group/RadioGroup.test.js +504 -470
- package/radio-group/types.d.ts +8 -8
- package/resultset-table/Icons.d.ts +7 -0
- package/{resultsetTable → resultset-table}/Icons.js +1 -5
- package/{resultsetTable → resultset-table}/ResultsetTable.d.ts +1 -1
- package/{resultsetTable → resultset-table}/ResultsetTable.js +33 -63
- package/{resultsetTable → resultset-table}/ResultsetTable.stories.tsx +19 -0
- package/{resultsetTable → resultset-table}/ResultsetTable.test.js +72 -92
- package/{resultsetTable → resultset-table}/types.d.ts +13 -7
- package/resultset-table/types.js +5 -0
- package/select/Icons.d.ts +7 -7
- package/select/Icons.js +1 -5
- package/select/Listbox.js +13 -39
- package/select/Option.js +17 -27
- package/select/Select.js +92 -166
- package/select/Select.stories.tsx +3 -3
- package/select/Select.test.js +1946 -1804
- package/select/types.d.ts +14 -15
- package/sidenav/Icons.d.ts +7 -0
- package/sidenav/Icons.js +47 -0
- package/sidenav/Sidenav.d.ts +2 -2
- package/sidenav/Sidenav.js +80 -150
- package/sidenav/Sidenav.stories.tsx +60 -60
- package/sidenav/Sidenav.test.js +3 -10
- package/sidenav/types.d.ts +31 -28
- package/slider/Slider.js +68 -126
- package/slider/Slider.test.js +107 -103
- package/slider/types.d.ts +4 -4
- package/spinner/Spinner.js +28 -72
- package/spinner/{Spinner.stories.jsx → Spinner.stories.tsx} +28 -28
- package/spinner/Spinner.test.js +25 -34
- package/spinner/types.d.ts +3 -3
- package/status-light/StatusLight.d.ts +4 -0
- package/status-light/StatusLight.js +51 -0
- package/status-light/StatusLight.stories.tsx +74 -0
- package/status-light/StatusLight.test.js +25 -0
- package/status-light/types.d.ts +17 -0
- package/status-light/types.js +5 -0
- package/switch/Switch.js +49 -97
- package/switch/Switch.stories.tsx +0 -34
- package/switch/Switch.test.js +51 -96
- package/switch/types.d.ts +4 -4
- package/table/Table.d.ts +1 -1
- package/table/Table.js +23 -30
- package/table/{Table.stories.jsx → Table.stories.tsx} +98 -0
- package/table/Table.test.js +1 -6
- package/table/types.d.ts +12 -6
- package/tabs/Tab.js +19 -36
- package/tabs/Tabs.js +61 -144
- package/tabs/Tabs.stories.tsx +1 -1
- package/tabs/Tabs.test.js +65 -121
- package/tabs/types.d.ts +19 -19
- package/tag/Tag.js +26 -58
- package/tag/Tag.test.js +19 -30
- package/tag/types.d.ts +7 -7
- package/text-input/Icons.d.ts +5 -5
- package/text-input/Icons.js +1 -5
- package/text-input/Suggestion.js +11 -28
- package/text-input/Suggestions.d.ts +1 -1
- package/text-input/Suggestions.js +15 -65
- package/text-input/TextInput.js +217 -318
- package/text-input/TextInput.stories.tsx +48 -152
- package/text-input/TextInput.test.js +1210 -1194
- package/text-input/types.d.ts +25 -17
- package/textarea/Textarea.js +68 -111
- package/textarea/{Textarea.stories.jsx → Textarea.stories.tsx} +58 -100
- package/textarea/Textarea.test.js +151 -182
- package/textarea/types.d.ts +9 -5
- package/toggle-group/ToggleGroup.d.ts +2 -2
- package/toggle-group/ToggleGroup.js +91 -105
- package/toggle-group/ToggleGroup.stories.tsx +7 -4
- package/toggle-group/ToggleGroup.test.js +68 -87
- package/toggle-group/types.d.ts +26 -17
- package/typography/Typography.js +4 -13
- package/typography/types.d.ts +1 -1
- package/useTheme.d.ts +21 -136
- package/useTheme.js +1 -8
- package/useTranslatedLabels.js +1 -7
- package/utils/BaseTypography.d.ts +2 -2
- package/utils/BaseTypography.js +16 -30
- package/utils/FocusLock.js +28 -43
- package/wizard/Wizard.js +15 -50
- package/wizard/Wizard.test.js +53 -80
- package/wizard/types.d.ts +8 -9
- package/card/ice-cream.jpg +0 -0
- package/number-input/NumberInputContext.d.ts +0 -4
- package/number-input/NumberInputContext.js +0 -19
- package/number-input/numberInputContextTypes.d.ts +0 -19
- package/resultsetTable/Icons.d.ts +0 -7
- package/slider/Slider.stories.tsx +0 -240
- /package/{resultsetTable → action-icon}/types.js +0 -0
- /package/{number-input/numberInputContextTypes.js → container/types.js} +0 -0
package/toggle-group/types.d.ts
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
+
type Margin = {
|
|
4
4
|
top?: Space;
|
|
5
5
|
bottom?: Space;
|
|
6
6
|
left?: Space;
|
|
7
7
|
right?: Space;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Number with the option inner value.
|
|
13
|
-
*/
|
|
14
|
-
value: number;
|
|
15
|
-
};
|
|
16
|
-
declare type OptionIcon = OptionCommons & {
|
|
9
|
+
type SVG = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
10
|
+
type OptionIcon = {
|
|
17
11
|
/**
|
|
18
12
|
* String with the option display value.
|
|
19
13
|
*/
|
|
20
|
-
label?:
|
|
14
|
+
label?: never;
|
|
21
15
|
/**
|
|
22
16
|
* Element used as the icon. Icon and label can't be used at same time.
|
|
23
17
|
*/
|
|
24
18
|
icon: string | SVG;
|
|
19
|
+
/**
|
|
20
|
+
* Value for the HTML properties title and aria-label.
|
|
21
|
+
* When a label is defined, this prop can not be use.
|
|
22
|
+
*/
|
|
23
|
+
title: string;
|
|
25
24
|
};
|
|
26
|
-
|
|
25
|
+
export type OptionLabel = {
|
|
27
26
|
/**
|
|
28
27
|
* String with the option display value.
|
|
29
28
|
*/
|
|
@@ -32,9 +31,19 @@ declare type OptionLabel = OptionCommons & {
|
|
|
32
31
|
* Element used as the icon. Icon and label can't be used at same time.
|
|
33
32
|
*/
|
|
34
33
|
icon?: string | SVG;
|
|
34
|
+
/**
|
|
35
|
+
* Value for the HTML properties title and aria-label.
|
|
36
|
+
* When a label is defined, this prop can not be use.
|
|
37
|
+
*/
|
|
38
|
+
title?: never;
|
|
35
39
|
};
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
type Option = {
|
|
41
|
+
/**
|
|
42
|
+
* Number with the option inner value.
|
|
43
|
+
*/
|
|
44
|
+
value: number;
|
|
45
|
+
} & (OptionIcon | OptionLabel);
|
|
46
|
+
type CommonProps = {
|
|
38
47
|
/**
|
|
39
48
|
* Text to be placed above the component.
|
|
40
49
|
*/
|
|
@@ -61,7 +70,7 @@ declare type CommonProps = {
|
|
|
61
70
|
*/
|
|
62
71
|
tabIndex?: number;
|
|
63
72
|
};
|
|
64
|
-
|
|
73
|
+
type SingleSelectionToggleGroup = CommonProps & {
|
|
65
74
|
/**
|
|
66
75
|
* If true, the toggle group will support multiple selection. In that case, value must be an array of numbers with the keys of the selected values.
|
|
67
76
|
*/
|
|
@@ -81,7 +90,7 @@ declare type SingleSelectionToggle = CommonProps & {
|
|
|
81
90
|
*/
|
|
82
91
|
onChange?: (optionIndex: number) => void;
|
|
83
92
|
};
|
|
84
|
-
|
|
93
|
+
type MultipleSelectionToggleGroup = CommonProps & {
|
|
85
94
|
/**
|
|
86
95
|
* If true, the toggle group will support multiple selection. In that case, value must be an array of numbers with the keys of the selected values.
|
|
87
96
|
*/
|
|
@@ -101,5 +110,5 @@ declare type MultipleSelectionToggle = CommonProps & {
|
|
|
101
110
|
*/
|
|
102
111
|
onChange?: (optionIndex: number[]) => void;
|
|
103
112
|
};
|
|
104
|
-
|
|
113
|
+
type Props = SingleSelectionToggleGroup | MultipleSelectionToggleGroup;
|
|
105
114
|
export default Props;
|
package/typography/Typography.js
CHANGED
|
@@ -1,32 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
-
|
|
14
10
|
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
11
|
var _BaseTypography = _interopRequireDefault(require("../utils/BaseTypography"));
|
|
17
|
-
|
|
18
12
|
var _excluded = ["textOverflow", "whiteSpace", "children"];
|
|
19
|
-
|
|
20
13
|
var DxcTypography = function DxcTypography(_ref) {
|
|
21
14
|
var textOverflow = _ref.textOverflow,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
whiteSpace = _ref.whiteSpace,
|
|
16
|
+
children = _ref.children,
|
|
17
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
25
18
|
return /*#__PURE__*/_react["default"].createElement(_BaseTypography["default"], (0, _extends2["default"])({
|
|
26
19
|
textOverflow: textOverflow,
|
|
27
20
|
whiteSpace: whiteSpace == null && textOverflow != null && textOverflow !== "unset" ? "nowrap" : whiteSpace
|
|
28
21
|
}, props), children);
|
|
29
22
|
};
|
|
30
|
-
|
|
31
|
-
var _default = DxcTypography;
|
|
32
|
-
exports["default"] = _default;
|
|
23
|
+
var _default = exports["default"] = DxcTypography;
|
package/typography/types.d.ts
CHANGED
package/useTheme.d.ts
CHANGED
|
@@ -109,7 +109,6 @@ declare const useTheme: () => {
|
|
|
109
109
|
}>;
|
|
110
110
|
bulletedList?: Partial<{
|
|
111
111
|
fontColor: string;
|
|
112
|
-
fontColorOnDark: string;
|
|
113
112
|
bulletIconHeight: string;
|
|
114
113
|
bulletIconWidth: string;
|
|
115
114
|
bulletHeight: string;
|
|
@@ -124,19 +123,12 @@ declare const useTheme: () => {
|
|
|
124
123
|
paddingTop: string;
|
|
125
124
|
paddingBottom: string;
|
|
126
125
|
focusBorderColor: string;
|
|
127
|
-
focusBorderColorOnDark: string;
|
|
128
126
|
primaryBackgroundColor: string;
|
|
129
|
-
primaryBackgroundColorOnDark: string;
|
|
130
127
|
primaryFontColor: string;
|
|
131
|
-
primaryFontColorOnDark: string;
|
|
132
128
|
primaryHoverBackgroundColor: string;
|
|
133
|
-
primaryHoverBackgroundColorOnDark: string;
|
|
134
129
|
primaryActiveBackgroundColor: string;
|
|
135
|
-
primaryActiveBackgroundColorOnDark: string;
|
|
136
130
|
primaryDisabledBackgroundColor: string;
|
|
137
|
-
primaryDisabledBackgroundColorOnDark: string;
|
|
138
131
|
primaryDisabledFontColor: string;
|
|
139
|
-
primaryDisabledFontColorOnDark: string;
|
|
140
132
|
primaryBorderThickness: string;
|
|
141
133
|
primaryBorderStyle: string;
|
|
142
134
|
primaryBorderRadius: string;
|
|
@@ -144,23 +136,14 @@ declare const useTheme: () => {
|
|
|
144
136
|
primaryFontSize: string;
|
|
145
137
|
primaryFontWeight: string;
|
|
146
138
|
secondaryBackgroundColor: string;
|
|
147
|
-
secondaryBackgroundColorOnDark: string;
|
|
148
139
|
secondaryFontColor: string;
|
|
149
|
-
secondaryFontColorOnDark: string;
|
|
150
140
|
secondaryHoverFontColor: string;
|
|
151
|
-
secondaryHoverFontColorOnDark: string;
|
|
152
141
|
secondaryBorderColor: string;
|
|
153
|
-
secondaryBorderColorOnDark: string;
|
|
154
142
|
secondaryHoverBackgroundColor: string;
|
|
155
|
-
secondaryHoverBackgroundColorOnDark: string;
|
|
156
143
|
secondaryActiveBackgroundColor: string;
|
|
157
|
-
secondaryActiveBackgroundColorOnDark: string;
|
|
158
144
|
secondaryDisabledBackgroundColor: string;
|
|
159
|
-
secondaryDisabledBackgroundColorOnDark: string;
|
|
160
145
|
secondaryDisabledFontColor: string;
|
|
161
|
-
secondaryDisabledFontColorOnDark: string;
|
|
162
146
|
secondaryDisabledBorderColor: string;
|
|
163
|
-
secondaryDisabledBorderColorOnDark: string;
|
|
164
147
|
secondaryBorderThickness: string;
|
|
165
148
|
secondaryBorderStyle: string;
|
|
166
149
|
secondaryBorderRadius: string;
|
|
@@ -168,17 +151,11 @@ declare const useTheme: () => {
|
|
|
168
151
|
secondaryFontSize: string;
|
|
169
152
|
secondaryFontWeight: string;
|
|
170
153
|
textBackgroundColor: string;
|
|
171
|
-
textBackgroundColorOnDark: string;
|
|
172
154
|
textFontColor: string;
|
|
173
|
-
textFontColorOnDark: string;
|
|
174
155
|
textHoverBackgroundColor: string;
|
|
175
|
-
textHoverBackgroundColorOnDark: string;
|
|
176
156
|
textActiveBackgroundColor: string;
|
|
177
|
-
textActiveBackgroundColorOnDark: string;
|
|
178
157
|
textDisabledBackgroundColor: string;
|
|
179
|
-
textDisabledBackgroundColorOnDark: string;
|
|
180
158
|
textDisabledFontColor: string;
|
|
181
|
-
textDisabledFontColorOnDark: string;
|
|
182
159
|
textBorderThickness: string;
|
|
183
160
|
textBorderStyle: string;
|
|
184
161
|
textBorderRadius: string;
|
|
@@ -192,30 +169,24 @@ declare const useTheme: () => {
|
|
|
192
169
|
}>;
|
|
193
170
|
checkbox?: Partial<{
|
|
194
171
|
backgroundColorChecked: string;
|
|
195
|
-
backgroundColorCheckedOnDark: string;
|
|
196
172
|
hoverBackgroundColorChecked: string;
|
|
197
|
-
hoverBackgroundColorCheckedOnDark: string;
|
|
198
173
|
disabledBackgroundColorChecked: string;
|
|
199
|
-
|
|
174
|
+
readOnlyBackgroundColorChecked: string;
|
|
175
|
+
hoverReadOnlyBackgroundColorChecked: string;
|
|
200
176
|
borderColor: string;
|
|
201
|
-
borderColorOnDark: string;
|
|
202
177
|
hoverBorderColor: string;
|
|
203
|
-
hoverBorderColorOnDark: string;
|
|
204
178
|
disabledBorderColor: string;
|
|
205
|
-
|
|
179
|
+
readOnlyBorderColor: string;
|
|
180
|
+
hoverReadOnlyBorderColor: string;
|
|
206
181
|
checkColor: string;
|
|
207
|
-
checkColorOnDark: string;
|
|
208
182
|
disabledCheckColor: string;
|
|
209
|
-
|
|
183
|
+
readOnlyCheckColor: string;
|
|
210
184
|
fontFamily: string;
|
|
211
185
|
fontSize: string;
|
|
212
186
|
fontWeight: string;
|
|
213
187
|
fontColor: string;
|
|
214
|
-
fontColorOnDark: string;
|
|
215
188
|
disabledFontColor: string;
|
|
216
|
-
disabledFontColorOnDark: string;
|
|
217
189
|
focusColor: string;
|
|
218
|
-
focusColorOnDark: string;
|
|
219
190
|
checkLabelSpacing: string;
|
|
220
191
|
}>;
|
|
221
192
|
chip?: Partial<{
|
|
@@ -449,7 +420,6 @@ declare const useTheme: () => {
|
|
|
449
420
|
underlinedThickness: string;
|
|
450
421
|
underlinedStyle: string;
|
|
451
422
|
contentColor: string;
|
|
452
|
-
contentColorOnDark: string;
|
|
453
423
|
}>;
|
|
454
424
|
heading?: Partial<{
|
|
455
425
|
level1FontColor: string;
|
|
@@ -488,6 +458,14 @@ declare const useTheme: () => {
|
|
|
488
458
|
level5LineHeight: string;
|
|
489
459
|
level5LetterSpacing: string;
|
|
490
460
|
}>;
|
|
461
|
+
image?: Partial<{
|
|
462
|
+
captionFontColor: string;
|
|
463
|
+
captionFontFamily: string;
|
|
464
|
+
captionFontSize: string;
|
|
465
|
+
captionFontStyle: string;
|
|
466
|
+
captionFontWeight: string;
|
|
467
|
+
captionLineHeight: string;
|
|
468
|
+
}>;
|
|
491
469
|
link?: Partial<{
|
|
492
470
|
fontColor: string;
|
|
493
471
|
fontFamily: string;
|
|
@@ -499,7 +477,7 @@ declare const useTheme: () => {
|
|
|
499
477
|
underlineSpacing: string;
|
|
500
478
|
underlineStyle: string;
|
|
501
479
|
underlineThickness: string;
|
|
502
|
-
|
|
480
|
+
disabledFontColor: string;
|
|
503
481
|
hoverFontColor: string;
|
|
504
482
|
hoverUnderlineColor: string;
|
|
505
483
|
visitedFontColor: string;
|
|
@@ -548,31 +526,26 @@ declare const useTheme: () => {
|
|
|
548
526
|
}>;
|
|
549
527
|
paragraph?: Partial<{
|
|
550
528
|
fontColor: string;
|
|
551
|
-
fontColorOnDark: string;
|
|
552
529
|
display: string;
|
|
553
530
|
fontSize: string;
|
|
554
531
|
fontWeight: string;
|
|
555
532
|
}>;
|
|
556
533
|
progressBar?: Partial<{
|
|
557
534
|
trackLineColor: string;
|
|
558
|
-
trackLineColorOnDark: string;
|
|
559
535
|
totalLineColor: string;
|
|
560
536
|
labelFontFamily: string;
|
|
561
537
|
labelFontSize: string;
|
|
562
538
|
labelFontStyle: string;
|
|
563
539
|
labelFontWeight: string;
|
|
564
540
|
labelFontColor: string;
|
|
565
|
-
labelFontColorOnDark: string;
|
|
566
541
|
labelFontTextTransform: string;
|
|
567
542
|
valueFontFamily: string;
|
|
568
543
|
valueFontSize: string;
|
|
569
544
|
valueFontStyle: string;
|
|
570
545
|
valueFontWeight: string;
|
|
571
546
|
valueFontColor: string;
|
|
572
|
-
valueFontColorOnDark: string;
|
|
573
547
|
valueFontTextTransform: string;
|
|
574
548
|
helperTextFontColor: string;
|
|
575
|
-
helperTextFontColorOnDark: string;
|
|
576
549
|
helperTextFontSize: string;
|
|
577
550
|
helperTextFontStyle: string;
|
|
578
551
|
helperTextFontWeight: string;
|
|
@@ -608,9 +581,9 @@ declare const useTheme: () => {
|
|
|
608
581
|
errorRadioInputColor: string;
|
|
609
582
|
hoverErrorRadioInputColor: string;
|
|
610
583
|
activeErrorRadioInputColor: string;
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
584
|
+
readOnlyRadioInputColor: string;
|
|
585
|
+
hoverReadOnlyRadioInputColor: string;
|
|
586
|
+
activeReadOnlyRadioInputColor: string;
|
|
614
587
|
disabledRadioInputColor: string;
|
|
615
588
|
disabledLabelFontColor: string;
|
|
616
589
|
disabledHelperTextFontColor: string;
|
|
@@ -750,7 +723,6 @@ declare const useTheme: () => {
|
|
|
750
723
|
slider?: Partial<{
|
|
751
724
|
fontFamily: string;
|
|
752
725
|
limitValuesFontColor: string;
|
|
753
|
-
limitValuesFontColorOnDark: string;
|
|
754
726
|
limitValuesFontSize: string;
|
|
755
727
|
limitValuesFontStyle: string;
|
|
756
728
|
limitValuesFontWeight: string;
|
|
@@ -767,15 +739,10 @@ declare const useTheme: () => {
|
|
|
767
739
|
helperTextFontWeight: string;
|
|
768
740
|
helperTextLineHeight: string;
|
|
769
741
|
fontColor: string;
|
|
770
|
-
fontColorOnDark: string;
|
|
771
742
|
labelFontColor: string;
|
|
772
|
-
labelFontColorOnDark: string;
|
|
773
743
|
helperTextFontColor: string;
|
|
774
|
-
helperTextFontColorOnDark: string;
|
|
775
744
|
disabledLabelFontColor: string;
|
|
776
|
-
disabledLabelFontColorOnDark: string;
|
|
777
745
|
disabledHelperTextFontColor: string;
|
|
778
|
-
disabledHelperTextFontColorOnDark: string;
|
|
779
746
|
thumbHeight: string;
|
|
780
747
|
thumbWidth: string;
|
|
781
748
|
hoverThumbHeight: string;
|
|
@@ -783,40 +750,28 @@ declare const useTheme: () => {
|
|
|
783
750
|
thumbVerticalPosition: string;
|
|
784
751
|
hoverThumbVerticalPosition: string;
|
|
785
752
|
thumbBackgroundColor: string;
|
|
786
|
-
thumbBackgroundColorOnDark: string;
|
|
787
753
|
hoverThumbScale: string;
|
|
788
754
|
hoverThumbBackgroundColor: string;
|
|
789
|
-
hoverThumbBackgroundColorOnDark: string;
|
|
790
755
|
activeThumbScale: string;
|
|
791
756
|
activeThumbBackgroundColor: string;
|
|
792
|
-
activeThumbBackgroundColorOnDark: string;
|
|
793
757
|
focusThumbBackgroundColor: string;
|
|
794
|
-
focusThumbBackgroundColorOnDark: string;
|
|
795
758
|
tickHeight: string;
|
|
796
759
|
tickWidth: string;
|
|
797
760
|
tickVerticalPosition: string;
|
|
798
761
|
tickBackgroundColor: string;
|
|
799
|
-
tickBackgroundColorOnDark: string;
|
|
800
762
|
trackLineThickness: string;
|
|
801
763
|
trackLineVerticalPosition: string;
|
|
802
764
|
trackLineColor: string;
|
|
803
|
-
trackLineColorOnDark: string;
|
|
804
765
|
totalLineThickness: string;
|
|
805
766
|
totalLineVerticalPosition: string;
|
|
806
767
|
totalLineColor: string;
|
|
807
|
-
totalLineColorOnDark: string;
|
|
808
768
|
disabledThumbVerticalPosition: string;
|
|
809
769
|
disabledThumbBackgroundColor: string;
|
|
810
|
-
disabledThumbBackgroundColorOnDark: string;
|
|
811
770
|
disabledTickVerticalPosition: string;
|
|
812
771
|
disabledTickBackgroundColor: string;
|
|
813
|
-
disabledTickBackgroundColorOnDark: string;
|
|
814
772
|
disabledTrackLineColor: string;
|
|
815
|
-
disabledTrackLineColorOnDark: string;
|
|
816
773
|
disabledTotalLineColor: string;
|
|
817
|
-
disabledTotalLineColorOnDark: string;
|
|
818
774
|
focusColor: string;
|
|
819
|
-
focusColorOnDark: string;
|
|
820
775
|
floorLabelMarginRight: string;
|
|
821
776
|
ceilLabelMarginLeft: string;
|
|
822
777
|
inputMarginLeft: string;
|
|
@@ -830,14 +785,12 @@ declare const useTheme: () => {
|
|
|
830
785
|
labelFontStyle: string;
|
|
831
786
|
labelFontWeight: string;
|
|
832
787
|
labelFontColor: string;
|
|
833
|
-
labelFontColorOnDark: string;
|
|
834
788
|
labelTextAlign: string;
|
|
835
789
|
progressValueFontFamily: string;
|
|
836
790
|
progressValueFontSize: string;
|
|
837
791
|
progressValueFontStyle: string;
|
|
838
792
|
progressValueFontWeight: string;
|
|
839
793
|
progressValueFontColor: string;
|
|
840
|
-
progressValueFontColorOnDark: string;
|
|
841
794
|
progressValueTextAlign: string;
|
|
842
795
|
overlayBackgroundColor: string;
|
|
843
796
|
overlayOpacity: string;
|
|
@@ -856,32 +809,21 @@ declare const useTheme: () => {
|
|
|
856
809
|
}>;
|
|
857
810
|
switch?: Partial<{
|
|
858
811
|
checkedTrackBackgroundColor: string;
|
|
859
|
-
checkedTrackBackgroundColorOnDark: string;
|
|
860
812
|
checkedThumbBackgroundColor: string;
|
|
861
|
-
checkedThumbBackgroundColorOnDark: string;
|
|
862
813
|
uncheckedTrackBackgroundColor: string;
|
|
863
|
-
uncheckedTrackBackgroundColorOnDark: string;
|
|
864
814
|
uncheckedThumbBackgroundColor: string;
|
|
865
|
-
uncheckedThumbBackgroundColorOnDark: string;
|
|
866
815
|
disabledCheckedTrackBackgroundColor: string;
|
|
867
|
-
disabledCheckedTrackBackgroundColorOnDark: string;
|
|
868
816
|
disabledCheckedThumbBackgroundColor: string;
|
|
869
|
-
disabledCheckedThumbBackgroundColorOnDark: string;
|
|
870
817
|
disabledUncheckedTrackBackgroundColor: string;
|
|
871
|
-
disabledUncheckedTrackBackgroundColorOnDark: string;
|
|
872
818
|
disabledUncheckedThumbBackgroundColor: string;
|
|
873
|
-
disabledUncheckedThumbBackgroundColorOnDark: string;
|
|
874
819
|
disabledLabelFontColor: string;
|
|
875
|
-
disabledLabelFontColorOnDark: string;
|
|
876
820
|
disabledLabelFontStyle: string;
|
|
877
821
|
labelFontFamily: string;
|
|
878
822
|
labelFontSize: string;
|
|
879
823
|
labelFontStyle: string;
|
|
880
824
|
labelFontWeight: string;
|
|
881
825
|
labelFontColor: string;
|
|
882
|
-
labelFontColorOnDark: string;
|
|
883
826
|
thumbFocusColor: string;
|
|
884
|
-
thumbFocusColorOnDark: string;
|
|
885
827
|
thumbHeight: string;
|
|
886
828
|
thumbWidth: string;
|
|
887
829
|
thumbShift: string;
|
|
@@ -941,7 +883,6 @@ declare const useTheme: () => {
|
|
|
941
883
|
disabledFontColor: string;
|
|
942
884
|
disabledIconColor: string;
|
|
943
885
|
disabledFontStyle: string;
|
|
944
|
-
disabledBadgeBackgroundColor: string;
|
|
945
886
|
hoverBackgroundColor: string;
|
|
946
887
|
pressedBackgroundColor: string;
|
|
947
888
|
pressedFontWeight: string;
|
|
@@ -949,19 +890,6 @@ declare const useTheme: () => {
|
|
|
949
890
|
dividerThickness: string;
|
|
950
891
|
focusOutline: string;
|
|
951
892
|
scrollButtonsWidth: string;
|
|
952
|
-
badgeBackgroundColor: string;
|
|
953
|
-
badgeFontFamily: string;
|
|
954
|
-
badgeFontSize: string;
|
|
955
|
-
badgeFontStyle: string;
|
|
956
|
-
badgeFontWeight: string;
|
|
957
|
-
badgeFontColor: string;
|
|
958
|
-
badgeLetterSpacing: string;
|
|
959
|
-
badgeWidth: string;
|
|
960
|
-
badgeHeight: string;
|
|
961
|
-
badgeRadius: string;
|
|
962
|
-
badgeWidthWithNotificationNumber: string;
|
|
963
|
-
badgeHeightWithNotificationNumber: string;
|
|
964
|
-
badgeRadiusWithNotificationNumber: string;
|
|
965
893
|
}>;
|
|
966
894
|
tag?: Partial<{
|
|
967
895
|
fontFamily: string;
|
|
@@ -983,130 +911,87 @@ declare const useTheme: () => {
|
|
|
983
911
|
textarea?: Partial<{
|
|
984
912
|
fontFamily: string;
|
|
985
913
|
enabledBorderColor: string;
|
|
986
|
-
enabledBorderColorOnDark: string;
|
|
987
914
|
hoverBorderColor: string;
|
|
988
|
-
hoverBorderColorOnDark: string;
|
|
989
915
|
focusBorderColor: string;
|
|
990
|
-
focusBorderColorOnDark: string;
|
|
991
916
|
disabledBorderColor: string;
|
|
992
|
-
disabledBorderColorOnDark: string;
|
|
993
917
|
disabledContainerFillColor: string;
|
|
994
|
-
|
|
918
|
+
readOnlyBorderColor: string;
|
|
919
|
+
hoverReadOnlyBorderColor: string;
|
|
995
920
|
errorBorderColor: string;
|
|
996
|
-
errorBorderColorOnDark: string;
|
|
997
921
|
hoverErrorBorderColor: string;
|
|
998
|
-
hoverErrorBorderColorOnDark: string;
|
|
999
922
|
inputMarginTop: string;
|
|
1000
923
|
inputMarginBottom: string;
|
|
1001
924
|
errorMessageColor: string;
|
|
1002
|
-
errorMessageColorOnDark: string;
|
|
1003
925
|
labelFontColor: string;
|
|
1004
|
-
labelFontColorOnDark: string;
|
|
1005
926
|
labelFontSize: string;
|
|
1006
927
|
labelFontStyle: string;
|
|
1007
928
|
labelFontWeight: string;
|
|
1008
929
|
labelLineHeight: string;
|
|
1009
930
|
disabledLabelFontColor: string;
|
|
1010
|
-
disabledLabelFontColorOnDark: string;
|
|
1011
931
|
optionalLabelFontWeight: string;
|
|
1012
932
|
helperTextFontColor: string;
|
|
1013
|
-
helperTextFontColorOnDark: string;
|
|
1014
933
|
helperTextFontSize: string;
|
|
1015
934
|
helperTextFontStyle: string;
|
|
1016
935
|
helperTextFontWeight: string;
|
|
1017
936
|
helperTextLineHeight: string;
|
|
1018
937
|
disabledHelperTextFontColor: string;
|
|
1019
|
-
disabledHelperTextFontColorOnDark: string;
|
|
1020
938
|
placeholderFontColor: string;
|
|
1021
|
-
placeholderFontColorOnDark: string;
|
|
1022
939
|
disabledPlaceholderFontColor: string;
|
|
1023
|
-
disabledPlaceholderFontColorOnDark: string;
|
|
1024
940
|
valueFontColor: string;
|
|
1025
|
-
valueFontColorOnDark: string;
|
|
1026
941
|
valueFontSize: string;
|
|
1027
942
|
valueFontStyle: string;
|
|
1028
943
|
valueFontWeight: string;
|
|
1029
944
|
disabledValueFontColor: string;
|
|
1030
|
-
disabledValueFontColorOnDark: string;
|
|
1031
945
|
}>;
|
|
1032
946
|
textInput?: Partial<{
|
|
1033
947
|
fontFamily: string;
|
|
1034
948
|
enabledBorderColor: string;
|
|
1035
|
-
enabledBorderColorOnDark: string;
|
|
1036
949
|
hoverBorderColor: string;
|
|
1037
|
-
hoverBorderColorOnDark: string;
|
|
1038
950
|
focusBorderColor: string;
|
|
1039
|
-
focusBorderColorOnDark: string;
|
|
1040
951
|
disabledBorderColor: string;
|
|
1041
|
-
disabledBorderColorOnDark: string;
|
|
1042
952
|
disabledContainerFillColor: string;
|
|
1043
|
-
|
|
953
|
+
readOnlyBorderColor: string;
|
|
954
|
+
hoverReadOnlyBorderColor: string;
|
|
1044
955
|
errorBorderColor: string;
|
|
1045
|
-
errorBorderColorOnDark: string;
|
|
1046
956
|
hoverErrorBorderColor: string;
|
|
1047
|
-
hoverErrorBorderColorOnDark: string;
|
|
1048
957
|
inputMarginTop: string;
|
|
1049
958
|
inputMarginBottom: string;
|
|
1050
959
|
errorMessageColor: string;
|
|
1051
|
-
errorMessageColorOnDark: string;
|
|
1052
960
|
errorIconColor: string;
|
|
1053
|
-
errorIconColorOnDark: string;
|
|
1054
961
|
labelFontColor: string;
|
|
1055
|
-
labelFontColorOnDark: string;
|
|
1056
962
|
labelFontSize: string;
|
|
1057
963
|
labelFontStyle: string;
|
|
1058
964
|
labelFontWeight: string;
|
|
1059
965
|
labelLineHeight: string;
|
|
1060
966
|
disabledLabelFontColor: string;
|
|
1061
|
-
disabledLabelFontColorOnDark: string;
|
|
1062
967
|
optionalLabelFontWeight: string;
|
|
1063
968
|
helperTextFontColor: string;
|
|
1064
|
-
helperTextFontColorOnDark: string;
|
|
1065
969
|
helperTextFontSize: string;
|
|
1066
970
|
helperTextFontStyle: string;
|
|
1067
971
|
helperTextFontWeight: string;
|
|
1068
972
|
helperTextLineHeight: string;
|
|
1069
973
|
disabledHelperTextFontColor: string;
|
|
1070
|
-
disabledHelperTextFontColorOnDark: string;
|
|
1071
974
|
prefixColor: string;
|
|
1072
|
-
prefixColorOnDark: string;
|
|
1073
975
|
suffixColor: string;
|
|
1074
|
-
suffixColorOnDark: string;
|
|
1075
976
|
disabledPrefixColor: string;
|
|
1076
977
|
disabledSuffixColor: string;
|
|
1077
|
-
disabledPrefixColorOnDark: string;
|
|
1078
|
-
disabledSuffixColorOnDark: string;
|
|
1079
978
|
placeholderFontColor: string;
|
|
1080
|
-
placeholderFontColorOnDark: string;
|
|
1081
979
|
disabledPlaceholderFontColor: string;
|
|
1082
|
-
disabledPlaceholderFontColorOnDark: string;
|
|
1083
980
|
valueFontColor: string;
|
|
1084
|
-
valueFontColorOnDark: string;
|
|
1085
981
|
valueFontSize: string;
|
|
1086
982
|
valueFontStyle: string;
|
|
1087
983
|
valueFontWeight: string;
|
|
1088
984
|
disabledValueFontColor: string;
|
|
1089
|
-
disabledValueFontColorOnDark: string;
|
|
1090
985
|
actionIconColor: string;
|
|
1091
|
-
actionIconColorOnDark: string;
|
|
1092
986
|
disabledActionIconColor: string;
|
|
1093
|
-
disabledActionIconColorOnDark: string;
|
|
1094
987
|
hoverActionIconColor: string;
|
|
1095
|
-
hoverActionIconColorOnDark: string;
|
|
1096
988
|
focusActionIconColor: string;
|
|
1097
|
-
focusActionIconColorOnDark: string;
|
|
1098
989
|
activeActionIconColor: string;
|
|
1099
|
-
activeActionIconColorOnDark: string;
|
|
1100
990
|
actionBackgroundColor: string;
|
|
1101
|
-
actionBackgroundColorOnDark: string;
|
|
1102
991
|
disabledActionBackgroundColor: string;
|
|
1103
|
-
disabledActionBackgroundColorOnDark: string;
|
|
1104
992
|
hoverActionBackgroundColor: string;
|
|
1105
|
-
hoverActionBackgroundColorOnDark: string;
|
|
1106
993
|
focusActionBorderColor: string;
|
|
1107
|
-
focusActionBorderColorOnDark: string;
|
|
1108
994
|
activeActionBackgroundColor: string;
|
|
1109
|
-
activeActionBackgroundColorOnDark: string;
|
|
1110
995
|
listDialogBackgroundColor: string;
|
|
1111
996
|
listDialogBorderColor: string;
|
|
1112
997
|
listOptionDividerColor: string;
|
package/useTheme.js
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = require("react");
|
|
11
|
-
|
|
12
9
|
var _variables = require("./common/variables");
|
|
13
|
-
|
|
14
10
|
var _HalstackContext = _interopRequireDefault(require("./HalstackContext"));
|
|
15
|
-
|
|
16
11
|
var useTheme = function useTheme() {
|
|
17
12
|
var colorsTheme = (0, _react.useContext)(_HalstackContext["default"]);
|
|
18
13
|
return colorsTheme || _variables.componentTokens;
|
|
19
14
|
};
|
|
20
|
-
|
|
21
|
-
var _default = useTheme;
|
|
22
|
-
exports["default"] = _default;
|
|
15
|
+
var _default = exports["default"] = useTheme;
|
package/useTranslatedLabels.js
CHANGED
|
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = require("react");
|
|
9
|
-
|
|
10
8
|
var _variables = require("./common/variables");
|
|
11
|
-
|
|
12
9
|
var _HalstackContext = require("./HalstackContext");
|
|
13
|
-
|
|
14
10
|
var useTranslatedLabels = function useTranslatedLabels() {
|
|
15
11
|
var labels = (0, _react.useContext)(_HalstackContext.HalstackLanguageContext);
|
|
16
12
|
return labels || _variables.defaultTranslatedComponentLabels;
|
|
17
13
|
};
|
|
18
|
-
|
|
19
|
-
var _default = useTranslatedLabels;
|
|
20
|
-
exports["default"] = _default;
|
|
14
|
+
var _default = exports["default"] = useTranslatedLabels;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
type TypographyContextProps = {
|
|
3
3
|
as?: keyof HTMLElementTagNameMap;
|
|
4
4
|
display?: string;
|
|
5
5
|
fontFamily?: string;
|
|
@@ -14,7 +14,7 @@ declare type TypographyContextProps = {
|
|
|
14
14
|
textOverflow?: string;
|
|
15
15
|
whiteSpace?: string;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
type BaseTypographyProps = TypographyContextProps & {
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
};
|
|
20
20
|
declare const BaseTypography: ({ as, display, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign, color, textDecoration, textOverflow, whiteSpace, children, }: BaseTypographyProps) => JSX.Element;
|