@dxc-technology/halstack-react 0.0.0-f77ec3a → 0.0.0-f7c88cc
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 +10 -0
- package/BackgroundColorContext.js +35 -0
- package/HalstackContext.d.ts +1353 -0
- package/HalstackContext.js +310 -0
- package/README.md +28 -47
- package/accordion/Accordion.d.ts +4 -0
- package/accordion/Accordion.js +185 -0
- package/accordion/Accordion.stories.tsx +283 -0
- package/accordion/Accordion.test.js +56 -0
- package/accordion/types.d.ts +57 -0
- package/accordion/types.js +5 -0
- package/accordion-group/AccordionGroup.d.ts +8 -0
- package/accordion-group/AccordionGroup.js +101 -0
- package/accordion-group/AccordionGroup.stories.tsx +252 -0
- package/accordion-group/AccordionGroup.test.js +98 -0
- package/accordion-group/AccordionGroupAccordion.d.ts +4 -0
- package/accordion-group/AccordionGroupAccordion.js +31 -0
- package/accordion-group/types.d.ts +67 -0
- package/accordion-group/types.js +5 -0
- package/alert/Alert.d.ts +4 -0
- package/{dist/alert → alert}/Alert.js +56 -202
- package/alert/Alert.stories.tsx +198 -0
- package/alert/Alert.test.js +75 -0
- package/alert/types.d.ts +49 -0
- package/alert/types.js +5 -0
- package/badge/Badge.d.ts +4 -0
- package/badge/Badge.js +48 -0
- package/badge/types.d.ts +5 -0
- package/badge/types.js +5 -0
- package/bleed/Bleed.d.ts +3 -0
- package/bleed/Bleed.js +43 -0
- package/bleed/Bleed.stories.tsx +342 -0
- package/bleed/types.d.ts +37 -0
- package/bleed/types.js +5 -0
- package/box/Box.d.ts +4 -0
- package/box/Box.js +78 -0
- package/box/Box.stories.tsx +119 -0
- package/box/Box.test.js +13 -0
- package/box/types.d.ts +32 -0
- package/box/types.js +5 -0
- package/bulleted-list/BulletedList.d.ts +7 -0
- package/bulleted-list/BulletedList.js +99 -0
- package/bulleted-list/BulletedList.stories.tsx +116 -0
- package/bulleted-list/types.d.ts +38 -0
- package/bulleted-list/types.js +5 -0
- package/button/Button.d.ts +4 -0
- package/button/Button.js +121 -0
- package/button/Button.stories.tsx +344 -0
- package/button/Button.test.js +36 -0
- package/button/types.d.ts +57 -0
- package/button/types.js +5 -0
- package/card/Card.d.ts +4 -0
- package/card/Card.js +120 -0
- package/card/Card.stories.tsx +171 -0
- package/card/Card.test.js +39 -0
- package/card/types.d.ts +62 -0
- package/card/types.js +5 -0
- package/checkbox/Checkbox.d.ts +4 -0
- package/checkbox/Checkbox.js +220 -0
- package/checkbox/Checkbox.stories.tsx +222 -0
- package/checkbox/Checkbox.test.js +199 -0
- package/checkbox/types.d.ts +72 -0
- package/checkbox/types.js +5 -0
- package/chip/Chip.d.ts +4 -0
- package/chip/Chip.js +121 -0
- package/chip/Chip.stories.tsx +214 -0
- package/chip/Chip.test.js +41 -0
- package/chip/types.d.ts +45 -0
- package/chip/types.js +5 -0
- package/common/OpenSans.css +69 -0
- package/common/coreTokens.d.ts +237 -0
- package/common/coreTokens.js +184 -0
- package/common/utils.d.ts +1 -0
- package/{dist/common → common}/utils.js +6 -12
- package/common/variables.d.ts +1499 -0
- package/common/variables.js +1371 -0
- package/container/Container.d.ts +4 -0
- package/container/Container.js +198 -0
- package/container/Container.stories.tsx +229 -0
- package/container/types.d.ts +74 -0
- package/container/types.js +5 -0
- package/date-input/Calendar.d.ts +4 -0
- package/date-input/Calendar.js +214 -0
- package/date-input/DateInput.d.ts +4 -0
- package/date-input/DateInput.js +223 -0
- package/date-input/DateInput.stories.tsx +285 -0
- package/date-input/DateInput.test.js +808 -0
- package/date-input/DatePicker.d.ts +4 -0
- package/date-input/DatePicker.js +115 -0
- package/date-input/Icons.d.ts +6 -0
- package/date-input/Icons.js +58 -0
- package/date-input/YearPicker.d.ts +4 -0
- package/date-input/YearPicker.js +100 -0
- package/date-input/types.d.ts +164 -0
- package/date-input/types.js +5 -0
- package/dialog/Dialog.d.ts +4 -0
- package/dialog/Dialog.js +107 -0
- package/dialog/Dialog.stories.tsx +365 -0
- package/dialog/Dialog.test.js +307 -0
- package/dialog/types.d.ts +36 -0
- package/dialog/types.js +5 -0
- package/dropdown/Dropdown.d.ts +4 -0
- package/dropdown/Dropdown.js +334 -0
- package/dropdown/Dropdown.stories.tsx +438 -0
- package/dropdown/Dropdown.test.js +599 -0
- package/dropdown/DropdownMenu.d.ts +4 -0
- package/dropdown/DropdownMenu.js +63 -0
- package/dropdown/DropdownMenuItem.d.ts +4 -0
- package/dropdown/DropdownMenuItem.js +67 -0
- package/dropdown/types.d.ts +98 -0
- package/dropdown/types.js +5 -0
- package/file-input/FileInput.d.ts +4 -0
- package/file-input/FileInput.js +479 -0
- package/file-input/FileInput.stories.tsx +618 -0
- package/file-input/FileInput.test.js +459 -0
- package/file-input/FileItem.d.ts +4 -0
- package/file-input/FileItem.js +135 -0
- package/file-input/types.d.ts +129 -0
- package/file-input/types.js +5 -0
- package/flex/Flex.d.ts +4 -0
- package/flex/Flex.js +57 -0
- package/flex/Flex.stories.tsx +112 -0
- package/flex/types.d.ts +97 -0
- package/flex/types.js +5 -0
- package/footer/Footer.d.ts +4 -0
- package/footer/Footer.js +135 -0
- package/footer/Footer.stories.tsx +152 -0
- package/footer/Footer.test.js +85 -0
- package/footer/Icons.d.ts +2 -0
- package/{dist/footer → footer}/Icons.js +16 -21
- package/footer/types.d.ts +64 -0
- package/footer/types.js +5 -0
- package/grid/Grid.d.ts +7 -0
- package/grid/Grid.js +76 -0
- package/grid/Grid.stories.tsx +219 -0
- package/grid/types.d.ts +115 -0
- package/grid/types.js +5 -0
- package/header/Header.d.ts +8 -0
- package/header/Header.js +231 -0
- package/header/Header.stories.tsx +251 -0
- package/header/Header.test.js +66 -0
- package/header/Icons.d.ts +2 -0
- package/{dist/header → header}/Icons.js +9 -39
- package/header/types.d.ts +32 -0
- package/header/types.js +5 -0
- package/heading/Heading.d.ts +4 -0
- package/{dist/heading → heading}/Heading.js +31 -124
- package/heading/Heading.stories.tsx +54 -0
- package/heading/Heading.test.js +169 -0
- package/heading/types.d.ts +33 -0
- package/heading/types.js +5 -0
- package/image/Image.d.ts +4 -0
- package/image/Image.js +70 -0
- package/image/Image.stories.tsx +127 -0
- package/image/types.d.ts +72 -0
- package/image/types.js +5 -0
- package/inset/Inset.d.ts +3 -0
- package/inset/Inset.js +43 -0
- package/inset/Inset.stories.tsx +230 -0
- package/inset/types.d.ts +37 -0
- package/inset/types.js +5 -0
- package/layout/ApplicationLayout.d.ts +20 -0
- package/layout/ApplicationLayout.js +134 -0
- package/layout/ApplicationLayout.stories.tsx +162 -0
- package/layout/Icons.d.ts +8 -0
- package/layout/Icons.js +58 -0
- package/layout/SidenavContext.d.ts +5 -0
- package/layout/SidenavContext.js +13 -0
- package/layout/types.d.ts +41 -0
- package/layout/types.js +5 -0
- package/link/Link.d.ts +4 -0
- package/link/Link.js +115 -0
- package/link/Link.stories.tsx +253 -0
- package/link/Link.test.js +63 -0
- package/link/types.d.ts +54 -0
- package/link/types.js +5 -0
- package/main.d.ts +47 -0
- package/{dist/main.js → main.js} +124 -140
- package/nav-tabs/NavTabs.d.ts +8 -0
- package/nav-tabs/NavTabs.js +90 -0
- package/nav-tabs/NavTabs.stories.tsx +274 -0
- package/nav-tabs/NavTabs.test.js +75 -0
- package/nav-tabs/Tab.d.ts +4 -0
- package/nav-tabs/Tab.js +117 -0
- package/nav-tabs/types.d.ts +52 -0
- package/nav-tabs/types.js +5 -0
- package/number-input/NumberInput.d.ts +11 -0
- package/number-input/NumberInput.js +67 -0
- package/number-input/NumberInput.stories.tsx +131 -0
- package/number-input/NumberInput.test.js +830 -0
- package/number-input/types.d.ts +130 -0
- package/number-input/types.js +5 -0
- package/package.json +56 -52
- package/paginator/Icons.d.ts +5 -0
- package/paginator/Icons.js +40 -0
- package/paginator/Paginator.d.ts +4 -0
- package/paginator/Paginator.js +138 -0
- package/paginator/Paginator.stories.tsx +87 -0
- package/paginator/Paginator.test.js +335 -0
- package/paginator/types.d.ts +38 -0
- package/paginator/types.js +5 -0
- package/paragraph/Paragraph.d.ts +5 -0
- package/paragraph/Paragraph.js +27 -0
- package/paragraph/Paragraph.stories.tsx +27 -0
- package/password-input/Icons.d.ts +6 -0
- package/password-input/Icons.js +35 -0
- package/password-input/PasswordInput.d.ts +4 -0
- package/password-input/PasswordInput.js +97 -0
- package/password-input/PasswordInput.stories.tsx +100 -0
- package/password-input/PasswordInput.test.js +198 -0
- package/password-input/types.d.ts +111 -0
- package/password-input/types.js +5 -0
- package/progress-bar/ProgressBar.d.ts +4 -0
- package/progress-bar/ProgressBar.js +150 -0
- package/progress-bar/ProgressBar.stories.tsx +93 -0
- package/progress-bar/ProgressBar.test.js +93 -0
- package/progress-bar/types.d.ts +37 -0
- package/progress-bar/types.js +5 -0
- package/quick-nav/QuickNav.d.ts +4 -0
- package/quick-nav/QuickNav.js +94 -0
- package/quick-nav/QuickNav.stories.tsx +356 -0
- package/quick-nav/types.d.ts +21 -0
- package/quick-nav/types.js +5 -0
- package/radio-group/Radio.d.ts +4 -0
- package/radio-group/Radio.js +124 -0
- package/radio-group/RadioGroup.d.ts +4 -0
- package/radio-group/RadioGroup.js +235 -0
- package/radio-group/RadioGroup.stories.tsx +214 -0
- package/radio-group/RadioGroup.test.js +756 -0
- package/radio-group/types.d.ts +114 -0
- package/radio-group/types.js +5 -0
- package/resultset-table/Icons.d.ts +7 -0
- package/resultset-table/Icons.js +47 -0
- package/resultset-table/ResultsetTable.d.ts +4 -0
- package/resultset-table/ResultsetTable.js +159 -0
- package/resultset-table/ResultsetTable.stories.tsx +300 -0
- package/resultset-table/ResultsetTable.test.js +305 -0
- package/resultset-table/types.d.ts +67 -0
- package/resultset-table/types.js +5 -0
- package/select/Icons.d.ts +10 -0
- package/select/Icons.js +89 -0
- package/select/Listbox.d.ts +4 -0
- package/select/Listbox.js +143 -0
- package/select/Option.d.ts +4 -0
- package/select/Option.js +80 -0
- package/select/Select.d.ts +4 -0
- package/select/Select.js +582 -0
- package/select/Select.stories.tsx +971 -0
- package/select/Select.test.js +2334 -0
- package/select/types.d.ts +209 -0
- package/select/types.js +5 -0
- package/sidenav/Icons.d.ts +7 -0
- package/sidenav/Icons.js +47 -0
- package/sidenav/Sidenav.d.ts +10 -0
- package/sidenav/Sidenav.js +199 -0
- package/sidenav/Sidenav.stories.tsx +282 -0
- package/sidenav/Sidenav.test.js +37 -0
- package/sidenav/types.d.ts +76 -0
- package/sidenav/types.js +5 -0
- package/slider/Slider.d.ts +4 -0
- package/slider/Slider.js +294 -0
- package/slider/Slider.test.js +254 -0
- package/slider/types.d.ts +86 -0
- package/slider/types.js +5 -0
- package/spinner/Spinner.d.ts +4 -0
- package/spinner/Spinner.js +214 -0
- package/spinner/Spinner.stories.tsx +129 -0
- package/spinner/Spinner.test.js +55 -0
- package/spinner/types.d.ts +32 -0
- package/spinner/types.js +5 -0
- package/switch/Switch.d.ts +4 -0
- package/switch/Switch.js +219 -0
- package/switch/Switch.stories.tsx +137 -0
- package/switch/Switch.test.js +180 -0
- package/switch/types.d.ts +66 -0
- package/switch/types.js +5 -0
- package/table/Table.d.ts +4 -0
- package/{dist/table → table}/Table.js +15 -48
- package/table/Table.stories.tsx +356 -0
- package/table/Table.test.js +21 -0
- package/table/types.d.ts +21 -0
- package/table/types.js +5 -0
- package/tabs/Tab.d.ts +4 -0
- package/tabs/Tab.js +113 -0
- package/tabs/Tabs.d.ts +4 -0
- package/tabs/Tabs.js +385 -0
- package/tabs/Tabs.stories.tsx +226 -0
- package/tabs/Tabs.test.js +294 -0
- package/tabs/types.d.ts +92 -0
- package/tabs/types.js +5 -0
- package/tag/Tag.d.ts +4 -0
- package/tag/Tag.js +151 -0
- package/tag/Tag.stories.tsx +155 -0
- package/tag/Tag.test.js +49 -0
- package/tag/types.d.ts +69 -0
- package/tag/types.js +5 -0
- package/text-input/Icons.d.ts +8 -0
- package/text-input/Icons.js +56 -0
- package/text-input/Suggestion.d.ts +4 -0
- package/text-input/Suggestion.js +67 -0
- package/text-input/Suggestions.d.ts +4 -0
- package/text-input/Suggestions.js +89 -0
- package/text-input/TextInput.d.ts +4 -0
- package/text-input/TextInput.js +592 -0
- package/text-input/TextInput.stories.tsx +465 -0
- package/text-input/TextInput.test.js +1739 -0
- package/text-input/types.d.ts +205 -0
- package/text-input/types.js +5 -0
- package/textarea/Textarea.d.ts +4 -0
- package/textarea/Textarea.js +240 -0
- package/textarea/Textarea.stories.tsx +175 -0
- package/textarea/Textarea.test.js +406 -0
- package/textarea/types.d.ts +141 -0
- package/textarea/types.js +5 -0
- package/toggle-group/ToggleGroup.d.ts +4 -0
- package/toggle-group/ToggleGroup.js +204 -0
- package/toggle-group/ToggleGroup.stories.tsx +218 -0
- package/toggle-group/ToggleGroup.test.js +137 -0
- package/toggle-group/types.d.ts +114 -0
- package/toggle-group/types.js +5 -0
- package/typography/Typography.d.ts +4 -0
- package/typography/Typography.js +23 -0
- package/typography/Typography.stories.tsx +198 -0
- package/typography/types.d.ts +18 -0
- package/typography/types.js +5 -0
- package/useTheme.d.ts +1252 -0
- package/{dist/useTheme.js → useTheme.js} +4 -11
- package/useTranslatedLabels.d.ts +85 -0
- package/useTranslatedLabels.js +14 -0
- package/utils/BaseTypography.d.ts +21 -0
- package/utils/BaseTypography.js +94 -0
- package/utils/FocusLock.d.ts +13 -0
- package/utils/FocusLock.js +121 -0
- package/wizard/Wizard.d.ts +4 -0
- package/wizard/Wizard.js +250 -0
- package/wizard/Wizard.stories.tsx +253 -0
- package/wizard/Wizard.test.js +114 -0
- package/wizard/types.d.ts +64 -0
- package/wizard/types.js +5 -0
- package/babel.config.js +0 -7
- package/dist/BackgroundColorContext.js +0 -46
- package/dist/ThemeContext.js +0 -250
- package/dist/V3Select/V3Select.js +0 -549
- package/dist/V3Select/index.d.ts +0 -27
- package/dist/V3Textarea/V3Textarea.js +0 -264
- package/dist/V3Textarea/index.d.ts +0 -27
- package/dist/accordion/Accordion.js +0 -353
- package/dist/accordion/index.d.ts +0 -28
- package/dist/accordion-group/AccordionGroup.js +0 -186
- package/dist/accordion-group/index.d.ts +0 -16
- package/dist/alert/index.d.ts +0 -51
- package/dist/badge/Badge.js +0 -63
- package/dist/box/Box.js +0 -156
- package/dist/box/index.d.ts +0 -25
- package/dist/button/Button.js +0 -238
- package/dist/button/index.d.ts +0 -24
- package/dist/card/Card.js +0 -254
- package/dist/card/index.d.ts +0 -22
- package/dist/checkbox/Checkbox.js +0 -299
- package/dist/checkbox/index.d.ts +0 -24
- package/dist/chip/Chip.js +0 -265
- package/dist/chip/index.d.ts +0 -22
- package/dist/common/OpenSans.css +0 -81
- package/dist/common/RequiredComponent.js +0 -40
- package/dist/common/variables.js +0 -1574
- package/dist/date/Date.js +0 -379
- package/dist/date/index.d.ts +0 -27
- package/dist/date-input/DateInput.js +0 -400
- package/dist/date-input/index.d.ts +0 -95
- package/dist/dialog/Dialog.js +0 -218
- package/dist/dialog/index.d.ts +0 -18
- package/dist/dropdown/Dropdown.js +0 -544
- package/dist/dropdown/index.d.ts +0 -26
- package/dist/file-input/FileInput.js +0 -644
- package/dist/file-input/FileItem.js +0 -287
- package/dist/file-input/index.d.ts +0 -81
- package/dist/footer/Footer.js +0 -421
- package/dist/footer/index.d.ts +0 -25
- package/dist/header/Header.js +0 -470
- package/dist/header/index.d.ts +0 -25
- package/dist/heading/index.d.ts +0 -17
- package/dist/input-text/Icons.js +0 -22
- package/dist/input-text/InputText.js +0 -705
- package/dist/input-text/index.d.ts +0 -36
- package/dist/layout/ApplicationLayout.js +0 -327
- package/dist/layout/Icons.js +0 -55
- package/dist/link/Link.js +0 -237
- package/dist/link/index.d.ts +0 -23
- package/dist/main.d.ts +0 -40
- package/dist/number-input/NumberInput.js +0 -136
- package/dist/number-input/NumberInputContext.js +0 -16
- package/dist/number-input/index.d.ts +0 -113
- package/dist/paginator/Icons.js +0 -66
- package/dist/paginator/Paginator.js +0 -305
- package/dist/paginator/index.d.ts +0 -20
- package/dist/password-input/PasswordInput.js +0 -203
- package/dist/password-input/index.d.ts +0 -94
- package/dist/progress-bar/ProgressBar.js +0 -242
- package/dist/progress-bar/index.d.ts +0 -18
- package/dist/radio/Radio.js +0 -209
- package/dist/radio/index.d.ts +0 -23
- package/dist/resultsetTable/ResultsetTable.js +0 -358
- package/dist/resultsetTable/index.d.ts +0 -19
- package/dist/select/Select.js +0 -1096
- package/dist/select/index.d.ts +0 -53
- package/dist/sidenav/Sidenav.js +0 -179
- package/dist/sidenav/index.d.ts +0 -13
- package/dist/slider/Slider.js +0 -404
- package/dist/slider/index.d.ts +0 -29
- package/dist/spinner/Spinner.js +0 -381
- package/dist/spinner/index.d.ts +0 -17
- package/dist/stories/Button.js +0 -71
- package/dist/stories/Button.stories.js +0 -55
- package/dist/stories/Header.js +0 -67
- package/dist/stories/Header.stories.js +0 -31
- package/dist/stories/Introduction.stories.mdx +0 -211
- package/dist/stories/Page.js +0 -68
- package/dist/stories/Page.stories.js +0 -39
- package/dist/stories/assets/code-brackets.svg +0 -1
- package/dist/stories/assets/colors.svg +0 -1
- package/dist/stories/assets/comments.svg +0 -1
- package/dist/stories/assets/direction.svg +0 -1
- package/dist/stories/assets/flow.svg +0 -1
- package/dist/stories/assets/plugin.svg +0 -1
- package/dist/stories/assets/repo.svg +0 -1
- package/dist/stories/assets/stackalt.svg +0 -1
- package/dist/stories/button.css +0 -30
- package/dist/stories/header.css +0 -26
- package/dist/stories/page.css +0 -69
- package/dist/switch/Switch.js +0 -222
- package/dist/switch/index.d.ts +0 -24
- package/dist/table/index.d.ts +0 -13
- package/dist/tabs/Tabs.js +0 -343
- package/dist/tabs/index.d.ts +0 -19
- package/dist/tag/Tag.js +0 -282
- package/dist/tag/index.d.ts +0 -24
- package/dist/text-input/TextInput.js +0 -974
- package/dist/text-input/index.d.ts +0 -135
- package/dist/textarea/Textarea.js +0 -369
- package/dist/textarea/index.d.ts +0 -117
- package/dist/toggle/Toggle.js +0 -220
- package/dist/toggle/index.d.ts +0 -21
- package/dist/toggle-group/ToggleGroup.js +0 -327
- package/dist/toggle-group/index.d.ts +0 -21
- package/dist/upload/Upload.js +0 -205
- package/dist/upload/buttons-upload/ButtonsUpload.js +0 -135
- package/dist/upload/buttons-upload/Icons.js +0 -40
- package/dist/upload/dragAndDropArea/DragAndDropArea.js +0 -329
- package/dist/upload/dragAndDropArea/Icons.js +0 -39
- package/dist/upload/file-upload/FileToUpload.js +0 -189
- package/dist/upload/file-upload/Icons.js +0 -66
- package/dist/upload/files-upload/FilesToUpload.js +0 -123
- package/dist/upload/index.d.ts +0 -15
- package/dist/upload/transaction/Icons.js +0 -160
- package/dist/upload/transaction/Transaction.js +0 -148
- package/dist/upload/transactions/Transactions.js +0 -138
- package/dist/wizard/Icons.js +0 -65
- package/dist/wizard/Wizard.js +0 -405
- package/dist/wizard/index.d.ts +0 -18
- package/test/Accordion.test.js +0 -33
- package/test/AccordionGroup.test.js +0 -125
- package/test/Alert.test.js +0 -53
- package/test/Box.test.js +0 -10
- package/test/Button.test.js +0 -18
- package/test/Card.test.js +0 -30
- package/test/Checkbox.test.js +0 -45
- package/test/Chip.test.js +0 -25
- package/test/Date.test.js +0 -395
- package/test/DateInput.test.js +0 -242
- package/test/Dialog.test.js +0 -23
- package/test/Dropdown.test.js +0 -145
- package/test/FileInput.test.js +0 -201
- package/test/Footer.test.js +0 -94
- package/test/Header.test.js +0 -34
- package/test/Heading.test.js +0 -83
- package/test/InputText.test.js +0 -239
- package/test/Link.test.js +0 -43
- package/test/NumberInput.test.js +0 -259
- package/test/Paginator.test.js +0 -181
- package/test/PasswordInput.test.js +0 -83
- package/test/ProgressBar.test.js +0 -35
- package/test/Radio.test.js +0 -37
- package/test/ResultsetTable.test.js +0 -330
- package/test/Select.test.js +0 -415
- package/test/Sidenav.test.js +0 -45
- package/test/Slider.test.js +0 -74
- package/test/Spinner.test.js +0 -32
- package/test/Switch.test.js +0 -45
- package/test/Table.test.js +0 -36
- package/test/Tabs.test.js +0 -109
- package/test/Tag.test.js +0 -32
- package/test/TextInput.test.js +0 -732
- package/test/Textarea.test.js +0 -193
- package/test/ToggleGroup.test.js +0 -85
- package/test/Upload.test.js +0 -60
- package/test/V3Select.test.js +0 -212
- package/test/V3TextArea.test.js +0 -51
- package/test/Wizard.test.js +0 -130
- package/test/mocks/pngMock.js +0 -1
- package/test/mocks/svgMock.js +0 -1
- /package/{dist/common → common}/fonts/OpenSans-Bold.ttf +0 -0
- /package/{dist/common → common}/fonts/OpenSans-BoldItalic.ttf +0 -0
- /package/{dist/common → common}/fonts/OpenSans-ExtraBold.ttf +0 -0
- /package/{dist/common → common}/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
- /package/{dist/common → common}/fonts/OpenSans-Italic.ttf +0 -0
- /package/{dist/common → common}/fonts/OpenSans-Light.ttf +0 -0
- /package/{dist/common → common}/fonts/OpenSans-LightItalic.ttf +0 -0
- /package/{dist/common → common}/fonts/OpenSans-Regular.ttf +0 -0
- /package/{dist/common → common}/fonts/OpenSans-SemiBold.ttf +0 -0
- /package/{dist/common → common}/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
package/{dist/main.js → main.js}
RENAMED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
Object.defineProperty(exports, "
|
|
8
|
+
Object.defineProperty(exports, "BackgroundColorProvider", {
|
|
11
9
|
enumerable: true,
|
|
12
10
|
get: function get() {
|
|
13
|
-
return
|
|
11
|
+
return _BackgroundColorContext.BackgroundColorProvider;
|
|
14
12
|
}
|
|
15
13
|
});
|
|
16
14
|
Object.defineProperty(exports, "DxcAccordion", {
|
|
@@ -19,124 +17,148 @@ Object.defineProperty(exports, "DxcAccordion", {
|
|
|
19
17
|
return _Accordion["default"];
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
|
-
Object.defineProperty(exports, "
|
|
20
|
+
Object.defineProperty(exports, "DxcAccordionGroup", {
|
|
23
21
|
enumerable: true,
|
|
24
22
|
get: function get() {
|
|
25
|
-
return
|
|
23
|
+
return _AccordionGroup["default"];
|
|
26
24
|
}
|
|
27
25
|
});
|
|
28
|
-
Object.defineProperty(exports, "
|
|
26
|
+
Object.defineProperty(exports, "DxcAlert", {
|
|
29
27
|
enumerable: true,
|
|
30
28
|
get: function get() {
|
|
31
|
-
return
|
|
29
|
+
return _Alert["default"];
|
|
32
30
|
}
|
|
33
31
|
});
|
|
34
|
-
Object.defineProperty(exports, "
|
|
32
|
+
Object.defineProperty(exports, "DxcApplicationLayout", {
|
|
35
33
|
enumerable: true,
|
|
36
34
|
get: function get() {
|
|
37
|
-
return
|
|
35
|
+
return _ApplicationLayout["default"];
|
|
38
36
|
}
|
|
39
37
|
});
|
|
40
|
-
Object.defineProperty(exports, "
|
|
38
|
+
Object.defineProperty(exports, "DxcBadge", {
|
|
41
39
|
enumerable: true,
|
|
42
40
|
get: function get() {
|
|
43
|
-
return
|
|
41
|
+
return _Badge["default"];
|
|
44
42
|
}
|
|
45
43
|
});
|
|
46
|
-
Object.defineProperty(exports, "
|
|
44
|
+
Object.defineProperty(exports, "DxcBleed", {
|
|
47
45
|
enumerable: true,
|
|
48
46
|
get: function get() {
|
|
49
|
-
return
|
|
47
|
+
return _Bleed["default"];
|
|
50
48
|
}
|
|
51
49
|
});
|
|
52
|
-
Object.defineProperty(exports, "
|
|
50
|
+
Object.defineProperty(exports, "DxcBox", {
|
|
53
51
|
enumerable: true,
|
|
54
52
|
get: function get() {
|
|
55
|
-
return
|
|
53
|
+
return _Box["default"];
|
|
56
54
|
}
|
|
57
55
|
});
|
|
58
|
-
Object.defineProperty(exports, "
|
|
56
|
+
Object.defineProperty(exports, "DxcBulletedList", {
|
|
59
57
|
enumerable: true,
|
|
60
58
|
get: function get() {
|
|
61
|
-
return
|
|
59
|
+
return _BulletedList["default"];
|
|
62
60
|
}
|
|
63
61
|
});
|
|
64
|
-
Object.defineProperty(exports, "
|
|
62
|
+
Object.defineProperty(exports, "DxcButton", {
|
|
65
63
|
enumerable: true,
|
|
66
64
|
get: function get() {
|
|
67
|
-
return
|
|
65
|
+
return _Button["default"];
|
|
68
66
|
}
|
|
69
67
|
});
|
|
70
|
-
Object.defineProperty(exports, "
|
|
68
|
+
Object.defineProperty(exports, "DxcCard", {
|
|
71
69
|
enumerable: true,
|
|
72
70
|
get: function get() {
|
|
73
|
-
return
|
|
71
|
+
return _Card["default"];
|
|
74
72
|
}
|
|
75
73
|
});
|
|
76
|
-
Object.defineProperty(exports, "
|
|
74
|
+
Object.defineProperty(exports, "DxcCheckbox", {
|
|
77
75
|
enumerable: true,
|
|
78
76
|
get: function get() {
|
|
79
|
-
return
|
|
77
|
+
return _Checkbox["default"];
|
|
80
78
|
}
|
|
81
79
|
});
|
|
82
|
-
Object.defineProperty(exports, "
|
|
80
|
+
Object.defineProperty(exports, "DxcChip", {
|
|
83
81
|
enumerable: true,
|
|
84
82
|
get: function get() {
|
|
85
|
-
return
|
|
83
|
+
return _Chip["default"];
|
|
86
84
|
}
|
|
87
85
|
});
|
|
88
|
-
Object.defineProperty(exports, "
|
|
86
|
+
Object.defineProperty(exports, "DxcContainer", {
|
|
89
87
|
enumerable: true,
|
|
90
88
|
get: function get() {
|
|
91
|
-
return
|
|
89
|
+
return _Container["default"];
|
|
92
90
|
}
|
|
93
91
|
});
|
|
94
|
-
Object.defineProperty(exports, "
|
|
92
|
+
Object.defineProperty(exports, "DxcDateInput", {
|
|
95
93
|
enumerable: true,
|
|
96
94
|
get: function get() {
|
|
97
|
-
return
|
|
95
|
+
return _DateInput["default"];
|
|
98
96
|
}
|
|
99
97
|
});
|
|
100
|
-
Object.defineProperty(exports, "
|
|
98
|
+
Object.defineProperty(exports, "DxcDialog", {
|
|
101
99
|
enumerable: true,
|
|
102
100
|
get: function get() {
|
|
103
|
-
return
|
|
101
|
+
return _Dialog["default"];
|
|
104
102
|
}
|
|
105
103
|
});
|
|
106
|
-
Object.defineProperty(exports, "
|
|
104
|
+
Object.defineProperty(exports, "DxcDropdown", {
|
|
107
105
|
enumerable: true,
|
|
108
106
|
get: function get() {
|
|
109
|
-
return
|
|
107
|
+
return _Dropdown["default"];
|
|
110
108
|
}
|
|
111
109
|
});
|
|
112
|
-
Object.defineProperty(exports, "
|
|
110
|
+
Object.defineProperty(exports, "DxcFileInput", {
|
|
113
111
|
enumerable: true,
|
|
114
112
|
get: function get() {
|
|
115
|
-
return
|
|
113
|
+
return _FileInput["default"];
|
|
116
114
|
}
|
|
117
115
|
});
|
|
118
|
-
Object.defineProperty(exports, "
|
|
116
|
+
Object.defineProperty(exports, "DxcFlex", {
|
|
119
117
|
enumerable: true,
|
|
120
118
|
get: function get() {
|
|
121
|
-
return
|
|
119
|
+
return _Flex["default"];
|
|
122
120
|
}
|
|
123
121
|
});
|
|
124
|
-
Object.defineProperty(exports, "
|
|
122
|
+
Object.defineProperty(exports, "DxcGrid", {
|
|
125
123
|
enumerable: true,
|
|
126
124
|
get: function get() {
|
|
127
|
-
return
|
|
125
|
+
return _Grid["default"];
|
|
128
126
|
}
|
|
129
127
|
});
|
|
130
|
-
Object.defineProperty(exports, "
|
|
128
|
+
Object.defineProperty(exports, "DxcHeading", {
|
|
131
129
|
enumerable: true,
|
|
132
130
|
get: function get() {
|
|
133
|
-
return
|
|
131
|
+
return _Heading["default"];
|
|
134
132
|
}
|
|
135
133
|
});
|
|
136
|
-
Object.defineProperty(exports, "
|
|
134
|
+
Object.defineProperty(exports, "DxcImage", {
|
|
137
135
|
enumerable: true,
|
|
138
136
|
get: function get() {
|
|
139
|
-
return
|
|
137
|
+
return _Image["default"];
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(exports, "DxcInset", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function get() {
|
|
143
|
+
return _Inset["default"];
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(exports, "DxcLink", {
|
|
147
|
+
enumerable: true,
|
|
148
|
+
get: function get() {
|
|
149
|
+
return _Link["default"];
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
Object.defineProperty(exports, "DxcNavTabs", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
get: function get() {
|
|
155
|
+
return _NavTabs["default"];
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
Object.defineProperty(exports, "DxcNumberInput", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
get: function get() {
|
|
161
|
+
return _NumberInput["default"];
|
|
140
162
|
}
|
|
141
163
|
});
|
|
142
164
|
Object.defineProperty(exports, "DxcPaginator", {
|
|
@@ -145,34 +167,34 @@ Object.defineProperty(exports, "DxcPaginator", {
|
|
|
145
167
|
return _Paginator["default"];
|
|
146
168
|
}
|
|
147
169
|
});
|
|
148
|
-
Object.defineProperty(exports, "
|
|
170
|
+
Object.defineProperty(exports, "DxcParagraph", {
|
|
149
171
|
enumerable: true,
|
|
150
172
|
get: function get() {
|
|
151
|
-
return
|
|
173
|
+
return _Paragraph["default"];
|
|
152
174
|
}
|
|
153
175
|
});
|
|
154
|
-
Object.defineProperty(exports, "
|
|
176
|
+
Object.defineProperty(exports, "DxcPasswordInput", {
|
|
155
177
|
enumerable: true,
|
|
156
178
|
get: function get() {
|
|
157
|
-
return
|
|
179
|
+
return _PasswordInput["default"];
|
|
158
180
|
}
|
|
159
181
|
});
|
|
160
|
-
Object.defineProperty(exports, "
|
|
182
|
+
Object.defineProperty(exports, "DxcProgressBar", {
|
|
161
183
|
enumerable: true,
|
|
162
184
|
get: function get() {
|
|
163
|
-
return
|
|
185
|
+
return _ProgressBar["default"];
|
|
164
186
|
}
|
|
165
187
|
});
|
|
166
|
-
Object.defineProperty(exports, "
|
|
188
|
+
Object.defineProperty(exports, "DxcQuickNav", {
|
|
167
189
|
enumerable: true,
|
|
168
190
|
get: function get() {
|
|
169
|
-
return
|
|
191
|
+
return _QuickNav["default"];
|
|
170
192
|
}
|
|
171
193
|
});
|
|
172
|
-
Object.defineProperty(exports, "
|
|
194
|
+
Object.defineProperty(exports, "DxcRadioGroup", {
|
|
173
195
|
enumerable: true,
|
|
174
196
|
get: function get() {
|
|
175
|
-
return
|
|
197
|
+
return _RadioGroup["default"];
|
|
176
198
|
}
|
|
177
199
|
});
|
|
178
200
|
Object.defineProperty(exports, "DxcResultsetTable", {
|
|
@@ -181,179 +203,141 @@ Object.defineProperty(exports, "DxcResultsetTable", {
|
|
|
181
203
|
return _ResultsetTable["default"];
|
|
182
204
|
}
|
|
183
205
|
});
|
|
184
|
-
Object.defineProperty(exports, "
|
|
206
|
+
Object.defineProperty(exports, "DxcSelect", {
|
|
185
207
|
enumerable: true,
|
|
186
208
|
get: function get() {
|
|
187
|
-
return
|
|
209
|
+
return _Select["default"];
|
|
188
210
|
}
|
|
189
211
|
});
|
|
190
|
-
Object.defineProperty(exports, "
|
|
212
|
+
Object.defineProperty(exports, "DxcSlider", {
|
|
191
213
|
enumerable: true,
|
|
192
214
|
get: function get() {
|
|
193
|
-
return
|
|
215
|
+
return _Slider["default"];
|
|
194
216
|
}
|
|
195
217
|
});
|
|
196
|
-
Object.defineProperty(exports, "
|
|
218
|
+
Object.defineProperty(exports, "DxcSpinner", {
|
|
197
219
|
enumerable: true,
|
|
198
220
|
get: function get() {
|
|
199
|
-
return
|
|
221
|
+
return _Spinner["default"];
|
|
200
222
|
}
|
|
201
223
|
});
|
|
202
|
-
Object.defineProperty(exports, "
|
|
224
|
+
Object.defineProperty(exports, "DxcSwitch", {
|
|
203
225
|
enumerable: true,
|
|
204
226
|
get: function get() {
|
|
205
|
-
return
|
|
227
|
+
return _Switch["default"];
|
|
206
228
|
}
|
|
207
229
|
});
|
|
208
|
-
Object.defineProperty(exports, "
|
|
230
|
+
Object.defineProperty(exports, "DxcTable", {
|
|
209
231
|
enumerable: true,
|
|
210
232
|
get: function get() {
|
|
211
|
-
return
|
|
233
|
+
return _Table["default"];
|
|
212
234
|
}
|
|
213
235
|
});
|
|
214
|
-
Object.defineProperty(exports, "
|
|
236
|
+
Object.defineProperty(exports, "DxcTabs", {
|
|
215
237
|
enumerable: true,
|
|
216
238
|
get: function get() {
|
|
217
|
-
return
|
|
239
|
+
return _Tabs["default"];
|
|
218
240
|
}
|
|
219
241
|
});
|
|
220
|
-
Object.defineProperty(exports, "
|
|
242
|
+
Object.defineProperty(exports, "DxcTag", {
|
|
221
243
|
enumerable: true,
|
|
222
244
|
get: function get() {
|
|
223
|
-
return
|
|
245
|
+
return _Tag["default"];
|
|
224
246
|
}
|
|
225
247
|
});
|
|
226
|
-
Object.defineProperty(exports, "
|
|
248
|
+
Object.defineProperty(exports, "DxcTextInput", {
|
|
227
249
|
enumerable: true,
|
|
228
250
|
get: function get() {
|
|
229
|
-
return
|
|
251
|
+
return _TextInput["default"];
|
|
230
252
|
}
|
|
231
253
|
});
|
|
232
|
-
Object.defineProperty(exports, "
|
|
254
|
+
Object.defineProperty(exports, "DxcTextarea", {
|
|
233
255
|
enumerable: true,
|
|
234
256
|
get: function get() {
|
|
235
|
-
return
|
|
257
|
+
return _Textarea["default"];
|
|
236
258
|
}
|
|
237
259
|
});
|
|
238
|
-
Object.defineProperty(exports, "
|
|
260
|
+
Object.defineProperty(exports, "DxcToggleGroup", {
|
|
239
261
|
enumerable: true,
|
|
240
262
|
get: function get() {
|
|
241
|
-
return
|
|
263
|
+
return _ToggleGroup["default"];
|
|
242
264
|
}
|
|
243
265
|
});
|
|
244
|
-
Object.defineProperty(exports, "
|
|
266
|
+
Object.defineProperty(exports, "DxcTypography", {
|
|
245
267
|
enumerable: true,
|
|
246
268
|
get: function get() {
|
|
247
|
-
return
|
|
269
|
+
return _Typography["default"];
|
|
248
270
|
}
|
|
249
271
|
});
|
|
250
|
-
Object.defineProperty(exports, "
|
|
272
|
+
Object.defineProperty(exports, "DxcWizard", {
|
|
251
273
|
enumerable: true,
|
|
252
274
|
get: function get() {
|
|
253
|
-
return
|
|
275
|
+
return _Wizard["default"];
|
|
254
276
|
}
|
|
255
277
|
});
|
|
256
|
-
Object.defineProperty(exports, "
|
|
278
|
+
Object.defineProperty(exports, "HalstackContext", {
|
|
257
279
|
enumerable: true,
|
|
258
280
|
get: function get() {
|
|
259
|
-
return
|
|
281
|
+
return _HalstackContext["default"];
|
|
260
282
|
}
|
|
261
283
|
});
|
|
262
|
-
Object.defineProperty(exports, "
|
|
284
|
+
Object.defineProperty(exports, "HalstackLanguageContext", {
|
|
263
285
|
enumerable: true,
|
|
264
286
|
get: function get() {
|
|
265
|
-
return
|
|
287
|
+
return _HalstackContext.HalstackLanguageContext;
|
|
266
288
|
}
|
|
267
289
|
});
|
|
268
|
-
Object.defineProperty(exports, "
|
|
290
|
+
Object.defineProperty(exports, "HalstackProvider", {
|
|
269
291
|
enumerable: true,
|
|
270
292
|
get: function get() {
|
|
271
|
-
return
|
|
293
|
+
return _HalstackContext.HalstackProvider;
|
|
272
294
|
}
|
|
273
295
|
});
|
|
274
|
-
|
|
275
296
|
var _Alert = _interopRequireDefault(require("./alert/Alert"));
|
|
276
|
-
|
|
277
297
|
var _Accordion = _interopRequireDefault(require("./accordion/Accordion"));
|
|
278
|
-
|
|
279
298
|
var _Button = _interopRequireDefault(require("./button/Button"));
|
|
280
|
-
|
|
281
299
|
var _Card = _interopRequireDefault(require("./card/Card"));
|
|
282
|
-
|
|
283
300
|
var _Checkbox = _interopRequireDefault(require("./checkbox/Checkbox"));
|
|
284
|
-
|
|
285
|
-
var _Date = _interopRequireDefault(require("./date/Date"));
|
|
286
|
-
|
|
287
301
|
var _Dialog = _interopRequireDefault(require("./dialog/Dialog"));
|
|
288
|
-
|
|
289
302
|
var _Dropdown = _interopRequireDefault(require("./dropdown/Dropdown"));
|
|
290
|
-
|
|
291
|
-
var _Footer = _interopRequireDefault(require("./footer/Footer"));
|
|
292
|
-
|
|
293
|
-
var _Header = _interopRequireDefault(require("./header/Header"));
|
|
294
|
-
|
|
295
|
-
var _InputText = _interopRequireDefault(require("./input-text/InputText"));
|
|
296
|
-
|
|
297
|
-
var _Radio = _interopRequireDefault(require("./radio/Radio"));
|
|
298
|
-
|
|
299
|
-
var _V3Select = _interopRequireDefault(require("./V3Select/V3Select"));
|
|
300
|
-
|
|
301
303
|
var _Slider = _interopRequireDefault(require("./slider/Slider"));
|
|
302
|
-
|
|
303
304
|
var _Switch = _interopRequireDefault(require("./switch/Switch"));
|
|
304
|
-
|
|
305
305
|
var _Tabs = _interopRequireDefault(require("./tabs/Tabs"));
|
|
306
|
-
|
|
307
306
|
var _ProgressBar = _interopRequireDefault(require("./progress-bar/ProgressBar"));
|
|
308
|
-
|
|
309
307
|
var _Spinner = _interopRequireDefault(require("./spinner/Spinner"));
|
|
310
|
-
|
|
311
|
-
var _Upload = _interopRequireDefault(require("./upload/Upload"));
|
|
312
|
-
|
|
313
308
|
var _Table = _interopRequireDefault(require("./table/Table"));
|
|
314
|
-
|
|
315
309
|
var _Box = _interopRequireDefault(require("./box/Box"));
|
|
316
|
-
|
|
317
310
|
var _Tag = _interopRequireDefault(require("./tag/Tag"));
|
|
318
|
-
|
|
319
311
|
var _Paginator = _interopRequireDefault(require("./paginator/Paginator"));
|
|
320
|
-
|
|
321
|
-
var _Sidenav = _interopRequireDefault(require("./sidenav/Sidenav"));
|
|
322
|
-
|
|
323
312
|
var _Wizard = _interopRequireDefault(require("./wizard/Wizard"));
|
|
324
|
-
|
|
325
313
|
var _Link = _interopRequireDefault(require("./link/Link"));
|
|
326
|
-
|
|
327
314
|
var _Heading = _interopRequireDefault(require("./heading/Heading"));
|
|
328
|
-
|
|
329
|
-
var _V3Textarea = _interopRequireDefault(require("./V3Textarea/V3Textarea"));
|
|
330
|
-
|
|
331
|
-
var _ResultsetTable = _interopRequireDefault(require("./resultsetTable/ResultsetTable"));
|
|
332
|
-
|
|
315
|
+
var _ResultsetTable = _interopRequireDefault(require("./resultset-table/ResultsetTable"));
|
|
333
316
|
var _Chip = _interopRequireDefault(require("./chip/Chip"));
|
|
334
|
-
|
|
335
317
|
var _ApplicationLayout = _interopRequireDefault(require("./layout/ApplicationLayout"));
|
|
336
|
-
|
|
337
318
|
var _ToggleGroup = _interopRequireDefault(require("./toggle-group/ToggleGroup"));
|
|
338
|
-
|
|
339
319
|
var _AccordionGroup = _interopRequireDefault(require("./accordion-group/AccordionGroup"));
|
|
340
|
-
|
|
341
320
|
var _Badge = _interopRequireDefault(require("./badge/Badge"));
|
|
342
|
-
|
|
343
321
|
var _TextInput = _interopRequireDefault(require("./text-input/TextInput"));
|
|
344
|
-
|
|
345
322
|
var _PasswordInput = _interopRequireDefault(require("./password-input/PasswordInput"));
|
|
346
|
-
|
|
347
323
|
var _DateInput = _interopRequireDefault(require("./date-input/DateInput"));
|
|
348
|
-
|
|
349
324
|
var _NumberInput = _interopRequireDefault(require("./number-input/NumberInput"));
|
|
350
|
-
|
|
351
325
|
var _Textarea = _interopRequireDefault(require("./textarea/Textarea"));
|
|
352
|
-
|
|
353
326
|
var _Select = _interopRequireDefault(require("./select/Select"));
|
|
354
|
-
|
|
355
327
|
var _FileInput = _interopRequireDefault(require("./file-input/FileInput"));
|
|
356
|
-
|
|
357
|
-
var
|
|
358
|
-
|
|
359
|
-
var
|
|
328
|
+
var _RadioGroup = _interopRequireDefault(require("./radio-group/RadioGroup"));
|
|
329
|
+
var _Bleed = _interopRequireDefault(require("./bleed/Bleed"));
|
|
330
|
+
var _Inset = _interopRequireDefault(require("./inset/Inset"));
|
|
331
|
+
var _QuickNav = _interopRequireDefault(require("./quick-nav/QuickNav"));
|
|
332
|
+
var _NavTabs = _interopRequireDefault(require("./nav-tabs/NavTabs"));
|
|
333
|
+
var _Flex = _interopRequireDefault(require("./flex/Flex"));
|
|
334
|
+
var _Typography = _interopRequireDefault(require("./typography/Typography"));
|
|
335
|
+
var _Paragraph = _interopRequireDefault(require("./paragraph/Paragraph"));
|
|
336
|
+
var _BulletedList = _interopRequireDefault(require("./bulleted-list/BulletedList"));
|
|
337
|
+
var _Grid = _interopRequireDefault(require("./grid/Grid"));
|
|
338
|
+
var _Image = _interopRequireDefault(require("./image/Image"));
|
|
339
|
+
var _Container = _interopRequireDefault(require("./container/Container"));
|
|
340
|
+
var _HalstackContext = _interopRequireWildcard(require("./HalstackContext"));
|
|
341
|
+
var _BackgroundColorContext = require("./BackgroundColorContext");
|
|
342
|
+
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); }
|
|
343
|
+
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 && Object.prototype.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; }
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import NavTabsPropsType, { NavTabsContextProps } from "./types";
|
|
3
|
+
export declare const NavTabsContext: React.Context<NavTabsContextProps>;
|
|
4
|
+
declare const DxcNavTabs: {
|
|
5
|
+
({ iconPosition, tabIndex, children }: NavTabsPropsType): JSX.Element;
|
|
6
|
+
Tab: React.ForwardRefExoticComponent<import("./types").TabProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
7
|
+
};
|
|
8
|
+
export default DxcNavTabs;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.NavTabsContext = void 0;
|
|
9
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
13
|
+
var _useTheme = _interopRequireDefault(require("../useTheme"));
|
|
14
|
+
var _Tab = _interopRequireDefault(require("./Tab"));
|
|
15
|
+
var _templateObject;
|
|
16
|
+
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); }
|
|
17
|
+
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 && Object.prototype.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; }
|
|
18
|
+
var NavTabsContext = exports.NavTabsContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
19
|
+
var getPropInChild = function getPropInChild(child, propName) {
|
|
20
|
+
return child.props ? child.props[propName] ? child.props[propName] : child.props.children ? getPropInChild(child.props.children, propName) : undefined : undefined;
|
|
21
|
+
};
|
|
22
|
+
var getLabelFromTab = function getLabelFromTab(child) {
|
|
23
|
+
if (typeof child === "string") {
|
|
24
|
+
return child.toString();
|
|
25
|
+
} else if (child.props.children) {
|
|
26
|
+
return Array.isArray(child.props.children) ? getLabelFromTab(child.props.children[0]) : getLabelFromTab(child.props.children);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var getPreviousTabIndex = function getPreviousTabIndex(array, initialIndex) {
|
|
30
|
+
var index = initialIndex === 0 ? array.length - 1 : initialIndex - 1;
|
|
31
|
+
while (getPropInChild(array[index], "disabled")) {
|
|
32
|
+
index = index === 0 ? array.length - 1 : index - 1;
|
|
33
|
+
}
|
|
34
|
+
return index;
|
|
35
|
+
};
|
|
36
|
+
var getNextTabIndex = function getNextTabIndex(array, initialIndex) {
|
|
37
|
+
var index = initialIndex === array.length - 1 ? 0 : initialIndex + 1;
|
|
38
|
+
while (getPropInChild(array[index], "disabled")) {
|
|
39
|
+
index = index === array.length - 1 ? 0 : index + 1;
|
|
40
|
+
}
|
|
41
|
+
return index;
|
|
42
|
+
};
|
|
43
|
+
var DxcNavTabs = function DxcNavTabs(_ref) {
|
|
44
|
+
var _ref$iconPosition = _ref.iconPosition,
|
|
45
|
+
iconPosition = _ref$iconPosition === void 0 ? "top" : _ref$iconPosition,
|
|
46
|
+
_ref$tabIndex = _ref.tabIndex,
|
|
47
|
+
tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex,
|
|
48
|
+
children = _ref.children;
|
|
49
|
+
var _useState = (0, _react.useState)(null),
|
|
50
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
51
|
+
innerFocusIndex = _useState2[0],
|
|
52
|
+
setInnerFocusIndex = _useState2[1];
|
|
53
|
+
var colorsTheme = (0, _useTheme["default"])();
|
|
54
|
+
var contextValue = (0, _react.useMemo)(function () {
|
|
55
|
+
return {
|
|
56
|
+
iconPosition: iconPosition,
|
|
57
|
+
tabIndex: tabIndex,
|
|
58
|
+
focusedLabel: innerFocusIndex === null ? undefined : getLabelFromTab(children[innerFocusIndex])
|
|
59
|
+
};
|
|
60
|
+
}, [iconPosition, tabIndex, innerFocusIndex]);
|
|
61
|
+
var handleOnKeyDown = function handleOnKeyDown(event) {
|
|
62
|
+
var activeTab = _react["default"].Children.toArray(children).findIndex(function (child) {
|
|
63
|
+
return getPropInChild(child, "active");
|
|
64
|
+
});
|
|
65
|
+
switch (event.key) {
|
|
66
|
+
case "Left":
|
|
67
|
+
case "ArrowLeft":
|
|
68
|
+
event.preventDefault();
|
|
69
|
+
setInnerFocusIndex(getPreviousTabIndex(children, innerFocusIndex === null ? activeTab : innerFocusIndex));
|
|
70
|
+
break;
|
|
71
|
+
case "Right":
|
|
72
|
+
case "ArrowRight":
|
|
73
|
+
event.preventDefault();
|
|
74
|
+
setInnerFocusIndex(getNextTabIndex(children, innerFocusIndex === null ? activeTab : innerFocusIndex));
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
79
|
+
theme: colorsTheme.navTabs
|
|
80
|
+
}, /*#__PURE__*/_react["default"].createElement(NavTabsContainer, {
|
|
81
|
+
onKeyDown: handleOnKeyDown,
|
|
82
|
+
role: "tablist",
|
|
83
|
+
"aria-label": "Navigation tabs"
|
|
84
|
+
}, /*#__PURE__*/_react["default"].createElement(NavTabsContext.Provider, {
|
|
85
|
+
value: contextValue
|
|
86
|
+
}, children)));
|
|
87
|
+
};
|
|
88
|
+
DxcNavTabs.Tab = _Tab["default"];
|
|
89
|
+
var NavTabsContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n"])));
|
|
90
|
+
var _default = exports["default"] = DxcNavTabs;
|