@dxc-technology/halstack-react 0.0.0-e1a279c → 0.0.0-e1c01f0
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/README.md +46 -0
- package/dist/index.d.mts +6670 -0
- package/dist/index.d.ts +6670 -0
- package/dist/index.js +14442 -0
- package/dist/index.mjs +14385 -0
- package/package.json +69 -68
- package/BackgroundColorContext.js +0 -50
- package/ThemeContext.js +0 -246
- package/V3Select/V3Select.js +0 -455
- package/V3Select/index.d.ts +0 -27
- package/V3Textarea/V3Textarea.js +0 -260
- package/V3Textarea/index.d.ts +0 -27
- package/accordion/Accordion.d.ts +0 -4
- package/accordion/Accordion.js +0 -258
- package/accordion/types.d.ts +0 -68
- package/accordion/types.js +0 -5
- package/accordion-group/AccordionGroup.d.ts +0 -7
- package/accordion-group/AccordionGroup.js +0 -170
- package/accordion-group/types.d.ts +0 -72
- package/accordion-group/types.js +0 -5
- package/alert/Alert.d.ts +0 -4
- package/alert/Alert.js +0 -290
- package/alert/Alert.stories.tsx +0 -170
- package/alert/types.d.ts +0 -49
- package/alert/types.js +0 -5
- package/badge/Badge.js +0 -59
- package/box/Box.d.ts +0 -4
- package/box/Box.js +0 -129
- package/box/Box.stories.tsx +0 -132
- package/box/types.d.ts +0 -47
- package/box/types.js +0 -5
- package/button/Button.d.ts +0 -4
- package/button/Button.js +0 -177
- package/button/Button.stories.tsx +0 -276
- package/button/types.d.ts +0 -57
- package/button/types.js +0 -5
- package/card/Card.d.ts +0 -4
- package/card/Card.js +0 -165
- package/card/types.d.ts +0 -69
- package/card/types.js +0 -5
- package/checkbox/Checkbox.d.ts +0 -4
- package/checkbox/Checkbox.js +0 -253
- package/checkbox/Checkbox.stories.tsx +0 -192
- package/checkbox/types.d.ts +0 -60
- package/checkbox/types.js +0 -5
- package/chip/Chip.js +0 -221
- package/chip/Chip.stories.tsx +0 -121
- package/chip/index.d.ts +0 -22
- package/common/OpenSans.css +0 -81
- package/common/RequiredComponent.js +0 -32
- package/common/fonts/OpenSans-Bold.ttf +0 -0
- package/common/fonts/OpenSans-BoldItalic.ttf +0 -0
- package/common/fonts/OpenSans-ExtraBold.ttf +0 -0
- package/common/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
- package/common/fonts/OpenSans-Italic.ttf +0 -0
- package/common/fonts/OpenSans-Light.ttf +0 -0
- package/common/fonts/OpenSans-LightItalic.ttf +0 -0
- package/common/fonts/OpenSans-Regular.ttf +0 -0
- package/common/fonts/OpenSans-SemiBold.ttf +0 -0
- package/common/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
- package/common/utils.js +0 -22
- package/common/variables.js +0 -1577
- package/date/Date.js +0 -373
- package/date/index.d.ts +0 -27
- package/date-input/DateInput.d.ts +0 -4
- package/date-input/DateInput.js +0 -361
- package/date-input/DateInput.stories.tsx +0 -138
- package/date-input/types.d.ts +0 -100
- package/date-input/types.js +0 -5
- package/dialog/Dialog.d.ts +0 -4
- package/dialog/Dialog.js +0 -165
- package/dialog/Dialog.stories.tsx +0 -212
- package/dialog/types.d.ts +0 -43
- package/dialog/types.js +0 -5
- package/dropdown/Dropdown.d.ts +0 -4
- package/dropdown/Dropdown.js +0 -417
- package/dropdown/types.d.ts +0 -89
- package/dropdown/types.js +0 -5
- package/file-input/FileInput.js +0 -532
- package/file-input/FileItem.js +0 -193
- package/file-input/index.d.ts +0 -81
- package/footer/Footer.d.ts +0 -4
- package/footer/Footer.js +0 -266
- package/footer/Footer.stories.jsx +0 -151
- package/footer/Icons.js +0 -77
- package/footer/types.d.ts +0 -61
- package/footer/types.js +0 -5
- package/header/Header.d.ts +0 -7
- package/header/Header.js +0 -324
- package/header/Icons.js +0 -34
- package/header/types.d.ts +0 -45
- package/header/types.js +0 -5
- package/heading/Heading.js +0 -176
- package/heading/index.d.ts +0 -17
- package/input-text/Icons.js +0 -22
- package/input-text/InputText.js +0 -611
- package/input-text/index.d.ts +0 -36
- package/layout/ApplicationLayout.js +0 -235
- package/layout/Icons.js +0 -55
- package/link/Link.d.ts +0 -3
- package/link/Link.js +0 -161
- package/link/Link.stories.tsx +0 -70
- package/link/types.d.ts +0 -74
- package/link/types.js +0 -5
- package/main.d.ts +0 -44
- package/main.js +0 -363
- package/number-input/NumberInput.d.ts +0 -4
- package/number-input/NumberInput.js +0 -86
- package/number-input/NumberInput.stories.tsx +0 -115
- package/number-input/NumberInputContext.js +0 -16
- package/number-input/types.d.ts +0 -117
- package/number-input/types.js +0 -5
- package/paginator/Icons.js +0 -66
- package/paginator/Paginator.d.ts +0 -4
- package/paginator/Paginator.js +0 -198
- package/paginator/Paginator.stories.tsx +0 -63
- package/paginator/types.d.ts +0 -38
- package/paginator/types.js +0 -5
- package/password-input/PasswordInput.d.ts +0 -4
- package/password-input/PasswordInput.js +0 -162
- package/password-input/PasswordInput.stories.tsx +0 -131
- package/password-input/types.d.ts +0 -100
- package/password-input/types.js +0 -5
- package/progress-bar/ProgressBar.d.ts +0 -4
- package/progress-bar/ProgressBar.js +0 -170
- package/progress-bar/ProgressBar.stories.jsx +0 -58
- package/progress-bar/types.d.ts +0 -37
- package/progress-bar/types.js +0 -5
- package/radio/Radio.d.ts +0 -4
- package/radio/Radio.js +0 -174
- package/radio/Radio.stories.tsx +0 -192
- package/radio/types.d.ts +0 -54
- package/radio/types.js +0 -5
- package/resultsetTable/ResultsetTable.js +0 -274
- package/resultsetTable/index.d.ts +0 -19
- package/select/Select.js +0 -865
- package/select/Select.stories.tsx +0 -572
- package/select/index.d.ts +0 -131
- package/sidenav/Sidenav.d.ts +0 -9
- package/sidenav/Sidenav.js +0 -136
- package/sidenav/types.d.ts +0 -50
- package/sidenav/types.js +0 -5
- package/slider/Slider.d.ts +0 -4
- package/slider/Slider.js +0 -317
- package/slider/Slider.stories.tsx +0 -177
- package/slider/types.d.ts +0 -78
- package/slider/types.js +0 -5
- package/spinner/Spinner.d.ts +0 -4
- package/spinner/Spinner.js +0 -250
- package/spinner/Spinner.stories.jsx +0 -102
- package/spinner/types.d.ts +0 -32
- package/spinner/types.js +0 -5
- package/switch/Switch.d.ts +0 -4
- package/switch/Switch.js +0 -179
- package/switch/Switch.stories.tsx +0 -160
- package/switch/types.d.ts +0 -58
- package/switch/types.js +0 -5
- package/table/Table.d.ts +0 -4
- package/table/Table.js +0 -118
- package/table/Table.stories.jsx +0 -276
- package/table/types.d.ts +0 -21
- package/table/types.js +0 -5
- package/tabs/Tabs.d.ts +0 -4
- package/tabs/Tabs.js +0 -211
- package/tabs/types.d.ts +0 -71
- package/tabs/types.js +0 -5
- package/tag/Tag.d.ts +0 -4
- package/tag/Tag.js +0 -193
- package/tag/Tag.stories.tsx +0 -145
- package/tag/types.d.ts +0 -60
- package/tag/types.js +0 -5
- package/text-input/TextInput.js +0 -825
- package/text-input/index.d.ts +0 -135
- package/textarea/Textarea.js +0 -317
- package/textarea/Textarea.stories.jsx +0 -135
- package/textarea/index.d.ts +0 -117
- package/toggle/Toggle.js +0 -186
- package/toggle/index.d.ts +0 -21
- package/toggle-group/ToggleGroup.js +0 -243
- package/toggle-group/ToggleGroup.stories.tsx +0 -178
- package/toggle-group/index.d.ts +0 -21
- package/upload/Upload.js +0 -201
- package/upload/buttons-upload/ButtonsUpload.js +0 -111
- package/upload/buttons-upload/Icons.js +0 -40
- package/upload/dragAndDropArea/DragAndDropArea.js +0 -225
- package/upload/dragAndDropArea/Icons.js +0 -39
- package/upload/file-upload/FileToUpload.js +0 -115
- package/upload/file-upload/Icons.js +0 -66
- package/upload/files-upload/FilesToUpload.js +0 -109
- package/upload/index.d.ts +0 -15
- package/upload/transaction/Icons.js +0 -160
- package/upload/transaction/Transaction.js +0 -104
- package/upload/transactions/Transactions.js +0 -94
- package/useTheme.js +0 -22
- package/wizard/Icons.js +0 -65
- package/wizard/Wizard.d.ts +0 -4
- package/wizard/Wizard.js +0 -231
- package/wizard/Wizard.stories.jsx +0 -224
- package/wizard/types.d.ts +0 -64
- package/wizard/types.js +0 -5
package/common/OpenSans.css
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
@font-face {
|
|
3
|
-
font-family: 'Open Sans';
|
|
4
|
-
src: url('./fonts/OpenSans-Light.ttf')
|
|
5
|
-
format('truetype');
|
|
6
|
-
font-style: normal;
|
|
7
|
-
font-weight: 200;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@font-face {
|
|
11
|
-
font-family: 'Open Sans';
|
|
12
|
-
src: url('./fonts/OpenSans-Regular.ttf')
|
|
13
|
-
format('truetype');
|
|
14
|
-
font-style: normal;
|
|
15
|
-
font-weight: 400;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@font-face {
|
|
19
|
-
font-family: 'Open Sans';
|
|
20
|
-
src: url('./fonts/OpenSans-SemiBold.ttf')
|
|
21
|
-
format('truetype');
|
|
22
|
-
font-style: normal;
|
|
23
|
-
font-weight: 600;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@font-face {
|
|
27
|
-
font-family: 'Open Sans';
|
|
28
|
-
src: url('./fonts/OpenSans-Bold.ttf')
|
|
29
|
-
format('truetype');
|
|
30
|
-
font-style: normal;
|
|
31
|
-
font-weight: 700;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@font-face {
|
|
35
|
-
font-family: 'Open Sans';
|
|
36
|
-
src: url('./fonts/OpenSans-ExtraBold.ttf')
|
|
37
|
-
format('truetype');
|
|
38
|
-
font-style: normal;
|
|
39
|
-
font-weight: 800;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@font-face {
|
|
43
|
-
font-family: 'Open Sans';
|
|
44
|
-
src: url('./fonts/OpenSans-LightItalic.ttf')
|
|
45
|
-
format('truetype');
|
|
46
|
-
font-style: italic;
|
|
47
|
-
font-weight: 200;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@font-face {
|
|
51
|
-
font-family: 'Open Sans';
|
|
52
|
-
src: url('./fonts/OpenSans-Italic.ttf')
|
|
53
|
-
format('truetype');
|
|
54
|
-
font-style: italic;
|
|
55
|
-
font-weight: 400;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@font-face {
|
|
59
|
-
font-family: 'Open Sans';
|
|
60
|
-
src: url('./fonts/OpenSans-SemiBoldItalic.ttf')
|
|
61
|
-
format('truetype');
|
|
62
|
-
font-style: italic;
|
|
63
|
-
font-weight: 600;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@font-face {
|
|
67
|
-
font-family: 'Open Sans';
|
|
68
|
-
src: url('./fonts/OpenSans-BoldItalic.ttf')
|
|
69
|
-
format('truetype');
|
|
70
|
-
font-style: italic;
|
|
71
|
-
font-weight: 700;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@font-face {
|
|
75
|
-
font-family: 'Open Sans';
|
|
76
|
-
src: url('./fonts/OpenSans-ExtraBoldItalic.ttf')
|
|
77
|
-
format('truetype');
|
|
78
|
-
font-style: italic;
|
|
79
|
-
font-weight: 800;
|
|
80
|
-
}
|
|
81
|
-
|
|
@@ -1,32 +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["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 _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
-
|
|
18
|
-
var _templateObject;
|
|
19
|
-
|
|
20
|
-
var DxcRequired = function DxcRequired(_ref) {
|
|
21
|
-
var _ref$theme = _ref.theme,
|
|
22
|
-
theme = _ref$theme === void 0 ? "light" : _ref$theme;
|
|
23
|
-
return /*#__PURE__*/_react["default"].createElement(RequiredSpan, null, "*");
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
var RequiredSpan = _styledComponents["default"].span(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n color: #d0011b;\n margin-right: 1px;\n cursor: default;\n"])));
|
|
27
|
-
|
|
28
|
-
DxcRequired.propTypes = {
|
|
29
|
-
theme: _propTypes["default"].oneOf(["dark", "light"])
|
|
30
|
-
};
|
|
31
|
-
var _default = DxcRequired;
|
|
32
|
-
exports["default"] = _default;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/common/utils.js
DELETED
|
@@ -1,22 +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.getMargin = void 0;
|
|
9
|
-
|
|
10
|
-
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
11
|
-
|
|
12
|
-
var _variables = require("./variables.js");
|
|
13
|
-
|
|
14
|
-
var getMargin = function getMargin(marginProp, side) {
|
|
15
|
-
if (marginProp && (0, _typeof2["default"])(marginProp) === "object") {
|
|
16
|
-
return marginProp[side] && _variables.spaces[marginProp[side]] || "0px";
|
|
17
|
-
} else {
|
|
18
|
-
return marginProp && _variables.spaces[marginProp] || "0px";
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
exports.getMargin = getMargin;
|