@dxc-technology/halstack-react 0.0.0-4e1277a → 0.0.0-4e3dbad
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.js +1 -1
- package/HalstackContext.d.ts +42 -5
- package/HalstackContext.js +28 -18
- package/accordion/Accordion.accessibility.test.d.ts +1 -0
- package/accordion/Accordion.accessibility.test.js +71 -0
- package/accordion/Accordion.js +16 -30
- package/accordion/Accordion.stories.tsx +7 -49
- package/accordion/Accordion.test.d.ts +1 -0
- package/accordion/Accordion.test.js +3 -3
- package/accordion/types.d.ts +1 -1
- package/accordion-group/AccordionGroup.accessibility.test.d.ts +1 -0
- package/accordion-group/AccordionGroup.accessibility.test.js +82 -0
- package/accordion-group/AccordionGroup.js +1 -1
- package/accordion-group/AccordionGroup.stories.tsx +23 -23
- package/accordion-group/AccordionGroup.test.d.ts +1 -0
- package/accordion-group/AccordionGroup.test.js +5 -9
- package/accordion-group/AccordionGroupAccordion.js +1 -1
- package/accordion-group/types.d.ts +1 -1
- package/action-icon/ActionIcon.accessibility.test.d.ts +1 -0
- package/action-icon/ActionIcon.accessibility.test.js +63 -0
- package/action-icon/ActionIcon.js +4 -3
- package/action-icon/ActionIcon.stories.tsx +3 -3
- package/action-icon/ActionIcon.test.d.ts +1 -0
- package/action-icon/ActionIcon.test.js +1 -1
- package/action-icon/types.d.ts +1 -1
- package/alert/Alert.accessibility.test.d.ts +1 -0
- package/alert/Alert.accessibility.test.js +95 -0
- package/alert/Alert.js +21 -72
- package/alert/Alert.test.d.ts +1 -0
- package/alert/Alert.test.js +1 -1
- package/badge/Badge.accessibility.test.d.ts +1 -0
- package/badge/Badge.accessibility.test.js +129 -0
- package/badge/Badge.js +6 -4
- package/badge/Badge.stories.tsx +11 -11
- package/badge/Badge.test.d.ts +1 -0
- package/badge/Badge.test.js +2 -2
- package/badge/types.d.ts +1 -1
- package/bar-chart/BarChart.d.ts +4 -0
- package/bar-chart/BarChart.js +152 -0
- package/bar-chart/BarChart.stories.tsx +281 -0
- package/bar-chart/BarChart.test.d.ts +1 -0
- package/bar-chart/BarChart.test.js +194 -0
- package/bar-chart/theme.d.ts +3 -0
- package/bar-chart/theme.js +31 -0
- package/bar-chart/types.d.ts +118 -0
- package/bar-chart/types.js +5 -0
- package/bleed/Bleed.stories.tsx +0 -1
- package/box/Box.accessibility.test.d.ts +1 -0
- package/box/Box.accessibility.test.js +33 -0
- package/box/Box.js +1 -1
- package/box/Box.test.d.ts +1 -0
- package/box/Box.test.js +1 -1
- package/breadcrumbs/Breadcrumbs.accessibility.test.d.ts +1 -0
- package/breadcrumbs/Breadcrumbs.accessibility.test.js +96 -0
- package/breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/breadcrumbs/Breadcrumbs.js +79 -0
- package/breadcrumbs/Breadcrumbs.stories.tsx +194 -0
- package/breadcrumbs/Breadcrumbs.test.d.ts +1 -0
- package/breadcrumbs/Breadcrumbs.test.js +168 -0
- package/breadcrumbs/Item.d.ts +4 -0
- package/breadcrumbs/Item.js +52 -0
- package/breadcrumbs/dropdownTheme.d.ts +53 -0
- package/breadcrumbs/dropdownTheme.js +62 -0
- package/breadcrumbs/types.d.ts +40 -0
- package/breadcrumbs/types.js +5 -0
- package/bulleted-list/BulletedList.accessibility.test.d.ts +1 -0
- package/bulleted-list/BulletedList.accessibility.test.js +119 -0
- package/bulleted-list/BulletedList.js +7 -4
- package/bulleted-list/BulletedList.stories.tsx +1 -1
- package/button/Button.accessibility.test.d.ts +1 -0
- package/button/Button.accessibility.test.js +127 -0
- package/button/Button.js +2 -2
- package/button/Button.stories.tsx +3 -4
- package/button/Button.test.d.ts +1 -0
- package/button/Button.test.js +1 -1
- package/card/Card.accessibility.test.d.ts +1 -0
- package/card/Card.accessibility.test.js +36 -0
- package/card/Card.js +3 -2
- package/card/Card.stories.tsx +1 -1
- package/card/Card.test.d.ts +1 -0
- package/card/Card.test.js +1 -1
- package/checkbox/Checkbox.accessibility.test.d.ts +1 -0
- package/checkbox/Checkbox.accessibility.test.js +87 -0
- package/checkbox/Checkbox.js +10 -13
- package/checkbox/Checkbox.test.d.ts +1 -0
- package/checkbox/Checkbox.test.js +1 -1
- package/chip/Chip.accessibility.test.d.ts +1 -0
- package/chip/Chip.accessibility.test.js +67 -0
- package/chip/Chip.js +11 -6
- package/chip/Chip.stories.tsx +6 -25
- package/chip/Chip.test.d.ts +1 -0
- package/chip/Chip.test.js +5 -5
- package/common/coreTokens.d.ts +0 -1
- package/common/coreTokens.js +3 -4
- package/common/variables.d.ts +48 -5
- package/common/variables.js +110 -73
- package/container/Container.stories.tsx +3 -3
- package/container/types.d.ts +113 -11
- package/contextual-menu/ContextualMenu.accessibility.test.d.ts +1 -0
- package/contextual-menu/ContextualMenu.accessibility.test.js +98 -0
- package/contextual-menu/ContextualMenu.d.ts +3 -5
- package/contextual-menu/ContextualMenu.js +118 -53
- package/contextual-menu/ContextualMenu.stories.tsx +124 -75
- package/contextual-menu/ContextualMenu.test.d.ts +1 -0
- package/contextual-menu/ContextualMenu.test.js +200 -24
- package/contextual-menu/GroupItem.d.ts +4 -0
- package/contextual-menu/GroupItem.js +67 -0
- package/contextual-menu/ItemAction.d.ts +4 -0
- package/contextual-menu/ItemAction.js +88 -0
- package/contextual-menu/MenuItem.d.ts +4 -0
- package/contextual-menu/MenuItem.js +29 -0
- package/contextual-menu/SingleItem.d.ts +4 -0
- package/contextual-menu/SingleItem.js +38 -0
- package/contextual-menu/types.d.ts +54 -11
- package/date-input/Calendar.js +47 -31
- package/date-input/DateInput.accessibility.test.d.ts +1 -0
- package/date-input/DateInput.accessibility.test.js +229 -0
- package/date-input/DateInput.js +28 -23
- package/date-input/DateInput.stories.tsx +18 -12
- package/date-input/DateInput.test.d.ts +1 -0
- package/date-input/DateInput.test.js +39 -39
- package/date-input/DatePicker.js +13 -7
- package/date-input/YearPicker.js +10 -5
- package/dialog/Dialog.accessibility.test.d.ts +1 -0
- package/dialog/Dialog.accessibility.test.js +69 -0
- package/dialog/Dialog.js +9 -20
- package/dialog/Dialog.stories.tsx +8 -4
- package/dialog/Dialog.test.d.ts +1 -0
- package/dialog/Dialog.test.js +112 -49
- package/divider/Divider.accessibility.test.d.ts +1 -0
- package/divider/Divider.accessibility.test.js +33 -0
- package/divider/Divider.stories.tsx +2 -1
- package/divider/Divider.test.d.ts +1 -0
- package/dropdown/Dropdown.accessibility.test.d.ts +1 -0
- package/dropdown/Dropdown.accessibility.test.js +183 -0
- package/dropdown/Dropdown.js +31 -66
- package/dropdown/Dropdown.stories.tsx +16 -27
- package/dropdown/Dropdown.test.d.ts +1 -0
- package/dropdown/Dropdown.test.js +101 -72
- package/dropdown/DropdownMenu.js +4 -4
- package/dropdown/DropdownMenuItem.js +8 -4
- package/dropdown/types.d.ts +2 -4
- package/file-input/FileInput.accessibility.test.d.ts +1 -0
- package/file-input/FileInput.accessibility.test.js +167 -0
- package/file-input/FileInput.js +6 -47
- package/file-input/FileInput.test.d.ts +1 -0
- package/file-input/FileInput.test.js +51 -106
- package/file-input/FileItem.js +18 -28
- package/file-input/types.d.ts +0 -4
- package/footer/Footer.accessibility.test.d.ts +1 -0
- package/footer/Footer.accessibility.test.js +125 -0
- package/footer/Footer.js +8 -6
- package/footer/Footer.stories.tsx +40 -3
- package/footer/Footer.test.d.ts +1 -0
- package/footer/Footer.test.js +1 -1
- package/footer/Icons.js +2 -30
- package/footer/types.d.ts +1 -1
- package/grid/Grid.stories.tsx +3 -1
- package/header/Header.accessibility.test.d.ts +1 -0
- package/header/Header.accessibility.test.js +94 -0
- package/header/Header.js +12 -22
- package/header/Header.stories.tsx +17 -1
- package/header/Header.test.d.ts +1 -0
- package/header/Header.test.js +1 -1
- package/header/Icons.js +1 -6
- package/heading/Heading.accessibility.test.d.ts +1 -0
- package/heading/Heading.accessibility.test.js +33 -0
- package/heading/Heading.js +1 -1
- package/heading/Heading.test.d.ts +1 -0
- package/heading/Heading.test.js +1 -14
- package/icon/Icon.accessibility.test.d.ts +1 -0
- package/icon/Icon.accessibility.test.js +30 -0
- package/icon/Icon.js +1 -1
- package/icon/Icon.stories.tsx +6 -4
- package/image/Image.accessibility.test.d.ts +1 -0
- package/image/Image.accessibility.test.js +56 -0
- package/image/Image.js +1 -1
- package/layout/ApplicationLayout.js +9 -6
- package/layout/Icons.d.ts +0 -1
- package/layout/Icons.js +1 -11
- package/link/Link.accessibility.test.d.ts +1 -0
- package/link/Link.accessibility.test.js +108 -0
- package/link/Link.js +8 -6
- package/link/Link.stories.tsx +4 -4
- package/link/Link.test.d.ts +1 -0
- package/link/Link.test.js +1 -1
- package/link/types.d.ts +1 -1
- package/main.d.ts +3 -1
- package/main.js +15 -1
- package/nav-tabs/NavTabs.accessibility.test.d.ts +1 -0
- package/nav-tabs/NavTabs.accessibility.test.js +44 -0
- package/nav-tabs/NavTabs.js +19 -4
- package/nav-tabs/NavTabs.stories.tsx +41 -23
- package/nav-tabs/NavTabs.test.d.ts +1 -0
- package/nav-tabs/NavTabs.test.js +10 -9
- package/nav-tabs/Tab.js +17 -18
- package/nav-tabs/types.d.ts +1 -1
- package/number-input/NumberInput.accessibility.test.d.ts +1 -0
- package/number-input/NumberInput.accessibility.test.js +227 -0
- package/number-input/NumberInput.js +6 -3
- package/number-input/NumberInput.stories.tsx +11 -16
- package/number-input/NumberInput.test.d.ts +1 -0
- package/number-input/NumberInput.test.js +6 -7
- package/package.json +34 -28
- package/paginator/Paginator.accessibility.test.d.ts +1 -0
- package/paginator/Paginator.accessibility.test.js +78 -0
- package/paginator/Paginator.js +13 -10
- package/paginator/Paginator.test.d.ts +1 -0
- package/paginator/Paginator.test.js +2 -3
- package/paragraph/Paragraph.accessibility.test.d.ts +1 -0
- package/paragraph/Paragraph.accessibility.test.js +28 -0
- package/password-input/PasswordInput.accessibility.test.d.ts +1 -0
- package/password-input/PasswordInput.accessibility.test.js +152 -0
- package/password-input/PasswordInput.js +11 -8
- package/password-input/PasswordInput.stories.tsx +10 -1
- package/password-input/PasswordInput.test.d.ts +1 -0
- package/password-input/PasswordInput.test.js +6 -7
- package/progress-bar/ProgressBar.accessibility.test.d.ts +1 -0
- package/progress-bar/ProgressBar.accessibility.test.js +35 -0
- package/progress-bar/ProgressBar.js +6 -4
- package/progress-bar/ProgressBar.test.d.ts +1 -0
- package/progress-bar/ProgressBar.test.js +1 -1
- package/quick-nav/QuickNav.accessibility.test.d.ts +1 -0
- package/quick-nav/QuickNav.accessibility.test.js +57 -0
- package/quick-nav/QuickNav.js +1 -1
- package/radio-group/Radio.js +6 -9
- package/radio-group/RadioGroup.accessibility.test.d.ts +1 -0
- package/radio-group/RadioGroup.accessibility.test.js +97 -0
- package/radio-group/RadioGroup.js +14 -16
- package/radio-group/RadioGroup.test.d.ts +1 -0
- package/radio-group/RadioGroup.test.js +3 -5
- package/resultset-table/ResultsetTable.accessibility.test.d.ts +1 -0
- package/resultset-table/ResultsetTable.accessibility.test.js +284 -0
- package/resultset-table/ResultsetTable.d.ts +1 -1
- package/resultset-table/ResultsetTable.js +47 -15
- package/resultset-table/ResultsetTable.stories.tsx +19 -3
- package/resultset-table/ResultsetTable.test.d.ts +1 -0
- package/resultset-table/ResultsetTable.test.js +111 -32
- package/resultset-table/types.d.ts +41 -13
- package/select/Listbox.d.ts +3 -3
- package/select/Listbox.js +33 -29
- package/select/Option.d.ts +3 -3
- package/select/Option.js +21 -15
- package/select/Select.accessibility.test.d.ts +1 -0
- package/select/Select.accessibility.test.js +227 -0
- package/select/Select.js +85 -192
- package/select/Select.stories.tsx +74 -117
- package/select/Select.test.d.ts +1 -0
- package/select/Select.test.js +348 -550
- package/select/selectUtils.d.ts +41 -0
- package/select/selectUtils.js +129 -0
- package/select/types.d.ts +1 -1
- package/sidenav/Sidenav.accessibility.test.d.ts +1 -0
- package/sidenav/Sidenav.accessibility.test.js +59 -0
- package/sidenav/Sidenav.js +16 -12
- package/sidenav/Sidenav.stories.tsx +5 -10
- package/sidenav/Sidenav.test.d.ts +1 -0
- package/sidenav/Sidenav.test.js +1 -1
- package/sidenav/types.d.ts +2 -2
- package/slider/Slider.accessibility.test.d.ts +1 -0
- package/slider/Slider.accessibility.test.js +103 -0
- package/slider/Slider.js +11 -13
- package/slider/Slider.stories.tsx +180 -0
- package/slider/Slider.test.d.ts +1 -0
- package/slider/Slider.test.js +13 -11
- package/spinner/Spinner.accessibility.test.d.ts +1 -0
- package/spinner/Spinner.accessibility.test.js +96 -0
- package/spinner/Spinner.d.ts +1 -1
- package/spinner/Spinner.js +32 -47
- package/spinner/Spinner.test.d.ts +1 -0
- package/spinner/Spinner.test.js +1 -1
- package/status-light/StatusLight.accessibility.test.d.ts +1 -0
- package/status-light/StatusLight.accessibility.test.js +157 -0
- package/status-light/StatusLight.test.d.ts +1 -0
- package/status-light/StatusLight.test.js +1 -1
- package/switch/Switch.accessibility.test.d.ts +1 -0
- package/switch/Switch.accessibility.test.js +98 -0
- package/switch/Switch.js +6 -9
- package/switch/Switch.stories.tsx +12 -0
- package/switch/Switch.test.d.ts +1 -0
- package/switch/Switch.test.js +1 -1
- package/table/Table.accessibility.test.d.ts +1 -0
- package/table/Table.accessibility.test.js +92 -0
- package/table/Table.js +2 -11
- package/table/Table.stories.tsx +15 -10
- package/table/Table.test.d.ts +1 -0
- package/table/Table.test.js +2 -4
- package/table/types.d.ts +1 -15
- package/tabs/Tab.js +6 -5
- package/tabs/Tabs.accessibility.test.d.ts +1 -0
- package/tabs/Tabs.accessibility.test.js +56 -0
- package/tabs/Tabs.js +9 -20
- package/tabs/Tabs.stories.tsx +7 -3
- package/tabs/Tabs.test.d.ts +1 -0
- package/tabs/Tabs.test.js +20 -38
- package/tabs/types.d.ts +2 -2
- package/tag/Tag.accessibility.test.d.ts +1 -0
- package/tag/Tag.accessibility.test.js +69 -0
- package/tag/Tag.js +7 -7
- package/tag/Tag.stories.tsx +5 -8
- package/tag/Tag.test.d.ts +1 -0
- package/tag/Tag.test.js +5 -13
- package/tag/types.d.ts +2 -2
- package/text-input/Suggestion.js +1 -1
- package/text-input/Suggestions.js +17 -7
- package/text-input/TextInput.accessibility.test.d.ts +1 -0
- package/text-input/TextInput.accessibility.test.js +320 -0
- package/text-input/TextInput.js +56 -73
- package/text-input/TextInput.stories.tsx +20 -8
- package/text-input/TextInput.test.d.ts +1 -0
- package/text-input/TextInput.test.js +2 -3
- package/textarea/Textarea.accessibility.test.d.ts +1 -0
- package/textarea/Textarea.accessibility.test.js +155 -0
- package/textarea/Textarea.js +14 -13
- package/textarea/Textarea.test.d.ts +1 -0
- package/textarea/Textarea.test.js +1 -1
- package/toggle-group/ToggleGroup.accessibility.test.d.ts +1 -0
- package/toggle-group/ToggleGroup.accessibility.test.js +107 -0
- package/toggle-group/ToggleGroup.js +10 -12
- package/toggle-group/ToggleGroup.stories.tsx +4 -4
- package/toggle-group/ToggleGroup.test.d.ts +1 -0
- package/toggle-group/ToggleGroup.test.js +1 -1
- package/toggle-group/types.d.ts +2 -2
- package/tooltip/Tooltip.accessibility.test.d.ts +1 -0
- package/tooltip/Tooltip.accessibility.test.js +144 -0
- package/tooltip/Tooltip.d.ts +4 -0
- package/tooltip/Tooltip.js +50 -0
- package/tooltip/Tooltip.stories.tsx +111 -0
- package/tooltip/Tooltip.test.d.ts +1 -0
- package/tooltip/Tooltip.test.js +112 -0
- package/tooltip/types.d.ts +16 -0
- package/tooltip/types.js +5 -0
- package/typography/Typography.accessibility.test.d.ts +1 -0
- package/typography/Typography.accessibility.test.js +339 -0
- package/typography/Typography.stories.tsx +1 -3
- package/typography/Typography.test.js +23 -0
- package/useTheme.d.ts +31 -5
- package/useTranslatedLabels.d.ts +11 -0
- package/utils/BaseTypography.js +45 -41
- package/utils/FocusLock.js +3 -2
- package/utils/useWidth.d.ts +2 -0
- package/utils/useWidth.js +30 -0
- package/wizard/Wizard.accessibility.test.d.ts +1 -0
- package/wizard/Wizard.accessibility.test.js +55 -0
- package/wizard/Wizard.js +14 -25
- package/wizard/Wizard.stories.tsx +20 -1
- package/wizard/Wizard.test.d.ts +1 -0
- package/wizard/Wizard.test.js +1 -1
- package/wizard/types.d.ts +1 -1
- package/contextual-menu/MenuItemAction.d.ts +0 -4
- package/contextual-menu/MenuItemAction.js +0 -46
- package/date-input/Icons.d.ts +0 -6
- package/date-input/Icons.js +0 -58
- package/paginator/Icons.d.ts +0 -5
- package/paginator/Icons.js +0 -40
- package/password-input/Icons.d.ts +0 -6
- package/password-input/Icons.js +0 -35
- package/select/Icons.d.ts +0 -10
- package/select/Icons.js +0 -89
- package/sidenav/Icons.d.ts +0 -7
- package/sidenav/Icons.js +0 -47
- package/text-input/Icons.d.ts +0 -8
- package/text-input/Icons.js +0 -56
package/chip/Chip.stories.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { userEvent, within } from "@storybook/
|
|
2
|
+
import { userEvent, within } from "@storybook/test";
|
|
3
3
|
import DxcChip from "./Chip";
|
|
4
4
|
import Title from "../../.storybook/components/Title";
|
|
5
5
|
import ExampleContainer from "../../.storybook/components/ExampleContainer";
|
|
@@ -13,7 +13,6 @@ export default {
|
|
|
13
13
|
const iconSVG = (
|
|
14
14
|
<svg
|
|
15
15
|
version="1.1"
|
|
16
|
-
id="Capa_1"
|
|
17
16
|
x="0px"
|
|
18
17
|
y="0px"
|
|
19
18
|
width="438.536px"
|
|
@@ -64,20 +63,11 @@ export const Chromatic = () => (
|
|
|
64
63
|
</ExampleContainer>
|
|
65
64
|
<ExampleContainer>
|
|
66
65
|
<Title title="Chip with prefix (SVG) and suffix (URL)" theme="light" level={4} />
|
|
67
|
-
<DxcChip
|
|
68
|
-
label="Chip with prefix and suffix"
|
|
69
|
-
prefixIcon={iconSVG}
|
|
70
|
-
suffixIcon="https://upload.wikimedia.org/wikipedia/commons/e/e0/Check_green_icon.svg"
|
|
71
|
-
/>
|
|
66
|
+
<DxcChip label="Chip with prefix and suffix" prefixIcon={iconSVG} suffixIcon="filled_check_circle" />
|
|
72
67
|
</ExampleContainer>
|
|
73
68
|
<ExampleContainer>
|
|
74
69
|
<Title title="Disabled chip" theme="light" level={4} />
|
|
75
|
-
<DxcChip
|
|
76
|
-
label="Disabled"
|
|
77
|
-
disabled
|
|
78
|
-
prefixIcon={iconSVG}
|
|
79
|
-
suffixIcon="https://upload.wikimedia.org/wikipedia/commons/e/e0/Check_green_icon.svg"
|
|
80
|
-
/>
|
|
70
|
+
<DxcChip label="Disabled" disabled prefixIcon={iconSVG} suffixIcon="filled_check_circle" />
|
|
81
71
|
</ExampleContainer>
|
|
82
72
|
<ExampleContainer>
|
|
83
73
|
<Title title="Chip with ellipsis" theme="light" level={4} />
|
|
@@ -146,22 +136,13 @@ export const Chromatic = () => (
|
|
|
146
136
|
<ExampleContainer>
|
|
147
137
|
<Title title="Chip with prefix and suffix" theme="light" level={4} />
|
|
148
138
|
<HalstackProvider theme={opinionatedTheme}>
|
|
149
|
-
<DxcChip
|
|
150
|
-
label="Chip"
|
|
151
|
-
prefixIcon={iconSVG}
|
|
152
|
-
suffixIcon="https://upload.wikimedia.org/wikipedia/commons/e/e0/Check_green_icon.svg"
|
|
153
|
-
/>
|
|
139
|
+
<DxcChip label="Chip" prefixIcon={iconSVG} suffixIcon="filled_check_circle" />
|
|
154
140
|
</HalstackProvider>
|
|
155
141
|
</ExampleContainer>
|
|
156
142
|
<ExampleContainer>
|
|
157
143
|
<Title title="Chip with prefix and suffix" theme="light" level={4} />
|
|
158
144
|
<HalstackProvider theme={opinionatedTheme}>
|
|
159
|
-
<DxcChip
|
|
160
|
-
label="Chip"
|
|
161
|
-
disabled
|
|
162
|
-
prefixIcon={iconSVG}
|
|
163
|
-
suffixIcon="https://upload.wikimedia.org/wikipedia/commons/e/e0/Check_green_icon.svg"
|
|
164
|
-
/>
|
|
145
|
+
<DxcChip label="Chip" disabled prefixIcon={iconSVG} suffixIcon="filled_check_circle" />
|
|
165
146
|
</HalstackProvider>
|
|
166
147
|
</ExampleContainer>
|
|
167
148
|
<ExampleContainer pseudoState="pseudo-hover">
|
|
@@ -199,7 +180,7 @@ const ChipPrefixFocused = () => (
|
|
|
199
180
|
const ChipSuffixFocused = () => (
|
|
200
181
|
<ExampleContainer>
|
|
201
182
|
<Title title="Chip with suffix" theme="light" level={4} />
|
|
202
|
-
<DxcChip label="Chip with suffix" suffixIcon="
|
|
183
|
+
<DxcChip label="Chip with suffix" suffixIcon="filled_delete" onClickSuffix={() => {}} />
|
|
203
184
|
</ExampleContainer>
|
|
204
185
|
);
|
|
205
186
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/chip/Chip.test.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
var _react = _interopRequireDefault(require("react"));
|
|
5
5
|
var _react2 = require("@testing-library/react");
|
|
6
|
-
var _Chip = _interopRequireDefault(require("./Chip
|
|
6
|
+
var _Chip = _interopRequireDefault(require("./Chip"));
|
|
7
7
|
describe("Chip component tests", function () {
|
|
8
8
|
test("Chip renders with correct text", function () {
|
|
9
9
|
var _render = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Chip["default"], {
|
|
@@ -16,26 +16,26 @@ describe("Chip component tests", function () {
|
|
|
16
16
|
var onClick = jest.fn();
|
|
17
17
|
var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Chip["default"], {
|
|
18
18
|
label: "Chip",
|
|
19
|
-
prefixIcon: "
|
|
19
|
+
prefixIcon: "nutrition",
|
|
20
20
|
onClickPrefix: onClick
|
|
21
21
|
})),
|
|
22
22
|
getByText = _render2.getByText,
|
|
23
23
|
getByRole = _render2.getByRole;
|
|
24
24
|
expect(getByText("Chip")).toBeTruthy();
|
|
25
|
-
_react2.fireEvent.click(getByRole("
|
|
25
|
+
_react2.fireEvent.click(getByRole("button"));
|
|
26
26
|
expect(onClick).toHaveBeenCalled();
|
|
27
27
|
});
|
|
28
28
|
test("Calls correct function when clicking on suffix icon", function () {
|
|
29
29
|
var onClick = jest.fn();
|
|
30
30
|
var _render3 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Chip["default"], {
|
|
31
31
|
label: "Chip",
|
|
32
|
-
suffixIcon: "
|
|
32
|
+
suffixIcon: "nutrition",
|
|
33
33
|
onClickSuffix: onClick
|
|
34
34
|
})),
|
|
35
35
|
getByText = _render3.getByText,
|
|
36
36
|
getByRole = _render3.getByRole;
|
|
37
37
|
expect(getByText("Chip")).toBeTruthy();
|
|
38
|
-
_react2.fireEvent.click(getByRole("
|
|
38
|
+
_react2.fireEvent.click(getByRole("button"));
|
|
39
39
|
expect(onClick).toHaveBeenCalled();
|
|
40
40
|
});
|
|
41
41
|
});
|
package/common/coreTokens.d.ts
CHANGED
package/common/coreTokens.js
CHANGED
|
@@ -112,10 +112,10 @@ var getCoreColorToken = exports.getCoreColorToken = function getCoreColorToken(k
|
|
|
112
112
|
return CoreColorTokens[key];
|
|
113
113
|
};
|
|
114
114
|
/**
|
|
115
|
-
* Halstack Spacing
|
|
115
|
+
* Halstack Spacing Values
|
|
116
116
|
* @link https://developer.dxc.com/halstack/next/principles/spacing/
|
|
117
117
|
*/
|
|
118
|
-
var
|
|
118
|
+
var CoreSpacingTokens = {
|
|
119
119
|
spacing_0: "0rem",
|
|
120
120
|
spacing_2: "0.125rem",
|
|
121
121
|
spacing_4: "0.25rem",
|
|
@@ -132,11 +132,10 @@ var SpacingTokens = {
|
|
|
132
132
|
spacing_96: "6rem",
|
|
133
133
|
spacing_112: "7rem"
|
|
134
134
|
};
|
|
135
|
-
var CoreTokens = _objectSpread(_objectSpread(_objectSpread({}, CoreColorTokens),
|
|
135
|
+
var CoreTokens = _objectSpread(_objectSpread(_objectSpread({}, CoreColorTokens), CoreSpacingTokens), {}, {
|
|
136
136
|
inherit: "inherit",
|
|
137
137
|
// Typography
|
|
138
138
|
type_sans: "Open Sans, sans-serif",
|
|
139
|
-
type_scale_root: "16px",
|
|
140
139
|
type_scale_08: "3.75rem",
|
|
141
140
|
type_scale_07: "2.5rem",
|
|
142
141
|
type_scale_06: "2rem",
|
package/common/variables.d.ts
CHANGED
|
@@ -217,6 +217,29 @@ export declare const componentTokens: {
|
|
|
217
217
|
focusBorderThickness: string;
|
|
218
218
|
focusBorderRadius: string;
|
|
219
219
|
};
|
|
220
|
+
contextualMenu: {
|
|
221
|
+
fontFamily: string;
|
|
222
|
+
backgroundColor: string;
|
|
223
|
+
borderColor: string;
|
|
224
|
+
menuItemFontColor: string;
|
|
225
|
+
menuItemFontSize: string;
|
|
226
|
+
menuItemFontStyle: string;
|
|
227
|
+
menuItemFontWeight: string;
|
|
228
|
+
menuItemLineHeight: string;
|
|
229
|
+
hoverMenuItemBackgroundColor: string;
|
|
230
|
+
activeMenuItemBackgroundColor: string;
|
|
231
|
+
selectedMenuItemBackgroundColor: string;
|
|
232
|
+
hoverSelectedMenuItemBackgroundColor: string;
|
|
233
|
+
activeSelectedMenuItemBackgroundColor: string;
|
|
234
|
+
selectedMenuItemFontWeight: string;
|
|
235
|
+
sectionTitleFontColor: string;
|
|
236
|
+
sectionTitleFontSize: string;
|
|
237
|
+
sectionTitleFontStyle: string;
|
|
238
|
+
sectionTitleFontWeight: string;
|
|
239
|
+
sectionTitleLineHeight: string;
|
|
240
|
+
iconColor: string;
|
|
241
|
+
iconSize: string;
|
|
242
|
+
};
|
|
220
243
|
dateInput: {
|
|
221
244
|
pickerBackgroundColor: string;
|
|
222
245
|
pickerFontColor: string;
|
|
@@ -251,8 +274,7 @@ export declare const componentTokens: {
|
|
|
251
274
|
dialog: {
|
|
252
275
|
overlayColor: string;
|
|
253
276
|
backgroundColor: string;
|
|
254
|
-
|
|
255
|
-
closeIconHeight: string;
|
|
277
|
+
closeIconSize: string;
|
|
256
278
|
closeIconTopPosition: string;
|
|
257
279
|
closeIconRightPosition: string;
|
|
258
280
|
closeIconBackgroundColor: string;
|
|
@@ -290,7 +312,6 @@ export declare const componentTokens: {
|
|
|
290
312
|
disabledColor: string;
|
|
291
313
|
disabledButtonBackgroundColor: string;
|
|
292
314
|
disabledButtonBorderColor: string;
|
|
293
|
-
disabledBorderColor: string;
|
|
294
315
|
optionBackgroundColor: string;
|
|
295
316
|
hoverOptionBackgroundColor: string;
|
|
296
317
|
activeOptionBackgroundColor: string;
|
|
@@ -330,7 +351,6 @@ export declare const componentTokens: {
|
|
|
330
351
|
focusDropBorderColor: string;
|
|
331
352
|
disabledDropBorderColor: string;
|
|
332
353
|
dragoverDropBackgroundColor: string;
|
|
333
|
-
activeFileItemIconBackgrounColor: string;
|
|
334
354
|
errorFileItemBorderColor: string;
|
|
335
355
|
errorFileItemBackgroundColor: string;
|
|
336
356
|
errorFilePreviewBackgroundColor: string;
|
|
@@ -531,8 +551,8 @@ export declare const componentTokens: {
|
|
|
531
551
|
totalItemsContainerMarginLeft: string;
|
|
532
552
|
};
|
|
533
553
|
paragraph: {
|
|
534
|
-
fontColor: string;
|
|
535
554
|
display: string;
|
|
555
|
+
fontColor: string;
|
|
536
556
|
fontSize: string;
|
|
537
557
|
fontWeight: string;
|
|
538
558
|
};
|
|
@@ -1000,7 +1020,13 @@ export declare const componentTokens: {
|
|
|
1000
1020
|
helperTextLineHeight: string;
|
|
1001
1021
|
disabledHelperTextFontColor: string;
|
|
1002
1022
|
prefixColor: string;
|
|
1023
|
+
prefixDividerBorderWidth: string;
|
|
1024
|
+
prefixDividerBorderStyle: string;
|
|
1025
|
+
prefixDividerPaddingRight: string;
|
|
1003
1026
|
suffixColor: string;
|
|
1027
|
+
suffixDividerBorderStyle: string;
|
|
1028
|
+
suffixDividerBorderWidth: string;
|
|
1029
|
+
suffixDividerPaddingLeft: string;
|
|
1004
1030
|
disabledPrefixColor: string;
|
|
1005
1031
|
disabledSuffixColor: string;
|
|
1006
1032
|
placeholderFontColor: string;
|
|
@@ -1175,6 +1201,12 @@ export type OpinionatedTheme = {
|
|
|
1175
1201
|
fontColor: string;
|
|
1176
1202
|
iconColor: string;
|
|
1177
1203
|
};
|
|
1204
|
+
contextualMenu: {
|
|
1205
|
+
accentColor: string;
|
|
1206
|
+
baseColor: string;
|
|
1207
|
+
fontColor: string;
|
|
1208
|
+
iconColor: string;
|
|
1209
|
+
};
|
|
1178
1210
|
dateInput: {
|
|
1179
1211
|
baseColor: string;
|
|
1180
1212
|
selectedFontColor: string;
|
|
@@ -1326,6 +1358,17 @@ export declare const defaultTranslatedComponentLabels: {
|
|
|
1326
1358
|
warningTitleText: string;
|
|
1327
1359
|
errorTitleText: string;
|
|
1328
1360
|
};
|
|
1361
|
+
barChart: {
|
|
1362
|
+
ariaLabel: string;
|
|
1363
|
+
filterLabel: string;
|
|
1364
|
+
filterPlaceholder: string;
|
|
1365
|
+
loadingDataMessage: string;
|
|
1366
|
+
noDataMessageBody: string;
|
|
1367
|
+
noDataMessageTitle: string;
|
|
1368
|
+
noMatchesMessageBody: string;
|
|
1369
|
+
noMatchesMessageTitle: string;
|
|
1370
|
+
retryButtonLabel: string;
|
|
1371
|
+
};
|
|
1329
1372
|
dateInput: {
|
|
1330
1373
|
invalidDateErrorMessage: string;
|
|
1331
1374
|
};
|
package/common/variables.js
CHANGED
|
@@ -20,18 +20,18 @@ var componentTokens = exports.componentTokens = {
|
|
|
20
20
|
assistiveTextFontColor: _coreTokens["default"].color_grey_700,
|
|
21
21
|
disabledAssistiveTextFontColor: _coreTokens["default"].color_grey_500,
|
|
22
22
|
assistiveTextMinWidth: "100px",
|
|
23
|
-
assistiveTextPaddingRight: "
|
|
24
|
-
assistiveTextPaddingLeft: "
|
|
23
|
+
assistiveTextPaddingRight: _coreTokens["default"].spacing_24,
|
|
24
|
+
assistiveTextPaddingLeft: _coreTokens["default"].spacing_0,
|
|
25
25
|
titleLabelFontFamily: _coreTokens["default"].type_sans,
|
|
26
26
|
titleLabelFontSize: _coreTokens["default"].type_scale_03,
|
|
27
27
|
titleLabelFontWeight: _coreTokens["default"].type_regular,
|
|
28
28
|
titleLabelFontStyle: _coreTokens["default"].type_normal,
|
|
29
29
|
titleLabelFontColor: _coreTokens["default"].color_black,
|
|
30
30
|
disabledTitleLabelFontColor: _coreTokens["default"].color_grey_500,
|
|
31
|
-
titleLabelPaddingTop: "
|
|
32
|
-
titleLabelPaddingBottom: "
|
|
33
|
-
titleLabelPaddingLeft: "
|
|
34
|
-
titleLabelPaddingRight: "
|
|
31
|
+
titleLabelPaddingTop: _coreTokens["default"].spacing_0,
|
|
32
|
+
titleLabelPaddingBottom: _coreTokens["default"].spacing_0,
|
|
33
|
+
titleLabelPaddingLeft: _coreTokens["default"].spacing_0,
|
|
34
|
+
titleLabelPaddingRight: _coreTokens["default"].spacing_16,
|
|
35
35
|
focusBorderColor: _coreTokens["default"].color_blue_600,
|
|
36
36
|
focusBorderStyle: _coreTokens["default"].border_solid,
|
|
37
37
|
focusBorderThickness: "2px",
|
|
@@ -43,8 +43,8 @@ var componentTokens = exports.componentTokens = {
|
|
|
43
43
|
iconColor: _coreTokens["default"].color_purple_700,
|
|
44
44
|
disabledIconColor: _coreTokens["default"].color_grey_500,
|
|
45
45
|
iconSize: "24px",
|
|
46
|
-
iconMarginLeft: "
|
|
47
|
-
iconMarginRight: "
|
|
46
|
+
iconMarginLeft: _coreTokens["default"].spacing_0,
|
|
47
|
+
iconMarginRight: _coreTokens["default"].spacing_12,
|
|
48
48
|
accordionGroupSeparatorBorderColor: _coreTokens["default"].color_grey_200_a,
|
|
49
49
|
accordionGroupSeparatorBorderThickness: "1px",
|
|
50
50
|
accordionGroupSeparatorBorderRadius: "0px",
|
|
@@ -57,17 +57,17 @@ var componentTokens = exports.componentTokens = {
|
|
|
57
57
|
titleFontStyle: _coreTokens["default"].type_normal,
|
|
58
58
|
titleFontWeight: _coreTokens["default"].type_bold,
|
|
59
59
|
titleTextTransform: _coreTokens["default"].type_uppercase,
|
|
60
|
-
titlePaddingRight: "
|
|
61
|
-
titlePaddingLeft: "
|
|
60
|
+
titlePaddingRight: _coreTokens["default"].spacing_0,
|
|
61
|
+
titlePaddingLeft: _coreTokens["default"].spacing_0,
|
|
62
62
|
inlineTextFontFamily: _coreTokens["default"].type_sans,
|
|
63
63
|
inlineTextFontColor: _coreTokens["default"].color_black,
|
|
64
64
|
inlineTextFontSize: _coreTokens["default"].type_scale_01,
|
|
65
65
|
inlineTextFontStyle: _coreTokens["default"].type_normal,
|
|
66
66
|
inlineTextFontWeight: _coreTokens["default"].type_regular,
|
|
67
|
-
inlineTextPaddingLeft: "
|
|
68
|
-
inlineTextPaddingRight: "
|
|
69
|
-
contentPaddingLeft: "
|
|
70
|
-
contentPaddingRight: "
|
|
67
|
+
inlineTextPaddingLeft: _coreTokens["default"].spacing_0,
|
|
68
|
+
inlineTextPaddingRight: _coreTokens["default"].spacing_0,
|
|
69
|
+
contentPaddingLeft: _coreTokens["default"].spacing_0,
|
|
70
|
+
contentPaddingRight: _coreTokens["default"].spacing_0,
|
|
71
71
|
contentPaddingTop: "20px",
|
|
72
72
|
contentPaddingBottom: "30px",
|
|
73
73
|
borderRadius: "4px",
|
|
@@ -78,8 +78,8 @@ var componentTokens = exports.componentTokens = {
|
|
|
78
78
|
warningBorderColor: _coreTokens["default"].color_yellow_700,
|
|
79
79
|
errorBorderColor: _coreTokens["default"].color_red_700,
|
|
80
80
|
iconSize: "24px",
|
|
81
|
-
iconPaddingLeft: "
|
|
82
|
-
iconPaddingRight: "
|
|
81
|
+
iconPaddingLeft: _coreTokens["default"].spacing_0,
|
|
82
|
+
iconPaddingRight: _coreTokens["default"].spacing_0,
|
|
83
83
|
infoIconColor: _coreTokens["default"].color_blue_800,
|
|
84
84
|
successIconColor: _coreTokens["default"].color_green_700,
|
|
85
85
|
warningIconColor: _coreTokens["default"].color_yellow_700,
|
|
@@ -121,7 +121,7 @@ var componentTokens = exports.componentTokens = {
|
|
|
121
121
|
bulletIconWidth: "1.5rem",
|
|
122
122
|
bulletHeight: "5px",
|
|
123
123
|
bulletWidth: "5px",
|
|
124
|
-
bulletMarginRight: "
|
|
124
|
+
bulletMarginRight: _coreTokens["default"].spacing_8
|
|
125
125
|
},
|
|
126
126
|
button: {
|
|
127
127
|
labelFontLineHeight: _coreTokens["default"].type_leading_normal,
|
|
@@ -195,7 +195,7 @@ var componentTokens = exports.componentTokens = {
|
|
|
195
195
|
fontColor: _coreTokens["default"].color_black,
|
|
196
196
|
disabledFontColor: _coreTokens["default"].color_grey_500,
|
|
197
197
|
focusColor: _coreTokens["default"].color_blue_600,
|
|
198
|
-
checkLabelSpacing: "
|
|
198
|
+
checkLabelSpacing: _coreTokens["default"].spacing_8
|
|
199
199
|
},
|
|
200
200
|
chip: {
|
|
201
201
|
backgroundColor: _coreTokens["default"].color_grey_200,
|
|
@@ -210,12 +210,12 @@ var componentTokens = exports.componentTokens = {
|
|
|
210
210
|
borderRadius: "80px",
|
|
211
211
|
borderThickness: _coreTokens["default"].border_width_0,
|
|
212
212
|
borderStyle: _coreTokens["default"].border_solid,
|
|
213
|
-
contentPaddingLeft: "
|
|
214
|
-
contentPaddingRight: "
|
|
215
|
-
contentPaddingTop: "
|
|
216
|
-
contentPaddingBottom: "
|
|
213
|
+
contentPaddingLeft: _coreTokens["default"].spacing_16,
|
|
214
|
+
contentPaddingRight: _coreTokens["default"].spacing_16,
|
|
215
|
+
contentPaddingTop: _coreTokens["default"].spacing_0,
|
|
216
|
+
contentPaddingBottom: _coreTokens["default"].spacing_0,
|
|
217
217
|
iconSize: "24px",
|
|
218
|
-
iconSpacing: "
|
|
218
|
+
iconSpacing: _coreTokens["default"].spacing_8,
|
|
219
219
|
iconColor: _coreTokens["default"].color_grey_800,
|
|
220
220
|
hoverIconColor: _coreTokens["default"].color_grey_900,
|
|
221
221
|
activeIconColor: _coreTokens["default"].color_black,
|
|
@@ -225,6 +225,29 @@ var componentTokens = exports.componentTokens = {
|
|
|
225
225
|
focusBorderThickness: _coreTokens["default"].border_width_2,
|
|
226
226
|
focusBorderRadius: _coreTokens["default"].border_radius_medium
|
|
227
227
|
},
|
|
228
|
+
contextualMenu: {
|
|
229
|
+
fontFamily: _coreTokens["default"].type_sans,
|
|
230
|
+
backgroundColor: _coreTokens["default"].color_white,
|
|
231
|
+
borderColor: _coreTokens["default"].color_grey_200,
|
|
232
|
+
menuItemFontColor: _coreTokens["default"].color_grey_900,
|
|
233
|
+
menuItemFontSize: _coreTokens["default"].type_scale_02,
|
|
234
|
+
menuItemFontStyle: _coreTokens["default"].type_normal,
|
|
235
|
+
menuItemFontWeight: _coreTokens["default"].type_regular,
|
|
236
|
+
menuItemLineHeight: "24px",
|
|
237
|
+
hoverMenuItemBackgroundColor: _coreTokens["default"].color_grey_100,
|
|
238
|
+
activeMenuItemBackgroundColor: _coreTokens["default"].color_grey_100,
|
|
239
|
+
selectedMenuItemBackgroundColor: _coreTokens["default"].color_purple_100,
|
|
240
|
+
hoverSelectedMenuItemBackgroundColor: _coreTokens["default"].color_purple_200,
|
|
241
|
+
activeSelectedMenuItemBackgroundColor: _coreTokens["default"].color_purple_200,
|
|
242
|
+
selectedMenuItemFontWeight: _coreTokens["default"].type_semibold,
|
|
243
|
+
sectionTitleFontColor: _coreTokens["default"].color_grey_900,
|
|
244
|
+
sectionTitleFontSize: _coreTokens["default"].type_scale_03,
|
|
245
|
+
sectionTitleFontStyle: _coreTokens["default"].type_normal,
|
|
246
|
+
sectionTitleFontWeight: _coreTokens["default"].type_semibold,
|
|
247
|
+
sectionTitleLineHeight: "24px",
|
|
248
|
+
iconColor: _coreTokens["default"].color_grey_900,
|
|
249
|
+
iconSize: "16px"
|
|
250
|
+
},
|
|
228
251
|
dateInput: {
|
|
229
252
|
pickerBackgroundColor: _coreTokens["default"].color_white,
|
|
230
253
|
pickerFontColor: _coreTokens["default"].color_black,
|
|
@@ -259,8 +282,7 @@ var componentTokens = exports.componentTokens = {
|
|
|
259
282
|
dialog: {
|
|
260
283
|
overlayColor: _coreTokens["default"].color_grey_800_a,
|
|
261
284
|
backgroundColor: _coreTokens["default"].color_white,
|
|
262
|
-
|
|
263
|
-
closeIconHeight: "24px",
|
|
285
|
+
closeIconSize: "24px",
|
|
264
286
|
closeIconTopPosition: "20px",
|
|
265
287
|
closeIconRightPosition: "20px",
|
|
266
288
|
closeIconBackgroundColor: _coreTokens["default"].color_transparent,
|
|
@@ -286,10 +308,10 @@ var componentTokens = exports.componentTokens = {
|
|
|
286
308
|
buttonIconSize: "20px",
|
|
287
309
|
buttonIconSpacing: "10px",
|
|
288
310
|
buttonIconColor: _coreTokens["default"].color_black,
|
|
289
|
-
buttonPaddingTop: "
|
|
290
|
-
buttonPaddingBottom: "
|
|
291
|
-
buttonPaddingLeft: "
|
|
292
|
-
buttonPaddingRight: "
|
|
311
|
+
buttonPaddingTop: _coreTokens["default"].spacing_0,
|
|
312
|
+
buttonPaddingBottom: _coreTokens["default"].spacing_0,
|
|
313
|
+
buttonPaddingLeft: _coreTokens["default"].spacing_16,
|
|
314
|
+
buttonPaddingRight: _coreTokens["default"].spacing_16,
|
|
293
315
|
buttonHeight: "40px",
|
|
294
316
|
buttonBorderRadius: "4px",
|
|
295
317
|
buttonBorderStyle: _coreTokens["default"].border_none,
|
|
@@ -298,12 +320,11 @@ var componentTokens = exports.componentTokens = {
|
|
|
298
320
|
disabledColor: _coreTokens["default"].color_grey_500,
|
|
299
321
|
disabledButtonBackgroundColor: _coreTokens["default"].color_transparent,
|
|
300
322
|
disabledButtonBorderColor: _coreTokens["default"].color_transparent,
|
|
301
|
-
disabledBorderColor: _coreTokens["default"].color_transparent,
|
|
302
323
|
optionBackgroundColor: _coreTokens["default"].color_white,
|
|
303
324
|
hoverOptionBackgroundColor: _coreTokens["default"].color_grey_100,
|
|
304
325
|
activeOptionBackgroundColor: _coreTokens["default"].color_grey_300,
|
|
305
326
|
optionFontFamily: _coreTokens["default"].type_sans,
|
|
306
|
-
optionFontSize: _coreTokens["default"].
|
|
327
|
+
optionFontSize: _coreTokens["default"].type_scale_03,
|
|
307
328
|
optionFontStyle: _coreTokens["default"].type_normal,
|
|
308
329
|
optionFontWeight: _coreTokens["default"].type_regular,
|
|
309
330
|
optionFontColor: _coreTokens["default"].color_black,
|
|
@@ -312,11 +333,11 @@ var componentTokens = exports.componentTokens = {
|
|
|
312
333
|
optionIconColor: _coreTokens["default"].color_black,
|
|
313
334
|
optionPaddingTop: "6px",
|
|
314
335
|
optionPaddingBottom: "6px",
|
|
315
|
-
optionPaddingLeft: "
|
|
316
|
-
optionPaddingRight: "
|
|
336
|
+
optionPaddingLeft: _coreTokens["default"].spacing_16,
|
|
337
|
+
optionPaddingRight: _coreTokens["default"].spacing_16,
|
|
317
338
|
caretIconSize: "24px",
|
|
318
339
|
caretIconColor: _coreTokens["default"].color_black,
|
|
319
|
-
caretIconSpacing: "
|
|
340
|
+
caretIconSpacing: _coreTokens["default"].spacing_12,
|
|
320
341
|
borderRadius: "4px",
|
|
321
342
|
borderStyle: _coreTokens["default"].border_none,
|
|
322
343
|
borderThickness: _coreTokens["default"].border_width_0,
|
|
@@ -338,7 +359,6 @@ var componentTokens = exports.componentTokens = {
|
|
|
338
359
|
focusDropBorderColor: _coreTokens["default"].color_blue_600,
|
|
339
360
|
disabledDropBorderColor: _coreTokens["default"].color_grey_500,
|
|
340
361
|
dragoverDropBackgroundColor: _coreTokens["default"].color_blue_50,
|
|
341
|
-
activeFileItemIconBackgrounColor: _coreTokens["default"].color_grey_300,
|
|
342
362
|
errorFileItemBorderColor: _coreTokens["default"].color_red_700,
|
|
343
363
|
errorFileItemBackgroundColor: _coreTokens["default"].color_red_50,
|
|
344
364
|
errorFilePreviewBackgroundColor: _coreTokens["default"].color_red_200,
|
|
@@ -384,7 +404,7 @@ var componentTokens = exports.componentTokens = {
|
|
|
384
404
|
bottomLinksDividerColor: _coreTokens["default"].color_blue_600,
|
|
385
405
|
bottomLinksDividerThickness: "1px",
|
|
386
406
|
bottomLinksDividerStyle: _coreTokens["default"].border_solid,
|
|
387
|
-
bottomLinksDividerSpacing: "
|
|
407
|
+
bottomLinksDividerSpacing: _coreTokens["default"].spacing_8,
|
|
388
408
|
bottomLinksFontFamily: _coreTokens["default"].type_sans,
|
|
389
409
|
bottomLinksFontSize: _coreTokens["default"].type_scale_01,
|
|
390
410
|
bottomLinksFontStyle: _coreTokens["default"].type_normal,
|
|
@@ -400,7 +420,7 @@ var componentTokens = exports.componentTokens = {
|
|
|
400
420
|
logoHeight: "32px",
|
|
401
421
|
logoWidth: "auto",
|
|
402
422
|
socialLinksSize: "24px",
|
|
403
|
-
socialLinksGutter: "
|
|
423
|
+
socialLinksGutter: _coreTokens["default"].spacing_16,
|
|
404
424
|
socialLinksColor: _coreTokens["default"].color_white
|
|
405
425
|
},
|
|
406
426
|
header: {
|
|
@@ -426,10 +446,10 @@ var componentTokens = exports.componentTokens = {
|
|
|
426
446
|
overlayColor: _coreTokens["default"].color_grey_800_a,
|
|
427
447
|
overlayOpacity: "0.7",
|
|
428
448
|
overlayZindex: "1600",
|
|
429
|
-
paddingTop: "
|
|
430
|
-
paddingBottom: "
|
|
431
|
-
paddingRight: "
|
|
432
|
-
paddingLeft: "
|
|
449
|
+
paddingTop: _coreTokens["default"].spacing_0,
|
|
450
|
+
paddingBottom: _coreTokens["default"].spacing_0,
|
|
451
|
+
paddingRight: _coreTokens["default"].spacing_24,
|
|
452
|
+
paddingLeft: _coreTokens["default"].spacing_24,
|
|
433
453
|
underlinedColor: _coreTokens["default"].color_black,
|
|
434
454
|
underlinedThickness: "2px",
|
|
435
455
|
underlinedStyle: _coreTokens["default"].border_solid,
|
|
@@ -487,8 +507,8 @@ var componentTokens = exports.componentTokens = {
|
|
|
487
507
|
fontStyle: _coreTokens["default"].type_normal,
|
|
488
508
|
fontWeight: _coreTokens["default"].type_regular,
|
|
489
509
|
iconSize: "16px",
|
|
490
|
-
iconSpacing: "
|
|
491
|
-
underlineSpacing: "
|
|
510
|
+
iconSpacing: _coreTokens["default"].spacing_4,
|
|
511
|
+
underlineSpacing: _coreTokens["default"].spacing_0,
|
|
492
512
|
underlineStyle: _coreTokens["default"].border_solid,
|
|
493
513
|
underlineThickness: "1px",
|
|
494
514
|
disabledFontColor: _coreTokens["default"].color_grey_500,
|
|
@@ -527,20 +547,20 @@ var componentTokens = exports.componentTokens = {
|
|
|
527
547
|
fontStyle: _coreTokens["default"].type_normal,
|
|
528
548
|
fontWeight: _coreTokens["default"].type_regular,
|
|
529
549
|
fontTextTransform: "none",
|
|
530
|
-
verticalPadding: "
|
|
531
|
-
horizontalPadding: "
|
|
532
|
-
marginRight: "
|
|
550
|
+
verticalPadding: _coreTokens["default"].spacing_12,
|
|
551
|
+
horizontalPadding: _coreTokens["default"].spacing_32,
|
|
552
|
+
marginRight: _coreTokens["default"].spacing_40,
|
|
533
553
|
marginLeft: "20px",
|
|
534
|
-
itemsPerPageSelectorMarginLeft: "
|
|
535
|
-
itemsPerPageSelectorMarginRight: "
|
|
554
|
+
itemsPerPageSelectorMarginLeft: _coreTokens["default"].spacing_0,
|
|
555
|
+
itemsPerPageSelectorMarginRight: _coreTokens["default"].spacing_8,
|
|
536
556
|
pageSelectorMarginRight: "30px",
|
|
537
|
-
pageSelectorMarginLeft: "
|
|
538
|
-
totalItemsContainerMarginRight: "
|
|
539
|
-
totalItemsContainerMarginLeft: "
|
|
557
|
+
pageSelectorMarginLeft: _coreTokens["default"].spacing_0,
|
|
558
|
+
totalItemsContainerMarginRight: _coreTokens["default"].spacing_40,
|
|
559
|
+
totalItemsContainerMarginLeft: _coreTokens["default"].spacing_0
|
|
540
560
|
},
|
|
541
561
|
paragraph: {
|
|
542
|
-
fontColor: _coreTokens["default"].color_black,
|
|
543
562
|
display: "block",
|
|
563
|
+
fontColor: _coreTokens["default"].color_black,
|
|
544
564
|
fontSize: _coreTokens["default"].type_scale_03,
|
|
545
565
|
fontWeight: _coreTokens["default"].type_regular
|
|
546
566
|
},
|
|
@@ -726,10 +746,10 @@ var componentTokens = exports.componentTokens = {
|
|
|
726
746
|
linkFontTextTransform: "none",
|
|
727
747
|
linkFontLetterSpacing: _coreTokens["default"].type_spacing_wide_01,
|
|
728
748
|
linkTextDecoration: _coreTokens["default"].type_no_line,
|
|
729
|
-
linkMarginTop: "
|
|
730
|
-
linkMarginBottom: "
|
|
731
|
-
linkMarginRight: "
|
|
732
|
-
linkMarginLeft: "
|
|
749
|
+
linkMarginTop: _coreTokens["default"].spacing_4,
|
|
750
|
+
linkMarginBottom: _coreTokens["default"].spacing_4,
|
|
751
|
+
linkMarginRight: _coreTokens["default"].spacing_16,
|
|
752
|
+
linkMarginLeft: _coreTokens["default"].spacing_16,
|
|
733
753
|
linkFocusColor: _coreTokens["default"].color_blue_600,
|
|
734
754
|
scrollBarThumbColor: _coreTokens["default"].color_grey_200_a,
|
|
735
755
|
scrollBarTrackColor: _coreTokens["default"].color_transparent
|
|
@@ -833,7 +853,7 @@ var componentTokens = exports.componentTokens = {
|
|
|
833
853
|
disabledLabelFontColor: _coreTokens["default"].color_grey_500,
|
|
834
854
|
disabledLabelFontStyle: _coreTokens["default"].type_normal,
|
|
835
855
|
labelFontFamily: _coreTokens["default"].type_sans,
|
|
836
|
-
labelFontSize: _coreTokens["default"].
|
|
856
|
+
labelFontSize: _coreTokens["default"].type_scale_03,
|
|
837
857
|
labelFontStyle: _coreTokens["default"].type_normal,
|
|
838
858
|
labelFontWeight: _coreTokens["default"].type_regular,
|
|
839
859
|
labelFontColor: _coreTokens["default"].color_black,
|
|
@@ -843,7 +863,7 @@ var componentTokens = exports.componentTokens = {
|
|
|
843
863
|
thumbShift: "1.25rem",
|
|
844
864
|
trackHeight: "12px",
|
|
845
865
|
trackWidth: "36px",
|
|
846
|
-
spaceBetweenLabelSwitch: "
|
|
866
|
+
spaceBetweenLabelSwitch: _coreTokens["default"].spacing_8
|
|
847
867
|
},
|
|
848
868
|
table: {
|
|
849
869
|
rowSeparatorThickness: "1px",
|
|
@@ -856,8 +876,8 @@ var componentTokens = exports.componentTokens = {
|
|
|
856
876
|
dataFontWeight: _coreTokens["default"].type_regular,
|
|
857
877
|
dataFontColor: _coreTokens["default"].color_black,
|
|
858
878
|
dataFontTextTransform: "none",
|
|
859
|
-
dataPaddingTop: "
|
|
860
|
-
dataPaddingBottom: "
|
|
879
|
+
dataPaddingTop: _coreTokens["default"].spacing_16,
|
|
880
|
+
dataPaddingBottom: _coreTokens["default"].spacing_16,
|
|
861
881
|
dataPaddingRight: "20px",
|
|
862
882
|
dataPaddingLeft: "20px",
|
|
863
883
|
dataPaddingTopReduced: _coreTokens["default"].spacing_8,
|
|
@@ -878,8 +898,8 @@ var componentTokens = exports.componentTokens = {
|
|
|
878
898
|
headerFontWeight: _coreTokens["default"].type_regular,
|
|
879
899
|
headerFontColor: _coreTokens["default"].color_white,
|
|
880
900
|
headerFontTextTransform: "none",
|
|
881
|
-
headerPaddingTop: "
|
|
882
|
-
headerPaddingBottom: "
|
|
901
|
+
headerPaddingTop: _coreTokens["default"].spacing_16,
|
|
902
|
+
headerPaddingBottom: _coreTokens["default"].spacing_16,
|
|
883
903
|
headerPaddingRight: "20px",
|
|
884
904
|
headerPaddingLeft: "20px",
|
|
885
905
|
headerPaddingTopReduced: _coreTokens["default"].spacing_8,
|
|
@@ -933,10 +953,10 @@ var componentTokens = exports.componentTokens = {
|
|
|
933
953
|
fontSize: _coreTokens["default"].type_scale_02,
|
|
934
954
|
fontStyle: _coreTokens["default"].type_normal,
|
|
935
955
|
fontWeight: _coreTokens["default"].type_regular,
|
|
936
|
-
labelPaddingTop: "
|
|
937
|
-
labelPaddingBottom: "
|
|
938
|
-
labelPaddingLeft: "
|
|
939
|
-
labelPaddingRight: "
|
|
956
|
+
labelPaddingTop: _coreTokens["default"].spacing_0,
|
|
957
|
+
labelPaddingBottom: _coreTokens["default"].spacing_0,
|
|
958
|
+
labelPaddingLeft: _coreTokens["default"].spacing_16,
|
|
959
|
+
labelPaddingRight: _coreTokens["default"].spacing_16,
|
|
940
960
|
height: "40px",
|
|
941
961
|
iconColor: _coreTokens["default"].color_white,
|
|
942
962
|
iconSectionWidth: "40px",
|
|
@@ -1008,7 +1028,13 @@ var componentTokens = exports.componentTokens = {
|
|
|
1008
1028
|
helperTextLineHeight: _coreTokens["default"].type_leading_normal,
|
|
1009
1029
|
disabledHelperTextFontColor: _coreTokens["default"].color_grey_500,
|
|
1010
1030
|
prefixColor: _coreTokens["default"].color_grey_700,
|
|
1031
|
+
prefixDividerBorderWidth: "1px",
|
|
1032
|
+
prefixDividerBorderStyle: _coreTokens["default"].border_solid,
|
|
1033
|
+
prefixDividerPaddingRight: _coreTokens["default"].spacing_8,
|
|
1011
1034
|
suffixColor: _coreTokens["default"].color_grey_700,
|
|
1035
|
+
suffixDividerBorderStyle: _coreTokens["default"].border_solid,
|
|
1036
|
+
suffixDividerBorderWidth: "1px",
|
|
1037
|
+
suffixDividerPaddingLeft: _coreTokens["default"].spacing_8,
|
|
1012
1038
|
disabledPrefixColor: _coreTokens["default"].color_grey_400,
|
|
1013
1039
|
disabledSuffixColor: _coreTokens["default"].color_grey_400,
|
|
1014
1040
|
placeholderFontColor: _coreTokens["default"].color_grey_800_a,
|
|
@@ -1154,13 +1180,13 @@ var componentTokens = exports.componentTokens = {
|
|
|
1154
1180
|
}
|
|
1155
1181
|
};
|
|
1156
1182
|
var spaces = exports.spaces = {
|
|
1157
|
-
xxsmall: "
|
|
1158
|
-
xsmall: "
|
|
1159
|
-
small: "
|
|
1160
|
-
medium: "
|
|
1161
|
-
large: "
|
|
1162
|
-
xlarge: "
|
|
1163
|
-
xxlarge: "
|
|
1183
|
+
xxsmall: _coreTokens["default"].spacing_4,
|
|
1184
|
+
xsmall: _coreTokens["default"].spacing_8,
|
|
1185
|
+
small: _coreTokens["default"].spacing_12,
|
|
1186
|
+
medium: _coreTokens["default"].spacing_16,
|
|
1187
|
+
large: _coreTokens["default"].spacing_24,
|
|
1188
|
+
xlarge: _coreTokens["default"].spacing_32,
|
|
1189
|
+
xxlarge: _coreTokens["default"].spacing_48
|
|
1164
1190
|
};
|
|
1165
1191
|
var responsiveSizes = exports.responsiveSizes = {
|
|
1166
1192
|
xsmall: "20",
|
|
@@ -1189,6 +1215,17 @@ var defaultTranslatedComponentLabels = exports.defaultTranslatedComponentLabels
|
|
|
1189
1215
|
warningTitleText: "warning",
|
|
1190
1216
|
errorTitleText: "error"
|
|
1191
1217
|
},
|
|
1218
|
+
barChart: {
|
|
1219
|
+
ariaLabel: "Single data series line chart",
|
|
1220
|
+
filterLabel: "Filter displayed data",
|
|
1221
|
+
filterPlaceholder: "Select series...",
|
|
1222
|
+
loadingDataMessage: "Loading data...",
|
|
1223
|
+
noDataMessageBody: "There is no data available.",
|
|
1224
|
+
noDataMessageTitle: "No data available",
|
|
1225
|
+
noMatchesMessageBody: "Try changing the filters or reloading the data.",
|
|
1226
|
+
noMatchesMessageTitle: "No matching data",
|
|
1227
|
+
retryButtonLabel: "Retry"
|
|
1228
|
+
},
|
|
1192
1229
|
dateInput: {
|
|
1193
1230
|
invalidDateErrorMessage: "Invalid date."
|
|
1194
1231
|
},
|