@dxc-technology/halstack-react 0.0.0-4bc8a44 → 0.0.0-4c0fd86
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 +4 -21
- package/HalstackContext.d.ts +77 -144
- package/HalstackContext.js +41 -56
- package/README.md +47 -0
- package/accordion/Accordion.accessibility.test.d.ts +1 -0
- package/accordion/Accordion.accessibility.test.js +71 -0
- package/accordion/Accordion.d.ts +1 -1
- package/accordion/Accordion.js +35 -101
- package/accordion/Accordion.stories.tsx +8 -162
- package/accordion/Accordion.test.d.ts +1 -0
- package/accordion/Accordion.test.js +19 -34
- package/accordion/types.d.ts +6 -18
- 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 -2
- package/accordion-group/AccordionGroup.js +27 -75
- package/accordion-group/AccordionGroup.stories.tsx +78 -77
- package/accordion-group/AccordionGroup.test.d.ts +1 -0
- package/accordion-group/AccordionGroup.test.js +42 -74
- package/accordion-group/AccordionGroupAccordion.d.ts +4 -0
- package/accordion-group/AccordionGroupAccordion.js +31 -0
- package/accordion-group/AccordionGroupContext.d.ts +3 -0
- package/accordion-group/AccordionGroupContext.js +8 -0
- package/accordion-group/types.d.ts +7 -19
- 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/alert/Alert.accessibility.test.d.ts +1 -0
- package/alert/Alert.accessibility.test.js +95 -0
- package/alert/Alert.js +34 -120
- package/alert/Alert.test.d.ts +1 -0
- package/alert/Alert.test.js +29 -46
- package/alert/types.d.ts +5 -5
- 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 +142 -42
- 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/bleed/Bleed.js +13 -21
- package/bleed/types.d.ts +2 -2
- package/box/Box.accessibility.test.d.ts +1 -0
- package/box/Box.accessibility.test.js +33 -0
- package/box/Box.d.ts +1 -1
- package/box/Box.js +16 -55
- package/box/Box.stories.tsx +25 -53
- package/box/Box.test.d.ts +1 -0
- package/box/Box.test.js +2 -7
- package/box/types.d.ts +3 -15
- package/breadcrumbs/Breadcrumbs.accessibility.test.d.ts +1 -0
- package/breadcrumbs/Breadcrumbs.accessibility.test.js +96 -0
- package/breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/breadcrumbs/Breadcrumbs.js +79 -0
- package/breadcrumbs/Breadcrumbs.stories.tsx +194 -0
- package/breadcrumbs/Breadcrumbs.test.d.ts +1 -0
- package/breadcrumbs/Breadcrumbs.test.js +168 -0
- package/breadcrumbs/Item.d.ts +4 -0
- package/breadcrumbs/Item.js +52 -0
- package/breadcrumbs/dropdownTheme.d.ts +53 -0
- package/breadcrumbs/dropdownTheme.js +62 -0
- package/breadcrumbs/types.d.ts +40 -0
- package/bulleted-list/BulletedList.accessibility.test.d.ts +1 -0
- package/bulleted-list/BulletedList.accessibility.test.js +119 -0
- package/bulleted-list/BulletedList.js +22 -55
- package/bulleted-list/BulletedList.stories.tsx +2 -93
- package/bulleted-list/types.d.ts +5 -5
- package/button/Button.accessibility.test.d.ts +1 -0
- package/button/Button.accessibility.test.js +127 -0
- package/button/Button.d.ts +1 -1
- package/button/Button.js +68 -100
- package/button/Button.stories.tsx +35 -135
- package/button/Button.test.d.ts +1 -0
- package/button/Button.test.js +20 -17
- package/button/types.d.ts +9 -5
- package/card/Card.accessibility.test.d.ts +1 -0
- package/card/Card.accessibility.test.js +36 -0
- package/card/Card.d.ts +1 -1
- package/card/Card.js +40 -79
- package/card/Card.stories.tsx +1 -30
- package/card/Card.test.d.ts +1 -0
- package/card/Card.test.js +11 -22
- package/card/types.d.ts +6 -12
- package/checkbox/Checkbox.accessibility.test.d.ts +1 -0
- package/checkbox/Checkbox.accessibility.test.js +87 -0
- package/checkbox/Checkbox.js +88 -126
- package/checkbox/Checkbox.stories.tsx +16 -54
- package/checkbox/Checkbox.test.d.ts +1 -0
- package/checkbox/Checkbox.test.js +108 -64
- package/checkbox/types.d.ts +8 -4
- package/chip/Chip.accessibility.test.d.ts +1 -0
- package/chip/Chip.accessibility.test.js +67 -0
- package/chip/Chip.js +22 -36
- package/chip/Chip.stories.tsx +6 -25
- package/chip/Chip.test.d.ts +1 -0
- package/chip/Chip.test.js +18 -31
- package/chip/types.d.ts +4 -4
- package/common/coreTokens.d.ts +105 -15
- package/common/coreTokens.js +41 -25
- package/common/utils.js +2 -8
- package/common/variables.d.ts +83 -144
- package/common/variables.js +153 -227
- 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 +176 -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 +136 -0
- package/contextual-menu/ContextualMenu.stories.tsx +231 -0
- package/contextual-menu/ContextualMenu.test.d.ts +1 -0
- package/contextual-menu/ContextualMenu.test.js +247 -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 +88 -0
- package/contextual-menu/MenuItem.d.ts +4 -0
- package/contextual-menu/MenuItem.js +29 -0
- package/contextual-menu/SingleItem.d.ts +4 -0
- package/contextual-menu/SingleItem.js +38 -0
- package/contextual-menu/types.d.ts +65 -0
- package/contextual-menu/types.js +5 -0
- package/date-input/Calendar.js +59 -87
- package/date-input/DateInput.accessibility.test.d.ts +1 -0
- package/date-input/DateInput.accessibility.test.js +229 -0
- package/date-input/DateInput.js +70 -111
- package/date-input/DateInput.stories.tsx +22 -35
- package/date-input/DateInput.test.d.ts +1 -0
- package/date-input/DateInput.test.js +675 -702
- package/date-input/DatePicker.js +23 -48
- package/date-input/YearPicker.js +17 -38
- package/date-input/types.d.ts +28 -22
- package/dialog/Dialog.accessibility.test.d.ts +1 -0
- package/dialog/Dialog.accessibility.test.js +69 -0
- package/dialog/Dialog.d.ts +1 -1
- package/dialog/Dialog.js +23 -79
- package/dialog/Dialog.stories.tsx +219 -169
- package/dialog/Dialog.test.d.ts +1 -0
- package/dialog/Dialog.test.js +216 -215
- package/dialog/types.d.ts +18 -26
- 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 +224 -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 +183 -0
- package/dropdown/Dropdown.js +67 -135
- package/dropdown/Dropdown.stories.tsx +16 -27
- package/dropdown/Dropdown.test.d.ts +1 -0
- package/dropdown/Dropdown.test.js +434 -392
- package/dropdown/DropdownMenu.js +12 -23
- package/dropdown/DropdownMenuItem.js +13 -21
- package/dropdown/types.d.ts +20 -24
- package/file-input/FileInput.accessibility.test.d.ts +1 -0
- package/file-input/FileInput.accessibility.test.js +167 -0
- package/file-input/FileInput.js +177 -286
- package/file-input/FileInput.stories.tsx +1 -1
- package/file-input/FileInput.test.d.ts +1 -0
- package/file-input/FileInput.test.js +303 -356
- package/file-input/FileItem.js +30 -67
- package/file-input/types.d.ts +9 -13
- package/flex/Flex.js +25 -39
- package/flex/types.d.ts +6 -6
- 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 +72 -115
- package/footer/Footer.stories.tsx +77 -97
- package/footer/Footer.test.d.ts +1 -0
- package/footer/Footer.test.js +22 -34
- package/footer/Icons.d.ts +3 -2
- package/footer/Icons.js +53 -22
- package/footer/types.d.ts +26 -28
- package/grid/Grid.d.ts +1 -1
- package/grid/Grid.js +2 -17
- package/grid/Grid.stories.tsx +41 -39
- package/grid/types.d.ts +10 -10
- package/header/Header.accessibility.test.d.ts +1 -0
- package/header/Header.accessibility.test.js +94 -0
- package/header/Header.d.ts +2 -2
- package/header/Header.js +41 -134
- package/header/Header.stories.tsx +24 -72
- package/header/Header.test.d.ts +1 -0
- package/header/Header.test.js +13 -26
- package/header/Icons.d.ts +2 -2
- package/header/Icons.js +3 -13
- package/header/types.d.ts +7 -22
- package/heading/Heading.accessibility.test.d.ts +1 -0
- package/heading/Heading.accessibility.test.js +33 -0
- package/heading/Heading.js +9 -31
- package/heading/Heading.test.d.ts +1 -0
- package/heading/Heading.test.js +65 -95
- package/heading/types.d.ts +7 -7
- 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.d.ts +4 -0
- package/image/Image.js +70 -0
- package/image/Image.stories.tsx +129 -0
- package/image/types.d.ts +72 -0
- package/image/types.js +5 -0
- package/inset/Inset.js +13 -21
- package/inset/types.d.ts +2 -2
- package/layout/ApplicationLayout.d.ts +3 -3
- package/layout/ApplicationLayout.js +35 -69
- package/layout/ApplicationLayout.stories.tsx +1 -1
- package/layout/Icons.d.ts +7 -5
- package/layout/Icons.js +41 -59
- package/layout/types.d.ts +3 -3
- package/link/Link.accessibility.test.d.ts +1 -0
- package/link/Link.accessibility.test.js +108 -0
- package/link/Link.js +28 -47
- package/link/Link.stories.tsx +4 -4
- package/link/Link.test.d.ts +1 -0
- package/link/Link.test.js +24 -42
- package/link/types.d.ts +14 -14
- package/main.d.ts +9 -4
- package/main.js +46 -59
- 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 +2 -3
- package/nav-tabs/NavTabs.js +39 -56
- package/nav-tabs/NavTabs.stories.tsx +57 -23
- package/nav-tabs/NavTabs.test.d.ts +1 -0
- package/nav-tabs/NavTabs.test.js +46 -51
- package/nav-tabs/NavTabsContext.d.ts +3 -0
- package/nav-tabs/NavTabsContext.js +8 -0
- package/nav-tabs/Tab.js +53 -86
- package/nav-tabs/types.d.ts +15 -16
- package/number-input/NumberInput.accessibility.test.d.ts +1 -0
- package/number-input/NumberInput.accessibility.test.js +227 -0
- package/number-input/NumberInput.js +50 -37
- package/number-input/NumberInput.stories.tsx +37 -26
- package/number-input/NumberInput.test.d.ts +1 -0
- package/number-input/NumberInput.test.js +859 -413
- package/number-input/NumberInputContext.d.ts +3 -4
- package/number-input/NumberInputContext.js +3 -14
- package/number-input/types.d.ts +17 -5
- package/package.json +48 -41
- package/paginator/Paginator.accessibility.test.d.ts +1 -0
- package/paginator/Paginator.accessibility.test.js +78 -0
- package/paginator/Paginator.js +28 -53
- package/paginator/Paginator.test.d.ts +1 -0
- package/paginator/Paginator.test.js +231 -202
- package/paginator/types.d.ts +3 -3
- package/paragraph/Paragraph.accessibility.test.d.ts +1 -0
- package/paragraph/Paragraph.accessibility.test.js +28 -0
- package/paragraph/Paragraph.js +3 -19
- package/paragraph/Paragraph.stories.tsx +0 -17
- package/password-input/PasswordInput.accessibility.test.d.ts +1 -0
- package/password-input/PasswordInput.accessibility.test.js +152 -0
- package/password-input/PasswordInput.js +62 -128
- package/password-input/PasswordInput.stories.tsx +11 -34
- package/password-input/PasswordInput.test.d.ts +1 -0
- package/password-input/PasswordInput.test.js +157 -141
- package/password-input/types.d.ts +8 -7
- package/progress-bar/ProgressBar.accessibility.test.d.ts +1 -0
- package/progress-bar/ProgressBar.accessibility.test.js +35 -0
- package/progress-bar/ProgressBar.js +26 -56
- package/progress-bar/{ProgressBar.stories.jsx → ProgressBar.stories.tsx} +1 -1
- package/progress-bar/ProgressBar.test.d.ts +1 -0
- package/progress-bar/ProgressBar.test.js +36 -53
- package/progress-bar/types.d.ts +3 -3
- package/quick-nav/QuickNav.accessibility.test.d.ts +1 -0
- package/quick-nav/QuickNav.accessibility.test.js +57 -0
- package/quick-nav/QuickNav.js +4 -27
- package/quick-nav/QuickNav.stories.tsx +1 -1
- package/quick-nav/types.d.ts +10 -10
- package/radio-group/Radio.d.ts +1 -1
- package/radio-group/Radio.js +31 -66
- package/radio-group/RadioGroup.accessibility.test.d.ts +1 -0
- package/radio-group/RadioGroup.accessibility.test.js +97 -0
- package/radio-group/RadioGroup.js +48 -98
- package/radio-group/RadioGroup.stories.tsx +10 -10
- package/radio-group/RadioGroup.test.d.ts +1 -0
- package/radio-group/RadioGroup.test.js +505 -473
- package/radio-group/types.d.ts +8 -8
- package/resultset-table/Icons.d.ts +7 -0
- package/{resultsetTable → resultset-table}/Icons.js +1 -5
- package/resultset-table/ResultsetTable.accessibility.test.d.ts +1 -0
- package/resultset-table/ResultsetTable.accessibility.test.js +284 -0
- package/resultset-table/ResultsetTable.d.ts +7 -0
- package/{resultsetTable → resultset-table}/ResultsetTable.js +74 -74
- package/{resultsetTable → resultset-table}/ResultsetTable.stories.tsx +119 -6
- package/resultset-table/ResultsetTable.test.d.ts +1 -0
- package/resultset-table/ResultsetTable.test.js +450 -0
- package/{resultsetTable → resultset-table}/types.d.ts +44 -11
- package/resultset-table/types.js +5 -0
- package/select/Listbox.js +36 -54
- package/select/Option.js +28 -36
- package/select/Select.accessibility.test.d.ts +1 -0
- package/select/Select.accessibility.test.js +227 -0
- package/select/Select.js +114 -178
- package/select/Select.stories.tsx +70 -113
- package/select/Select.test.d.ts +1 -0
- package/select/Select.test.js +1900 -1861
- package/select/types.d.ts +15 -16
- package/sidenav/Sidenav.accessibility.test.d.ts +1 -0
- package/sidenav/Sidenav.accessibility.test.js +59 -0
- package/sidenav/Sidenav.js +44 -81
- package/sidenav/Sidenav.stories.tsx +5 -10
- package/sidenav/Sidenav.test.d.ts +1 -0
- package/sidenav/Sidenav.test.js +4 -11
- package/{layout → sidenav}/SidenavContext.d.ts +1 -1
- package/{layout → sidenav}/SidenavContext.js +3 -9
- package/sidenav/types.d.ts +20 -20
- package/slider/Slider.accessibility.test.d.ts +1 -0
- package/slider/Slider.accessibility.test.js +103 -0
- package/slider/Slider.js +66 -125
- package/slider/Slider.stories.tsx +0 -60
- package/slider/Slider.test.d.ts +1 -0
- package/slider/Slider.test.js +118 -112
- package/slider/types.d.ts +4 -4
- package/spinner/Spinner.accessibility.test.d.ts +1 -0
- package/spinner/Spinner.accessibility.test.js +96 -0
- package/spinner/Spinner.js +21 -55
- package/spinner/Spinner.test.d.ts +1 -0
- package/spinner/Spinner.test.js +26 -35
- package/spinner/types.d.ts +3 -3
- 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 +49 -100
- package/switch/Switch.stories.tsx +12 -34
- package/switch/Switch.test.d.ts +1 -0
- package/switch/Switch.test.js +52 -97
- package/switch/types.d.ts +4 -4
- package/table/DropdownTheme.js +62 -0
- package/table/Table.accessibility.test.d.ts +1 -0
- package/table/Table.accessibility.test.js +92 -0
- package/table/Table.d.ts +6 -2
- package/table/Table.js +76 -33
- package/table/{Table.stories.jsx → Table.stories.tsx} +309 -2
- package/table/Table.test.d.ts +1 -0
- package/table/Table.test.js +92 -7
- package/table/types.d.ts +34 -6
- package/tabs/Tab.js +22 -37
- package/tabs/Tabs.accessibility.test.d.ts +1 -0
- package/tabs/Tabs.accessibility.test.js +56 -0
- package/tabs/Tabs.js +59 -147
- package/tabs/Tabs.stories.tsx +8 -4
- package/tabs/Tabs.test.d.ts +1 -0
- package/tabs/Tabs.test.js +58 -132
- package/tabs/types.d.ts +21 -21
- package/tag/Tag.accessibility.test.d.ts +1 -0
- package/tag/Tag.accessibility.test.js +69 -0
- package/tag/Tag.js +27 -57
- package/tag/Tag.stories.tsx +5 -8
- package/tag/Tag.test.d.ts +1 -0
- package/tag/Tag.test.js +18 -37
- package/tag/types.d.ts +9 -9
- package/text-input/Suggestion.js +9 -26
- package/text-input/Suggestions.d.ts +1 -1
- package/text-input/Suggestions.js +30 -70
- package/text-input/TextInput.accessibility.test.d.ts +1 -0
- package/text-input/TextInput.accessibility.test.js +320 -0
- package/text-input/TextInput.js +224 -326
- package/text-input/TextInput.stories.tsx +68 -160
- package/text-input/TextInput.test.d.ts +1 -0
- package/text-input/TextInput.test.js +1227 -1195
- package/text-input/types.d.ts +25 -17
- package/textarea/Textarea.accessibility.test.d.ts +1 -0
- package/textarea/Textarea.accessibility.test.js +155 -0
- package/textarea/Textarea.js +64 -105
- package/textarea/{Textarea.stories.jsx → Textarea.stories.tsx} +58 -100
- package/textarea/Textarea.test.d.ts +1 -0
- package/textarea/Textarea.test.js +151 -180
- package/textarea/types.d.ts +9 -5
- package/toggle-group/ToggleGroup.accessibility.test.d.ts +1 -0
- package/toggle-group/ToggleGroup.accessibility.test.js +107 -0
- package/toggle-group/ToggleGroup.js +90 -109
- package/toggle-group/ToggleGroup.stories.tsx +11 -8
- package/toggle-group/ToggleGroup.test.d.ts +1 -0
- package/toggle-group/ToggleGroup.test.js +69 -88
- package/toggle-group/types.d.ts +28 -19
- package/tooltip/Tooltip.accessibility.test.d.ts +1 -0
- package/tooltip/Tooltip.accessibility.test.js +144 -0
- package/tooltip/Tooltip.d.ts +4 -0
- package/tooltip/Tooltip.js +50 -0
- package/tooltip/Tooltip.stories.tsx +111 -0
- package/tooltip/Tooltip.test.d.ts +1 -0
- package/tooltip/Tooltip.test.js +112 -0
- package/tooltip/types.d.ts +16 -0
- package/tooltip/types.js +5 -0
- package/typography/Typography.accessibility.test.d.ts +1 -0
- package/typography/Typography.accessibility.test.js +339 -0
- package/typography/Typography.js +4 -13
- package/typography/Typography.stories.tsx +1 -3
- package/typography/Typography.test.js +23 -0
- package/typography/types.d.ts +1 -1
- package/useTheme.d.ts +74 -141
- package/useTheme.js +1 -8
- package/useTranslatedLabels.js +1 -7
- package/utils/BaseTypography.d.ts +2 -2
- package/utils/BaseTypography.js +60 -70
- package/utils/FocusLock.js +26 -39
- package/wizard/Wizard.accessibility.test.d.ts +1 -0
- package/wizard/Wizard.accessibility.test.js +55 -0
- package/wizard/Wizard.js +27 -73
- package/wizard/Wizard.stories.tsx +20 -1
- package/wizard/Wizard.test.d.ts +1 -0
- package/wizard/Wizard.test.js +54 -81
- package/wizard/types.d.ts +8 -8
- package/card/ice-cream.jpg +0 -0
- 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 -75
- package/number-input/numberInputContextTypes.d.ts +0 -19
- package/paginator/Icons.d.ts +0 -5
- package/paginator/Icons.js +0 -54
- package/resultsetTable/Icons.d.ts +0 -7
- package/resultsetTable/ResultsetTable.d.ts +0 -4
- package/resultsetTable/ResultsetTable.test.js +0 -325
- package/select/Icons.d.ts +0 -10
- package/select/Icons.js +0 -93
- package/sidenav/Icons.d.ts +0 -7
- package/sidenav/Icons.js +0 -51
- package/text-input/Icons.d.ts +0 -8
- package/text-input/Icons.js +0 -60
- /package/{resultsetTable → action-icon}/types.js +0 -0
- /package/{number-input/numberInputContextTypes.js → breadcrumbs/types.js} +0 -0
- /package/spinner/{Spinner.stories.jsx → Spinner.stories.tsx} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { userEvent, within } from "@storybook/
|
|
2
|
+
import { userEvent, within } from "@storybook/test";
|
|
3
3
|
import Title from "../../.storybook/components/Title";
|
|
4
4
|
import ExampleContainer from "../../.storybook/components/ExampleContainer";
|
|
5
5
|
import DxcSelect from "./Select";
|
|
@@ -7,10 +7,23 @@ import Listbox from "./Listbox";
|
|
|
7
7
|
import { ThemeProvider } from "styled-components";
|
|
8
8
|
import useTheme from "../useTheme";
|
|
9
9
|
import { HalstackProvider } from "../HalstackContext";
|
|
10
|
+
import { disabledRules } from "../../test/accessibility/rules/specific/select/disabledRules";
|
|
11
|
+
import preview from "../../.storybook/preview";
|
|
12
|
+
import DxcFlex from "../flex/Flex";
|
|
10
13
|
|
|
11
14
|
export default {
|
|
12
15
|
title: "Select",
|
|
13
16
|
component: DxcSelect,
|
|
17
|
+
parameters: {
|
|
18
|
+
a11y: {
|
|
19
|
+
config: {
|
|
20
|
+
rules: [
|
|
21
|
+
...disabledRules.map((ruleId) => ({ id: ruleId, reviewOnFail: true })),
|
|
22
|
+
...preview?.parameters?.a11y?.config?.rules,
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
14
27
|
};
|
|
15
28
|
|
|
16
29
|
const one_option = [{ label: "Option 01", value: "1" }];
|
|
@@ -65,25 +78,14 @@ const group_options = [
|
|
|
65
78
|
},
|
|
66
79
|
];
|
|
67
80
|
|
|
68
|
-
const
|
|
81
|
+
const icon_options_grouped_material = [
|
|
69
82
|
{
|
|
70
83
|
label: "Group 001",
|
|
71
84
|
options: [
|
|
72
85
|
{
|
|
73
86
|
label: "3G Mobile",
|
|
74
87
|
value: "1",
|
|
75
|
-
icon:
|
|
76
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
|
|
77
|
-
<g>
|
|
78
|
-
<path d="M0,0h24v24H0V0z" fill="none" />
|
|
79
|
-
</g>
|
|
80
|
-
<g>
|
|
81
|
-
<g>
|
|
82
|
-
<path d="M3,7v2h5v2H4v2h4v2H3v2h5c1.1,0,2-0.9,2-2v-1.5c0-0.83-0.67-1.5-1.5-1.5c0.83,0,1.5-0.67,1.5-1.5V9c0-1.1-0.9-2-2-2H3z M21,11v4c0,1.1-0.9,2-2,2h-5c-1.1,0-2-0.9-2-2V9c0-1.1,0.9-2,2-2h5c1.1,0,2,0.9,2,2h-7v6h5v-2h-2.5v-2H21z" />
|
|
83
|
-
</g>
|
|
84
|
-
</g>
|
|
85
|
-
</svg>
|
|
86
|
-
),
|
|
88
|
+
icon: "3g_mobiledata",
|
|
87
89
|
},
|
|
88
90
|
],
|
|
89
91
|
},
|
|
@@ -93,12 +95,7 @@ const icon_options_grouped = [
|
|
|
93
95
|
{
|
|
94
96
|
label: "Ethernet",
|
|
95
97
|
value: "2",
|
|
96
|
-
icon:
|
|
97
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
|
|
98
|
-
<path d="M0 0h24v24H0V0z" fill="none" />
|
|
99
|
-
<path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z" />
|
|
100
|
-
</svg>
|
|
101
|
-
),
|
|
98
|
+
icon: "settings_ethernet",
|
|
102
99
|
},
|
|
103
100
|
],
|
|
104
101
|
},
|
|
@@ -108,22 +105,12 @@ const icon_options_grouped = [
|
|
|
108
105
|
{
|
|
109
106
|
label: "Wi-fi",
|
|
110
107
|
value: "3",
|
|
111
|
-
icon:
|
|
112
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
|
|
113
|
-
<path d="M0 0h24v24H0V0zm0 0h24v24H0V0z" fill="none" />
|
|
114
|
-
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z" />
|
|
115
|
-
</svg>
|
|
116
|
-
),
|
|
108
|
+
icon: "wifi",
|
|
117
109
|
},
|
|
118
110
|
{
|
|
119
111
|
label: "Settings backup restore (just for previous configuration)",
|
|
120
112
|
value: "4",
|
|
121
|
-
icon:
|
|
122
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
|
|
123
|
-
<path d="M0 0h24v24H0V0z" fill="none" />
|
|
124
|
-
<path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z" />
|
|
125
|
-
</svg>
|
|
126
|
-
),
|
|
113
|
+
icon: "settings_backup_restore",
|
|
127
114
|
},
|
|
128
115
|
],
|
|
129
116
|
},
|
|
@@ -178,71 +165,49 @@ const icon_options = [
|
|
|
178
165
|
},
|
|
179
166
|
];
|
|
180
167
|
|
|
181
|
-
const
|
|
168
|
+
const options_material = [
|
|
182
169
|
{
|
|
183
|
-
label: "
|
|
170
|
+
label: "Transport",
|
|
184
171
|
options: [
|
|
185
172
|
{
|
|
186
|
-
label: "
|
|
187
|
-
value: "
|
|
188
|
-
icon: "
|
|
173
|
+
label: "Electric Car",
|
|
174
|
+
value: "car",
|
|
175
|
+
icon: "electric_car",
|
|
189
176
|
},
|
|
190
177
|
{
|
|
191
|
-
label: "
|
|
192
|
-
value: "
|
|
193
|
-
icon: "
|
|
178
|
+
label: "Motorcycle",
|
|
179
|
+
value: "motorcycle",
|
|
180
|
+
icon: "Motorcycle",
|
|
194
181
|
},
|
|
195
182
|
{
|
|
196
|
-
label: "
|
|
197
|
-
value: "
|
|
198
|
-
icon:
|
|
199
|
-
<svg
|
|
200
|
-
version="1.1"
|
|
201
|
-
id="Capa_1"
|
|
202
|
-
x="0px"
|
|
203
|
-
y="0px"
|
|
204
|
-
width="438.536px"
|
|
205
|
-
height="438.536px"
|
|
206
|
-
viewBox="0 0 438.536 438.536"
|
|
207
|
-
fill="#4267B2"
|
|
208
|
-
>
|
|
209
|
-
<g>
|
|
210
|
-
<path
|
|
211
|
-
d="M414.41,24.123C398.333,8.042,378.963,0,356.315,0H82.228C59.58,0,40.21,8.042,24.126,24.123
|
|
212
|
-
C8.045,40.207,0.003,59.576,0.003,82.225v274.084c0,22.647,8.042,42.018,24.123,58.102c16.084,16.084,35.454,24.126,58.102,24.126
|
|
213
|
-
h274.084c22.648,0,42.018-8.042,58.095-24.126c16.084-16.084,24.126-35.454,24.126-58.102V82.225
|
|
214
|
-
C438.532,59.576,430.49,40.204,414.41,24.123z M373.155,225.548h-49.963V406.84h-74.802V225.548H210.99V163.02h37.401v-37.402
|
|
215
|
-
c0-26.838,6.283-47.107,18.843-60.813c12.559-13.706,33.304-20.555,62.242-20.555h49.963v62.526h-31.401
|
|
216
|
-
c-10.663,0-17.467,1.853-20.417,5.568c-2.949,3.711-4.428,10.23-4.428,19.558v31.119h56.534L373.155,225.548z"
|
|
217
|
-
/>
|
|
218
|
-
</g>
|
|
219
|
-
</svg>
|
|
220
|
-
),
|
|
183
|
+
label: "Train",
|
|
184
|
+
value: "train",
|
|
185
|
+
icon: "train",
|
|
221
186
|
},
|
|
222
187
|
{
|
|
223
|
-
label: "
|
|
224
|
-
value: "
|
|
225
|
-
icon: "
|
|
188
|
+
label: "Bike",
|
|
189
|
+
value: "bike",
|
|
190
|
+
icon: "pedal_bike",
|
|
226
191
|
},
|
|
227
192
|
],
|
|
228
193
|
},
|
|
229
194
|
{
|
|
230
|
-
label: "
|
|
195
|
+
label: "Entertainment",
|
|
231
196
|
options: [
|
|
232
197
|
{
|
|
233
|
-
label: "
|
|
234
|
-
value: "
|
|
235
|
-
icon: "
|
|
198
|
+
label: "Movie",
|
|
199
|
+
value: "movie",
|
|
200
|
+
icon: "movie",
|
|
236
201
|
},
|
|
237
202
|
{
|
|
238
|
-
label: "
|
|
239
|
-
value: "
|
|
240
|
-
icon: "
|
|
203
|
+
label: "Music",
|
|
204
|
+
value: "music",
|
|
205
|
+
icon: "music_note",
|
|
241
206
|
},
|
|
242
207
|
{
|
|
243
|
-
label: "
|
|
244
|
-
value: "
|
|
245
|
-
icon: "
|
|
208
|
+
label: "Games",
|
|
209
|
+
value: "games",
|
|
210
|
+
icon: "joystick",
|
|
246
211
|
},
|
|
247
212
|
],
|
|
248
213
|
},
|
|
@@ -341,6 +306,14 @@ const Select = () => (
|
|
|
341
306
|
<Title title="Fillparent size" theme="light" level={4} />
|
|
342
307
|
<DxcSelect label="Fillparent" options={single_options} size="fillParent" />
|
|
343
308
|
</ExampleContainer>
|
|
309
|
+
<ExampleContainer>
|
|
310
|
+
<Title title="Different sizes inside a flex" theme="light" level={4} />
|
|
311
|
+
<DxcFlex justifyContent="space-between" gap="1rem">
|
|
312
|
+
<DxcSelect label="fillParent" size="fillParent" options={single_options} />
|
|
313
|
+
<DxcSelect label="medium" size="medium" options={single_options} />
|
|
314
|
+
<DxcSelect label="large" size="large" options={single_options} />
|
|
315
|
+
</DxcFlex>
|
|
316
|
+
</ExampleContainer>
|
|
344
317
|
<Title title="Margins" theme="light" level={2} />
|
|
345
318
|
<ExampleContainer>
|
|
346
319
|
<Title title="xxsmall margin" theme="light" level={4} />
|
|
@@ -438,7 +411,7 @@ const Select = () => (
|
|
|
438
411
|
);
|
|
439
412
|
|
|
440
413
|
const SelectListbox = () => {
|
|
441
|
-
const colorsTheme
|
|
414
|
+
const colorsTheme = useTheme();
|
|
442
415
|
|
|
443
416
|
return (
|
|
444
417
|
<>
|
|
@@ -474,7 +447,7 @@ const SelectListbox = () => {
|
|
|
474
447
|
<ExampleContainer pseudoState="pseudo-hover">
|
|
475
448
|
<Title title="Hovered option" theme="light" level={4} />
|
|
476
449
|
<Listbox
|
|
477
|
-
id="
|
|
450
|
+
id="x8"
|
|
478
451
|
currentValue=""
|
|
479
452
|
options={one_option}
|
|
480
453
|
visualFocusIndex={-1}
|
|
@@ -490,7 +463,7 @@ const SelectListbox = () => {
|
|
|
490
463
|
<ExampleContainer pseudoState="pseudo-active">
|
|
491
464
|
<Title title="Active option" theme="light" level={4} />
|
|
492
465
|
<Listbox
|
|
493
|
-
id="
|
|
466
|
+
id="x9"
|
|
494
467
|
currentValue=""
|
|
495
468
|
options={one_option}
|
|
496
469
|
visualFocusIndex={-1}
|
|
@@ -506,7 +479,7 @@ const SelectListbox = () => {
|
|
|
506
479
|
<ExampleContainer>
|
|
507
480
|
<Title title="Focused option" theme="light" level={4} />
|
|
508
481
|
<Listbox
|
|
509
|
-
id="
|
|
482
|
+
id="x10"
|
|
510
483
|
currentValue=""
|
|
511
484
|
options={one_option}
|
|
512
485
|
visualFocusIndex={0}
|
|
@@ -522,7 +495,7 @@ const SelectListbox = () => {
|
|
|
522
495
|
<ExampleContainer pseudoState="pseudo-hover">
|
|
523
496
|
<Title title="Hovered selected option" theme="light" level={4} />
|
|
524
497
|
<Listbox
|
|
525
|
-
id="
|
|
498
|
+
id="x11"
|
|
526
499
|
currentValue="1"
|
|
527
500
|
options={single_options}
|
|
528
501
|
visualFocusIndex={-1}
|
|
@@ -538,7 +511,7 @@ const SelectListbox = () => {
|
|
|
538
511
|
<ExampleContainer pseudoState="pseudo-active">
|
|
539
512
|
<Title title="Active selected option" theme="light" level={4} />
|
|
540
513
|
<Listbox
|
|
541
|
-
id="
|
|
514
|
+
id="x12"
|
|
542
515
|
currentValue="2"
|
|
543
516
|
options={single_options}
|
|
544
517
|
visualFocusIndex={0}
|
|
@@ -555,7 +528,7 @@ const SelectListbox = () => {
|
|
|
555
528
|
<ExampleContainer>
|
|
556
529
|
<Title title="Icons (SVGs)" theme="light" level={4} />
|
|
557
530
|
<Listbox
|
|
558
|
-
id="
|
|
531
|
+
id="x13"
|
|
559
532
|
currentValue="3"
|
|
560
533
|
options={icon_options}
|
|
561
534
|
visualFocusIndex={-1}
|
|
@@ -569,27 +542,11 @@ const SelectListbox = () => {
|
|
|
569
542
|
/>
|
|
570
543
|
</ExampleContainer>
|
|
571
544
|
<ExampleContainer>
|
|
572
|
-
<Title title="
|
|
573
|
-
<Listbox
|
|
574
|
-
id="x"
|
|
575
|
-
currentValue="facebook"
|
|
576
|
-
options={url_options}
|
|
577
|
-
visualFocusIndex={-1}
|
|
578
|
-
lastOptionIndex={6}
|
|
579
|
-
multiple={false}
|
|
580
|
-
optional={false}
|
|
581
|
-
optionalItem={{ label: "Empty", value: "" }}
|
|
582
|
-
searchable={false}
|
|
583
|
-
handleOptionOnClick={() => {}}
|
|
584
|
-
styles={{ width: 360 }}
|
|
585
|
-
/>
|
|
586
|
-
</ExampleContainer>
|
|
587
|
-
<ExampleContainer>
|
|
588
|
-
<Title title="Grouped icons (SVGs)" theme="light" level={4} />
|
|
545
|
+
<Title title="Grouped icons (Material Symbols)" theme="light" level={4} />
|
|
589
546
|
<Listbox
|
|
590
|
-
id="
|
|
547
|
+
id="x14"
|
|
591
548
|
currentValue={["0", "3"]}
|
|
592
|
-
options={
|
|
549
|
+
options={icon_options_grouped_material}
|
|
593
550
|
visualFocusIndex={-1}
|
|
594
551
|
lastOptionIndex={3}
|
|
595
552
|
multiple={false}
|
|
@@ -601,11 +558,11 @@ const SelectListbox = () => {
|
|
|
601
558
|
/>
|
|
602
559
|
</ExampleContainer>
|
|
603
560
|
<ExampleContainer>
|
|
604
|
-
<Title title="Grouped icons (
|
|
561
|
+
<Title title="Grouped icons (Material)" theme="light" level={4} />
|
|
605
562
|
<Listbox
|
|
606
|
-
id="
|
|
563
|
+
id="x15"
|
|
607
564
|
currentValue={["facebook", "figma"]}
|
|
608
|
-
options={
|
|
565
|
+
options={options_material}
|
|
609
566
|
visualFocusIndex={-1}
|
|
610
567
|
lastOptionIndex={6}
|
|
611
568
|
multiple={true}
|
|
@@ -623,7 +580,7 @@ const SelectListbox = () => {
|
|
|
623
580
|
<Title title="Hovered option" theme="light" level={4} />
|
|
624
581
|
<HalstackProvider theme={opinionatedTheme}>
|
|
625
582
|
<Listbox
|
|
626
|
-
id="
|
|
583
|
+
id="x16"
|
|
627
584
|
currentValue=""
|
|
628
585
|
options={one_option}
|
|
629
586
|
visualFocusIndex={-1}
|
|
@@ -641,7 +598,7 @@ const SelectListbox = () => {
|
|
|
641
598
|
<Title title="Active option" theme="light" level={4} />{" "}
|
|
642
599
|
<HalstackProvider theme={opinionatedTheme}>
|
|
643
600
|
<Listbox
|
|
644
|
-
id="
|
|
601
|
+
id="x17"
|
|
645
602
|
currentValue=""
|
|
646
603
|
options={one_option}
|
|
647
604
|
visualFocusIndex={-1}
|
|
@@ -659,7 +616,7 @@ const SelectListbox = () => {
|
|
|
659
616
|
<Title title="Focused option" theme="light" level={4} />{" "}
|
|
660
617
|
<HalstackProvider theme={opinionatedTheme}>
|
|
661
618
|
<Listbox
|
|
662
|
-
id="
|
|
619
|
+
id="x18"
|
|
663
620
|
currentValue=""
|
|
664
621
|
options={one_option}
|
|
665
622
|
visualFocusIndex={0}
|
|
@@ -677,7 +634,7 @@ const SelectListbox = () => {
|
|
|
677
634
|
<Title title="Hovered selected option" theme="light" level={4} />{" "}
|
|
678
635
|
<HalstackProvider theme={opinionatedTheme}>
|
|
679
636
|
<Listbox
|
|
680
|
-
id="
|
|
637
|
+
id="x19"
|
|
681
638
|
currentValue="1"
|
|
682
639
|
options={single_options}
|
|
683
640
|
visualFocusIndex={-1}
|
|
@@ -695,7 +652,7 @@ const SelectListbox = () => {
|
|
|
695
652
|
<Title title="Active selected option" theme="light" level={4} />{" "}
|
|
696
653
|
<HalstackProvider theme={opinionatedTheme}>
|
|
697
654
|
<Listbox
|
|
698
|
-
id="
|
|
655
|
+
id="x20"
|
|
699
656
|
currentValue="2"
|
|
700
657
|
options={single_options}
|
|
701
658
|
visualFocusIndex={0}
|
|
@@ -714,7 +671,7 @@ const SelectListbox = () => {
|
|
|
714
671
|
<Title title="Icons (SVGs)" theme="light" level={4} />{" "}
|
|
715
672
|
<HalstackProvider theme={opinionatedTheme}>
|
|
716
673
|
<Listbox
|
|
717
|
-
id="
|
|
674
|
+
id="x21"
|
|
718
675
|
currentValue="3"
|
|
719
676
|
options={icon_options}
|
|
720
677
|
visualFocusIndex={-1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|