@ctlyst.id/internal-ui 1.0.4-canary.5 → 1.0.4-canary.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/select/components/utils.d.ts +1 -1
- package/dist/internal-ui.cjs.development.js +8 -9
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +2 -2
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +8 -9
- package/dist/internal-ui.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/internal-ui.esm.js
CHANGED
@@ -2367,7 +2367,7 @@ const SelectWrapper = ({
|
|
2367
2367
|
return /*#__PURE__*/React__default.createElement(Box, {
|
2368
2368
|
css: css`
|
2369
2369
|
.react-select__control {
|
2370
|
-
border-color: ${isError ? colors.danger['500'] : colors.neutral['
|
2370
|
+
border-color: ${isError ? colors.danger['500'] : colors.neutral['500']} !important;
|
2371
2371
|
}
|
2372
2372
|
|
2373
2373
|
.react-select__control:hover {
|
@@ -2386,8 +2386,7 @@ const selectStyle = {
|
|
2386
2386
|
lineHeight: styleMd.lineHeight,
|
2387
2387
|
letterSpacing: 0
|
2388
2388
|
};
|
2389
|
-
function selectStyles(colorMode,
|
2390
|
-
const boxShadowStyle = isError ? `0 0 0 1px ${colors.danger['500']}` : `0 0 0 1px ${colors.primary['500']}`;
|
2389
|
+
function selectStyles(colorMode, _isError) {
|
2391
2390
|
return {
|
2392
2391
|
control: (base, state) => colorMode === 'dark' ? {
|
2393
2392
|
...base,
|
@@ -2395,11 +2394,11 @@ function selectStyles(colorMode, isError) {
|
|
2395
2394
|
background: 'transparent',
|
2396
2395
|
color: colors.primary['300'],
|
2397
2396
|
borderColor: colors.secondary['500'],
|
2398
|
-
boxShadow: state.isFocused ?
|
2397
|
+
boxShadow: state.isFocused ? 'none' : `inherit`
|
2399
2398
|
} : {
|
2400
2399
|
...base,
|
2401
2400
|
...selectStyle,
|
2402
|
-
boxShadow: state.isFocused ?
|
2401
|
+
boxShadow: state.isFocused ? 'none' : colors.neutral['500']
|
2403
2402
|
},
|
2404
2403
|
option: (base, {
|
2405
2404
|
isSelected
|
@@ -2484,7 +2483,7 @@ function Select({
|
|
2484
2483
|
classNamePrefix: "react-select"
|
2485
2484
|
}, rest, {
|
2486
2485
|
styles: {
|
2487
|
-
...selectStyles(colorMode
|
2486
|
+
...selectStyles(colorMode)
|
2488
2487
|
},
|
2489
2488
|
theme: themeSelect
|
2490
2489
|
})));
|
@@ -2504,7 +2503,7 @@ function SelectAsync({
|
|
2504
2503
|
classNamePrefix: "react-select"
|
2505
2504
|
}, rest, {
|
2506
2505
|
styles: {
|
2507
|
-
...selectStyles(colorMode
|
2506
|
+
...selectStyles(colorMode),
|
2508
2507
|
...styles
|
2509
2508
|
},
|
2510
2509
|
theme: themeSelect
|
@@ -2525,7 +2524,7 @@ function SelectAsyncCreatable({
|
|
2525
2524
|
classNamePrefix: "react-select"
|
2526
2525
|
}, rest, {
|
2527
2526
|
styles: {
|
2528
|
-
...selectStyles(colorMode
|
2527
|
+
...selectStyles(colorMode),
|
2529
2528
|
...styles
|
2530
2529
|
},
|
2531
2530
|
theme: themeSelect
|
@@ -2546,7 +2545,7 @@ function SelectCreatable({
|
|
2546
2545
|
classNamePrefix: "react-select"
|
2547
2546
|
}, rest, {
|
2548
2547
|
styles: {
|
2549
|
-
...selectStyles(colorMode
|
2548
|
+
...selectStyles(colorMode),
|
2550
2549
|
...styles
|
2551
2550
|
},
|
2552
2551
|
theme: themeSelect
|