@dxc-technology/halstack-react 0.0.0-b0ab1e3 → 0.0.0-b0ec7b9
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 +1276 -6
- package/HalstackContext.js +191 -114
- 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 +82 -148
- 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/bar-chart/BarChart.d.ts +4 -0
- package/bar-chart/BarChart.js +152 -0
- package/bar-chart/BarChart.stories.tsx +281 -0
- package/bar-chart/BarChart.test.d.ts +1 -0
- package/bar-chart/BarChart.test.js +194 -0
- package/bar-chart/theme.d.ts +3 -0
- package/bar-chart/theme.js +31 -0
- package/bar-chart/types.d.ts +118 -0
- package/bleed/Bleed.js +14 -55
- package/bleed/Bleed.stories.tsx +95 -96
- 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 +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.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 +64 -115
- 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 +65 -107
- package/card/Card.stories.tsx +13 -43
- 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 +140 -182
- package/checkbox/Checkbox.stories.tsx +128 -94
- package/checkbox/Checkbox.test.d.ts +1 -0
- package/checkbox/Checkbox.test.js +159 -38
- package/checkbox/types.d.ts +11 -3
- package/chip/Chip.accessibility.test.d.ts +1 -0
- package/chip/Chip.accessibility.test.js +67 -0
- package/chip/Chip.js +45 -80
- package/chip/Chip.stories.tsx +103 -27
- package/chip/Chip.test.d.ts +1 -0
- package/chip/Chip.test.js +17 -32
- package/chip/types.d.ts +4 -4
- package/common/coreTokens.d.ts +236 -0
- package/common/coreTokens.js +183 -0
- package/common/utils.d.ts +1 -0
- package/common/utils.js +6 -12
- package/common/variables.d.ts +1432 -0
- package/common/variables.js +1110 -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 +176 -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/date-input/Calendar.d.ts +4 -0
- package/date-input/Calendar.js +230 -0
- package/date-input/DateInput.accessibility.test.d.ts +1 -0
- package/date-input/DateInput.accessibility.test.js +229 -0
- package/date-input/DateInput.js +158 -299
- package/date-input/DateInput.stories.tsx +210 -57
- package/date-input/DateInput.test.d.ts +1 -0
- package/date-input/DateInput.test.js +699 -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 +105 -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 +324 -167
- package/dialog/Dialog.test.d.ts +1 -0
- package/dialog/Dialog.test.js +349 -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 +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.d.ts +1 -1
- package/dropdown/Dropdown.js +213 -303
- package/dropdown/Dropdown.stories.tsx +236 -58
- package/dropdown/Dropdown.test.d.ts +1 -0
- package/dropdown/Dropdown.test.js +603 -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 +243 -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 +24 -11
- 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 +221 -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 +134 -39
- 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 -97
- 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 +17 -13
- package/main.js +85 -101
- 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 +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 +858 -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 +57 -52
- package/paginator/Paginator.accessibility.test.d.ts +1 -0
- package/paginator/Paginator.accessibility.test.js +78 -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 +278 -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 +152 -0
- package/password-input/PasswordInput.js +62 -125
- package/password-input/PasswordInput.stories.tsx +11 -34
- package/password-input/PasswordInput.test.d.ts +1 -0
- package/password-input/PasswordInput.test.js +158 -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 -41
- 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 +284 -0
- package/resultset-table/ResultsetTable.d.ts +7 -0
- package/resultset-table/ResultsetTable.js +198 -0
- package/{resultsetTable → resultset-table}/ResultsetTable.stories.tsx +169 -31
- package/resultset-table/ResultsetTable.test.d.ts +1 -0
- package/resultset-table/ResultsetTable.test.js +450 -0
- package/{resultsetTable → resultset-table}/types.d.ts +47 -13
- package/resultset-table/types.js +5 -0
- package/select/Listbox.d.ts +3 -3
- package/select/Listbox.js +73 -74
- package/select/Option.d.ts +3 -3
- package/select/Option.js +42 -59
- package/select/Select.accessibility.test.d.ts +1 -0
- package/select/Select.accessibility.test.js +227 -0
- package/select/Select.js +188 -360
- package/select/Select.stories.tsx +533 -187
- package/select/Select.test.d.ts +1 -0
- package/select/Select.test.js +1929 -1818
- package/select/selectUtils.d.ts +41 -0
- package/select/selectUtils.js +129 -0
- package/select/types.d.ts +17 -21
- 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 +103 -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 +194 -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.d.ts +1 -1
- package/spinner/Spinner.js +50 -109
- 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 +147 -128
- package/switch/Switch.stories.tsx +49 -60
- package/switch/Switch.test.d.ts +1 -0
- package/switch/Switch.test.js +137 -55
- package/switch/types.d.ts +7 -3
- 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 +78 -35
- package/table/Table.stories.tsx +663 -0
- 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.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 +35 -67
- package/tag/Tag.stories.tsx +19 -9
- 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 +320 -0
- package/text-input/TextInput.js +313 -557
- package/text-input/TextInput.stories.tsx +278 -275
- package/text-input/TextInput.test.d.ts +1 -0
- package/text-input/TextInput.test.js +1418 -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 +76 -127
- 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 +53 -8
- 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/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.d.ts +4 -0
- package/typography/Typography.js +23 -0
- package/typography/Typography.stories.tsx +196 -0
- package/typography/Typography.test.js +23 -0
- package/typography/types.d.ts +18 -0
- package/typography/types.js +5 -0
- package/useTheme.d.ts +1167 -1
- package/useTheme.js +2 -9
- package/useTranslatedLabels.d.ts +96 -0
- package/useTranslatedLabels.js +14 -0
- package/utils/BaseTypography.d.ts +21 -0
- package/utils/BaseTypography.js +98 -0
- package/utils/FocusLock.d.ts +13 -0
- package/utils/FocusLock.js +125 -0
- package/utils/useWidth.d.ts +2 -0
- package/utils/useWidth.js +30 -0
- package/wizard/Wizard.accessibility.test.d.ts +1 -0
- package/wizard/Wizard.accessibility.test.js +55 -0
- package/wizard/Wizard.js +59 -110
- package/wizard/Wizard.stories.tsx +60 -2
- package/wizard/Wizard.test.d.ts +1 -0
- package/wizard/Wizard.test.js +53 -80
- package/wizard/types.d.ts +9 -9
- 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 -173
- 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 → bar-chart}/types.js +0 -0
- /package/{resultsetTable → breadcrumbs}/types.js +0 -0
- /package/{row → bulleted-list}/types.js +0 -0
- /package/{stack → container}/types.js +0 -0
- /package/{number-input/numberInputContextTypes.js → contextual-menu/types.js} +0 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type DataTypes = string | number;
|
|
3
|
+
type BarChartThresholdSeries<X> = {
|
|
4
|
+
/**
|
|
5
|
+
* Title of the series.
|
|
6
|
+
*/
|
|
7
|
+
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* Type of the series. It can be either "threshold" or "bar".
|
|
10
|
+
*/
|
|
11
|
+
type: "threshold";
|
|
12
|
+
/**
|
|
13
|
+
* Value of the y axis.
|
|
14
|
+
*/
|
|
15
|
+
y?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Value of the x axis. It can be a string or a number.
|
|
18
|
+
*/
|
|
19
|
+
x?: X;
|
|
20
|
+
};
|
|
21
|
+
type BarChartDataSeries<X> = {
|
|
22
|
+
/**
|
|
23
|
+
* Title of the series.
|
|
24
|
+
*/
|
|
25
|
+
title: string;
|
|
26
|
+
/**
|
|
27
|
+
* Type of the series. It can be either "threshold" or "bar".
|
|
28
|
+
*/
|
|
29
|
+
type: "bar";
|
|
30
|
+
/**
|
|
31
|
+
* Data points of the series. Each data point is represented by an object with an x value and a y value.
|
|
32
|
+
*/
|
|
33
|
+
data: {
|
|
34
|
+
x: X;
|
|
35
|
+
y: number;
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
38
|
+
type BarChartSeries<X> = BarChartThresholdSeries<X> | BarChartDataSeries<X>;
|
|
39
|
+
type BarChartProps<X extends DataTypes> = {
|
|
40
|
+
/**
|
|
41
|
+
* Title of the chart.
|
|
42
|
+
*/
|
|
43
|
+
chartTitle?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Error state of the chart. If set, the chart will display an error message with a retry action.
|
|
46
|
+
*/
|
|
47
|
+
error?: string;
|
|
48
|
+
/**
|
|
49
|
+
* If true, the chart will display horizontal bars.
|
|
50
|
+
*/
|
|
51
|
+
horizontalBars?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Legend title.
|
|
54
|
+
*/
|
|
55
|
+
legendTitle?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Activates the loading state.
|
|
58
|
+
*/
|
|
59
|
+
loading?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Event called when the bar chart filters are changed.
|
|
62
|
+
*/
|
|
63
|
+
onFilterChange?: (visibleSeries: string[]) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Event called when the highlighted series has changed because of user interaction.
|
|
66
|
+
*/
|
|
67
|
+
onHighlightChange?: (highlightedSeries?: string) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Event called when the user clicks on the retry action of the error state.
|
|
70
|
+
*/
|
|
71
|
+
onRetry?: () => void;
|
|
72
|
+
/**
|
|
73
|
+
* Array that represents the source of data for the displayed chart.
|
|
74
|
+
*/
|
|
75
|
+
series: BarChartSeries<X>[];
|
|
76
|
+
/**
|
|
77
|
+
* If true, the chart will display a filter to show/hide series.
|
|
78
|
+
*/
|
|
79
|
+
showFilter?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* If true, the chart will display a legend with the corresponding data series.
|
|
82
|
+
*/
|
|
83
|
+
showLegend?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* When set to true, bars in the same data point are stacked instead of being grouped next to each other.
|
|
86
|
+
*/
|
|
87
|
+
stackedBars?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Determines the domain of the x axis, i.e. the range of values that will be visible in the chart
|
|
90
|
+
*/
|
|
91
|
+
xDomain?: X[];
|
|
92
|
+
/**
|
|
93
|
+
* Formatter function for the x axis. It receives the x value and returns a string.
|
|
94
|
+
*/
|
|
95
|
+
xFormatter?: (value: X) => string;
|
|
96
|
+
/**
|
|
97
|
+
* Title of the x axis.
|
|
98
|
+
*/
|
|
99
|
+
xTitle?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Determines the domain of the y axis, i.e. the range of values that will be visible in the chart
|
|
102
|
+
*/
|
|
103
|
+
yDomain?: [number, number];
|
|
104
|
+
/**
|
|
105
|
+
* Formatter function for the y axis. It receives the y value and returns a string.
|
|
106
|
+
*/
|
|
107
|
+
yFormatter?: (value: number) => string;
|
|
108
|
+
/**
|
|
109
|
+
* Title of the y axis.
|
|
110
|
+
*/
|
|
111
|
+
yTitle?: string;
|
|
112
|
+
};
|
|
113
|
+
type InsetWrapperProps = {
|
|
114
|
+
condition: boolean;
|
|
115
|
+
children: React.ReactNode;
|
|
116
|
+
};
|
|
117
|
+
export default BarChartProps;
|
|
118
|
+
export type { DataTypes, InsetWrapperProps };
|
package/bleed/Bleed.js
CHANGED
|
@@ -1,29 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = Bleed;
|
|
9
|
-
|
|
10
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
9
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
15
|
-
|
|
16
11
|
var _templateObject;
|
|
17
|
-
|
|
18
12
|
function Bleed(_ref) {
|
|
19
13
|
var space = _ref.space,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
horizontal = _ref.horizontal,
|
|
15
|
+
vertical = _ref.vertical,
|
|
16
|
+
top = _ref.top,
|
|
17
|
+
right = _ref.right,
|
|
18
|
+
bottom = _ref.bottom,
|
|
19
|
+
left = _ref.left,
|
|
20
|
+
children = _ref.children;
|
|
27
21
|
return /*#__PURE__*/_react["default"].createElement(StyledBleed, {
|
|
28
22
|
space: space,
|
|
29
23
|
horizontal: horizontal,
|
|
@@ -34,51 +28,16 @@ function Bleed(_ref) {
|
|
|
34
28
|
left: left
|
|
35
29
|
}, children);
|
|
36
30
|
}
|
|
37
|
-
|
|
38
31
|
function getSpacingValue(spacingName) {
|
|
39
|
-
|
|
40
|
-
case "none":
|
|
41
|
-
return "0rem";
|
|
42
|
-
|
|
43
|
-
case "xxxsmall":
|
|
44
|
-
return "0.125rem";
|
|
45
|
-
|
|
46
|
-
case "xxsmall":
|
|
47
|
-
return "0.25rem";
|
|
48
|
-
|
|
49
|
-
case "xsmall":
|
|
50
|
-
return "0.5rem";
|
|
51
|
-
|
|
52
|
-
case "small":
|
|
53
|
-
return "1rem";
|
|
54
|
-
|
|
55
|
-
case "medium":
|
|
56
|
-
return "1.5rem";
|
|
57
|
-
|
|
58
|
-
case "large":
|
|
59
|
-
return "2rem";
|
|
60
|
-
|
|
61
|
-
case "xlarge":
|
|
62
|
-
return "3rem";
|
|
63
|
-
|
|
64
|
-
case "xxlarge":
|
|
65
|
-
return "4rem";
|
|
66
|
-
|
|
67
|
-
case "xxxlarge":
|
|
68
|
-
return "5rem";
|
|
69
|
-
|
|
70
|
-
default:
|
|
71
|
-
return "0rem";
|
|
72
|
-
}
|
|
32
|
+
return spacingName ? spacingName : "0rem";
|
|
73
33
|
}
|
|
74
|
-
|
|
75
34
|
var StyledBleed = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n"])), function (_ref2) {
|
|
76
35
|
var space = _ref2.space,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
36
|
+
horizontal = _ref2.horizontal,
|
|
37
|
+
vertical = _ref2.vertical,
|
|
38
|
+
top = _ref2.top,
|
|
39
|
+
right = _ref2.right,
|
|
40
|
+
bottom = _ref2.bottom,
|
|
41
|
+
left = _ref2.left;
|
|
83
42
|
return "\n margin: -".concat(getSpacingValue(top || vertical || space), " -").concat(getSpacingValue(right || horizontal || space), " -").concat(getSpacingValue(bottom || vertical || space), " -").concat(getSpacingValue(left || horizontal || space), ";\n");
|
|
84
43
|
});
|
package/bleed/Bleed.stories.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import styled from "styled-components";
|
|
3
3
|
import Title from "../../.storybook/components/Title";
|
|
4
4
|
import DxcBleed from "./Bleed";
|
|
5
|
-
import
|
|
5
|
+
import DxcFlex from "../flex/Flex";
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: "Bleed",
|
|
@@ -13,316 +13,315 @@ export const Chromatic = () => (
|
|
|
13
13
|
<>
|
|
14
14
|
<Title title="Space = none" theme="light" level={4} />
|
|
15
15
|
<Container>
|
|
16
|
-
<
|
|
16
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
17
17
|
<Placeholder></Placeholder>
|
|
18
|
-
<DxcBleed space="
|
|
18
|
+
<DxcBleed space="0rem">
|
|
19
19
|
<Placeholder></Placeholder>
|
|
20
20
|
</DxcBleed>
|
|
21
21
|
<Placeholder></Placeholder>
|
|
22
|
-
</
|
|
22
|
+
</DxcFlex>
|
|
23
23
|
</Container>
|
|
24
24
|
<Title title="Space = xxxsmall" theme="light" level={4} />
|
|
25
25
|
<Container>
|
|
26
|
-
<
|
|
26
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
27
27
|
<Placeholder></Placeholder>
|
|
28
|
-
<DxcBleed space="
|
|
28
|
+
<DxcBleed space="0.125rem">
|
|
29
29
|
<Placeholder></Placeholder>
|
|
30
30
|
</DxcBleed>
|
|
31
31
|
<Placeholder></Placeholder>
|
|
32
|
-
</
|
|
32
|
+
</DxcFlex>
|
|
33
33
|
</Container>
|
|
34
34
|
<Title title="Space = xxsmall" theme="light" level={4} />
|
|
35
35
|
<Container>
|
|
36
|
-
<
|
|
36
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
37
37
|
<Placeholder></Placeholder>
|
|
38
|
-
<DxcBleed space="
|
|
38
|
+
<DxcBleed space="0.25rem">
|
|
39
39
|
<Placeholder></Placeholder>
|
|
40
40
|
</DxcBleed>
|
|
41
41
|
<Placeholder></Placeholder>
|
|
42
|
-
</
|
|
42
|
+
</DxcFlex>
|
|
43
43
|
</Container>
|
|
44
44
|
<Title title="Space = xsmall" theme="light" level={4} />
|
|
45
45
|
<Container>
|
|
46
|
-
<
|
|
46
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
47
47
|
<Placeholder></Placeholder>
|
|
48
|
-
<DxcBleed space="
|
|
48
|
+
<DxcBleed space="0.5rem">
|
|
49
49
|
<Placeholder></Placeholder>
|
|
50
50
|
</DxcBleed>
|
|
51
51
|
<Placeholder></Placeholder>
|
|
52
|
-
</
|
|
52
|
+
</DxcFlex>
|
|
53
53
|
</Container>
|
|
54
54
|
<Title title="Space = small" theme="light" level={4} />
|
|
55
55
|
<Container>
|
|
56
|
-
<
|
|
56
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
57
57
|
<Placeholder></Placeholder>
|
|
58
|
-
<DxcBleed space="
|
|
58
|
+
<DxcBleed space="1rem">
|
|
59
59
|
<Placeholder></Placeholder>
|
|
60
60
|
</DxcBleed>
|
|
61
61
|
<Placeholder></Placeholder>
|
|
62
|
-
</
|
|
62
|
+
</DxcFlex>
|
|
63
63
|
</Container>
|
|
64
64
|
<Title title="Space = medium" theme="light" level={4} />
|
|
65
65
|
<Container>
|
|
66
|
-
<
|
|
66
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
67
67
|
<Placeholder></Placeholder>
|
|
68
|
-
<DxcBleed space="
|
|
68
|
+
<DxcBleed space="1.5rem">
|
|
69
69
|
<Placeholder></Placeholder>
|
|
70
70
|
</DxcBleed>
|
|
71
71
|
<Placeholder></Placeholder>
|
|
72
|
-
</
|
|
72
|
+
</DxcFlex>
|
|
73
73
|
</Container>
|
|
74
74
|
<Title title="Space = large" theme="light" level={4} />
|
|
75
75
|
<Container>
|
|
76
|
-
<
|
|
76
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
77
77
|
<Placeholder></Placeholder>
|
|
78
|
-
<DxcBleed space="
|
|
78
|
+
<DxcBleed space="2rem">
|
|
79
79
|
<Placeholder></Placeholder>
|
|
80
80
|
</DxcBleed>
|
|
81
81
|
<Placeholder></Placeholder>
|
|
82
|
-
</
|
|
82
|
+
</DxcFlex>
|
|
83
83
|
</Container>
|
|
84
84
|
<Title title="Space = xlarge" theme="light" level={4} />
|
|
85
85
|
<Container>
|
|
86
|
-
<
|
|
86
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
87
87
|
<Placeholder></Placeholder>
|
|
88
|
-
<DxcBleed space="
|
|
88
|
+
<DxcBleed space="3rem">
|
|
89
89
|
<Placeholder></Placeholder>
|
|
90
90
|
</DxcBleed>
|
|
91
91
|
<Placeholder></Placeholder>
|
|
92
|
-
</
|
|
92
|
+
</DxcFlex>
|
|
93
93
|
</Container>
|
|
94
94
|
<Title title="Space = xxlarge" theme="light" level={4} />
|
|
95
95
|
<Container>
|
|
96
|
-
<
|
|
96
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
97
97
|
<Placeholder></Placeholder>
|
|
98
|
-
<DxcBleed space="
|
|
98
|
+
<DxcBleed space="4rem">
|
|
99
99
|
<Placeholder></Placeholder>
|
|
100
100
|
</DxcBleed>
|
|
101
101
|
<Placeholder></Placeholder>
|
|
102
|
-
</
|
|
102
|
+
</DxcFlex>
|
|
103
103
|
</Container>
|
|
104
104
|
<Title title="Space = xxxlarge" theme="light" level={4} />
|
|
105
105
|
<Container>
|
|
106
|
-
<
|
|
106
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
107
107
|
<Placeholder></Placeholder>
|
|
108
|
-
<DxcBleed space="
|
|
108
|
+
<DxcBleed space="5rem">
|
|
109
109
|
<Placeholder></Placeholder>
|
|
110
110
|
</DxcBleed>
|
|
111
111
|
<Placeholder></Placeholder>
|
|
112
|
-
</
|
|
112
|
+
</DxcFlex>
|
|
113
113
|
</Container>
|
|
114
|
-
|
|
115
114
|
<Title title="Horizontal = none" theme="light" level={4} />
|
|
116
115
|
<Container>
|
|
117
|
-
<
|
|
116
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
118
117
|
<Placeholder></Placeholder>
|
|
119
|
-
<DxcBleed horizontal="
|
|
118
|
+
<DxcBleed horizontal="0rem">
|
|
120
119
|
<Placeholder></Placeholder>
|
|
121
120
|
</DxcBleed>
|
|
122
121
|
<Placeholder></Placeholder>
|
|
123
|
-
</
|
|
122
|
+
</DxcFlex>
|
|
124
123
|
</Container>
|
|
125
124
|
<Title title="Horizontal = xxxsmall" theme="light" level={4} />
|
|
126
125
|
<Container>
|
|
127
|
-
<
|
|
126
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
128
127
|
<Placeholder></Placeholder>
|
|
129
|
-
<DxcBleed horizontal="
|
|
128
|
+
<DxcBleed horizontal="0.125rem">
|
|
130
129
|
<Placeholder></Placeholder>
|
|
131
130
|
</DxcBleed>
|
|
132
131
|
<Placeholder></Placeholder>
|
|
133
|
-
</
|
|
132
|
+
</DxcFlex>
|
|
134
133
|
</Container>
|
|
135
134
|
<Title title="Horizontal = xxsmall" theme="light" level={4} />
|
|
136
135
|
<Container>
|
|
137
|
-
<
|
|
136
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
138
137
|
<Placeholder></Placeholder>
|
|
139
|
-
<DxcBleed horizontal="
|
|
138
|
+
<DxcBleed horizontal="0.25rem">
|
|
140
139
|
<Placeholder></Placeholder>
|
|
141
140
|
</DxcBleed>
|
|
142
141
|
<Placeholder></Placeholder>
|
|
143
|
-
</
|
|
142
|
+
</DxcFlex>
|
|
144
143
|
</Container>
|
|
145
144
|
<Title title="Horizontal = xsmall" theme="light" level={4} />
|
|
146
145
|
<Container>
|
|
147
|
-
<
|
|
146
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
148
147
|
<Placeholder></Placeholder>
|
|
149
|
-
<DxcBleed horizontal="
|
|
148
|
+
<DxcBleed horizontal="0.5rem">
|
|
150
149
|
<Placeholder></Placeholder>
|
|
151
150
|
</DxcBleed>
|
|
152
151
|
<Placeholder></Placeholder>
|
|
153
|
-
</
|
|
152
|
+
</DxcFlex>
|
|
154
153
|
</Container>
|
|
155
154
|
<Title title="Horizontal = small" theme="light" level={4} />
|
|
156
155
|
<Container>
|
|
157
|
-
<
|
|
156
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
158
157
|
<Placeholder></Placeholder>
|
|
159
|
-
<DxcBleed horizontal="
|
|
158
|
+
<DxcBleed horizontal="1rem">
|
|
160
159
|
<Placeholder></Placeholder>
|
|
161
160
|
</DxcBleed>
|
|
162
161
|
<Placeholder></Placeholder>
|
|
163
|
-
</
|
|
162
|
+
</DxcFlex>
|
|
164
163
|
</Container>
|
|
165
164
|
<Title title="Horizontal = medium" theme="light" level={4} />
|
|
166
165
|
<Container>
|
|
167
|
-
<
|
|
166
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
168
167
|
<Placeholder></Placeholder>
|
|
169
|
-
<DxcBleed horizontal="
|
|
168
|
+
<DxcBleed horizontal="1.5rem">
|
|
170
169
|
<Placeholder></Placeholder>
|
|
171
170
|
</DxcBleed>
|
|
172
171
|
<Placeholder></Placeholder>
|
|
173
|
-
</
|
|
172
|
+
</DxcFlex>
|
|
174
173
|
</Container>
|
|
175
174
|
<Title title="Horizontal = large" theme="light" level={4} />
|
|
176
175
|
<Container>
|
|
177
|
-
<
|
|
176
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
178
177
|
<Placeholder></Placeholder>
|
|
179
|
-
<DxcBleed horizontal="
|
|
178
|
+
<DxcBleed horizontal="2rem">
|
|
180
179
|
<Placeholder></Placeholder>
|
|
181
180
|
</DxcBleed>
|
|
182
181
|
<Placeholder></Placeholder>
|
|
183
|
-
</
|
|
182
|
+
</DxcFlex>
|
|
184
183
|
</Container>
|
|
185
184
|
<Title title="Horizontal = xlarge" theme="light" level={4} />
|
|
186
185
|
<Container>
|
|
187
|
-
<
|
|
186
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
188
187
|
<Placeholder></Placeholder>
|
|
189
|
-
<DxcBleed horizontal="
|
|
188
|
+
<DxcBleed horizontal="3rem">
|
|
190
189
|
<Placeholder></Placeholder>
|
|
191
190
|
</DxcBleed>
|
|
192
191
|
<Placeholder></Placeholder>
|
|
193
|
-
</
|
|
192
|
+
</DxcFlex>
|
|
194
193
|
</Container>
|
|
195
194
|
<Title title="Horizontal = xxlarge" theme="light" level={4} />
|
|
196
195
|
<Container>
|
|
197
|
-
<
|
|
196
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
198
197
|
<Placeholder></Placeholder>
|
|
199
|
-
<DxcBleed horizontal="
|
|
198
|
+
<DxcBleed horizontal="4rem">
|
|
200
199
|
<Placeholder></Placeholder>
|
|
201
200
|
</DxcBleed>
|
|
202
201
|
<Placeholder></Placeholder>
|
|
203
|
-
</
|
|
202
|
+
</DxcFlex>
|
|
204
203
|
</Container>
|
|
205
204
|
<Title title="Horizontal = xxxlarge" theme="light" level={4} />
|
|
206
205
|
<Container>
|
|
207
|
-
<
|
|
206
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
208
207
|
<Placeholder></Placeholder>
|
|
209
|
-
<DxcBleed horizontal="
|
|
208
|
+
<DxcBleed horizontal="5rem">
|
|
210
209
|
<Placeholder></Placeholder>
|
|
211
210
|
</DxcBleed>
|
|
212
211
|
<Placeholder></Placeholder>
|
|
213
|
-
</
|
|
212
|
+
</DxcFlex>
|
|
214
213
|
</Container>
|
|
215
214
|
|
|
216
215
|
<Title title="Vertical = none" theme="light" level={4} />
|
|
217
216
|
<Container>
|
|
218
|
-
<
|
|
217
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
219
218
|
<Placeholder></Placeholder>
|
|
220
|
-
<DxcBleed vertical="
|
|
219
|
+
<DxcBleed vertical="0rem">
|
|
221
220
|
<Placeholder></Placeholder>
|
|
222
221
|
</DxcBleed>
|
|
223
222
|
<Placeholder></Placeholder>
|
|
224
|
-
</
|
|
223
|
+
</DxcFlex>
|
|
225
224
|
</Container>
|
|
226
225
|
<Title title="Vertical = xxxsmall" theme="light" level={4} />
|
|
227
226
|
<Container>
|
|
228
|
-
<
|
|
227
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
229
228
|
<Placeholder></Placeholder>
|
|
230
|
-
<DxcBleed vertical="
|
|
229
|
+
<DxcBleed vertical="0.125rem">
|
|
231
230
|
<Placeholder></Placeholder>
|
|
232
231
|
</DxcBleed>
|
|
233
232
|
<Placeholder></Placeholder>
|
|
234
|
-
</
|
|
233
|
+
</DxcFlex>
|
|
235
234
|
</Container>
|
|
236
235
|
<Title title="Vertical = xxsmall" theme="light" level={4} />
|
|
237
236
|
<Container>
|
|
238
|
-
<
|
|
237
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
239
238
|
<Placeholder></Placeholder>
|
|
240
|
-
<DxcBleed vertical="
|
|
239
|
+
<DxcBleed vertical="0.25rem">
|
|
241
240
|
<Placeholder></Placeholder>
|
|
242
241
|
</DxcBleed>
|
|
243
242
|
<Placeholder></Placeholder>
|
|
244
|
-
</
|
|
243
|
+
</DxcFlex>
|
|
245
244
|
</Container>
|
|
246
245
|
<Title title="Vertical = xsmall" theme="light" level={4} />
|
|
247
246
|
<Container>
|
|
248
|
-
<
|
|
247
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
249
248
|
<Placeholder></Placeholder>
|
|
250
|
-
<DxcBleed vertical="
|
|
249
|
+
<DxcBleed vertical="0.5rem">
|
|
251
250
|
<Placeholder></Placeholder>
|
|
252
251
|
</DxcBleed>
|
|
253
252
|
<Placeholder></Placeholder>
|
|
254
|
-
</
|
|
253
|
+
</DxcFlex>
|
|
255
254
|
</Container>
|
|
256
255
|
<Title title="Vertical = small" theme="light" level={4} />
|
|
257
256
|
<Container>
|
|
258
|
-
<
|
|
257
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
259
258
|
<Placeholder></Placeholder>
|
|
260
|
-
<DxcBleed vertical="
|
|
259
|
+
<DxcBleed vertical="1rem">
|
|
261
260
|
<Placeholder></Placeholder>
|
|
262
261
|
</DxcBleed>
|
|
263
262
|
<Placeholder></Placeholder>
|
|
264
|
-
</
|
|
263
|
+
</DxcFlex>
|
|
265
264
|
</Container>
|
|
266
265
|
<Title title="Vertical = medium" theme="light" level={4} />
|
|
267
266
|
<Container>
|
|
268
|
-
<
|
|
267
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
269
268
|
<Placeholder></Placeholder>
|
|
270
|
-
<DxcBleed vertical="
|
|
269
|
+
<DxcBleed vertical="1.5rem">
|
|
271
270
|
<Placeholder></Placeholder>
|
|
272
271
|
</DxcBleed>
|
|
273
272
|
<Placeholder></Placeholder>
|
|
274
|
-
</
|
|
273
|
+
</DxcFlex>
|
|
275
274
|
</Container>
|
|
276
275
|
<Title title="Vertical = large" theme="light" level={4} />
|
|
277
276
|
<Container>
|
|
278
|
-
<
|
|
277
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
279
278
|
<Placeholder></Placeholder>
|
|
280
|
-
<DxcBleed vertical="
|
|
279
|
+
<DxcBleed vertical="2rem">
|
|
281
280
|
<Placeholder></Placeholder>
|
|
282
281
|
</DxcBleed>
|
|
283
282
|
<Placeholder></Placeholder>
|
|
284
|
-
</
|
|
283
|
+
</DxcFlex>
|
|
285
284
|
</Container>
|
|
286
285
|
<Title title="Vertical = xlarge" theme="light" level={4} />
|
|
287
286
|
<Container>
|
|
288
|
-
<
|
|
287
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
289
288
|
<Placeholder></Placeholder>
|
|
290
|
-
<DxcBleed vertical="
|
|
289
|
+
<DxcBleed vertical="3rem">
|
|
291
290
|
<Placeholder></Placeholder>
|
|
292
291
|
</DxcBleed>
|
|
293
292
|
<Placeholder></Placeholder>
|
|
294
|
-
</
|
|
293
|
+
</DxcFlex>
|
|
295
294
|
</Container>
|
|
296
295
|
<Title title="Vertical = xxlarge" theme="light" level={4} />
|
|
297
296
|
<Container>
|
|
298
|
-
<
|
|
297
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
299
298
|
<Placeholder></Placeholder>
|
|
300
|
-
<DxcBleed vertical="
|
|
299
|
+
<DxcBleed vertical="4rem">
|
|
301
300
|
<Placeholder></Placeholder>
|
|
302
301
|
</DxcBleed>
|
|
303
302
|
<Placeholder></Placeholder>
|
|
304
|
-
</
|
|
303
|
+
</DxcFlex>
|
|
305
304
|
</Container>
|
|
306
305
|
<Title title="Vertical = xxxlarge" theme="light" level={4} />
|
|
307
306
|
<Container>
|
|
308
|
-
<
|
|
307
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
309
308
|
<Placeholder></Placeholder>
|
|
310
|
-
<DxcBleed vertical="
|
|
309
|
+
<DxcBleed vertical="5rem">
|
|
311
310
|
<Placeholder></Placeholder>
|
|
312
311
|
</DxcBleed>
|
|
313
312
|
<Placeholder></Placeholder>
|
|
314
|
-
</
|
|
313
|
+
</DxcFlex>
|
|
315
314
|
</Container>
|
|
316
315
|
|
|
317
316
|
<Title title="Top = xsmall, right = small, bottom = medium and left = large" theme="light" level={4} />
|
|
318
317
|
<Container>
|
|
319
|
-
<
|
|
318
|
+
<DxcFlex direction="column" gap="1.5rem">
|
|
320
319
|
<Placeholder></Placeholder>
|
|
321
|
-
<DxcBleed top="
|
|
320
|
+
<DxcBleed top="0.5rem" right="1rem" bottom="1.5rem" left="2rem">
|
|
322
321
|
<Placeholder></Placeholder>
|
|
323
322
|
</DxcBleed>
|
|
324
323
|
<Placeholder></Placeholder>
|
|
325
|
-
</
|
|
324
|
+
</DxcFlex>
|
|
326
325
|
</Container>
|
|
327
326
|
</>
|
|
328
327
|
);
|
|
@@ -337,6 +336,6 @@ const Placeholder = styled.div`
|
|
|
337
336
|
min-height: 40px;
|
|
338
337
|
min-width: 120px;
|
|
339
338
|
border: 1px solid #a46ede;
|
|
339
|
+
border-radius: 0.5rem;
|
|
340
340
|
background-color: #e5d5f6;
|
|
341
341
|
`;
|
|
342
|
-
|
package/bleed/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type Spacing = "0rem" | "0.125rem" | "0.25rem" | "0.5rem" | "1rem" | "1.5rem" | "2rem" | "3rem" | "4rem" | "5rem";
|
|
3
|
+
type Props = {
|
|
4
4
|
/**
|
|
5
5
|
* Applies the spacing scale to all sides.
|
|
6
6
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|