@wireapp/react-ui-kit 9.73.1 → 9.73.6
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.
|
@@ -166,7 +166,7 @@ exports.themes = {
|
|
|
166
166
|
backgroundColor: colors_v2_1.COLOR_V2.GRAY_20,
|
|
167
167
|
color: colors_1.COLOR.TEXT,
|
|
168
168
|
primaryColor: colors_v2_1.COLOR_V2.BLUE,
|
|
169
|
-
dangerColor:
|
|
169
|
+
dangerColor: 'var(--danger-color)',
|
|
170
170
|
successColor: colors_v2_1.COLOR_V2.GREEN_LIGHT_500,
|
|
171
171
|
contrastColor: 'var(--text-input-background)',
|
|
172
172
|
focusColor: 'var(--accent-color-focus)',
|
|
@@ -248,7 +248,7 @@ exports.themes = {
|
|
|
248
248
|
backgroundColor: colors_1.COLOR.BLACK,
|
|
249
249
|
color: colors_1.COLOR.WHITE,
|
|
250
250
|
primaryColor: colors_v2_1.COLOR_V2.BLUE,
|
|
251
|
-
dangerColor:
|
|
251
|
+
dangerColor: 'var(--danger-color)',
|
|
252
252
|
successColor: colors_v2_1.COLOR_V2.GREEN_DARK_500,
|
|
253
253
|
contrastColor: 'var(--text-input-background)',
|
|
254
254
|
focusColor: 'var(--accent-color-focus)',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSelect.styles.d.ts","sourceRoot":"","sources":["../../../../src/Inputs/Select/BaseSelect/BaseSelect.styles.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAGxC,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACvC,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,YAAY,CAAC,EAAE,SAAS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IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB,KAAG,SAyDF,CAAC;AAEH,eAAO,MAAM,qBAAqB,4BAG/B;IACD,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,EAAE;QACX,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH,KAAG,SAKH,CAAC"}
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.baseSingleValueStyles = exports.baseOptionStyles = exports.baseMenuListStyles = exports.baseMenuStyles = exports.baseDropdownIndicatorStyles = exports.baseControlStyles = exports.baseContainerStyles = exports.baseIndicatorSeparatorStyles = void 0;
|
|
22
22
|
const Input_1 = require("../../Input");
|
|
23
|
+
const getSelectAccentColor = (theme) => theme.general.primaryColor;
|
|
23
24
|
const baseIndicatorSeparatorStyles = () => ({
|
|
24
25
|
display: 'none',
|
|
25
26
|
});
|
|
@@ -55,14 +56,14 @@ const baseControlStyles = ({ theme, isDisabled, markInvalid, selectProps, contro
|
|
|
55
56
|
boxShadow: `0 0 0 1px ${theme.general.dangerColor}`,
|
|
56
57
|
}),
|
|
57
58
|
...(selectProps.menuIsOpen && {
|
|
58
|
-
boxShadow: `0 0 0 1px ${theme
|
|
59
|
+
boxShadow: `0 0 0 1px ${getSelectAccentColor(theme)}`,
|
|
59
60
|
'&:hover': {
|
|
60
|
-
boxShadow: `0 0 0 1px ${theme
|
|
61
|
+
boxShadow: `0 0 0 1px ${getSelectAccentColor(theme)}`,
|
|
61
62
|
},
|
|
62
63
|
}),
|
|
63
64
|
cursor: !selectProps.isDisabled && 'pointer',
|
|
64
65
|
'&:focus:visible, active': {
|
|
65
|
-
boxShadow: !selectProps.isDisabled && `0 0 0 1px ${theme
|
|
66
|
+
boxShadow: !selectProps.isDisabled && `0 0 0 1px ${getSelectAccentColor(theme)}`,
|
|
66
67
|
},
|
|
67
68
|
...controlCSS,
|
|
68
69
|
});
|
|
@@ -77,7 +78,8 @@ const baseDropdownIndicatorStyles = ({ theme, selectProps, }) => {
|
|
|
77
78
|
};
|
|
78
79
|
exports.baseDropdownIndicatorStyles = baseDropdownIndicatorStyles;
|
|
79
80
|
const baseMenuStyles = ({ theme, menuPosition, }) => ({
|
|
80
|
-
boxShadow: `0 0 0 1px ${theme
|
|
81
|
+
boxShadow: `0 0 0 1px ${getSelectAccentColor(theme)}, 0 4px 11px hsl(0deg 0% 0% / 10%)`,
|
|
82
|
+
backgroundColor: theme.Input.backgroundColor,
|
|
81
83
|
borderRadius: 12,
|
|
82
84
|
marginBottom: 0,
|
|
83
85
|
marginTop: 4,
|
|
@@ -101,8 +103,8 @@ const baseOptionStyles = ({ theme, isDisabled, isFocused, isSelected, isMulti, }
|
|
|
101
103
|
...(isSelected &&
|
|
102
104
|
!isDisabled &&
|
|
103
105
|
!isMulti && {
|
|
104
|
-
background: theme
|
|
105
|
-
borderColor: theme
|
|
106
|
+
background: getSelectAccentColor(theme),
|
|
107
|
+
borderColor: getSelectAccentColor(theme),
|
|
106
108
|
color: theme.Select.contrastTextColor,
|
|
107
109
|
'&:hover': {
|
|
108
110
|
backgroundColor: theme.Select.selectedActiveBg,
|
package/package.json
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"react-transition-group": "4.4.5"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@babel/cli": "7.
|
|
21
|
-
"@babel/core": "7.28.
|
|
22
|
-
"@babel/preset-env": "7.
|
|
20
|
+
"@babel/cli": "7.28.6",
|
|
21
|
+
"@babel/core": "7.28.6",
|
|
22
|
+
"@babel/preset-env": "7.28.6",
|
|
23
23
|
"@babel/preset-react": "7.26.3",
|
|
24
24
|
"@babel/preset-typescript": "7.26.0",
|
|
25
25
|
"@chromatic-com/storybook": "^3.2.4",
|
|
@@ -79,6 +79,6 @@
|
|
|
79
79
|
"test:watch": "jest --watch",
|
|
80
80
|
"test:update": "jest --updateSnapshot"
|
|
81
81
|
},
|
|
82
|
-
"version": "9.73.
|
|
83
|
-
"gitHead": "
|
|
82
|
+
"version": "9.73.6",
|
|
83
|
+
"gitHead": "80f2289f2281c707772d54ef27807f44b7662a24"
|
|
84
84
|
}
|