@dxc-technology/halstack-react 0.0.0-dfcca07 → 0.0.0-e003970
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 +3861 -0
- package/dist/index.d.ts +3861 -0
- package/dist/index.js +13819 -0
- package/dist/index.mjs +13732 -0
- package/package.json +87 -69
- 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/AccordionGroup.stories.tsx +0 -225
- 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 -126
- package/box/Box.stories.tsx +0 -132
- package/box/types.d.ts +0 -43
- package/box/types.js +0 -5
- package/button/Button.d.ts +0 -4
- package/button/Button.js +0 -179
- 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 -164
- package/card/Card.stories.tsx +0 -201
- package/card/ice-cream.jpg +0 -0
- package/card/types.d.ts +0 -67
- 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 -1578
- 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.d.ts +0 -4
- package/file-input/FileInput.js +0 -511
- package/file-input/FileItem.d.ts +0 -14
- package/file-input/FileItem.js +0 -184
- package/file-input/types.d.ts +0 -87
- package/file-input/types.js +0 -5
- 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 -69
- package/footer/types.js +0 -5
- package/header/Header.d.ts +0 -7
- package/header/Header.js +0 -324
- package/header/Header.stories.tsx +0 -162
- package/header/Icons.js +0 -34
- package/header/types.d.ts +0 -47
- package/header/types.js +0 -5
- package/heading/Heading.d.ts +0 -4
- package/heading/Heading.js +0 -159
- package/heading/Heading.stories.tsx +0 -53
- package/heading/types.d.ts +0 -33
- package/heading/types.js +0 -5
- 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 -146
- 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.d.ts +0 -4
- package/number-input/NumberInputContext.js +0 -19
- package/number-input/numberInputContextTypes.d.ts +0 -19
- package/number-input/numberInputContextTypes.js +0 -5
- 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 -164
- package/password-input/PasswordInput.stories.tsx +0 -131
- package/password-input/types.d.ts +0 -107
- 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.d.ts +0 -4
- package/resultsetTable/ResultsetTable.js +0 -251
- package/resultsetTable/types.d.ts +0 -67
- package/resultsetTable/types.js +0 -5
- 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/Sidenav.stories.tsx +0 -165
- 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 -213
- package/tabs/Tabs.stories.tsx +0 -121
- package/tabs/types.d.ts +0 -70
- 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.d.ts +0 -4
- package/text-input/TextInput.js +0 -786
- package/text-input/TextInput.stories.tsx +0 -456
- package/text-input/types.d.ts +0 -159
- package/text-input/types.js +0 -5
- package/textarea/Textarea.js +0 -316
- package/textarea/Textarea.stories.jsx +0 -135
- package/textarea/index.d.ts +0 -127
- package/toggle/Toggle.js +0 -186
- package/toggle/index.d.ts +0 -21
- package/toggle-group/ToggleGroup.d.ts +0 -4
- package/toggle-group/ToggleGroup.js +0 -217
- package/toggle-group/ToggleGroup.stories.tsx +0 -178
- package/toggle-group/types.d.ts +0 -84
- package/toggle-group/types.js +0 -5
- 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/link/types.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
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 LinkCommonProps = {
|
|
10
|
-
/**
|
|
11
|
-
* If true, the color is inherited from parent.
|
|
12
|
-
*/
|
|
13
|
-
inheritColor?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* If true, the link is disabled.
|
|
16
|
-
*/
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* @Deprecated Source of the icon.
|
|
20
|
-
*/
|
|
21
|
-
iconSrc?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Indicates the position of the icon in the component.
|
|
24
|
-
*/
|
|
25
|
-
iconPosition?: "before" | "after";
|
|
26
|
-
/**
|
|
27
|
-
* Page to be opened when the user clicks on the link.
|
|
28
|
-
*/
|
|
29
|
-
href?: string;
|
|
30
|
-
/**
|
|
31
|
-
* If true, the page is opened in a new browser tab.
|
|
32
|
-
*/
|
|
33
|
-
newWindow?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* If defined, the link will be displayed as a button. This
|
|
36
|
-
* function will be called when the user clicks the link.
|
|
37
|
-
*/
|
|
38
|
-
onClick?: () => void;
|
|
39
|
-
/**
|
|
40
|
-
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
41
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
42
|
-
*/
|
|
43
|
-
margin?: Space | Margin;
|
|
44
|
-
/**
|
|
45
|
-
* Value of the tabindex.
|
|
46
|
-
*/
|
|
47
|
-
tabIndex?: number;
|
|
48
|
-
};
|
|
49
|
-
export declare type LinkTextProps = LinkCommonProps & {
|
|
50
|
-
/**
|
|
51
|
-
* Link text.
|
|
52
|
-
*/
|
|
53
|
-
text: string;
|
|
54
|
-
/**
|
|
55
|
-
* Element used as the icon that will be placed next to the link text.
|
|
56
|
-
*/
|
|
57
|
-
icon?: SVG;
|
|
58
|
-
};
|
|
59
|
-
export declare type LinkIconProps = LinkCommonProps & {
|
|
60
|
-
/**
|
|
61
|
-
* Link text.
|
|
62
|
-
*/
|
|
63
|
-
text?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Element used as the icon that will be placed next to the link text.
|
|
66
|
-
*/
|
|
67
|
-
icon: SVG;
|
|
68
|
-
};
|
|
69
|
-
declare type Overload = {
|
|
70
|
-
(props: LinkTextProps): JSX.Element;
|
|
71
|
-
(props: LinkIconProps): JSX.Element;
|
|
72
|
-
};
|
|
73
|
-
declare type SVG = React.SVGProps<SVGSVGElement> | React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
74
|
-
export default Overload;
|
package/link/types.js
DELETED
package/main.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import DxcAlert from "./alert/Alert";
|
|
2
|
-
import DxcAccordion from "./accordion/Accordion";
|
|
3
|
-
import DxcButton from "./button/Button";
|
|
4
|
-
import DxcCard from "./card/Card";
|
|
5
|
-
import DxcCheckbox from "./checkbox/Checkbox";
|
|
6
|
-
import DxcDate from "./date/Date";
|
|
7
|
-
import DxcDialog from "./dialog/Dialog";
|
|
8
|
-
import DxcDropdown from "./dropdown/Dropdown";
|
|
9
|
-
import DxcFooter from "./footer/Footer";
|
|
10
|
-
import DxcHeader from "./header/Header";
|
|
11
|
-
import DxcInput from "./input-text/InputText";
|
|
12
|
-
import DxcRadio from "./radio/Radio";
|
|
13
|
-
import V3DxcSelect from "./V3Select/V3Select";
|
|
14
|
-
import DxcSlider from "./slider/Slider";
|
|
15
|
-
import DxcSwitch from "./switch/Switch";
|
|
16
|
-
import DxcTabs from "./tabs/Tabs";
|
|
17
|
-
import DxcProgressBar from "./progress-bar/ProgressBar";
|
|
18
|
-
import DxcSpinner from "./spinner/Spinner";
|
|
19
|
-
import DxcUpload from "./upload/Upload";
|
|
20
|
-
import DxcTable from "./table/Table";
|
|
21
|
-
import DxcBox from "./box/Box";
|
|
22
|
-
import DxcTag from "./tag/Tag";
|
|
23
|
-
import DxcPaginator from "./paginator/Paginator";
|
|
24
|
-
import DxcSidenav from "./sidenav/Sidenav";
|
|
25
|
-
import DxcWizard from "./wizard/Wizard";
|
|
26
|
-
import DxcLink from "./link/Link";
|
|
27
|
-
import DxcHeading from "./heading/Heading";
|
|
28
|
-
import V3DxcTextarea from "./V3Textarea/V3Textarea";
|
|
29
|
-
import DxcResultsetTable from "./resultsetTable/ResultsetTable";
|
|
30
|
-
import DxcChip from "./chip/Chip";
|
|
31
|
-
import DxcApplicationLayout from "./layout/ApplicationLayout";
|
|
32
|
-
import DxcToggleGroup from "./toggle-group/ToggleGroup";
|
|
33
|
-
import DxcAccordionGroup from "./accordion-group/AccordionGroup";
|
|
34
|
-
import DxcBadge from "./badge/Badge";
|
|
35
|
-
import DxcTextInput from "./text-input/TextInput";
|
|
36
|
-
import DxcPasswordInput from "./password-input/PasswordInput";
|
|
37
|
-
import DxcDateInput from "./date-input/DateInput";
|
|
38
|
-
import DxcNumberInput from "./number-input/NumberInput";
|
|
39
|
-
import DxcTextarea from "./textarea/Textarea";
|
|
40
|
-
import DxcSelect from "./select/Select";
|
|
41
|
-
import DxcFileInput from "./file-input/FileInput";
|
|
42
|
-
import ThemeContext, { ThemeProvider } from "./ThemeContext.js";
|
|
43
|
-
import { BackgroundColorProvider } from "./BackgroundColorContext.js";
|
|
44
|
-
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, };
|
package/main.js
DELETED
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
Object.defineProperty(exports, "BackgroundColorProvider", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function get() {
|
|
13
|
-
return _BackgroundColorContext.BackgroundColorProvider;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "DxcAccordion", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function get() {
|
|
19
|
-
return _Accordion["default"];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
Object.defineProperty(exports, "DxcAccordionGroup", {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function get() {
|
|
25
|
-
return _AccordionGroup["default"];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports, "DxcAlert", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function get() {
|
|
31
|
-
return _Alert["default"];
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(exports, "DxcApplicationLayout", {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function get() {
|
|
37
|
-
return _ApplicationLayout["default"];
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(exports, "DxcBadge", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function get() {
|
|
43
|
-
return _Badge["default"];
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(exports, "DxcBox", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function get() {
|
|
49
|
-
return _Box["default"];
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
Object.defineProperty(exports, "DxcButton", {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
get: function get() {
|
|
55
|
-
return _Button["default"];
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(exports, "DxcCard", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
get: function get() {
|
|
61
|
-
return _Card["default"];
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(exports, "DxcCheckbox", {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function get() {
|
|
67
|
-
return _Checkbox["default"];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
Object.defineProperty(exports, "DxcChip", {
|
|
71
|
-
enumerable: true,
|
|
72
|
-
get: function get() {
|
|
73
|
-
return _Chip["default"];
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(exports, "DxcDate", {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function get() {
|
|
79
|
-
return _Date["default"];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
Object.defineProperty(exports, "DxcDateInput", {
|
|
83
|
-
enumerable: true,
|
|
84
|
-
get: function get() {
|
|
85
|
-
return _DateInput["default"];
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(exports, "DxcDialog", {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
get: function get() {
|
|
91
|
-
return _Dialog["default"];
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
Object.defineProperty(exports, "DxcDropdown", {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
get: function get() {
|
|
97
|
-
return _Dropdown["default"];
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
Object.defineProperty(exports, "DxcFileInput", {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
get: function get() {
|
|
103
|
-
return _FileInput["default"];
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
Object.defineProperty(exports, "DxcFooter", {
|
|
107
|
-
enumerable: true,
|
|
108
|
-
get: function get() {
|
|
109
|
-
return _Footer["default"];
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
Object.defineProperty(exports, "DxcHeader", {
|
|
113
|
-
enumerable: true,
|
|
114
|
-
get: function get() {
|
|
115
|
-
return _Header["default"];
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
Object.defineProperty(exports, "DxcHeading", {
|
|
119
|
-
enumerable: true,
|
|
120
|
-
get: function get() {
|
|
121
|
-
return _Heading["default"];
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
Object.defineProperty(exports, "DxcInput", {
|
|
125
|
-
enumerable: true,
|
|
126
|
-
get: function get() {
|
|
127
|
-
return _InputText["default"];
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
Object.defineProperty(exports, "DxcLink", {
|
|
131
|
-
enumerable: true,
|
|
132
|
-
get: function get() {
|
|
133
|
-
return _Link["default"];
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(exports, "DxcNumberInput", {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
get: function get() {
|
|
139
|
-
return _NumberInput["default"];
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
Object.defineProperty(exports, "DxcPaginator", {
|
|
143
|
-
enumerable: true,
|
|
144
|
-
get: function get() {
|
|
145
|
-
return _Paginator["default"];
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
Object.defineProperty(exports, "DxcPasswordInput", {
|
|
149
|
-
enumerable: true,
|
|
150
|
-
get: function get() {
|
|
151
|
-
return _PasswordInput["default"];
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
Object.defineProperty(exports, "DxcProgressBar", {
|
|
155
|
-
enumerable: true,
|
|
156
|
-
get: function get() {
|
|
157
|
-
return _ProgressBar["default"];
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
Object.defineProperty(exports, "DxcRadio", {
|
|
161
|
-
enumerable: true,
|
|
162
|
-
get: function get() {
|
|
163
|
-
return _Radio["default"];
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
Object.defineProperty(exports, "DxcResultsetTable", {
|
|
167
|
-
enumerable: true,
|
|
168
|
-
get: function get() {
|
|
169
|
-
return _ResultsetTable["default"];
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
Object.defineProperty(exports, "DxcSelect", {
|
|
173
|
-
enumerable: true,
|
|
174
|
-
get: function get() {
|
|
175
|
-
return _Select["default"];
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
Object.defineProperty(exports, "DxcSidenav", {
|
|
179
|
-
enumerable: true,
|
|
180
|
-
get: function get() {
|
|
181
|
-
return _Sidenav["default"];
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
Object.defineProperty(exports, "DxcSlider", {
|
|
185
|
-
enumerable: true,
|
|
186
|
-
get: function get() {
|
|
187
|
-
return _Slider["default"];
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
Object.defineProperty(exports, "DxcSpinner", {
|
|
191
|
-
enumerable: true,
|
|
192
|
-
get: function get() {
|
|
193
|
-
return _Spinner["default"];
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
Object.defineProperty(exports, "DxcSwitch", {
|
|
197
|
-
enumerable: true,
|
|
198
|
-
get: function get() {
|
|
199
|
-
return _Switch["default"];
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
Object.defineProperty(exports, "DxcTable", {
|
|
203
|
-
enumerable: true,
|
|
204
|
-
get: function get() {
|
|
205
|
-
return _Table["default"];
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
Object.defineProperty(exports, "DxcTabs", {
|
|
209
|
-
enumerable: true,
|
|
210
|
-
get: function get() {
|
|
211
|
-
return _Tabs["default"];
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
Object.defineProperty(exports, "DxcTag", {
|
|
215
|
-
enumerable: true,
|
|
216
|
-
get: function get() {
|
|
217
|
-
return _Tag["default"];
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
Object.defineProperty(exports, "DxcTextInput", {
|
|
221
|
-
enumerable: true,
|
|
222
|
-
get: function get() {
|
|
223
|
-
return _TextInput["default"];
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
Object.defineProperty(exports, "DxcTextarea", {
|
|
227
|
-
enumerable: true,
|
|
228
|
-
get: function get() {
|
|
229
|
-
return _Textarea["default"];
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
Object.defineProperty(exports, "DxcToggleGroup", {
|
|
233
|
-
enumerable: true,
|
|
234
|
-
get: function get() {
|
|
235
|
-
return _ToggleGroup["default"];
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
Object.defineProperty(exports, "DxcUpload", {
|
|
239
|
-
enumerable: true,
|
|
240
|
-
get: function get() {
|
|
241
|
-
return _Upload["default"];
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
Object.defineProperty(exports, "DxcWizard", {
|
|
245
|
-
enumerable: true,
|
|
246
|
-
get: function get() {
|
|
247
|
-
return _Wizard["default"];
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
Object.defineProperty(exports, "ThemeContext", {
|
|
251
|
-
enumerable: true,
|
|
252
|
-
get: function get() {
|
|
253
|
-
return _ThemeContext["default"];
|
|
254
|
-
}
|
|
255
|
-
});
|
|
256
|
-
Object.defineProperty(exports, "ThemeProvider", {
|
|
257
|
-
enumerable: true,
|
|
258
|
-
get: function get() {
|
|
259
|
-
return _ThemeContext.ThemeProvider;
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
Object.defineProperty(exports, "V3DxcSelect", {
|
|
263
|
-
enumerable: true,
|
|
264
|
-
get: function get() {
|
|
265
|
-
return _V3Select["default"];
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
Object.defineProperty(exports, "V3DxcTextarea", {
|
|
269
|
-
enumerable: true,
|
|
270
|
-
get: function get() {
|
|
271
|
-
return _V3Textarea["default"];
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
|
|
275
|
-
var _Alert = _interopRequireDefault(require("./alert/Alert"));
|
|
276
|
-
|
|
277
|
-
var _Accordion = _interopRequireDefault(require("./accordion/Accordion"));
|
|
278
|
-
|
|
279
|
-
var _Button = _interopRequireDefault(require("./button/Button"));
|
|
280
|
-
|
|
281
|
-
var _Card = _interopRequireDefault(require("./card/Card"));
|
|
282
|
-
|
|
283
|
-
var _Checkbox = _interopRequireDefault(require("./checkbox/Checkbox"));
|
|
284
|
-
|
|
285
|
-
var _Date = _interopRequireDefault(require("./date/Date"));
|
|
286
|
-
|
|
287
|
-
var _Dialog = _interopRequireDefault(require("./dialog/Dialog"));
|
|
288
|
-
|
|
289
|
-
var _Dropdown = _interopRequireDefault(require("./dropdown/Dropdown"));
|
|
290
|
-
|
|
291
|
-
var _Footer = _interopRequireDefault(require("./footer/Footer"));
|
|
292
|
-
|
|
293
|
-
var _Header = _interopRequireDefault(require("./header/Header"));
|
|
294
|
-
|
|
295
|
-
var _InputText = _interopRequireDefault(require("./input-text/InputText"));
|
|
296
|
-
|
|
297
|
-
var _Radio = _interopRequireDefault(require("./radio/Radio"));
|
|
298
|
-
|
|
299
|
-
var _V3Select = _interopRequireDefault(require("./V3Select/V3Select"));
|
|
300
|
-
|
|
301
|
-
var _Slider = _interopRequireDefault(require("./slider/Slider"));
|
|
302
|
-
|
|
303
|
-
var _Switch = _interopRequireDefault(require("./switch/Switch"));
|
|
304
|
-
|
|
305
|
-
var _Tabs = _interopRequireDefault(require("./tabs/Tabs"));
|
|
306
|
-
|
|
307
|
-
var _ProgressBar = _interopRequireDefault(require("./progress-bar/ProgressBar"));
|
|
308
|
-
|
|
309
|
-
var _Spinner = _interopRequireDefault(require("./spinner/Spinner"));
|
|
310
|
-
|
|
311
|
-
var _Upload = _interopRequireDefault(require("./upload/Upload"));
|
|
312
|
-
|
|
313
|
-
var _Table = _interopRequireDefault(require("./table/Table"));
|
|
314
|
-
|
|
315
|
-
var _Box = _interopRequireDefault(require("./box/Box"));
|
|
316
|
-
|
|
317
|
-
var _Tag = _interopRequireDefault(require("./tag/Tag"));
|
|
318
|
-
|
|
319
|
-
var _Paginator = _interopRequireDefault(require("./paginator/Paginator"));
|
|
320
|
-
|
|
321
|
-
var _Sidenav = _interopRequireDefault(require("./sidenav/Sidenav"));
|
|
322
|
-
|
|
323
|
-
var _Wizard = _interopRequireDefault(require("./wizard/Wizard"));
|
|
324
|
-
|
|
325
|
-
var _Link = _interopRequireDefault(require("./link/Link"));
|
|
326
|
-
|
|
327
|
-
var _Heading = _interopRequireDefault(require("./heading/Heading"));
|
|
328
|
-
|
|
329
|
-
var _V3Textarea = _interopRequireDefault(require("./V3Textarea/V3Textarea"));
|
|
330
|
-
|
|
331
|
-
var _ResultsetTable = _interopRequireDefault(require("./resultsetTable/ResultsetTable"));
|
|
332
|
-
|
|
333
|
-
var _Chip = _interopRequireDefault(require("./chip/Chip"));
|
|
334
|
-
|
|
335
|
-
var _ApplicationLayout = _interopRequireDefault(require("./layout/ApplicationLayout"));
|
|
336
|
-
|
|
337
|
-
var _ToggleGroup = _interopRequireDefault(require("./toggle-group/ToggleGroup"));
|
|
338
|
-
|
|
339
|
-
var _AccordionGroup = _interopRequireDefault(require("./accordion-group/AccordionGroup"));
|
|
340
|
-
|
|
341
|
-
var _Badge = _interopRequireDefault(require("./badge/Badge"));
|
|
342
|
-
|
|
343
|
-
var _TextInput = _interopRequireDefault(require("./text-input/TextInput"));
|
|
344
|
-
|
|
345
|
-
var _PasswordInput = _interopRequireDefault(require("./password-input/PasswordInput"));
|
|
346
|
-
|
|
347
|
-
var _DateInput = _interopRequireDefault(require("./date-input/DateInput"));
|
|
348
|
-
|
|
349
|
-
var _NumberInput = _interopRequireDefault(require("./number-input/NumberInput"));
|
|
350
|
-
|
|
351
|
-
var _Textarea = _interopRequireDefault(require("./textarea/Textarea"));
|
|
352
|
-
|
|
353
|
-
var _Select = _interopRequireDefault(require("./select/Select"));
|
|
354
|
-
|
|
355
|
-
var _FileInput = _interopRequireDefault(require("./file-input/FileInput"));
|
|
356
|
-
|
|
357
|
-
var _ThemeContext = _interopRequireWildcard(require("./ThemeContext.js"));
|
|
358
|
-
|
|
359
|
-
var _BackgroundColorContext = require("./BackgroundColorContext.js");
|
|
360
|
-
|
|
361
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
362
|
-
|
|
363
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -1,86 +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 _TextInput = _interopRequireDefault(require("../text-input/TextInput"));
|
|
17
|
-
|
|
18
|
-
var _NumberInputContext = _interopRequireDefault(require("./NumberInputContext"));
|
|
19
|
-
|
|
20
|
-
var _templateObject;
|
|
21
|
-
|
|
22
|
-
var DxcNumberInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
23
|
-
var _ref$label = _ref.label,
|
|
24
|
-
label = _ref$label === void 0 ? "" : _ref$label,
|
|
25
|
-
_ref$name = _ref.name,
|
|
26
|
-
name = _ref$name === void 0 ? "" : _ref$name,
|
|
27
|
-
value = _ref.value,
|
|
28
|
-
_ref$helperText = _ref.helperText,
|
|
29
|
-
helperText = _ref$helperText === void 0 ? "" : _ref$helperText,
|
|
30
|
-
_ref$placeholder = _ref.placeholder,
|
|
31
|
-
placeholder = _ref$placeholder === void 0 ? "" : _ref$placeholder,
|
|
32
|
-
_ref$disabled = _ref.disabled,
|
|
33
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
34
|
-
_ref$optional = _ref.optional,
|
|
35
|
-
optional = _ref$optional === void 0 ? false : _ref$optional,
|
|
36
|
-
_ref$prefix = _ref.prefix,
|
|
37
|
-
prefix = _ref$prefix === void 0 ? "" : _ref$prefix,
|
|
38
|
-
_ref$suffix = _ref.suffix,
|
|
39
|
-
suffix = _ref$suffix === void 0 ? "" : _ref$suffix,
|
|
40
|
-
min = _ref.min,
|
|
41
|
-
max = _ref.max,
|
|
42
|
-
_ref$step = _ref.step,
|
|
43
|
-
step = _ref$step === void 0 ? 1 : _ref$step,
|
|
44
|
-
onChange = _ref.onChange,
|
|
45
|
-
onBlur = _ref.onBlur,
|
|
46
|
-
_ref$error = _ref.error,
|
|
47
|
-
error = _ref$error === void 0 ? "" : _ref$error,
|
|
48
|
-
_ref$autocomplete = _ref.autocomplete,
|
|
49
|
-
autocomplete = _ref$autocomplete === void 0 ? "off" : _ref$autocomplete,
|
|
50
|
-
margin = _ref.margin,
|
|
51
|
-
_ref$size = _ref.size,
|
|
52
|
-
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
53
|
-
_ref$tabIndex = _ref.tabIndex,
|
|
54
|
-
tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
|
|
55
|
-
return /*#__PURE__*/_react["default"].createElement(_NumberInputContext["default"].Provider, {
|
|
56
|
-
value: {
|
|
57
|
-
typeNumber: "number",
|
|
58
|
-
minNumber: min,
|
|
59
|
-
maxNumber: max,
|
|
60
|
-
stepNumber: step
|
|
61
|
-
}
|
|
62
|
-
}, /*#__PURE__*/_react["default"].createElement(NumberInputContainer, null, /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
63
|
-
label: label,
|
|
64
|
-
name: name,
|
|
65
|
-
value: value,
|
|
66
|
-
helperText: helperText,
|
|
67
|
-
placeholder: placeholder,
|
|
68
|
-
disabled: disabled,
|
|
69
|
-
optional: optional,
|
|
70
|
-
prefix: prefix,
|
|
71
|
-
suffix: suffix,
|
|
72
|
-
error: error,
|
|
73
|
-
onChange: onChange,
|
|
74
|
-
onBlur: onBlur,
|
|
75
|
-
autocomplete: autocomplete,
|
|
76
|
-
margin: margin,
|
|
77
|
-
size: size,
|
|
78
|
-
tabIndex: tabIndex,
|
|
79
|
-
ref: ref
|
|
80
|
-
})));
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
var NumberInputContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n // Chrome, Safari, Edge, Opera\n input::-webkit-outer-spin-button,\n input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n // Firefox\n input[type=\"number\"] {\n -moz-appearance: textfield;\n }\n"])));
|
|
84
|
-
|
|
85
|
-
var _default = DxcNumberInput;
|
|
86
|
-
exports["default"] = _default;
|