@dxc-technology/halstack-react 0.0.0-71a326e → 0.0.0-7303985
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 -3
- 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.js +2 -2
- package/accordion/Accordion.stories.tsx +300 -0
- package/accordion/types.d.ts +2 -2
- package/accordion-group/AccordionGroup.js +2 -2
- package/accordion-group/AccordionGroup.stories.tsx +225 -0
- package/accordion-group/types.d.ts +2 -2
- 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/box/Box.d.ts +4 -0
- package/box/Box.js +6 -32
- package/box/Box.stories.tsx +132 -0
- package/box/types.d.ts +43 -0
- package/box/types.js +5 -0
- package/button/Button.d.ts +1 -1
- package/button/Button.js +9 -12
- package/button/Button.stories.tsx +217 -234
- package/button/types.d.ts +11 -11
- package/card/Card.d.ts +4 -0
- package/card/Card.js +17 -53
- package/card/Card.stories.tsx +201 -0
- package/card/ice-cream.jpg +0 -0
- package/card/types.d.ts +67 -0
- package/card/types.js +5 -0
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Checkbox.stories.tsx +192 -0
- package/checkbox/types.d.ts +1 -1
- package/chip/Chip.d.ts +4 -0
- package/chip/Chip.js +5 -27
- package/chip/Chip.stories.tsx +121 -0
- package/chip/types.d.ts +53 -0
- package/chip/types.js +5 -0
- package/common/variables.js +49 -44
- package/date/Date.js +1 -1
- package/date-input/DateInput.js +4 -7
- package/date-input/DateInput.stories.tsx +138 -0
- package/dialog/Dialog.d.ts +4 -0
- package/dialog/Dialog.js +6 -25
- package/dialog/Dialog.stories.tsx +212 -0
- package/dialog/types.d.ts +43 -0
- package/dialog/types.js +5 -0
- package/dropdown/Dropdown.d.ts +4 -0
- package/dropdown/Dropdown.js +8 -41
- package/dropdown/Dropdown.stories.tsx +247 -0
- package/dropdown/types.d.ts +89 -0
- package/dropdown/types.js +5 -0
- package/file-input/FileInput.d.ts +4 -0
- package/file-input/FileInput.js +65 -76
- 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 +4 -0
- package/footer/Footer.js +15 -52
- package/footer/Footer.stories.tsx +130 -0
- package/footer/Icons.d.ts +2 -0
- package/footer/Icons.js +3 -3
- package/footer/types.d.ts +65 -0
- package/footer/types.js +5 -0
- package/header/Header.d.ts +7 -0
- package/header/Header.js +28 -30
- package/header/Header.stories.tsx +162 -0
- package/header/Icons.d.ts +2 -0
- package/header/Icons.js +2 -27
- package/header/types.d.ts +47 -0
- package/header/types.js +5 -0
- package/heading/Heading.d.ts +4 -0
- package/heading/Heading.js +7 -24
- package/heading/Heading.stories.tsx +53 -0
- package/heading/types.d.ts +33 -0
- package/heading/types.js +5 -0
- package/input-text/InputText.js +2 -2
- package/layout/ApplicationLayout.d.ts +10 -0
- package/layout/ApplicationLayout.js +8 -18
- package/layout/ApplicationLayout.stories.tsx +171 -0
- package/layout/types.d.ts +57 -0
- package/layout/types.js +5 -0
- package/link/Link.d.ts +3 -0
- package/link/Link.js +4 -26
- package/link/Link.stories.tsx +146 -0
- package/link/types.d.ts +74 -0
- package/link/types.js +5 -0
- package/list/List.d.ts +8 -0
- package/list/List.js +47 -0
- package/list/List.stories.tsx +85 -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.tsx +115 -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 +1 -1
- package/paginator/Paginator.js +2 -8
- package/paginator/Paginator.stories.tsx +63 -0
- package/password-input/PasswordInput.d.ts +4 -0
- package/password-input/PasswordInput.js +19 -55
- package/password-input/{PasswordInput.stories.jsx → PasswordInput.stories.tsx} +1 -1
- package/password-input/types.d.ts +107 -0
- package/password-input/types.js +5 -0
- package/progress-bar/ProgressBar.d.ts +4 -0
- package/progress-bar/ProgressBar.js +5 -23
- package/progress-bar/ProgressBar.stories.jsx +58 -0
- package/progress-bar/types.d.ts +37 -0
- package/progress-bar/types.js +5 -0
- package/radio/Radio.js +2 -2
- package/radio/Radio.stories.tsx +192 -0
- package/radio/types.d.ts +2 -2
- package/resultsetTable/ResultsetTable.d.ts +4 -0
- package/resultsetTable/ResultsetTable.js +4 -27
- package/resultsetTable/ResultsetTable.stories.tsx +276 -0
- package/resultsetTable/types.d.ts +67 -0
- package/resultsetTable/types.js +5 -0
- package/row/Row.d.ts +11 -0
- package/row/Row.js +124 -0
- package/row/Row.stories.tsx +223 -0
- package/select/Select.js +15 -17
- package/select/Select.stories.tsx +572 -0
- package/select/index.d.ts +4 -4
- package/sidenav/Sidenav.d.ts +9 -0
- package/sidenav/Sidenav.js +6 -15
- package/sidenav/Sidenav.stories.tsx +165 -0
- package/sidenav/types.d.ts +50 -0
- package/sidenav/types.js +5 -0
- package/slider/Slider.d.ts +4 -0
- package/slider/Slider.js +61 -84
- package/slider/Slider.stories.tsx +177 -0
- package/slider/types.d.ts +78 -0
- package/slider/types.js +5 -0
- package/spinner/Spinner.d.ts +4 -0
- package/spinner/Spinner.js +8 -25
- package/spinner/Spinner.stories.jsx +102 -0
- package/spinner/types.d.ts +32 -0
- package/spinner/types.js +5 -0
- package/stack/Stack.d.ts +10 -0
- package/stack/Stack.js +94 -0
- package/stack/Stack.stories.tsx +150 -0
- package/switch/Switch.js +4 -4
- package/switch/Switch.stories.tsx +160 -0
- package/table/Table.d.ts +4 -0
- package/table/Table.js +3 -3
- package/table/Table.stories.jsx +276 -0
- package/table/types.d.ts +21 -0
- package/table/types.js +5 -0
- package/tabs/Tabs.d.ts +4 -0
- package/tabs/Tabs.js +9 -55
- package/tabs/Tabs.stories.tsx +121 -0
- package/tabs/types.d.ts +70 -0
- package/tabs/types.js +5 -0
- package/tag/Tag.d.ts +4 -0
- package/tag/Tag.js +21 -36
- package/tag/Tag.stories.tsx +145 -0
- package/tag/types.d.ts +60 -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 +42 -81
- 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 +135 -0
- 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/box/index.d.ts +0 -25
- package/card/index.d.ts +0 -22
- package/chip/index.d.ts +0 -22
- package/dialog/index.d.ts +0 -18
- package/dropdown/index.d.ts +0 -26
- package/file-input/index.d.ts +0 -81
- package/footer/index.d.ts +0 -25
- package/header/index.d.ts +0 -25
- package/heading/index.d.ts +0 -17
- package/link/index.d.ts +0 -23
- package/number-input/index.d.ts +0 -113
- package/password-input/index.d.ts +0 -94
- package/progress-bar/index.d.ts +0 -18
- package/resultsetTable/index.d.ts +0 -19
- package/sidenav/index.d.ts +0 -13
- package/slider/index.d.ts +0 -29
- package/spinner/index.d.ts +0 -17
- package/table/index.d.ts +0 -13
- package/tabs/index.d.ts +0 -19
- 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
package/box/types.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
+
declare type Margin = {
|
|
4
|
+
top?: Space;
|
|
5
|
+
bottom?: Space;
|
|
6
|
+
left?: Space;
|
|
7
|
+
right?: Space;
|
|
8
|
+
};
|
|
9
|
+
declare type Padding = {
|
|
10
|
+
top?: Space;
|
|
11
|
+
bottom?: Space;
|
|
12
|
+
left?: Space;
|
|
13
|
+
right?: Space;
|
|
14
|
+
};
|
|
15
|
+
declare type Props = {
|
|
16
|
+
/**
|
|
17
|
+
* The size of the shadow to be displayed around the box.
|
|
18
|
+
*/
|
|
19
|
+
shadowDepth?: 0 | 1 | 2;
|
|
20
|
+
/**
|
|
21
|
+
* Changes the display CSS property of the box div.
|
|
22
|
+
*/
|
|
23
|
+
display?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Custom content that will be placed in the box component.
|
|
26
|
+
*/
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
30
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
31
|
+
*/
|
|
32
|
+
margin?: Space | Margin;
|
|
33
|
+
/**
|
|
34
|
+
* Size of the padding to be applied to the custom area ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
35
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different padding sizes.
|
|
36
|
+
*/
|
|
37
|
+
padding?: Space | Padding;
|
|
38
|
+
/**
|
|
39
|
+
* Size of the component.
|
|
40
|
+
*/
|
|
41
|
+
size?: "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
42
|
+
};
|
|
43
|
+
export default Props;
|
package/box/types.js
ADDED
package/button/Button.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import ButtonPropsType from "./types";
|
|
3
|
-
declare const DxcButton: ({ label, mode, disabled, iconPosition, type,
|
|
3
|
+
declare const DxcButton: ({ label, mode, disabled, iconPosition, type, icon, iconSrc, onClick, margin, size, tabIndex, }: ButtonPropsType) => JSX.Element;
|
|
4
4
|
export default DxcButton;
|
package/button/Button.js
CHANGED
|
@@ -23,9 +23,9 @@ var _variables = require("../common/variables.js");
|
|
|
23
23
|
|
|
24
24
|
var _utils = require("../common/utils.js");
|
|
25
25
|
|
|
26
|
-
var _useTheme = _interopRequireDefault(require("../useTheme
|
|
26
|
+
var _useTheme = _interopRequireDefault(require("../useTheme"));
|
|
27
27
|
|
|
28
|
-
var _BackgroundColorContext = _interopRequireDefault(require("../BackgroundColorContext
|
|
28
|
+
var _BackgroundColorContext = _interopRequireDefault(require("../BackgroundColorContext"));
|
|
29
29
|
|
|
30
30
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
31
31
|
|
|
@@ -44,16 +44,15 @@ var DxcButton = function DxcButton(_ref) {
|
|
|
44
44
|
iconPosition = _ref$iconPosition === void 0 ? "before" : _ref$iconPosition,
|
|
45
45
|
_ref$type = _ref.type,
|
|
46
46
|
type = _ref$type === void 0 ? "button" : _ref$type,
|
|
47
|
+
icon = _ref.icon,
|
|
47
48
|
_ref$iconSrc = _ref.iconSrc,
|
|
48
49
|
iconSrc = _ref$iconSrc === void 0 ? "" : _ref$iconSrc,
|
|
49
|
-
|
|
50
|
-
_ref$onClick = _ref.onClick,
|
|
51
|
-
_onClick = _ref$onClick === void 0 ? "" : _ref$onClick,
|
|
50
|
+
_onClick = _ref.onClick,
|
|
52
51
|
margin = _ref.margin,
|
|
53
|
-
size = _ref.size,
|
|
52
|
+
_ref$size = _ref.size,
|
|
53
|
+
size = _ref$size === void 0 ? "fitContent" : _ref$size,
|
|
54
54
|
_ref$tabIndex = _ref.tabIndex,
|
|
55
55
|
tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
|
|
56
|
-
|
|
57
56
|
var colorsTheme = (0, _useTheme["default"])();
|
|
58
57
|
var backgroundType = (0, _react.useContext)(_BackgroundColorContext["default"]);
|
|
59
58
|
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
@@ -68,15 +67,13 @@ var DxcButton = function DxcButton(_ref) {
|
|
|
68
67
|
backgroundType: backgroundType,
|
|
69
68
|
icon: icon
|
|
70
69
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
71
|
-
disabled: disabled,
|
|
72
70
|
type: type,
|
|
71
|
+
disabled: disabled,
|
|
73
72
|
disableRipple: true,
|
|
74
|
-
"aria-disabled": disabled
|
|
73
|
+
"aria-disabled": disabled,
|
|
75
74
|
tabIndex: disabled ? -1 : tabIndex,
|
|
76
75
|
onClick: function onClick() {
|
|
77
|
-
|
|
78
|
-
_onClick();
|
|
79
|
-
}
|
|
76
|
+
_onClick();
|
|
80
77
|
}
|
|
81
78
|
}, label && /*#__PURE__*/_react["default"].createElement(LabelContainer, {
|
|
82
79
|
icon: icon,
|
|
@@ -6,7 +6,7 @@ import ExampleContainer from "../../.storybook/components/ExampleContainer";
|
|
|
6
6
|
import DarkContainer from "../../.storybook/components/DarkSection";
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
|
-
title: "Button
|
|
9
|
+
title: "Button",
|
|
10
10
|
component: DxcButton,
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -20,274 +20,257 @@ const iconSVG = () => {
|
|
|
20
20
|
};
|
|
21
21
|
export const Chromatic = () => (
|
|
22
22
|
<>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
23
|
+
<Title title="Primary" theme="light" level={2} />
|
|
24
|
+
<ExampleContainer>
|
|
25
|
+
<Title title="Enabled" theme="light" level={4} />
|
|
26
|
+
<DxcButton label="Primary enabled" />
|
|
27
|
+
</ExampleContainer>
|
|
28
|
+
<ExampleContainer pseudoState="pseudo-hover">
|
|
29
|
+
<Title title="Hovered" theme="light" level={4} />
|
|
30
|
+
<DxcButton label="Primary hovered" />
|
|
31
|
+
</ExampleContainer>
|
|
32
|
+
<ExampleContainer pseudoState="pseudo-focus">
|
|
33
|
+
<Title title="Focused" theme="light" level={4} />
|
|
34
|
+
<DxcButton label="Primary focused" />
|
|
35
|
+
</ExampleContainer>
|
|
36
|
+
<ExampleContainer pseudoState="pseudo-active">
|
|
37
|
+
<Title title="Actived" theme="light" level={4} />
|
|
38
|
+
<DxcButton label="Primary actived" />
|
|
39
|
+
</ExampleContainer>
|
|
40
|
+
<ExampleContainer>
|
|
41
|
+
<Title title="Disabled" theme="light" level={4} />
|
|
42
|
+
<DxcButton label="Primary disabled" disabled />
|
|
43
|
+
</ExampleContainer>
|
|
44
|
+
<ExampleContainer>
|
|
45
|
+
<Title title="With left icon" theme="light" level={4} />
|
|
46
|
+
<DxcButton label="Primary" icon={iconSVG} />
|
|
47
|
+
</ExampleContainer>
|
|
48
|
+
<ExampleContainer>
|
|
49
|
+
<Title title="With right icon" theme="light" level={4} />
|
|
50
|
+
<DxcButton label="Primary" icon={iconSVG} iconPosition="after" />
|
|
51
|
+
</ExampleContainer>
|
|
52
|
+
<ExampleContainer>
|
|
53
|
+
<Title title="Only icon" theme="light" level={4} />
|
|
54
|
+
<DxcButton icon={iconSVG} />
|
|
55
|
+
</ExampleContainer>
|
|
56
|
+
<Title title="Secondary" theme="light" level={2} />
|
|
57
|
+
<ExampleContainer>
|
|
58
|
+
<Title title="Enabled" theme="light" level={4} />
|
|
59
|
+
<DxcButton mode="secondary" label="Secondary enabled" />
|
|
60
|
+
</ExampleContainer>
|
|
61
|
+
<ExampleContainer pseudoState="pseudo-hover">
|
|
62
|
+
<Title title="Hovered" theme="light" level={4} />
|
|
63
|
+
<DxcButton mode="secondary" label="Secondary hovered" />
|
|
64
|
+
</ExampleContainer>
|
|
65
|
+
<ExampleContainer pseudoState="pseudo-focus">
|
|
66
|
+
<Title title="Focused" theme="light" level={4} />
|
|
67
|
+
<DxcButton mode="secondary" label="Secondary focused" />
|
|
68
|
+
</ExampleContainer>
|
|
69
|
+
<ExampleContainer pseudoState="pseudo-active">
|
|
70
|
+
<Title title="Actived" theme="light" level={4} />
|
|
71
|
+
<DxcButton mode="secondary" label="Secondary actived" />
|
|
72
|
+
</ExampleContainer>
|
|
73
|
+
<ExampleContainer>
|
|
74
|
+
<Title title="Disabled" theme="light" level={4} />
|
|
75
|
+
<DxcButton mode="secondary" disabled label="Secondary disabled" />
|
|
76
|
+
</ExampleContainer>
|
|
77
|
+
<ExampleContainer>
|
|
78
|
+
<Title title="With icon" theme="light" level={4} />
|
|
79
|
+
<DxcButton mode="secondary" label="Secondary" icon={iconSVG} />
|
|
80
|
+
</ExampleContainer>
|
|
81
|
+
<Title title="Text" theme="light" level={2} />
|
|
82
|
+
<ExampleContainer>
|
|
83
|
+
<Title title="Enabled" theme="light" level={4} />
|
|
84
|
+
<DxcButton mode="text" label="Text enabled" />
|
|
85
|
+
</ExampleContainer>
|
|
86
|
+
<ExampleContainer pseudoState="pseudo-hover">
|
|
87
|
+
<Title title="Hovered" theme="light" level={4} />
|
|
88
|
+
<DxcButton mode="text" label="Text hovered" />
|
|
89
|
+
</ExampleContainer>
|
|
90
|
+
<ExampleContainer pseudoState="pseudo-focus">
|
|
91
|
+
<Title title="Focused" theme="light" level={4} />
|
|
92
|
+
<DxcButton mode="text" label="Text focused" />
|
|
93
|
+
</ExampleContainer>
|
|
94
|
+
<ExampleContainer pseudoState="pseudo-active">
|
|
95
|
+
<Title title="Actived" theme="light" level={4} />
|
|
96
|
+
<DxcButton mode="text" label="Text actived" />
|
|
97
|
+
</ExampleContainer>
|
|
98
|
+
<ExampleContainer>
|
|
99
|
+
<Title title="Disabled" theme="light" level={4} />
|
|
100
|
+
<DxcButton mode="text" label="Text disabled" disabled />
|
|
101
|
+
</ExampleContainer>
|
|
102
|
+
<ExampleContainer>
|
|
103
|
+
<Title title="With icon" theme="light" level={4} />
|
|
104
|
+
<DxcButton label="Text" mode="text" icon={iconSVG} />
|
|
105
|
+
</ExampleContainer>
|
|
106
|
+
<BackgroundColorProvider color="#333333">
|
|
107
|
+
<DarkContainer>
|
|
108
|
+
<Title title="Primary" theme="dark" level={2} />
|
|
61
109
|
<ExampleContainer>
|
|
62
|
-
<Title title="Enabled" theme="
|
|
110
|
+
<Title title="Enabled" theme="dark" level={4} />
|
|
111
|
+
<DxcButton label="Primary enabled" />
|
|
112
|
+
</ExampleContainer>
|
|
113
|
+
<ExampleContainer pseudoState="pseudo-hover">
|
|
114
|
+
<Title title="Hovered" theme="dark" level={4} />
|
|
115
|
+
<DxcButton label="Primary hovered" />
|
|
116
|
+
</ExampleContainer>
|
|
117
|
+
<ExampleContainer pseudoState="pseudo-focus">
|
|
118
|
+
<Title title="Focused" theme="dark" level={4} />
|
|
119
|
+
<DxcButton label="Primary focused" />
|
|
120
|
+
</ExampleContainer>
|
|
121
|
+
<ExampleContainer pseudoState="pseudo-active">
|
|
122
|
+
<Title title="Actived" theme="dark" level={4} />
|
|
123
|
+
<DxcButton label="Primary actived" />
|
|
124
|
+
</ExampleContainer>
|
|
125
|
+
<ExampleContainer>
|
|
126
|
+
<Title title="Disabled" theme="dark" level={4} />
|
|
127
|
+
<DxcButton label="Primary disabled" disabled />
|
|
128
|
+
</ExampleContainer>
|
|
129
|
+
<ExampleContainer>
|
|
130
|
+
<Title title="With icon" theme="dark" level={4} />
|
|
131
|
+
<DxcButton label="Primary" icon={iconSVG} />
|
|
132
|
+
</ExampleContainer>
|
|
133
|
+
<Title title="Secondary" theme="dark" level={2} />
|
|
134
|
+
<ExampleContainer>
|
|
135
|
+
<Title title="Enabled" theme="dark" level={4} />
|
|
63
136
|
<DxcButton mode="secondary" label="Secondary enabled" />
|
|
64
137
|
</ExampleContainer>
|
|
65
138
|
<ExampleContainer pseudoState="pseudo-hover">
|
|
66
|
-
<Title title="Hovered" theme="
|
|
139
|
+
<Title title="Hovered" theme="dark" level={4} />
|
|
67
140
|
<DxcButton mode="secondary" label="Secondary hovered" />
|
|
68
141
|
</ExampleContainer>
|
|
69
142
|
<ExampleContainer pseudoState="pseudo-focus">
|
|
70
|
-
<Title title="Focused" theme="
|
|
143
|
+
<Title title="Focused" theme="dark" level={4} />
|
|
71
144
|
<DxcButton mode="secondary" label="Secondary focused" />
|
|
72
145
|
</ExampleContainer>
|
|
73
146
|
<ExampleContainer pseudoState="pseudo-active">
|
|
74
|
-
<Title title="Actived" theme="
|
|
147
|
+
<Title title="Actived" theme="dark" level={4} />
|
|
75
148
|
<DxcButton mode="secondary" label="Secondary actived" />
|
|
76
149
|
</ExampleContainer>
|
|
77
150
|
<ExampleContainer>
|
|
78
|
-
<Title title="Disabled" theme="
|
|
151
|
+
<Title title="Disabled" theme="dark" level={4} />
|
|
79
152
|
<DxcButton mode="secondary" disabled label="Secondary disabled" />
|
|
80
153
|
</ExampleContainer>
|
|
81
154
|
<ExampleContainer>
|
|
82
|
-
<Title title="With icon" theme="
|
|
83
|
-
<DxcButton mode="secondary" label="
|
|
155
|
+
<Title title="With icon" theme="dark" level={4} />
|
|
156
|
+
<DxcButton mode="secondary" label="Primary" icon={iconSVG} />
|
|
84
157
|
</ExampleContainer>
|
|
85
|
-
|
|
86
|
-
<>
|
|
87
|
-
<Title title="Text" theme="light" level={2}/>
|
|
158
|
+
<Title title="Text" theme="dark" level={2} />
|
|
88
159
|
<ExampleContainer>
|
|
89
|
-
<Title title="Enabled" theme="
|
|
160
|
+
<Title title="Enabled" theme="dark" level={4} />
|
|
90
161
|
<DxcButton mode="text" label="Text enabled" />
|
|
91
162
|
</ExampleContainer>
|
|
92
163
|
<ExampleContainer pseudoState="pseudo-hover">
|
|
93
|
-
<Title title="Hovered" theme="
|
|
164
|
+
<Title title="Hovered" theme="dark" level={4} />
|
|
94
165
|
<DxcButton mode="text" label="Text hovered" />
|
|
95
166
|
</ExampleContainer>
|
|
96
167
|
<ExampleContainer pseudoState="pseudo-focus">
|
|
97
|
-
<Title title="Focused" theme="
|
|
168
|
+
<Title title="Focused" theme="dark" level={4} />
|
|
98
169
|
<DxcButton mode="text" label="Text focused" />
|
|
99
170
|
</ExampleContainer>
|
|
100
171
|
<ExampleContainer pseudoState="pseudo-active">
|
|
101
|
-
<Title title="Actived" theme="
|
|
172
|
+
<Title title="Actived" theme="dark" level={4} />
|
|
102
173
|
<DxcButton mode="text" label="Text actived" />
|
|
103
174
|
</ExampleContainer>
|
|
104
175
|
<ExampleContainer>
|
|
105
|
-
<Title title="Disabled" theme="
|
|
176
|
+
<Title title="Disabled" theme="dark" level={4} />
|
|
106
177
|
<DxcButton mode="text" label="Text disabled" disabled />
|
|
107
178
|
</ExampleContainer>
|
|
108
179
|
<ExampleContainer>
|
|
109
|
-
<Title title="With icon" theme="
|
|
110
|
-
<DxcButton
|
|
180
|
+
<Title title="With icon" theme="dark" level={4} />
|
|
181
|
+
<DxcButton mode="text" label="Primary" icon={iconSVG} />
|
|
111
182
|
</ExampleContainer>
|
|
112
|
-
</>
|
|
113
|
-
</>
|
|
114
|
-
<BackgroundColorProvider color="#333333">
|
|
115
|
-
<DarkContainer>
|
|
116
|
-
<>
|
|
117
|
-
<Title title="Primary" theme="dark" level={2}/>
|
|
118
|
-
<ExampleContainer>
|
|
119
|
-
<Title title="Enabled" theme="dark" level={4}/>
|
|
120
|
-
<DxcButton label="Primary enabled" />
|
|
121
|
-
</ExampleContainer>
|
|
122
|
-
<ExampleContainer pseudoState="pseudo-hover">
|
|
123
|
-
<Title title="Hovered" theme="dark" level={4}/>
|
|
124
|
-
<DxcButton label="Primary hovered" />
|
|
125
|
-
</ExampleContainer>
|
|
126
|
-
<ExampleContainer pseudoState="pseudo-focus">
|
|
127
|
-
<Title title="Focused" theme="dark" level={4}/>
|
|
128
|
-
<DxcButton label="Primary focused" />
|
|
129
|
-
</ExampleContainer>
|
|
130
|
-
<ExampleContainer pseudoState="pseudo-active">
|
|
131
|
-
<Title title="Actived" theme="dark" level={4}/>
|
|
132
|
-
<DxcButton label="Primary actived" />
|
|
133
|
-
</ExampleContainer>
|
|
134
|
-
<ExampleContainer>
|
|
135
|
-
<Title title="Disabled" theme="dark" level={4}/>
|
|
136
|
-
<DxcButton label="Primary disabled" disabled />
|
|
137
|
-
</ExampleContainer>
|
|
138
|
-
<ExampleContainer>
|
|
139
|
-
<Title title="With icon" theme="dark" level={4}/>
|
|
140
|
-
<DxcButton label="Primary" icon={iconSVG} />
|
|
141
|
-
</ExampleContainer>
|
|
142
|
-
</>
|
|
143
|
-
<>
|
|
144
|
-
<Title title="Secondary" theme="dark" level={2}/>
|
|
145
|
-
<ExampleContainer>
|
|
146
|
-
<Title title="Enabled" theme="dark" level={4}/>
|
|
147
|
-
<DxcButton mode="secondary" label="Secondary enabled" />
|
|
148
|
-
</ExampleContainer>
|
|
149
|
-
<ExampleContainer pseudoState="pseudo-hover">
|
|
150
|
-
<Title title="Hovered" theme="dark" level={4}/>
|
|
151
|
-
<DxcButton mode="secondary" label="Secondary hovered" />
|
|
152
|
-
</ExampleContainer>
|
|
153
|
-
<ExampleContainer pseudoState="pseudo-focus">
|
|
154
|
-
<Title title="Focused" theme="dark" level={4}/>
|
|
155
|
-
<DxcButton mode="secondary" label="Secondary focused" />
|
|
156
|
-
</ExampleContainer>
|
|
157
|
-
<ExampleContainer pseudoState="pseudo-active">
|
|
158
|
-
<Title title="Actived" theme="dark" level={4}/>
|
|
159
|
-
<DxcButton mode="secondary" label="Secondary actived" />
|
|
160
|
-
</ExampleContainer>
|
|
161
|
-
<ExampleContainer>
|
|
162
|
-
<Title title="Disabled" theme="dark" level={4}/>
|
|
163
|
-
<DxcButton mode="secondary" disabled label="Secondary disabled" />
|
|
164
|
-
</ExampleContainer>
|
|
165
|
-
<ExampleContainer>
|
|
166
|
-
<Title title="With icon" theme="dark" level={4}/>
|
|
167
|
-
<DxcButton mode="secondary" label="Primary" icon={iconSVG} />
|
|
168
|
-
</ExampleContainer>
|
|
169
|
-
</>
|
|
170
|
-
<>
|
|
171
|
-
<Title title="Text" theme="dark" level={2}/>
|
|
172
|
-
<ExampleContainer>
|
|
173
|
-
<Title title="Enabled" theme="dark" level={4}/>
|
|
174
|
-
<DxcButton mode="text" label="Text enabled" />
|
|
175
|
-
</ExampleContainer>
|
|
176
|
-
<ExampleContainer pseudoState="pseudo-hover">
|
|
177
|
-
<Title title="Hovered" theme="dark" level={4}/>
|
|
178
|
-
<DxcButton mode="text" label="Text hovered" />
|
|
179
|
-
</ExampleContainer>
|
|
180
|
-
<ExampleContainer pseudoState="pseudo-focus">
|
|
181
|
-
<Title title="Focused" theme="dark" level={4}/>
|
|
182
|
-
<DxcButton mode="text" label="Text focused" />
|
|
183
|
-
</ExampleContainer>
|
|
184
|
-
<ExampleContainer pseudoState="pseudo-active">
|
|
185
|
-
<Title title="Actived" theme="dark" level={4}/>
|
|
186
|
-
<DxcButton mode="text" label="Text actived" />
|
|
187
|
-
</ExampleContainer>
|
|
188
|
-
<ExampleContainer>
|
|
189
|
-
<Title title="Disabled" theme="dark" level={4}/>
|
|
190
|
-
<DxcButton mode="text" label="Text disabled" disabled />
|
|
191
|
-
</ExampleContainer>
|
|
192
|
-
<ExampleContainer>
|
|
193
|
-
<Title title="With icon" theme="dark" level={4}/>
|
|
194
|
-
<DxcButton mode="text" label="Primary" icon={iconSVG} />
|
|
195
|
-
</ExampleContainer>
|
|
196
|
-
</>
|
|
197
183
|
</DarkContainer>
|
|
198
184
|
</BackgroundColorProvider>
|
|
199
|
-
|
|
200
|
-
<
|
|
201
|
-
<
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
<
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
<
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
<
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
<
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
<
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
<
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
<
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
<
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
<
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
<
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
<
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
<
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
<
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
<
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
<
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
<
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
<
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
<
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
<
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
<
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
<
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
</ExampleContainer>
|
|
290
|
-
</>
|
|
185
|
+
<Title title="Sizes" theme="light" level={2} />
|
|
186
|
+
<ExampleContainer>
|
|
187
|
+
<Title title="Small size" theme="light" level={4} />
|
|
188
|
+
<DxcButton label="Small" size="small" />
|
|
189
|
+
</ExampleContainer>
|
|
190
|
+
<ExampleContainer>
|
|
191
|
+
<Title title="Medium size" theme="light" level={4} />
|
|
192
|
+
<DxcButton label="MediumSiz" size="medium" />
|
|
193
|
+
</ExampleContainer>
|
|
194
|
+
<ExampleContainer>
|
|
195
|
+
<Title title="Medium size with ellipsis" theme="light" level={4} />
|
|
196
|
+
<DxcButton label="MediumSize" size="medium" />
|
|
197
|
+
</ExampleContainer>
|
|
198
|
+
<ExampleContainer>
|
|
199
|
+
<Title title="Medium size icon after" theme="light" level={4} />
|
|
200
|
+
<DxcButton label="Mediu" iconPosition="after" icon={iconSVG} size="medium" />
|
|
201
|
+
</ExampleContainer>
|
|
202
|
+
<ExampleContainer>
|
|
203
|
+
<Title title="Medium size icon before" theme="light" level={4} />
|
|
204
|
+
<DxcButton label="Mediu" iconPosition="before" icon={iconSVG} size="medium" />
|
|
205
|
+
</ExampleContainer>
|
|
206
|
+
<ExampleContainer>
|
|
207
|
+
<Title title="Medium size icon after with ellipsis" theme="light" level={4} />
|
|
208
|
+
<DxcButton label="Medium" iconPosition="after" icon={iconSVG} size="medium" />
|
|
209
|
+
</ExampleContainer>
|
|
210
|
+
<ExampleContainer>
|
|
211
|
+
<Title title="Medium size icon before with ellipsis" theme="light" level={4} />
|
|
212
|
+
<DxcButton label="Medium" iconPosition="before" icon={iconSVG} size="medium" />
|
|
213
|
+
</ExampleContainer>
|
|
214
|
+
<ExampleContainer>
|
|
215
|
+
<Title title="Large size" theme="light" level={4} />
|
|
216
|
+
<DxcButton label="LargeSizePrimaryButtonEx" size="large" />
|
|
217
|
+
</ExampleContainer>
|
|
218
|
+
<ExampleContainer>
|
|
219
|
+
<Title title="Large size with ellipsis" theme="light" level={4} />
|
|
220
|
+
<DxcButton label="LargeSizePrimaryButtonExa" size="large" />
|
|
221
|
+
</ExampleContainer>
|
|
222
|
+
<ExampleContainer>
|
|
223
|
+
<Title title="Large size icon after" theme="light" level={4} />
|
|
224
|
+
<DxcButton label="LargeSizePrimaryButto" iconPosition="after" icon={iconSVG} size="large" />
|
|
225
|
+
</ExampleContainer>
|
|
226
|
+
<ExampleContainer>
|
|
227
|
+
<Title title="Large size icon before" theme="light" level={4} />
|
|
228
|
+
<DxcButton label="LargeSizePrimaryButto" iconPosition="before" icon={iconSVG} size="large" />
|
|
229
|
+
</ExampleContainer>
|
|
230
|
+
<ExampleContainer>
|
|
231
|
+
<Title title="Large size icon after with ellipsis" theme="light" level={4} />
|
|
232
|
+
<DxcButton label="LargeSizePrimaryButton" iconPosition="after" icon={iconSVG} size="large" />
|
|
233
|
+
</ExampleContainer>
|
|
234
|
+
<ExampleContainer>
|
|
235
|
+
<Title title="Large size icon before with ellipsis" theme="light" level={4} />
|
|
236
|
+
<DxcButton label="LargeSizePrimaryButton" iconPosition="before" icon={iconSVG} size="large" />
|
|
237
|
+
</ExampleContainer>
|
|
238
|
+
<ExampleContainer>
|
|
239
|
+
<Title title="FillParent size" theme="light" level={4} />
|
|
240
|
+
<DxcButton label="FillParent" size="fillParent" />
|
|
241
|
+
</ExampleContainer>
|
|
242
|
+
<ExampleContainer>
|
|
243
|
+
<Title title="FitContent size" theme="light" level={4} />
|
|
244
|
+
<DxcButton label="FitContent" size="fitContent" />
|
|
245
|
+
</ExampleContainer>
|
|
246
|
+
<Title title="Margins" theme="light" level={2} />
|
|
247
|
+
<ExampleContainer>
|
|
248
|
+
<Title title="Xxsmall margin" theme="light" level={4} />
|
|
249
|
+
<DxcButton label="Xxsmall margin" margin="xxsmall" />
|
|
250
|
+
</ExampleContainer>
|
|
251
|
+
<ExampleContainer>
|
|
252
|
+
<Title title="Xsmall margin" theme="light" level={4} />
|
|
253
|
+
<DxcButton label="Xsmall margin" margin="xsmall" />
|
|
254
|
+
</ExampleContainer>
|
|
255
|
+
<ExampleContainer>
|
|
256
|
+
<Title title="Small margin" theme="light" level={4} />
|
|
257
|
+
<DxcButton label="Small margin" margin="small" />
|
|
258
|
+
</ExampleContainer>
|
|
259
|
+
<ExampleContainer>
|
|
260
|
+
<Title title="Medium margin" theme="light" level={4} />
|
|
261
|
+
<DxcButton label="Medium margin" margin="medium" />
|
|
262
|
+
</ExampleContainer>
|
|
263
|
+
<ExampleContainer>
|
|
264
|
+
<Title title="Large margin" theme="light" level={4} />
|
|
265
|
+
<DxcButton label="Large margin" margin="large" />
|
|
266
|
+
</ExampleContainer>
|
|
267
|
+
<ExampleContainer>
|
|
268
|
+
<Title title="Xlarge margin" theme="light" level={4} />
|
|
269
|
+
<DxcButton label="Xlarge margin" margin="xlarge" />
|
|
270
|
+
</ExampleContainer>
|
|
271
|
+
<ExampleContainer>
|
|
272
|
+
<Title title="Xxlarge margin" theme="light" level={4} />
|
|
273
|
+
<DxcButton label="Xxlarge margin" margin="xxlarge" />
|
|
274
|
+
</ExampleContainer>
|
|
291
275
|
</>
|
|
292
276
|
);
|
|
293
|
-
|