@dxc-technology/halstack-react 0.0.0-ebf4fe2 → 0.0.0-ec06b53
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/HalstackContext.js +7 -8
- package/accordion/Accordion.js +122 -103
- package/accordion/Accordion.stories.tsx +2 -3
- package/accordion/Accordion.test.js +9 -10
- package/accordion/types.d.ts +5 -4
- package/accordion-group/AccordionGroup.js +1 -21
- package/accordion-group/AccordionGroup.stories.tsx +27 -1
- package/accordion-group/AccordionGroup.test.js +20 -45
- package/accordion-group/types.d.ts +10 -3
- package/alert/Alert.js +1 -1
- package/bleed/Bleed.stories.tsx +63 -63
- package/box/Box.js +1 -1
- package/box/types.d.ts +1 -0
- package/bulleted-list/BulletedList.d.ts +7 -0
- package/bulleted-list/BulletedList.js +123 -0
- package/bulleted-list/BulletedList.stories.tsx +200 -0
- package/bulleted-list/types.d.ts +11 -0
- package/{inline → bulleted-list}/types.js +0 -0
- package/button/Button.js +43 -61
- package/button/Button.stories.tsx +9 -0
- package/button/types.d.ts +7 -7
- package/card/types.d.ts +1 -0
- package/checkbox/Checkbox.d.ts +2 -2
- package/checkbox/Checkbox.js +92 -99
- package/checkbox/Checkbox.stories.tsx +79 -59
- package/checkbox/Checkbox.test.js +93 -16
- package/checkbox/types.d.ts +6 -2
- package/chip/types.d.ts +1 -1
- package/common/variables.js +75 -33
- package/date-input/Calendar.d.ts +4 -0
- package/date-input/Calendar.js +258 -0
- package/date-input/DateInput.js +77 -222
- package/date-input/DateInput.stories.tsx +30 -17
- package/date-input/DateInput.test.js +411 -138
- package/date-input/DatePicker.d.ts +4 -0
- package/date-input/DatePicker.js +160 -0
- package/date-input/YearPicker.d.ts +4 -0
- package/date-input/YearPicker.js +115 -0
- package/date-input/types.d.ts +53 -0
- package/dialog/Dialog.js +52 -28
- package/dialog/Dialog.stories.tsx +57 -2
- package/dialog/Dialog.test.js +34 -4
- package/dialog/types.d.ts +3 -2
- package/dropdown/Dropdown.d.ts +1 -1
- package/dropdown/Dropdown.js +247 -247
- package/dropdown/Dropdown.stories.tsx +126 -63
- package/dropdown/Dropdown.test.js +504 -108
- package/dropdown/DropdownMenu.d.ts +4 -0
- package/dropdown/DropdownMenu.js +80 -0
- package/dropdown/DropdownMenuItem.d.ts +4 -0
- package/dropdown/DropdownMenuItem.js +92 -0
- package/dropdown/types.d.ts +25 -5
- package/file-input/FileInput.d.ts +2 -2
- package/file-input/FileInput.js +177 -219
- package/file-input/FileInput.stories.tsx +38 -10
- package/file-input/FileInput.test.js +53 -12
- package/file-input/FileItem.d.ts +4 -14
- package/file-input/FileItem.js +38 -63
- package/file-input/types.d.ts +17 -0
- package/flex/Flex.d.ts +4 -0
- package/flex/Flex.js +69 -0
- package/flex/Flex.stories.tsx +103 -0
- package/flex/types.d.ts +32 -0
- package/{list → flex}/types.js +0 -0
- package/footer/Footer.stories.tsx +8 -1
- package/footer/types.d.ts +2 -1
- package/header/Header.js +74 -72
- package/header/Header.stories.tsx +4 -4
- package/header/Icons.js +2 -2
- package/header/types.d.ts +3 -2
- package/inset/Inset.stories.tsx +4 -4
- package/layout/ApplicationLayout.d.ts +15 -6
- package/layout/ApplicationLayout.js +36 -64
- package/layout/ApplicationLayout.stories.tsx +80 -44
- package/layout/types.d.ts +17 -27
- package/link/Link.js +2 -2
- package/link/Link.stories.tsx +13 -6
- package/link/types.d.ts +1 -1
- package/main.d.ts +5 -9
- package/main.js +27 -59
- package/number-input/NumberInput.test.js +43 -7
- package/package.json +16 -20
- package/paginator/Paginator.js +2 -2
- package/paginator/Paginator.test.js +1 -1
- package/paragraph/Paragraph.d.ts +6 -0
- package/paragraph/Paragraph.js +38 -0
- package/paragraph/Paragraph.stories.tsx +44 -0
- package/password-input/PasswordInput.test.js +13 -12
- package/progress-bar/ProgressBar.d.ts +2 -2
- package/progress-bar/ProgressBar.js +56 -50
- package/progress-bar/ProgressBar.stories.jsx +3 -1
- package/progress-bar/ProgressBar.test.js +67 -22
- package/progress-bar/types.d.ts +3 -4
- package/quick-nav/QuickNav.js +18 -17
- package/quick-nav/QuickNav.stories.tsx +131 -26
- package/radio-group/Radio.d.ts +1 -1
- package/radio-group/Radio.js +43 -28
- package/radio-group/RadioGroup.js +23 -22
- package/radio-group/RadioGroup.stories.tsx +1 -0
- package/radio-group/RadioGroup.test.js +123 -96
- package/radio-group/types.d.ts +2 -2
- package/resultsetTable/Icons.d.ts +7 -0
- package/resultsetTable/Icons.js +51 -0
- package/resultsetTable/ResultsetTable.js +48 -107
- package/resultsetTable/ResultsetTable.stories.tsx +50 -25
- package/resultsetTable/ResultsetTable.test.js +23 -41
- package/resultsetTable/types.d.ts +2 -2
- package/select/Listbox.d.ts +1 -1
- package/select/Listbox.js +25 -2
- package/select/Select.js +17 -32
- package/select/Select.stories.tsx +6 -5
- package/select/Select.test.js +321 -250
- package/select/types.d.ts +2 -4
- package/sidenav/Sidenav.d.ts +6 -5
- package/sidenav/Sidenav.js +176 -55
- package/sidenav/Sidenav.stories.tsx +154 -156
- package/sidenav/Sidenav.test.js +25 -37
- package/sidenav/types.d.ts +50 -27
- package/slider/Slider.d.ts +2 -2
- package/slider/Slider.js +120 -95
- package/slider/Slider.stories.tsx +7 -1
- package/slider/Slider.test.js +121 -21
- package/slider/types.d.ts +6 -2
- package/switch/Switch.d.ts +2 -2
- package/switch/Switch.js +135 -68
- package/switch/Switch.stories.tsx +8 -30
- package/switch/Switch.test.js +144 -17
- package/switch/types.d.ts +6 -2
- package/table/Table.js +1 -1
- package/table/Table.test.js +1 -1
- package/tabs/Tab.d.ts +4 -0
- package/tabs/Tab.js +135 -0
- package/tabs/Tabs.js +360 -104
- package/tabs/Tabs.stories.tsx +74 -0
- package/tabs/Tabs.test.js +217 -6
- package/tabs/types.d.ts +15 -5
- package/tabs-nav/NavTabs.js +5 -5
- package/tabs-nav/Tab.js +3 -5
- package/tabs-nav/types.d.ts +1 -1
- package/tag/Tag.js +1 -1
- package/tag/types.d.ts +1 -1
- package/text-input/Icons.d.ts +8 -0
- package/text-input/Icons.js +60 -0
- package/text-input/Suggestion.js +7 -5
- package/text-input/Suggestions.d.ts +4 -0
- package/text-input/Suggestions.js +134 -0
- package/text-input/TextInput.js +189 -282
- package/text-input/TextInput.stories.tsx +189 -182
- package/text-input/TextInput.test.js +639 -727
- package/text-input/types.d.ts +22 -3
- package/toggle-group/types.d.ts +1 -1
- package/typography/Typography.d.ts +4 -0
- package/typography/Typography.js +131 -0
- package/typography/Typography.stories.tsx +198 -0
- package/typography/types.d.ts +18 -0
- package/{row → typography}/types.js +0 -0
- package/wizard/Wizard.js +9 -16
- package/wizard/Wizard.stories.tsx +20 -1
- package/wizard/types.d.ts +5 -4
- package/inline/Inline.d.ts +0 -4
- package/inline/Inline.js +0 -60
- package/inline/Inline.stories.tsx +0 -305
- package/inline/types.d.ts +0 -36
- package/list/List.d.ts +0 -4
- package/list/List.js +0 -47
- package/list/List.stories.tsx +0 -89
- package/list/types.d.ts +0 -7
- 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/stack/Stack.d.ts +0 -4
- package/stack/Stack.js +0 -52
- package/stack/Stack.stories.tsx +0 -225
- package/stack/types.d.ts +0 -28
- package/stack/types.js +0 -5
- package/text/Text.d.ts +0 -7
- package/text/Text.js +0 -30
- package/text/Text.stories.tsx +0 -19
package/quick-nav/QuickNav.js
CHANGED
|
@@ -21,11 +21,11 @@ var _useTheme = _interopRequireDefault(require("../useTheme"));
|
|
|
21
21
|
|
|
22
22
|
var _Heading = _interopRequireDefault(require("../heading/Heading"));
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _Flex = _interopRequireDefault(require("../flex/Flex"));
|
|
25
25
|
|
|
26
26
|
var _Inset = _interopRequireDefault(require("../inset/Inset"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _Typography = _interopRequireDefault(require("../typography/Typography"));
|
|
29
29
|
|
|
30
30
|
var _useTranslatedLabels = _interopRequireDefault(require("../useTranslatedLabels"));
|
|
31
31
|
|
|
@@ -42,36 +42,37 @@ var DxcQuickNav = function DxcQuickNav(_ref) {
|
|
|
42
42
|
var colorsTheme = (0, _useTheme["default"])();
|
|
43
43
|
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
44
44
|
theme: colorsTheme.quickNav
|
|
45
|
-
}, /*#__PURE__*/_react["default"].createElement(QuickNavContainer, null, /*#__PURE__*/_react["default"].createElement(
|
|
46
|
-
|
|
45
|
+
}, /*#__PURE__*/_react["default"].createElement(QuickNavContainer, null, /*#__PURE__*/_react["default"].createElement(_Flex["default"], {
|
|
46
|
+
direction: "column",
|
|
47
|
+
gap: "0.5rem"
|
|
47
48
|
}, /*#__PURE__*/_react["default"].createElement(_Heading["default"], {
|
|
48
49
|
level: 4,
|
|
49
50
|
text: title || translatedLabels.quickNav.contentTitle
|
|
50
|
-
}), /*#__PURE__*/_react["default"].createElement(ListColumn, null,
|
|
51
|
-
gutter: "0.5rem"
|
|
52
|
-
}, links.map(function (link) {
|
|
51
|
+
}), /*#__PURE__*/_react["default"].createElement(ListColumn, null, links.map(function (link) {
|
|
53
52
|
var _link$links;
|
|
54
53
|
|
|
55
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
54
|
+
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
56
55
|
key: link.label
|
|
57
56
|
}, /*#__PURE__*/_react["default"].createElement(_Inset["default"], {
|
|
58
57
|
space: "0.25rem"
|
|
59
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
58
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], null, /*#__PURE__*/_react["default"].createElement(Link, {
|
|
60
59
|
href: "#".concat((0, _slugify["default"])(link === null || link === void 0 ? void 0 : link.label, {
|
|
61
60
|
lower: true
|
|
62
61
|
}))
|
|
63
|
-
}, link === null || link === void 0 ? void 0 : link.label), /*#__PURE__*/_react["default"].createElement(
|
|
64
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
62
|
+
}, 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) {
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
65
64
|
key: sublink.label
|
|
66
65
|
}, /*#__PURE__*/_react["default"].createElement(_Inset["default"], {
|
|
67
66
|
horizontal: "0.5rem"
|
|
68
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
69
|
-
href: "#".concat((0, _slugify["default"])(
|
|
67
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], null, /*#__PURE__*/_react["default"].createElement(Link, {
|
|
68
|
+
href: "#".concat((0, _slugify["default"])(link === null || link === void 0 ? void 0 : link.label, {
|
|
69
|
+
lower: true
|
|
70
|
+
}), "-").concat((0, _slugify["default"])(sublink === null || sublink === void 0 ? void 0 : sublink.label, {
|
|
70
71
|
lower: true
|
|
71
72
|
}))
|
|
72
73
|
}, sublink === null || sublink === void 0 ? void 0 : sublink.label))));
|
|
73
74
|
})))));
|
|
74
|
-
})))))
|
|
75
|
+
})))));
|
|
75
76
|
};
|
|
76
77
|
|
|
77
78
|
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) {
|
|
@@ -86,11 +87,11 @@ var QuickNavContainer = _styledComponents["default"].div(_templateObject || (_te
|
|
|
86
87
|
return props.theme.dividerBorderColor;
|
|
87
88
|
});
|
|
88
89
|
|
|
89
|
-
var ListColumn = _styledComponents["default"].ul(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
90
|
+
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"])));
|
|
90
91
|
|
|
91
|
-
var
|
|
92
|
+
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"])));
|
|
92
93
|
|
|
93
|
-
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\n &:hover {\n color: ", ";\n }\n &:focus {\n outline-color: ", ";\n outline-style: ", ";\n outline-width: ", ";\n border-radius: ", ";\n }\n"])), function (props) {
|
|
94
|
+
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) {
|
|
94
95
|
return props.theme.fontSize;
|
|
95
96
|
}, function (props) {
|
|
96
97
|
return props.theme.fontFamily;
|
|
@@ -2,7 +2,7 @@ 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
8
|
|
|
@@ -11,24 +11,61 @@ export default {
|
|
|
11
11
|
component: DxcQuickNav,
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
+
const defaultLinks = [
|
|
15
|
+
{
|
|
16
|
+
label: "Overview",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: "Principles",
|
|
20
|
+
links: [{ label: "Color" }, { label: "Spacing" }, { label: "Typography" }],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "Components",
|
|
24
|
+
links: [
|
|
25
|
+
{
|
|
26
|
+
label: "Accordion",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: "Button",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
|
|
14
35
|
const links = [
|
|
15
36
|
{
|
|
16
37
|
label: "Overview",
|
|
17
|
-
id: "overview",
|
|
18
38
|
links: [
|
|
19
39
|
{
|
|
20
40
|
label: "Introduction",
|
|
21
|
-
id: "introduction",
|
|
22
41
|
},
|
|
23
42
|
],
|
|
24
43
|
},
|
|
25
44
|
{
|
|
26
|
-
label: "
|
|
27
|
-
id: "principles",
|
|
45
|
+
label: "Components",
|
|
28
46
|
links: [
|
|
29
|
-
{
|
|
30
|
-
|
|
31
|
-
|
|
47
|
+
{
|
|
48
|
+
label: "Introduction",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: "Accordion",
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: "Principles very very very very very very very very long",
|
|
57
|
+
links: [
|
|
58
|
+
{ label: "Color very very very very very very very very long" },
|
|
59
|
+
{ label: "Spacingveryveryveryveryveryveryveryverylong" },
|
|
60
|
+
{ label: "Typography" },
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "Componentsveryveryveryveryveryveryveryverylong",
|
|
65
|
+
links: [
|
|
66
|
+
{
|
|
67
|
+
label: "Accordion",
|
|
68
|
+
},
|
|
32
69
|
],
|
|
33
70
|
},
|
|
34
71
|
];
|
|
@@ -38,13 +75,25 @@ export const Chromatic = () => (
|
|
|
38
75
|
<ExampleContainer>
|
|
39
76
|
<Title title="Default" level={4} />
|
|
40
77
|
<QuickNavContainer>
|
|
41
|
-
<DxcQuickNav links={
|
|
78
|
+
<DxcQuickNav links={defaultLinks} />
|
|
79
|
+
</QuickNavContainer>
|
|
80
|
+
</ExampleContainer>
|
|
81
|
+
<ExampleContainer>
|
|
82
|
+
<Title title="Text overflow" level={4} />
|
|
83
|
+
<QuickNavContainer>
|
|
84
|
+
<DxcQuickNav links={links} />
|
|
42
85
|
</QuickNavContainer>
|
|
43
86
|
</ExampleContainer>
|
|
44
87
|
<ExampleContainer pseudoState="pseudo-hover">
|
|
45
88
|
<Title title="Link hovered" level={4} />
|
|
46
89
|
<QuickNavContainer>
|
|
47
|
-
<DxcQuickNav links={links}
|
|
90
|
+
<DxcQuickNav links={links} />
|
|
91
|
+
</QuickNavContainer>
|
|
92
|
+
</ExampleContainer>
|
|
93
|
+
<ExampleContainer pseudoState="pseudo-focus">
|
|
94
|
+
<Title title="Link focus" level={4} />
|
|
95
|
+
<QuickNavContainer>
|
|
96
|
+
<DxcQuickNav links={links} />
|
|
48
97
|
</QuickNavContainer>
|
|
49
98
|
</ExampleContainer>
|
|
50
99
|
<ExampleContainer>
|
|
@@ -53,7 +102,7 @@ export const Chromatic = () => (
|
|
|
53
102
|
<ContentContainer>
|
|
54
103
|
<Content id="overview">
|
|
55
104
|
<DxcHeading level={1} text="Overview" margin={{ bottom: "small" }} />
|
|
56
|
-
<
|
|
105
|
+
<DxcParagraph>
|
|
57
106
|
Halstack is the DXC Technology's open source design system for insurance products and digital experiences.
|
|
58
107
|
Our system provides all the tools and resources needed to create superior, beautiful but above all,
|
|
59
108
|
functional user experiences. Halstack is the DXC Technology's open source design system for insurance
|
|
@@ -70,10 +119,10 @@ export const Chromatic = () => (
|
|
|
70
119
|
create superior, beautiful but above all, functional user experiences.Halstack is the DXC Technology's
|
|
71
120
|
open source design system for insurance products and digital experiences. Our system provides all the
|
|
72
121
|
tools and resources needed to create superior, beautiful but above all, functional user experiences.
|
|
73
|
-
</
|
|
74
|
-
<Content id="introduction">
|
|
122
|
+
</DxcParagraph>
|
|
123
|
+
<Content id="overview-introduction">
|
|
75
124
|
<DxcHeading level={2} text="Introduction" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
76
|
-
<
|
|
125
|
+
<DxcParagraph>
|
|
77
126
|
Design principles Halstack design principles are the fundamental part of DXC Technology's approach to
|
|
78
127
|
provide guidance for development teams in order to deliver delightful and consistent user experiences to
|
|
79
128
|
our customers: Balance Consistency Visual hierarchy All our components, design tokens, accessibility
|
|
@@ -103,14 +152,59 @@ export const Chromatic = () => (
|
|
|
103
152
|
to use and contribute back to. We are charmed to receive external contributions to help us find bugs,
|
|
104
153
|
design new features, or help us improve the project documentation. If you're interested, definitely
|
|
105
154
|
check out our contribution guidelines.
|
|
106
|
-
</
|
|
155
|
+
</DxcParagraph>
|
|
107
156
|
</Content>
|
|
108
157
|
</Content>
|
|
109
|
-
<Content id="
|
|
158
|
+
<Content id="components">
|
|
159
|
+
<DxcHeading level={1} text="Components" margin={{ top: "small", bottom: "xsmall" }} />
|
|
160
|
+
<Content id="components-introduction">
|
|
161
|
+
<DxcHeading level={2} text="Introduction" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
162
|
+
<DxcParagraph>
|
|
163
|
+
Design principles Halstack design principles are the fundamental part of DXC Technology's approach to
|
|
164
|
+
provide guidance for development teams in order to deliver delightful and consistent user experiences to
|
|
165
|
+
our customers: Balance Consistency Visual hierarchy All our components, design tokens, accessibility
|
|
166
|
+
guidelines, responsive design techniques, and layout proposals have been carefully curated by DXC design
|
|
167
|
+
and engineering teams with the objective of creating a unique visual language and ecosystem for our
|
|
168
|
+
applications. This is the DXC way of creating User Experiences. Open Source Halstack is an open source
|
|
169
|
+
design system, this means that we work towards DXC Technology bussines needs, but it is open for anyone
|
|
170
|
+
to use and contribute back to. We are charmed to receive external contributions to help us find bugs,
|
|
171
|
+
design new features, or help us improve the project documentation. If you're interested, definitely
|
|
172
|
+
check out our contribution guidelines.Design principles Halstack design principles are the fundamental
|
|
173
|
+
part of DXC Technology's approach to provide guidance for development teams in order to deliver
|
|
174
|
+
delightful and consistent user experiences to our customers: Balance Consistency Visual hierarchy All
|
|
175
|
+
our components, design tokens, accessibility guidelines, responsive design techniques, and layout
|
|
176
|
+
proposals have been carefully curated by DXC design and engineering teams with the objective of creating
|
|
177
|
+
a unique visual language and ecosystem for our applications. This is the DXC way of creating User
|
|
178
|
+
Experiences. Open Source Halstack is an open source design system, this means that we work towards DXC
|
|
179
|
+
Technology bussines needs, but it is open for anyone to use and contribute back to. We are charmed to
|
|
180
|
+
receive external contributions to help us find bugs, design new features, or help us improve the project
|
|
181
|
+
documentation. If you're interested, definitely check out our contribution guidelines.Design principles
|
|
182
|
+
Halstack design principles are the fundamental part of DXC Technology's approach to provide guidance for
|
|
183
|
+
development teams in order to deliver delightful and consistent user experiences to our customers:
|
|
184
|
+
Balance Consistency Visual hierarchy All our components, design tokens, accessibility guidelines,
|
|
185
|
+
responsive design techniques, and layout proposals have been carefully curated by DXC design and
|
|
186
|
+
engineering teams with the objective of creating a unique visual language and ecosystem for our
|
|
187
|
+
applications. This is the DXC way of creating User Experiences. Open Source Halstack is an open source
|
|
188
|
+
design system, this means that we work towards DXC Technology bussines needs, but it is open for anyone
|
|
189
|
+
to use and contribute back to. We are charmed to receive external contributions to help us find bugs,
|
|
190
|
+
design new features, or help us improve the project documentation. If you're interested, definitely
|
|
191
|
+
check out our contribution guidelines.
|
|
192
|
+
</DxcParagraph>
|
|
193
|
+
</Content>
|
|
194
|
+
<Content id="components-accordion">
|
|
195
|
+
<DxcHeading level={2} text="Accordion" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
196
|
+
<DxcParagraph>
|
|
197
|
+
Accordions are used to group similar content and hide or show it depending on user needs or preferences.
|
|
198
|
+
Accordions give users more granular control over the interface and help digest content in stages, rather
|
|
199
|
+
than all at once.
|
|
200
|
+
</DxcParagraph>
|
|
201
|
+
</Content>
|
|
202
|
+
</Content>
|
|
203
|
+
<Content id="principles-very-very-very-very-very-very-very-very-long">
|
|
110
204
|
<DxcHeading level={1} text="Principles" margin={{ top: "small", bottom: "xsmall" }} />
|
|
111
|
-
<Content id="color">
|
|
205
|
+
<Content id="principles-very-very-very-very-very-very-very-very-long-color-very-very-very-very-very-very-very-very-long">
|
|
112
206
|
<DxcHeading level={2} text="Color" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
113
|
-
<
|
|
207
|
+
<DxcParagraph>
|
|
114
208
|
The color palette is an essential asset as a communication resource of our design system. Halstack color
|
|
115
209
|
palette brings a unified consistency and helps in guiding the user's perception order. Our color palette
|
|
116
210
|
is based in the HSL model . All our color families are calculated using the lightness value of the
|
|
@@ -143,11 +237,11 @@ export const Chromatic = () => (
|
|
|
143
237
|
tokens to manage color. Appart from a multi-purpose greyscale family, purple and blue are the core color
|
|
144
238
|
families used in our set of components. Additional families as red, green and yellow help as feedback
|
|
145
239
|
role-based color palettes and must not be used outside this context.
|
|
146
|
-
</
|
|
240
|
+
</DxcParagraph>
|
|
147
241
|
</Content>
|
|
148
|
-
<Content id="
|
|
242
|
+
<Content id="principles-very-very-very-very-very-very-very-very-long-spacingveryveryveryveryveryveryveryverylong">
|
|
149
243
|
<DxcHeading level={2} text="Spacing" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
150
|
-
<
|
|
244
|
+
<DxcParagraph>
|
|
151
245
|
In the search of consistent alignment between the elements we provide a spacing scale based on a root
|
|
152
246
|
values of 8px and 4px. The numbers 4 and 8 are easily multiplied, they provide flexible and consistent,
|
|
153
247
|
yet distinct enough, steps between them.In the search of consistent alignment between the elements we
|
|
@@ -165,11 +259,11 @@ export const Chromatic = () => (
|
|
|
165
259
|
consistent, yet distinct enough, steps between them.In the search of consistent alignment between the
|
|
166
260
|
elements we provide a spacing scale based on a root values of 8px and 4px. The numbers 4 and 8 are
|
|
167
261
|
easily multiplied, they provide flexible and consistent, yet distinct enough, steps between them.
|
|
168
|
-
</
|
|
262
|
+
</DxcParagraph>
|
|
169
263
|
</Content>
|
|
170
|
-
<Content id="typography">
|
|
264
|
+
<Content id="principles-very-very-very-very-very-very-very-very-long-typography">
|
|
171
265
|
<DxcHeading level={2} text="Typography" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
172
|
-
<
|
|
266
|
+
<DxcParagraph>
|
|
173
267
|
Our selected typography helps in structuring our user's experience based on the visual impact that it
|
|
174
268
|
has on the user interface content. It defines what is the first noticeable piece of information or data
|
|
175
269
|
based on the font shape, size, color, or type and it highlights some pieces of text over the rest. Some
|
|
@@ -201,12 +295,23 @@ export const Chromatic = () => (
|
|
|
201
295
|
Halstack Design System include headers, body, taglines, captions, and labels. Make sure you include all
|
|
202
296
|
the different typographic variants in order to enhance the application's content structure, including
|
|
203
297
|
the Heading component which defines different levels of page and section titles.
|
|
204
|
-
</
|
|
298
|
+
</DxcParagraph>
|
|
299
|
+
</Content>
|
|
300
|
+
</Content>
|
|
301
|
+
<Content id="componentsveryveryveryveryveryveryveryverylong">
|
|
302
|
+
<DxcHeading level={1} text="Components" margin={{ top: "small", bottom: "xsmall" }} />
|
|
303
|
+
<Content id="componentsveryveryveryveryveryveryveryverylong-accordion">
|
|
304
|
+
<DxcHeading level={2} text="Accordion" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
305
|
+
<DxcParagraph>
|
|
306
|
+
Accordions are used to group similar content and hide or show it depending on user needs or preferences.
|
|
307
|
+
Accordions give users more granular control over the interface and help digest content in stages, rather
|
|
308
|
+
than all at once.
|
|
309
|
+
</DxcParagraph>
|
|
205
310
|
</Content>
|
|
206
311
|
</Content>
|
|
207
312
|
</ContentContainer>
|
|
208
313
|
<QuickNavContainer>
|
|
209
|
-
<DxcQuickNav title="Sections" links={links}
|
|
314
|
+
<DxcQuickNav title="Sections" links={links} />
|
|
210
315
|
</QuickNavContainer>
|
|
211
316
|
</Container>
|
|
212
317
|
</ExampleContainer>
|
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;
|
package/radio-group/Radio.js
CHANGED
|
@@ -28,10 +28,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
28
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
29
|
|
|
30
30
|
var DxcRadio = function DxcRadio(_ref) {
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
var option = _ref.option,
|
|
34
|
-
currentValue = _ref.currentValue,
|
|
31
|
+
var label = _ref.label,
|
|
32
|
+
checked = _ref.checked,
|
|
35
33
|
onClick = _ref.onClick,
|
|
36
34
|
error = _ref.error,
|
|
37
35
|
disabled = _ref.disabled,
|
|
@@ -50,7 +48,7 @@ var DxcRadio = function DxcRadio(_ref) {
|
|
|
50
48
|
var _ref$current;
|
|
51
49
|
|
|
52
50
|
onClick();
|
|
53
|
-
|
|
51
|
+
document.activeElement !== (ref === null || ref === void 0 ? void 0 : ref.current) && (ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.focus());
|
|
54
52
|
};
|
|
55
53
|
|
|
56
54
|
var _useState3 = (0, _react.useState)(true),
|
|
@@ -75,52 +73,57 @@ var DxcRadio = function DxcRadio(_ref) {
|
|
|
75
73
|
error: error,
|
|
76
74
|
disabled: disabled,
|
|
77
75
|
readonly: readonly,
|
|
78
|
-
|
|
79
|
-
// Prevents div's onClick from stealing the radio input's focus
|
|
80
|
-
event.preventDefault();
|
|
81
|
-
},
|
|
82
|
-
onClick: handleOnClick
|
|
76
|
+
onClick: disabled ? undefined : handleOnClick
|
|
83
77
|
}, /*#__PURE__*/_react["default"].createElement(RadioInputContainer, null, /*#__PURE__*/_react["default"].createElement(RadioInput, {
|
|
84
78
|
error: error,
|
|
85
79
|
disabled: disabled,
|
|
86
80
|
readonly: readonly,
|
|
87
81
|
role: "radio",
|
|
88
|
-
"aria-checked":
|
|
89
|
-
"aria-disabled":
|
|
82
|
+
"aria-checked": checked,
|
|
83
|
+
"aria-disabled": disabled,
|
|
90
84
|
"aria-labelledby": radioLabelId,
|
|
91
85
|
tabIndex: disabled ? -1 : focused ? tabIndex : -1,
|
|
92
86
|
ref: ref
|
|
93
|
-
},
|
|
87
|
+
}, checked && /*#__PURE__*/_react["default"].createElement(Dot, {
|
|
94
88
|
disabled: disabled,
|
|
95
89
|
readonly: readonly,
|
|
96
90
|
error: error
|
|
97
91
|
}))), /*#__PURE__*/_react["default"].createElement(Label, {
|
|
98
92
|
id: radioLabelId,
|
|
99
93
|
disabled: disabled
|
|
100
|
-
},
|
|
94
|
+
}, label))));
|
|
101
95
|
};
|
|
102
96
|
|
|
103
|
-
var
|
|
97
|
+
var getRadioInputStateColor = function getRadioInputStateColor(props, state) {
|
|
98
|
+
switch (state) {
|
|
99
|
+
case "enabled":
|
|
100
|
+
return props.disabled ? props.theme.disabledRadioInputColor : props.error ? props.theme.errorRadioInputColor : props.readonly ? props.theme.readonlyRadioInputColor : props.theme.radioInputColor;
|
|
104
101
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}, function (props) {
|
|
108
|
-
return !props.disabled ? "\n &:hover {\n & > div > div { \n border-color: ".concat(props.error ? props.theme.hoverErrorRadioInputColor : props.readonly ? props.theme.hoverReadonlyRadioInputColor : props.theme.hoverRadioInputColor, ";\n & > span {\n background-color: ").concat(props.error ? props.theme.hoverErrorRadioInputColor : props.readonly ? props.theme.hoverReadonlyRadioInputColor : props.theme.hoverRadioInputColor, ";\n }\n };\n }\n &:active {\n & > div > div {\n border-color: ").concat(props.error ? props.theme.activeErrorRadioInputColor : props.readonly ? props.theme.activeReadonlyRadioInputColor : props.theme.activeRadioInputColor, ";\n & > span {\n background-color: ").concat(props.error ? props.theme.activeErrorRadioInputColor : props.readonly ? props.theme.activeReadonlyRadioInputColor : props.theme.activeRadioInputColor, ";\n }\n }\n }\n ") : "pointer-events: none;";
|
|
109
|
-
});
|
|
102
|
+
case "hover":
|
|
103
|
+
return props.error ? props.theme.hoverErrorRadioInputColor : props.readonly ? props.theme.hoverReadonlyRadioInputColor : props.theme.hoverRadioInputColor;
|
|
110
104
|
|
|
111
|
-
|
|
105
|
+
case "active":
|
|
106
|
+
return props.error ? props.theme.activeErrorRadioInputColor : props.readonly ? props.theme.activeReadonlyRadioInputColor : props.theme.activeRadioInputColor;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
112
109
|
|
|
113
|
-
var
|
|
114
|
-
|
|
110
|
+
var RadioMainContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n"])));
|
|
111
|
+
|
|
112
|
+
var RadioInputContainer = _styledComponents["default"].span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 24px;\n width: 24px;\n"])));
|
|
113
|
+
|
|
114
|
+
var RadioInput = _styledComponents["default"].span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n border: 2px solid ", ";\n border-radius: 50%;\n\n &:focus {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n ", "\n"])), function (props) {
|
|
115
|
+
return getRadioInputStateColor(props, "enabled");
|
|
116
|
+
}, function (props) {
|
|
117
|
+
return props.theme.focusBorderColor;
|
|
115
118
|
}, function (props) {
|
|
116
|
-
return
|
|
119
|
+
return props.disabled && "pointer-events: none;";
|
|
117
120
|
});
|
|
118
121
|
|
|
119
|
-
var Dot = _styledComponents["default"].span(
|
|
120
|
-
|
|
122
|
+
var Dot = _styledComponents["default"].span(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n height: 10px;\n width: 10px;\n border-radius: 50%;\n background-color: ", ";\n"])), function (props) {
|
|
123
|
+
return getRadioInputStateColor(props, "enabled");
|
|
121
124
|
});
|
|
122
125
|
|
|
123
|
-
var Label = _styledComponents["default"].span(
|
|
126
|
+
var Label = _styledComponents["default"].span(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n line-height: ", ";\n ", "\n"])), function (props) {
|
|
124
127
|
return props.theme.radioInputLabelMargin;
|
|
125
128
|
}, function (props) {
|
|
126
129
|
return props.theme.fontFamily;
|
|
@@ -133,7 +136,19 @@ var Label = _styledComponents["default"].span(_templateObject6 || (_templateObje
|
|
|
133
136
|
}, function (props) {
|
|
134
137
|
return props.theme.radioInputLabelLineHeight;
|
|
135
138
|
}, function (props) {
|
|
136
|
-
return props.disabled ? "color: ".concat(props.theme.disabledRadioInputLabelFontColor, ";
|
|
139
|
+
return props.disabled ? "color: ".concat(props.theme.disabledRadioInputLabelFontColor, ";") : "color: ".concat(props.theme.radioInputLabelFontColor);
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
var RadioContainer = _styledComponents["default"].span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n align-items: center;\n cursor: ", ";\n\n &:hover {\n ", " {\n border-color: ", ";\n }\n ", " {\n background-color: ", ";\n }\n }\n &:active {\n ", " {\n border-color: ", ";\n }\n ", " {\n background-color: ", ";\n }\n }\n"])), function (props) {
|
|
143
|
+
return props.disabled ? "not-allowed" : props.readonly ? "default" : "pointer";
|
|
144
|
+
}, RadioInput, function (props) {
|
|
145
|
+
return !props.disabled && getRadioInputStateColor(props, "hover");
|
|
146
|
+
}, Dot, function (props) {
|
|
147
|
+
return !props.disabled && getRadioInputStateColor(props, "hover");
|
|
148
|
+
}, RadioInput, function (props) {
|
|
149
|
+
return !props.disabled && getRadioInputStateColor(props, "active");
|
|
150
|
+
}, Dot, function (props) {
|
|
151
|
+
return !props.disabled && getRadioInputStateColor(props, "active");
|
|
137
152
|
});
|
|
138
153
|
|
|
139
154
|
var _default = /*#__PURE__*/_react["default"].memo(DxcRadio);
|
|
@@ -41,6 +41,8 @@ var getInitialFocusIndex = function getInitialFocusIndex(innerOptions, value) {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
var DxcRadioGroup = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
44
|
+
var _ref2;
|
|
45
|
+
|
|
44
46
|
var label = _ref.label,
|
|
45
47
|
name = _ref.name,
|
|
46
48
|
helperText = _ref.helperText,
|
|
@@ -102,11 +104,11 @@ var DxcRadioGroup = /*#__PURE__*/_react["default"].forwardRef(function (_ref, re
|
|
|
102
104
|
value !== null && value !== void 0 ? value : setInnerValue(newValue);
|
|
103
105
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
104
106
|
}
|
|
105
|
-
}, [value, innerValue,
|
|
107
|
+
}, [value, innerValue, onChange]);
|
|
106
108
|
|
|
107
|
-
var handleOnBlur = function handleOnBlur(
|
|
109
|
+
var handleOnBlur = function handleOnBlur(event) {
|
|
108
110
|
// If the radio group loses the focus to an element not contained inside it...
|
|
109
|
-
if (!
|
|
111
|
+
if (!event.currentTarget.contains(event.relatedTarget)) {
|
|
110
112
|
setFirstTimeFocus(true);
|
|
111
113
|
var currentValue = value !== null && value !== void 0 ? value : innerValue;
|
|
112
114
|
!optional && !Boolean(currentValue) ? onBlur === null || onBlur === void 0 ? void 0 : onBlur({
|
|
@@ -149,27 +151,24 @@ var DxcRadioGroup = /*#__PURE__*/_react["default"].forwardRef(function (_ref, re
|
|
|
149
151
|
};
|
|
150
152
|
|
|
151
153
|
var handleOnKeyDown = function handleOnKeyDown(event) {
|
|
152
|
-
switch (event.
|
|
153
|
-
case
|
|
154
|
-
|
|
155
|
-
case
|
|
156
|
-
|
|
154
|
+
switch (event.key) {
|
|
155
|
+
case "Left":
|
|
156
|
+
case "ArrowLeft":
|
|
157
|
+
case "Up":
|
|
158
|
+
case "ArrowUp":
|
|
157
159
|
event.preventDefault();
|
|
158
160
|
setPreviousRadioChecked();
|
|
159
161
|
break;
|
|
160
162
|
|
|
161
|
-
case
|
|
162
|
-
|
|
163
|
-
case
|
|
164
|
-
|
|
163
|
+
case "Right":
|
|
164
|
+
case "ArrowRight":
|
|
165
|
+
case "Down":
|
|
166
|
+
case "ArrowDown":
|
|
165
167
|
event.preventDefault();
|
|
166
168
|
setNextRadioChecked();
|
|
167
169
|
break;
|
|
168
170
|
|
|
169
|
-
case
|
|
170
|
-
|
|
171
|
-
case 32:
|
|
172
|
-
// space
|
|
171
|
+
case " ":
|
|
173
172
|
event.preventDefault();
|
|
174
173
|
handleOnChange(innerOptions[currentFocusIndex].value);
|
|
175
174
|
break;
|
|
@@ -184,7 +183,7 @@ var DxcRadioGroup = /*#__PURE__*/_react["default"].forwardRef(function (_ref, re
|
|
|
184
183
|
id: radioGroupLabelId,
|
|
185
184
|
helperText: helperText,
|
|
186
185
|
disabled: disabled
|
|
187
|
-
}, label,
|
|
186
|
+
}, label, optional && /*#__PURE__*/_react["default"].createElement(OptionalLabel, null, " ".concat(translatedLabels.formFields.optionalLabel))), helperText && /*#__PURE__*/_react["default"].createElement(HelperText, {
|
|
188
187
|
disabled: disabled
|
|
189
188
|
}, helperText), /*#__PURE__*/_react["default"].createElement(RadioGroup, {
|
|
190
189
|
onBlur: handleOnBlur,
|
|
@@ -194,20 +193,22 @@ var DxcRadioGroup = /*#__PURE__*/_react["default"].forwardRef(function (_ref, re
|
|
|
194
193
|
role: "radiogroup",
|
|
195
194
|
"aria-disabled": disabled,
|
|
196
195
|
"aria-labelledby": radioGroupLabelId,
|
|
197
|
-
"aria-invalid": error ?
|
|
196
|
+
"aria-invalid": error ? true : false,
|
|
198
197
|
"aria-errormessage": error ? errorId : undefined,
|
|
199
198
|
"aria-required": !disabled && !readonly && !optional,
|
|
200
199
|
"aria-readonly": readonly,
|
|
201
200
|
"aria-orientation": stacking === "column" ? "vertical" : "horizontal"
|
|
202
201
|
}, /*#__PURE__*/_react["default"].createElement(ValueInput, {
|
|
203
202
|
name: name,
|
|
204
|
-
|
|
203
|
+
disabled: disabled,
|
|
204
|
+
value: (_ref2 = value !== null && value !== void 0 ? value : innerValue) !== null && _ref2 !== void 0 ? _ref2 : "",
|
|
205
205
|
readOnly: true,
|
|
206
206
|
"aria-hidden": "true"
|
|
207
207
|
}), innerOptions.map(function (option, index) {
|
|
208
208
|
return /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
key: "radio-".concat(index),
|
|
210
|
+
label: option.label,
|
|
211
|
+
checked: (value !== null && value !== void 0 ? value : innerValue) === option.value,
|
|
211
212
|
onClick: function onClick() {
|
|
212
213
|
handleOnChange(option.value);
|
|
213
214
|
setCurrentFocusIndex(index);
|
|
@@ -262,7 +263,7 @@ var HelperText = _styledComponents["default"].span(_templateObject4 || (_templat
|
|
|
262
263
|
return props.theme.groupLabelMargin;
|
|
263
264
|
});
|
|
264
265
|
|
|
265
|
-
var RadioGroup = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n flex-direction: ", ";\n
|
|
266
|
+
var RadioGroup = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n flex-direction: ", ";\n row-gap: ", ";\n column-gap: ", ";\n"])), function (props) {
|
|
266
267
|
return props.stacking;
|
|
267
268
|
}, function (props) {
|
|
268
269
|
return props.theme.groupVerticalGutter;
|