@dxc-technology/halstack-react 0.0.0-b915415 → 0.0.0-b92e300
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.js +50 -0
- package/ThemeContext.js +246 -0
- package/{dist/V3Select → V3Select}/V3Select.js +33 -127
- package/{dist/V3Select → V3Select}/index.d.ts +0 -0
- package/{dist/V3Textarea → V3Textarea}/V3Textarea.js +10 -14
- package/{dist/V3Textarea → V3Textarea}/index.d.ts +0 -0
- package/accordion/Accordion.d.ts +4 -0
- package/{dist/accordion → accordion}/Accordion.js +35 -130
- package/accordion/types.d.ts +68 -0
- package/accordion/types.js +5 -0
- package/accordion-group/AccordionGroup.d.ts +7 -0
- package/accordion-group/AccordionGroup.js +170 -0
- package/accordion-group/types.d.ts +72 -0
- package/accordion-group/types.js +5 -0
- package/alert/Alert.d.ts +4 -0
- package/{dist/alert → alert}/Alert.js +38 -151
- package/alert/types.d.ts +49 -0
- package/alert/types.js +5 -0
- package/badge/Badge.js +59 -0
- package/{dist/box → box}/Box.js +9 -13
- package/{dist/box → box}/index.d.ts +0 -0
- package/button/Button.d.ts +4 -0
- package/{dist/button → button}/Button.js +15 -71
- package/button/Button.stories.tsx +293 -0
- package/button/types.d.ts +57 -0
- package/button/types.js +5 -0
- package/card/Card.d.ts +4 -0
- package/{dist/card → card}/Card.js +32 -121
- package/card/types.d.ts +69 -0
- package/card/types.js +5 -0
- package/checkbox/Checkbox.d.ts +4 -0
- package/{dist/checkbox → checkbox}/Checkbox.js +13 -59
- package/checkbox/types.d.ts +60 -0
- package/checkbox/types.js +5 -0
- package/{dist/chip → chip}/Chip.js +17 -61
- package/{dist/chip → chip}/index.d.ts +0 -0
- package/{dist/common → common}/OpenSans.css +0 -0
- package/{dist/common → common}/RequiredComponent.js +3 -11
- package/{dist/common → common}/fonts/OpenSans-Bold.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-BoldItalic.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-ExtraBold.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-Italic.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-Light.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-LightItalic.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-Regular.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-SemiBold.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
- package/{dist/common → common}/utils.js +0 -0
- package/{dist/common → common}/variables.js +40 -45
- package/{dist/date → date}/Date.js +16 -22
- package/{dist/date → date}/index.d.ts +0 -0
- package/date-input/DateInput.d.ts +4 -0
- package/{dist/date-input → date-input}/DateInput.js +22 -61
- package/date-input/types.d.ts +100 -0
- package/date-input/types.js +5 -0
- package/{dist/dialog → dialog}/Dialog.js +16 -50
- package/{dist/dialog → dialog}/index.d.ts +0 -0
- package/{dist/dropdown → dropdown}/Dropdown.js +37 -131
- package/{dist/dropdown → dropdown}/index.d.ts +0 -0
- package/{dist/file-input → file-input}/FileInput.js +49 -161
- package/{dist/file-input → file-input}/FileItem.js +29 -123
- package/{dist/file-input → file-input}/index.d.ts +0 -0
- package/{dist/footer → footer}/Footer.js +34 -158
- package/{dist/footer → footer}/Icons.js +13 -13
- package/{dist/footer → footer}/index.d.ts +0 -0
- package/{dist/header → header}/Header.js +35 -179
- package/{dist/header → header}/Icons.js +11 -11
- package/{dist/header → header}/index.d.ts +0 -0
- package/{dist/heading → heading}/Heading.js +18 -72
- package/{dist/heading → heading}/index.d.ts +0 -0
- package/{dist/input-text → input-text}/Icons.js +2 -2
- package/{dist/input-text → input-text}/InputText.js +36 -130
- package/{dist/input-text → input-text}/index.d.ts +1 -1
- package/{dist/layout → layout}/ApplicationLayout.js +31 -123
- package/{dist/layout → layout}/Icons.js +7 -7
- package/{dist/link → link}/Link.js +18 -72
- package/{dist/link → link}/index.d.ts +0 -0
- package/main.d.ts +44 -0
- package/{dist/main.js → main.js} +91 -87
- package/{dist/number-input → number-input}/NumberInput.js +5 -13
- package/{dist/number-input → number-input}/NumberInputContext.js +1 -1
- package/{dist/number-input → number-input}/index.d.ts +0 -0
- package/package.json +20 -17
- package/{dist/paginator → paginator}/Icons.js +9 -9
- package/paginator/Paginator.d.ts +4 -0
- package/{dist/paginator → paginator}/Paginator.js +24 -131
- package/paginator/types.d.ts +38 -0
- package/paginator/types.js +5 -0
- package/{dist/password-input → password-input}/PasswordInput.js +17 -21
- package/password-input/PasswordInput.stories.jsx +131 -0
- package/{dist/password-input → password-input}/index.d.ts +0 -0
- package/progress-bar/ProgressBar.d.ts +4 -0
- package/{dist/progress-bar → progress-bar}/ProgressBar.js +19 -91
- package/progress-bar/types.d.ts +37 -0
- package/progress-bar/types.js +5 -0
- package/radio/Radio.d.ts +4 -0
- package/{dist/radio → radio}/Radio.js +15 -50
- package/radio/types.d.ts +54 -0
- package/radio/types.js +5 -0
- package/{dist/resultsetTable → resultsetTable}/ResultsetTable.js +35 -119
- package/{dist/resultsetTable → resultsetTable}/index.d.ts +0 -0
- package/{dist/select → select}/Select.js +248 -479
- package/select/index.d.ts +131 -0
- package/{dist/sidenav → sidenav}/Sidenav.js +15 -49
- package/{dist/sidenav → sidenav}/index.d.ts +0 -0
- package/slider/Slider.d.ts +4 -0
- package/{dist/slider → slider}/Slider.js +45 -143
- package/slider/types.d.ts +83 -0
- package/slider/types.js +5 -0
- package/{dist/spinner → spinner}/Spinner.js +38 -152
- package/{dist/spinner → spinner}/index.d.ts +0 -0
- package/switch/Switch.d.ts +4 -0
- package/{dist/switch → switch}/Switch.js +26 -69
- package/switch/types.d.ts +58 -0
- package/switch/types.js +5 -0
- package/{dist/table → table}/Table.js +10 -24
- package/{dist/table → table}/index.d.ts +0 -0
- package/{dist/tabs → tabs}/Tabs.js +26 -110
- package/{dist/tabs → tabs}/index.d.ts +0 -0
- package/{dist/tag → tag}/Tag.js +22 -96
- package/{dist/tag → tag}/index.d.ts +0 -0
- package/{dist/text-input → text-input}/TextInput.js +241 -390
- package/{dist/text-input → text-input}/index.d.ts +0 -0
- package/{dist/textarea → textarea}/Textarea.js +20 -72
- package/textarea/Textarea.stories.jsx +135 -0
- package/{dist/textarea → textarea}/index.d.ts +0 -0
- package/{dist/toggle → toggle}/Toggle.js +15 -49
- package/{dist/toggle → toggle}/index.d.ts +0 -0
- package/{dist/toggle-group → toggle-group}/ToggleGroup.js +23 -107
- package/{dist/toggle-group → toggle-group}/index.d.ts +0 -0
- package/{dist/upload → upload}/Upload.js +11 -15
- package/{dist/upload → upload}/buttons-upload/ButtonsUpload.js +13 -37
- package/{dist/upload → upload}/buttons-upload/Icons.js +7 -7
- package/upload/dragAndDropArea/DragAndDropArea.js +225 -0
- package/{dist/upload → upload}/dragAndDropArea/Icons.js +6 -6
- package/upload/file-upload/FileToUpload.js +115 -0
- package/{dist/upload → upload}/file-upload/Icons.js +13 -13
- package/{dist/upload → upload}/files-upload/FilesToUpload.js +12 -26
- package/{dist/upload → upload}/index.d.ts +0 -0
- package/{dist/upload → upload}/transaction/Icons.js +31 -31
- package/upload/transaction/Transaction.js +104 -0
- package/upload/transactions/Transactions.js +94 -0
- package/{dist/useTheme.js → useTheme.js} +0 -0
- package/{dist/wizard → wizard}/Icons.js +8 -8
- package/{dist/wizard → wizard}/Wizard.js +31 -165
- package/{dist/wizard → wizard}/index.d.ts +0 -0
- package/README.md +0 -66
- package/babel.config.js +0 -7
- package/dist/BackgroundColorContext.js +0 -46
- package/dist/ThemeContext.js +0 -250
- package/dist/accordion/index.d.ts +0 -28
- package/dist/accordion-group/AccordionGroup.js +0 -186
- package/dist/accordion-group/index.d.ts +0 -16
- package/dist/alert/index.d.ts +0 -51
- package/dist/badge/Badge.js +0 -63
- package/dist/button/Button.stories.js +0 -27
- package/dist/button/index.d.ts +0 -24
- package/dist/card/index.d.ts +0 -22
- package/dist/checkbox/index.d.ts +0 -24
- package/dist/date-input/index.d.ts +0 -95
- package/dist/main.d.ts +0 -40
- package/dist/paginator/index.d.ts +0 -20
- package/dist/progress-bar/index.d.ts +0 -18
- package/dist/radio/index.d.ts +0 -23
- package/dist/select/index.d.ts +0 -53
- package/dist/slider/index.d.ts +0 -29
- package/dist/switch/index.d.ts +0 -24
- package/dist/upload/dragAndDropArea/DragAndDropArea.js +0 -329
- package/dist/upload/file-upload/FileToUpload.js +0 -189
- package/dist/upload/transaction/Transaction.js +0 -148
- package/dist/upload/transactions/Transactions.js +0 -138
- package/test/Accordion.test.js +0 -33
- package/test/AccordionGroup.test.js +0 -125
- package/test/Alert.test.js +0 -53
- package/test/Box.test.js +0 -10
- package/test/Button.test.js +0 -18
- package/test/Card.test.js +0 -30
- package/test/Checkbox.test.js +0 -45
- package/test/Chip.test.js +0 -25
- package/test/Date.test.js +0 -395
- package/test/DateInput.test.js +0 -242
- package/test/Dialog.test.js +0 -23
- package/test/Dropdown.test.js +0 -145
- package/test/FileInput.test.js +0 -201
- package/test/Footer.test.js +0 -94
- package/test/Header.test.js +0 -34
- package/test/Heading.test.js +0 -83
- package/test/InputText.test.js +0 -239
- package/test/Link.test.js +0 -43
- package/test/NumberInput.test.js +0 -259
- package/test/Paginator.test.js +0 -181
- package/test/PasswordInput.test.js +0 -83
- package/test/ProgressBar.test.js +0 -35
- package/test/Radio.test.js +0 -37
- package/test/ResultsetTable.test.js +0 -330
- package/test/Select.test.js +0 -415
- package/test/Sidenav.test.js +0 -45
- package/test/Slider.test.js +0 -74
- package/test/Spinner.test.js +0 -32
- package/test/Switch.test.js +0 -45
- package/test/Table.test.js +0 -36
- package/test/Tabs.test.js +0 -109
- package/test/Tag.test.js +0 -32
- package/test/TextInput.test.js +0 -732
- package/test/Textarea.test.js +0 -193
- package/test/ToggleGroup.test.js +0 -85
- package/test/Upload.test.js +0 -60
- package/test/V3Select.test.js +0 -212
- package/test/V3TextArea.test.js +0 -51
- package/test/Wizard.test.js +0 -130
- package/test/mocks/pngMock.js +0 -1
- package/test/mocks/svgMock.js +0 -1
package/dist/badge/Badge.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports["default"] = void 0;
|
|
11
|
-
|
|
12
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
17
|
-
|
|
18
|
-
var _useTheme = _interopRequireDefault(require("../useTheme.js"));
|
|
19
|
-
|
|
20
|
-
function _templateObject() {
|
|
21
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n width: ", ";\n height: ", ";\n border-radius: ", ";\n display: flex;\n padding-bottom: 1px;\n padding-right: 1px;\n flex-wrap: wrap;\n box-sizing: border-box;\n align-items: center;\n line-height: 1;\n align-content: center;\n flex-direction: row;\n justify-content: center;\n"]);
|
|
22
|
-
|
|
23
|
-
_templateObject = function _templateObject() {
|
|
24
|
-
return data;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
return data;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
var DxcBadge = function DxcBadge(_ref) {
|
|
31
|
-
var notificationText = _ref.notificationText;
|
|
32
|
-
var colorsTheme = (0, _useTheme["default"])();
|
|
33
|
-
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
34
|
-
theme: colorsTheme.tabs
|
|
35
|
-
}, _react["default"].createElement(StyledDxcBadge, {
|
|
36
|
-
notificationText: notificationText
|
|
37
|
-
}, _react["default"].createElement("span", null, notificationText)));
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
var StyledDxcBadge = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
41
|
-
return props.theme.badgeBackgroundColor;
|
|
42
|
-
}, function (props) {
|
|
43
|
-
return props.theme.badgeFontFamily;
|
|
44
|
-
}, function (props) {
|
|
45
|
-
return props.theme.badgeFontSize;
|
|
46
|
-
}, function (props) {
|
|
47
|
-
return props.theme.badgeFontStyle;
|
|
48
|
-
}, function (props) {
|
|
49
|
-
return props.theme.badgeFontWeight;
|
|
50
|
-
}, function (props) {
|
|
51
|
-
return props.theme.badgeFontColor;
|
|
52
|
-
}, function (props) {
|
|
53
|
-
return props.theme.badgeLetterSpacing;
|
|
54
|
-
}, function (props) {
|
|
55
|
-
return props.notificationText === true ? props.theme.badgeWidth : props.theme.badgeWidthWithNotificationNumber;
|
|
56
|
-
}, function (props) {
|
|
57
|
-
return props.notificationText === true ? props.theme.badgeHeight : props.theme.badgeHeightWithNotificationNumber;
|
|
58
|
-
}, function (props) {
|
|
59
|
-
return props.notificationText === true ? props.theme.badgeRadius : props.theme.badgeRadiusWithNotificationNumber;
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
var _default = DxcBadge;
|
|
63
|
-
exports["default"] = _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Primary = exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _Button = _interopRequireDefault(require("./Button"));
|
|
13
|
-
|
|
14
|
-
var _default = {
|
|
15
|
-
title: "Button",
|
|
16
|
-
component: _Button["default"]
|
|
17
|
-
};
|
|
18
|
-
exports["default"] = _default;
|
|
19
|
-
|
|
20
|
-
var Primary = function Primary() {
|
|
21
|
-
return _react["default"].createElement(_Button["default"], {
|
|
22
|
-
mode: "primary",
|
|
23
|
-
label: "Primary Button"
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
exports.Primary = Primary;
|
package/dist/button/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type Size = "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
2
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
-
type Margin = {
|
|
4
|
-
top?: Space;
|
|
5
|
-
bottom?: Space;
|
|
6
|
-
left?: Space;
|
|
7
|
-
right?: Space;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
label?: string;
|
|
12
|
-
mode?: "primary" | "secondary" | "text";
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
iconPosition?: "before" | "after";
|
|
15
|
-
type?: "button" | "reset" | "submit";
|
|
16
|
-
iconSrc?: string;
|
|
17
|
-
icon?: any;
|
|
18
|
-
onClick?: void;
|
|
19
|
-
margin?: Space | Margin;
|
|
20
|
-
size?: Size;
|
|
21
|
-
tabIndex?: number;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export default function DxcButton(props: Props): JSX.Element;
|
package/dist/card/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2
|
-
type Margin = {
|
|
3
|
-
top?: Space;
|
|
4
|
-
bottom?: Space;
|
|
5
|
-
left?: Space;
|
|
6
|
-
right?: Space;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
type Props = {
|
|
10
|
-
imageSrc?: string;
|
|
11
|
-
margin?: Space | Margin;
|
|
12
|
-
contentPadding?: any;
|
|
13
|
-
linkHref?: string;
|
|
14
|
-
onClick?: void;
|
|
15
|
-
imageBgColor?: string;
|
|
16
|
-
imagePadding?: any;
|
|
17
|
-
imagePosition?: "before" | "after";
|
|
18
|
-
outlined?: boolean;
|
|
19
|
-
imageCover?: boolean;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export default function DxcCard(props: Props): JSX.Element;
|
package/dist/checkbox/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type Size = "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
2
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
-
type Margin = {
|
|
4
|
-
top?: Space;
|
|
5
|
-
bottom?: Space;
|
|
6
|
-
left?: Space;
|
|
7
|
-
right?: Space;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
checked?: boolean;
|
|
12
|
-
value?: any;
|
|
13
|
-
label?: string;
|
|
14
|
-
labelPosition?: "before" | "after";
|
|
15
|
-
name?: string,
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
onChange?: void;
|
|
18
|
-
required?: boolean;
|
|
19
|
-
margin?: Space | Margin;
|
|
20
|
-
size?: Size;
|
|
21
|
-
tabIndex?: number;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export default function DxcCheckbox(props: Props): JSX.Element;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
type Size = "small" | "medium" | "large" | "fillParent";
|
|
2
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
-
type Margin = {
|
|
4
|
-
top?: Space;
|
|
5
|
-
bottom?: Space;
|
|
6
|
-
left?: Space;
|
|
7
|
-
right?: Space;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
/**
|
|
12
|
-
* Text to be placed above the date.
|
|
13
|
-
*/
|
|
14
|
-
label?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Name attribute of the input element.
|
|
17
|
-
*/
|
|
18
|
-
name?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
|
|
21
|
-
*/
|
|
22
|
-
value?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The format in which the date value will be displayed. User must use this format when editing the value or it will be considered as an invalid date.
|
|
25
|
-
*/
|
|
26
|
-
format?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Helper text to be placed above the date.
|
|
29
|
-
*/
|
|
30
|
-
helperText?: string;
|
|
31
|
-
/**
|
|
32
|
-
* If true, the date format will appear as placeholder in the field.
|
|
33
|
-
*/
|
|
34
|
-
placeholder?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* If true, the date input will have an action to clear the entered value.
|
|
37
|
-
*/
|
|
38
|
-
clearable?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* If true, the component will be disabled.
|
|
41
|
-
*/
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* If true, the date will be optional, showing '(Optional)'
|
|
45
|
-
* next to the label. Otherwise, the field will be considered required and an error will be
|
|
46
|
-
* passed as a parameter to the OnBlur and onChange functions when it has
|
|
47
|
-
* not been filled.
|
|
48
|
-
*/
|
|
49
|
-
optional?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* This function will be called when the user types within the input
|
|
52
|
-
* element of the component. An object including the string value, the
|
|
53
|
-
* error and the date value will be passed to this function.
|
|
54
|
-
* If the string value is a valid date, error will
|
|
55
|
-
* be null. Also, if the string value is not a valid date, date will be null.
|
|
56
|
-
*/
|
|
57
|
-
onChange?: (val: { value: string; error: string; date: Date }) => void;
|
|
58
|
-
/**
|
|
59
|
-
* This function will be called when the input element loses the focus.
|
|
60
|
-
* An object including the string value, the error and the date value
|
|
61
|
-
* will be passed to this function. If the string value is a valid date, error will
|
|
62
|
-
* be null. Also, if the string value is not a valid date, date will be null.
|
|
63
|
-
*/
|
|
64
|
-
onBlur?: (val: { value: string; error: string; date: Date }) => void;
|
|
65
|
-
/**
|
|
66
|
-
* If it is defined, the component will change its appearance, showing
|
|
67
|
-
* the error below the date input component. If it is not defined, the error
|
|
68
|
-
* messages will be managed internally, but never displayed on its own.
|
|
69
|
-
*/
|
|
70
|
-
error?: string;
|
|
71
|
-
/**
|
|
72
|
-
* HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
|
|
73
|
-
* Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
|
|
74
|
-
*/
|
|
75
|
-
autocomplete?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
78
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
79
|
-
*/
|
|
80
|
-
margin?: Space | Margin;
|
|
81
|
-
/**
|
|
82
|
-
* Size of the component ('medium' | 'large' | 'fillParent').
|
|
83
|
-
*/
|
|
84
|
-
size?: Size;
|
|
85
|
-
/**
|
|
86
|
-
* Value of the tabindex attribute.
|
|
87
|
-
*/
|
|
88
|
-
tabIndex?: number;
|
|
89
|
-
/**
|
|
90
|
-
* Reference to the component.
|
|
91
|
-
*/
|
|
92
|
-
ref?: React.RefObject<HTMLDivElement>;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export default function DxcDateInput(props: Props): JSX.Element;
|
package/dist/main.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export { default as DxcAccordion } from "./accordion/index";
|
|
2
|
-
export { default as DxcAccordionGroup } from "./accordion-group/index";
|
|
3
|
-
export { default as DxcAlert } from "./alert/index";
|
|
4
|
-
export { default as DxcBox } from "./box/index";
|
|
5
|
-
export { default as DxcButton } from "./button/index";
|
|
6
|
-
export { default as DxcCard } from "./card/index";
|
|
7
|
-
export { default as DxcCheckbox } from "./checkbox/index";
|
|
8
|
-
export { default as DxcChip } from "./chip/index";
|
|
9
|
-
export { default as DxcDate } from "./date/index";
|
|
10
|
-
export { default as DxcDateInput } from "./date-input/index";
|
|
11
|
-
export { default as DxcDialog } from "./dialog/index";
|
|
12
|
-
export { default as DxcDropdown } from "./dropdown/index";
|
|
13
|
-
export { default as DxcFileInput } from "./file-input/index";
|
|
14
|
-
export { default as DxcFooter } from "./footer/index";
|
|
15
|
-
export { default as DxcHeader } from "./header/index";
|
|
16
|
-
export { default as DxcHeading } from "./heading/index";
|
|
17
|
-
export { default as DxcInputText } from "./input-text/index";
|
|
18
|
-
export { default as DxcLink } from "./link/index";
|
|
19
|
-
export { default as DxcNumberInput } from "./number-input/index";
|
|
20
|
-
export { default as DxcPaginator } from "./paginator/index";
|
|
21
|
-
export { default as DxcPasswordInput } from "./password-input/index";
|
|
22
|
-
export { default as DxcProgressBar } from "./progress-bar/index";
|
|
23
|
-
export { default as DxcRadio } from "./radio/index";
|
|
24
|
-
export { default as DxcResultsetTable } from "./resultsetTable/index";
|
|
25
|
-
export { default as DxcSelect } from "./select/index";
|
|
26
|
-
export { default as DxcSidenav } from "./sidenav/index";
|
|
27
|
-
export { default as DxcSlider } from "./slider/index";
|
|
28
|
-
export { default as DxcSpinner } from "./spinner/index";
|
|
29
|
-
export { default as DxcSwitch } from "./switch/index";
|
|
30
|
-
export { default as DxcTable } from "./table/index";
|
|
31
|
-
export { default as DxcTabs } from "./tabs/index";
|
|
32
|
-
export { default as DxcTag } from "./tag/index";
|
|
33
|
-
export { default as DxcTextInput } from "./text-input/index";
|
|
34
|
-
export { default as DxcTextarea } from "./textarea/index";
|
|
35
|
-
export { default as DxcToggle } from "./toggle/index";
|
|
36
|
-
export { default as DxcToggleGroup } from "./toggle-group/index";
|
|
37
|
-
export { default as DxcUpload } from "./upload/index";
|
|
38
|
-
export { default as V3DxcSelect } from "./V3Select/index";
|
|
39
|
-
export { default as V3DxcTextarea } from "./V3Textarea/index";
|
|
40
|
-
export { default as DxcWizard } from "./wizard/index";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2
|
-
type Margin = {
|
|
3
|
-
top?: Space;
|
|
4
|
-
bottom?: Space;
|
|
5
|
-
left?: Space;
|
|
6
|
-
right?: Space;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
type Props = {
|
|
10
|
-
currentPage?: number;
|
|
11
|
-
itemsPerPage?: number;
|
|
12
|
-
itemsPerPageOptions?: number[];
|
|
13
|
-
totalItems?: number
|
|
14
|
-
showGoToPage?: boolean,
|
|
15
|
-
onPageChange?: void;
|
|
16
|
-
itemsPerPageFunction?: void;
|
|
17
|
-
tabIndex?: number;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export default function DxcPaginator(props: Props): JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2
|
-
type Margin = {
|
|
3
|
-
top?: Space;
|
|
4
|
-
bottom?: Space;
|
|
5
|
-
left?: Space;
|
|
6
|
-
right?: Space;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
type Props = {
|
|
10
|
-
label?: string;
|
|
11
|
-
helperText?: string;
|
|
12
|
-
overlay?: boolean;
|
|
13
|
-
value?: number;
|
|
14
|
-
showValue?: boolean,
|
|
15
|
-
margin?: Space | Margin;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default function DxcProgressBar(props: Props): JSX.Element;
|
package/dist/radio/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
type Size = "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
2
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
-
type Margin = {
|
|
4
|
-
top?: Space;
|
|
5
|
-
bottom?: Space;
|
|
6
|
-
left?: Space;
|
|
7
|
-
right?: Space;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
checked?: boolean;
|
|
12
|
-
value?: any;
|
|
13
|
-
label?: string;
|
|
14
|
-
labelPosition?: "before" | "after";
|
|
15
|
-
name?: string,
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
onClick?: void;
|
|
18
|
-
required?: boolean;
|
|
19
|
-
margin?: Space | Margin;
|
|
20
|
-
size?: Size;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export default function DxcRadio(props: Props): JSX.Element;
|
package/dist/select/index.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
type SVG = string | (HTMLElement & SVGElement);
|
|
2
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
-
type Margin = {
|
|
4
|
-
top?: Space;
|
|
5
|
-
bottom?: Space;
|
|
6
|
-
left?: Space;
|
|
7
|
-
right?: Space;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type OptionGroup = {
|
|
11
|
-
label: string;
|
|
12
|
-
options: Option[];
|
|
13
|
-
};
|
|
14
|
-
type Option = {
|
|
15
|
-
icon?: string | SVG;
|
|
16
|
-
label: string;
|
|
17
|
-
value: string;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
type Props = {
|
|
21
|
-
label?: string;
|
|
22
|
-
name?: string;
|
|
23
|
-
value?: string | string[];
|
|
24
|
-
options?: Option[] | OptionGroup[];
|
|
25
|
-
helperText?: string;
|
|
26
|
-
placeholder?: string;
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
optional?: boolean;
|
|
29
|
-
searchable?: boolean;
|
|
30
|
-
multiple?: boolean;
|
|
31
|
-
onChange?: (value: string | string[]) => void;
|
|
32
|
-
onBlur?: (val: { value: string | string[]; error: string }) => void;
|
|
33
|
-
error?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
36
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
37
|
-
*/
|
|
38
|
-
margin?: Space | Margin;
|
|
39
|
-
/**
|
|
40
|
-
* Size of the component ('small' | 'medium' | 'large' | 'fillParent').
|
|
41
|
-
*/
|
|
42
|
-
size?: "small" | "medium" | "large" | "fillParent";
|
|
43
|
-
/**
|
|
44
|
-
* Value of the tabindex attribute.
|
|
45
|
-
*/
|
|
46
|
-
tabIndex?: number;
|
|
47
|
-
/**
|
|
48
|
-
* Reference to the component.
|
|
49
|
-
*/
|
|
50
|
-
ref?: React.RefObject<HTMLDivElement>;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export default function DxcSelect(props: Props): JSX.Element;
|
package/dist/slider/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
type Size = "small" | "medium" | "large" | "fillParent";
|
|
2
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
-
type Margin = {
|
|
4
|
-
top?: Space;
|
|
5
|
-
bottom?: Space;
|
|
6
|
-
left?: Space;
|
|
7
|
-
right?: Space;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
label?: string;
|
|
12
|
-
helperText?: string;
|
|
13
|
-
minValue?: number;
|
|
14
|
-
maxValue?: number;
|
|
15
|
-
step?: number;
|
|
16
|
-
value?: number;
|
|
17
|
-
showLimitsValues?: boolean;
|
|
18
|
-
showInput?: boolean;
|
|
19
|
-
name?: string;
|
|
20
|
-
onChange?: void;
|
|
21
|
-
onDragEnd?: void;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
marks?: boolean;
|
|
24
|
-
labelFormatCallback?: void;
|
|
25
|
-
margin?: Space | Margin;
|
|
26
|
-
size?: Size;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export default function DxcSlider(props: Props): JSX.Element;
|
package/dist/switch/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type Size = "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
2
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
-
type Margin = {
|
|
4
|
-
top?: Space;
|
|
5
|
-
bottom?: Space;
|
|
6
|
-
left?: Space;
|
|
7
|
-
right?: Space;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
checked?: boolean;
|
|
12
|
-
value?: any;
|
|
13
|
-
label?: string;
|
|
14
|
-
labelPosition?: "before" | "after";
|
|
15
|
-
name?: string,
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
onChange?: void;
|
|
18
|
-
required?: boolean;
|
|
19
|
-
margin?: Space | Margin;
|
|
20
|
-
size?: Size;
|
|
21
|
-
tabIndex?: number;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export default function DxcSwitch(props: Props): JSX.Element;
|