@wireapp/react-ui-kit 9.46.0 → 9.46.1
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/lib/Form/SelectStyles.d.ts +17 -934
- package/lib/Form/SelectStyles.d.ts.map +1 -1
- package/lib/Form/SelectStyles.js +22 -28
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectStyles.d.ts","sourceRoot":"","sources":["../../src/Form/SelectStyles.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAKzC,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAEhC,UAAU,kBAAkB;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACvC,UAAU,EAAE,SAAS,CAAC;IACtB,YAAY,EAAE,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,oEAMtB,kBAAkB
|
|
1
|
+
{"version":3,"file":"SelectStyles.d.ts","sourceRoot":"","sources":["../../src/Form/SelectStyles.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAKzC,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAEhC,UAAU,kBAAkB;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACvC,UAAU,EAAE,SAAS,CAAC;IACtB,YAAY,EAAE,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,oEAMtB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2MnB,CAAC"}
|
package/lib/Form/SelectStyles.js
CHANGED
|
@@ -28,34 +28,8 @@ const customStyles = ({ theme, markInvalid = false, menuPosition = 'absolute', c
|
|
|
28
28
|
indicatorsContainer: provided => ({
|
|
29
29
|
...provided,
|
|
30
30
|
}),
|
|
31
|
-
container: (_, {
|
|
32
|
-
const { menuIsOpen } = selectProps;
|
|
33
|
-
const isSelectDisabled = selectProps.isDisabled;
|
|
31
|
+
container: (_, { options }) => {
|
|
34
32
|
return {
|
|
35
|
-
'& > div > div[class$="-Control"]': {
|
|
36
|
-
...(0, Input_1.inputStyle)(theme, { disabled: isSelectDisabled, markInvalid }),
|
|
37
|
-
borderRadius: 12,
|
|
38
|
-
minHeight: 48,
|
|
39
|
-
...(isDisabled && {
|
|
40
|
-
backgroundColor: theme.Input.backgroundColorDisabled,
|
|
41
|
-
color: theme.Select.disabledColor,
|
|
42
|
-
cursor: 'default',
|
|
43
|
-
}),
|
|
44
|
-
...(markInvalid && {
|
|
45
|
-
boxShadow: `0 0 0 1px ${theme.general.dangerColor}`,
|
|
46
|
-
}),
|
|
47
|
-
...(menuIsOpen && {
|
|
48
|
-
boxShadow: `0 0 0 1px ${theme.general.primaryColor}`,
|
|
49
|
-
'&:hover': {
|
|
50
|
-
boxShadow: `0 0 0 1px ${theme.general.primaryColor}`,
|
|
51
|
-
},
|
|
52
|
-
}),
|
|
53
|
-
cursor: !isSelectDisabled && 'pointer',
|
|
54
|
-
'&:focus:visible, active': {
|
|
55
|
-
boxShadow: !isSelectDisabled && `0 0 0 1px ${theme.general.primaryColor}`,
|
|
56
|
-
},
|
|
57
|
-
...controlCSS,
|
|
58
|
-
},
|
|
59
33
|
'& > div': (0, SelectComponents_1.isGroup)(options)
|
|
60
34
|
? {
|
|
61
35
|
display: 'inline',
|
|
@@ -76,7 +50,7 @@ const customStyles = ({ theme, markInvalid = false, menuPosition = 'absolute', c
|
|
|
76
50
|
},
|
|
77
51
|
};
|
|
78
52
|
},
|
|
79
|
-
control: (_provided, { options }) => ({
|
|
53
|
+
control: (_provided, { isDisabled, selectProps, options }) => ({
|
|
80
54
|
display: 'flex',
|
|
81
55
|
alignItems: 'center',
|
|
82
56
|
appearance: 'none',
|
|
@@ -87,6 +61,26 @@ const customStyles = ({ theme, markInvalid = false, menuPosition = 'absolute', c
|
|
|
87
61
|
position: 'absolute',
|
|
88
62
|
zIndex: -9999,
|
|
89
63
|
}),
|
|
64
|
+
...(0, Input_1.inputStyle)(theme, { disabled: selectProps.isDisabled, markInvalid }),
|
|
65
|
+
borderRadius: 12,
|
|
66
|
+
...(isDisabled && {
|
|
67
|
+
backgroundColor: theme.Input.backgroundColorDisabled,
|
|
68
|
+
color: theme.Select.disabledColor,
|
|
69
|
+
cursor: 'default',
|
|
70
|
+
}),
|
|
71
|
+
...(markInvalid && {
|
|
72
|
+
boxShadow: `0 0 0 1px ${theme.general.dangerColor}`,
|
|
73
|
+
}),
|
|
74
|
+
...(selectProps.menuIsOpen && {
|
|
75
|
+
boxShadow: `0 0 0 1px ${theme.general.primaryColor}`,
|
|
76
|
+
'&:hover': {
|
|
77
|
+
boxShadow: `0 0 0 1px ${theme.general.primaryColor}`,
|
|
78
|
+
},
|
|
79
|
+
}),
|
|
80
|
+
cursor: !selectProps.isDisabled && 'pointer',
|
|
81
|
+
'&:focus:visible, active': {
|
|
82
|
+
boxShadow: !selectProps.isDisabled && `0 0 0 1px ${theme.general.primaryColor}`,
|
|
83
|
+
},
|
|
90
84
|
...controlCSS,
|
|
91
85
|
}),
|
|
92
86
|
dropdownIndicator: (provided, selectProps) => {
|
package/package.json
CHANGED