@dxc-technology/halstack-react 0.0.0-2455fac → 0.0.0-2499c33
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 +52 -139
- package/HalstackContext.js +11 -36
- package/README.md +47 -0
- package/accordion/Accordion.accessibility.test.js +71 -0
- package/accordion/Accordion.js +31 -84
- package/accordion/Accordion.stories.tsx +5 -51
- package/accordion/Accordion.test.js +18 -33
- package/accordion/types.d.ts +6 -6
- package/accordion-group/AccordionGroup.accessibility.test.js +88 -0
- package/accordion-group/AccordionGroup.d.ts +2 -3
- package/accordion-group/AccordionGroup.js +17 -44
- package/accordion-group/AccordionGroup.stories.tsx +1 -1
- package/accordion-group/AccordionGroup.test.js +42 -60
- package/accordion-group/AccordionGroupAccordion.js +11 -23
- package/accordion-group/AccordionGroupContext.d.ts +3 -0
- package/accordion-group/AccordionGroupContext.js +8 -0
- package/accordion-group/types.d.ts +7 -7
- package/action-icon/ActionIcon.accessibility.test.js +63 -0
- package/action-icon/ActionIcon.d.ts +4 -0
- package/action-icon/ActionIcon.js +48 -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.accessibility.test.js +95 -0
- package/alert/Alert.js +29 -118
- package/alert/Alert.test.js +28 -45
- package/alert/types.d.ts +5 -5
- package/badge/Badge.accessibility.test.js +129 -0
- 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/types.d.ts +2 -2
- package/box/Box.accessibility.test.js +33 -0
- package/box/Box.js +11 -33
- package/box/Box.test.js +1 -6
- package/box/types.d.ts +3 -3
- package/bulleted-list/BulletedList.accessibility.test.js +107 -0
- package/bulleted-list/BulletedList.js +22 -55
- package/bulleted-list/BulletedList.stories.tsx +2 -93
- package/bulleted-list/types.d.ts +5 -5
- package/button/Button.accessibility.test.js +127 -0
- package/button/Button.d.ts +1 -1
- package/button/Button.js +68 -100
- package/button/Button.stories.tsx +33 -133
- package/button/Button.test.js +19 -16
- package/button/types.d.ts +9 -5
- package/card/Card.accessibility.test.js +36 -0
- package/card/Card.js +21 -44
- package/card/Card.test.js +10 -21
- package/card/types.d.ts +5 -5
- package/checkbox/Checkbox.accessibility.test.js +87 -0
- 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.accessibility.test.js +67 -0
- package/chip/Chip.js +20 -36
- package/chip/Chip.stories.tsx +5 -24
- package/chip/Chip.test.js +17 -30
- package/chip/types.d.ts +4 -4
- package/common/coreTokens.d.ts +105 -14
- package/common/coreTokens.js +41 -24
- package/common/utils.js +2 -8
- package/common/variables.d.ts +52 -139
- package/common/variables.js +63 -157
- 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/contextual-menu/ContextualMenu.accessibility.test.js +86 -0
- package/contextual-menu/ContextualMenu.d.ts +7 -0
- package/contextual-menu/ContextualMenu.js +71 -0
- package/contextual-menu/ContextualMenu.stories.tsx +182 -0
- package/contextual-menu/ContextualMenu.test.js +71 -0
- package/contextual-menu/MenuItemAction.d.ts +4 -0
- package/contextual-menu/MenuItemAction.js +46 -0
- package/contextual-menu/types.d.ts +22 -0
- package/contextual-menu/types.js +5 -0
- package/date-input/Calendar.js +13 -57
- package/date-input/DateInput.accessibility.test.js +216 -0
- 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 +28 -22
- package/dialog/Dialog.accessibility.test.js +69 -0
- package/dialog/Dialog.js +13 -40
- package/dialog/Dialog.stories.tsx +170 -0
- package/dialog/Dialog.test.js +126 -188
- package/dialog/types.d.ts +18 -13
- package/divider/Divider.accessibility.test.js +33 -0
- package/divider/Divider.d.ts +4 -0
- package/divider/Divider.js +36 -0
- package/divider/Divider.stories.tsx +223 -0
- package/divider/Divider.test.js +38 -0
- package/divider/types.d.ts +21 -0
- package/divider/types.js +5 -0
- package/dropdown/Dropdown.accessibility.test.js +180 -0
- package/dropdown/Dropdown.js +59 -128
- package/dropdown/Dropdown.stories.tsx +5 -16
- package/dropdown/Dropdown.test.js +391 -378
- package/dropdown/DropdownMenu.js +8 -19
- package/dropdown/DropdownMenuItem.js +11 -20
- package/dropdown/types.d.ts +20 -24
- package/file-input/FileInput.accessibility.test.js +160 -0
- package/file-input/FileInput.js +180 -284
- package/file-input/FileInput.stories.tsx +1 -1
- package/file-input/FileInput.test.js +279 -354
- package/file-input/FileItem.js +25 -66
- package/file-input/types.d.ts +9 -9
- package/flex/Flex.js +25 -39
- package/flex/types.d.ts +6 -6
- package/footer/Footer.accessibility.test.js +117 -0
- package/footer/Footer.d.ts +1 -1
- package/footer/Footer.js +43 -68
- package/footer/Footer.stories.tsx +54 -9
- package/footer/Footer.test.js +18 -32
- package/footer/Icons.d.ts +3 -2
- package/footer/Icons.js +66 -7
- package/footer/types.d.ts +17 -17
- package/grid/Grid.d.ts +1 -1
- package/grid/Grid.js +2 -17
- package/grid/Grid.stories.tsx +38 -38
- package/grid/types.d.ts +10 -10
- package/header/Header.accessibility.test.js +84 -0
- package/header/Header.d.ts +1 -1
- package/header/Header.js +36 -103
- 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 +7 -8
- package/heading/Heading.accessibility.test.js +33 -0
- package/heading/Heading.js +9 -31
- package/heading/Heading.test.js +70 -87
- package/heading/types.d.ts +7 -7
- package/icon/Icon.accessibility.test.js +30 -0
- package/icon/Icon.d.ts +4 -0
- package/icon/Icon.js +33 -0
- package/icon/Icon.stories.tsx +28 -0
- package/icon/types.d.ts +4 -0
- package/icon/types.js +5 -0
- package/image/Image.accessibility.test.js +56 -0
- package/image/Image.d.ts +4 -0
- package/image/Image.js +70 -0
- package/image/Image.stories.tsx +129 -0
- package/image/types.d.ts +72 -0
- package/image/types.js +5 -0
- package/inset/Inset.js +13 -21
- package/inset/types.d.ts +2 -2
- package/layout/ApplicationLayout.d.ts +2 -2
- package/layout/ApplicationLayout.js +26 -66
- package/layout/ApplicationLayout.stories.tsx +1 -1
- package/layout/Icons.d.ts +8 -5
- package/layout/Icons.js +49 -59
- package/layout/types.d.ts +3 -3
- package/link/Link.accessibility.test.js +112 -0
- package/link/Link.js +28 -47
- package/link/Link.stories.tsx +2 -2
- package/link/Link.test.js +23 -41
- package/link/types.d.ts +14 -14
- package/main.d.ts +8 -4
- package/main.js +39 -59
- package/nav-tabs/NavTabs.accessibility.test.js +52 -0
- package/nav-tabs/NavTabs.d.ts +1 -2
- package/nav-tabs/NavTabs.js +19 -48
- package/nav-tabs/NavTabs.stories.tsx +7 -5
- package/nav-tabs/NavTabs.test.js +38 -44
- package/nav-tabs/NavTabsContext.d.ts +3 -0
- package/nav-tabs/NavTabsContext.js +8 -0
- package/nav-tabs/Tab.js +24 -52
- package/nav-tabs/types.d.ts +9 -9
- package/number-input/NumberInput.accessibility.test.js +228 -0
- package/number-input/NumberInput.js +46 -36
- package/number-input/NumberInput.stories.tsx +42 -26
- package/number-input/NumberInput.test.js +859 -412
- package/number-input/NumberInputContext.d.ts +3 -4
- package/number-input/NumberInputContext.js +3 -14
- package/number-input/types.d.ts +17 -5
- package/package.json +40 -38
- package/paginator/Icons.d.ts +5 -5
- package/paginator/Icons.js +5 -19
- package/paginator/Paginator.accessibility.test.js +79 -0
- package/paginator/Paginator.js +15 -43
- package/paginator/Paginator.test.js +224 -207
- package/paginator/types.d.ts +3 -3
- package/paragraph/Paragraph.accessibility.test.js +28 -0
- 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.accessibility.test.js +153 -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.accessibility.test.js +35 -0
- 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 +3 -3
- package/quick-nav/QuickNav.accessibility.test.js +57 -0
- 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 +22 -54
- package/radio-group/RadioGroup.accessibility.test.js +97 -0
- package/radio-group/RadioGroup.js +37 -83
- 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/resultset-table/ResultsetTable.accessibility.test.js +274 -0
- package/resultset-table/ResultsetTable.d.ts +7 -0
- package/{resultsetTable → resultset-table}/ResultsetTable.js +44 -69
- package/{resultsetTable → resultset-table}/ResultsetTable.stories.tsx +106 -5
- package/{resultsetTable → resultset-table}/ResultsetTable.test.js +148 -92
- package/{resultsetTable → resultset-table}/types.d.ts +44 -11
- 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.accessibility.test.js +217 -0
- package/select/Select.js +87 -163
- package/select/Select.stories.tsx +3 -4
- package/select/Select.test.js +1946 -1804
- package/select/types.d.ts +14 -15
- package/sidenav/Sidenav.accessibility.test.js +59 -0
- package/sidenav/Sidenav.js +44 -81
- package/sidenav/Sidenav.stories.tsx +4 -9
- package/sidenav/Sidenav.test.js +3 -10
- package/{layout → sidenav}/SidenavContext.d.ts +1 -1
- package/{layout → sidenav}/SidenavContext.js +3 -9
- package/sidenav/types.d.ts +20 -20
- package/slider/Slider.accessibility.test.js +104 -0
- package/slider/Slider.js +68 -125
- package/slider/Slider.test.js +107 -103
- package/slider/types.d.ts +4 -4
- package/spinner/Spinner.accessibility.test.js +96 -0
- package/spinner/Spinner.js +16 -54
- package/spinner/Spinner.test.js +25 -34
- package/spinner/types.d.ts +3 -3
- package/status-light/StatusLight.accessibility.test.js +157 -0
- 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.accessibility.test.js +89 -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/DropdownTheme.js +62 -0
- package/table/Table.accessibility.test.js +82 -0
- package/table/Table.d.ts +6 -2
- package/table/Table.js +76 -33
- package/table/{Table.stories.jsx → Table.stories.tsx} +297 -2
- package/table/Table.test.js +93 -6
- package/table/types.d.ts +34 -6
- package/tabs/Tab.js +17 -33
- package/tabs/Tabs.accessibility.test.js +56 -0
- package/tabs/Tabs.js +52 -129
- package/tabs/Tabs.stories.tsx +1 -1
- package/tabs/Tabs.test.js +62 -118
- package/tabs/types.d.ts +19 -19
- package/tag/Tag.accessibility.test.js +69 -0
- package/tag/Tag.js +27 -57
- package/tag/Tag.stories.tsx +4 -7
- package/tag/Tag.test.js +17 -36
- package/tag/types.d.ts +9 -9
- package/text-input/Suggestion.js +9 -26
- package/text-input/Suggestions.d.ts +1 -1
- package/text-input/Suggestions.js +19 -67
- package/text-input/TextInput.accessibility.test.js +321 -0
- package/text-input/TextInput.js +221 -327
- package/text-input/TextInput.stories.tsx +49 -153
- package/text-input/TextInput.test.js +1227 -1194
- package/text-input/types.d.ts +25 -17
- package/textarea/Textarea.accessibility.test.js +155 -0
- package/textarea/Textarea.js +67 -109
- package/textarea/{Textarea.stories.jsx → Textarea.stories.tsx} +58 -100
- package/textarea/Textarea.test.js +150 -179
- package/textarea/types.d.ts +9 -5
- package/toggle-group/ToggleGroup.accessibility.test.js +107 -0
- package/toggle-group/ToggleGroup.js +92 -108
- package/toggle-group/ToggleGroup.stories.tsx +10 -7
- package/toggle-group/ToggleGroup.test.js +68 -87
- package/toggle-group/types.d.ts +28 -19
- package/typography/Typography.accessibility.test.js +339 -0
- package/typography/Typography.js +4 -13
- package/typography/types.d.ts +1 -1
- package/useTheme.d.ts +49 -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 +25 -39
- package/wizard/Wizard.accessibility.test.js +55 -0
- package/wizard/Wizard.js +14 -49
- package/wizard/Wizard.test.js +53 -80
- package/wizard/types.d.ts +7 -7
- package/common/OpenSans.css +0 -69
- package/common/fonts/OpenSans-Bold.ttf +0 -0
- package/common/fonts/OpenSans-BoldItalic.ttf +0 -0
- package/common/fonts/OpenSans-ExtraBold.ttf +0 -0
- package/common/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
- package/common/fonts/OpenSans-Italic.ttf +0 -0
- package/common/fonts/OpenSans-Light.ttf +0 -0
- package/common/fonts/OpenSans-LightItalic.ttf +0 -0
- package/common/fonts/OpenSans-Regular.ttf +0 -0
- package/common/fonts/OpenSans-SemiBold.ttf +0 -0
- package/common/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
- package/number-input/numberInputContextTypes.d.ts +0 -19
- package/resultsetTable/Icons.d.ts +0 -7
- package/resultsetTable/ResultsetTable.d.ts +0 -4
- package/sidenav/Icons.d.ts +0 -7
- package/sidenav/Icons.js +0 -51
- package/slider/Slider.stories.tsx +0 -240
- package/text-input/Icons.d.ts +0 -8
- package/text-input/Icons.js +0 -60
- /package/{resultsetTable → action-icon}/types.js +0 -0
- /package/{number-input/numberInputContextTypes.js → container/types.js} +0 -0
- /package/spinner/{Spinner.stories.jsx → Spinner.stories.tsx} +0 -0
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
|
@@ -36,7 +36,7 @@ declare const useTheme: () => {
|
|
|
36
36
|
disabledIconColor: string;
|
|
37
37
|
iconSize: string;
|
|
38
38
|
iconMarginLeft: string;
|
|
39
|
-
|
|
39
|
+
iconMarginRight: string;
|
|
40
40
|
accordionGroupSeparatorBorderColor: string;
|
|
41
41
|
accordionGroupSeparatorBorderThickness: string;
|
|
42
42
|
accordionGroupSeparatorBorderRadius: string;
|
|
@@ -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<{
|
|
@@ -311,8 +282,14 @@ declare const useTheme: () => {
|
|
|
311
282
|
buttonPaddingBottom: string;
|
|
312
283
|
buttonPaddingLeft: string;
|
|
313
284
|
buttonPaddingRight: string;
|
|
285
|
+
buttonHeight: string;
|
|
286
|
+
buttonBorderRadius: string;
|
|
287
|
+
buttonBorderStyle: string;
|
|
288
|
+
buttonBorderThickness: string;
|
|
289
|
+
buttonBorderColor: string;
|
|
314
290
|
disabledColor: string;
|
|
315
291
|
disabledButtonBackgroundColor: string;
|
|
292
|
+
disabledButtonBorderColor: string;
|
|
316
293
|
disabledBorderColor: string;
|
|
317
294
|
optionBackgroundColor: string;
|
|
318
295
|
hoverOptionBackgroundColor: string;
|
|
@@ -449,7 +426,6 @@ declare const useTheme: () => {
|
|
|
449
426
|
underlinedThickness: string;
|
|
450
427
|
underlinedStyle: string;
|
|
451
428
|
contentColor: string;
|
|
452
|
-
contentColorOnDark: string;
|
|
453
429
|
}>;
|
|
454
430
|
heading?: Partial<{
|
|
455
431
|
level1FontColor: string;
|
|
@@ -488,6 +464,14 @@ declare const useTheme: () => {
|
|
|
488
464
|
level5LineHeight: string;
|
|
489
465
|
level5LetterSpacing: string;
|
|
490
466
|
}>;
|
|
467
|
+
image?: Partial<{
|
|
468
|
+
captionFontColor: string;
|
|
469
|
+
captionFontFamily: string;
|
|
470
|
+
captionFontSize: string;
|
|
471
|
+
captionFontStyle: string;
|
|
472
|
+
captionFontWeight: string;
|
|
473
|
+
captionLineHeight: string;
|
|
474
|
+
}>;
|
|
491
475
|
link?: Partial<{
|
|
492
476
|
fontColor: string;
|
|
493
477
|
fontFamily: string;
|
|
@@ -548,31 +532,26 @@ declare const useTheme: () => {
|
|
|
548
532
|
}>;
|
|
549
533
|
paragraph?: Partial<{
|
|
550
534
|
fontColor: string;
|
|
551
|
-
fontColorOnDark: string;
|
|
552
535
|
display: string;
|
|
553
536
|
fontSize: string;
|
|
554
537
|
fontWeight: string;
|
|
555
538
|
}>;
|
|
556
539
|
progressBar?: Partial<{
|
|
557
540
|
trackLineColor: string;
|
|
558
|
-
trackLineColorOnDark: string;
|
|
559
541
|
totalLineColor: string;
|
|
560
542
|
labelFontFamily: string;
|
|
561
543
|
labelFontSize: string;
|
|
562
544
|
labelFontStyle: string;
|
|
563
545
|
labelFontWeight: string;
|
|
564
546
|
labelFontColor: string;
|
|
565
|
-
labelFontColorOnDark: string;
|
|
566
547
|
labelFontTextTransform: string;
|
|
567
548
|
valueFontFamily: string;
|
|
568
549
|
valueFontSize: string;
|
|
569
550
|
valueFontStyle: string;
|
|
570
551
|
valueFontWeight: string;
|
|
571
552
|
valueFontColor: string;
|
|
572
|
-
valueFontColorOnDark: string;
|
|
573
553
|
valueFontTextTransform: string;
|
|
574
554
|
helperTextFontColor: string;
|
|
575
|
-
helperTextFontColorOnDark: string;
|
|
576
555
|
helperTextFontSize: string;
|
|
577
556
|
helperTextFontStyle: string;
|
|
578
557
|
helperTextFontWeight: string;
|
|
@@ -608,9 +587,9 @@ declare const useTheme: () => {
|
|
|
608
587
|
errorRadioInputColor: string;
|
|
609
588
|
hoverErrorRadioInputColor: string;
|
|
610
589
|
activeErrorRadioInputColor: string;
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
590
|
+
readOnlyRadioInputColor: string;
|
|
591
|
+
hoverReadOnlyRadioInputColor: string;
|
|
592
|
+
activeReadOnlyRadioInputColor: string;
|
|
614
593
|
disabledRadioInputColor: string;
|
|
615
594
|
disabledLabelFontColor: string;
|
|
616
595
|
disabledHelperTextFontColor: string;
|
|
@@ -750,7 +729,6 @@ declare const useTheme: () => {
|
|
|
750
729
|
slider?: Partial<{
|
|
751
730
|
fontFamily: string;
|
|
752
731
|
limitValuesFontColor: string;
|
|
753
|
-
limitValuesFontColorOnDark: string;
|
|
754
732
|
limitValuesFontSize: string;
|
|
755
733
|
limitValuesFontStyle: string;
|
|
756
734
|
limitValuesFontWeight: string;
|
|
@@ -767,15 +745,10 @@ declare const useTheme: () => {
|
|
|
767
745
|
helperTextFontWeight: string;
|
|
768
746
|
helperTextLineHeight: string;
|
|
769
747
|
fontColor: string;
|
|
770
|
-
fontColorOnDark: string;
|
|
771
748
|
labelFontColor: string;
|
|
772
|
-
labelFontColorOnDark: string;
|
|
773
749
|
helperTextFontColor: string;
|
|
774
|
-
helperTextFontColorOnDark: string;
|
|
775
750
|
disabledLabelFontColor: string;
|
|
776
|
-
disabledLabelFontColorOnDark: string;
|
|
777
751
|
disabledHelperTextFontColor: string;
|
|
778
|
-
disabledHelperTextFontColorOnDark: string;
|
|
779
752
|
thumbHeight: string;
|
|
780
753
|
thumbWidth: string;
|
|
781
754
|
hoverThumbHeight: string;
|
|
@@ -783,40 +756,28 @@ declare const useTheme: () => {
|
|
|
783
756
|
thumbVerticalPosition: string;
|
|
784
757
|
hoverThumbVerticalPosition: string;
|
|
785
758
|
thumbBackgroundColor: string;
|
|
786
|
-
thumbBackgroundColorOnDark: string;
|
|
787
759
|
hoverThumbScale: string;
|
|
788
760
|
hoverThumbBackgroundColor: string;
|
|
789
|
-
hoverThumbBackgroundColorOnDark: string;
|
|
790
761
|
activeThumbScale: string;
|
|
791
762
|
activeThumbBackgroundColor: string;
|
|
792
|
-
activeThumbBackgroundColorOnDark: string;
|
|
793
763
|
focusThumbBackgroundColor: string;
|
|
794
|
-
focusThumbBackgroundColorOnDark: string;
|
|
795
764
|
tickHeight: string;
|
|
796
765
|
tickWidth: string;
|
|
797
766
|
tickVerticalPosition: string;
|
|
798
767
|
tickBackgroundColor: string;
|
|
799
|
-
tickBackgroundColorOnDark: string;
|
|
800
768
|
trackLineThickness: string;
|
|
801
769
|
trackLineVerticalPosition: string;
|
|
802
770
|
trackLineColor: string;
|
|
803
|
-
trackLineColorOnDark: string;
|
|
804
771
|
totalLineThickness: string;
|
|
805
772
|
totalLineVerticalPosition: string;
|
|
806
773
|
totalLineColor: string;
|
|
807
|
-
totalLineColorOnDark: string;
|
|
808
774
|
disabledThumbVerticalPosition: string;
|
|
809
775
|
disabledThumbBackgroundColor: string;
|
|
810
|
-
disabledThumbBackgroundColorOnDark: string;
|
|
811
776
|
disabledTickVerticalPosition: string;
|
|
812
777
|
disabledTickBackgroundColor: string;
|
|
813
|
-
disabledTickBackgroundColorOnDark: string;
|
|
814
778
|
disabledTrackLineColor: string;
|
|
815
|
-
disabledTrackLineColorOnDark: string;
|
|
816
779
|
disabledTotalLineColor: string;
|
|
817
|
-
disabledTotalLineColorOnDark: string;
|
|
818
780
|
focusColor: string;
|
|
819
|
-
focusColorOnDark: string;
|
|
820
781
|
floorLabelMarginRight: string;
|
|
821
782
|
ceilLabelMarginLeft: string;
|
|
822
783
|
inputMarginLeft: string;
|
|
@@ -830,14 +791,12 @@ declare const useTheme: () => {
|
|
|
830
791
|
labelFontStyle: string;
|
|
831
792
|
labelFontWeight: string;
|
|
832
793
|
labelFontColor: string;
|
|
833
|
-
labelFontColorOnDark: string;
|
|
834
794
|
labelTextAlign: string;
|
|
835
795
|
progressValueFontFamily: string;
|
|
836
796
|
progressValueFontSize: string;
|
|
837
797
|
progressValueFontStyle: string;
|
|
838
798
|
progressValueFontWeight: string;
|
|
839
799
|
progressValueFontColor: string;
|
|
840
|
-
progressValueFontColorOnDark: string;
|
|
841
800
|
progressValueTextAlign: string;
|
|
842
801
|
overlayBackgroundColor: string;
|
|
843
802
|
overlayOpacity: string;
|
|
@@ -856,32 +815,21 @@ declare const useTheme: () => {
|
|
|
856
815
|
}>;
|
|
857
816
|
switch?: Partial<{
|
|
858
817
|
checkedTrackBackgroundColor: string;
|
|
859
|
-
checkedTrackBackgroundColorOnDark: string;
|
|
860
818
|
checkedThumbBackgroundColor: string;
|
|
861
|
-
checkedThumbBackgroundColorOnDark: string;
|
|
862
819
|
uncheckedTrackBackgroundColor: string;
|
|
863
|
-
uncheckedTrackBackgroundColorOnDark: string;
|
|
864
820
|
uncheckedThumbBackgroundColor: string;
|
|
865
|
-
uncheckedThumbBackgroundColorOnDark: string;
|
|
866
821
|
disabledCheckedTrackBackgroundColor: string;
|
|
867
|
-
disabledCheckedTrackBackgroundColorOnDark: string;
|
|
868
822
|
disabledCheckedThumbBackgroundColor: string;
|
|
869
|
-
disabledCheckedThumbBackgroundColorOnDark: string;
|
|
870
823
|
disabledUncheckedTrackBackgroundColor: string;
|
|
871
|
-
disabledUncheckedTrackBackgroundColorOnDark: string;
|
|
872
824
|
disabledUncheckedThumbBackgroundColor: string;
|
|
873
|
-
disabledUncheckedThumbBackgroundColorOnDark: string;
|
|
874
825
|
disabledLabelFontColor: string;
|
|
875
|
-
disabledLabelFontColorOnDark: string;
|
|
876
826
|
disabledLabelFontStyle: string;
|
|
877
827
|
labelFontFamily: string;
|
|
878
828
|
labelFontSize: string;
|
|
879
829
|
labelFontStyle: string;
|
|
880
830
|
labelFontWeight: string;
|
|
881
831
|
labelFontColor: string;
|
|
882
|
-
labelFontColorOnDark: string;
|
|
883
832
|
thumbFocusColor: string;
|
|
884
|
-
thumbFocusColorOnDark: string;
|
|
885
833
|
thumbHeight: string;
|
|
886
834
|
thumbWidth: string;
|
|
887
835
|
thumbShift: string;
|
|
@@ -904,8 +852,16 @@ declare const useTheme: () => {
|
|
|
904
852
|
dataPaddingBottom: string;
|
|
905
853
|
dataPaddingRight: string;
|
|
906
854
|
dataPaddingLeft: string;
|
|
855
|
+
dataPaddingTopReduced: string;
|
|
856
|
+
dataPaddingBottomReduced: string;
|
|
857
|
+
dataPaddingRightReduced: string;
|
|
858
|
+
dataPaddingLeftReduced: string;
|
|
907
859
|
dataTextAlign: string;
|
|
908
860
|
dataTextLineHeight: string;
|
|
861
|
+
firstChildPaddingLeft: string;
|
|
862
|
+
lastChildPaddingRight: string;
|
|
863
|
+
firstChildPaddingLeftReduced: string;
|
|
864
|
+
lastChildPaddingRightReduced: string;
|
|
909
865
|
headerBackgroundColor: string;
|
|
910
866
|
headerBorderRadius: string;
|
|
911
867
|
headerFontFamily: string;
|
|
@@ -918,11 +874,25 @@ declare const useTheme: () => {
|
|
|
918
874
|
headerPaddingBottom: string;
|
|
919
875
|
headerPaddingRight: string;
|
|
920
876
|
headerPaddingLeft: string;
|
|
877
|
+
headerPaddingTopReduced: string;
|
|
878
|
+
headerPaddingBottomReduced: string;
|
|
879
|
+
headerPaddingRightReduced: string;
|
|
880
|
+
headerPaddingLeftReduced: string;
|
|
921
881
|
headerTextAlign: string;
|
|
922
882
|
headerTextLineHeight: string;
|
|
923
883
|
scrollBarThumbColor: string;
|
|
924
884
|
scrollBarTrackColor: string;
|
|
925
885
|
sortIconColor: string;
|
|
886
|
+
actionIconColor: string;
|
|
887
|
+
disabledActionIconColor: string;
|
|
888
|
+
hoverActionIconColor: string;
|
|
889
|
+
focusActionIconColor: string;
|
|
890
|
+
activeActionIconColor: string;
|
|
891
|
+
actionBackgroundColor: string;
|
|
892
|
+
disabledActionBackgroundColor: string;
|
|
893
|
+
hoverActionBackgroundColor: string;
|
|
894
|
+
focusActionBorderColor: string;
|
|
895
|
+
activeActionBackgroundColor: string;
|
|
926
896
|
}>;
|
|
927
897
|
tabs?: Partial<{
|
|
928
898
|
fontFamily: string;
|
|
@@ -941,7 +911,6 @@ declare const useTheme: () => {
|
|
|
941
911
|
disabledFontColor: string;
|
|
942
912
|
disabledIconColor: string;
|
|
943
913
|
disabledFontStyle: string;
|
|
944
|
-
disabledBadgeBackgroundColor: string;
|
|
945
914
|
hoverBackgroundColor: string;
|
|
946
915
|
pressedBackgroundColor: string;
|
|
947
916
|
pressedFontWeight: string;
|
|
@@ -949,19 +918,6 @@ declare const useTheme: () => {
|
|
|
949
918
|
dividerThickness: string;
|
|
950
919
|
focusOutline: string;
|
|
951
920
|
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
921
|
}>;
|
|
966
922
|
tag?: Partial<{
|
|
967
923
|
fontFamily: string;
|
|
@@ -983,130 +939,87 @@ declare const useTheme: () => {
|
|
|
983
939
|
textarea?: Partial<{
|
|
984
940
|
fontFamily: string;
|
|
985
941
|
enabledBorderColor: string;
|
|
986
|
-
enabledBorderColorOnDark: string;
|
|
987
942
|
hoverBorderColor: string;
|
|
988
|
-
hoverBorderColorOnDark: string;
|
|
989
943
|
focusBorderColor: string;
|
|
990
|
-
focusBorderColorOnDark: string;
|
|
991
944
|
disabledBorderColor: string;
|
|
992
|
-
disabledBorderColorOnDark: string;
|
|
993
945
|
disabledContainerFillColor: string;
|
|
994
|
-
|
|
946
|
+
readOnlyBorderColor: string;
|
|
947
|
+
hoverReadOnlyBorderColor: string;
|
|
995
948
|
errorBorderColor: string;
|
|
996
|
-
errorBorderColorOnDark: string;
|
|
997
949
|
hoverErrorBorderColor: string;
|
|
998
|
-
hoverErrorBorderColorOnDark: string;
|
|
999
950
|
inputMarginTop: string;
|
|
1000
951
|
inputMarginBottom: string;
|
|
1001
952
|
errorMessageColor: string;
|
|
1002
|
-
errorMessageColorOnDark: string;
|
|
1003
953
|
labelFontColor: string;
|
|
1004
|
-
labelFontColorOnDark: string;
|
|
1005
954
|
labelFontSize: string;
|
|
1006
955
|
labelFontStyle: string;
|
|
1007
956
|
labelFontWeight: string;
|
|
1008
957
|
labelLineHeight: string;
|
|
1009
958
|
disabledLabelFontColor: string;
|
|
1010
|
-
disabledLabelFontColorOnDark: string;
|
|
1011
959
|
optionalLabelFontWeight: string;
|
|
1012
960
|
helperTextFontColor: string;
|
|
1013
|
-
helperTextFontColorOnDark: string;
|
|
1014
961
|
helperTextFontSize: string;
|
|
1015
962
|
helperTextFontStyle: string;
|
|
1016
963
|
helperTextFontWeight: string;
|
|
1017
964
|
helperTextLineHeight: string;
|
|
1018
965
|
disabledHelperTextFontColor: string;
|
|
1019
|
-
disabledHelperTextFontColorOnDark: string;
|
|
1020
966
|
placeholderFontColor: string;
|
|
1021
|
-
placeholderFontColorOnDark: string;
|
|
1022
967
|
disabledPlaceholderFontColor: string;
|
|
1023
|
-
disabledPlaceholderFontColorOnDark: string;
|
|
1024
968
|
valueFontColor: string;
|
|
1025
|
-
valueFontColorOnDark: string;
|
|
1026
969
|
valueFontSize: string;
|
|
1027
970
|
valueFontStyle: string;
|
|
1028
971
|
valueFontWeight: string;
|
|
1029
972
|
disabledValueFontColor: string;
|
|
1030
|
-
disabledValueFontColorOnDark: string;
|
|
1031
973
|
}>;
|
|
1032
974
|
textInput?: Partial<{
|
|
1033
975
|
fontFamily: string;
|
|
1034
976
|
enabledBorderColor: string;
|
|
1035
|
-
enabledBorderColorOnDark: string;
|
|
1036
977
|
hoverBorderColor: string;
|
|
1037
|
-
hoverBorderColorOnDark: string;
|
|
1038
978
|
focusBorderColor: string;
|
|
1039
|
-
focusBorderColorOnDark: string;
|
|
1040
979
|
disabledBorderColor: string;
|
|
1041
|
-
disabledBorderColorOnDark: string;
|
|
1042
980
|
disabledContainerFillColor: string;
|
|
1043
|
-
|
|
981
|
+
readOnlyBorderColor: string;
|
|
982
|
+
hoverReadOnlyBorderColor: string;
|
|
1044
983
|
errorBorderColor: string;
|
|
1045
|
-
errorBorderColorOnDark: string;
|
|
1046
984
|
hoverErrorBorderColor: string;
|
|
1047
|
-
hoverErrorBorderColorOnDark: string;
|
|
1048
985
|
inputMarginTop: string;
|
|
1049
986
|
inputMarginBottom: string;
|
|
1050
987
|
errorMessageColor: string;
|
|
1051
|
-
errorMessageColorOnDark: string;
|
|
1052
988
|
errorIconColor: string;
|
|
1053
|
-
errorIconColorOnDark: string;
|
|
1054
989
|
labelFontColor: string;
|
|
1055
|
-
labelFontColorOnDark: string;
|
|
1056
990
|
labelFontSize: string;
|
|
1057
991
|
labelFontStyle: string;
|
|
1058
992
|
labelFontWeight: string;
|
|
1059
993
|
labelLineHeight: string;
|
|
1060
994
|
disabledLabelFontColor: string;
|
|
1061
|
-
disabledLabelFontColorOnDark: string;
|
|
1062
995
|
optionalLabelFontWeight: string;
|
|
1063
996
|
helperTextFontColor: string;
|
|
1064
|
-
helperTextFontColorOnDark: string;
|
|
1065
997
|
helperTextFontSize: string;
|
|
1066
998
|
helperTextFontStyle: string;
|
|
1067
999
|
helperTextFontWeight: string;
|
|
1068
1000
|
helperTextLineHeight: string;
|
|
1069
1001
|
disabledHelperTextFontColor: string;
|
|
1070
|
-
disabledHelperTextFontColorOnDark: string;
|
|
1071
1002
|
prefixColor: string;
|
|
1072
|
-
prefixColorOnDark: string;
|
|
1073
1003
|
suffixColor: string;
|
|
1074
|
-
suffixColorOnDark: string;
|
|
1075
1004
|
disabledPrefixColor: string;
|
|
1076
1005
|
disabledSuffixColor: string;
|
|
1077
|
-
disabledPrefixColorOnDark: string;
|
|
1078
|
-
disabledSuffixColorOnDark: string;
|
|
1079
1006
|
placeholderFontColor: string;
|
|
1080
|
-
placeholderFontColorOnDark: string;
|
|
1081
1007
|
disabledPlaceholderFontColor: string;
|
|
1082
|
-
disabledPlaceholderFontColorOnDark: string;
|
|
1083
1008
|
valueFontColor: string;
|
|
1084
|
-
valueFontColorOnDark: string;
|
|
1085
1009
|
valueFontSize: string;
|
|
1086
1010
|
valueFontStyle: string;
|
|
1087
1011
|
valueFontWeight: string;
|
|
1088
1012
|
disabledValueFontColor: string;
|
|
1089
|
-
disabledValueFontColorOnDark: string;
|
|
1090
1013
|
actionIconColor: string;
|
|
1091
|
-
actionIconColorOnDark: string;
|
|
1092
1014
|
disabledActionIconColor: string;
|
|
1093
|
-
disabledActionIconColorOnDark: string;
|
|
1094
1015
|
hoverActionIconColor: string;
|
|
1095
|
-
hoverActionIconColorOnDark: string;
|
|
1096
1016
|
focusActionIconColor: string;
|
|
1097
|
-
focusActionIconColorOnDark: string;
|
|
1098
1017
|
activeActionIconColor: string;
|
|
1099
|
-
activeActionIconColorOnDark: string;
|
|
1100
1018
|
actionBackgroundColor: string;
|
|
1101
|
-
actionBackgroundColorOnDark: string;
|
|
1102
1019
|
disabledActionBackgroundColor: string;
|
|
1103
|
-
disabledActionBackgroundColorOnDark: string;
|
|
1104
1020
|
hoverActionBackgroundColor: string;
|
|
1105
|
-
hoverActionBackgroundColorOnDark: string;
|
|
1106
1021
|
focusActionBorderColor: string;
|
|
1107
|
-
focusActionBorderColorOnDark: string;
|
|
1108
1022
|
activeActionBackgroundColor: string;
|
|
1109
|
-
activeActionBackgroundColorOnDark: string;
|
|
1110
1023
|
listDialogBackgroundColor: string;
|
|
1111
1024
|
listDialogBorderColor: string;
|
|
1112
1025
|
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;
|