@dxc-technology/halstack-react 0.0.0-9b45027 → 0.0.0-9bd9511
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 +2 -2
- package/BackgroundColorContext.js +1 -11
- package/HalstackContext.d.ts +13 -0
- package/HalstackContext.js +318 -0
- package/accordion/Accordion.d.ts +1 -1
- package/accordion/Accordion.js +124 -179
- package/accordion/Accordion.stories.tsx +115 -27
- package/accordion/Accordion.test.js +56 -0
- package/accordion/types.d.ts +12 -11
- package/accordion-group/AccordionGroup.d.ts +1 -1
- package/accordion-group/AccordionGroup.js +28 -77
- package/accordion-group/AccordionGroup.stories.tsx +28 -2
- package/accordion-group/AccordionGroup.test.js +108 -0
- package/accordion-group/types.d.ts +19 -12
- package/alert/Alert.js +18 -46
- package/alert/Alert.stories.tsx +28 -0
- package/alert/Alert.test.js +75 -0
- package/alert/types.d.ts +3 -3
- package/badge/Badge.d.ts +4 -0
- package/badge/Badge.js +6 -16
- package/badge/types.d.ts +5 -0
- package/bleed/Bleed.d.ts +2 -2
- package/bleed/Bleed.js +14 -55
- package/bleed/Bleed.stories.tsx +94 -95
- package/bleed/types.d.ts +26 -2
- package/box/Box.js +34 -63
- package/box/Box.stories.tsx +15 -0
- package/box/Box.test.js +13 -0
- package/box/types.d.ts +5 -4
- package/bulleted-list/BulletedList.d.ts +7 -0
- package/bulleted-list/BulletedList.js +98 -0
- package/bulleted-list/BulletedList.stories.tsx +200 -0
- package/bulleted-list/types.d.ts +11 -0
- package/bulleted-list/types.js +5 -0
- package/button/Button.js +61 -100
- package/button/Button.stories.tsx +159 -8
- package/button/Button.test.js +26 -0
- package/button/types.d.ts +8 -8
- package/card/Card.js +44 -70
- package/card/Card.test.js +39 -0
- package/card/types.d.ts +4 -3
- package/checkbox/Checkbox.d.ts +2 -2
- package/checkbox/Checkbox.js +115 -162
- package/checkbox/Checkbox.stories.tsx +198 -130
- package/checkbox/Checkbox.test.js +128 -0
- package/checkbox/types.d.ts +14 -6
- package/chip/Chip.d.ts +1 -1
- package/chip/Chip.js +29 -91
- package/chip/Chip.stories.tsx +98 -13
- package/chip/Chip.test.js +42 -0
- package/chip/types.d.ts +8 -16
- package/common/utils.js +1 -6
- package/common/variables.d.ts +1431 -0
- package/common/variables.js +480 -554
- package/date-input/Calendar.d.ts +4 -0
- package/date-input/Calendar.js +215 -0
- package/date-input/DateInput.js +164 -300
- package/date-input/DateInput.stories.tsx +199 -33
- package/date-input/DateInput.test.js +648 -0
- package/date-input/DatePicker.d.ts +4 -0
- package/date-input/DatePicker.js +116 -0
- package/date-input/Icons.d.ts +6 -0
- package/date-input/Icons.js +63 -0
- package/date-input/YearPicker.d.ts +4 -0
- package/date-input/YearPicker.js +101 -0
- package/date-input/types.d.ts +71 -13
- package/dialog/Dialog.js +52 -84
- package/dialog/Dialog.stories.tsx +99 -22
- package/dialog/Dialog.test.js +56 -0
- package/dialog/types.d.ts +4 -3
- package/dropdown/Dropdown.d.ts +1 -1
- package/dropdown/Dropdown.js +240 -323
- package/dropdown/Dropdown.stories.tsx +255 -64
- package/dropdown/Dropdown.test.js +479 -0
- package/dropdown/DropdownMenu.d.ts +4 -0
- package/dropdown/DropdownMenu.js +60 -0
- package/dropdown/DropdownMenuItem.d.ts +4 -0
- package/dropdown/DropdownMenuItem.js +70 -0
- package/dropdown/types.d.ts +30 -19
- package/file-input/FileInput.d.ts +2 -2
- package/file-input/FileInput.js +224 -351
- package/file-input/FileInput.stories.tsx +122 -11
- package/file-input/FileInput.test.js +445 -0
- package/file-input/FileItem.d.ts +4 -14
- package/file-input/FileItem.js +48 -97
- package/file-input/types.d.ts +24 -7
- package/flex/Flex.d.ts +4 -0
- package/flex/Flex.js +57 -0
- package/flex/Flex.stories.tsx +103 -0
- package/flex/types.d.ts +32 -0
- package/flex/types.js +5 -0
- package/footer/Footer.js +36 -143
- package/footer/Footer.stories.tsx +99 -1
- package/footer/Footer.test.js +92 -0
- package/footer/Icons.js +1 -5
- package/footer/types.d.ts +7 -6
- package/header/Header.js +112 -177
- package/header/Header.stories.tsx +189 -36
- package/header/Header.test.js +66 -0
- package/header/Icons.js +2 -6
- package/header/types.d.ts +4 -3
- package/heading/Heading.js +8 -29
- package/heading/Heading.test.js +169 -0
- package/heading/types.d.ts +3 -3
- package/inset/Inset.js +14 -55
- package/inset/Inset.stories.tsx +36 -36
- package/inset/types.d.ts +26 -2
- package/layout/ApplicationLayout.d.ts +16 -6
- package/layout/ApplicationLayout.js +71 -164
- package/layout/ApplicationLayout.stories.tsx +84 -93
- package/layout/Icons.d.ts +5 -0
- package/layout/Icons.js +11 -10
- package/layout/SidenavContext.d.ts +5 -0
- package/layout/SidenavContext.js +15 -0
- package/layout/types.d.ts +18 -33
- package/link/Link.d.ts +3 -2
- package/link/Link.js +61 -106
- package/link/Link.stories.tsx +159 -52
- package/link/Link.test.js +65 -0
- package/link/types.d.ts +9 -29
- package/main.d.ts +11 -15
- package/main.js +48 -121
- package/nav-tabs/NavTabs.d.ts +8 -0
- package/nav-tabs/NavTabs.js +95 -0
- package/nav-tabs/NavTabs.stories.tsx +260 -0
- package/nav-tabs/NavTabs.test.js +75 -0
- package/nav-tabs/Tab.d.ts +4 -0
- package/nav-tabs/Tab.js +120 -0
- package/nav-tabs/types.d.ts +53 -0
- package/nav-tabs/types.js +5 -0
- package/number-input/NumberInput.js +21 -38
- package/number-input/NumberInput.stories.tsx +5 -5
- package/number-input/NumberInput.test.js +406 -0
- package/number-input/NumberInputContext.js +0 -5
- package/number-input/numberInputContextTypes.d.ts +1 -1
- package/number-input/types.d.ts +21 -14
- package/package.json +22 -25
- package/paginator/Icons.d.ts +5 -0
- package/paginator/Icons.js +16 -38
- package/paginator/Paginator.js +31 -82
- package/paginator/Paginator.stories.tsx +24 -0
- package/paginator/Paginator.test.js +266 -0
- package/paginator/types.d.ts +1 -1
- package/paragraph/Paragraph.d.ts +6 -0
- package/paragraph/Paragraph.js +28 -0
- package/paragraph/Paragraph.stories.tsx +44 -0
- package/password-input/PasswordInput.js +28 -54
- package/password-input/PasswordInput.test.js +138 -0
- package/password-input/types.d.ts +18 -15
- package/progress-bar/ProgressBar.d.ts +2 -2
- package/progress-bar/ProgressBar.js +65 -84
- package/progress-bar/ProgressBar.stories.jsx +47 -12
- package/progress-bar/ProgressBar.test.js +93 -0
- package/progress-bar/types.d.ts +3 -4
- package/quick-nav/QuickNav.d.ts +4 -0
- package/quick-nav/QuickNav.js +95 -0
- package/quick-nav/QuickNav.stories.tsx +356 -0
- package/quick-nav/types.d.ts +21 -0
- package/quick-nav/types.js +5 -0
- package/radio-group/Radio.d.ts +1 -1
- package/radio-group/Radio.js +61 -66
- package/radio-group/RadioGroup.js +99 -129
- package/radio-group/RadioGroup.stories.tsx +171 -36
- package/radio-group/RadioGroup.test.js +620 -0
- package/radio-group/types.d.ts +85 -7
- package/resultsetTable/Icons.d.ts +7 -0
- package/resultsetTable/Icons.js +48 -0
- package/resultsetTable/ResultsetTable.js +66 -157
- package/resultsetTable/ResultsetTable.stories.tsx +50 -25
- package/resultsetTable/ResultsetTable.test.js +292 -0
- package/resultsetTable/types.d.ts +5 -5
- package/select/Icons.d.ts +10 -0
- package/select/Icons.js +90 -0
- package/select/Listbox.d.ts +4 -0
- package/select/Listbox.js +144 -0
- package/select/Option.d.ts +4 -0
- package/select/Option.js +81 -0
- package/select/Select.js +201 -485
- package/select/Select.stories.tsx +600 -201
- package/select/Select.test.js +1845 -0
- package/select/types.d.ts +62 -22
- package/sidenav/Sidenav.d.ts +6 -5
- package/sidenav/Sidenav.js +164 -74
- package/sidenav/Sidenav.stories.tsx +249 -149
- package/sidenav/Sidenav.test.js +37 -0
- package/sidenav/types.d.ts +50 -27
- package/slider/Slider.d.ts +2 -2
- package/slider/Slider.js +143 -164
- package/slider/Slider.stories.tsx +72 -9
- package/slider/Slider.test.js +222 -0
- package/slider/types.d.ts +11 -3
- package/spinner/Spinner.js +12 -41
- package/spinner/Spinner.stories.jsx +27 -1
- package/spinner/Spinner.test.js +55 -0
- package/spinner/types.d.ts +3 -3
- package/switch/Switch.d.ts +2 -2
- package/switch/Switch.js +148 -107
- package/switch/Switch.stories.tsx +53 -42
- package/switch/Switch.test.js +180 -0
- package/switch/types.d.ts +13 -5
- package/table/Table.js +5 -23
- package/table/Table.stories.jsx +80 -1
- package/table/Table.test.js +21 -0
- package/table/types.d.ts +3 -3
- package/tabs/Tab.d.ts +4 -0
- package/tabs/Tab.js +115 -0
- package/tabs/Tabs.d.ts +1 -1
- package/tabs/Tabs.js +318 -139
- package/tabs/Tabs.stories.tsx +119 -13
- package/tabs/Tabs.test.js +295 -0
- package/tabs/types.d.ts +21 -7
- package/tag/Tag.d.ts +1 -1
- package/tag/Tag.js +36 -75
- package/tag/Tag.stories.tsx +37 -27
- package/tag/Tag.test.js +49 -0
- package/tag/types.d.ts +25 -16
- package/text-input/Icons.d.ts +8 -0
- package/text-input/Icons.js +57 -0
- package/text-input/Suggestion.d.ts +4 -0
- package/text-input/Suggestion.js +68 -0
- package/text-input/Suggestions.d.ts +4 -0
- package/text-input/Suggestions.js +109 -0
- package/text-input/TextInput.js +232 -438
- package/text-input/TextInput.stories.tsx +310 -197
- package/text-input/TextInput.test.js +1404 -0
- package/text-input/types.d.ts +55 -17
- package/textarea/Textarea.js +53 -96
- package/textarea/Textarea.stories.jsx +93 -13
- package/textarea/Textarea.test.js +360 -0
- package/textarea/types.d.ts +22 -15
- package/toggle-group/ToggleGroup.d.ts +1 -1
- package/toggle-group/ToggleGroup.js +23 -57
- package/toggle-group/ToggleGroup.stories.tsx +46 -4
- package/toggle-group/ToggleGroup.test.js +124 -0
- package/toggle-group/types.d.ts +19 -11
- package/translatedLabelsType.d.ts +82 -0
- package/translatedLabelsType.js +5 -0
- package/typography/Typography.d.ts +4 -0
- package/typography/Typography.js +119 -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 +1 -1
- package/useTheme.js +3 -9
- package/useTranslatedLabels.d.ts +3 -0
- package/useTranslatedLabels.js +15 -0
- package/wizard/Wizard.d.ts +1 -1
- package/wizard/Wizard.js +68 -98
- package/wizard/Wizard.stories.tsx +48 -19
- package/wizard/Wizard.test.js +114 -0
- package/wizard/types.d.ts +12 -7
- package/ThemeContext.d.ts +0 -15
- package/ThemeContext.js +0 -243
- package/V3Select/V3Select.js +0 -455
- package/V3Select/index.d.ts +0 -27
- package/V3Textarea/V3Textarea.js +0 -260
- package/V3Textarea/index.d.ts +0 -27
- package/common/RequiredComponent.js +0 -32
- package/date/Date.js +0 -373
- package/date/index.d.ts +0 -27
- package/input-text/Icons.js +0 -22
- package/input-text/InputText.js +0 -611
- package/input-text/index.d.ts +0 -36
- package/list/List.d.ts +0 -8
- package/list/List.js +0 -47
- package/list/List.stories.tsx +0 -95
- package/radio/Radio.d.ts +0 -4
- package/radio/Radio.js +0 -174
- package/radio/Radio.stories.tsx +0 -192
- package/radio/types.d.ts +0 -54
- package/row/Row.d.ts +0 -11
- package/row/Row.js +0 -127
- package/row/Row.stories.tsx +0 -239
- package/stack/Stack.d.ts +0 -10
- package/stack/Stack.js +0 -97
- package/stack/Stack.stories.tsx +0 -166
- package/text/Text.d.ts +0 -7
- package/text/Text.js +0 -30
- package/text/Text.stories.tsx +0 -19
- package/toggle/Toggle.js +0 -186
- package/toggle/index.d.ts +0 -21
- package/upload/Upload.js +0 -201
- package/upload/buttons-upload/ButtonsUpload.js +0 -111
- package/upload/buttons-upload/Icons.js +0 -40
- package/upload/dragAndDropArea/DragAndDropArea.js +0 -225
- package/upload/dragAndDropArea/Icons.js +0 -39
- package/upload/file-upload/FileToUpload.js +0 -115
- package/upload/file-upload/Icons.js +0 -66
- package/upload/files-upload/FilesToUpload.js +0 -109
- package/upload/index.d.ts +0 -15
- package/upload/transaction/Icons.js +0 -160
- package/upload/transaction/Transaction.js +0 -104
- package/upload/transactions/Transactions.js +0 -94
- /package/{radio → badge}/types.js +0 -0
package/select/types.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
+
type Margin = {
|
|
4
4
|
top?: Space;
|
|
5
5
|
bottom?: Space;
|
|
6
6
|
left?: Space;
|
|
7
7
|
right?: Space;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
type SVG = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
10
|
+
type OptionGroup = {
|
|
11
11
|
/**
|
|
12
12
|
* Label of the group to be shown in the select's listbox.
|
|
13
13
|
*/
|
|
@@ -17,7 +17,7 @@ declare type OptionGroup = {
|
|
|
17
17
|
*/
|
|
18
18
|
options: Option[];
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
type Option = {
|
|
21
21
|
/**
|
|
22
22
|
* Element used as the icon that will be placed before the option label.
|
|
23
23
|
* It can be a url of an image or an inline SVG. If the url option
|
|
@@ -36,7 +36,7 @@ declare type Option = {
|
|
|
36
36
|
*/
|
|
37
37
|
value: string;
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
type CommonProps = {
|
|
40
40
|
/**
|
|
41
41
|
* Text to be placed above the select.
|
|
42
42
|
*/
|
|
@@ -53,7 +53,7 @@ declare type CommonProps = {
|
|
|
53
53
|
/**
|
|
54
54
|
* An array of objects representing the selectable options.
|
|
55
55
|
*/
|
|
56
|
-
options
|
|
56
|
+
options: Option[] | OptionGroup[];
|
|
57
57
|
/**
|
|
58
58
|
* Helper text to be placed above the select.
|
|
59
59
|
*/
|
|
@@ -79,9 +79,12 @@ declare type CommonProps = {
|
|
|
79
79
|
*/
|
|
80
80
|
searchable?: boolean;
|
|
81
81
|
/**
|
|
82
|
-
* If it is defined
|
|
83
|
-
* the error below the select component.
|
|
84
|
-
*
|
|
82
|
+
* If it is a defined value and also a truthy string, the component will
|
|
83
|
+
* change its appearance, showing the error below the select component.
|
|
84
|
+
* If the defined value is an empty string, it will reserve a space below
|
|
85
|
+
* the component for a future error, but it would not change its look. In
|
|
86
|
+
* case of being undefined or null, both the appearance and the space for
|
|
87
|
+
* the error message would not be modified.
|
|
85
88
|
*/
|
|
86
89
|
error?: string;
|
|
87
90
|
/**
|
|
@@ -98,13 +101,17 @@ declare type CommonProps = {
|
|
|
98
101
|
*/
|
|
99
102
|
tabIndex?: number;
|
|
100
103
|
};
|
|
101
|
-
|
|
104
|
+
type SingleSelect = CommonProps & {
|
|
102
105
|
/**
|
|
103
106
|
* If true, the select component will support multiple selected options.
|
|
104
107
|
* In that case, value will be an array of strings with each selected
|
|
105
108
|
* option value.
|
|
106
109
|
*/
|
|
107
110
|
multiple?: false;
|
|
111
|
+
/**
|
|
112
|
+
* Initial value of the select, only when it is uncontrolled.
|
|
113
|
+
*/
|
|
114
|
+
defaultValue?: string;
|
|
108
115
|
/**
|
|
109
116
|
* Value of the select. If undefined, the component will be uncontrolled
|
|
110
117
|
* and the value will be managed internally by the component.
|
|
@@ -113,30 +120,34 @@ declare type SingleSelect = CommonProps & {
|
|
|
113
120
|
/**
|
|
114
121
|
* This function will be called when the user selects an option.
|
|
115
122
|
* An object including the current value and the error (if the value entered is not valid)
|
|
116
|
-
* will be passed to this function. If there is no error, error will be
|
|
123
|
+
* will be passed to this function. If there is no error, error will not be defined.
|
|
117
124
|
*/
|
|
118
125
|
onChange?: (val: {
|
|
119
126
|
value: string;
|
|
120
|
-
error
|
|
127
|
+
error?: string;
|
|
121
128
|
}) => void;
|
|
122
129
|
/**
|
|
123
130
|
* This function will be called when the select loses the focus. An
|
|
124
131
|
* object including the value and the error (if the value
|
|
125
132
|
* selected is not valid) will be passed to this function. If there is no error,
|
|
126
|
-
* error will be
|
|
133
|
+
* error will not be defined.
|
|
127
134
|
*/
|
|
128
135
|
onBlur?: (val: {
|
|
129
136
|
value: string;
|
|
130
|
-
error
|
|
137
|
+
error?: string;
|
|
131
138
|
}) => void;
|
|
132
139
|
};
|
|
133
|
-
|
|
140
|
+
type MultipleSelect = CommonProps & {
|
|
134
141
|
/**
|
|
135
142
|
* If true, the select component will support multiple selected options.
|
|
136
143
|
* In that case, value will be an array of strings with each selected
|
|
137
144
|
* option value.
|
|
138
145
|
*/
|
|
139
146
|
multiple: true;
|
|
147
|
+
/**
|
|
148
|
+
* Initial value of the select, only when it is uncontrolled.
|
|
149
|
+
*/
|
|
150
|
+
defaultValue?: string[];
|
|
140
151
|
/**
|
|
141
152
|
* Value of the select. If undefined, the component will be uncontrolled
|
|
142
153
|
* and the value will be managed internally by the component.
|
|
@@ -149,7 +160,7 @@ declare type MultipleSelect = CommonProps & {
|
|
|
149
160
|
*/
|
|
150
161
|
onChange?: (val: {
|
|
151
162
|
value: string[];
|
|
152
|
-
error
|
|
163
|
+
error?: string;
|
|
153
164
|
}) => void;
|
|
154
165
|
/**
|
|
155
166
|
* This function will be called when the select loses the focus. An
|
|
@@ -159,12 +170,41 @@ declare type MultipleSelect = CommonProps & {
|
|
|
159
170
|
*/
|
|
160
171
|
onBlur?: (val: {
|
|
161
172
|
value: string[];
|
|
162
|
-
error
|
|
173
|
+
error?: string;
|
|
163
174
|
}) => void;
|
|
164
175
|
};
|
|
165
|
-
|
|
176
|
+
type Props = SingleSelect | MultipleSelect;
|
|
177
|
+
/**
|
|
178
|
+
* Single option of the select component.
|
|
179
|
+
*/
|
|
180
|
+
export type OptionProps = {
|
|
181
|
+
id: string;
|
|
182
|
+
option: Option;
|
|
183
|
+
onClick: (option: Option) => void;
|
|
184
|
+
multiple: boolean;
|
|
185
|
+
visualFocused: boolean;
|
|
186
|
+
isGroupedOption?: boolean;
|
|
187
|
+
isLastOption: boolean;
|
|
188
|
+
isSelected: boolean;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* Listbox from the select component.
|
|
192
|
+
*/
|
|
193
|
+
export type ListboxProps = {
|
|
194
|
+
id: string;
|
|
195
|
+
currentValue: string | string[];
|
|
196
|
+
options: Option[] | OptionGroup[];
|
|
197
|
+
visualFocusIndex: number;
|
|
198
|
+
lastOptionIndex: number;
|
|
199
|
+
multiple: boolean;
|
|
200
|
+
optional: boolean;
|
|
201
|
+
optionalItem: Option;
|
|
202
|
+
searchable: boolean;
|
|
203
|
+
handleOptionOnClick: (option: Option) => void;
|
|
204
|
+
styles: React.CSSProperties;
|
|
205
|
+
};
|
|
166
206
|
/**
|
|
167
|
-
* Reference to the component.
|
|
207
|
+
* Reference to the select component.
|
|
168
208
|
*/
|
|
169
|
-
export
|
|
209
|
+
export type RefType = HTMLDivElement;
|
|
170
210
|
export default Props;
|
package/sidenav/Sidenav.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import SidenavPropsType, {
|
|
1
|
+
import React from "react";
|
|
2
|
+
import SidenavPropsType, { SidenavGroupPropsType, SidenavLinkPropsType, SidenavSectionPropsType, SidenavTitlePropsType } from "./types.js";
|
|
3
3
|
declare const DxcSidenav: {
|
|
4
|
-
({
|
|
4
|
+
({ children, title }: SidenavPropsType): JSX.Element;
|
|
5
|
+
Section: ({ children }: SidenavSectionPropsType) => JSX.Element;
|
|
6
|
+
Group: ({ children, title, collapsable, icon }: SidenavGroupPropsType) => JSX.Element;
|
|
7
|
+
Link: React.ForwardRefExoticComponent<SidenavLinkPropsType & React.RefAttributes<HTMLAnchorElement>>;
|
|
5
8
|
Title: ({ children }: SidenavTitlePropsType) => JSX.Element;
|
|
6
|
-
Subtitle: ({ children }: SidenavSubtitlePropsType) => JSX.Element;
|
|
7
|
-
Link: ({ tabIndex, href, onClick, children }: SidenavLinkPropsType) => JSX.Element;
|
|
8
9
|
};
|
|
9
10
|
export default DxcSidenav;
|
package/sidenav/Sidenav.js
CHANGED
|
@@ -1,136 +1,226 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports["default"] = void 0;
|
|
11
|
-
|
|
12
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
16
14
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
15
|
+
var _variables = require("../common/variables");
|
|
16
|
+
var _SidenavContext = require("../layout/SidenavContext");
|
|
20
17
|
var _useTheme = _interopRequireDefault(require("../useTheme"));
|
|
21
|
-
|
|
22
18
|
var _BackgroundColorContext = require("../BackgroundColorContext");
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
|
|
19
|
+
var _Flex = _interopRequireDefault(require("../flex/Flex"));
|
|
20
|
+
var _Bleed = _interopRequireDefault(require("../bleed/Bleed"));
|
|
21
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
22
|
+
var _excluded = ["href", "children", "newWindow", "selected", "icon", "tabIndex", "onClick"];
|
|
26
23
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
-
|
|
28
24
|
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
|
-
|
|
25
|
+
var collapsedIcon = /*#__PURE__*/_react["default"].createElement("svg", {
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
height: "24px",
|
|
28
|
+
viewBox: "0 0 24 24",
|
|
29
|
+
width: "24px",
|
|
30
|
+
fill: "currentColor"
|
|
31
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
32
|
+
d: "M0 0h24v24H0z",
|
|
33
|
+
fill: "none"
|
|
34
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
35
|
+
d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
36
|
+
}));
|
|
37
|
+
var collapsableIcon = /*#__PURE__*/_react["default"].createElement("svg", {
|
|
38
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
+
height: "24px",
|
|
40
|
+
viewBox: "0 0 24 24",
|
|
41
|
+
width: "24px",
|
|
42
|
+
fill: "currentColor"
|
|
43
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
44
|
+
d: "M0 0h24v24H0z",
|
|
45
|
+
fill: "none"
|
|
46
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
47
|
+
d: "M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"
|
|
48
|
+
}));
|
|
49
|
+
var externalLinkIcon = /*#__PURE__*/_react["default"].createElement("svg", {
|
|
50
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
51
|
+
height: "24",
|
|
52
|
+
viewBox: "0 0 24 24",
|
|
53
|
+
width: "24",
|
|
54
|
+
fill: "currentColor"
|
|
55
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
56
|
+
d: "M0 0h24v24H0z",
|
|
57
|
+
fill: "none"
|
|
58
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
59
|
+
d: "M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"
|
|
60
|
+
}));
|
|
30
61
|
var DxcSidenav = function DxcSidenav(_ref) {
|
|
31
|
-
var
|
|
32
|
-
|
|
62
|
+
var children = _ref.children,
|
|
63
|
+
title = _ref.title;
|
|
33
64
|
var colorsTheme = (0, _useTheme["default"])();
|
|
34
65
|
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
35
|
-
theme: colorsTheme
|
|
36
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
37
|
-
|
|
38
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
39
|
-
|
|
40
|
-
|
|
66
|
+
theme: colorsTheme["sidenav"]
|
|
67
|
+
}, /*#__PURE__*/_react["default"].createElement(SidenavContainer, null, /*#__PURE__*/_react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
|
|
68
|
+
color: colorsTheme["sidenav"].backgroundColor
|
|
69
|
+
}, title, /*#__PURE__*/_react["default"].createElement(_Flex["default"], {
|
|
70
|
+
direction: "column",
|
|
71
|
+
gap: "1rem"
|
|
72
|
+
}, _react["default"].Children.map(children, function (child, index) {
|
|
73
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, child, index !== _react["default"].Children.count(children) - 1 && /*#__PURE__*/_react["default"].createElement(Divider, null));
|
|
74
|
+
})))));
|
|
41
75
|
};
|
|
42
|
-
|
|
43
76
|
var Title = function Title(_ref2) {
|
|
44
77
|
var children = _ref2.children;
|
|
45
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
78
|
+
return /*#__PURE__*/_react["default"].createElement(_Bleed["default"], {
|
|
79
|
+
horizontal: "1rem"
|
|
80
|
+
}, /*#__PURE__*/_react["default"].createElement(SidenavTitle, null, children));
|
|
46
81
|
};
|
|
47
|
-
|
|
48
|
-
var Subtitle = function Subtitle(_ref3) {
|
|
82
|
+
var Section = function Section(_ref3) {
|
|
49
83
|
var children = _ref3.children;
|
|
50
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
84
|
+
return /*#__PURE__*/_react["default"].createElement(_Bleed["default"], {
|
|
85
|
+
horizontal: "1rem"
|
|
86
|
+
}, /*#__PURE__*/_react["default"].createElement(_Flex["default"], {
|
|
87
|
+
direction: "column"
|
|
88
|
+
}, children));
|
|
51
89
|
};
|
|
52
|
-
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
90
|
+
var Group = function Group(_ref4) {
|
|
91
|
+
var children = _ref4.children,
|
|
92
|
+
title = _ref4.title,
|
|
93
|
+
_ref4$collapsable = _ref4.collapsable,
|
|
94
|
+
collapsable = _ref4$collapsable === void 0 ? false : _ref4$collapsable,
|
|
95
|
+
icon = _ref4.icon;
|
|
96
|
+
var _useState = (0, _react.useState)(false),
|
|
97
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
98
|
+
collapsed = _useState2[0],
|
|
99
|
+
setCollapsed = _useState2[1];
|
|
100
|
+
var selectedGroup = (0, _react.useMemo)(function () {
|
|
101
|
+
return collapsed ? _react["default"].Children.toArray(children).some(function (child) {
|
|
102
|
+
var _child$props;
|
|
103
|
+
return (_child$props = child["props"]) === null || _child$props === void 0 ? void 0 : _child$props.selected;
|
|
104
|
+
}) : false;
|
|
105
|
+
}, [collapsed, children]);
|
|
106
|
+
return /*#__PURE__*/_react["default"].createElement(SidenavGroup, null, collapsable && title ? /*#__PURE__*/_react["default"].createElement(SidenavGroupTitleButton, {
|
|
107
|
+
role: "button",
|
|
108
|
+
"aria-expanded": !collapsed,
|
|
109
|
+
onClick: function onClick() {
|
|
110
|
+
return setCollapsed(!collapsed);
|
|
111
|
+
},
|
|
112
|
+
selectedGroup: selectedGroup
|
|
113
|
+
}, /*#__PURE__*/_react["default"].createElement(SidenavContent, null, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement("img", {
|
|
114
|
+
src: icon
|
|
115
|
+
}) : icon, title), collapsed ? collapsedIcon : collapsableIcon) : title && /*#__PURE__*/_react["default"].createElement(SidenavGroupTitle, null, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement("img", {
|
|
116
|
+
src: icon
|
|
117
|
+
}) : icon, title), !collapsed && children);
|
|
64
118
|
};
|
|
65
|
-
|
|
66
|
-
var
|
|
119
|
+
var Link = /*#__PURE__*/(0, _react.forwardRef)(function (_ref5, ref) {
|
|
120
|
+
var href = _ref5.href,
|
|
121
|
+
children = _ref5.children,
|
|
122
|
+
_ref5$newWindow = _ref5.newWindow,
|
|
123
|
+
newWindow = _ref5$newWindow === void 0 ? false : _ref5$newWindow,
|
|
124
|
+
_ref5$selected = _ref5.selected,
|
|
125
|
+
selected = _ref5$selected === void 0 ? false : _ref5$selected,
|
|
126
|
+
icon = _ref5.icon,
|
|
127
|
+
_ref5$tabIndex = _ref5.tabIndex,
|
|
128
|
+
tabIndex = _ref5$tabIndex === void 0 ? 0 : _ref5$tabIndex,
|
|
129
|
+
onClick = _ref5.onClick,
|
|
130
|
+
otherProps = (0, _objectWithoutProperties2["default"])(_ref5, _excluded);
|
|
131
|
+
var setIsSidenavVisibleResponsive = (0, _SidenavContext.useResponsiveSidenavVisibility)();
|
|
132
|
+
var handleClick = function handleClick($event) {
|
|
133
|
+
onClick === null || onClick === void 0 ? void 0 : onClick($event);
|
|
134
|
+
setIsSidenavVisibleResponsive === null || setIsSidenavVisibleResponsive === void 0 ? void 0 : setIsSidenavVisibleResponsive(false);
|
|
135
|
+
};
|
|
136
|
+
return /*#__PURE__*/_react["default"].createElement(SidenavLink, (0, _extends2["default"])({
|
|
137
|
+
selected: selected,
|
|
138
|
+
href: href ? href : undefined,
|
|
139
|
+
target: href ? newWindow ? "_blank" : "_self" : undefined,
|
|
140
|
+
ref: ref,
|
|
141
|
+
tabIndex: tabIndex,
|
|
142
|
+
onClick: handleClick
|
|
143
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(SidenavContent, null, typeof icon === "string" ? /*#__PURE__*/_react["default"].createElement("img", {
|
|
144
|
+
src: icon
|
|
145
|
+
}) : icon, children), newWindow && externalLinkIcon);
|
|
146
|
+
});
|
|
147
|
+
var SidenavContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: column;\n background-color: ", ";\n box-sizing: border-box;\n width: 280px;\n @media (max-width: ", "rem) {\n width: 100vw;\n }\n\n height: 100%;\n padding: 2rem 1rem;\n\n overflow-y: auto;\n overflow-x: hidden;\n ::-webkit-scrollbar {\n width: 2px;\n }\n ::-webkit-scrollbar-track {\n background-color: ", ";\n border-radius: 3px;\n }\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 3px;\n }\n"])), function (props) {
|
|
67
148
|
return props.theme.backgroundColor;
|
|
68
|
-
}, function (props) {
|
|
69
|
-
return props.padding ? "calc(300px - ".concat(_variables.spaces[props.padding], " - ").concat(_variables.spaces[props.padding], ")") : "300px";
|
|
70
|
-
}, function (props) {
|
|
71
|
-
return props.padding ? _variables.spaces[props.padding] : "";
|
|
72
|
-
}, function (props) {
|
|
149
|
+
}, _variables.responsiveSizes.medium, function (props) {
|
|
73
150
|
return props.theme.scrollBarTrackColor;
|
|
74
151
|
}, function (props) {
|
|
75
152
|
return props.theme.scrollBarThumbColor;
|
|
76
153
|
});
|
|
77
|
-
|
|
78
|
-
var SideNavMenuTitle = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n text-transform: ", ";\n margin-bottom: 16px;\n"])), function (props) {
|
|
154
|
+
var SidenavTitle = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-style: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: 27px;\n display: flex;\n align-items: center;\n color: ", ";\n text-transform: ", ";\n letter-spacing: ", ";\n padding: 0.5rem 1.2rem;\n\n svg {\n margin-right: 0.5rem;\n }\n"])), function (props) {
|
|
79
155
|
return props.theme.titleFontFamily;
|
|
80
|
-
}, function (props) {
|
|
81
|
-
return props.theme.titleFontSize;
|
|
82
156
|
}, function (props) {
|
|
83
157
|
return props.theme.titleFontStyle;
|
|
84
158
|
}, function (props) {
|
|
85
159
|
return props.theme.titleFontWeight;
|
|
86
160
|
}, function (props) {
|
|
87
|
-
return props.theme.
|
|
161
|
+
return props.theme.titleFontSize;
|
|
88
162
|
}, function (props) {
|
|
89
|
-
return props.theme.
|
|
163
|
+
return props.theme.titleFontColor;
|
|
90
164
|
}, function (props) {
|
|
91
165
|
return props.theme.titleFontTextTransform;
|
|
166
|
+
}, function (props) {
|
|
167
|
+
return props.theme.titleFontLetterSpacing;
|
|
92
168
|
});
|
|
93
|
-
|
|
94
|
-
var
|
|
95
|
-
|
|
169
|
+
var Divider = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n width: 100%;\n height: 1px;\n background-color: #999999;\n"])));
|
|
170
|
+
var SidenavGroup = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n width: 100%;\n a {\n padding: 0.5rem 1.2rem 0.5rem 2.25rem;\n }\n"])));
|
|
171
|
+
var SidenavGroupTitle = _styledComponents["default"].span(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n width: 100%;\n padding: 0.5rem 1.2rem;\n font-family: ", ";\n font-style: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: 18px;\n\n img,\n svg {\n height: 16px;\n width: 16px;\n }\n"])), function (props) {
|
|
172
|
+
return props.theme.groupTitleFontFamily;
|
|
96
173
|
}, function (props) {
|
|
97
|
-
return props.theme.
|
|
174
|
+
return props.theme.groupTitleFontStyle;
|
|
98
175
|
}, function (props) {
|
|
99
|
-
return props.theme.
|
|
176
|
+
return props.theme.groupTitleFontWeight;
|
|
100
177
|
}, function (props) {
|
|
101
|
-
return props.theme.
|
|
178
|
+
return props.theme.groupTitleFontSize;
|
|
179
|
+
});
|
|
180
|
+
var SidenavGroupTitleButton = _styledComponents["default"].button(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n all: unset;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n padding: 0.5rem 1.2rem;\n\n font-family: ", ";\n font-style: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: 19px;\n\n cursor: pointer;\n\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: -2px;\n }\n &:hover {\n ", "\n }\n &:active {\n background-color: ", ";\n color: ", ";\n }\n ", "\n\n svg {\n height: 16px;\n width: 16px;\n }\n"])), function (props) {
|
|
181
|
+
return props.theme.groupTitleFontFamily;
|
|
102
182
|
}, function (props) {
|
|
103
|
-
return props.theme.
|
|
183
|
+
return props.theme.groupTitleFontStyle;
|
|
104
184
|
}, function (props) {
|
|
105
|
-
return props.theme.
|
|
185
|
+
return props.theme.groupTitleFontWeight;
|
|
106
186
|
}, function (props) {
|
|
107
|
-
return props.theme.
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
var SideNavMenuLink = _styledComponents["default"].a(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n text-transform: ", ";\n text-decoration: ", ";\n margin: ", ";\n cursor: pointer;\n\n :focus-visible {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n"])), function (props) {
|
|
111
|
-
return props.theme.linkFontFamily;
|
|
187
|
+
return props.theme.groupTitleFontSize;
|
|
112
188
|
}, function (props) {
|
|
113
|
-
return props.theme.
|
|
189
|
+
return props.theme.linkFocusColor;
|
|
114
190
|
}, function (props) {
|
|
115
|
-
return props.theme.
|
|
191
|
+
return props.selectedGroup ? "color: ".concat(props.theme.groupTitleSelectedHoverFontColor, "; background: ").concat(props.theme.groupTitleSelectedHoverBackgroundColor, ";") : "color: ".concat(props.theme.groupTitleFontColor, "; background: ").concat(props.theme.groupTitleHoverBackgroundColor, ";");
|
|
116
192
|
}, function (props) {
|
|
117
|
-
return props.theme.
|
|
193
|
+
return props.theme.groupTitleActiveBackgroundColor;
|
|
118
194
|
}, function (props) {
|
|
119
|
-
return props.theme.
|
|
195
|
+
return props.theme.groupTitleFontColor;
|
|
120
196
|
}, function (props) {
|
|
197
|
+
return props.selectedGroup ? "color: ".concat(props.theme.groupTitleSelectedFontColor, "; background: ").concat(props.theme.groupTitleSelectedBackgroundColor, ";") : "color: ".concat(props.theme.groupTitleFontColor, "; background: transparent;");
|
|
198
|
+
});
|
|
199
|
+
var SidenavLink = _styledComponents["default"].a(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.5rem;\n padding: 0.5rem 1.2rem;\n box-shadow: 0 0 0 2px transparent;\n letter-spacing: ", ";\n text-transform: ", ";\n text-decoration: ", ";\n font-family: ", ";\n font-style: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: 19px;\n\n ", "\n\n cursor: pointer;\n\n &:hover {\n ", "\n }\n &:focus {\n outline: 2px solid ", ";\n outline-offset: -2px;\n }\n &:active {\n color: #ffffff;\n background: #4d4d4d;\n outline: 2px solid #0095ff;\n outline-offset: -2px;\n }\n\n svg {\n height: 16px;\n width: 16px;\n }\n"])), function (props) {
|
|
121
200
|
return props.theme.linkFontLetterSpacing;
|
|
122
201
|
}, function (props) {
|
|
123
202
|
return props.theme.linkFontTextTransform;
|
|
124
203
|
}, function (props) {
|
|
125
204
|
return props.theme.linkTextDecoration;
|
|
126
205
|
}, function (props) {
|
|
127
|
-
return
|
|
206
|
+
return props.theme.linkFontFamily;
|
|
207
|
+
}, function (props) {
|
|
208
|
+
return props.theme.linkFontStyle;
|
|
209
|
+
}, function (props) {
|
|
210
|
+
return props.theme.linkFontWeight;
|
|
211
|
+
}, function (props) {
|
|
212
|
+
return props.theme.linkFontSize;
|
|
213
|
+
}, function (props) {
|
|
214
|
+
return props.selected ? "color: ".concat(props.theme.linkSelectedFontColor, "; background: ").concat(props.theme.linkSelectedBackgroundColor, ";") : "color: ".concat(props.theme.linkFontColor, "; background: transparent;");
|
|
215
|
+
}, function (props) {
|
|
216
|
+
return props.selected ? "color: ".concat(props.theme.linkSelectedHoverFontColor, "; background: ").concat(props.theme.linkSelectedHoverBackgroundColor, ";") : "color: ".concat(props.theme.linkFontColor, "; background: ").concat(props.theme.linkHoverBackgroundColor, ";");
|
|
128
217
|
}, function (props) {
|
|
129
218
|
return props.theme.linkFocusColor;
|
|
130
219
|
});
|
|
131
|
-
|
|
132
|
-
DxcSidenav.
|
|
133
|
-
DxcSidenav.
|
|
220
|
+
var SidenavContent = _styledComponents["default"].span(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n\n img,\n svg {\n height: 16px;\n width: 16px;\n }\n"])));
|
|
221
|
+
DxcSidenav.Section = Section;
|
|
222
|
+
DxcSidenav.Group = Group;
|
|
134
223
|
DxcSidenav.Link = Link;
|
|
224
|
+
DxcSidenav.Title = Title;
|
|
135
225
|
var _default = DxcSidenav;
|
|
136
226
|
exports["default"] = _default;
|