@dxc-technology/halstack-react 0.0.0-ebf4fe2 → 0.0.0-ec06b53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HalstackContext.js +7 -8
- package/accordion/Accordion.js +122 -103
- package/accordion/Accordion.stories.tsx +2 -3
- package/accordion/Accordion.test.js +9 -10
- package/accordion/types.d.ts +5 -4
- package/accordion-group/AccordionGroup.js +1 -21
- package/accordion-group/AccordionGroup.stories.tsx +27 -1
- package/accordion-group/AccordionGroup.test.js +20 -45
- package/accordion-group/types.d.ts +10 -3
- package/alert/Alert.js +1 -1
- package/bleed/Bleed.stories.tsx +63 -63
- package/box/Box.js +1 -1
- package/box/types.d.ts +1 -0
- package/bulleted-list/BulletedList.d.ts +7 -0
- package/bulleted-list/BulletedList.js +123 -0
- package/bulleted-list/BulletedList.stories.tsx +200 -0
- package/bulleted-list/types.d.ts +11 -0
- package/{inline → bulleted-list}/types.js +0 -0
- package/button/Button.js +43 -61
- package/button/Button.stories.tsx +9 -0
- package/button/types.d.ts +7 -7
- package/card/types.d.ts +1 -0
- package/checkbox/Checkbox.d.ts +2 -2
- package/checkbox/Checkbox.js +92 -99
- package/checkbox/Checkbox.stories.tsx +79 -59
- package/checkbox/Checkbox.test.js +93 -16
- package/checkbox/types.d.ts +6 -2
- package/chip/types.d.ts +1 -1
- package/common/variables.js +75 -33
- package/date-input/Calendar.d.ts +4 -0
- package/date-input/Calendar.js +258 -0
- package/date-input/DateInput.js +77 -222
- package/date-input/DateInput.stories.tsx +30 -17
- package/date-input/DateInput.test.js +411 -138
- package/date-input/DatePicker.d.ts +4 -0
- package/date-input/DatePicker.js +160 -0
- package/date-input/YearPicker.d.ts +4 -0
- package/date-input/YearPicker.js +115 -0
- package/date-input/types.d.ts +53 -0
- package/dialog/Dialog.js +52 -28
- package/dialog/Dialog.stories.tsx +57 -2
- package/dialog/Dialog.test.js +34 -4
- package/dialog/types.d.ts +3 -2
- package/dropdown/Dropdown.d.ts +1 -1
- package/dropdown/Dropdown.js +247 -247
- package/dropdown/Dropdown.stories.tsx +126 -63
- package/dropdown/Dropdown.test.js +504 -108
- package/dropdown/DropdownMenu.d.ts +4 -0
- package/dropdown/DropdownMenu.js +80 -0
- package/dropdown/DropdownMenuItem.d.ts +4 -0
- package/dropdown/DropdownMenuItem.js +92 -0
- package/dropdown/types.d.ts +25 -5
- package/file-input/FileInput.d.ts +2 -2
- package/file-input/FileInput.js +177 -219
- package/file-input/FileInput.stories.tsx +38 -10
- package/file-input/FileInput.test.js +53 -12
- package/file-input/FileItem.d.ts +4 -14
- package/file-input/FileItem.js +38 -63
- package/file-input/types.d.ts +17 -0
- package/flex/Flex.d.ts +4 -0
- package/flex/Flex.js +69 -0
- package/flex/Flex.stories.tsx +103 -0
- package/flex/types.d.ts +32 -0
- package/{list → flex}/types.js +0 -0
- package/footer/Footer.stories.tsx +8 -1
- package/footer/types.d.ts +2 -1
- package/header/Header.js +74 -72
- package/header/Header.stories.tsx +4 -4
- package/header/Icons.js +2 -2
- package/header/types.d.ts +3 -2
- package/inset/Inset.stories.tsx +4 -4
- package/layout/ApplicationLayout.d.ts +15 -6
- package/layout/ApplicationLayout.js +36 -64
- package/layout/ApplicationLayout.stories.tsx +80 -44
- package/layout/types.d.ts +17 -27
- package/link/Link.js +2 -2
- package/link/Link.stories.tsx +13 -6
- package/link/types.d.ts +1 -1
- package/main.d.ts +5 -9
- package/main.js +27 -59
- package/number-input/NumberInput.test.js +43 -7
- package/package.json +16 -20
- package/paginator/Paginator.js +2 -2
- package/paginator/Paginator.test.js +1 -1
- package/paragraph/Paragraph.d.ts +6 -0
- package/paragraph/Paragraph.js +38 -0
- package/paragraph/Paragraph.stories.tsx +44 -0
- package/password-input/PasswordInput.test.js +13 -12
- package/progress-bar/ProgressBar.d.ts +2 -2
- package/progress-bar/ProgressBar.js +56 -50
- package/progress-bar/ProgressBar.stories.jsx +3 -1
- package/progress-bar/ProgressBar.test.js +67 -22
- package/progress-bar/types.d.ts +3 -4
- package/quick-nav/QuickNav.js +18 -17
- package/quick-nav/QuickNav.stories.tsx +131 -26
- package/radio-group/Radio.d.ts +1 -1
- package/radio-group/Radio.js +43 -28
- package/radio-group/RadioGroup.js +23 -22
- package/radio-group/RadioGroup.stories.tsx +1 -0
- package/radio-group/RadioGroup.test.js +123 -96
- package/radio-group/types.d.ts +2 -2
- package/resultsetTable/Icons.d.ts +7 -0
- package/resultsetTable/Icons.js +51 -0
- package/resultsetTable/ResultsetTable.js +48 -107
- package/resultsetTable/ResultsetTable.stories.tsx +50 -25
- package/resultsetTable/ResultsetTable.test.js +23 -41
- package/resultsetTable/types.d.ts +2 -2
- package/select/Listbox.d.ts +1 -1
- package/select/Listbox.js +25 -2
- package/select/Select.js +17 -32
- package/select/Select.stories.tsx +6 -5
- package/select/Select.test.js +321 -250
- package/select/types.d.ts +2 -4
- package/sidenav/Sidenav.d.ts +6 -5
- package/sidenav/Sidenav.js +176 -55
- package/sidenav/Sidenav.stories.tsx +154 -156
- package/sidenav/Sidenav.test.js +25 -37
- package/sidenav/types.d.ts +50 -27
- package/slider/Slider.d.ts +2 -2
- package/slider/Slider.js +120 -95
- package/slider/Slider.stories.tsx +7 -1
- package/slider/Slider.test.js +121 -21
- package/slider/types.d.ts +6 -2
- package/switch/Switch.d.ts +2 -2
- package/switch/Switch.js +135 -68
- package/switch/Switch.stories.tsx +8 -30
- package/switch/Switch.test.js +144 -17
- package/switch/types.d.ts +6 -2
- package/table/Table.js +1 -1
- package/table/Table.test.js +1 -1
- package/tabs/Tab.d.ts +4 -0
- package/tabs/Tab.js +135 -0
- package/tabs/Tabs.js +360 -104
- package/tabs/Tabs.stories.tsx +74 -0
- package/tabs/Tabs.test.js +217 -6
- package/tabs/types.d.ts +15 -5
- package/tabs-nav/NavTabs.js +5 -5
- package/tabs-nav/Tab.js +3 -5
- package/tabs-nav/types.d.ts +1 -1
- package/tag/Tag.js +1 -1
- package/tag/types.d.ts +1 -1
- package/text-input/Icons.d.ts +8 -0
- package/text-input/Icons.js +60 -0
- package/text-input/Suggestion.js +7 -5
- package/text-input/Suggestions.d.ts +4 -0
- package/text-input/Suggestions.js +134 -0
- package/text-input/TextInput.js +189 -282
- package/text-input/TextInput.stories.tsx +189 -182
- package/text-input/TextInput.test.js +639 -727
- package/text-input/types.d.ts +22 -3
- package/toggle-group/types.d.ts +1 -1
- package/typography/Typography.d.ts +4 -0
- package/typography/Typography.js +131 -0
- package/typography/Typography.stories.tsx +198 -0
- package/typography/types.d.ts +18 -0
- package/{row → typography}/types.js +0 -0
- package/wizard/Wizard.js +9 -16
- package/wizard/Wizard.stories.tsx +20 -1
- package/wizard/types.d.ts +5 -4
- package/inline/Inline.d.ts +0 -4
- package/inline/Inline.js +0 -60
- package/inline/Inline.stories.tsx +0 -305
- package/inline/types.d.ts +0 -36
- package/list/List.d.ts +0 -4
- package/list/List.js +0 -47
- package/list/List.stories.tsx +0 -89
- package/list/types.d.ts +0 -7
- package/row/Row.d.ts +0 -3
- package/row/Row.js +0 -127
- package/row/Row.stories.tsx +0 -237
- package/row/types.d.ts +0 -28
- package/stack/Stack.d.ts +0 -4
- package/stack/Stack.js +0 -52
- package/stack/Stack.stories.tsx +0 -225
- package/stack/types.d.ts +0 -28
- package/stack/types.js +0 -5
- package/text/Text.d.ts +0 -7
- package/text/Text.js +0 -30
- package/text/Text.stories.tsx +0 -19
|
@@ -6,25 +6,39 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
|
|
7
7
|
var _react2 = require("@testing-library/react");
|
|
8
8
|
|
|
9
|
+
var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
|
|
10
|
+
|
|
9
11
|
var _Checkbox = _interopRequireDefault(require("./Checkbox"));
|
|
10
12
|
|
|
11
13
|
describe("Checkbox component tests", function () {
|
|
12
|
-
test("Checkbox renders with correct
|
|
14
|
+
test("Checkbox renders with correct aria-labelledby and aria-required", function () {
|
|
13
15
|
var _render = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
|
|
14
16
|
label: "Checkbox"
|
|
15
17
|
})),
|
|
16
|
-
getByText = _render.getByText
|
|
18
|
+
getByText = _render.getByText,
|
|
19
|
+
getByRole = _render.getByRole;
|
|
17
20
|
|
|
18
|
-
|
|
21
|
+
var labelId = getByText("Checkbox").getAttribute("id");
|
|
22
|
+
expect(getByRole("checkbox").getAttribute("aria-labelledby")).toBe(labelId);
|
|
23
|
+
expect(getByRole("checkbox").getAttribute("aria-required")).toBe("true");
|
|
24
|
+
});
|
|
25
|
+
test("Optional checkbox renders with correct aria-required", function () {
|
|
26
|
+
var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
|
|
27
|
+
label: "Checkbox",
|
|
28
|
+
optional: true
|
|
29
|
+
})),
|
|
30
|
+
getByRole = _render2.getByRole;
|
|
31
|
+
|
|
32
|
+
expect(getByRole("checkbox").getAttribute("aria-required")).toBe("false");
|
|
19
33
|
});
|
|
20
34
|
test("Calls correct function on click", function () {
|
|
21
35
|
var onChange = jest.fn();
|
|
22
36
|
|
|
23
|
-
var
|
|
37
|
+
var _render3 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
|
|
24
38
|
label: "Checkbox",
|
|
25
39
|
onChange: onChange
|
|
26
40
|
})),
|
|
27
|
-
getByText =
|
|
41
|
+
getByText = _render3.getByText;
|
|
28
42
|
|
|
29
43
|
_react2.fireEvent.click(getByText("Checkbox"));
|
|
30
44
|
|
|
@@ -34,45 +48,108 @@ describe("Checkbox component tests", function () {
|
|
|
34
48
|
var onChange = jest.fn();
|
|
35
49
|
var component = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
|
|
36
50
|
label: "Checkbox",
|
|
37
|
-
onChange: onChange
|
|
51
|
+
onChange: onChange,
|
|
52
|
+
name: "test"
|
|
38
53
|
}));
|
|
39
54
|
var visibleCheckbox = component.getByText("Checkbox");
|
|
40
55
|
var input = component.getByRole("checkbox");
|
|
41
|
-
|
|
56
|
+
var submitInput = component.container.querySelector("input[name=\"test\"]");
|
|
57
|
+
expect(input.getAttribute("aria-checked")).toBe("false");
|
|
58
|
+
expect(submitInput.checked).toBe(false);
|
|
42
59
|
|
|
43
60
|
_react2.fireEvent.click(visibleCheckbox);
|
|
44
61
|
|
|
45
62
|
expect(onChange).toHaveBeenCalled();
|
|
46
63
|
expect(onChange).toHaveBeenCalledWith(true);
|
|
47
|
-
expect(input.checked).toBe(true);
|
|
64
|
+
expect(input.getAttribute("aria-checked")).toBe("true");
|
|
65
|
+
expect(submitInput.checked).toBe(true);
|
|
48
66
|
});
|
|
49
67
|
test("Controlled checkbox", function () {
|
|
50
68
|
var onChange = jest.fn();
|
|
51
69
|
var component = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
|
|
52
70
|
label: "Checkbox",
|
|
53
71
|
checked: false,
|
|
54
|
-
onChange: onChange
|
|
72
|
+
onChange: onChange,
|
|
73
|
+
name: "test"
|
|
55
74
|
}));
|
|
56
75
|
var input = component.getByRole("checkbox");
|
|
57
76
|
var visibleCheckbox = component.getByText("Checkbox");
|
|
77
|
+
var submitInput = component.container.querySelector("input[name=\"test\"]");
|
|
58
78
|
|
|
59
79
|
_react2.fireEvent.click(visibleCheckbox);
|
|
60
80
|
|
|
61
81
|
expect(onChange).toHaveBeenCalled();
|
|
62
82
|
expect(onChange).toHaveBeenCalledWith(true);
|
|
63
|
-
expect(input.checked).toBe(false);
|
|
83
|
+
expect(input.getAttribute("aria-checked")).toBe("false");
|
|
84
|
+
expect(submitInput.checked).toBe(false);
|
|
64
85
|
});
|
|
65
86
|
test("Renders with correct initial value and initial state when it is uncontrolled", function () {
|
|
66
|
-
var
|
|
87
|
+
var _render4 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
|
|
67
88
|
label: "Default label",
|
|
68
89
|
defaultChecked: true,
|
|
69
|
-
value: "test-defaultChecked"
|
|
90
|
+
value: "test-defaultChecked",
|
|
91
|
+
name: "test"
|
|
92
|
+
})),
|
|
93
|
+
getByRole = _render4.getByRole,
|
|
94
|
+
container = _render4.container;
|
|
95
|
+
|
|
96
|
+
var checkbox = getByRole("checkbox");
|
|
97
|
+
var submitInput = container.querySelector("input[name=\"test\"]");
|
|
98
|
+
expect(submitInput.value).toBe("test-defaultChecked");
|
|
99
|
+
expect(checkbox.getAttribute("aria-checked")).toBe("true");
|
|
100
|
+
expect(submitInput.checked).toBe(true);
|
|
101
|
+
});
|
|
102
|
+
test("Test disable keyboard and mouse interactions", function () {
|
|
103
|
+
var onChange = jest.fn();
|
|
104
|
+
|
|
105
|
+
var _render5 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
|
|
106
|
+
label: "Checkbox",
|
|
107
|
+
onChange: onChange,
|
|
108
|
+
disabled: true,
|
|
109
|
+
name: "test"
|
|
70
110
|
})),
|
|
71
|
-
getByRole =
|
|
111
|
+
getByRole = _render5.getByRole,
|
|
112
|
+
getByText = _render5.getByText,
|
|
113
|
+
container = _render5.container;
|
|
72
114
|
|
|
73
115
|
var input = getByRole("checkbox");
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
116
|
+
var visibleCheckbox = getByText("Checkbox");
|
|
117
|
+
var submitInput = container.querySelector("input[name=\"test\"]");
|
|
118
|
+
|
|
119
|
+
_react2.fireEvent.click(visibleCheckbox);
|
|
120
|
+
|
|
121
|
+
expect(onChange).toHaveBeenCalledTimes(0);
|
|
122
|
+
expect(input.getAttribute("aria-checked")).toBe("false");
|
|
123
|
+
expect(input.getAttribute("aria-disabled")).toBe("true");
|
|
124
|
+
expect(submitInput.checked).toBe(false);
|
|
125
|
+
|
|
126
|
+
_userEvent["default"].tab();
|
|
127
|
+
|
|
128
|
+
expect(document.activeElement === input).toBeFalsy();
|
|
129
|
+
});
|
|
130
|
+
test("Test keyboard interactions", function () {
|
|
131
|
+
var onChange = jest.fn();
|
|
132
|
+
|
|
133
|
+
var _render6 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
|
|
134
|
+
label: "Checkbox",
|
|
135
|
+
name: "test",
|
|
136
|
+
onChange: onChange
|
|
137
|
+
})),
|
|
138
|
+
getByRole = _render6.getByRole;
|
|
139
|
+
|
|
140
|
+
var checkbox = getByRole("checkbox");
|
|
141
|
+
|
|
142
|
+
_userEvent["default"].tab();
|
|
143
|
+
|
|
144
|
+
expect(document.activeElement === checkbox).toBeTruthy();
|
|
145
|
+
|
|
146
|
+
_react2.fireEvent.keyDown(checkbox, {
|
|
147
|
+
key: " ",
|
|
148
|
+
code: "Space",
|
|
149
|
+
keyCode: 32,
|
|
150
|
+
charCode: 32
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
expect(onChange).toHaveBeenCalledWith(true);
|
|
77
154
|
});
|
|
78
155
|
});
|
package/checkbox/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2
|
-
declare type Margin = {
|
|
1
|
+
export declare type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2
|
+
export declare type Margin = {
|
|
3
3
|
top?: Space;
|
|
4
4
|
bottom?: Space;
|
|
5
5
|
left?: Space;
|
|
@@ -61,4 +61,8 @@ declare type Props = {
|
|
|
61
61
|
*/
|
|
62
62
|
tabIndex?: number;
|
|
63
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* Reference to the component.
|
|
66
|
+
*/
|
|
67
|
+
export declare type RefType = HTMLDivElement;
|
|
64
68
|
export default Props;
|
package/chip/types.d.ts
CHANGED
package/common/variables.js
CHANGED
|
@@ -179,13 +179,13 @@ var componentTokens = {
|
|
|
179
179
|
titleLabelFontStyle: globalTokens.type_normal,
|
|
180
180
|
titleLabelFontColor: globalTokens.hal_black,
|
|
181
181
|
disabledTitleLabelFontColor: globalTokens.hal_grey_l_60,
|
|
182
|
-
titleLabelPaddingLeft: "0px",
|
|
183
|
-
titleLabelPaddingRight: "16px",
|
|
184
182
|
titleLabelPaddingTop: "0px",
|
|
185
183
|
titleLabelPaddingBottom: "0px",
|
|
184
|
+
titleLabelPaddingLeft: "0px",
|
|
185
|
+
titleLabelPaddingRight: "16px",
|
|
186
|
+
focusBorderColor: globalTokens.hal_blue_l_50,
|
|
186
187
|
focusBorderStyle: "solid",
|
|
187
188
|
focusBorderThickness: "2px",
|
|
188
|
-
focusBorderColor: globalTokens.hal_blue_l_50,
|
|
189
189
|
borderRadius: "4px",
|
|
190
190
|
boxShadowOffsetX: "0px",
|
|
191
191
|
boxShadowOffsetY: "6px",
|
|
@@ -267,6 +267,15 @@ var componentTokens = {
|
|
|
267
267
|
twoShadowDepthShadowSpread: "0px",
|
|
268
268
|
twoShadowDepthShadowColor: globalTokens.color_grey_a_300
|
|
269
269
|
},
|
|
270
|
+
bulletedList: {
|
|
271
|
+
fontColor: globalTokens.hal_black,
|
|
272
|
+
fontColorOnDark: globalTokens.hal_white,
|
|
273
|
+
bulletIconHeight: "1.5rem",
|
|
274
|
+
bulletIconWidth: "1.5rem",
|
|
275
|
+
bulletHeight: "5px",
|
|
276
|
+
bulletWidth: "5px",
|
|
277
|
+
bulletMarginRight: "0.5rem"
|
|
278
|
+
},
|
|
270
279
|
button: {
|
|
271
280
|
labelFontLineHeight: globalTokens.type_leading_normal,
|
|
272
281
|
labelLetterSpacing: globalTokens.type_spacing_wide_01,
|
|
@@ -345,7 +354,7 @@ var componentTokens = {
|
|
|
345
354
|
backgroundColorChecked: globalTokens.hal_blue_s_35,
|
|
346
355
|
backgroundColorCheckedOnDark: globalTokens.hal_grey_l_90,
|
|
347
356
|
hoverBackgroundColorChecked: globalTokens.hal_blue_d_20,
|
|
348
|
-
hoverBackgroundColorCheckedOnDark:
|
|
357
|
+
hoverBackgroundColorCheckedOnDark: globalTokens.hal_white,
|
|
349
358
|
disabledBackgroundColorChecked: globalTokens.hal_grey_l_60,
|
|
350
359
|
disabledBackgroundColorCheckedOnDark: globalTokens.color_grey_800,
|
|
351
360
|
borderColor: globalTokens.hal_blue_s_35,
|
|
@@ -399,7 +408,7 @@ var componentTokens = {
|
|
|
399
408
|
pickerHoverDateBackgroundColor: globalTokens.hal_purple_l_90,
|
|
400
409
|
pickerSelectedDateColor: globalTokens.hal_white,
|
|
401
410
|
pickerSelectedDateBackgroundColor: globalTokens.hal_purple_s_38,
|
|
402
|
-
pickerActualDateFontColor: globalTokens.
|
|
411
|
+
pickerActualDateFontColor: globalTokens.hal_black,
|
|
403
412
|
pickerYearFontColor: globalTokens.hal_black,
|
|
404
413
|
pickerMonthFontColor: globalTokens.hal_black,
|
|
405
414
|
pickerWeekFontColor: globalTokens.hal_black,
|
|
@@ -407,7 +416,8 @@ var componentTokens = {
|
|
|
407
416
|
pickerMonthArrowsBackgroundColor: globalTokens.transparent,
|
|
408
417
|
pickerFocusColor: globalTokens.hal_blue_l_50,
|
|
409
418
|
pickerHeight: "316px",
|
|
410
|
-
|
|
419
|
+
// not referenced in the actual implementation
|
|
420
|
+
pickerWidth: "292px"
|
|
411
421
|
},
|
|
412
422
|
dialog: {
|
|
413
423
|
overlayColor: globalTokens.hal_black,
|
|
@@ -426,7 +436,10 @@ var componentTokens = {
|
|
|
426
436
|
boxShadowOffsetY: "1px",
|
|
427
437
|
boxShadowBlur: "3px",
|
|
428
438
|
boxShadowColor: "rgba(0, 0, 0, 0.2)",
|
|
429
|
-
overlayOpacity: "0.7"
|
|
439
|
+
overlayOpacity: "0.7",
|
|
440
|
+
fontFamily: globalTokens.type_sans,
|
|
441
|
+
fontSize: globalTokens.type_scale_03,
|
|
442
|
+
fontWeight: globalTokens.type_regular
|
|
430
443
|
},
|
|
431
444
|
dropdown: {
|
|
432
445
|
buttonBackgroundColor: globalTokens.hal_white,
|
|
@@ -734,6 +747,13 @@ var componentTokens = {
|
|
|
734
747
|
activeUnderlineColor: globalTokens.black,
|
|
735
748
|
focusColor: globalTokens.hal_blue_l_50
|
|
736
749
|
},
|
|
750
|
+
paragraph: {
|
|
751
|
+
fontColor: globalTokens.hal_black,
|
|
752
|
+
fontColorOnDark: globalTokens.hal_white,
|
|
753
|
+
display: "block",
|
|
754
|
+
fontSize: globalTokens.type_scale_03,
|
|
755
|
+
fontWeight: globalTokens.type_regular
|
|
756
|
+
},
|
|
737
757
|
paginator: {
|
|
738
758
|
backgroundColor: globalTokens.darkWhite,
|
|
739
759
|
fontColor: globalTokens.hal_black,
|
|
@@ -744,13 +764,13 @@ var componentTokens = {
|
|
|
744
764
|
fontTextTransform: "none",
|
|
745
765
|
verticalPadding: "0.75rem",
|
|
746
766
|
horizontalPadding: "2rem",
|
|
747
|
-
marginRight: "
|
|
748
|
-
marginLeft: "
|
|
767
|
+
marginRight: "40px",
|
|
768
|
+
marginLeft: "20px",
|
|
749
769
|
itemsPerPageSelectorMarginLeft: "0px",
|
|
750
|
-
itemsPerPageSelectorMarginRight: "
|
|
770
|
+
itemsPerPageSelectorMarginRight: "0.5rem",
|
|
751
771
|
pageSelectorMarginRight: "30px",
|
|
752
772
|
pageSelectorMarginLeft: "0px",
|
|
753
|
-
totalItemsContainerMarginRight: "
|
|
773
|
+
totalItemsContainerMarginRight: "2.5rem",
|
|
754
774
|
totalItemsContainerMarginLeft: "0px"
|
|
755
775
|
},
|
|
756
776
|
progressBar: {
|
|
@@ -785,7 +805,6 @@ var componentTokens = {
|
|
|
785
805
|
quickNav: {
|
|
786
806
|
fontColor: globalTokens.hal_grey_s_40,
|
|
787
807
|
hoverFontColor: globalTokens.hal_purple_d_70,
|
|
788
|
-
selectedFontColor: globalTokens.hal_purple_s_38,
|
|
789
808
|
dividerBorderColor: globalTokens.hal_grey_l_75,
|
|
790
809
|
focusBorderColor: globalTokens.hal_blue_l_50,
|
|
791
810
|
focusBorderStyle: globalTokens.border_solid,
|
|
@@ -910,24 +929,35 @@ var componentTokens = {
|
|
|
910
929
|
arrowContainerColor: globalTokens.hal_grey_l_90,
|
|
911
930
|
arrowColor: globalTokens.hal_black,
|
|
912
931
|
titleFontFamily: globalTokens.type_sans,
|
|
913
|
-
titleFontSize: globalTokens.
|
|
932
|
+
titleFontSize: globalTokens.type_scale_04,
|
|
914
933
|
titleFontStyle: globalTokens.type_normal,
|
|
915
|
-
titleFontWeight: globalTokens.
|
|
916
|
-
titleFontColor: globalTokens.
|
|
934
|
+
titleFontWeight: globalTokens.type_semibold,
|
|
935
|
+
titleFontColor: globalTokens.color_grey_800,
|
|
917
936
|
titleFontTextTransform: "none",
|
|
918
937
|
titleFontLetterSpacing: globalTokens.type_spacing_normal,
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
938
|
+
groupTitleFontFamily: globalTokens.type_sans,
|
|
939
|
+
groupTitleFontSize: globalTokens.type_scale_02,
|
|
940
|
+
groupTitleFontStyle: globalTokens.type_normal,
|
|
941
|
+
groupTitleFontWeight: globalTokens.type_semibold,
|
|
942
|
+
groupTitleFontColor: globalTokens.black,
|
|
943
|
+
groupTitleHoverBackgroundColor: globalTokens.hal_grey_l_90,
|
|
944
|
+
groupTitleActiveBackgroundColor: globalTokens.hal_grey_l_80,
|
|
945
|
+
groupTitleSelectedFontColor: globalTokens.white,
|
|
946
|
+
groupTitleSelectedBackgroundColor: globalTokens.color_grey_800,
|
|
947
|
+
groupTitleSelectedHoverFontColor: globalTokens.white,
|
|
948
|
+
groupTitleSelectedHoverBackgroundColor: globalTokens.color_grey_600,
|
|
949
|
+
groupTitleFontTextTransform: globalTokens.type_uppercase,
|
|
950
|
+
groupTitleFontLetterSpacing: globalTokens.type_spacing_wide_02,
|
|
926
951
|
linkFontFamily: globalTokens.type_sans,
|
|
927
952
|
linkFontSize: globalTokens.type_scale_02,
|
|
928
953
|
linkFontStyle: globalTokens.type_normal,
|
|
929
954
|
linkFontWeight: globalTokens.type_regular,
|
|
930
955
|
linkFontColor: globalTokens.color_grey_800,
|
|
956
|
+
linkHoverBackgroundColor: globalTokens.hal_grey_l_90,
|
|
957
|
+
linkSelectedFontColor: globalTokens.white,
|
|
958
|
+
linkSelectedBackgroundColor: globalTokens.color_grey_800,
|
|
959
|
+
linkSelectedHoverFontColor: globalTokens.white,
|
|
960
|
+
linkSelectedHoverBackgroundColor: globalTokens.color_grey_600,
|
|
931
961
|
linkFontTextTransform: "none",
|
|
932
962
|
linkFontLetterSpacing: globalTokens.type_spacing_wide_01,
|
|
933
963
|
linkTextDecoration: globalTokens.type_no_line,
|
|
@@ -995,7 +1025,7 @@ var componentTokens = {
|
|
|
995
1025
|
trackLineColorOnDark: globalTokens.hal_blue_l_50,
|
|
996
1026
|
totalLineThickness: "2px",
|
|
997
1027
|
totalLineVerticalPosition: "50%",
|
|
998
|
-
totalLineColor:
|
|
1028
|
+
totalLineColor: "#0000001a",
|
|
999
1029
|
totalLineColorOnDark: globalTokens.hal_grey_l_75,
|
|
1000
1030
|
disabledThumbVerticalPosition: "10px",
|
|
1001
1031
|
disabledThumbBackgroundColor: globalTokens.hal_grey_l_60,
|
|
@@ -1076,10 +1106,10 @@ var componentTokens = {
|
|
|
1076
1106
|
thumbFocusColorOnDark: "#1682FF",
|
|
1077
1107
|
thumbHeight: "24px",
|
|
1078
1108
|
thumbWidth: "24px",
|
|
1079
|
-
thumbShift: "
|
|
1109
|
+
thumbShift: "1.25rem",
|
|
1080
1110
|
trackHeight: "12px",
|
|
1081
|
-
trackWidth: "
|
|
1082
|
-
spaceBetweenLabelSwitch: "
|
|
1111
|
+
trackWidth: "36px",
|
|
1112
|
+
spaceBetweenLabelSwitch: "8px"
|
|
1083
1113
|
},
|
|
1084
1114
|
tag: {
|
|
1085
1115
|
fontFamily: globalTokens.type_sans,
|
|
@@ -1394,6 +1424,9 @@ var defaultTranslatedComponentLabels = {
|
|
|
1394
1424
|
},
|
|
1395
1425
|
logoAlternativeText: "Logo"
|
|
1396
1426
|
},
|
|
1427
|
+
applicationLayout: {
|
|
1428
|
+
visibilityToggleTitle: "Toggle visibility sidenav"
|
|
1429
|
+
},
|
|
1397
1430
|
alert: {
|
|
1398
1431
|
infoTitleText: "information",
|
|
1399
1432
|
successTitleText: "success",
|
|
@@ -1410,13 +1443,18 @@ var defaultTranslatedComponentLabels = {
|
|
|
1410
1443
|
singleButtonLabelDefault: "Select file",
|
|
1411
1444
|
dropAreaButtonLabelDefault: "Select",
|
|
1412
1445
|
multipleDropAreaLabelDefault: "or drop files",
|
|
1413
|
-
singleDropAreaLabelDefault: "or drop a file"
|
|
1446
|
+
singleDropAreaLabelDefault: "or drop a file",
|
|
1447
|
+
deleteFileActionTitle: "Remove file"
|
|
1414
1448
|
},
|
|
1415
1449
|
footer: {
|
|
1416
1450
|
copyrightText: function copyrightText(year) {
|
|
1417
1451
|
return "\xA9 DXC Technology ".concat(year, ". All rights reserved.");
|
|
1418
1452
|
}
|
|
1419
1453
|
},
|
|
1454
|
+
header: {
|
|
1455
|
+
closeIcon: "Close menu",
|
|
1456
|
+
hamburguerTitle: "Menu"
|
|
1457
|
+
},
|
|
1420
1458
|
numberInput: {
|
|
1421
1459
|
valueGreaterThanOrEqualToErrorMessage: function valueGreaterThanOrEqualToErrorMessage(value) {
|
|
1422
1460
|
return "Value must be greater than or equal to ".concat(value, ".");
|
|
@@ -1428,7 +1466,7 @@ var defaultTranslatedComponentLabels = {
|
|
|
1428
1466
|
incrementValueTitle: "Increment value"
|
|
1429
1467
|
},
|
|
1430
1468
|
paginator: {
|
|
1431
|
-
itemsPerPageText: "Items per page ",
|
|
1469
|
+
itemsPerPageText: "Items per page: ",
|
|
1432
1470
|
minToMaxOfText: function minToMaxOfText(minNumberOfItems, maxNumberOfItems, totalItems) {
|
|
1433
1471
|
return "".concat(minNumberOfItems, " to ").concat(maxNumberOfItems, " of ").concat(totalItems);
|
|
1434
1472
|
},
|
|
@@ -1452,6 +1490,10 @@ var defaultTranslatedComponentLabels = {
|
|
|
1452
1490
|
actionClearSelectionTitle: "Clear selection",
|
|
1453
1491
|
actionClearSearchTitle: "Clear search"
|
|
1454
1492
|
},
|
|
1493
|
+
tabs: {
|
|
1494
|
+
scrollLeft: "Scroll left",
|
|
1495
|
+
scrollRight: "Scroll right"
|
|
1496
|
+
},
|
|
1455
1497
|
textInput: {
|
|
1456
1498
|
clearFieldActionTitle: "Clear field",
|
|
1457
1499
|
searchingMessage: "Searching...",
|
|
@@ -1459,12 +1501,12 @@ var defaultTranslatedComponentLabels = {
|
|
|
1459
1501
|
},
|
|
1460
1502
|
calendar: {
|
|
1461
1503
|
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
1462
|
-
daysShort: ["
|
|
1504
|
+
daysShort: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1463
1505
|
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
|
1464
|
-
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1506
|
+
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
1507
|
+
previousMonthTitle: "Previous month",
|
|
1508
|
+
nextMonthTitle: "Next month",
|
|
1509
|
+
openCalendar: "Open calendar"
|
|
1468
1510
|
}
|
|
1469
1511
|
};
|
|
1470
1512
|
exports.defaultTranslatedComponentLabels = defaultTranslatedComponentLabels;
|