@dxc-technology/halstack-react 11.0.0 → 12.0.1
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 +3 -8
- package/HalstackContext.d.ts +32 -145
- package/HalstackContext.js +3 -7
- package/accordion/Accordion.accessibility.test.d.ts +1 -0
- package/accordion/Accordion.accessibility.test.js +71 -0
- package/accordion/Accordion.js +18 -35
- 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.d.ts +2 -3
- package/accordion-group/AccordionGroup.js +4 -4
- 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 +3 -3
- package/accordion-group/AccordionGroupContext.d.ts +3 -0
- package/accordion-group/AccordionGroupContext.js +8 -0
- 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.d.ts +4 -0
- package/action-icon/ActionIcon.js +48 -0
- package/action-icon/ActionIcon.stories.tsx +41 -0
- package/action-icon/ActionIcon.test.d.ts +1 -0
- package/action-icon/ActionIcon.test.js +64 -0
- package/action-icon/types.d.ts +26 -0
- package/action-icon/types.js +5 -0
- package/alert/Alert.accessibility.test.d.ts +1 -0
- package/alert/Alert.accessibility.test.js +95 -0
- package/alert/Alert.js +21 -75
- 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.d.ts +1 -1
- package/badge/Badge.js +141 -28
- package/badge/Badge.stories.tsx +210 -0
- package/badge/Badge.test.d.ts +1 -0
- package/badge/Badge.test.js +30 -0
- package/badge/types.d.ts +52 -3
- package/box/Box.accessibility.test.d.ts +1 -0
- package/box/Box.accessibility.test.js +33 -0
- package/box/Box.js +2 -5
- 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 +169 -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 +16 -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 +16 -23
- package/bulleted-list/BulletedList.stories.tsx +1 -2
- package/button/Button.accessibility.test.d.ts +1 -0
- package/button/Button.accessibility.test.js +127 -0
- package/button/Button.js +16 -16
- package/button/Button.stories.tsx +34 -53
- package/button/Button.test.d.ts +1 -0
- package/button/Button.test.js +4 -2
- package/button/types.d.ts +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.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 +36 -44
- 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 +69 -0
- package/chip/Chip.js +20 -26
- package/chip/Chip.stories.tsx +67 -50
- package/chip/Chip.test.d.ts +1 -0
- package/chip/Chip.test.js +5 -5
- package/chip/types.d.ts +35 -12
- package/common/coreTokens.d.ts +105 -14
- package/common/coreTokens.js +40 -22
- package/common/fonts.css +2 -0
- package/common/variables.d.ts +31 -141
- package/common/variables.js +104 -214
- 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/container/types.js +5 -0
- 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 +5 -0
- package/contextual-menu/ContextualMenu.js +88 -0
- package/contextual-menu/ContextualMenu.stories.tsx +232 -0
- package/contextual-menu/ContextualMenu.test.d.ts +1 -0
- package/contextual-menu/ContextualMenu.test.js +205 -0
- 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 +51 -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 +58 -0
- package/contextual-menu/types.js +5 -0
- package/date-input/Calendar.js +1 -1
- package/date-input/DateInput.accessibility.test.d.ts +1 -0
- package/date-input/DateInput.accessibility.test.js +230 -0
- package/date-input/DateInput.js +19 -20
- package/date-input/DateInput.stories.tsx +15 -8
- package/date-input/DateInput.test.d.ts +1 -0
- package/date-input/DateInput.test.js +9 -8
- package/date-input/DatePicker.js +13 -7
- package/date-input/YearPicker.js +1 -1
- package/date-input/types.d.ts +2 -2
- package/dialog/Dialog.accessibility.test.d.ts +1 -0
- package/dialog/Dialog.accessibility.test.js +69 -0
- package/dialog/Dialog.js +11 -25
- package/dialog/Dialog.stories.tsx +175 -0
- package/dialog/Dialog.test.d.ts +1 -0
- package/dialog/Dialog.test.js +113 -49
- package/divider/Divider.accessibility.test.d.ts +1 -0
- 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.d.ts +1 -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.d.ts +1 -0
- package/dropdown/Dropdown.accessibility.test.js +184 -0
- package/dropdown/Dropdown.js +37 -51
- package/dropdown/Dropdown.stories.tsx +15 -26
- package/dropdown/Dropdown.test.d.ts +1 -0
- package/dropdown/Dropdown.test.js +100 -70
- package/dropdown/DropdownMenu.js +4 -4
- package/dropdown/DropdownMenuItem.js +8 -4
- package/dropdown/types.d.ts +3 -5
- package/file-input/FileInput.accessibility.test.d.ts +1 -0
- package/file-input/FileInput.accessibility.test.js +167 -0
- package/file-input/FileInput.js +127 -145
- package/file-input/FileInput.test.d.ts +1 -0
- package/file-input/FileInput.test.js +125 -129
- package/file-input/FileItem.js +18 -28
- package/file-input/types.d.ts +1 -1
- package/footer/Footer.accessibility.test.d.ts +1 -0
- package/footer/Footer.accessibility.test.js +125 -0
- package/footer/Footer.d.ts +1 -1
- package/footer/Footer.js +36 -31
- package/footer/Footer.stories.tsx +58 -2
- package/footer/Footer.test.d.ts +1 -0
- package/footer/Footer.test.js +1 -1
- package/footer/Icons.d.ts +1 -0
- package/footer/Icons.js +52 -16
- package/footer/types.d.ts +8 -8
- package/header/Header.accessibility.test.d.ts +1 -0
- package/header/Header.accessibility.test.js +94 -0
- package/header/Header.js +20 -41
- package/header/Header.stories.tsx +16 -0
- package/header/Header.test.d.ts +1 -0
- package/header/Header.test.js +1 -1
- package/header/Icons.js +1 -6
- package/header/types.d.ts +4 -3
- 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.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.d.ts +1 -0
- package/image/Image.accessibility.test.js +56 -0
- package/image/Image.js +1 -1
- package/image/Image.stories.tsx +3 -1
- package/layout/ApplicationLayout.d.ts +1 -1
- package/layout/ApplicationLayout.js +10 -7
- 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 +8 -3
- package/main.js +38 -9
- package/nav-tabs/NavTabs.accessibility.test.d.ts +1 -0
- package/nav-tabs/NavTabs.accessibility.test.js +44 -0
- package/nav-tabs/NavTabs.d.ts +1 -2
- package/nav-tabs/NavTabs.js +25 -7
- package/nav-tabs/NavTabs.stories.tsx +44 -24
- package/nav-tabs/NavTabs.test.d.ts +1 -0
- package/nav-tabs/NavTabs.test.js +12 -10
- package/nav-tabs/NavTabsContext.d.ts +3 -0
- package/nav-tabs/NavTabsContext.js +8 -0
- package/nav-tabs/Tab.js +23 -23
- 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 +228 -0
- package/number-input/NumberInput.d.ts +0 -7
- package/number-input/NumberInput.js +24 -5
- package/number-input/NumberInput.test.d.ts +1 -0
- package/number-input/NumberInput.test.js +166 -7
- package/number-input/NumberInputContext.d.ts +3 -0
- package/number-input/NumberInputContext.js +8 -0
- package/number-input/types.d.ts +6 -0
- package/package.json +20 -18
- package/paginator/Paginator.accessibility.test.d.ts +1 -0
- package/paginator/Paginator.accessibility.test.js +79 -0
- package/paginator/Paginator.js +14 -14
- package/paginator/Paginator.test.d.ts +1 -0
- package/paginator/Paginator.test.js +1 -1
- package/paragraph/Paragraph.accessibility.test.d.ts +1 -0
- package/paragraph/Paragraph.accessibility.test.js +28 -0
- package/paragraph/Paragraph.js +2 -7
- package/password-input/PasswordInput.accessibility.test.d.ts +1 -0
- package/password-input/PasswordInput.accessibility.test.js +153 -0
- package/password-input/PasswordInput.js +7 -7
- package/password-input/PasswordInput.stories.tsx +0 -1
- package/password-input/PasswordInput.test.d.ts +1 -0
- package/password-input/PasswordInput.test.js +5 -5
- package/progress-bar/ProgressBar.accessibility.test.d.ts +1 -0
- package/progress-bar/ProgressBar.accessibility.test.js +35 -0
- package/progress-bar/ProgressBar.js +11 -15
- 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 +15 -17
- 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 +285 -0
- package/resultset-table/ResultsetTable.d.ts +4 -1
- package/resultset-table/ResultsetTable.js +25 -13
- package/resultset-table/ResultsetTable.stories.tsx +118 -5
- package/resultset-table/ResultsetTable.test.d.ts +1 -0
- package/resultset-table/ResultsetTable.test.js +76 -1
- package/resultset-table/types.d.ts +40 -7
- package/select/Listbox.js +24 -16
- package/select/Option.js +19 -10
- package/select/Select.accessibility.test.d.ts +1 -0
- package/select/Select.accessibility.test.js +228 -0
- package/select/Select.js +72 -54
- package/select/Select.stories.tsx +59 -111
- package/select/Select.test.d.ts +1 -0
- package/select/Select.test.js +393 -459
- package/select/types.d.ts +3 -3
- package/sidenav/Sidenav.accessibility.test.d.ts +1 -0
- package/sidenav/Sidenav.accessibility.test.js +59 -0
- package/sidenav/Sidenav.js +21 -19
- package/sidenav/Sidenav.stories.tsx +4 -9
- 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 +104 -0
- package/slider/Slider.js +31 -42
- package/slider/Slider.stories.tsx +180 -0
- package/slider/Slider.test.d.ts +1 -0
- package/slider/Slider.test.js +12 -9
- package/spinner/Spinner.accessibility.test.d.ts +1 -0
- package/spinner/Spinner.accessibility.test.js +96 -0
- package/spinner/Spinner.js +12 -16
- 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.d.ts +4 -0
- package/status-light/StatusLight.js +51 -0
- package/status-light/StatusLight.stories.tsx +74 -0
- package/status-light/StatusLight.test.d.ts +1 -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.d.ts +1 -0
- package/switch/Switch.accessibility.test.js +98 -0
- package/switch/Switch.js +29 -37
- package/switch/Switch.stories.tsx +12 -0
- package/switch/Switch.test.d.ts +1 -0
- package/switch/Switch.test.js +1 -1
- package/table/DropdownTheme.js +62 -0
- package/table/Table.accessibility.test.d.ts +1 -0
- package/table/Table.accessibility.test.js +93 -0
- package/table/Table.d.ts +6 -2
- package/table/Table.js +74 -12
- package/table/Table.stories.tsx +309 -2
- package/table/Table.test.d.ts +1 -0
- package/table/Table.test.js +92 -1
- package/table/types.d.ts +28 -0
- package/tabs/Tab.js +13 -9
- package/tabs/Tabs.accessibility.test.d.ts +1 -0
- package/tabs/Tabs.accessibility.test.js +56 -0
- package/tabs/Tabs.js +12 -24
- package/tabs/Tabs.stories.tsx +8 -4
- 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 +4 -7
- 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 +19 -14
- package/text-input/TextInput.accessibility.test.d.ts +1 -0
- package/text-input/TextInput.accessibility.test.js +321 -0
- package/text-input/TextInput.js +103 -126
- package/text-input/TextInput.stories.tsx +17 -8
- package/text-input/TextInput.test.d.ts +1 -0
- package/text-input/TextInput.test.js +97 -80
- package/textarea/Textarea.accessibility.test.d.ts +1 -0
- package/textarea/Textarea.accessibility.test.js +155 -0
- package/textarea/Textarea.js +13 -21
- package/textarea/Textarea.stories.tsx +0 -1
- 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 +11 -16
- package/toggle-group/ToggleGroup.stories.tsx +3 -3
- 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/typography/Typography.accessibility.test.d.ts +1 -0
- package/typography/Typography.accessibility.test.js +339 -0
- package/useTheme.d.ts +31 -141
- package/utils/BaseTypography.js +1 -1
- package/utils/FocusLock.js +16 -6
- 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 +19 -0
- package/wizard/Wizard.test.d.ts +1 -0
- package/wizard/Wizard.test.js +1 -1
- package/wizard/types.d.ts +2 -2
- 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/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/{layout → sidenav}/SidenavContext.d.ts +0 -0
- /package/{layout → sidenav}/SidenavContext.js +0 -0
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,46 +169,33 @@ 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
|
-
disabledBackgroundColorCheckedOnDark: string;
|
|
200
174
|
readOnlyBackgroundColorChecked: string;
|
|
201
175
|
hoverReadOnlyBackgroundColorChecked: string;
|
|
202
176
|
borderColor: string;
|
|
203
|
-
borderColorOnDark: string;
|
|
204
177
|
hoverBorderColor: string;
|
|
205
|
-
hoverBorderColorOnDark: string;
|
|
206
178
|
disabledBorderColor: string;
|
|
207
|
-
disabledBorderColorOnDark: string;
|
|
208
179
|
readOnlyBorderColor: string;
|
|
209
180
|
hoverReadOnlyBorderColor: string;
|
|
210
181
|
checkColor: string;
|
|
211
|
-
checkColorOnDark: string;
|
|
212
182
|
disabledCheckColor: string;
|
|
213
|
-
disabledCheckColorOnDark: string;
|
|
214
183
|
readOnlyCheckColor: string;
|
|
215
184
|
fontFamily: string;
|
|
216
185
|
fontSize: string;
|
|
217
186
|
fontWeight: string;
|
|
218
187
|
fontColor: string;
|
|
219
|
-
fontColorOnDark: string;
|
|
220
188
|
disabledFontColor: string;
|
|
221
|
-
disabledFontColorOnDark: string;
|
|
222
189
|
focusColor: string;
|
|
223
|
-
focusColorOnDark: string;
|
|
224
190
|
checkLabelSpacing: string;
|
|
225
191
|
}>;
|
|
226
192
|
chip?: Partial<{
|
|
227
193
|
backgroundColor: string;
|
|
228
|
-
disabledBackgroundColor: string;
|
|
229
194
|
fontFamily: string;
|
|
230
195
|
fontSize: string;
|
|
231
196
|
fontStyle: string;
|
|
232
197
|
fontWeight: string;
|
|
233
198
|
fontColor: string;
|
|
234
|
-
disabledFontColor: string;
|
|
235
199
|
borderColor: string;
|
|
236
200
|
borderRadius: string;
|
|
237
201
|
borderThickness: string;
|
|
@@ -249,7 +213,6 @@ declare const useTheme: () => {
|
|
|
249
213
|
focusColor: string;
|
|
250
214
|
focusBorderStyle: string;
|
|
251
215
|
focusBorderThickness: string;
|
|
252
|
-
focusBorderRadius: string;
|
|
253
216
|
}>;
|
|
254
217
|
dateInput?: Partial<{
|
|
255
218
|
pickerBackgroundColor: string;
|
|
@@ -285,8 +248,7 @@ declare const useTheme: () => {
|
|
|
285
248
|
dialog?: Partial<{
|
|
286
249
|
overlayColor: string;
|
|
287
250
|
backgroundColor: string;
|
|
288
|
-
|
|
289
|
-
closeIconHeight: string;
|
|
251
|
+
closeIconSize: string;
|
|
290
252
|
closeIconTopPosition: string;
|
|
291
253
|
closeIconRightPosition: string;
|
|
292
254
|
closeIconBackgroundColor: string;
|
|
@@ -316,9 +278,14 @@ declare const useTheme: () => {
|
|
|
316
278
|
buttonPaddingBottom: string;
|
|
317
279
|
buttonPaddingLeft: string;
|
|
318
280
|
buttonPaddingRight: string;
|
|
281
|
+
buttonHeight: string;
|
|
282
|
+
buttonBorderRadius: string;
|
|
283
|
+
buttonBorderStyle: string;
|
|
284
|
+
buttonBorderThickness: string;
|
|
285
|
+
buttonBorderColor: string;
|
|
319
286
|
disabledColor: string;
|
|
320
287
|
disabledButtonBackgroundColor: string;
|
|
321
|
-
|
|
288
|
+
disabledButtonBorderColor: string;
|
|
322
289
|
optionBackgroundColor: string;
|
|
323
290
|
hoverOptionBackgroundColor: string;
|
|
324
291
|
activeOptionBackgroundColor: string;
|
|
@@ -358,7 +325,6 @@ declare const useTheme: () => {
|
|
|
358
325
|
focusDropBorderColor: string;
|
|
359
326
|
disabledDropBorderColor: string;
|
|
360
327
|
dragoverDropBackgroundColor: string;
|
|
361
|
-
activeFileItemIconBackgrounColor: string;
|
|
362
328
|
errorFileItemBorderColor: string;
|
|
363
329
|
errorFileItemBackgroundColor: string;
|
|
364
330
|
errorFilePreviewBackgroundColor: string;
|
|
@@ -454,7 +420,6 @@ declare const useTheme: () => {
|
|
|
454
420
|
underlinedThickness: string;
|
|
455
421
|
underlinedStyle: string;
|
|
456
422
|
contentColor: string;
|
|
457
|
-
contentColorOnDark: string;
|
|
458
423
|
}>;
|
|
459
424
|
heading?: Partial<{
|
|
460
425
|
level1FontColor: string;
|
|
@@ -560,32 +525,27 @@ declare const useTheme: () => {
|
|
|
560
525
|
totalItemsContainerMarginLeft: string;
|
|
561
526
|
}>;
|
|
562
527
|
paragraph?: Partial<{
|
|
563
|
-
fontColor: string;
|
|
564
|
-
fontColorOnDark: string;
|
|
565
528
|
display: string;
|
|
529
|
+
fontColor: string;
|
|
566
530
|
fontSize: string;
|
|
567
531
|
fontWeight: string;
|
|
568
532
|
}>;
|
|
569
533
|
progressBar?: Partial<{
|
|
570
534
|
trackLineColor: string;
|
|
571
|
-
trackLineColorOnDark: string;
|
|
572
535
|
totalLineColor: string;
|
|
573
536
|
labelFontFamily: string;
|
|
574
537
|
labelFontSize: string;
|
|
575
538
|
labelFontStyle: string;
|
|
576
539
|
labelFontWeight: string;
|
|
577
540
|
labelFontColor: string;
|
|
578
|
-
labelFontColorOnDark: string;
|
|
579
541
|
labelFontTextTransform: string;
|
|
580
542
|
valueFontFamily: string;
|
|
581
543
|
valueFontSize: string;
|
|
582
544
|
valueFontStyle: string;
|
|
583
545
|
valueFontWeight: string;
|
|
584
546
|
valueFontColor: string;
|
|
585
|
-
valueFontColorOnDark: string;
|
|
586
547
|
valueFontTextTransform: string;
|
|
587
548
|
helperTextFontColor: string;
|
|
588
|
-
helperTextFontColorOnDark: string;
|
|
589
549
|
helperTextFontSize: string;
|
|
590
550
|
helperTextFontStyle: string;
|
|
591
551
|
helperTextFontWeight: string;
|
|
@@ -763,7 +723,6 @@ declare const useTheme: () => {
|
|
|
763
723
|
slider?: Partial<{
|
|
764
724
|
fontFamily: string;
|
|
765
725
|
limitValuesFontColor: string;
|
|
766
|
-
limitValuesFontColorOnDark: string;
|
|
767
726
|
limitValuesFontSize: string;
|
|
768
727
|
limitValuesFontStyle: string;
|
|
769
728
|
limitValuesFontWeight: string;
|
|
@@ -780,15 +739,10 @@ declare const useTheme: () => {
|
|
|
780
739
|
helperTextFontWeight: string;
|
|
781
740
|
helperTextLineHeight: string;
|
|
782
741
|
fontColor: string;
|
|
783
|
-
fontColorOnDark: string;
|
|
784
742
|
labelFontColor: string;
|
|
785
|
-
labelFontColorOnDark: string;
|
|
786
743
|
helperTextFontColor: string;
|
|
787
|
-
helperTextFontColorOnDark: string;
|
|
788
744
|
disabledLabelFontColor: string;
|
|
789
|
-
disabledLabelFontColorOnDark: string;
|
|
790
745
|
disabledHelperTextFontColor: string;
|
|
791
|
-
disabledHelperTextFontColorOnDark: string;
|
|
792
746
|
thumbHeight: string;
|
|
793
747
|
thumbWidth: string;
|
|
794
748
|
hoverThumbHeight: string;
|
|
@@ -796,40 +750,28 @@ declare const useTheme: () => {
|
|
|
796
750
|
thumbVerticalPosition: string;
|
|
797
751
|
hoverThumbVerticalPosition: string;
|
|
798
752
|
thumbBackgroundColor: string;
|
|
799
|
-
thumbBackgroundColorOnDark: string;
|
|
800
753
|
hoverThumbScale: string;
|
|
801
754
|
hoverThumbBackgroundColor: string;
|
|
802
|
-
hoverThumbBackgroundColorOnDark: string;
|
|
803
755
|
activeThumbScale: string;
|
|
804
756
|
activeThumbBackgroundColor: string;
|
|
805
|
-
activeThumbBackgroundColorOnDark: string;
|
|
806
757
|
focusThumbBackgroundColor: string;
|
|
807
|
-
focusThumbBackgroundColorOnDark: string;
|
|
808
758
|
tickHeight: string;
|
|
809
759
|
tickWidth: string;
|
|
810
760
|
tickVerticalPosition: string;
|
|
811
761
|
tickBackgroundColor: string;
|
|
812
|
-
tickBackgroundColorOnDark: string;
|
|
813
762
|
trackLineThickness: string;
|
|
814
763
|
trackLineVerticalPosition: string;
|
|
815
764
|
trackLineColor: string;
|
|
816
|
-
trackLineColorOnDark: string;
|
|
817
765
|
totalLineThickness: string;
|
|
818
766
|
totalLineVerticalPosition: string;
|
|
819
767
|
totalLineColor: string;
|
|
820
|
-
totalLineColorOnDark: string;
|
|
821
768
|
disabledThumbVerticalPosition: string;
|
|
822
769
|
disabledThumbBackgroundColor: string;
|
|
823
|
-
disabledThumbBackgroundColorOnDark: string;
|
|
824
770
|
disabledTickVerticalPosition: string;
|
|
825
771
|
disabledTickBackgroundColor: string;
|
|
826
|
-
disabledTickBackgroundColorOnDark: string;
|
|
827
772
|
disabledTrackLineColor: string;
|
|
828
|
-
disabledTrackLineColorOnDark: string;
|
|
829
773
|
disabledTotalLineColor: string;
|
|
830
|
-
disabledTotalLineColorOnDark: string;
|
|
831
774
|
focusColor: string;
|
|
832
|
-
focusColorOnDark: string;
|
|
833
775
|
floorLabelMarginRight: string;
|
|
834
776
|
ceilLabelMarginLeft: string;
|
|
835
777
|
inputMarginLeft: string;
|
|
@@ -843,14 +785,12 @@ declare const useTheme: () => {
|
|
|
843
785
|
labelFontStyle: string;
|
|
844
786
|
labelFontWeight: string;
|
|
845
787
|
labelFontColor: string;
|
|
846
|
-
labelFontColorOnDark: string;
|
|
847
788
|
labelTextAlign: string;
|
|
848
789
|
progressValueFontFamily: string;
|
|
849
790
|
progressValueFontSize: string;
|
|
850
791
|
progressValueFontStyle: string;
|
|
851
792
|
progressValueFontWeight: string;
|
|
852
793
|
progressValueFontColor: string;
|
|
853
|
-
progressValueFontColorOnDark: string;
|
|
854
794
|
progressValueTextAlign: string;
|
|
855
795
|
overlayBackgroundColor: string;
|
|
856
796
|
overlayOpacity: string;
|
|
@@ -869,32 +809,21 @@ declare const useTheme: () => {
|
|
|
869
809
|
}>;
|
|
870
810
|
switch?: Partial<{
|
|
871
811
|
checkedTrackBackgroundColor: string;
|
|
872
|
-
checkedTrackBackgroundColorOnDark: string;
|
|
873
812
|
checkedThumbBackgroundColor: string;
|
|
874
|
-
checkedThumbBackgroundColorOnDark: string;
|
|
875
813
|
uncheckedTrackBackgroundColor: string;
|
|
876
|
-
uncheckedTrackBackgroundColorOnDark: string;
|
|
877
814
|
uncheckedThumbBackgroundColor: string;
|
|
878
|
-
uncheckedThumbBackgroundColorOnDark: string;
|
|
879
815
|
disabledCheckedTrackBackgroundColor: string;
|
|
880
|
-
disabledCheckedTrackBackgroundColorOnDark: string;
|
|
881
816
|
disabledCheckedThumbBackgroundColor: string;
|
|
882
|
-
disabledCheckedThumbBackgroundColorOnDark: string;
|
|
883
817
|
disabledUncheckedTrackBackgroundColor: string;
|
|
884
|
-
disabledUncheckedTrackBackgroundColorOnDark: string;
|
|
885
818
|
disabledUncheckedThumbBackgroundColor: string;
|
|
886
|
-
disabledUncheckedThumbBackgroundColorOnDark: string;
|
|
887
819
|
disabledLabelFontColor: string;
|
|
888
|
-
disabledLabelFontColorOnDark: string;
|
|
889
820
|
disabledLabelFontStyle: string;
|
|
890
821
|
labelFontFamily: string;
|
|
891
822
|
labelFontSize: string;
|
|
892
823
|
labelFontStyle: string;
|
|
893
824
|
labelFontWeight: string;
|
|
894
825
|
labelFontColor: string;
|
|
895
|
-
labelFontColorOnDark: string;
|
|
896
826
|
thumbFocusColor: string;
|
|
897
|
-
thumbFocusColorOnDark: string;
|
|
898
827
|
thumbHeight: string;
|
|
899
828
|
thumbWidth: string;
|
|
900
829
|
thumbShift: string;
|
|
@@ -917,8 +846,16 @@ declare const useTheme: () => {
|
|
|
917
846
|
dataPaddingBottom: string;
|
|
918
847
|
dataPaddingRight: string;
|
|
919
848
|
dataPaddingLeft: string;
|
|
849
|
+
dataPaddingTopReduced: string;
|
|
850
|
+
dataPaddingBottomReduced: string;
|
|
851
|
+
dataPaddingRightReduced: string;
|
|
852
|
+
dataPaddingLeftReduced: string;
|
|
920
853
|
dataTextAlign: string;
|
|
921
854
|
dataTextLineHeight: string;
|
|
855
|
+
firstChildPaddingLeft: string;
|
|
856
|
+
lastChildPaddingRight: string;
|
|
857
|
+
firstChildPaddingLeftReduced: string;
|
|
858
|
+
lastChildPaddingRightReduced: string;
|
|
922
859
|
headerBackgroundColor: string;
|
|
923
860
|
headerBorderRadius: string;
|
|
924
861
|
headerFontFamily: string;
|
|
@@ -931,11 +868,25 @@ declare const useTheme: () => {
|
|
|
931
868
|
headerPaddingBottom: string;
|
|
932
869
|
headerPaddingRight: string;
|
|
933
870
|
headerPaddingLeft: string;
|
|
871
|
+
headerPaddingTopReduced: string;
|
|
872
|
+
headerPaddingBottomReduced: string;
|
|
873
|
+
headerPaddingRightReduced: string;
|
|
874
|
+
headerPaddingLeftReduced: string;
|
|
934
875
|
headerTextAlign: string;
|
|
935
876
|
headerTextLineHeight: string;
|
|
936
877
|
scrollBarThumbColor: string;
|
|
937
878
|
scrollBarTrackColor: string;
|
|
938
879
|
sortIconColor: string;
|
|
880
|
+
actionIconColor: string;
|
|
881
|
+
disabledActionIconColor: string;
|
|
882
|
+
hoverActionIconColor: string;
|
|
883
|
+
focusActionIconColor: string;
|
|
884
|
+
activeActionIconColor: string;
|
|
885
|
+
actionBackgroundColor: string;
|
|
886
|
+
disabledActionBackgroundColor: string;
|
|
887
|
+
hoverActionBackgroundColor: string;
|
|
888
|
+
focusActionBorderColor: string;
|
|
889
|
+
activeActionBackgroundColor: string;
|
|
939
890
|
}>;
|
|
940
891
|
tabs?: Partial<{
|
|
941
892
|
fontFamily: string;
|
|
@@ -954,7 +905,6 @@ declare const useTheme: () => {
|
|
|
954
905
|
disabledFontColor: string;
|
|
955
906
|
disabledIconColor: string;
|
|
956
907
|
disabledFontStyle: string;
|
|
957
|
-
disabledBadgeBackgroundColor: string;
|
|
958
908
|
hoverBackgroundColor: string;
|
|
959
909
|
pressedBackgroundColor: string;
|
|
960
910
|
pressedFontWeight: string;
|
|
@@ -962,19 +912,6 @@ declare const useTheme: () => {
|
|
|
962
912
|
dividerThickness: string;
|
|
963
913
|
focusOutline: string;
|
|
964
914
|
scrollButtonsWidth: string;
|
|
965
|
-
badgeBackgroundColor: string;
|
|
966
|
-
badgeFontFamily: string;
|
|
967
|
-
badgeFontSize: string;
|
|
968
|
-
badgeFontStyle: string;
|
|
969
|
-
badgeFontWeight: string;
|
|
970
|
-
badgeFontColor: string;
|
|
971
|
-
badgeLetterSpacing: string;
|
|
972
|
-
badgeWidth: string;
|
|
973
|
-
badgeHeight: string;
|
|
974
|
-
badgeRadius: string;
|
|
975
|
-
badgeWidthWithNotificationNumber: string;
|
|
976
|
-
badgeHeightWithNotificationNumber: string;
|
|
977
|
-
badgeRadiusWithNotificationNumber: string;
|
|
978
915
|
}>;
|
|
979
916
|
tag?: Partial<{
|
|
980
917
|
fontFamily: string;
|
|
@@ -996,134 +933,87 @@ declare const useTheme: () => {
|
|
|
996
933
|
textarea?: Partial<{
|
|
997
934
|
fontFamily: string;
|
|
998
935
|
enabledBorderColor: string;
|
|
999
|
-
enabledBorderColorOnDark: string;
|
|
1000
936
|
hoverBorderColor: string;
|
|
1001
|
-
hoverBorderColorOnDark: string;
|
|
1002
937
|
focusBorderColor: string;
|
|
1003
|
-
focusBorderColorOnDark: string;
|
|
1004
938
|
disabledBorderColor: string;
|
|
1005
|
-
disabledBorderColorOnDark: string;
|
|
1006
939
|
disabledContainerFillColor: string;
|
|
1007
|
-
disabledContainerFillColorOnDark: string;
|
|
1008
940
|
readOnlyBorderColor: string;
|
|
1009
941
|
hoverReadOnlyBorderColor: string;
|
|
1010
942
|
errorBorderColor: string;
|
|
1011
|
-
errorBorderColorOnDark: string;
|
|
1012
943
|
hoverErrorBorderColor: string;
|
|
1013
|
-
hoverErrorBorderColorOnDark: string;
|
|
1014
944
|
inputMarginTop: string;
|
|
1015
945
|
inputMarginBottom: string;
|
|
1016
946
|
errorMessageColor: string;
|
|
1017
|
-
errorMessageColorOnDark: string;
|
|
1018
947
|
labelFontColor: string;
|
|
1019
|
-
labelFontColorOnDark: string;
|
|
1020
948
|
labelFontSize: string;
|
|
1021
949
|
labelFontStyle: string;
|
|
1022
950
|
labelFontWeight: string;
|
|
1023
951
|
labelLineHeight: string;
|
|
1024
952
|
disabledLabelFontColor: string;
|
|
1025
|
-
disabledLabelFontColorOnDark: string;
|
|
1026
953
|
optionalLabelFontWeight: string;
|
|
1027
954
|
helperTextFontColor: string;
|
|
1028
|
-
helperTextFontColorOnDark: string;
|
|
1029
955
|
helperTextFontSize: string;
|
|
1030
956
|
helperTextFontStyle: string;
|
|
1031
957
|
helperTextFontWeight: string;
|
|
1032
958
|
helperTextLineHeight: string;
|
|
1033
959
|
disabledHelperTextFontColor: string;
|
|
1034
|
-
disabledHelperTextFontColorOnDark: string;
|
|
1035
960
|
placeholderFontColor: string;
|
|
1036
|
-
placeholderFontColorOnDark: string;
|
|
1037
961
|
disabledPlaceholderFontColor: string;
|
|
1038
|
-
disabledPlaceholderFontColorOnDark: string;
|
|
1039
962
|
valueFontColor: string;
|
|
1040
|
-
valueFontColorOnDark: string;
|
|
1041
963
|
valueFontSize: string;
|
|
1042
964
|
valueFontStyle: string;
|
|
1043
965
|
valueFontWeight: string;
|
|
1044
966
|
disabledValueFontColor: string;
|
|
1045
|
-
disabledValueFontColorOnDark: string;
|
|
1046
967
|
}>;
|
|
1047
968
|
textInput?: Partial<{
|
|
1048
969
|
fontFamily: string;
|
|
1049
970
|
enabledBorderColor: string;
|
|
1050
|
-
enabledBorderColorOnDark: string;
|
|
1051
971
|
hoverBorderColor: string;
|
|
1052
|
-
hoverBorderColorOnDark: string;
|
|
1053
972
|
focusBorderColor: string;
|
|
1054
|
-
focusBorderColorOnDark: string;
|
|
1055
973
|
disabledBorderColor: string;
|
|
1056
|
-
disabledBorderColorOnDark: string;
|
|
1057
974
|
disabledContainerFillColor: string;
|
|
1058
|
-
disabledContainerFillColorOnDark: string;
|
|
1059
975
|
readOnlyBorderColor: string;
|
|
1060
976
|
hoverReadOnlyBorderColor: string;
|
|
1061
977
|
errorBorderColor: string;
|
|
1062
|
-
errorBorderColorOnDark: string;
|
|
1063
978
|
hoverErrorBorderColor: string;
|
|
1064
|
-
hoverErrorBorderColorOnDark: string;
|
|
1065
979
|
inputMarginTop: string;
|
|
1066
980
|
inputMarginBottom: string;
|
|
1067
981
|
errorMessageColor: string;
|
|
1068
|
-
errorMessageColorOnDark: string;
|
|
1069
982
|
errorIconColor: string;
|
|
1070
|
-
errorIconColorOnDark: string;
|
|
1071
983
|
labelFontColor: string;
|
|
1072
|
-
labelFontColorOnDark: string;
|
|
1073
984
|
labelFontSize: string;
|
|
1074
985
|
labelFontStyle: string;
|
|
1075
986
|
labelFontWeight: string;
|
|
1076
987
|
labelLineHeight: string;
|
|
1077
988
|
disabledLabelFontColor: string;
|
|
1078
|
-
disabledLabelFontColorOnDark: string;
|
|
1079
989
|
optionalLabelFontWeight: string;
|
|
1080
990
|
helperTextFontColor: string;
|
|
1081
|
-
helperTextFontColorOnDark: string;
|
|
1082
991
|
helperTextFontSize: string;
|
|
1083
992
|
helperTextFontStyle: string;
|
|
1084
993
|
helperTextFontWeight: string;
|
|
1085
994
|
helperTextLineHeight: string;
|
|
1086
995
|
disabledHelperTextFontColor: string;
|
|
1087
|
-
disabledHelperTextFontColorOnDark: string;
|
|
1088
996
|
prefixColor: string;
|
|
1089
|
-
prefixColorOnDark: string;
|
|
1090
997
|
suffixColor: string;
|
|
1091
|
-
suffixColorOnDark: string;
|
|
1092
998
|
disabledPrefixColor: string;
|
|
1093
999
|
disabledSuffixColor: string;
|
|
1094
|
-
disabledPrefixColorOnDark: string;
|
|
1095
|
-
disabledSuffixColorOnDark: string;
|
|
1096
1000
|
placeholderFontColor: string;
|
|
1097
|
-
placeholderFontColorOnDark: string;
|
|
1098
1001
|
disabledPlaceholderFontColor: string;
|
|
1099
|
-
disabledPlaceholderFontColorOnDark: string;
|
|
1100
1002
|
valueFontColor: string;
|
|
1101
|
-
valueFontColorOnDark: string;
|
|
1102
1003
|
valueFontSize: string;
|
|
1103
1004
|
valueFontStyle: string;
|
|
1104
1005
|
valueFontWeight: string;
|
|
1105
1006
|
disabledValueFontColor: string;
|
|
1106
|
-
disabledValueFontColorOnDark: string;
|
|
1107
1007
|
actionIconColor: string;
|
|
1108
|
-
actionIconColorOnDark: string;
|
|
1109
1008
|
disabledActionIconColor: string;
|
|
1110
|
-
disabledActionIconColorOnDark: string;
|
|
1111
1009
|
hoverActionIconColor: string;
|
|
1112
|
-
hoverActionIconColorOnDark: string;
|
|
1113
1010
|
focusActionIconColor: string;
|
|
1114
|
-
focusActionIconColorOnDark: string;
|
|
1115
1011
|
activeActionIconColor: string;
|
|
1116
|
-
activeActionIconColorOnDark: string;
|
|
1117
1012
|
actionBackgroundColor: string;
|
|
1118
|
-
actionBackgroundColorOnDark: string;
|
|
1119
1013
|
disabledActionBackgroundColor: string;
|
|
1120
|
-
disabledActionBackgroundColorOnDark: string;
|
|
1121
1014
|
hoverActionBackgroundColor: string;
|
|
1122
|
-
hoverActionBackgroundColorOnDark: string;
|
|
1123
1015
|
focusActionBorderColor: string;
|
|
1124
|
-
focusActionBorderColorOnDark: string;
|
|
1125
1016
|
activeActionBackgroundColor: string;
|
|
1126
|
-
activeActionBackgroundColorOnDark: string;
|
|
1127
1017
|
listDialogBackgroundColor: string;
|
|
1128
1018
|
listDialogBorderColor: string;
|
|
1129
1019
|
listOptionDividerColor: string;
|
package/utils/BaseTypography.js
CHANGED
|
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
12
12
|
var _templateObject;
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
15
15
|
var TypographyContext = /*#__PURE__*/_react["default"].createContext(null);
|
|
16
16
|
var BaseTypography = function BaseTypography(_ref) {
|
|
17
17
|
var as = _ref.as,
|
package/utils/FocusLock.js
CHANGED
|
@@ -9,7 +9,7 @@ exports["default"] = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
13
13
|
var not = {
|
|
14
14
|
negTabIndex: ':not([tabindex^="-"])',
|
|
15
15
|
disabled: ":not(:disabled)"
|
|
@@ -28,7 +28,7 @@ var getFocusableElements = function getFocusableElements(container) {
|
|
|
28
28
|
* @param element: HTMLElement
|
|
29
29
|
* @returns
|
|
30
30
|
*/
|
|
31
|
-
var
|
|
31
|
+
var attemptFocus = function attemptFocus(element) {
|
|
32
32
|
element === null || element === void 0 ? void 0 : element.focus();
|
|
33
33
|
return document.activeElement === element;
|
|
34
34
|
};
|
|
@@ -39,8 +39,11 @@ var attempFocus = function attempFocus(element) {
|
|
|
39
39
|
*/
|
|
40
40
|
var radixPortalContains = function radixPortalContains(activeElement) {
|
|
41
41
|
var radixPortals = document.querySelectorAll("[data-radix-portal]");
|
|
42
|
+
var radixPoppers = document.querySelectorAll("[data-radix-popper-content-wrapper]");
|
|
42
43
|
return Array.prototype.slice.call(radixPortals).some(function (portal) {
|
|
43
44
|
return portal.contains(activeElement);
|
|
45
|
+
}) || Array.prototype.slice.call(radixPoppers).some(function (popper) {
|
|
46
|
+
return popper.contains(activeElement);
|
|
44
47
|
});
|
|
45
48
|
};
|
|
46
49
|
|
|
@@ -87,13 +90,17 @@ var FocusLock = function FocusLock(_ref) {
|
|
|
87
90
|
var focusableElements = useFocusableElements(childrenContainerRef);
|
|
88
91
|
var focusFirst = (0, _react.useCallback)(function () {
|
|
89
92
|
var _childrenContainerRef;
|
|
90
|
-
if ((focusableElements === null || focusableElements === void 0 ? void 0 : focusableElements.length) === 0) (_childrenContainerRef = childrenContainerRef.current) === null || _childrenContainerRef === void 0 ? void 0 : _childrenContainerRef.focus();else if ((focusableElements === null || focusableElements === void 0 ? void 0 : focusableElements.length) > 0)
|
|
93
|
+
if ((focusableElements === null || focusableElements === void 0 ? void 0 : focusableElements.length) === 0) (_childrenContainerRef = childrenContainerRef.current) === null || _childrenContainerRef === void 0 ? void 0 : _childrenContainerRef.focus();else if ((focusableElements === null || focusableElements === void 0 ? void 0 : focusableElements.length) > 0) focusableElements.some(function (element) {
|
|
94
|
+
return attemptFocus(element);
|
|
95
|
+
});
|
|
91
96
|
}, [focusableElements]);
|
|
92
97
|
var focusLast = function focusLast() {
|
|
93
|
-
|
|
98
|
+
focusableElements.reverse().some(function (element) {
|
|
99
|
+
return attemptFocus(element);
|
|
100
|
+
});
|
|
94
101
|
};
|
|
95
102
|
var focusLock = function focusLock(event) {
|
|
96
|
-
if (event.key === "Tab") focusableElements.length === 0 && event.preventDefault();
|
|
103
|
+
if (event.key === "Tab") focusableElements.length === 0 && event.preventDefault();
|
|
97
104
|
};
|
|
98
105
|
(0, _react.useEffect)(function () {
|
|
99
106
|
var _childrenContainerRef2;
|
|
@@ -105,7 +112,10 @@ var FocusLock = function FocusLock(_ref) {
|
|
|
105
112
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
113
|
onKeyDown: focusLock,
|
|
107
114
|
ref: childrenContainerRef,
|
|
108
|
-
tabIndex: (focusableElements === null || focusableElements === void 0 ? void 0 : focusableElements.length) === 0 ? 0 : -1
|
|
115
|
+
tabIndex: (focusableElements === null || focusableElements === void 0 ? void 0 : focusableElements.length) === 0 ? 0 : -1,
|
|
116
|
+
style: {
|
|
117
|
+
outline: "none"
|
|
118
|
+
}
|
|
109
119
|
}, children), /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
120
|
onFocus: focusFirst,
|
|
111
121
|
tabIndex: 0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
5
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
var _react2 = require("@testing-library/react");
|
|
8
|
+
var _axeHelper = require("../../test/accessibility/axe-helper.js");
|
|
9
|
+
var _Wizard = _interopRequireDefault(require("./Wizard"));
|
|
10
|
+
var favoriteSVG = /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
fill: "currentColor"
|
|
13
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
14
|
+
d: "M0 0h24v24H0z",
|
|
15
|
+
fill: "none"
|
|
16
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
17
|
+
d: "M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
|
|
18
|
+
}));
|
|
19
|
+
describe("Wizard component accessibility tests", function () {
|
|
20
|
+
it("Should not have basic accessibility issues", /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
21
|
+
var _render, container, results;
|
|
22
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
23
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24
|
+
case 0:
|
|
25
|
+
_render = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Wizard["default"], {
|
|
26
|
+
steps: [{
|
|
27
|
+
label: "first-step",
|
|
28
|
+
description: "Description",
|
|
29
|
+
icon: favoriteSVG
|
|
30
|
+
}, {
|
|
31
|
+
label: "second-step",
|
|
32
|
+
description: "Description"
|
|
33
|
+
}, {
|
|
34
|
+
label: "valid-step",
|
|
35
|
+
valid: true
|
|
36
|
+
}, {
|
|
37
|
+
label: "disabled-step",
|
|
38
|
+
disabled: true
|
|
39
|
+
}],
|
|
40
|
+
mode: "vertical",
|
|
41
|
+
defaultCurrentStep: 1,
|
|
42
|
+
margin: "medium"
|
|
43
|
+
})), container = _render.container;
|
|
44
|
+
_context.next = 3;
|
|
45
|
+
return (0, _axeHelper.axe)(container);
|
|
46
|
+
case 3:
|
|
47
|
+
results = _context.sent;
|
|
48
|
+
expect(results).toHaveNoViolations();
|
|
49
|
+
case 5:
|
|
50
|
+
case "end":
|
|
51
|
+
return _context.stop();
|
|
52
|
+
}
|
|
53
|
+
}, _callee);
|
|
54
|
+
})));
|
|
55
|
+
});
|