forstok-ui-lib 5.1.11 → 5.1.13
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
- package/src/components/select/index.tsx +11 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "forstok-ui-lib",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.13",
|
|
4
4
|
"description": "Forstok UI Components Library",
|
|
5
5
|
"path": "dist",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
-
"build": "rollup -c --bundleConfigAsCjs"
|
|
11
|
+
"build": "rollup -c --bundleConfigAsCjs",
|
|
12
|
+
"patch": "npm run build && npm version patch && npm publish",
|
|
13
|
+
"master": "git add . && git commit -m 'patch' && git push origin master"
|
|
12
14
|
},
|
|
13
15
|
"repository": {
|
|
14
16
|
"type": "git",
|
|
@@ -240,16 +240,18 @@ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel,
|
|
|
240
240
|
color: (disabled ? '#ADADAD' : (mode === 'form' ? '#2d3c48' : 'initial')),
|
|
241
241
|
opacity: disabled ? '.7' : 1,
|
|
242
242
|
} as CSSObjectWithLabel),
|
|
243
|
-
option: (provided: CSSObject, state: OptionProps<TOption, typeof isMulti>) =>
|
|
243
|
+
option: (provided: CSSObject, state: OptionProps<TOption, typeof isMulti>) => {
|
|
244
|
+
console.log(state, disabled, "--- pr", provided)
|
|
245
|
+
return ({
|
|
244
246
|
...provided,
|
|
245
|
-
color: (disabled || state.isDisabled) ? '#ADADAD' : (state.isSelected ? '#ffffff' : '#000000'),
|
|
246
|
-
backgroundColor: (disabled || state.isDisabled) ? 'transparent' : (state.isSelected || state.isFocused ? '#fc5c64' : 'transparent'),
|
|
247
|
-
cursor: 'pointer',
|
|
248
|
-
'&:hover': {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
} as CSSObjectWithLabel),
|
|
247
|
+
// color: (disabled || state.isDisabled) ? '#ADADAD' : (state.isSelected ? '#ffffff' : '#000000'),
|
|
248
|
+
// backgroundColor: (disabled || state.isDisabled) ? 'transparent' : (state.isSelected || state.isFocused ? '#fc5c64' : 'transparent'),
|
|
249
|
+
// cursor: 'pointer',
|
|
250
|
+
// '&:hover': {
|
|
251
|
+
// backgroundColor: (disabled || state.isDisabled) ? 'transparent' : '#ec5b62',
|
|
252
|
+
// color: (disabled || state.isDisabled) ? '#ADADAD' : '#ffffff'
|
|
253
|
+
// }
|
|
254
|
+
} as CSSObjectWithLabel)},
|
|
253
255
|
menu: (provided: CSSObject) => ({
|
|
254
256
|
...provided,
|
|
255
257
|
borderRadius: mode === 'filter' ? 'var(--sec-rd)' : 'var(--ter-rd)',
|