carbon-react 126.0.1 → 126.2.0
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/esm/__internal__/input/input-presentation.component.d.ts +4 -1
- package/esm/__internal__/input/input-presentation.component.js +12 -9
- package/esm/__internal__/input/input-presentation.style.d.ts +1 -1
- package/esm/__internal__/input/input-presentation.style.js +10 -1
- package/esm/__internal__/input/input.component.d.ts +3 -0
- package/esm/__internal__/input/input.component.js +4 -1
- package/esm/__internal__/input/input.style.d.ts +1 -1
- package/esm/__internal__/input/input.style.js +9 -1
- package/esm/components/box/box.component.d.ts +1 -1
- package/esm/components/button/button-types.style.d.ts +2 -0
- package/esm/components/button/button-types.style.js +100 -60
- package/esm/components/button/button.component.d.ts +1 -1
- package/esm/components/button/button.component.js +13 -11
- package/esm/components/button/button.config.js +1 -1
- package/esm/components/button/button.style.d.ts +1 -0
- package/esm/components/button/button.style.js +4 -0
- package/esm/components/date/date.component.js +1 -0
- package/esm/components/decimal/decimal.component.js +1 -0
- package/esm/components/flat-table/flat-table-header/flat-table-header-utils.d.ts +1 -1
- package/esm/components/grouped-character/grouped-character.component.js +1 -0
- package/esm/components/number/number.component.js +1 -0
- package/esm/components/select/filterable-select/filterable-select.component.js +1 -0
- package/esm/components/select/multi-select/multi-select.component.js +1 -0
- package/esm/components/select/select-textbox/select-textbox.component.js +1 -0
- package/esm/components/select/simple-select/simple-select.component.js +1 -0
- package/esm/components/textarea/textarea.component.d.ts +3 -0
- package/esm/components/textarea/textarea.component.js +13 -2
- package/esm/components/textbox/textbox.component.js +1 -0
- package/lib/__internal__/input/input-presentation.component.d.ts +4 -1
- package/lib/__internal__/input/input-presentation.component.js +12 -9
- package/lib/__internal__/input/input-presentation.style.d.ts +1 -1
- package/lib/__internal__/input/input-presentation.style.js +10 -1
- package/lib/__internal__/input/input.component.d.ts +3 -0
- package/lib/__internal__/input/input.component.js +4 -1
- package/lib/__internal__/input/input.style.d.ts +1 -1
- package/lib/__internal__/input/input.style.js +9 -1
- package/lib/components/box/box.component.d.ts +1 -1
- package/lib/components/button/button-types.style.d.ts +2 -0
- package/lib/components/button/button-types.style.js +100 -60
- package/lib/components/button/button.component.d.ts +1 -1
- package/lib/components/button/button.component.js +12 -10
- package/lib/components/button/button.config.js +1 -1
- package/lib/components/button/button.style.d.ts +1 -0
- package/lib/components/button/button.style.js +5 -1
- package/lib/components/date/date.component.js +1 -0
- package/lib/components/decimal/decimal.component.js +1 -0
- package/lib/components/flat-table/flat-table-header/flat-table-header-utils.d.ts +1 -1
- package/lib/components/grouped-character/grouped-character.component.js +1 -0
- package/lib/components/number/number.component.js +1 -0
- package/lib/components/select/filterable-select/filterable-select.component.js +1 -0
- package/lib/components/select/multi-select/multi-select.component.js +1 -0
- package/lib/components/select/select-textbox/select-textbox.component.js +1 -0
- package/lib/components/select/simple-select/simple-select.component.js +1 -0
- package/lib/components/textarea/textarea.component.d.ts +3 -0
- package/lib/components/textarea/textarea.component.js +13 -2
- package/lib/components/textbox/textbox.component.js +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { BorderRadiusType } from "../../components/box/box.component";
|
|
2
3
|
import { ValidationProps } from "../validations";
|
|
3
4
|
export declare type Sizes = "small" | "medium" | "large";
|
|
4
5
|
export interface CommonInputPresentationProps extends ValidationProps {
|
|
@@ -22,10 +23,12 @@ export interface CommonInputPresentationProps extends ValidationProps {
|
|
|
22
23
|
size?: Sizes;
|
|
23
24
|
/** If true, the component has an icon rendered inside */
|
|
24
25
|
hasIcon?: boolean;
|
|
26
|
+
/** Specify a custom border radius. Any valid border-radius design token, or an array of border-radius design tokens. */
|
|
27
|
+
borderRadius?: BorderRadiusType | BorderRadiusType[];
|
|
25
28
|
}
|
|
26
29
|
export interface InputPresentationProps extends CommonInputPresentationProps {
|
|
27
30
|
/** Content to be rendered before the input */
|
|
28
31
|
positionedChildren?: React.ReactNode;
|
|
29
32
|
}
|
|
30
|
-
declare const InputPresentation: ({ children,
|
|
33
|
+
declare const InputPresentation: ({ align, borderRadius, children, disabled, error, hasIcon, info, inputWidth, maxWidth, positionedChildren, prefix, readOnly, size, warning, }: InputPresentationProps) => JSX.Element;
|
|
31
34
|
export default InputPresentation;
|
|
@@ -4,19 +4,20 @@ import InputPresentationStyle, { StyledInputPresentationContainer } from "./inpu
|
|
|
4
4
|
import { InputContext, InputGroupContext } from "../input-behaviour";
|
|
5
5
|
import { NewValidationContext } from "../../components/carbon-provider/carbon-provider.component";
|
|
6
6
|
const InputPresentation = ({
|
|
7
|
+
align,
|
|
8
|
+
borderRadius = "borderRadius050",
|
|
7
9
|
children,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
disabled,
|
|
11
|
+
error,
|
|
12
|
+
hasIcon,
|
|
13
|
+
info,
|
|
10
14
|
inputWidth,
|
|
11
15
|
maxWidth,
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
positionedChildren,
|
|
17
|
+
prefix,
|
|
14
18
|
readOnly,
|
|
15
19
|
size = "medium",
|
|
16
|
-
|
|
17
|
-
warning,
|
|
18
|
-
info,
|
|
19
|
-
hasIcon
|
|
20
|
+
warning
|
|
20
21
|
}) => {
|
|
21
22
|
const {
|
|
22
23
|
hasFocus,
|
|
@@ -57,11 +58,13 @@ const InputPresentation = ({
|
|
|
57
58
|
error: error,
|
|
58
59
|
info: info,
|
|
59
60
|
validationRedesignOptIn: validationRedesignOptIn,
|
|
60
|
-
hasIcon: hasIcon
|
|
61
|
+
hasIcon: hasIcon,
|
|
62
|
+
borderRadius: borderRadius
|
|
61
63
|
}, children));
|
|
62
64
|
};
|
|
63
65
|
InputPresentation.propTypes = {
|
|
64
66
|
"align": PropTypes.string,
|
|
67
|
+
"borderRadius": PropTypes.any,
|
|
65
68
|
"children": PropTypes.node,
|
|
66
69
|
"disabled": PropTypes.bool,
|
|
67
70
|
"error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
@@ -2,5 +2,5 @@ import { CommonInputPresentationProps } from "./input-presentation.component";
|
|
|
2
2
|
import { InputContextProps } from "../input-behaviour";
|
|
3
3
|
import { CarbonProviderProps } from "../../components/carbon-provider";
|
|
4
4
|
export declare const StyledInputPresentationContainer: import("styled-components").StyledComponent<"div", any, Pick<CommonInputPresentationProps, "maxWidth" | "inputWidth">, never>;
|
|
5
|
-
declare const InputPresentationStyle: import("styled-components").StyledComponent<"div", any, Pick<InputContextProps, "hasFocus"> & Pick<CommonInputPresentationProps, "disabled" | "error" | "info" | "warning" | "prefix" | "align" | "readOnly" | "size" | "hasIcon"> & Pick<CarbonProviderProps, "validationRedesignOptIn">, never>;
|
|
5
|
+
declare const InputPresentationStyle: import("styled-components").StyledComponent<"div", any, Pick<InputContextProps, "hasFocus"> & Pick<CommonInputPresentationProps, "disabled" | "error" | "info" | "warning" | "prefix" | "align" | "readOnly" | "size" | "borderRadius" | "hasIcon"> & Pick<CarbonProviderProps, "validationRedesignOptIn">, never>;
|
|
6
6
|
export default InputPresentationStyle;
|
|
@@ -45,13 +45,22 @@ const InputPresentationStyle = styled.div`
|
|
|
45
45
|
align-items: stretch;
|
|
46
46
|
background: var(--colorsUtilityYang100);
|
|
47
47
|
border: 1px solid var(--colorsUtilityMajor300);
|
|
48
|
-
border-radius: var(--borderRadius050);
|
|
49
48
|
box-sizing: border-box;
|
|
50
49
|
cursor: text;
|
|
51
50
|
display: flex;
|
|
52
51
|
flex-wrap: wrap;
|
|
53
52
|
width: 100%;
|
|
54
53
|
margin: 0;
|
|
54
|
+
|
|
55
|
+
${({
|
|
56
|
+
borderRadius
|
|
57
|
+
}) => {
|
|
58
|
+
if (Array.isArray(borderRadius)) {
|
|
59
|
+
return `border-radius: ${borderRadius.map(value => `var(--${value})`).join(" ")};`;
|
|
60
|
+
}
|
|
61
|
+
return `border-radius: var(--${borderRadius});`;
|
|
62
|
+
}}
|
|
63
|
+
|
|
55
64
|
${({
|
|
56
65
|
size,
|
|
57
66
|
hasIcon,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { BorderRadiusType } from "../../components/box/box.component";
|
|
2
3
|
export interface CommonInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
3
4
|
align?: "right" | "left";
|
|
4
5
|
/** The id of the element that describe the input. */
|
|
@@ -11,6 +12,8 @@ export interface CommonInputProps extends Omit<React.InputHTMLAttributes<HTMLInp
|
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
/** HTML id attribute of the input */
|
|
13
14
|
id?: string;
|
|
15
|
+
/** Specify a custom border radius for the input. Any valid border-radius design token, or an array of border-radius design tokens. */
|
|
16
|
+
inputBorderRadius?: BorderRadiusType | BorderRadiusType[];
|
|
14
17
|
/** A callback to retrieve the input reference */
|
|
15
18
|
inputRef?: (input: React.RefObject<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
16
19
|
/** Name of the input */
|
|
@@ -44,6 +44,7 @@ const Input = /*#__PURE__*/React.forwardRef(({
|
|
|
44
44
|
id,
|
|
45
45
|
name,
|
|
46
46
|
validationIconId,
|
|
47
|
+
inputBorderRadius = "borderRadius050",
|
|
47
48
|
...rest
|
|
48
49
|
}, ref) => {
|
|
49
50
|
const context = useContext(InputContext);
|
|
@@ -146,7 +147,8 @@ const Input = /*#__PURE__*/React.forwardRef(({
|
|
|
146
147
|
onFocus: handleFocus,
|
|
147
148
|
onBlur: handleBlur,
|
|
148
149
|
onClick: handleClick,
|
|
149
|
-
onChange: handleChange
|
|
150
|
+
onChange: handleChange,
|
|
151
|
+
inputBorderRadius: inputBorderRadius
|
|
150
152
|
}));
|
|
151
153
|
});
|
|
152
154
|
Input.propTypes = {
|
|
@@ -240,6 +242,7 @@ Input.propTypes = {
|
|
|
240
242
|
"hidden": PropTypes.bool,
|
|
241
243
|
"id": PropTypes.string,
|
|
242
244
|
"inlist": PropTypes.any,
|
|
245
|
+
"inputBorderRadius": PropTypes.any,
|
|
243
246
|
"inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
|
|
244
247
|
"inputRef": PropTypes.func,
|
|
245
248
|
"is": PropTypes.string,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CommonInputProps } from "./input.component";
|
|
2
|
-
declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "align" | "readOnly">, never>;
|
|
2
|
+
declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "align" | "readOnly" | "inputBorderRadius">, never>;
|
|
3
3
|
export default StyledInput;
|
|
@@ -2,7 +2,6 @@ import styled, { css } from "styled-components";
|
|
|
2
2
|
const StyledInput = styled.input`
|
|
3
3
|
background: transparent;
|
|
4
4
|
border: none;
|
|
5
|
-
border-radius: var(--borderRadius050);
|
|
6
5
|
color: var(--colorsUtilityYin090);
|
|
7
6
|
flex-grow: 1;
|
|
8
7
|
font-size: var(--fontSizes100);
|
|
@@ -16,6 +15,15 @@ const StyledInput = styled.input`
|
|
|
16
15
|
-webkit-background-clip: text;
|
|
17
16
|
}
|
|
18
17
|
|
|
18
|
+
${({
|
|
19
|
+
inputBorderRadius
|
|
20
|
+
}) => {
|
|
21
|
+
if (Array.isArray(inputBorderRadius)) {
|
|
22
|
+
return `border-radius: ${inputBorderRadius.map(value => `var(--${value})`).join(" ")};`;
|
|
23
|
+
}
|
|
24
|
+
return `border-radius: var(--${inputBorderRadius});`;
|
|
25
|
+
}}
|
|
26
|
+
|
|
19
27
|
${({
|
|
20
28
|
align
|
|
21
29
|
}) => align && css`
|
|
@@ -8,7 +8,7 @@ export declare type ScrollVariant = "light" | "dark";
|
|
|
8
8
|
export declare type BoxSizing = "content-box" | "border-box";
|
|
9
9
|
declare type DesignTokensType = keyof typeof DesignTokens;
|
|
10
10
|
declare type BoxShadowsType = Extract<DesignTokensType, `boxShadow${string}`>;
|
|
11
|
-
declare type BorderRadiusType = Extract<DesignTokensType, `borderRadius${string}`>;
|
|
11
|
+
export declare type BorderRadiusType = Extract<DesignTokensType, `borderRadius${string}`>;
|
|
12
12
|
export interface BoxProps extends FlexboxProps, Omit<GridProps, "gridGap" | "gridRowGap" | "gridColumnGap">, LayoutProps, Omit<PositionProps, "zIndex">, SpaceProps, TagProps {
|
|
13
13
|
as?: keyof JSX.IntrinsicElements | React.ComponentType<any>;
|
|
14
14
|
/** Set the ID attribute of the Box component */
|
|
@@ -11,6 +11,27 @@ function makeColors(color) {
|
|
|
11
11
|
}
|
|
12
12
|
`;
|
|
13
13
|
}
|
|
14
|
+
const disabledImageStyle = `
|
|
15
|
+
img, svg {
|
|
16
|
+
opacity: 0.3;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
const gradientDisabledStyle = `
|
|
20
|
+
background: transparent;
|
|
21
|
+
border-color: var(--colorsActionDisabled500);
|
|
22
|
+
${makeColors("var(--colorsActionMajorYin030)")};
|
|
23
|
+
&:hover {
|
|
24
|
+
border-color: var(--colorsActionDisabled500);
|
|
25
|
+
${makeColors("var(--colorsActionMajorYin030)")};
|
|
26
|
+
}
|
|
27
|
+
${disabledImageStyle}
|
|
28
|
+
`;
|
|
29
|
+
const gradientSharedStyle = `
|
|
30
|
+
border: 2px solid transparent;
|
|
31
|
+
&:hover {
|
|
32
|
+
background: linear-gradient(to right, #d6f8df, #d9f2ff, #ede2ff) padding-box, linear-gradient(to right, #00D639, #11AFFF, #8F49FE) border-box;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
14
35
|
export default ((isDisabled, destructive) => ({
|
|
15
36
|
primary: `
|
|
16
37
|
background: var(--colorsActionMajor500);
|
|
@@ -21,26 +42,29 @@ export default ((isDisabled, destructive) => ({
|
|
|
21
42
|
}
|
|
22
43
|
|
|
23
44
|
${isDisabled ? `
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
45
|
+
background: var(--colorsActionDisabled500);
|
|
46
|
+
${makeColors("var(--colorsActionMajorYin030)")};
|
|
47
|
+
&:hover {
|
|
48
|
+
background: var(--colorsActionDisabled500);
|
|
49
|
+
}
|
|
50
|
+
${disabledImageStyle}
|
|
51
|
+
` : ""}
|
|
30
52
|
|
|
31
|
-
${destructive ? `
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
53
|
+
${destructive ? `
|
|
54
|
+
background: var(--colorsSemanticNegative500);
|
|
55
|
+
${makeColors("var(--colorsSemanticNegativeYang100)")};
|
|
56
|
+
&:hover {
|
|
57
|
+
background: var(--colorsSemanticNegative600);
|
|
58
|
+
}
|
|
36
59
|
|
|
37
60
|
${isDisabled ? `
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
61
|
+
background: var(--colorsActionDisabled500);
|
|
62
|
+
${makeColors("var(--colorsActionMajorYin030)")};
|
|
63
|
+
&:hover {
|
|
64
|
+
background: var(--colorsActionDisabled500);
|
|
65
|
+
}
|
|
66
|
+
${disabledImageStyle}
|
|
67
|
+
` : ""}` : ""}
|
|
44
68
|
`,
|
|
45
69
|
secondary: `
|
|
46
70
|
background: transparent;
|
|
@@ -53,24 +77,25 @@ export default ((isDisabled, destructive) => ({
|
|
|
53
77
|
}
|
|
54
78
|
|
|
55
79
|
${destructive ? `
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
80
|
+
border-color: var(--colorsSemanticNegative500);
|
|
81
|
+
${makeColors("var(--colorsSemanticNegative500)")}
|
|
82
|
+
&:hover {
|
|
83
|
+
background: var(--colorsSemanticNegative600);
|
|
84
|
+
border-color: var(--colorsSemanticNegativeTransparent);
|
|
85
|
+
${makeColors("var(--colorsSemanticNegativeYang100)")};
|
|
86
|
+
}
|
|
87
|
+
` : ""}
|
|
64
88
|
|
|
65
89
|
${isDisabled ? `
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
90
|
+
border-color: var(--colorsActionDisabled500);
|
|
91
|
+
${makeColors("var(--colorsActionMajorYin030)")};
|
|
92
|
+
&:hover {
|
|
93
|
+
background: transparent;
|
|
94
|
+
border-color: var(--colorsActionDisabled500);
|
|
95
|
+
${makeColors("var(--colorsActionMajorYin030)")};
|
|
96
|
+
}
|
|
97
|
+
${disabledImageStyle}
|
|
98
|
+
` : ""}
|
|
74
99
|
`,
|
|
75
100
|
tertiary: `
|
|
76
101
|
background: transparent;
|
|
@@ -82,20 +107,21 @@ export default ((isDisabled, destructive) => ({
|
|
|
82
107
|
}
|
|
83
108
|
|
|
84
109
|
${destructive ? `
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
110
|
+
${makeColors("var(--colorsSemanticNegative500)")};
|
|
111
|
+
&:hover {
|
|
112
|
+
background: var(--colorsSemanticNegative600);
|
|
113
|
+
${makeColors("var(--colorsSemanticNegativeYang100)")};
|
|
114
|
+
}
|
|
115
|
+
` : ""}
|
|
91
116
|
|
|
92
117
|
${isDisabled ? `
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
118
|
+
${makeColors("var(--colorsActionMajorYin030)")};
|
|
119
|
+
&:hover {
|
|
120
|
+
background: var(--colorsActionMajorTransparent);
|
|
121
|
+
${makeColors("var(--colorsActionMajorYin030)")};
|
|
122
|
+
}
|
|
123
|
+
${disabledImageStyle}
|
|
124
|
+
` : ""}
|
|
99
125
|
`,
|
|
100
126
|
dashed: `
|
|
101
127
|
background: transparent;
|
|
@@ -106,16 +132,17 @@ export default ((isDisabled, destructive) => ({
|
|
|
106
132
|
}
|
|
107
133
|
|
|
108
134
|
${destructive ? `
|
|
109
|
-
|
|
110
|
-
|
|
135
|
+
border-color: var(--colorsSemanticNegative500);
|
|
136
|
+
` : ""}
|
|
111
137
|
|
|
112
138
|
${isDisabled ? `
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
139
|
+
border-color: var(--colorsActionDisabled500);
|
|
140
|
+
${makeColors("var(--colorsActionMinorYin030)")};
|
|
141
|
+
&:hover {
|
|
142
|
+
background-color: transparent;
|
|
143
|
+
}
|
|
144
|
+
${disabledImageStyle}
|
|
145
|
+
` : ""}
|
|
119
146
|
`,
|
|
120
147
|
darkBackground: `
|
|
121
148
|
background: var(--colorsActionMajorYang100);
|
|
@@ -127,12 +154,25 @@ export default ((isDisabled, destructive) => ({
|
|
|
127
154
|
}
|
|
128
155
|
|
|
129
156
|
${isDisabled ? `
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
157
|
+
background: var(--colorsActionDisabled500);
|
|
158
|
+
${makeColors("var(--colorsActionMajorYin030)")};
|
|
159
|
+
&:hover {
|
|
160
|
+
background: var(--colorsActionDisabled500);
|
|
161
|
+
${makeColors("var(--colorsActionMajorYin030)")};
|
|
162
|
+
}
|
|
163
|
+
${disabledImageStyle}
|
|
164
|
+
` : ""}
|
|
165
|
+
`,
|
|
166
|
+
"gradient-grey": `
|
|
167
|
+
${isDisabled ? gradientDisabledStyle : `
|
|
168
|
+
background: linear-gradient(#F2F5F6, #F2F5F6) padding-box, linear-gradient(to right, #00D639, #11AFFF, #8F49FE) border-box;
|
|
169
|
+
${gradientSharedStyle}
|
|
170
|
+
`}
|
|
171
|
+
`,
|
|
172
|
+
"gradient-white": `
|
|
173
|
+
${isDisabled ? gradientDisabledStyle : `
|
|
174
|
+
background: linear-gradient(#FFFFFF, #FFFFFF) padding-box, linear-gradient(to right, #00D639, #11AFFF, #8F49FE) border-box;
|
|
175
|
+
${gradientSharedStyle}
|
|
176
|
+
`}
|
|
137
177
|
`
|
|
138
178
|
}));
|
|
@@ -3,7 +3,7 @@ import { SpaceProps } from "styled-system";
|
|
|
3
3
|
import { IconType } from "../icon";
|
|
4
4
|
import { TagProps } from "../../__internal__/utils/helpers/tags/tags";
|
|
5
5
|
import { TooltipPositions } from "../tooltip/tooltip.config";
|
|
6
|
-
export declare type ButtonTypes = "primary" | "secondary" | "tertiary" | "dashed" | "darkBackground";
|
|
6
|
+
export declare type ButtonTypes = "primary" | "secondary" | "tertiary" | "dashed" | "darkBackground" | "gradient-grey" | "gradient-white";
|
|
7
7
|
export declare type SizeOptions = "small" | "medium" | "large";
|
|
8
8
|
export declare type ButtonIconPosition = "before" | "after";
|
|
9
9
|
export interface ButtonProps extends SpaceProps, TagProps {
|
|
@@ -3,7 +3,7 @@ import React, { useCallback, useState, useContext } from "react";
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import invariant from "invariant";
|
|
5
5
|
import Icon from "../icon";
|
|
6
|
-
import StyledButton, { StyledButtonSubtext } from "./button.style";
|
|
6
|
+
import StyledButton, { StyledButtonSubtext, StyledButtonMainText } from "./button.style";
|
|
7
7
|
import tagComponent from "../../__internal__/utils/helpers/tags/tags";
|
|
8
8
|
import { TooltipProvider } from "../../__internal__/tooltip-provider";
|
|
9
9
|
import Logger from "../../__internal__/utils/logger";
|
|
@@ -22,24 +22,26 @@ function renderChildren({
|
|
|
22
22
|
iconTooltipPosition,
|
|
23
23
|
tooltipTarget
|
|
24
24
|
}) {
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
const iconColor = () => {
|
|
26
|
+
if (buttonType === "primary") {
|
|
27
|
+
return "--colorsActionMajorYang100";
|
|
28
|
+
}
|
|
29
|
+
if (buttonType.includes("gradient")) {
|
|
30
|
+
return "--colorsActionMinorYin090";
|
|
31
|
+
}
|
|
32
|
+
return "--colorsActionMajor500";
|
|
31
33
|
};
|
|
32
34
|
const iconProps = {
|
|
33
35
|
"aria-hidden": true,
|
|
34
36
|
disabled,
|
|
35
|
-
color:
|
|
37
|
+
color: iconColor(),
|
|
36
38
|
bg: "transparent",
|
|
37
39
|
bgSize: "extra-small"
|
|
38
40
|
};
|
|
39
41
|
const isValidChildren = children !== undefined && children !== false;
|
|
40
42
|
return /*#__PURE__*/React.createElement(React.Fragment, null, iconType && iconPosition === "before" && isValidChildren && /*#__PURE__*/React.createElement(Icon, _extends({
|
|
41
43
|
type: iconType
|
|
42
|
-
}, iconProps)), isValidChildren && /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(
|
|
44
|
+
}, iconProps)), isValidChildren && /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(StyledButtonMainText, {
|
|
43
45
|
"data-element": "main-text"
|
|
44
46
|
}, children), size === "large" && /*#__PURE__*/React.createElement(StyledButtonSubtext, {
|
|
45
47
|
"data-element": "subtext"
|
|
@@ -174,7 +176,7 @@ const Button = /*#__PURE__*/React.forwardRef(({
|
|
|
174
176
|
});
|
|
175
177
|
Button.propTypes = {
|
|
176
178
|
"aria-label": PropTypes.string,
|
|
177
|
-
"buttonType": PropTypes.oneOf(["darkBackground", "dashed", "primary", "secondary", "tertiary"]),
|
|
179
|
+
"buttonType": PropTypes.oneOf(["darkBackground", "dashed", "gradient-grey", "gradient-white", "primary", "secondary", "tertiary"]),
|
|
178
180
|
"children": PropTypes.node,
|
|
179
181
|
"data-component": PropTypes.string,
|
|
180
182
|
"data-element": PropTypes.string,
|
|
@@ -524,7 +526,7 @@ const ButtonWithForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
524
526
|
});
|
|
525
527
|
ButtonWithForwardRef.propTypes = {
|
|
526
528
|
"aria-label": PropTypes.string,
|
|
527
|
-
"buttonType": PropTypes.oneOf(["darkBackground", "dashed", "primary", "secondary", "tertiary"]),
|
|
529
|
+
"buttonType": PropTypes.oneOf(["darkBackground", "dashed", "gradient-grey", "gradient-white", "primary", "secondary", "tertiary"]),
|
|
528
530
|
"children": PropTypes.node,
|
|
529
531
|
"data-component": PropTypes.string,
|
|
530
532
|
"data-element": PropTypes.string,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const BUTTON_VARIANTS = ["primary", "secondary", "tertiary", "dashed", "darkBackground"];
|
|
1
|
+
export const BUTTON_VARIANTS = ["primary", "secondary", "tertiary", "dashed", "darkBackground", "gradient-white", "gradient-grey"];
|
|
2
2
|
export const BUTTON_SIZES = ["small", "medium", "large"];
|
|
3
3
|
export const BUTTON_ICON_POSITIONS = ["before", "after"];
|
|
@@ -4,4 +4,5 @@ declare const StyledButton: import("styled-components").StyledComponent<"button"
|
|
|
4
4
|
iconOnly?: boolean | undefined;
|
|
5
5
|
}, never>;
|
|
6
6
|
export declare const StyledButtonSubtext: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
|
+
export declare const StyledButtonMainText: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
8
|
export default StyledButton;
|
|
@@ -110,6 +110,10 @@ export const StyledButtonSubtext = styled.span`
|
|
|
110
110
|
font-weight: 400;
|
|
111
111
|
display: block;
|
|
112
112
|
`;
|
|
113
|
+
export const StyledButtonMainText = styled.span`
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
`;
|
|
113
117
|
StyledButton.defaultProps = {
|
|
114
118
|
theme: BaseTheme
|
|
115
119
|
};
|
|
@@ -423,6 +423,7 @@ DateInput.propTypes = {
|
|
|
423
423
|
"id": PropTypes.string,
|
|
424
424
|
"info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
425
425
|
"inlist": PropTypes.any,
|
|
426
|
+
"inputBorderRadius": PropTypes.any,
|
|
426
427
|
"inputHint": PropTypes.string,
|
|
427
428
|
"inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
|
|
428
429
|
"inputName": PropTypes.oneOf(["end", "start"]),
|
|
@@ -296,6 +296,7 @@ Decimal.propTypes = {
|
|
|
296
296
|
"id": PropTypes.string,
|
|
297
297
|
"info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
298
298
|
"inlist": PropTypes.any,
|
|
299
|
+
"inputBorderRadius": PropTypes.any,
|
|
299
300
|
"inputHint": PropTypes.string,
|
|
300
301
|
"inputIcon": PropTypes.oneOf(["accessibility_web", "add", "admin", "alert_on", "alert", "analysis", "app_facebook", "app_instagram", "app_tiktok", "app_twitter", "app_youtube", "apps", "arrow_bottom_right_circle", "arrow_down", "arrow_left_boxed", "arrow_left_right_small", "arrow_left_small", "arrow_left", "arrow_right_small", "arrow_right", "arrow_top_left_circle", "arrow_up", "arrow", "arrows_left_right", "attach", "bank_with_card", "bank", "basket_with_squares", "basket", "bed", "bill_paid", "bin", "block_arrow_right", "blocked_square", "blocked", "bold", "box_arrow_left", "box_arrow_right", "boxed_shapes", "bulk_destroy", "bullet_list_dotted", "bullet_list_numbers", "bullet_list", "business", "calendar_pay_date", "calendar_today", "calendar", "call", "camera", "car_lock", "car_money", "car_repair", "card_view", "card_wallet", "caret_down", "caret_large_down", "caret_large_left", "caret_large_right", "caret_large_up", "caret_left", "caret_right", "caret_up", "cart", "cash", "chart_bar", "chart_line", "chart_pie", "chat_notes", "chat", "check_all", "check_none", "chevron_down_thick", "chevron_down", "chevron_left_thick", "chevron_left", "chevron_right_thick", "chevron_right", "chevron_up_thick", "chevron_up", "circle_with_dots", "circles_connection", "clock", "close", "cloud_co2", "coins", "collaborate", "computer_clock", "connect_off", "connect", "construction", "contact_card", "contacts", "copy", "create", "credit_card_slash", "credit_card", "cross_circle", "cross", "csv", "dashboard", "delete", "delivery", "disconnect", "disputed", "document_right_align", "document_tick", "document_vertical_lines", "download", "draft", "drag_vertical", "drag", "drill", "dropdown", "duplicate", "edit", "edited", "ellipsis_horizontal", "ellipsis_vertical", "email_switch", "email", "entry", "envelope_dollar", "envelope_euro", "error_square", "error", "euro", "expand", "factory", "favourite_lined", "favourite", "fax", "feedback", "file_excel", "file_generic", "file_image", "file_pdf", "file_word", "files_leaning", "filter_new", "filter", "fit_height", "fit_width", "flag", "folder", "form_refresh", "gift", "go", "graduation_hat", "graph", "grid", "hand_cash_coins", "hand_cash_note", "heart_pulse", "help", "hide", "home", "image", "in_progress", "in_transit", "individual", "info", "intranet", "italic", "job_seeked", "key", "laptop", "leaf", "ledger_arrow_left", "ledger_arrow_right", "ledger", "lightbulb_off", "lightbulb_on", "like_no", "like", "link_cloud", "link_on", "link", "list_view", "location", "locked", "logout", "lookup", "marker", "message", "microphone", "minimise", "minus_large", "minus", "mobile", "money_bag", "none", "old_warning", "palm_tree", "pause_circle", "pause", "pdf", "people_switch", "people", "percentage_boxed", "person_info", "person_tick", "person", "petrol_pump", "phone", "piggy_bank", "plane", "play_circle", "play", "plus_large", "plus", "pound", "print", "progress", "progressed", "protect", "question_hollow", "question_mark", "question", "recruiting", "refresh_clock", "refresh", "remove", "sage_coin", "save", "scan", "search", "send", "services", "settings_old", "settings", "share", "shop", "sort_down", "sort_up", "spanner", "split_container", "split", "square_dot", "squares_nine", "stacked_boxes", "stacked_squares", "submitted", "support_online", "sync", "tag", "talk", "target_man", "target", "theatre_masks", "three_boxes", "tick_circle", "tick_thick", "tick", "true_tick", "u_turn_left", "u_turn_right", "undo", "unlocked", "upload", "uploaded", "video", "view", "volunteering", "warning", "website", "welfare"]),
|
|
301
302
|
"inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FlatTableProps } from "..";
|
|
2
|
-
declare const getAlternativeBackgroundColor: (colorTheme: FlatTableProps["colorTheme"]) => "var(--colorsActionMinor100)" | "var(--
|
|
2
|
+
declare const getAlternativeBackgroundColor: (colorTheme: FlatTableProps["colorTheme"]) => "var(--colorsActionMinor100)" | "var(--colorsUtilityMajor025)" | "var(--colorsUtilityYang100)" | "var(--colorsActionMinor550)";
|
|
3
3
|
export default getAlternativeBackgroundColor;
|
|
@@ -222,6 +222,7 @@ GroupedCharacter.propTypes = {
|
|
|
222
222
|
"id": PropTypes.string,
|
|
223
223
|
"info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
224
224
|
"inlist": PropTypes.any,
|
|
225
|
+
"inputBorderRadius": PropTypes.any,
|
|
225
226
|
"inputHint": PropTypes.string,
|
|
226
227
|
"inputIcon": PropTypes.oneOf(["accessibility_web", "add", "admin", "alert_on", "alert", "analysis", "app_facebook", "app_instagram", "app_tiktok", "app_twitter", "app_youtube", "apps", "arrow_bottom_right_circle", "arrow_down", "arrow_left_boxed", "arrow_left_right_small", "arrow_left_small", "arrow_left", "arrow_right_small", "arrow_right", "arrow_top_left_circle", "arrow_up", "arrow", "arrows_left_right", "attach", "bank_with_card", "bank", "basket_with_squares", "basket", "bed", "bill_paid", "bin", "block_arrow_right", "blocked_square", "blocked", "bold", "box_arrow_left", "box_arrow_right", "boxed_shapes", "bulk_destroy", "bullet_list_dotted", "bullet_list_numbers", "bullet_list", "business", "calendar_pay_date", "calendar_today", "calendar", "call", "camera", "car_lock", "car_money", "car_repair", "card_view", "card_wallet", "caret_down", "caret_large_down", "caret_large_left", "caret_large_right", "caret_large_up", "caret_left", "caret_right", "caret_up", "cart", "cash", "chart_bar", "chart_line", "chart_pie", "chat_notes", "chat", "check_all", "check_none", "chevron_down_thick", "chevron_down", "chevron_left_thick", "chevron_left", "chevron_right_thick", "chevron_right", "chevron_up_thick", "chevron_up", "circle_with_dots", "circles_connection", "clock", "close", "cloud_co2", "coins", "collaborate", "computer_clock", "connect_off", "connect", "construction", "contact_card", "contacts", "copy", "create", "credit_card_slash", "credit_card", "cross_circle", "cross", "csv", "dashboard", "delete", "delivery", "disconnect", "disputed", "document_right_align", "document_tick", "document_vertical_lines", "download", "draft", "drag_vertical", "drag", "drill", "dropdown", "duplicate", "edit", "edited", "ellipsis_horizontal", "ellipsis_vertical", "email_switch", "email", "entry", "envelope_dollar", "envelope_euro", "error_square", "error", "euro", "expand", "factory", "favourite_lined", "favourite", "fax", "feedback", "file_excel", "file_generic", "file_image", "file_pdf", "file_word", "files_leaning", "filter_new", "filter", "fit_height", "fit_width", "flag", "folder", "form_refresh", "gift", "go", "graduation_hat", "graph", "grid", "hand_cash_coins", "hand_cash_note", "heart_pulse", "help", "hide", "home", "image", "in_progress", "in_transit", "individual", "info", "intranet", "italic", "job_seeked", "key", "laptop", "leaf", "ledger_arrow_left", "ledger_arrow_right", "ledger", "lightbulb_off", "lightbulb_on", "like_no", "like", "link_cloud", "link_on", "link", "list_view", "location", "locked", "logout", "lookup", "marker", "message", "microphone", "minimise", "minus_large", "minus", "mobile", "money_bag", "none", "old_warning", "palm_tree", "pause_circle", "pause", "pdf", "people_switch", "people", "percentage_boxed", "person_info", "person_tick", "person", "petrol_pump", "phone", "piggy_bank", "plane", "play_circle", "play", "plus_large", "plus", "pound", "print", "progress", "progressed", "protect", "question_hollow", "question_mark", "question", "recruiting", "refresh_clock", "refresh", "remove", "sage_coin", "save", "scan", "search", "send", "services", "settings_old", "settings", "share", "shop", "sort_down", "sort_up", "spanner", "split_container", "split", "square_dot", "squares_nine", "stacked_boxes", "stacked_squares", "submitted", "support_online", "sync", "tag", "talk", "target_man", "target", "theatre_masks", "three_boxes", "tick_circle", "tick_thick", "tick", "true_tick", "u_turn_left", "u_turn_right", "undo", "unlocked", "upload", "uploaded", "video", "view", "volunteering", "warning", "website", "welfare"]),
|
|
227
228
|
"inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
|
|
@@ -153,6 +153,7 @@ Number.propTypes = {
|
|
|
153
153
|
"id": PropTypes.string,
|
|
154
154
|
"info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
155
155
|
"inlist": PropTypes.any,
|
|
156
|
+
"inputBorderRadius": PropTypes.any,
|
|
156
157
|
"inputHint": PropTypes.string,
|
|
157
158
|
"inputIcon": PropTypes.oneOf(["accessibility_web", "add", "admin", "alert_on", "alert", "analysis", "app_facebook", "app_instagram", "app_tiktok", "app_twitter", "app_youtube", "apps", "arrow_bottom_right_circle", "arrow_down", "arrow_left_boxed", "arrow_left_right_small", "arrow_left_small", "arrow_left", "arrow_right_small", "arrow_right", "arrow_top_left_circle", "arrow_up", "arrow", "arrows_left_right", "attach", "bank_with_card", "bank", "basket_with_squares", "basket", "bed", "bill_paid", "bin", "block_arrow_right", "blocked_square", "blocked", "bold", "box_arrow_left", "box_arrow_right", "boxed_shapes", "bulk_destroy", "bullet_list_dotted", "bullet_list_numbers", "bullet_list", "business", "calendar_pay_date", "calendar_today", "calendar", "call", "camera", "car_lock", "car_money", "car_repair", "card_view", "card_wallet", "caret_down", "caret_large_down", "caret_large_left", "caret_large_right", "caret_large_up", "caret_left", "caret_right", "caret_up", "cart", "cash", "chart_bar", "chart_line", "chart_pie", "chat_notes", "chat", "check_all", "check_none", "chevron_down_thick", "chevron_down", "chevron_left_thick", "chevron_left", "chevron_right_thick", "chevron_right", "chevron_up_thick", "chevron_up", "circle_with_dots", "circles_connection", "clock", "close", "cloud_co2", "coins", "collaborate", "computer_clock", "connect_off", "connect", "construction", "contact_card", "contacts", "copy", "create", "credit_card_slash", "credit_card", "cross_circle", "cross", "csv", "dashboard", "delete", "delivery", "disconnect", "disputed", "document_right_align", "document_tick", "document_vertical_lines", "download", "draft", "drag_vertical", "drag", "drill", "dropdown", "duplicate", "edit", "edited", "ellipsis_horizontal", "ellipsis_vertical", "email_switch", "email", "entry", "envelope_dollar", "envelope_euro", "error_square", "error", "euro", "expand", "factory", "favourite_lined", "favourite", "fax", "feedback", "file_excel", "file_generic", "file_image", "file_pdf", "file_word", "files_leaning", "filter_new", "filter", "fit_height", "fit_width", "flag", "folder", "form_refresh", "gift", "go", "graduation_hat", "graph", "grid", "hand_cash_coins", "hand_cash_note", "heart_pulse", "help", "hide", "home", "image", "in_progress", "in_transit", "individual", "info", "intranet", "italic", "job_seeked", "key", "laptop", "leaf", "ledger_arrow_left", "ledger_arrow_right", "ledger", "lightbulb_off", "lightbulb_on", "like_no", "like", "link_cloud", "link_on", "link", "list_view", "location", "locked", "logout", "lookup", "marker", "message", "microphone", "minimise", "minus_large", "minus", "mobile", "money_bag", "none", "old_warning", "palm_tree", "pause_circle", "pause", "pdf", "people_switch", "people", "percentage_boxed", "person_info", "person_tick", "person", "petrol_pump", "phone", "piggy_bank", "plane", "play_circle", "play", "plus_large", "plus", "pound", "print", "progress", "progressed", "protect", "question_hollow", "question_mark", "question", "recruiting", "refresh_clock", "refresh", "remove", "sage_coin", "save", "scan", "search", "send", "services", "settings_old", "settings", "share", "shop", "sort_down", "sort_up", "spanner", "split_container", "split", "square_dot", "squares_nine", "stacked_boxes", "stacked_squares", "submitted", "support_online", "sync", "tag", "talk", "target_man", "target", "theatre_masks", "three_boxes", "tick_circle", "tick_thick", "tick", "true_tick", "u_turn_left", "u_turn_right", "undo", "unlocked", "upload", "uploaded", "video", "view", "volunteering", "warning", "website", "welfare"]),
|
|
158
159
|
"inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
|
|
@@ -557,6 +557,7 @@ FilterableSelect.propTypes = {
|
|
|
557
557
|
"id": PropTypes.string,
|
|
558
558
|
"info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
559
559
|
"inlist": PropTypes.any,
|
|
560
|
+
"inputBorderRadius": PropTypes.any,
|
|
560
561
|
"inputHint": PropTypes.string,
|
|
561
562
|
"inputIcon": PropTypes.oneOf(["accessibility_web", "add", "admin", "alert_on", "alert", "analysis", "app_facebook", "app_instagram", "app_tiktok", "app_twitter", "app_youtube", "apps", "arrow_bottom_right_circle", "arrow_down", "arrow_left_boxed", "arrow_left_right_small", "arrow_left_small", "arrow_left", "arrow_right_small", "arrow_right", "arrow_top_left_circle", "arrow_up", "arrow", "arrows_left_right", "attach", "bank_with_card", "bank", "basket_with_squares", "basket", "bed", "bill_paid", "bin", "block_arrow_right", "blocked_square", "blocked", "bold", "box_arrow_left", "box_arrow_right", "boxed_shapes", "bulk_destroy", "bullet_list_dotted", "bullet_list_numbers", "bullet_list", "business", "calendar_pay_date", "calendar_today", "calendar", "call", "camera", "car_lock", "car_money", "car_repair", "card_view", "card_wallet", "caret_down", "caret_large_down", "caret_large_left", "caret_large_right", "caret_large_up", "caret_left", "caret_right", "caret_up", "cart", "cash", "chart_bar", "chart_line", "chart_pie", "chat_notes", "chat", "check_all", "check_none", "chevron_down_thick", "chevron_down", "chevron_left_thick", "chevron_left", "chevron_right_thick", "chevron_right", "chevron_up_thick", "chevron_up", "circle_with_dots", "circles_connection", "clock", "close", "cloud_co2", "coins", "collaborate", "computer_clock", "connect_off", "connect", "construction", "contact_card", "contacts", "copy", "create", "credit_card_slash", "credit_card", "cross_circle", "cross", "csv", "dashboard", "delete", "delivery", "disconnect", "disputed", "document_right_align", "document_tick", "document_vertical_lines", "download", "draft", "drag_vertical", "drag", "drill", "dropdown", "duplicate", "edit", "edited", "ellipsis_horizontal", "ellipsis_vertical", "email_switch", "email", "entry", "envelope_dollar", "envelope_euro", "error_square", "error", "euro", "expand", "factory", "favourite_lined", "favourite", "fax", "feedback", "file_excel", "file_generic", "file_image", "file_pdf", "file_word", "files_leaning", "filter_new", "filter", "fit_height", "fit_width", "flag", "folder", "form_refresh", "gift", "go", "graduation_hat", "graph", "grid", "hand_cash_coins", "hand_cash_note", "heart_pulse", "help", "hide", "home", "image", "in_progress", "in_transit", "individual", "info", "intranet", "italic", "job_seeked", "key", "laptop", "leaf", "ledger_arrow_left", "ledger_arrow_right", "ledger", "lightbulb_off", "lightbulb_on", "like_no", "like", "link_cloud", "link_on", "link", "list_view", "location", "locked", "logout", "lookup", "marker", "message", "microphone", "minimise", "minus_large", "minus", "mobile", "money_bag", "none", "old_warning", "palm_tree", "pause_circle", "pause", "pdf", "people_switch", "people", "percentage_boxed", "person_info", "person_tick", "person", "petrol_pump", "phone", "piggy_bank", "plane", "play_circle", "play", "plus_large", "plus", "pound", "print", "progress", "progressed", "protect", "question_hollow", "question_mark", "question", "recruiting", "refresh_clock", "refresh", "remove", "sage_coin", "save", "scan", "search", "send", "services", "settings_old", "settings", "share", "shop", "sort_down", "sort_up", "spanner", "split_container", "split", "square_dot", "squares_nine", "stacked_boxes", "stacked_squares", "submitted", "support_online", "sync", "tag", "talk", "target_man", "target", "theatre_masks", "three_boxes", "tick_circle", "tick_thick", "tick", "true_tick", "u_turn_left", "u_turn_right", "undo", "unlocked", "upload", "uploaded", "video", "view", "volunteering", "warning", "website", "welfare"]),
|
|
562
563
|
"inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
|
|
@@ -568,6 +568,7 @@ MultiSelect.propTypes = {
|
|
|
568
568
|
"id": PropTypes.string,
|
|
569
569
|
"info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
570
570
|
"inlist": PropTypes.any,
|
|
571
|
+
"inputBorderRadius": PropTypes.any,
|
|
571
572
|
"inputHint": PropTypes.string,
|
|
572
573
|
"inputIcon": PropTypes.oneOf(["accessibility_web", "add", "admin", "alert_on", "alert", "analysis", "app_facebook", "app_instagram", "app_tiktok", "app_twitter", "app_youtube", "apps", "arrow_bottom_right_circle", "arrow_down", "arrow_left_boxed", "arrow_left_right_small", "arrow_left_small", "arrow_left", "arrow_right_small", "arrow_right", "arrow_top_left_circle", "arrow_up", "arrow", "arrows_left_right", "attach", "bank_with_card", "bank", "basket_with_squares", "basket", "bed", "bill_paid", "bin", "block_arrow_right", "blocked_square", "blocked", "bold", "box_arrow_left", "box_arrow_right", "boxed_shapes", "bulk_destroy", "bullet_list_dotted", "bullet_list_numbers", "bullet_list", "business", "calendar_pay_date", "calendar_today", "calendar", "call", "camera", "car_lock", "car_money", "car_repair", "card_view", "card_wallet", "caret_down", "caret_large_down", "caret_large_left", "caret_large_right", "caret_large_up", "caret_left", "caret_right", "caret_up", "cart", "cash", "chart_bar", "chart_line", "chart_pie", "chat_notes", "chat", "check_all", "check_none", "chevron_down_thick", "chevron_down", "chevron_left_thick", "chevron_left", "chevron_right_thick", "chevron_right", "chevron_up_thick", "chevron_up", "circle_with_dots", "circles_connection", "clock", "close", "cloud_co2", "coins", "collaborate", "computer_clock", "connect_off", "connect", "construction", "contact_card", "contacts", "copy", "create", "credit_card_slash", "credit_card", "cross_circle", "cross", "csv", "dashboard", "delete", "delivery", "disconnect", "disputed", "document_right_align", "document_tick", "document_vertical_lines", "download", "draft", "drag_vertical", "drag", "drill", "dropdown", "duplicate", "edit", "edited", "ellipsis_horizontal", "ellipsis_vertical", "email_switch", "email", "entry", "envelope_dollar", "envelope_euro", "error_square", "error", "euro", "expand", "factory", "favourite_lined", "favourite", "fax", "feedback", "file_excel", "file_generic", "file_image", "file_pdf", "file_word", "files_leaning", "filter_new", "filter", "fit_height", "fit_width", "flag", "folder", "form_refresh", "gift", "go", "graduation_hat", "graph", "grid", "hand_cash_coins", "hand_cash_note", "heart_pulse", "help", "hide", "home", "image", "in_progress", "in_transit", "individual", "info", "intranet", "italic", "job_seeked", "key", "laptop", "leaf", "ledger_arrow_left", "ledger_arrow_right", "ledger", "lightbulb_off", "lightbulb_on", "like_no", "like", "link_cloud", "link_on", "link", "list_view", "location", "locked", "logout", "lookup", "marker", "message", "microphone", "minimise", "minus_large", "minus", "mobile", "money_bag", "none", "old_warning", "palm_tree", "pause_circle", "pause", "pdf", "people_switch", "people", "percentage_boxed", "person_info", "person_tick", "person", "petrol_pump", "phone", "piggy_bank", "plane", "play_circle", "play", "plus_large", "plus", "pound", "print", "progress", "progressed", "protect", "question_hollow", "question_mark", "question", "recruiting", "refresh_clock", "refresh", "remove", "sage_coin", "save", "scan", "search", "send", "services", "settings_old", "settings", "share", "shop", "sort_down", "sort_up", "spanner", "split_container", "split", "square_dot", "squares_nine", "stacked_boxes", "stacked_squares", "submitted", "support_online", "sync", "tag", "talk", "target_man", "target", "theatre_masks", "three_boxes", "tick_circle", "tick_thick", "tick", "true_tick", "u_turn_left", "u_turn_right", "undo", "unlocked", "upload", "uploaded", "video", "view", "volunteering", "warning", "website", "welfare"]),
|
|
573
574
|
"inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
|