@dxc-technology/halstack-react 0.0.0-ee92231 → 0.0.0-eefd559
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 +10 -0
- package/BackgroundColorContext.js +1 -4
- package/ThemeContext.d.ts +15 -0
- package/ThemeContext.js +5 -8
- package/V3Select/V3Select.js +2 -2
- package/V3Textarea/V3Textarea.js +2 -2
- package/accordion/Accordion.d.ts +1 -1
- package/accordion/Accordion.js +11 -22
- package/accordion/Accordion.stories.tsx +307 -0
- package/accordion/types.d.ts +4 -8
- package/accordion-group/AccordionGroup.js +2 -2
- package/accordion-group/AccordionGroup.stories.tsx +225 -0
- package/accordion-group/types.d.ts +4 -8
- package/alert/Alert.js +2 -2
- package/alert/Alert.stories.tsx +170 -0
- package/alert/types.d.ts +1 -1
- package/badge/Badge.js +1 -1
- package/bleed/Bleed.d.ts +3 -0
- package/bleed/Bleed.js +84 -0
- package/bleed/Bleed.stories.tsx +342 -0
- package/bleed/types.d.ts +13 -0
- package/bleed/types.js +5 -0
- package/box/Box.d.ts +1 -1
- package/box/Box.js +4 -7
- package/box/types.d.ts +0 -4
- package/button/Button.d.ts +1 -1
- package/button/Button.js +13 -19
- package/button/Button.stories.tsx +222 -241
- package/button/types.d.ts +5 -9
- package/card/Card.js +5 -6
- package/card/Card.stories.tsx +201 -0
- package/card/ice-cream.jpg +0 -0
- package/card/types.d.ts +4 -6
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/types.d.ts +2 -2
- package/chip/Chip.d.ts +4 -0
- package/chip/Chip.js +16 -76
- package/chip/Chip.stories.tsx +119 -0
- package/chip/types.d.ts +45 -0
- package/chip/types.js +5 -0
- package/common/variables.js +70 -28
- package/date/Date.js +1 -1
- package/date-input/DateInput.js +10 -13
- package/date-input/DateInput.stories.tsx +138 -0
- package/dialog/Dialog.js +4 -3
- package/dialog/Dialog.stories.tsx +212 -0
- package/dropdown/Dropdown.d.ts +1 -1
- package/dropdown/Dropdown.js +13 -35
- package/dropdown/Dropdown.stories.tsx +249 -0
- package/dropdown/types.d.ts +6 -15
- package/file-input/FileInput.d.ts +4 -0
- package/file-input/FileInput.js +167 -109
- package/file-input/FileInput.stories.tsx +507 -0
- package/file-input/FileItem.d.ts +14 -0
- package/file-input/FileItem.js +12 -21
- package/file-input/types.d.ts +112 -0
- package/file-input/types.js +5 -0
- package/footer/Footer.d.ts +1 -1
- package/footer/Footer.js +28 -36
- package/footer/{Footer.stories.jsx → Footer.stories.tsx} +1 -22
- package/footer/Icons.d.ts +2 -0
- package/footer/Icons.js +3 -3
- package/footer/types.d.ts +22 -18
- package/header/Header.js +2 -2
- package/header/Header.stories.tsx +162 -0
- package/header/Icons.d.ts +2 -0
- package/header/types.d.ts +4 -2
- package/heading/Heading.d.ts +4 -0
- package/heading/Heading.js +7 -24
- package/heading/Heading.stories.tsx +54 -0
- package/heading/types.d.ts +33 -0
- package/heading/types.js +5 -0
- package/input-text/InputText.js +2 -2
- package/inset/Inset.d.ts +3 -0
- package/inset/Inset.js +84 -0
- package/inset/Inset.stories.tsx +229 -0
- package/inset/types.d.ts +13 -0
- package/inset/types.js +5 -0
- package/layout/ApplicationLayout.d.ts +10 -0
- package/layout/ApplicationLayout.js +9 -19
- package/layout/ApplicationLayout.stories.tsx +171 -0
- package/layout/types.d.ts +57 -0
- package/layout/types.js +5 -0
- package/link/Link.js +3 -3
- package/link/Link.stories.tsx +146 -0
- package/list/List.d.ts +4 -0
- package/list/List.js +47 -0
- package/list/List.stories.tsx +95 -0
- package/list/types.d.ts +7 -0
- package/list/types.js +5 -0
- package/main.d.ts +7 -3
- package/main.js +34 -2
- package/number-input/NumberInput.d.ts +4 -0
- package/number-input/NumberInput.js +5 -50
- package/number-input/{NumberInput.stories.jsx → NumberInput.stories.tsx} +0 -0
- package/number-input/NumberInputContext.d.ts +4 -0
- package/number-input/NumberInputContext.js +5 -2
- package/number-input/numberInputContextTypes.d.ts +19 -0
- package/number-input/numberInputContextTypes.js +5 -0
- package/number-input/types.d.ts +117 -0
- package/number-input/types.js +5 -0
- package/package.json +4 -2
- package/paginator/Paginator.js +2 -8
- package/password-input/PasswordInput.js +19 -18
- package/password-input/PasswordInput.stories.tsx +3 -3
- package/password-input/types.d.ts +17 -10
- package/progress-bar/ProgressBar.js +4 -4
- package/radio/Radio.js +2 -2
- package/radio/types.d.ts +2 -2
- package/radio-group/Radio.d.ts +4 -0
- package/radio-group/Radio.js +140 -0
- package/radio-group/RadioGroup.d.ts +4 -0
- package/radio-group/RadioGroup.js +273 -0
- package/radio-group/RadioGroup.stories.tsx +79 -0
- package/radio-group/RadioGroup.test.js +248 -0
- package/radio-group/types.d.ts +36 -0
- package/radio-group/types.js +5 -0
- package/resultsetTable/ResultsetTable.d.ts +4 -0
- package/resultsetTable/ResultsetTable.js +5 -28
- package/resultsetTable/ResultsetTable.stories.tsx +275 -0
- package/resultsetTable/types.d.ts +67 -0
- package/resultsetTable/types.js +5 -0
- package/row/Row.d.ts +3 -0
- package/row/Row.js +127 -0
- package/row/Row.stories.tsx +237 -0
- package/row/types.d.ts +10 -0
- package/row/types.js +5 -0
- package/select/Select.d.ts +4 -0
- package/select/Select.js +20 -22
- package/select/Select.stories.tsx +572 -0
- package/select/types.d.ts +170 -0
- package/select/types.js +5 -0
- package/sidenav/Sidenav.d.ts +9 -0
- package/sidenav/Sidenav.js +6 -15
- package/sidenav/Sidenav.stories.tsx +182 -0
- package/sidenav/types.d.ts +50 -0
- package/sidenav/types.js +5 -0
- package/slider/Slider.d.ts +1 -1
- package/slider/Slider.js +43 -32
- package/slider/Slider.stories.tsx +177 -0
- package/slider/types.d.ts +2 -7
- package/spinner/Spinner.js +2 -2
- package/spinner/Spinner.stories.jsx +1 -0
- package/stack/Stack.d.ts +3 -0
- package/stack/Stack.js +97 -0
- package/stack/Stack.stories.tsx +164 -0
- package/stack/types.d.ts +9 -0
- package/stack/types.js +5 -0
- package/switch/Switch.js +2 -2
- package/switch/Switch.stories.tsx +1 -1
- package/table/Table.js +3 -3
- package/table/Table.stories.jsx +2 -1
- package/tabs/Tabs.js +11 -9
- package/tabs/Tabs.stories.tsx +120 -0
- package/tabs/types.d.ts +25 -18
- package/tag/Tag.d.ts +4 -0
- package/tag/Tag.js +9 -35
- package/tag/{Tag.stories.jsx → Tag.stories.tsx} +15 -22
- package/tag/types.d.ts +69 -0
- package/tag/types.js +5 -0
- package/text/Text.d.ts +7 -0
- package/text/Text.js +30 -0
- package/text/Text.stories.tsx +19 -0
- package/text-input/TextInput.d.ts +4 -0
- package/text-input/TextInput.js +54 -85
- package/text-input/TextInput.stories.tsx +456 -0
- package/text-input/types.d.ts +159 -0
- package/text-input/types.js +5 -0
- package/textarea/Textarea.d.ts +4 -0
- package/textarea/Textarea.js +27 -60
- package/textarea/Textarea.stories.jsx +4 -3
- package/textarea/types.d.ts +130 -0
- package/textarea/types.js +5 -0
- package/toggle/Toggle.js +1 -1
- package/toggle-group/ToggleGroup.d.ts +4 -0
- package/toggle-group/ToggleGroup.js +16 -45
- package/toggle-group/ToggleGroup.stories.tsx +173 -0
- package/toggle-group/types.d.ts +97 -0
- package/toggle-group/types.js +5 -0
- package/upload/buttons-upload/ButtonsUpload.js +2 -2
- package/upload/dragAndDropArea/DragAndDropArea.js +2 -2
- package/upload/file-upload/FileToUpload.js +1 -1
- package/upload/files-upload/FilesToUpload.js +1 -1
- package/upload/transaction/Transaction.js +2 -2
- package/upload/transactions/Transactions.js +1 -1
- package/useTheme.d.ts +2 -0
- package/useTheme.js +1 -1
- package/wizard/Wizard.d.ts +4 -0
- package/wizard/Wizard.js +69 -59
- package/wizard/Wizard.stories.tsx +224 -0
- package/wizard/types.d.ts +60 -0
- package/wizard/types.js +5 -0
- package/chip/index.d.ts +0 -22
- package/file-input/index.d.ts +0 -81
- package/heading/index.d.ts +0 -17
- package/number-input/index.d.ts +0 -113
- package/resultsetTable/index.d.ts +0 -19
- package/select/index.d.ts +0 -131
- package/sidenav/index.d.ts +0 -13
- package/tag/index.d.ts +0 -24
- package/text-input/index.d.ts +0 -135
- package/textarea/index.d.ts +0 -117
- package/toggle-group/index.d.ts +0 -21
- package/wizard/Icons.js +0 -65
- package/wizard/index.d.ts +0 -18
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DxcApplicationLayout from "./ApplicationLayout";
|
|
3
|
+
import DxcSidenav from "../sidenav/Sidenav";
|
|
4
|
+
import Title from "../../.storybook/components/Title";
|
|
5
|
+
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
|
|
6
|
+
import { userEvent, within, waitFor } from "@storybook/testing-library";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: "Application Layout ",
|
|
10
|
+
component: DxcApplicationLayout,
|
|
11
|
+
parameters: {
|
|
12
|
+
viewport: {
|
|
13
|
+
viewports: INITIAL_VIEWPORTS,
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const DefaultApplicationLayout = () => (
|
|
19
|
+
<>
|
|
20
|
+
<DxcApplicationLayout>
|
|
21
|
+
<DxcApplicationLayout.Main>
|
|
22
|
+
<Title title="Default application layout" theme="light" level={4} />
|
|
23
|
+
<p>Main Content</p>
|
|
24
|
+
<p>Main Content</p>
|
|
25
|
+
<p>Main Content</p>
|
|
26
|
+
<p>Main Content</p>
|
|
27
|
+
</DxcApplicationLayout.Main>
|
|
28
|
+
</DxcApplicationLayout>
|
|
29
|
+
</>
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
export const ApplicationLayoutWithDefaultSidenav = () => (
|
|
33
|
+
<>
|
|
34
|
+
<DxcApplicationLayout>
|
|
35
|
+
<DxcApplicationLayout.SideNav>
|
|
36
|
+
<DxcSidenav.Title>Application layout with sidenav</DxcSidenav.Title>
|
|
37
|
+
<p>SideNav Content</p>
|
|
38
|
+
<p>SideNav Content</p>
|
|
39
|
+
<p>SideNav Content</p>
|
|
40
|
+
<p>SideNav Content</p>
|
|
41
|
+
<p>SideNav Content</p>
|
|
42
|
+
</DxcApplicationLayout.SideNav>
|
|
43
|
+
<DxcApplicationLayout.Main>
|
|
44
|
+
<p>Main Content</p>
|
|
45
|
+
<p>Main Content</p>
|
|
46
|
+
<p>Main Content</p>
|
|
47
|
+
<p>Main Content</p>
|
|
48
|
+
</DxcApplicationLayout.Main>
|
|
49
|
+
</DxcApplicationLayout>
|
|
50
|
+
</>
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
export const ApplicationLayoutWithPushSidenav = () => (
|
|
54
|
+
<>
|
|
55
|
+
<DxcApplicationLayout>
|
|
56
|
+
<DxcApplicationLayout.SideNav mode="push">
|
|
57
|
+
<DxcSidenav.Title>Application layout with push sidenav</DxcSidenav.Title>
|
|
58
|
+
<p>SideNav Content</p>
|
|
59
|
+
<p>SideNav Content</p>
|
|
60
|
+
<p>SideNav Content</p>
|
|
61
|
+
<p>SideNav Content</p>
|
|
62
|
+
<p>SideNav Content</p>
|
|
63
|
+
</DxcApplicationLayout.SideNav>
|
|
64
|
+
<DxcApplicationLayout.Main>
|
|
65
|
+
<p>Main Content</p>
|
|
66
|
+
<p>Main Content</p>
|
|
67
|
+
<p>Main Content</p>
|
|
68
|
+
<p>Main Content</p>
|
|
69
|
+
</DxcApplicationLayout.Main>
|
|
70
|
+
</DxcApplicationLayout>
|
|
71
|
+
</>
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
export const ApplicationLayoutWithArrowSidenav = () => (
|
|
75
|
+
<>
|
|
76
|
+
<DxcApplicationLayout>
|
|
77
|
+
<DxcApplicationLayout.SideNav mode="overlay" displayArrow>
|
|
78
|
+
<DxcSidenav.Title>Application layout with push sidenav</DxcSidenav.Title>
|
|
79
|
+
<p>SideNav Content</p>
|
|
80
|
+
<p>SideNav Content</p>
|
|
81
|
+
<p>SideNav Content</p>
|
|
82
|
+
<p>SideNav Content</p>
|
|
83
|
+
<p>SideNav Content</p>
|
|
84
|
+
</DxcApplicationLayout.SideNav>
|
|
85
|
+
<DxcApplicationLayout.Main>
|
|
86
|
+
<p>Main Content</p>
|
|
87
|
+
<p>Main Content</p>
|
|
88
|
+
<p>Main Content</p>
|
|
89
|
+
<p>Main Content</p>
|
|
90
|
+
</DxcApplicationLayout.Main>
|
|
91
|
+
</DxcApplicationLayout>
|
|
92
|
+
</>
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
export const ApplicationLayoutWithResponsiveSidenav = () => (
|
|
96
|
+
<>
|
|
97
|
+
<DxcApplicationLayout>
|
|
98
|
+
<DxcApplicationLayout.SideNav>
|
|
99
|
+
<DxcSidenav.Title>Application layout with push sidenav</DxcSidenav.Title>
|
|
100
|
+
<p>SideNav Content</p>
|
|
101
|
+
<p>SideNav Content</p>
|
|
102
|
+
<p>SideNav Content</p>
|
|
103
|
+
<p>SideNav Content</p>
|
|
104
|
+
<p>SideNav Content</p>
|
|
105
|
+
</DxcApplicationLayout.SideNav>
|
|
106
|
+
<DxcApplicationLayout.Main>
|
|
107
|
+
<p>Main Content</p>
|
|
108
|
+
<p>Main Content</p>
|
|
109
|
+
<p>Main Content</p>
|
|
110
|
+
<p>Main Content</p>
|
|
111
|
+
</DxcApplicationLayout.Main>
|
|
112
|
+
</DxcApplicationLayout>
|
|
113
|
+
</>
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
ApplicationLayoutWithResponsiveSidenav.parameters = {
|
|
117
|
+
viewport: {
|
|
118
|
+
defaultViewport: 'pixel',
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export const ApplicationLayoutWithCustomHeader = () => (
|
|
123
|
+
<>
|
|
124
|
+
<DxcApplicationLayout>
|
|
125
|
+
<DxcApplicationLayout.Header> <p>Custom Header</p> </DxcApplicationLayout.Header>
|
|
126
|
+
<DxcApplicationLayout.SideNav>
|
|
127
|
+
<DxcSidenav.Title>Application layout with push sidenav</DxcSidenav.Title>
|
|
128
|
+
<p>SideNav Content</p>
|
|
129
|
+
<p>SideNav Content</p>
|
|
130
|
+
<p>SideNav Content</p>
|
|
131
|
+
<p>SideNav Content</p>
|
|
132
|
+
<p>SideNav Content</p>
|
|
133
|
+
</DxcApplicationLayout.SideNav>
|
|
134
|
+
<DxcApplicationLayout.Main>
|
|
135
|
+
<p>Main Content</p>
|
|
136
|
+
<p>Main Content</p>
|
|
137
|
+
<p>Main Content</p>
|
|
138
|
+
<p>Main Content</p>
|
|
139
|
+
</DxcApplicationLayout.Main>
|
|
140
|
+
</DxcApplicationLayout>
|
|
141
|
+
</>
|
|
142
|
+
);
|
|
143
|
+
|
|
144
|
+
export const ApplicationLayoutWithCustomFooter = () => (
|
|
145
|
+
<>
|
|
146
|
+
<DxcApplicationLayout>
|
|
147
|
+
<DxcApplicationLayout.SideNav>
|
|
148
|
+
<DxcSidenav.Title>Application layout with push sidenav</DxcSidenav.Title>
|
|
149
|
+
<p>SideNav Content</p>
|
|
150
|
+
<p>SideNav Content</p>
|
|
151
|
+
<p>SideNav Content</p>
|
|
152
|
+
<p>SideNav Content</p>
|
|
153
|
+
<p>SideNav Content</p>
|
|
154
|
+
</DxcApplicationLayout.SideNav>
|
|
155
|
+
<DxcApplicationLayout.Main>
|
|
156
|
+
<p>Main Content</p>
|
|
157
|
+
<p>Main Content</p>
|
|
158
|
+
<p>Main Content</p>
|
|
159
|
+
<p>Main Content</p>
|
|
160
|
+
</DxcApplicationLayout.Main>
|
|
161
|
+
<DxcApplicationLayout.Footer> <p>Custom Footer</p> </DxcApplicationLayout.Footer>
|
|
162
|
+
</DxcApplicationLayout>
|
|
163
|
+
</>
|
|
164
|
+
);
|
|
165
|
+
|
|
166
|
+
export const ApplicationLayoutWithClosingSidenav = ApplicationLayoutWithArrowSidenav.bind({});
|
|
167
|
+
ApplicationLayoutWithClosingSidenav.play = async ({ canvasElement }) => {
|
|
168
|
+
const canvas = within(canvasElement);
|
|
169
|
+
const arrow = canvas.getByRole("button");
|
|
170
|
+
await userEvent.click(arrow);
|
|
171
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
+
declare type Padding = {
|
|
4
|
+
top?: Space;
|
|
5
|
+
bottom?: Space;
|
|
6
|
+
left?: Space;
|
|
7
|
+
right?: Space;
|
|
8
|
+
};
|
|
9
|
+
declare type ChildrenType = AppLayoutHeaderPropsType | AppLayoutMainPropsType | AppLayoutFooterPropsType | AppLayoutSidenavPropsType;
|
|
10
|
+
export declare type AppLayoutHeaderPropsType = {
|
|
11
|
+
/**
|
|
12
|
+
* Everything between this tags will be displayed as a header, at the top of the screen.
|
|
13
|
+
* This is optional and if it is not specified, the DxcHeader will be shown by default.
|
|
14
|
+
*/
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
};
|
|
17
|
+
export declare type AppLayoutMainPropsType = {
|
|
18
|
+
/**
|
|
19
|
+
* Everything between the tags will be displayed as the content of the main part of the application.
|
|
20
|
+
*/
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
};
|
|
23
|
+
export declare type AppLayoutFooterPropsType = {
|
|
24
|
+
/**
|
|
25
|
+
* Everything between the tags will be displayed as a footer, at the bottom of the screen.
|
|
26
|
+
* This is optional and if it is not specified, the DxcFooter will be shown by default.
|
|
27
|
+
*/
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
};
|
|
30
|
+
export declare type AppLayoutSidenavPropsType = {
|
|
31
|
+
/**
|
|
32
|
+
* Size of the padding to be applied to the custom area ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
33
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different padding sizes.
|
|
34
|
+
*/
|
|
35
|
+
padding?: Space | Padding;
|
|
36
|
+
/**
|
|
37
|
+
* The area inside the sidenav. This area can be used to render custom content.
|
|
38
|
+
*/
|
|
39
|
+
children: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* If false, the arrow button is hidden.
|
|
42
|
+
* In lower resolutions the arrow will be always displayed.
|
|
43
|
+
*/
|
|
44
|
+
displayArrow?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Default action over the content of the page, overlay the content or push to the right ('push' | 'overlay').
|
|
47
|
+
* In lower resolutions the mode will always be overlay.
|
|
48
|
+
*/
|
|
49
|
+
mode: "push" | "overlay";
|
|
50
|
+
};
|
|
51
|
+
declare type AppLayoutPropsType = {
|
|
52
|
+
/**
|
|
53
|
+
* The area inside the sidenav. This area can be used to render custom content.
|
|
54
|
+
*/
|
|
55
|
+
children: React.ReactElement<ChildrenType> | React.ReactElement<ChildrenType>[];
|
|
56
|
+
};
|
|
57
|
+
export default AppLayoutPropsType;
|
package/layout/types.js
ADDED
package/link/Link.js
CHANGED
|
@@ -19,7 +19,7 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
19
19
|
|
|
20
20
|
var _variables = require("../common/variables.js");
|
|
21
21
|
|
|
22
|
-
var _useTheme = _interopRequireDefault(require("../useTheme
|
|
22
|
+
var _useTheme = _interopRequireDefault(require("../useTheme"));
|
|
23
23
|
|
|
24
24
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
25
25
|
|
|
@@ -89,7 +89,7 @@ var DxcLinkContainer = _styledComponents["default"].div(_templateObject || (_tem
|
|
|
89
89
|
return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.left ? _variables.spaces[props.margin.left] : "";
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
var StyledLink = _styledComponents["default"].a(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n ", "\n\n text-decoration-color: transparent;\n ", "\n\n &:visited {\n color: ", ";\n &:hover {\n ", "\n }\n }\n &:hover {\n ", "\n }\n &:focus {\n
|
|
92
|
+
var StyledLink = _styledComponents["default"].a(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n ", "\n\n text-decoration-color: transparent;\n ", "\n\n &:visited {\n color: ", ";\n &:hover {\n ", "\n }\n }\n &:hover {\n ", "\n }\n &:focus {\n border-radius: 2px;\n outline: 2px solid ", ";\n ", "\n }\n &:active {\n ", "\n }\n"])), function (props) {
|
|
93
93
|
return props.inheritColor ? "inherit" : !props.disabled ? props.theme.fontColor : props.theme.disabledColor;
|
|
94
94
|
}, function (props) {
|
|
95
95
|
return props.disabled ? "pointer-events: none;" : "";
|
|
@@ -109,7 +109,7 @@ var StyledLink = _styledComponents["default"].a(_templateObject2 || (_templateOb
|
|
|
109
109
|
return "color: ".concat(props.theme.activeFontColor, " !important;\n border-bottom-color: ").concat(props.theme.activeUnderlineColor, " !important;");
|
|
110
110
|
});
|
|
111
111
|
|
|
112
|
-
var StyledButton = _styledComponents["default"].button(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n font-family: inherit;\n text-decoration-color: transparent;\n\n ", "\n ", "\n color: ", ";\n ", "\n\n &:hover {\n ", "\n }\n &:focus {\n
|
|
112
|
+
var StyledButton = _styledComponents["default"].button(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n font-family: inherit;\n text-decoration-color: transparent;\n\n ", "\n ", "\n color: ", ";\n ", "\n\n &:hover {\n ", "\n }\n &:focus {\n border-radius: 2px;\n outline: 2px solid ", ";\n ", "\n }\n &:active {\n ", "\n }\n"])), function (props) {
|
|
113
113
|
return "padding-bottom: ".concat(props.theme.underlineSpacing, ";\n border-bottom: ").concat(props.theme.underlineThickness, " ").concat(props.theme.underlineStyle, " transparent;");
|
|
114
114
|
}, function (props) {
|
|
115
115
|
return props.disabled && "cursor: default;";
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DxcLink from "./Link";
|
|
3
|
+
import Title from "../../.storybook/components/Title";
|
|
4
|
+
import ExampleContainer from "../../.storybook/components/ExampleContainer";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: "Link",
|
|
8
|
+
component: DxcLink,
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const icon = (
|
|
12
|
+
<svg viewBox="0 0 24 24" enable-background="new 0 0 24 24" fill="currentColor">
|
|
13
|
+
<g id="Bounding_Box">
|
|
14
|
+
<rect fill="none" width="24" height="24" />
|
|
15
|
+
</g>
|
|
16
|
+
<g id="Master">
|
|
17
|
+
<path d="M19,9.3V4h-3v2.6L12,3L2,12h3v8h5v-6h4v6h5v-8h3L19,9.3z M10,10c0-1.1,0.9-2,2-2s2,0.9,2,2H10z" />
|
|
18
|
+
</g>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
export const Chromatic = () => (
|
|
23
|
+
<>
|
|
24
|
+
<Title title="With anchor" theme="light" level={2} />
|
|
25
|
+
<ExampleContainer>
|
|
26
|
+
<Title title="Disabled" theme="light" level={4} />
|
|
27
|
+
<DxcLink text="Test" disabled></DxcLink>
|
|
28
|
+
<Title title="Icon before" theme="light" level={4} />
|
|
29
|
+
<DxcLink text="Test" href="https://www.google.com" icon={icon} iconPosition="before"></DxcLink>
|
|
30
|
+
<Title title="Icon after" theme="light" level={4} />
|
|
31
|
+
<DxcLink text="Test" href="https://www.youtube.com/" icon={icon} iconPosition="after"></DxcLink>
|
|
32
|
+
</ExampleContainer>
|
|
33
|
+
<ExampleContainer pseudoState="pseudo-hover">
|
|
34
|
+
<Title title="With link hovered" theme="light" level={4} />
|
|
35
|
+
<DxcLink text="Test" href="https://www.dxc.com"></DxcLink>
|
|
36
|
+
</ExampleContainer>
|
|
37
|
+
<ExampleContainer pseudoState="pseudo-focus">
|
|
38
|
+
<Title title="With link focused" theme="light" level={4} />
|
|
39
|
+
<DxcLink text="Test" href="https://www.dxc.com"></DxcLink>
|
|
40
|
+
</ExampleContainer>
|
|
41
|
+
<ExampleContainer pseudoState="pseudo-active">
|
|
42
|
+
<Title title="With link active" theme="light" level={4} />
|
|
43
|
+
<DxcLink text="Test" href="https://www.dxc.com"></DxcLink>
|
|
44
|
+
</ExampleContainer>
|
|
45
|
+
<ExampleContainer pseudoState="pseudo-visited">
|
|
46
|
+
<Title title="With link visited" theme="light" level={4} />
|
|
47
|
+
<DxcLink text="Test" href="https://www.amazon.com"></DxcLink>
|
|
48
|
+
</ExampleContainer>
|
|
49
|
+
<ExampleContainer>
|
|
50
|
+
<Title title="Inherit color" theme="light" level={4} />
|
|
51
|
+
This is a <DxcLink text="Test" inheritColor={true}></DxcLink>.
|
|
52
|
+
</ExampleContainer>
|
|
53
|
+
<ExampleContainer pseudoState="pseudo-focus">
|
|
54
|
+
<Title title="With brackets and focus" theme="light" level={4} />
|
|
55
|
+
This is a (<DxcLink text="Test" inheritColor={true}></DxcLink>).
|
|
56
|
+
</ExampleContainer>
|
|
57
|
+
<ExampleContainer pseudoState="pseudo-hover">
|
|
58
|
+
<Title title="Long text with hover" theme="light" level={4} />
|
|
59
|
+
Lorem <DxcLink text="Test" href="https://www.google.com"></DxcLink> ipsum dolor sit amet, consectetur adipiscing
|
|
60
|
+
elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
61
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
|
|
62
|
+
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
|
|
63
|
+
in culpa qui officia deserunt mollit anim id est laborum.
|
|
64
|
+
</ExampleContainer>
|
|
65
|
+
<ExampleContainer pseudoState="pseudo-focus">
|
|
66
|
+
<Title title="Long text with focus" theme="light" level={4} />
|
|
67
|
+
Lorem <DxcLink text="Test" href="https://www.google.com"></DxcLink> ipsum dolor sit amet, consectetur adipiscing
|
|
68
|
+
elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
69
|
+
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
|
|
70
|
+
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
|
|
71
|
+
in culpa qui officia deserunt mollit anim id est laborum.
|
|
72
|
+
</ExampleContainer>
|
|
73
|
+
<Title title="With button" theme="light" level={2} />
|
|
74
|
+
<ExampleContainer>
|
|
75
|
+
<Title title="Disabled" theme="light" level={4} />
|
|
76
|
+
<DxcLink text="Test" onClick={() => {}} disabled></DxcLink>
|
|
77
|
+
<Title title="Icon before" theme="light" level={4} />
|
|
78
|
+
<DxcLink text="Test" onClick={() => {}} href="https://www.google.com" icon={icon} iconPosition="before"></DxcLink>
|
|
79
|
+
<Title title="Icon after" theme="light" level={4} />
|
|
80
|
+
<DxcLink
|
|
81
|
+
text="Test"
|
|
82
|
+
onClick={() => {}}
|
|
83
|
+
href="https://www.youtube.com/"
|
|
84
|
+
icon={icon}
|
|
85
|
+
iconPosition="after"
|
|
86
|
+
></DxcLink>
|
|
87
|
+
</ExampleContainer>
|
|
88
|
+
<ExampleContainer pseudoState="pseudo-hover">
|
|
89
|
+
<Title title="With link hovered" theme="light" level={4} />
|
|
90
|
+
<DxcLink text="Test" onClick={() => {}} href="https://www.dxc.com"></DxcLink>
|
|
91
|
+
</ExampleContainer>
|
|
92
|
+
<ExampleContainer pseudoState="pseudo-focus">
|
|
93
|
+
<Title title="With link focused" theme="light" level={4} />
|
|
94
|
+
<DxcLink text="Test" onClick={() => {}} href="https://www.dxc.com"></DxcLink>
|
|
95
|
+
</ExampleContainer>
|
|
96
|
+
<ExampleContainer pseudoState="pseudo-active">
|
|
97
|
+
<Title title="With link active" theme="light" level={4} />
|
|
98
|
+
<DxcLink text="Test" onClick={() => {}} href="https://www.dxc.com"></DxcLink>
|
|
99
|
+
</ExampleContainer>
|
|
100
|
+
<ExampleContainer pseudoState="pseudo-visited">
|
|
101
|
+
<Title title="With link visited" theme="light" level={4} />
|
|
102
|
+
<DxcLink text="Test" onClick={() => {}} href="https://www.amazon.com"></DxcLink>
|
|
103
|
+
</ExampleContainer>
|
|
104
|
+
<ExampleContainer>
|
|
105
|
+
<Title title="Inherit color" theme="light" level={4} />
|
|
106
|
+
This is a <DxcLink text="Test" onClick={() => {}} inheritColor={true}></DxcLink>.
|
|
107
|
+
</ExampleContainer>
|
|
108
|
+
<ExampleContainer pseudoState="pseudo-focus">
|
|
109
|
+
<Title title="With brackets and focus" theme="light" level={4} />
|
|
110
|
+
This is a (<DxcLink text="Test" onClick={() => {}} inheritColor={true}></DxcLink>).
|
|
111
|
+
</ExampleContainer>
|
|
112
|
+
<ExampleContainer pseudoState="pseudo-hover">
|
|
113
|
+
<Title title="Long text with hover" theme="light" level={4} />
|
|
114
|
+
Lorem <DxcLink text="Test" onClick={() => {}} href="https://www.google.com"></DxcLink> ipsum dolor sit amet,
|
|
115
|
+
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
|
116
|
+
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
|
|
117
|
+
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
|
|
118
|
+
non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
119
|
+
</ExampleContainer>
|
|
120
|
+
<ExampleContainer pseudoState="pseudo-focus">
|
|
121
|
+
<Title title="Long text with focus" theme="light" level={4} />
|
|
122
|
+
Lorem <DxcLink text="Test" onClick={() => {}} href="https://www.google.com"></DxcLink> ipsum dolor sit amet,
|
|
123
|
+
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
|
124
|
+
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
|
|
125
|
+
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
|
|
126
|
+
non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
127
|
+
</ExampleContainer>
|
|
128
|
+
<Title title="Margins" theme="light" level={2} />
|
|
129
|
+
<ExampleContainer>
|
|
130
|
+
<Title title="Xxsmall margin" theme="light" level={4} />
|
|
131
|
+
<DxcLink text="Test" margin="xxsmall" href="https://www.facebook.com/"></DxcLink>
|
|
132
|
+
<Title title="Xsmall margin" theme="light" level={4} />
|
|
133
|
+
<DxcLink text="Test" margin="xsmall" href="https://www.linkedin.com/"></DxcLink>
|
|
134
|
+
<Title title="Small margin" theme="light" level={4} />
|
|
135
|
+
<DxcLink text="Test" margin="small" href="https://www.linkedin.com/"></DxcLink>
|
|
136
|
+
<Title title="Medium margin" theme="light" level={4} />
|
|
137
|
+
<DxcLink text="Test" margin="medium" href="https://www.linkedin.com/"></DxcLink>
|
|
138
|
+
<Title title="Large margin" theme="light" level={4} />
|
|
139
|
+
<DxcLink text="Test" margin="large" href="https://www.linkedin.com/"></DxcLink>
|
|
140
|
+
<Title title="Xlarge margin" theme="light" level={4} />
|
|
141
|
+
<DxcLink text="Test" margin="xlarge" href="https://www.linkedin.com/"></DxcLink>
|
|
142
|
+
<Title title="Xxlarge margin" theme="light" level={4} />
|
|
143
|
+
<DxcLink text="Test" margin="xxlarge" href="https://www.linkedin.com/"></DxcLink>
|
|
144
|
+
</ExampleContainer>
|
|
145
|
+
</>
|
|
146
|
+
);
|
package/list/List.d.ts
ADDED
package/list/List.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
15
|
+
|
|
16
|
+
var _Stack = _interopRequireDefault(require("../stack/Stack"));
|
|
17
|
+
|
|
18
|
+
var _Text = _interopRequireDefault(require("../text/Text"));
|
|
19
|
+
|
|
20
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
21
|
+
|
|
22
|
+
function List(_ref) {
|
|
23
|
+
var children = _ref.children,
|
|
24
|
+
_ref$type = _ref.type,
|
|
25
|
+
type = _ref$type === void 0 ? "disc" : _ref$type,
|
|
26
|
+
_ref$gutter = _ref.gutter,
|
|
27
|
+
gutter = _ref$gutter === void 0 ? "xxsmall" : _ref$gutter;
|
|
28
|
+
return /*#__PURE__*/_react["default"].createElement(_Stack["default"], {
|
|
29
|
+
as: type === "number" ? "ol" : "ul",
|
|
30
|
+
gutter: gutter
|
|
31
|
+
}, _react["default"].Children.map(children, function (child, index) {
|
|
32
|
+
return /*#__PURE__*/_react["default"].createElement(ListItem, null, type === "number" ? /*#__PURE__*/_react["default"].createElement(Number, null, /*#__PURE__*/_react["default"].createElement(_Text["default"], null, index + 1, ".")) : type === "square" ? /*#__PURE__*/_react["default"].createElement(Square, null) : type === "circle" ? /*#__PURE__*/_react["default"].createElement(Circle, null) : /*#__PURE__*/_react["default"].createElement(Disc, null), child);
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
var Number = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n user-select: none;\n margin-right: 10px;\n flex-shrink: 0;\n"])));
|
|
37
|
+
|
|
38
|
+
var Square = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n background-color: black;\n width: 5px;\n height: 5px;\n flex-shrink: 0;\n margin-top: 10px;\n margin-right: 10px;\n"])));
|
|
39
|
+
|
|
40
|
+
var Circle = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n width: 5px;\n height: 5px;\n border-radius: 50%;\n border: 1px solid black;\n flex-shrink: 0;\n margin-top: 10px;\n margin-right: 10px;\n box-sizing: border-box;\n"])));
|
|
41
|
+
|
|
42
|
+
var Disc = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n background-color: black;\n width: 5px;\n height: 5px;\n border-radius: 50%;\n flex-shrink: 0;\n margin-top: 10px;\n margin-right: 10px;\n"])));
|
|
43
|
+
|
|
44
|
+
var ListItem = _styledComponents["default"].li(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n margin: 0px;\n padding: 0px;\n list-style: none;\n display: flex;\n"])));
|
|
45
|
+
|
|
46
|
+
var _default = List;
|
|
47
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
import Title from "../../.storybook/components/Title";
|
|
4
|
+
import DxcList from "./List";
|
|
5
|
+
import DxcText from "../text/Text";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: "List",
|
|
9
|
+
component: DxcList,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const Chromatic = () => (
|
|
13
|
+
<>
|
|
14
|
+
<Title title="Default list" theme="light" level={4} />
|
|
15
|
+
<DxcList>
|
|
16
|
+
<DxcText>Text 1.</DxcText>
|
|
17
|
+
<DxcText>Text 2.</DxcText>
|
|
18
|
+
</DxcList>
|
|
19
|
+
<Title title="Number" theme="light" level={4} />
|
|
20
|
+
<DxcList type="number">
|
|
21
|
+
<DxcText>Text 1.</DxcText>
|
|
22
|
+
<DxcText>Text 2.</DxcText>
|
|
23
|
+
</DxcList>
|
|
24
|
+
<Title title="Square" theme="light" level={4} />
|
|
25
|
+
<DxcList type="square">
|
|
26
|
+
<DxcText>Text 1.</DxcText>
|
|
27
|
+
<DxcText>Text 2.</DxcText>
|
|
28
|
+
</DxcList>
|
|
29
|
+
<Title title="Circle" theme="light" level={4} />
|
|
30
|
+
<DxcList type="circle">
|
|
31
|
+
<DxcText>Text 1.</DxcText>
|
|
32
|
+
<DxcText>Text 2.</DxcText>
|
|
33
|
+
</DxcList>
|
|
34
|
+
<Title title="Multiple lines" theme="light" level={4} />
|
|
35
|
+
<Container>
|
|
36
|
+
<DxcList>
|
|
37
|
+
<DxcText>
|
|
38
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
|
39
|
+
magna aliqua.
|
|
40
|
+
</DxcText>
|
|
41
|
+
<DxcText>Text 2.</DxcText>
|
|
42
|
+
</DxcList>
|
|
43
|
+
</Container>
|
|
44
|
+
<Title title="gutter = xxxsmall" theme="light" level={4} />
|
|
45
|
+
<DxcList gutter="xxsmall">
|
|
46
|
+
<DxcText>Text 1.</DxcText>
|
|
47
|
+
<DxcText>Text 2.</DxcText>
|
|
48
|
+
</DxcList>
|
|
49
|
+
<Title title="gutter = xxsmall" theme="light" level={4} />
|
|
50
|
+
<DxcList gutter="xxsmall">
|
|
51
|
+
<DxcText>Text 1.</DxcText>
|
|
52
|
+
<DxcText>Text 2.</DxcText>
|
|
53
|
+
</DxcList>
|
|
54
|
+
<Title title="gutter = xsmall" theme="light" level={4} />
|
|
55
|
+
<DxcList gutter="xsmall">
|
|
56
|
+
<DxcText>Text 1.</DxcText>
|
|
57
|
+
<DxcText>Text 2.</DxcText>
|
|
58
|
+
</DxcList>
|
|
59
|
+
<Title title="gutter = small" theme="light" level={4} />
|
|
60
|
+
<DxcList gutter="small">
|
|
61
|
+
<DxcText>Text 1.</DxcText>
|
|
62
|
+
<DxcText>Text 2.</DxcText>
|
|
63
|
+
</DxcList>
|
|
64
|
+
<Title title="gutter = medium" theme="light" level={4} />
|
|
65
|
+
<DxcList gutter="medium">
|
|
66
|
+
<DxcText>Text 1.</DxcText>
|
|
67
|
+
<DxcText>Text 2.</DxcText>
|
|
68
|
+
</DxcList>
|
|
69
|
+
<Title title="gutter = large" theme="light" level={4} />
|
|
70
|
+
<DxcList gutter="large">
|
|
71
|
+
<DxcText>Text 1.</DxcText>
|
|
72
|
+
<DxcText>Text 2.</DxcText>
|
|
73
|
+
</DxcList>
|
|
74
|
+
<Title title="gutter = xlarge" theme="light" level={4} />
|
|
75
|
+
<DxcList gutter="xlarge">
|
|
76
|
+
<DxcText>Text 1.</DxcText>
|
|
77
|
+
<DxcText>Text 2.</DxcText>
|
|
78
|
+
</DxcList>
|
|
79
|
+
<Title title="gutter = xxlarge" theme="light" level={4} />
|
|
80
|
+
<DxcList gutter="xxlarge">
|
|
81
|
+
<DxcText>Text 1.</DxcText>
|
|
82
|
+
<DxcText>Text 2.</DxcText>
|
|
83
|
+
</DxcList>
|
|
84
|
+
<Title title="gutter = xxxlarge" theme="light" level={4} />
|
|
85
|
+
<DxcList gutter="xxxlarge">
|
|
86
|
+
<DxcText>Text 1.</DxcText>
|
|
87
|
+
<DxcText>Text 2.</DxcText>
|
|
88
|
+
</DxcList>
|
|
89
|
+
|
|
90
|
+
</>
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
const Container = styled.div`
|
|
94
|
+
width: 400px;
|
|
95
|
+
`;
|
package/list/types.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Props = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
gutter?: "none" | "xxxsmall" | "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge" | "xxxlarge";
|
|
5
|
+
type?: "disc" | "circle" | "square" | "number";
|
|
6
|
+
};
|
|
7
|
+
export default Props;
|
package/list/types.js
ADDED
package/main.d.ts
CHANGED
|
@@ -39,6 +39,10 @@ import DxcNumberInput from "./number-input/NumberInput";
|
|
|
39
39
|
import DxcTextarea from "./textarea/Textarea";
|
|
40
40
|
import DxcSelect from "./select/Select";
|
|
41
41
|
import DxcFileInput from "./file-input/FileInput";
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
|
|
42
|
+
import DxcStack from "./stack/Stack";
|
|
43
|
+
import DxcRow from "./row/Row";
|
|
44
|
+
import DxcText from "./text/Text";
|
|
45
|
+
import DxcList from "./list/List";
|
|
46
|
+
import ThemeContext, { ThemeProvider } from "./ThemeContext";
|
|
47
|
+
import { BackgroundColorProvider } from "./BackgroundColorContext";
|
|
48
|
+
export { DxcAlert, DxcButton, DxcFooter, DxcCheckbox, V3DxcSelect, DxcInput, DxcTextInput, DxcDropdown, DxcSwitch, DxcSlider, DxcRadio, DxcDate, DxcHeader, DxcTable, DxcTabs, DxcToggleGroup, DxcDialog, DxcCard, DxcProgressBar, DxcAccordion, DxcSpinner, DxcUpload, DxcBox, DxcTag, DxcPaginator, DxcSidenav, DxcWizard, DxcLink, DxcHeading, V3DxcTextarea, DxcResultsetTable, DxcChip, DxcApplicationLayout, ThemeContext, ThemeProvider, BackgroundColorProvider, DxcAccordionGroup, DxcBadge, DxcPasswordInput, DxcDateInput, DxcNumberInput, DxcTextarea, DxcSelect, DxcFileInput, DxcStack, DxcRow, DxcText, DxcList, };
|