@dxc-technology/halstack-react 0.0.0-f0f7913 → 0.0.0-f18281d
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 -0
- package/BackgroundColorContext.js +30 -0
- package/HalstackContext.d.ts +1237 -0
- package/HalstackContext.js +310 -0
- package/README.md +28 -47
- package/accordion/Accordion.d.ts +4 -0
- package/accordion/Accordion.js +182 -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/action-icon/ActionIcon.d.ts +4 -0
- package/action-icon/ActionIcon.js +47 -0
- package/action-icon/ActionIcon.stories.tsx +41 -0
- package/action-icon/ActionIcon.test.js +64 -0
- package/action-icon/types.d.ts +26 -0
- package/action-icon/types.js +5 -0
- package/alert/Alert.d.ts +4 -0
- package/alert/Alert.js +254 -0
- 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 +161 -0
- package/badge/Badge.stories.tsx +210 -0
- package/badge/Badge.test.js +30 -0
- package/badge/types.d.ts +54 -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 +75 -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 +89 -0
- package/bulleted-list/BulletedList.stories.tsx +115 -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 +120 -0
- package/button/Button.stories.tsx +344 -0
- package/button/Button.test.js +38 -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 +215 -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/common/utils.js +16 -0
- package/common/variables.d.ts +1383 -0
- package/common/variables.js +1255 -0
- 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/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 +104 -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 +336 -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 +138 -0
- package/footer/Footer.stories.tsx +171 -0
- package/footer/Footer.test.js +85 -0
- package/footer/Icons.d.ts +3 -0
- package/footer/Icons.js +136 -0
- 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 +220 -0
- package/header/Header.stories.tsx +251 -0
- package/header/Header.test.js +66 -0
- package/header/Icons.d.ts +2 -0
- package/header/Icons.js +29 -0
- package/header/types.d.ts +33 -0
- package/header/types.js +5 -0
- package/heading/Heading.d.ts +4 -0
- package/heading/Heading.js +137 -0
- 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} +151 -111
- package/nav-tabs/NavTabs.d.ts +8 -0
- package/nav-tabs/NavTabs.js +93 -0
- package/nav-tabs/NavTabs.stories.tsx +276 -0
- package/nav-tabs/NavTabs.test.js +76 -0
- package/nav-tabs/Tab.d.ts +4 -0
- package/nav-tabs/Tab.js +118 -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 +57 -47
- package/paginator/Icons.d.ts +5 -0
- package/paginator/Icons.js +40 -0
- package/paginator/Paginator.d.ts +4 -0
- package/paginator/Paginator.js +135 -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 +22 -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 +99 -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 +144 -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 +7 -0
- package/resultset-table/ResultsetTable.js +167 -0
- package/resultset-table/ResultsetTable.stories.tsx +381 -0
- package/resultset-table/ResultsetTable.test.js +371 -0
- package/resultset-table/types.d.ts +73 -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 +87 -0
- package/select/Select.d.ts +4 -0
- package/select/Select.js +590 -0
- package/select/Select.stories.tsx +971 -0
- package/select/Select.test.js +2370 -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 +196 -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 +285 -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 +206 -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/status-light/StatusLight.d.ts +4 -0
- package/status-light/StatusLight.js +51 -0
- package/status-light/StatusLight.stories.tsx +74 -0
- package/status-light/StatusLight.test.js +25 -0
- package/status-light/types.d.ts +17 -0
- package/status-light/types.js +5 -0
- package/switch/Switch.d.ts +4 -0
- package/switch/Switch.js +214 -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/ActionsCell.d.ts +4 -0
- package/table/ActionsCell.js +54 -0
- package/table/DropdownTheme.js +57 -0
- package/table/Table.d.ts +7 -0
- package/table/Table.js +113 -0
- package/table/Table.stories.tsx +615 -0
- package/table/Table.test.js +113 -0
- package/table/types.d.ts +60 -0
- package/table/types.js +5 -0
- package/tabs/Tab.d.ts +4 -0
- package/tabs/Tab.js +116 -0
- package/tabs/Tabs.d.ts +4 -0
- package/tabs/Tabs.js +384 -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 +84 -0
- package/text-input/TextInput.d.ts +4 -0
- package/text-input/TextInput.js +572 -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 +234 -0
- package/textarea/Textarea.stories.tsx +174 -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 +201 -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 +1136 -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 +124 -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 -8
- package/dist/ThemeContext.js +0 -137
- package/dist/accordion/Accordion.js +0 -268
- package/dist/accordion/Accordion.stories.js +0 -207
- package/dist/accordion/readme.md +0 -96
- package/dist/accordion-group/AccordionGroup.js +0 -159
- package/dist/accordion-group/AccordionGroup.stories.js +0 -207
- package/dist/accordion-group/readme.md +0 -70
- package/dist/alert/Alert.js +0 -303
- package/dist/alert/Alert.stories.js +0 -158
- package/dist/alert/close.svg +0 -4
- package/dist/alert/error.svg +0 -4
- package/dist/alert/info.svg +0 -4
- package/dist/alert/readme.md +0 -43
- package/dist/alert/success.svg +0 -4
- package/dist/alert/warning.svg +0 -4
- package/dist/badge/Badge.js +0 -42
- package/dist/box/Box.js +0 -145
- package/dist/button/Button.js +0 -199
- package/dist/button/Button.stories.js +0 -224
- package/dist/button/readme.md +0 -93
- package/dist/card/Card.js +0 -217
- package/dist/checkbox/Checkbox.js +0 -240
- package/dist/checkbox/Checkbox.stories.js +0 -144
- package/dist/checkbox/readme.md +0 -116
- package/dist/chip/Chip.js +0 -203
- package/dist/common/OpenSans.css +0 -81
- package/dist/common/RequiredComponent.js +0 -40
- package/dist/common/services/example-service.js +0 -10
- package/dist/common/services/example-service.test.js +0 -12
- package/dist/common/utils.js +0 -42
- package/dist/common/variables.js +0 -393
- package/dist/date/Date.js +0 -357
- package/dist/date/Date.stories.js +0 -205
- package/dist/date/calendar.svg +0 -1
- package/dist/date/calendar_dark.svg +0 -1
- package/dist/date/readme.md +0 -73
- package/dist/dialog/Dialog.js +0 -197
- package/dist/dialog/Dialog.stories.js +0 -217
- package/dist/dialog/readme.md +0 -32
- package/dist/dropdown/Dropdown.js +0 -449
- package/dist/dropdown/Dropdown.stories.js +0 -249
- package/dist/dropdown/baseline-arrow_drop_down.svg +0 -1
- package/dist/dropdown/baseline-arrow_drop_down_wh.svg +0 -4
- package/dist/dropdown/baseline-arrow_drop_up.svg +0 -1
- package/dist/dropdown/baseline-arrow_drop_up_wh.svg +0 -4
- package/dist/dropdown/readme.md +0 -69
- package/dist/footer/Footer.js +0 -366
- package/dist/footer/Footer.stories.js +0 -94
- package/dist/footer/dxc_logo_wht.png +0 -0
- package/dist/footer/readme.md +0 -41
- package/dist/header/Header.js +0 -373
- package/dist/header/Header.stories.js +0 -176
- package/dist/header/close_icon.svg +0 -1
- package/dist/header/dxc_logo_black.png +0 -0
- package/dist/header/dxc_logo_blk_rgb.svg +0 -6
- package/dist/header/dxc_logo_white.png +0 -0
- package/dist/header/hamb_menu_black.svg +0 -1
- package/dist/header/hamb_menu_white.svg +0 -1
- package/dist/header/readme.md +0 -33
- package/dist/heading/Heading.js +0 -153
- package/dist/input-text/InputText.js +0 -570
- package/dist/input-text/InputText.stories.js +0 -209
- package/dist/input-text/error.svg +0 -1
- package/dist/input-text/readme.md +0 -91
- package/dist/layout/ApplicationLayout.js +0 -332
- package/dist/layout/facebook.svg +0 -45
- package/dist/layout/linkedin.svg +0 -50
- package/dist/layout/twitter.svg +0 -53
- package/dist/link/Link.js +0 -192
- package/dist/link/readme.md +0 -51
- package/dist/paginator/Paginator.js +0 -254
- package/dist/paginator/images/next.svg +0 -3
- package/dist/paginator/images/nextPage.svg +0 -3
- package/dist/paginator/images/previous.svg +0 -3
- package/dist/paginator/images/previousPage.svg +0 -3
- package/dist/paginator/readme.md +0 -50
- package/dist/progress-bar/ProgressBar.js +0 -185
- package/dist/progress-bar/ProgressBar.stories.js +0 -280
- package/dist/progress-bar/readme.md +0 -63
- package/dist/radio/Radio.js +0 -195
- package/dist/radio/Radio.stories.js +0 -166
- package/dist/radio/readme.md +0 -70
- package/dist/resultsetTable/ResultsetTable.js +0 -327
- package/dist/resultsetTable/arrow_downward-24px_wht.svg +0 -1
- package/dist/resultsetTable/arrow_upward-24px_wht.svg +0 -1
- package/dist/resultsetTable/unfold_more-24px_wht.svg +0 -1
- package/dist/select/Select.js +0 -473
- package/dist/select/Select.stories.js +0 -235
- package/dist/select/readme.md +0 -72
- package/dist/sidenav/Sidenav.js +0 -125
- package/dist/slider/Slider.js +0 -257
- package/dist/slider/Slider.stories.js +0 -241
- package/dist/slider/readme.md +0 -64
- package/dist/spinner/Spinner.js +0 -192
- package/dist/spinner/Spinner.stories.js +0 -183
- package/dist/spinner/readme.md +0 -65
- package/dist/switch/Switch.js +0 -190
- package/dist/switch/Switch.stories.js +0 -134
- package/dist/switch/readme.md +0 -133
- package/dist/table/Table.js +0 -104
- package/dist/tabs/Tabs.js +0 -302
- package/dist/tabs/Tabs.stories.js +0 -130
- package/dist/tabs/readme.md +0 -78
- package/dist/tabs-for-sections/TabsForSections.js +0 -92
- package/dist/tabs-for-sections/readme.md +0 -78
- package/dist/tag/Tag.js +0 -249
- package/dist/textarea/Textarea.js +0 -224
- package/dist/toggle/Toggle.js +0 -223
- package/dist/toggle/Toggle.stories.js +0 -297
- package/dist/toggle/readme.md +0 -80
- package/dist/toggle-group/ToggleGroup.js +0 -223
- package/dist/toggle-group/readme.md +0 -82
- package/dist/upload/Upload.js +0 -200
- package/dist/upload/Upload.stories.js +0 -72
- package/dist/upload/buttons-upload/ButtonsUpload.js +0 -122
- package/dist/upload/buttons-upload/drag-drop-icon.svg +0 -4
- package/dist/upload/buttons-upload/upload-button.svg +0 -1
- package/dist/upload/dragAndDropArea/DragAndDropArea.js +0 -279
- package/dist/upload/dragAndDropArea/upload_drop.svg +0 -4
- package/dist/upload/dragAndDropArea/upload_file.svg +0 -4
- package/dist/upload/file-upload/FileToUpload.js +0 -158
- package/dist/upload/file-upload/audio-icon.svg +0 -4
- package/dist/upload/file-upload/close.svg +0 -4
- package/dist/upload/file-upload/file-icon.svg +0 -4
- package/dist/upload/file-upload/video-icon.svg +0 -4
- package/dist/upload/files-upload/FilesToUpload.js +0 -123
- package/dist/upload/readme.md +0 -37
- package/dist/upload/transaction/Transaction.js +0 -155
- package/dist/upload/transaction/audio-icon-err.svg +0 -4
- package/dist/upload/transaction/audio-icon.svg +0 -4
- package/dist/upload/transaction/error-icon.svg +0 -4
- package/dist/upload/transaction/file-icon-err.svg +0 -4
- package/dist/upload/transaction/file-icon.svg +0 -4
- package/dist/upload/transaction/image-icon-err.svg +0 -4
- package/dist/upload/transaction/image-icon.svg +0 -4
- package/dist/upload/transaction/success-icon.svg +0 -4
- package/dist/upload/transaction/video-icon-err.svg +0 -4
- package/dist/upload/transaction/video-icon.svg +0 -4
- package/dist/upload/transactions/Transactions.js +0 -120
- package/dist/wizard/Wizard.js +0 -328
- package/dist/wizard/invalid_icon.svg +0 -6
- package/dist/wizard/valid_icon.svg +0 -6
- package/dist/wizard/validation-wrong.svg +0 -6
- package/test/Accordion.test.js +0 -33
- package/test/AccordionGroup.test.js +0 -109
- 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 -393
- package/test/Dialog.test.js +0 -23
- package/test/Dropdown.test.js +0 -130
- package/test/Footer.test.js +0 -99
- package/test/Header.test.js +0 -39
- package/test/Heading.test.js +0 -35
- package/test/InputText.test.js +0 -240
- package/test/Link.test.js +0 -42
- package/test/Paginator.test.js +0 -177
- 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 -192
- package/test/Sidenav.test.js +0 -45
- package/test/Slider.test.js +0 -82
- package/test/Spinner.test.js +0 -27
- package/test/Switch.test.js +0 -45
- package/test/Table.test.js +0 -36
- package/test/Tabs.test.js +0 -109
- package/test/TabsForSections.test.js +0 -34
- package/test/Tag.test.js +0 -32
- package/test/TextArea.test.js +0 -52
- package/test/ToggleGroup.test.js +0 -81
- package/test/Upload.test.js +0 -60
- 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
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _BaseTypography = _interopRequireDefault(require("../utils/BaseTypography"));
|
|
12
|
+
var _excluded = ["textOverflow", "whiteSpace", "children"];
|
|
13
|
+
var DxcTypography = function DxcTypography(_ref) {
|
|
14
|
+
var textOverflow = _ref.textOverflow,
|
|
15
|
+
whiteSpace = _ref.whiteSpace,
|
|
16
|
+
children = _ref.children,
|
|
17
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
18
|
+
return /*#__PURE__*/_react["default"].createElement(_BaseTypography["default"], (0, _extends2["default"])({
|
|
19
|
+
textOverflow: textOverflow,
|
|
20
|
+
whiteSpace: whiteSpace == null && textOverflow != null && textOverflow !== "unset" ? "nowrap" : whiteSpace
|
|
21
|
+
}, props), children);
|
|
22
|
+
};
|
|
23
|
+
var _default = exports["default"] = DxcTypography;
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Title from "../../.storybook/components/Title";
|
|
3
|
+
import ExampleContainer from "../../.storybook/components/ExampleContainer";
|
|
4
|
+
import DxcTypography from "./Typography";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: "Typography",
|
|
8
|
+
component: DxcTypography,
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const Chromatic = () => (
|
|
12
|
+
<>
|
|
13
|
+
<ExampleContainer>
|
|
14
|
+
<Title title="Default Typography" theme="light" level={4} />
|
|
15
|
+
<DxcTypography>Default typography.</DxcTypography>
|
|
16
|
+
</ExampleContainer>
|
|
17
|
+
<ExampleContainer>
|
|
18
|
+
<Title title="Typography font sizes" theme="light" level={4} />
|
|
19
|
+
<DxcTypography display="block" fontSize="3.75rem">
|
|
20
|
+
3.75rem.
|
|
21
|
+
</DxcTypography>
|
|
22
|
+
<DxcTypography display="block" fontSize="3rem">
|
|
23
|
+
3rem.
|
|
24
|
+
</DxcTypography>
|
|
25
|
+
<DxcTypography display="block" fontSize="2rem">
|
|
26
|
+
2rem.
|
|
27
|
+
</DxcTypography>
|
|
28
|
+
<DxcTypography display="block" fontSize="1.5rem">
|
|
29
|
+
1.5rem.
|
|
30
|
+
</DxcTypography>
|
|
31
|
+
<DxcTypography display="block" fontSize="1.25rem">
|
|
32
|
+
1.25rem.
|
|
33
|
+
</DxcTypography>
|
|
34
|
+
<DxcTypography display="block" fontSize="1rem">
|
|
35
|
+
1rem.
|
|
36
|
+
</DxcTypography>
|
|
37
|
+
<DxcTypography display="block" fontSize="0.875rem">
|
|
38
|
+
0.875rem.
|
|
39
|
+
</DxcTypography>
|
|
40
|
+
<DxcTypography display="block" fontSize="0.75rem">
|
|
41
|
+
0.75rem.
|
|
42
|
+
</DxcTypography>
|
|
43
|
+
</ExampleContainer>
|
|
44
|
+
<ExampleContainer>
|
|
45
|
+
<Title title="Typography letter spacing" theme="light" level={4} />
|
|
46
|
+
<DxcTypography display="block" letterSpacing="-0.025em">
|
|
47
|
+
-0.025em.
|
|
48
|
+
</DxcTypography>
|
|
49
|
+
<DxcTypography display="block" letterSpacing="-0.0125em">
|
|
50
|
+
-0.0125em.
|
|
51
|
+
</DxcTypography>
|
|
52
|
+
<DxcTypography display="block" letterSpacing="0em">
|
|
53
|
+
0em.
|
|
54
|
+
</DxcTypography>
|
|
55
|
+
<DxcTypography display="block" letterSpacing="0.025em">
|
|
56
|
+
0.025em.
|
|
57
|
+
</DxcTypography>
|
|
58
|
+
<DxcTypography display="block" letterSpacing="0.05em">
|
|
59
|
+
0.05em.
|
|
60
|
+
</DxcTypography>
|
|
61
|
+
<DxcTypography display="block" letterSpacing="0.1em">
|
|
62
|
+
0.1em.
|
|
63
|
+
</DxcTypography>{" "}
|
|
64
|
+
</ExampleContainer>
|
|
65
|
+
<ExampleContainer>
|
|
66
|
+
<Title title="Typography line height" theme="light" level={4} />
|
|
67
|
+
<DxcTypography display="block" lineHeight="1em">
|
|
68
|
+
1em.
|
|
69
|
+
</DxcTypography>
|
|
70
|
+
<DxcTypography display="block" lineHeight="1.25em">
|
|
71
|
+
1.25em.
|
|
72
|
+
</DxcTypography>
|
|
73
|
+
<DxcTypography display="block" lineHeight="1.365em">
|
|
74
|
+
1.365em.
|
|
75
|
+
</DxcTypography>
|
|
76
|
+
<DxcTypography display="block" lineHeight="1.5em">
|
|
77
|
+
1.5em.
|
|
78
|
+
</DxcTypography>
|
|
79
|
+
<DxcTypography display="block" lineHeight="1.715em">
|
|
80
|
+
1.715em.
|
|
81
|
+
</DxcTypography>
|
|
82
|
+
<DxcTypography display="block" lineHeight="2em">
|
|
83
|
+
2em.
|
|
84
|
+
</DxcTypography>
|
|
85
|
+
</ExampleContainer>
|
|
86
|
+
<ExampleContainer>
|
|
87
|
+
<Title title="Typography font weight" theme="light" level={4} />
|
|
88
|
+
<DxcTypography display="block" fontWeight="300">
|
|
89
|
+
300.
|
|
90
|
+
</DxcTypography>
|
|
91
|
+
<DxcTypography display="block" fontWeight="400">
|
|
92
|
+
400.
|
|
93
|
+
</DxcTypography>
|
|
94
|
+
<DxcTypography display="block" fontWeight="600">
|
|
95
|
+
600.
|
|
96
|
+
</DxcTypography>
|
|
97
|
+
<DxcTypography display="block" fontWeight="700">
|
|
98
|
+
700.
|
|
99
|
+
</DxcTypography>
|
|
100
|
+
</ExampleContainer>
|
|
101
|
+
<ExampleContainer>
|
|
102
|
+
<Title title="Typography decoration" theme="light" level={4} />
|
|
103
|
+
<DxcTypography display="block" textDecoration="underline">
|
|
104
|
+
Underline.
|
|
105
|
+
</DxcTypography>
|
|
106
|
+
<DxcTypography display="block" textDecoration="line-through">
|
|
107
|
+
Line-through.
|
|
108
|
+
</DxcTypography>
|
|
109
|
+
</ExampleContainer>
|
|
110
|
+
<ExampleContainer>
|
|
111
|
+
<Title title="Typography font family" theme="light" level={4} />
|
|
112
|
+
<DxcTypography display="block" fontFamily="Open Sans, sans-serif">
|
|
113
|
+
Open Sans, sans-serif.
|
|
114
|
+
</DxcTypography>
|
|
115
|
+
<DxcTypography display="block" fontFamily="Source Code Pro, monospace">
|
|
116
|
+
Source Code Pro, monospace.
|
|
117
|
+
</DxcTypography>
|
|
118
|
+
</ExampleContainer>
|
|
119
|
+
<ExampleContainer>
|
|
120
|
+
<Title title="Typography font style" theme="light" level={4} />
|
|
121
|
+
<DxcTypography display="block" fontStyle="italic">
|
|
122
|
+
Italic.
|
|
123
|
+
</DxcTypography>
|
|
124
|
+
<DxcTypography display="block" fontStyle="normal">
|
|
125
|
+
Normal.
|
|
126
|
+
</DxcTypography>
|
|
127
|
+
</ExampleContainer>
|
|
128
|
+
<ExampleContainer>
|
|
129
|
+
<Title title="Typography align" theme="light" level={4} />
|
|
130
|
+
<DxcTypography display="block" textAlign="left">
|
|
131
|
+
Left.
|
|
132
|
+
</DxcTypography>
|
|
133
|
+
<DxcTypography display="block" textAlign="center">
|
|
134
|
+
Center.
|
|
135
|
+
</DxcTypography>
|
|
136
|
+
<DxcTypography display="block" textAlign="right">
|
|
137
|
+
Right.
|
|
138
|
+
</DxcTypography>
|
|
139
|
+
</ExampleContainer>
|
|
140
|
+
<ExampleContainer>
|
|
141
|
+
<Title title="Typography whitespace" theme="light" level={4} />
|
|
142
|
+
<div style={{ margin: "50px", border: "1px solid red", width: "125px" }}>
|
|
143
|
+
<DxcTypography fontSize="2rem">
|
|
144
|
+
{" "} Normal: A bunch of words you see.
|
|
145
|
+
</DxcTypography>
|
|
146
|
+
</div>
|
|
147
|
+
<div style={{ margin: "50px", border: "1px solid red", width: "125px" }}>
|
|
148
|
+
<DxcTypography whiteSpace="nowrap" fontSize="2rem">
|
|
149
|
+
{" "}No-wrap: A bunch of words you see.
|
|
150
|
+
</DxcTypography>
|
|
151
|
+
</div>
|
|
152
|
+
<div style={{ margin: "50px", border: "1px solid red", width: "125px" }}>
|
|
153
|
+
<DxcTypography whiteSpace="pre" fontSize="2rem">
|
|
154
|
+
{" "} pre: A bunch of words you see.
|
|
155
|
+
</DxcTypography>
|
|
156
|
+
</div>
|
|
157
|
+
<div style={{ margin: "50px", border: "1px solid red", width: "125px" }}>
|
|
158
|
+
<DxcTypography whiteSpace="pre-line" fontSize="2rem">
|
|
159
|
+
{" "}pre-line: A bunch of words you see.
|
|
160
|
+
</DxcTypography>
|
|
161
|
+
</div>
|
|
162
|
+
<div style={{ margin: "50px", border: "1px solid red", width: "125px" }}>
|
|
163
|
+
<DxcTypography whiteSpace="pre-wrap" fontSize="2rem">
|
|
164
|
+
{" "} pre-wrap: A bunch of words you see.
|
|
165
|
+
</DxcTypography>
|
|
166
|
+
</div>
|
|
167
|
+
</ExampleContainer>{" "}
|
|
168
|
+
<ExampleContainer>
|
|
169
|
+
<Title title="Typography display" theme="light" level={4} />
|
|
170
|
+
<DxcTypography display="block" textAlign="left">
|
|
171
|
+
Display Block.
|
|
172
|
+
<DxcTypography>A different text.</DxcTypography>
|
|
173
|
+
</DxcTypography>
|
|
174
|
+
<DxcTypography display="inline" textAlign="left">
|
|
175
|
+
Display Inline.
|
|
176
|
+
<DxcTypography>A different text.</DxcTypography>
|
|
177
|
+
</DxcTypography>
|
|
178
|
+
</ExampleContainer>
|
|
179
|
+
<ExampleContainer>
|
|
180
|
+
<Title title="Typography text-overflow" theme="light" level={4} />
|
|
181
|
+
<div style={{ width: "75px" }}>
|
|
182
|
+
<DxcTypography display="block" textOverflow="clip">
|
|
183
|
+
Overflow clip.
|
|
184
|
+
</DxcTypography>
|
|
185
|
+
</div>
|
|
186
|
+
<div style={{ width: "75px" }}>
|
|
187
|
+
<DxcTypography display="block" textOverflow="ellipsis">
|
|
188
|
+
Overflow ellipsis.
|
|
189
|
+
</DxcTypography>
|
|
190
|
+
</div>
|
|
191
|
+
<div style={{ width: "75px" }}>
|
|
192
|
+
<DxcTypography display="block" textOverflow="unset">
|
|
193
|
+
Overflow unset.
|
|
194
|
+
</DxcTypography>
|
|
195
|
+
</div>
|
|
196
|
+
</ExampleContainer>
|
|
197
|
+
</>
|
|
198
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
as?: keyof HTMLElementTagNameMap;
|
|
4
|
+
display?: "inline" | "block";
|
|
5
|
+
fontFamily?: "Open Sans, sans-serif" | "Source Code Pro, monospace";
|
|
6
|
+
fontSize?: "0.75rem" | "0.875rem" | "1rem" | "1.25rem" | "1.5rem" | "2rem" | "3rem" | "3.75rem";
|
|
7
|
+
fontStyle?: "italic" | "normal";
|
|
8
|
+
fontWeight?: "300" | "400" | "600" | "700";
|
|
9
|
+
letterSpacing?: "-0.025em" | "-0.0125em" | "0em" | "0.025em" | "0.05em" | "0.1em";
|
|
10
|
+
lineHeight?: "1em" | "1.25em" | "1.365em" | "1.5em" | "1.715em" | "2em";
|
|
11
|
+
textAlign?: "left" | "center" | "right";
|
|
12
|
+
color?: string;
|
|
13
|
+
textDecoration?: "none" | "underline" | "line-through";
|
|
14
|
+
textOverflow?: "clip" | "ellipsis" | "unset";
|
|
15
|
+
whiteSpace?: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
};
|
|
18
|
+
export default Props;
|