@team-monolith/cds 0.4.3 → 0.4.4
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/dist/components/InputBase.js +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/package.json +2 -3
- package/@types/emotion.d.ts +0 -70
- package/@types/svg.d.ts +0 -10
|
@@ -38,7 +38,7 @@ var SIZE_TO_STYLES = function (size) {
|
|
|
38
38
|
};
|
|
39
39
|
export function InputBase(props) {
|
|
40
40
|
var className = props.className, color = props.color, size = props.size, placeholder = props.placeholder, _a = props.disabled, disabled = _a === void 0 ? false : _a, startIcon = props.startIcon, startLabel = props.startLabel, endLabel = props.endLabel, endIcon = props.endIcon, inputProps = props.inputProps, inputRef = props.inputRef, _b = props.fullWidth, fullWidth = _b === void 0 ? false : _b, onChange = props.onChange, onClear = props.onClear, defaultValue = props.defaultValue, value = props.value;
|
|
41
|
-
return (_jsxs(InputContainer, __assign({ className: className, disabled: disabled, color: color, inputSize: size, fullWidth: fullWidth }, { children: [startIcon, startLabel && _jsx("span", { children: startLabel }), _jsx(StyledInput, __assign({}, inputProps, { ref: inputRef, onChange: onChange, placeholder: placeholder, disabled: disabled, defaultValue: defaultValue, value: value })), endLabel && _jsx("span", { children: endLabel }), endIcon, onClear && (_jsx(ClearButton, __assign({ onClick: onClear, disabled: disabled, tabIndex: -1 }, { children: _jsx(CloseCircleFillIcon, {}) })))] })));
|
|
41
|
+
return (_jsxs(InputContainer, __assign({ className: className, disabled: disabled, color: color, inputSize: size, fullWidth: fullWidth }, { children: [startIcon, startLabel && _jsx("span", { children: startLabel }), _jsx(StyledInput, __assign({}, inputProps, { ref: inputRef, onChange: onChange, placeholder: placeholder, disabled: disabled, defaultValue: defaultValue, value: value })), endLabel && _jsx("span", { children: endLabel }), endIcon, onClear && (_jsx(ClearButton, __assign({ type: "button", onClick: onClear, disabled: disabled, tabIndex: -1 }, { children: _jsx(CloseCircleFillIcon, {}) })))] })));
|
|
42
42
|
}
|
|
43
43
|
var InputContainer = styled.div(function (_a) {
|
|
44
44
|
var theme = _a.theme, color = _a.color, inputSize = _a.inputSize, disabled = _a.disabled, fullWidth = _a.fullWidth;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@team-monolith/cds",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
"typescript": "^4.5.5"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
|
-
"dist/**/*"
|
|
20
|
-
"@types/**/*"
|
|
19
|
+
"dist/**/*"
|
|
21
20
|
],
|
|
22
21
|
"scripts": {
|
|
23
22
|
"clean": "rimraf dist",
|
package/@types/emotion.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import "@emotion/react";
|
|
2
|
-
|
|
3
|
-
interface CodleColors {
|
|
4
|
-
background: {
|
|
5
|
-
neutralBase: string;
|
|
6
|
-
neutralAlt: string;
|
|
7
|
-
neutralAltActive: string;
|
|
8
|
-
neutralAltDisabled: string;
|
|
9
|
-
primary: string;
|
|
10
|
-
primaryActive: string;
|
|
11
|
-
primaryDisabled: string;
|
|
12
|
-
secondary: string;
|
|
13
|
-
secondaryActive: string;
|
|
14
|
-
secondaryDisabled: string;
|
|
15
|
-
danger: string;
|
|
16
|
-
dangerActive: string;
|
|
17
|
-
dangerDisabled: string;
|
|
18
|
-
success: string;
|
|
19
|
-
successActive: string;
|
|
20
|
-
successDisabled: string;
|
|
21
|
-
info: string;
|
|
22
|
-
infoActive: string;
|
|
23
|
-
infoDisabled: string;
|
|
24
|
-
warning: string;
|
|
25
|
-
warningActive: string;
|
|
26
|
-
warningDisabled: string;
|
|
27
|
-
};
|
|
28
|
-
foreground: {
|
|
29
|
-
neutralBase: string;
|
|
30
|
-
neutralBaseDisabled: string;
|
|
31
|
-
neutralAlt: string;
|
|
32
|
-
neutralAltDisabled: string;
|
|
33
|
-
primary: string;
|
|
34
|
-
primaryDisabled: string;
|
|
35
|
-
secondary: string;
|
|
36
|
-
secondaryDisabled: string;
|
|
37
|
-
danger: string;
|
|
38
|
-
dangerDisabled: string;
|
|
39
|
-
success: string;
|
|
40
|
-
successDisabled: string;
|
|
41
|
-
info: string;
|
|
42
|
-
infoDisabled: string;
|
|
43
|
-
warning: string;
|
|
44
|
-
warningDisabled: string;
|
|
45
|
-
};
|
|
46
|
-
container: {
|
|
47
|
-
primaryContainer: string;
|
|
48
|
-
primaryOnContainer: string;
|
|
49
|
-
secondaryContainer: string;
|
|
50
|
-
secondaryOnContainer: string;
|
|
51
|
-
dangerContainer: string;
|
|
52
|
-
dangerOnContainer: string;
|
|
53
|
-
successContainer: string;
|
|
54
|
-
successOnContainer: string;
|
|
55
|
-
infoContainer: string;
|
|
56
|
-
infoOnContainer: string;
|
|
57
|
-
warningContainer: string;
|
|
58
|
-
warningOnContainer: string;
|
|
59
|
-
obsidianContainer: string;
|
|
60
|
-
obsidianOnContainer: string;
|
|
61
|
-
marbleContainer: string;
|
|
62
|
-
marbleOnContainer: string;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
declare module "@emotion/react" {
|
|
67
|
-
export interface Theme {
|
|
68
|
-
color: CodleColors;
|
|
69
|
-
}
|
|
70
|
-
}
|