@dxc-technology/halstack-react 0.0.0-e33af28 → 0.0.0-e360842
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 +5 -22
- package/HalstackContext.d.ts +1243 -0
- package/HalstackContext.js +310 -0
- 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 +101 -159
- package/accordion/Accordion.stories.tsx +83 -149
- package/accordion/Accordion.test.d.ts +1 -0
- package/accordion/Accordion.test.js +24 -40
- package/accordion/types.d.ts +6 -17
- 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 +31 -98
- package/accordion-group/AccordionGroup.stories.tsx +94 -67
- package/accordion-group/AccordionGroup.test.d.ts +1 -0
- package/accordion-group/AccordionGroup.test.js +49 -106
- 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 +12 -17
- 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 +40 -127
- package/alert/Alert.stories.tsx +28 -0
- package/alert/Alert.test.d.ts +1 -0
- package/alert/Alert.test.js +28 -45
- 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 -40
- 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 -2
- package/bleed/Bleed.js +14 -55
- package/bleed/Bleed.stories.tsx +95 -95
- 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 +30 -81
- package/box/Box.stories.tsx +38 -51
- package/box/Box.test.d.ts +1 -0
- package/box/Box.test.js +1 -6
- package/box/types.d.ts +3 -14
- package/breadcrumbs/Breadcrumbs.accessibility.test.d.ts +1 -0
- package/breadcrumbs/Breadcrumbs.accessibility.test.js +96 -0
- package/breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/breadcrumbs/Breadcrumbs.js +79 -0
- package/breadcrumbs/Breadcrumbs.stories.tsx +194 -0
- package/breadcrumbs/Breadcrumbs.test.d.ts +1 -0
- package/breadcrumbs/Breadcrumbs.test.js +169 -0
- package/breadcrumbs/Item.d.ts +4 -0
- package/breadcrumbs/Item.js +52 -0
- package/breadcrumbs/dropdownTheme.d.ts +53 -0
- package/breadcrumbs/dropdownTheme.js +62 -0
- package/breadcrumbs/types.d.ts +16 -0
- package/bulleted-list/BulletedList.accessibility.test.d.ts +1 -0
- package/bulleted-list/BulletedList.accessibility.test.js +119 -0
- package/bulleted-list/BulletedList.d.ts +7 -0
- package/bulleted-list/BulletedList.js +92 -0
- package/bulleted-list/BulletedList.stories.tsx +115 -0
- package/bulleted-list/types.d.ts +38 -0
- 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 +63 -113
- package/button/Button.stories.tsx +151 -100
- package/button/Button.test.d.ts +1 -0
- package/button/Button.test.js +19 -16
- package/button/types.d.ts +12 -8
- 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 +59 -102
- package/card/Card.stories.tsx +12 -42
- package/card/Card.test.d.ts +1 -0
- package/card/Card.test.js +10 -21
- package/card/types.d.ts +6 -11
- package/checkbox/Checkbox.accessibility.test.d.ts +1 -0
- package/checkbox/Checkbox.accessibility.test.js +87 -0
- package/checkbox/Checkbox.d.ts +2 -2
- package/checkbox/Checkbox.js +137 -172
- package/checkbox/Checkbox.stories.tsx +166 -136
- package/checkbox/Checkbox.test.d.ts +1 -0
- package/checkbox/Checkbox.test.js +159 -38
- package/checkbox/types.d.ts +14 -6
- package/chip/Chip.accessibility.test.d.ts +1 -0
- package/chip/Chip.accessibility.test.js +69 -0
- package/chip/Chip.js +43 -89
- package/chip/Chip.stories.tsx +140 -28
- package/chip/Chip.test.d.ts +1 -0
- package/chip/Chip.test.js +17 -32
- package/chip/types.d.ts +38 -15
- package/common/coreTokens.d.ts +237 -0
- package/common/coreTokens.js +184 -0
- package/common/utils.d.ts +1 -0
- package/common/utils.js +6 -12
- package/common/variables.d.ts +1389 -0
- package/common/variables.js +1073 -1184
- 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/contextual-menu/ContextualMenu.accessibility.test.d.ts +1 -0
- package/contextual-menu/ContextualMenu.accessibility.test.js +98 -0
- package/contextual-menu/ContextualMenu.d.ts +5 -0
- package/contextual-menu/ContextualMenu.js +88 -0
- package/contextual-menu/ContextualMenu.stories.tsx +232 -0
- package/contextual-menu/ContextualMenu.test.d.ts +1 -0
- package/contextual-menu/ContextualMenu.test.js +205 -0
- package/contextual-menu/GroupItem.d.ts +4 -0
- package/contextual-menu/GroupItem.js +67 -0
- package/contextual-menu/ItemAction.d.ts +4 -0
- package/contextual-menu/ItemAction.js +51 -0
- package/contextual-menu/MenuItem.d.ts +4 -0
- package/contextual-menu/MenuItem.js +29 -0
- package/contextual-menu/SingleItem.d.ts +4 -0
- package/contextual-menu/SingleItem.js +38 -0
- package/contextual-menu/types.d.ts +58 -0
- package/date-input/Calendar.d.ts +4 -0
- package/date-input/Calendar.js +214 -0
- package/date-input/DateInput.accessibility.test.d.ts +1 -0
- package/date-input/DateInput.accessibility.test.js +230 -0
- package/date-input/DateInput.js +152 -299
- package/date-input/DateInput.stories.tsx +210 -56
- package/date-input/DateInput.test.d.ts +1 -0
- package/date-input/DateInput.test.js +700 -370
- package/date-input/DatePicker.d.ts +4 -0
- package/date-input/DatePicker.js +121 -0
- package/date-input/YearPicker.d.ts +4 -0
- package/date-input/YearPicker.js +100 -0
- package/date-input/types.d.ts +72 -15
- 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 +61 -106
- package/dialog/Dialog.stories.tsx +325 -167
- package/dialog/Dialog.test.d.ts +1 -0
- package/dialog/Dialog.test.js +350 -19
- package/dialog/types.d.ts +18 -25
- package/divider/Divider.accessibility.test.d.ts +1 -0
- package/divider/Divider.accessibility.test.js +33 -0
- package/divider/Divider.d.ts +4 -0
- package/divider/Divider.js +36 -0
- package/divider/Divider.stories.tsx +223 -0
- package/divider/Divider.test.d.ts +1 -0
- package/divider/Divider.test.js +38 -0
- package/divider/types.d.ts +21 -0
- package/dropdown/Dropdown.accessibility.test.d.ts +1 -0
- package/dropdown/Dropdown.accessibility.test.js +184 -0
- package/dropdown/Dropdown.d.ts +1 -1
- package/dropdown/Dropdown.js +232 -307
- package/dropdown/Dropdown.stories.tsx +235 -57
- package/dropdown/Dropdown.test.d.ts +1 -0
- package/dropdown/Dropdown.test.js +604 -164
- package/dropdown/DropdownMenu.d.ts +4 -0
- package/dropdown/DropdownMenu.js +63 -0
- package/dropdown/DropdownMenuItem.d.ts +4 -0
- package/dropdown/DropdownMenuItem.js +71 -0
- package/dropdown/types.d.ts +35 -19
- package/file-input/FileInput.accessibility.test.d.ts +1 -0
- package/file-input/FileInput.accessibility.test.js +167 -0
- package/file-input/FileInput.d.ts +2 -2
- package/file-input/FileInput.js +245 -395
- package/file-input/FileInput.stories.tsx +123 -12
- package/file-input/FileInput.test.d.ts +1 -0
- package/file-input/FileInput.test.js +314 -367
- package/file-input/FileItem.d.ts +4 -14
- package/file-input/FileItem.js +61 -120
- package/file-input/types.d.ts +25 -8
- 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.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 +75 -118
- package/footer/Footer.stories.tsx +99 -21
- package/footer/Footer.test.d.ts +1 -0
- package/footer/Footer.test.js +32 -56
- package/footer/Icons.d.ts +3 -2
- package/footer/Icons.js +54 -23
- package/footer/types.d.ts +26 -27
- 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.accessibility.test.d.ts +1 -0
- package/header/Header.accessibility.test.js +94 -0
- package/header/Header.d.ts +4 -3
- package/header/Header.js +95 -185
- package/header/Header.stories.tsx +133 -38
- package/header/Header.test.d.ts +1 -0
- package/header/Header.test.js +12 -25
- package/header/Icons.d.ts +2 -2
- package/header/Icons.js +5 -15
- package/header/types.d.ts +7 -21
- package/heading/Heading.accessibility.test.d.ts +1 -0
- package/heading/Heading.accessibility.test.js +33 -0
- package/heading/Heading.js +10 -32
- package/heading/Heading.test.d.ts +1 -0
- package/heading/Heading.test.js +64 -94
- 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 +14 -55
- package/inset/Inset.stories.tsx +37 -36
- package/inset/types.d.ts +2 -2
- package/layout/ApplicationLayout.d.ts +16 -6
- package/layout/ApplicationLayout.js +86 -167
- package/layout/ApplicationLayout.stories.tsx +85 -94
- package/layout/Icons.d.ts +7 -0
- package/layout/Icons.js +41 -48
- package/layout/types.d.ts +19 -35
- package/link/Link.accessibility.test.d.ts +1 -0
- package/link/Link.accessibility.test.js +108 -0
- package/link/Link.d.ts +3 -2
- package/link/Link.js +65 -101
- package/link/Link.stories.tsx +157 -55
- package/link/Link.test.d.ts +1 -0
- package/link/Link.test.js +24 -52
- package/link/types.d.ts +15 -31
- package/main.d.ts +16 -13
- package/main.js +83 -106
- 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 +7 -0
- package/nav-tabs/NavTabs.js +108 -0
- package/nav-tabs/NavTabs.stories.tsx +294 -0
- package/nav-tabs/NavTabs.test.d.ts +1 -0
- package/nav-tabs/NavTabs.test.js +77 -0
- package/nav-tabs/NavTabsContext.d.ts +3 -0
- package/nav-tabs/NavTabsContext.js +8 -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.accessibility.test.d.ts +1 -0
- package/number-input/NumberInput.accessibility.test.js +228 -0
- package/number-input/NumberInput.js +46 -36
- package/number-input/NumberInput.stories.tsx +42 -26
- package/number-input/NumberInput.test.d.ts +1 -0
- package/number-input/NumberInput.test.js +859 -376
- package/number-input/NumberInputContext.d.ts +3 -4
- package/number-input/NumberInputContext.js +3 -14
- package/number-input/types.d.ts +18 -6
- package/package.json +52 -54
- package/paginator/Paginator.accessibility.test.d.ts +1 -0
- package/paginator/Paginator.accessibility.test.js +79 -0
- package/paginator/Paginator.js +46 -100
- package/paginator/Paginator.stories.tsx +24 -0
- package/paginator/Paginator.test.d.ts +1 -0
- package/paginator/Paginator.test.js +279 -210
- 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.d.ts +5 -0
- package/paragraph/Paragraph.js +22 -0
- package/paragraph/Paragraph.stories.tsx +27 -0
- package/password-input/PasswordInput.accessibility.test.d.ts +1 -0
- package/password-input/PasswordInput.accessibility.test.js +153 -0
- package/password-input/PasswordInput.js +58 -124
- package/password-input/PasswordInput.stories.tsx +1 -33
- package/password-input/PasswordInput.test.d.ts +1 -0
- package/password-input/PasswordInput.test.js +159 -142
- package/password-input/types.d.ts +9 -8
- package/progress-bar/ProgressBar.accessibility.test.d.ts +1 -0
- package/progress-bar/ProgressBar.accessibility.test.js +35 -0
- package/progress-bar/ProgressBar.js +68 -92
- package/progress-bar/ProgressBar.stories.tsx +93 -0
- package/progress-bar/ProgressBar.test.d.ts +1 -0
- package/progress-bar/ProgressBar.test.js +71 -43
- 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 +71 -43
- package/quick-nav/QuickNav.stories.tsx +146 -27
- package/quick-nav/types.d.ts +10 -10
- package/radio-group/Radio.d.ts +1 -1
- package/radio-group/Radio.js +59 -79
- package/radio-group/RadioGroup.accessibility.test.d.ts +1 -0
- package/radio-group/RadioGroup.accessibility.test.js +97 -0
- package/radio-group/RadioGroup.js +74 -121
- package/radio-group/RadioGroup.stories.tsx +132 -18
- package/radio-group/RadioGroup.test.d.ts +1 -0
- package/radio-group/RadioGroup.test.js +518 -459
- package/radio-group/types.d.ts +10 -10
- package/resultset-table/Icons.d.ts +7 -0
- package/resultset-table/Icons.js +47 -0
- package/resultset-table/ResultsetTable.accessibility.test.d.ts +1 -0
- package/resultset-table/ResultsetTable.accessibility.test.js +285 -0
- package/resultset-table/ResultsetTable.d.ts +7 -0
- package/resultset-table/ResultsetTable.js +171 -0
- package/{resultsetTable → resultset-table}/ResultsetTable.stories.tsx +168 -30
- package/resultset-table/ResultsetTable.test.d.ts +1 -0
- package/resultset-table/ResultsetTable.test.js +380 -0
- package/{resultsetTable → resultset-table}/types.d.ts +44 -11
- package/resultset-table/types.js +5 -0
- package/select/Listbox.d.ts +4 -0
- package/select/Listbox.js +151 -0
- package/select/Option.js +35 -56
- package/select/Select.accessibility.test.d.ts +1 -0
- package/select/Select.accessibility.test.js +228 -0
- package/select/Select.js +210 -342
- package/select/Select.stories.tsx +524 -187
- package/select/Select.test.d.ts +1 -0
- package/select/Select.test.js +1955 -1744
- package/select/types.d.ts +33 -18
- package/sidenav/Sidenav.accessibility.test.d.ts +1 -0
- package/sidenav/Sidenav.accessibility.test.js +59 -0
- package/sidenav/Sidenav.d.ts +6 -5
- package/sidenav/Sidenav.js +136 -71
- package/sidenav/Sidenav.stories.tsx +246 -151
- package/sidenav/Sidenav.test.d.ts +1 -0
- package/sidenav/Sidenav.test.js +25 -44
- package/sidenav/SidenavContext.d.ts +5 -0
- package/sidenav/SidenavContext.js +13 -0
- package/sidenav/types.d.ts +52 -26
- package/slider/Slider.accessibility.test.d.ts +1 -0
- package/slider/Slider.accessibility.test.js +104 -0
- package/slider/Slider.d.ts +2 -2
- package/slider/Slider.js +146 -181
- package/slider/Slider.stories.tsx +64 -61
- package/slider/Slider.test.d.ts +1 -0
- package/slider/Slider.test.js +195 -88
- package/slider/types.d.ts +7 -3
- package/spinner/Spinner.accessibility.test.d.ts +1 -0
- package/spinner/Spinner.accessibility.test.js +96 -0
- package/spinner/Spinner.js +34 -74
- package/spinner/{Spinner.stories.jsx → Spinner.stories.tsx} +53 -27
- package/spinner/Spinner.test.d.ts +1 -0
- package/spinner/Spinner.test.js +25 -34
- 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.d.ts +2 -2
- package/switch/Switch.js +143 -124
- package/switch/Switch.stories.tsx +53 -64
- package/switch/Switch.test.d.ts +1 -0
- package/switch/Switch.test.js +137 -55
- package/switch/types.d.ts +9 -5
- package/table/DropdownTheme.js +62 -0
- package/table/Table.accessibility.test.d.ts +1 -0
- package/table/Table.accessibility.test.js +93 -0
- package/table/Table.d.ts +6 -2
- package/table/Table.js +78 -35
- package/table/Table.stories.tsx +663 -0
- package/table/Table.test.d.ts +1 -0
- package/table/Table.test.js +93 -7
- package/table/types.d.ts +34 -6
- package/tabs/Tab.d.ts +4 -0
- package/tabs/Tab.js +117 -0
- package/tabs/Tabs.accessibility.test.d.ts +1 -0
- package/tabs/Tabs.accessibility.test.js +56 -0
- package/tabs/Tabs.js +303 -141
- package/tabs/Tabs.stories.tsx +124 -12
- package/tabs/Tabs.test.d.ts +1 -0
- package/tabs/Tabs.test.js +212 -76
- package/tabs/types.d.ts +30 -20
- package/tag/Tag.accessibility.test.d.ts +1 -0
- package/tag/Tag.accessibility.test.js +69 -0
- package/tag/Tag.js +38 -73
- package/tag/Tag.stories.tsx +18 -8
- package/tag/Tag.test.d.ts +1 -0
- package/tag/Tag.test.js +17 -36
- package/tag/types.d.ts +9 -9
- 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 +94 -0
- package/text-input/TextInput.accessibility.test.d.ts +1 -0
- package/text-input/TextInput.accessibility.test.js +321 -0
- package/text-input/TextInput.js +326 -553
- package/text-input/TextInput.stories.tsx +276 -276
- package/text-input/TextInput.test.d.ts +1 -0
- package/text-input/TextInput.test.js +1419 -1375
- package/text-input/types.d.ts +53 -14
- package/textarea/Textarea.accessibility.test.d.ts +1 -0
- package/textarea/Textarea.accessibility.test.js +155 -0
- package/textarea/Textarea.js +79 -133
- package/textarea/Textarea.stories.tsx +174 -0
- package/textarea/Textarea.test.d.ts +1 -0
- package/textarea/Textarea.test.js +151 -182
- package/textarea/types.d.ts +10 -6
- package/toggle-group/ToggleGroup.accessibility.test.d.ts +1 -0
- package/toggle-group/ToggleGroup.accessibility.test.js +107 -0
- package/toggle-group/ToggleGroup.d.ts +2 -2
- package/toggle-group/ToggleGroup.js +92 -108
- package/toggle-group/ToggleGroup.stories.tsx +52 -7
- package/toggle-group/ToggleGroup.test.d.ts +1 -0
- package/toggle-group/ToggleGroup.test.js +68 -87
- package/toggle-group/types.d.ts +28 -19
- package/typography/Typography.accessibility.test.d.ts +1 -0
- package/typography/Typography.accessibility.test.js +339 -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 +1141 -1
- package/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.accessibility.test.d.ts +1 -0
- package/wizard/Wizard.accessibility.test.js +55 -0
- package/wizard/Wizard.js +66 -113
- package/wizard/Wizard.stories.tsx +59 -1
- package/wizard/Wizard.test.d.ts +1 -0
- package/wizard/Wizard.test.js +53 -80
- package/wizard/types.d.ts +9 -9
- package/ThemeContext.d.ts +0 -10
- package/ThemeContext.js +0 -243
- package/card/ice-cream.jpg +0 -0
- package/common/OpenSans.css +0 -81
- package/common/RequiredComponent.js +0 -32
- 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/list/List.d.ts +0 -4
- package/list/List.js +0 -47
- package/list/List.stories.tsx +0 -95
- package/list/types.d.ts +0 -7
- package/number-input/numberInputContextTypes.d.ts +0 -19
- package/paginator/Icons.js +0 -66
- package/progress-bar/ProgressBar.stories.jsx +0 -58
- package/radio/Radio.d.ts +0 -4
- package/radio/Radio.js +0 -174
- package/radio/Radio.stories.tsx +0 -192
- package/radio/Radio.test.js +0 -71
- package/radio/types.d.ts +0 -54
- package/resultsetTable/ResultsetTable.d.ts +0 -4
- package/resultsetTable/ResultsetTable.js +0 -254
- package/resultsetTable/ResultsetTable.test.js +0 -306
- package/row/Row.d.ts +0 -3
- package/row/Row.js +0 -127
- package/row/Row.stories.tsx +0 -237
- package/row/types.d.ts +0 -28
- package/select/Icons.d.ts +0 -10
- package/select/Icons.js +0 -93
- package/stack/Stack.d.ts +0 -3
- package/stack/Stack.js +0 -97
- package/stack/Stack.stories.tsx +0 -164
- package/stack/types.d.ts +0 -24
- package/table/Table.stories.jsx +0 -277
- package/text/Text.d.ts +0 -7
- package/text/Text.js +0 -30
- package/text/Text.stories.tsx +0 -19
- package/textarea/Textarea.stories.jsx +0 -157
- /package/{list → action-icon}/types.js +0 -0
- /package/{radio → breadcrumbs}/types.js +0 -0
- /package/{resultsetTable → bulleted-list}/types.js +0 -0
- /package/{row → container}/types.js +0 -0
- /package/{stack → contextual-menu}/types.js +0 -0
- /package/{number-input/numberInputContextTypes.js → divider/types.js} +0 -0
package/quick-nav/QuickNav.js
CHANGED
|
@@ -1,66 +1,94 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
10
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
15
|
-
|
|
11
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
16
12
|
var _slugify = _interopRequireDefault(require("slugify"));
|
|
17
|
-
|
|
13
|
+
var _useTheme = _interopRequireDefault(require("../useTheme"));
|
|
18
14
|
var _Heading = _interopRequireDefault(require("../heading/Heading"));
|
|
19
|
-
|
|
20
|
-
var _Stack = _interopRequireDefault(require("../stack/Stack"));
|
|
21
|
-
|
|
15
|
+
var _Flex = _interopRequireDefault(require("../flex/Flex"));
|
|
22
16
|
var _Inset = _interopRequireDefault(require("../inset/Inset"));
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
|
|
17
|
+
var _Typography = _interopRequireDefault(require("../typography/Typography"));
|
|
18
|
+
var _useTranslatedLabels = _interopRequireDefault(require("../useTranslatedLabels"));
|
|
19
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
20
|
+
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); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
26
22
|
var DxcQuickNav = function DxcQuickNav(_ref) {
|
|
27
23
|
var title = _ref.title,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
links = _ref.links;
|
|
25
|
+
var translatedLabels = (0, _useTranslatedLabels["default"])();
|
|
26
|
+
var colorsTheme = (0, _useTheme["default"])();
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
28
|
+
theme: colorsTheme.quickNav
|
|
29
|
+
}, /*#__PURE__*/_react["default"].createElement(QuickNavContainer, null, /*#__PURE__*/_react["default"].createElement(_Flex["default"], {
|
|
30
|
+
direction: "column",
|
|
31
|
+
gap: "0.5rem"
|
|
31
32
|
}, /*#__PURE__*/_react["default"].createElement(_Heading["default"], {
|
|
32
33
|
level: 4,
|
|
33
|
-
text: title
|
|
34
|
-
}), /*#__PURE__*/_react["default"].createElement(
|
|
35
|
-
gutter: "xsmall"
|
|
36
|
-
}, links.map(function (link) {
|
|
34
|
+
text: title || translatedLabels.quickNav.contentTitle
|
|
35
|
+
}), /*#__PURE__*/_react["default"].createElement(ListColumn, null, links.map(function (link) {
|
|
37
36
|
var _link$links;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}, /*#__PURE__*/_react["default"].createElement(Link, {
|
|
37
|
+
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
38
|
+
key: link.label
|
|
39
|
+
}, /*#__PURE__*/_react["default"].createElement(_Inset["default"], {
|
|
40
|
+
space: "0.25rem"
|
|
41
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], null, /*#__PURE__*/_react["default"].createElement(Link, {
|
|
44
42
|
href: "#".concat((0, _slugify["default"])(link === null || link === void 0 ? void 0 : link.label, {
|
|
45
43
|
lower: true
|
|
46
44
|
}))
|
|
47
|
-
}, link === null || link === void 0 ? void 0 : link.label), (_link$links = link.links) === null || _link$links === void 0 ? void 0 : _link$links.map(function (sublink) {
|
|
48
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
49
|
-
|
|
50
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
51
|
-
|
|
52
|
-
}, /*#__PURE__*/_react["default"].createElement(Link, {
|
|
53
|
-
href: "#".concat((0, _slugify["default"])(
|
|
45
|
+
}, link === null || link === void 0 ? void 0 : link.label), /*#__PURE__*/_react["default"].createElement(ListSecondColumn, null, (_link$links = link.links) === null || _link$links === void 0 ? void 0 : _link$links.map(function (sublink) {
|
|
46
|
+
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
47
|
+
key: sublink.label
|
|
48
|
+
}, /*#__PURE__*/_react["default"].createElement(_Inset["default"], {
|
|
49
|
+
horizontal: "0.5rem"
|
|
50
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], null, /*#__PURE__*/_react["default"].createElement(Link, {
|
|
51
|
+
href: "#".concat((0, _slugify["default"])(link === null || link === void 0 ? void 0 : link.label, {
|
|
52
|
+
lower: true
|
|
53
|
+
}), "-").concat((0, _slugify["default"])(sublink === null || sublink === void 0 ? void 0 : sublink.label, {
|
|
54
54
|
lower: true
|
|
55
55
|
}))
|
|
56
|
-
}, sublink === null || sublink === void 0 ? void 0 : sublink.label)));
|
|
57
|
-
})));
|
|
58
|
-
}))));
|
|
56
|
+
}, sublink === null || sublink === void 0 ? void 0 : sublink.label))));
|
|
57
|
+
})))));
|
|
58
|
+
})))));
|
|
59
59
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
var QuickNavContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n border-left: 2px solid ", ";\n"])), function (props) {
|
|
61
|
+
return props.theme.paddingTop;
|
|
62
|
+
}, function (props) {
|
|
63
|
+
return props.theme.paddingBottom;
|
|
64
|
+
}, function (props) {
|
|
65
|
+
return props.theme.paddingLeft;
|
|
66
|
+
}, function (props) {
|
|
67
|
+
return props.theme.paddingRight;
|
|
68
|
+
}, function (props) {
|
|
69
|
+
return props.theme.dividerBorderColor;
|
|
70
|
+
});
|
|
71
|
+
var ListColumn = _styledComponents["default"].ul(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n margin: 0;\n padding: 0;\n list-style-type: none;\n"])));
|
|
72
|
+
var ListSecondColumn = _styledComponents["default"].ul(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n list-style-type: none;\n"])));
|
|
73
|
+
var Link = _styledComponents["default"].a(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n text-decoration: none;\n font-size: ", ";\n font-family: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n display: block;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n width: fit-content;\n max-width: 100%;\n\n &:hover {\n color: ", ";\n }\n &:focus {\n outline-color: ", ";\n outline-style: ", ";\n outline-width: ", ";\n border-radius: ", ";\n }\n"])), function (props) {
|
|
74
|
+
return props.theme.fontSize;
|
|
75
|
+
}, function (props) {
|
|
76
|
+
return props.theme.fontFamily;
|
|
77
|
+
}, function (props) {
|
|
78
|
+
return props.theme.fontStyle;
|
|
79
|
+
}, function (props) {
|
|
80
|
+
return props.theme.fontWeight;
|
|
81
|
+
}, function (props) {
|
|
82
|
+
return props.theme.fontColor;
|
|
83
|
+
}, function (props) {
|
|
84
|
+
return props.theme.hoverFontColor;
|
|
85
|
+
}, function (props) {
|
|
86
|
+
return props.theme.focusBorderColor;
|
|
87
|
+
}, function (props) {
|
|
88
|
+
return props.theme.focusBorderStyle;
|
|
89
|
+
}, function (props) {
|
|
90
|
+
return props.theme.focusBorderThickness;
|
|
91
|
+
}, function (props) {
|
|
92
|
+
return props.theme.focusBorderRadius;
|
|
93
|
+
});
|
|
94
|
+
var _default = exports["default"] = DxcQuickNav;
|
|
@@ -2,33 +2,78 @@ import React from "react";
|
|
|
2
2
|
import styled from "styled-components";
|
|
3
3
|
import DxcQuickNav from "./QuickNav";
|
|
4
4
|
import DxcHeading from "../heading/Heading";
|
|
5
|
-
import
|
|
5
|
+
import DxcParagraph from "../paragraph/Paragraph";
|
|
6
6
|
import Title from "../../.storybook/components/Title";
|
|
7
7
|
import ExampleContainer from "../../.storybook/components/ExampleContainer";
|
|
8
|
+
import { HalstackProvider } from "../HalstackContext";
|
|
8
9
|
|
|
9
10
|
export default {
|
|
10
|
-
title: "
|
|
11
|
+
title: "Quick Nav",
|
|
11
12
|
component: DxcQuickNav,
|
|
12
13
|
};
|
|
13
14
|
|
|
15
|
+
const opinionatedTheme = {
|
|
16
|
+
quickNav: {
|
|
17
|
+
fontColor: "#666666",
|
|
18
|
+
accentColor: "#9a6bb2",
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const defaultLinks = [
|
|
23
|
+
{
|
|
24
|
+
label: "Overview",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: "Principles",
|
|
28
|
+
links: [{ label: "Color" }, { label: "Spacing" }, { label: "Typography" }],
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: "Components",
|
|
32
|
+
links: [
|
|
33
|
+
{
|
|
34
|
+
label: "Accordion",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: "Button",
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
|
|
14
43
|
const links = [
|
|
15
44
|
{
|
|
16
45
|
label: "Overview",
|
|
17
|
-
id: "overview",
|
|
18
46
|
links: [
|
|
19
47
|
{
|
|
20
48
|
label: "Introduction",
|
|
21
|
-
id: "introduction",
|
|
22
49
|
},
|
|
23
50
|
],
|
|
24
51
|
},
|
|
25
52
|
{
|
|
26
|
-
label: "
|
|
27
|
-
id: "principles",
|
|
53
|
+
label: "Components",
|
|
28
54
|
links: [
|
|
29
|
-
{
|
|
30
|
-
|
|
31
|
-
|
|
55
|
+
{
|
|
56
|
+
label: "Introduction",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: "Accordion",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "Principles very very very very very very very very long",
|
|
65
|
+
links: [
|
|
66
|
+
{ label: "Color very very very very very very very very long" },
|
|
67
|
+
{ label: "Spacingveryveryveryveryveryveryveryverylong" },
|
|
68
|
+
{ label: "Typography" },
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: "Componentsveryveryveryveryveryveryveryverylong",
|
|
73
|
+
links: [
|
|
74
|
+
{
|
|
75
|
+
label: "Accordion",
|
|
76
|
+
},
|
|
32
77
|
],
|
|
33
78
|
},
|
|
34
79
|
];
|
|
@@ -38,13 +83,25 @@ export const Chromatic = () => (
|
|
|
38
83
|
<ExampleContainer>
|
|
39
84
|
<Title title="Default" level={4} />
|
|
40
85
|
<QuickNavContainer>
|
|
41
|
-
<DxcQuickNav
|
|
86
|
+
<DxcQuickNav links={defaultLinks} />
|
|
87
|
+
</QuickNavContainer>
|
|
88
|
+
</ExampleContainer>
|
|
89
|
+
<ExampleContainer>
|
|
90
|
+
<Title title="Text overflow" level={4} />
|
|
91
|
+
<QuickNavContainer>
|
|
92
|
+
<DxcQuickNav links={links} />
|
|
42
93
|
</QuickNavContainer>
|
|
43
94
|
</ExampleContainer>
|
|
44
95
|
<ExampleContainer pseudoState="pseudo-hover">
|
|
45
96
|
<Title title="Link hovered" level={4} />
|
|
46
97
|
<QuickNavContainer>
|
|
47
|
-
<DxcQuickNav
|
|
98
|
+
<DxcQuickNav links={links} />
|
|
99
|
+
</QuickNavContainer>
|
|
100
|
+
</ExampleContainer>
|
|
101
|
+
<ExampleContainer pseudoState="pseudo-focus">
|
|
102
|
+
<Title title="Link focus" level={4} />
|
|
103
|
+
<QuickNavContainer>
|
|
104
|
+
<DxcQuickNav links={links} />
|
|
48
105
|
</QuickNavContainer>
|
|
49
106
|
</ExampleContainer>
|
|
50
107
|
<ExampleContainer>
|
|
@@ -53,7 +110,7 @@ export const Chromatic = () => (
|
|
|
53
110
|
<ContentContainer>
|
|
54
111
|
<Content id="overview">
|
|
55
112
|
<DxcHeading level={1} text="Overview" margin={{ bottom: "small" }} />
|
|
56
|
-
<
|
|
113
|
+
<DxcParagraph>
|
|
57
114
|
Halstack is the DXC Technology's open source design system for insurance products and digital experiences.
|
|
58
115
|
Our system provides all the tools and resources needed to create superior, beautiful but above all,
|
|
59
116
|
functional user experiences. Halstack is the DXC Technology's open source design system for insurance
|
|
@@ -70,10 +127,10 @@ export const Chromatic = () => (
|
|
|
70
127
|
create superior, beautiful but above all, functional user experiences.Halstack is the DXC Technology's
|
|
71
128
|
open source design system for insurance products and digital experiences. Our system provides all the
|
|
72
129
|
tools and resources needed to create superior, beautiful but above all, functional user experiences.
|
|
73
|
-
</
|
|
74
|
-
<Content id="introduction">
|
|
130
|
+
</DxcParagraph>
|
|
131
|
+
<Content id="overview-introduction">
|
|
75
132
|
<DxcHeading level={2} text="Introduction" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
76
|
-
<
|
|
133
|
+
<DxcParagraph>
|
|
77
134
|
Design principles Halstack design principles are the fundamental part of DXC Technology's approach to
|
|
78
135
|
provide guidance for development teams in order to deliver delightful and consistent user experiences to
|
|
79
136
|
our customers: Balance Consistency Visual hierarchy All our components, design tokens, accessibility
|
|
@@ -103,14 +160,59 @@ export const Chromatic = () => (
|
|
|
103
160
|
to use and contribute back to. We are charmed to receive external contributions to help us find bugs,
|
|
104
161
|
design new features, or help us improve the project documentation. If you're interested, definitely
|
|
105
162
|
check out our contribution guidelines.
|
|
106
|
-
</
|
|
163
|
+
</DxcParagraph>
|
|
107
164
|
</Content>
|
|
108
165
|
</Content>
|
|
109
|
-
<Content id="
|
|
166
|
+
<Content id="components">
|
|
167
|
+
<DxcHeading level={1} text="Components" margin={{ top: "small", bottom: "xsmall" }} />
|
|
168
|
+
<Content id="components-introduction">
|
|
169
|
+
<DxcHeading level={2} text="Introduction" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
170
|
+
<DxcParagraph>
|
|
171
|
+
Design principles Halstack design principles are the fundamental part of DXC Technology's approach to
|
|
172
|
+
provide guidance for development teams in order to deliver delightful and consistent user experiences to
|
|
173
|
+
our customers: Balance Consistency Visual hierarchy All our components, design tokens, accessibility
|
|
174
|
+
guidelines, responsive design techniques, and layout proposals have been carefully curated by DXC design
|
|
175
|
+
and engineering teams with the objective of creating a unique visual language and ecosystem for our
|
|
176
|
+
applications. This is the DXC way of creating User Experiences. Open Source Halstack is an open source
|
|
177
|
+
design system, this means that we work towards DXC Technology bussines needs, but it is open for anyone
|
|
178
|
+
to use and contribute back to. We are charmed to receive external contributions to help us find bugs,
|
|
179
|
+
design new features, or help us improve the project documentation. If you're interested, definitely
|
|
180
|
+
check out our contribution guidelines.Design principles Halstack design principles are the fundamental
|
|
181
|
+
part of DXC Technology's approach to provide guidance for development teams in order to deliver
|
|
182
|
+
delightful and consistent user experiences to our customers: Balance Consistency Visual hierarchy All
|
|
183
|
+
our components, design tokens, accessibility guidelines, responsive design techniques, and layout
|
|
184
|
+
proposals have been carefully curated by DXC design and engineering teams with the objective of creating
|
|
185
|
+
a unique visual language and ecosystem for our applications. This is the DXC way of creating User
|
|
186
|
+
Experiences. Open Source Halstack is an open source design system, this means that we work towards DXC
|
|
187
|
+
Technology bussines needs, but it is open for anyone to use and contribute back to. We are charmed to
|
|
188
|
+
receive external contributions to help us find bugs, design new features, or help us improve the project
|
|
189
|
+
documentation. If you're interested, definitely check out our contribution guidelines.Design principles
|
|
190
|
+
Halstack design principles are the fundamental part of DXC Technology's approach to provide guidance for
|
|
191
|
+
development teams in order to deliver delightful and consistent user experiences to our customers:
|
|
192
|
+
Balance Consistency Visual hierarchy All our components, design tokens, accessibility guidelines,
|
|
193
|
+
responsive design techniques, and layout proposals have been carefully curated by DXC design and
|
|
194
|
+
engineering teams with the objective of creating a unique visual language and ecosystem for our
|
|
195
|
+
applications. This is the DXC way of creating User Experiences. Open Source Halstack is an open source
|
|
196
|
+
design system, this means that we work towards DXC Technology bussines needs, but it is open for anyone
|
|
197
|
+
to use and contribute back to. We are charmed to receive external contributions to help us find bugs,
|
|
198
|
+
design new features, or help us improve the project documentation. If you're interested, definitely
|
|
199
|
+
check out our contribution guidelines.
|
|
200
|
+
</DxcParagraph>
|
|
201
|
+
</Content>
|
|
202
|
+
<Content id="components-accordion">
|
|
203
|
+
<DxcHeading level={2} text="Accordion" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
204
|
+
<DxcParagraph>
|
|
205
|
+
Accordions are used to group similar content and hide or show it depending on user needs or preferences.
|
|
206
|
+
Accordions give users more granular control over the interface and help digest content in stages, rather
|
|
207
|
+
than all at once.
|
|
208
|
+
</DxcParagraph>
|
|
209
|
+
</Content>
|
|
210
|
+
</Content>
|
|
211
|
+
<Content id="principles-very-very-very-very-very-very-very-very-long">
|
|
110
212
|
<DxcHeading level={1} text="Principles" margin={{ top: "small", bottom: "xsmall" }} />
|
|
111
|
-
<Content id="color">
|
|
213
|
+
<Content id="principles-very-very-very-very-very-very-very-very-long-color-very-very-very-very-very-very-very-very-long">
|
|
112
214
|
<DxcHeading level={2} text="Color" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
113
|
-
<
|
|
215
|
+
<DxcParagraph>
|
|
114
216
|
The color palette is an essential asset as a communication resource of our design system. Halstack color
|
|
115
217
|
palette brings a unified consistency and helps in guiding the user's perception order. Our color palette
|
|
116
218
|
is based in the HSL model . All our color families are calculated using the lightness value of the
|
|
@@ -143,11 +245,11 @@ export const Chromatic = () => (
|
|
|
143
245
|
tokens to manage color. Appart from a multi-purpose greyscale family, purple and blue are the core color
|
|
144
246
|
families used in our set of components. Additional families as red, green and yellow help as feedback
|
|
145
247
|
role-based color palettes and must not be used outside this context.
|
|
146
|
-
</
|
|
248
|
+
</DxcParagraph>
|
|
147
249
|
</Content>
|
|
148
|
-
<Content id="
|
|
250
|
+
<Content id="principles-very-very-very-very-very-very-very-very-long-spacingveryveryveryveryveryveryveryverylong">
|
|
149
251
|
<DxcHeading level={2} text="Spacing" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
150
|
-
<
|
|
252
|
+
<DxcParagraph>
|
|
151
253
|
In the search of consistent alignment between the elements we provide a spacing scale based on a root
|
|
152
254
|
values of 8px and 4px. The numbers 4 and 8 are easily multiplied, they provide flexible and consistent,
|
|
153
255
|
yet distinct enough, steps between them.In the search of consistent alignment between the elements we
|
|
@@ -165,11 +267,11 @@ export const Chromatic = () => (
|
|
|
165
267
|
consistent, yet distinct enough, steps between them.In the search of consistent alignment between the
|
|
166
268
|
elements we provide a spacing scale based on a root values of 8px and 4px. The numbers 4 and 8 are
|
|
167
269
|
easily multiplied, they provide flexible and consistent, yet distinct enough, steps between them.
|
|
168
|
-
</
|
|
270
|
+
</DxcParagraph>
|
|
169
271
|
</Content>
|
|
170
|
-
<Content id="typography">
|
|
272
|
+
<Content id="principles-very-very-very-very-very-very-very-very-long-typography">
|
|
171
273
|
<DxcHeading level={2} text="Typography" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
172
|
-
<
|
|
274
|
+
<DxcParagraph>
|
|
173
275
|
Our selected typography helps in structuring our user's experience based on the visual impact that it
|
|
174
276
|
has on the user interface content. It defines what is the first noticeable piece of information or data
|
|
175
277
|
based on the font shape, size, color, or type and it highlights some pieces of text over the rest. Some
|
|
@@ -201,15 +303,32 @@ export const Chromatic = () => (
|
|
|
201
303
|
Halstack Design System include headers, body, taglines, captions, and labels. Make sure you include all
|
|
202
304
|
the different typographic variants in order to enhance the application's content structure, including
|
|
203
305
|
the Heading component which defines different levels of page and section titles.
|
|
204
|
-
</
|
|
306
|
+
</DxcParagraph>
|
|
307
|
+
</Content>
|
|
308
|
+
</Content>
|
|
309
|
+
<Content id="componentsveryveryveryveryveryveryveryverylong">
|
|
310
|
+
<DxcHeading level={1} text="Components" margin={{ top: "small", bottom: "xsmall" }} />
|
|
311
|
+
<Content id="componentsveryveryveryveryveryveryveryverylong-accordion">
|
|
312
|
+
<DxcHeading level={2} text="Accordion" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
313
|
+
<DxcParagraph>
|
|
314
|
+
Accordions are used to group similar content and hide or show it depending on user needs or preferences.
|
|
315
|
+
Accordions give users more granular control over the interface and help digest content in stages, rather
|
|
316
|
+
than all at once.
|
|
317
|
+
</DxcParagraph>
|
|
205
318
|
</Content>
|
|
206
319
|
</Content>
|
|
207
320
|
</ContentContainer>
|
|
208
321
|
<QuickNavContainer>
|
|
209
|
-
<DxcQuickNav title="Sections" links={links}
|
|
322
|
+
<DxcQuickNav title="Sections" links={links} />
|
|
210
323
|
</QuickNavContainer>
|
|
211
324
|
</Container>
|
|
212
325
|
</ExampleContainer>
|
|
326
|
+
<Title title="Opinionated theme" level={2} />
|
|
327
|
+
<ExampleContainer>
|
|
328
|
+
<HalstackProvider theme={opinionatedTheme}>
|
|
329
|
+
<DxcQuickNav links={defaultLinks} />
|
|
330
|
+
</HalstackProvider>
|
|
331
|
+
</ExampleContainer>
|
|
213
332
|
</>
|
|
214
333
|
);
|
|
215
334
|
|
package/quick-nav/types.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
type Link = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Label to be shown in the link.
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
label: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Sublinks of the link.
|
|
8
8
|
*/
|
|
9
|
-
links
|
|
9
|
+
links?: Link[];
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type Props = {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Title of the quick nav component.
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
title?: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Links to be shown inside the quick nav component.
|
|
18
18
|
*/
|
|
19
|
-
links
|
|
19
|
+
links: Link[];
|
|
20
20
|
};
|
|
21
21
|
export default Props;
|
package/radio-group/Radio.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { RadioProps } from "./types";
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ label, checked, onClick, error, disabled, focused, readOnly, tabIndex, }: RadioProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|