@intility/bifrost-react-select 4.3.1 → 4.3.3
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/CHANGELOG.md +12 -0
- package/dist/Select.js +7 -7
- package/package.json +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @intility/bifrost-react-select
|
|
2
2
|
|
|
3
|
+
## 4.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1e2116f: update package metadata
|
|
8
|
+
|
|
9
|
+
## 4.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- eb3b1cc: Fix: Text color should be `base-c-2` for disabled inputs (when they have a value).
|
|
14
|
+
|
|
3
15
|
## 4.3.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/Select.js
CHANGED
|
@@ -53,7 +53,7 @@ export const selectStyles = {
|
|
|
53
53
|
clearIndicator: (provided)=>({
|
|
54
54
|
...provided,
|
|
55
55
|
"&:hover": {
|
|
56
|
-
color: "var(--bfc-base-c
|
|
56
|
+
color: "var(--bfc-base-c)"
|
|
57
57
|
},
|
|
58
58
|
color: "var(--bfc-base-c-2)",
|
|
59
59
|
cursor: "pointer",
|
|
@@ -69,7 +69,7 @@ export const selectStyles = {
|
|
|
69
69
|
}),
|
|
70
70
|
input: (provided)=>({
|
|
71
71
|
...provided,
|
|
72
|
-
color: "var(--bfc-base-c
|
|
72
|
+
color: "var(--bfc-base-c)",
|
|
73
73
|
fontFamily: "inherit",
|
|
74
74
|
fontSize: "var(--bf-font-size-l)"
|
|
75
75
|
}),
|
|
@@ -98,7 +98,7 @@ export const selectStyles = {
|
|
|
98
98
|
}),
|
|
99
99
|
singleValue: (provided, state)=>({
|
|
100
100
|
...provided,
|
|
101
|
-
color: state.selectProps.menuIsOpen ? "var(--bfc-base-c-2)" : "var(--bfc-base-c)",
|
|
101
|
+
color: state.selectProps.menuIsOpen || state.isDisabled ? "var(--bfc-base-c-2)" : "var(--bfc-base-c)",
|
|
102
102
|
fontSize: "var(--bf-font-size-l)"
|
|
103
103
|
}),
|
|
104
104
|
option: (provided, state)=>({
|
|
@@ -107,14 +107,14 @@ export const selectStyles = {
|
|
|
107
107
|
justifyContent: !state.isMulti ? "space-between" : "normal",
|
|
108
108
|
alignItems: "baseline",
|
|
109
109
|
padding: "7px 12px",
|
|
110
|
-
backgroundColor: state.isDisabled ? "var(--bfc-base-dimmed)" : state.isFocused ? "var(--bfc-base
|
|
111
|
-
color: "var(--bfc-base-c)",
|
|
110
|
+
backgroundColor: state.isDisabled ? "var(--bfc-base-dimmed)" : state.isFocused ? "var(--bfc-base)" : "var(--bfc-base-3)",
|
|
111
|
+
color: state.isDisabled ? "var(--bfc-base-c-2)" : "var(--bfc-base-c)",
|
|
112
112
|
"& .bf-select-selected-icon": {
|
|
113
113
|
color: "var(--bfc-base-c)",
|
|
114
114
|
marginLeft: "var(--bfs4)"
|
|
115
115
|
},
|
|
116
116
|
"&:hover": {
|
|
117
|
-
backgroundColor: state.isDisabled ? "var(--bfc-base-dimmed)" : "var(--bfc-base
|
|
117
|
+
backgroundColor: state.isDisabled ? "var(--bfc-base-dimmed)" : "var(--bfc-base)",
|
|
118
118
|
cursor: state.isDisabled ? "default" : "pointer"
|
|
119
119
|
},
|
|
120
120
|
fontSize: "var(--bf-font-size-l)",
|
|
@@ -142,7 +142,7 @@ export const selectStyles = {
|
|
|
142
142
|
paddingRight: 5,
|
|
143
143
|
background: state.isFocused && "var(--bfc-theme-2)",
|
|
144
144
|
"&:hover": {
|
|
145
|
-
color: "var(--bfc-base-c
|
|
145
|
+
color: "var(--bfc-base-c)",
|
|
146
146
|
cursor: "pointer",
|
|
147
147
|
background: "var(--bfc-base-2)"
|
|
148
148
|
},
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intility/bifrost-react-select",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.3",
|
|
4
4
|
"description": "React select component for Intility's design system, Bifrost.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/Select.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "run-p build:*",
|
|
9
|
-
"build:module": "swc ./src -d dist",
|
|
9
|
+
"build:module": "swc ./src -d dist --strip-leading-paths",
|
|
10
10
|
"build:types": "tsc",
|
|
11
11
|
"start": "run-p watch:*",
|
|
12
12
|
"watch:module": "npm run build:module -- --watch",
|
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
],
|
|
30
30
|
"author": "Intility AS",
|
|
31
31
|
"license": "MIT",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/intility/bifrost",
|
|
35
|
+
"directory": "packages/bifrost-react-select"
|
|
36
|
+
},
|
|
32
37
|
"publishConfig": {
|
|
33
38
|
"registry": "https://registry.npmjs.org/",
|
|
34
39
|
"access": "public"
|
|
@@ -39,7 +44,7 @@
|
|
|
39
44
|
"@intility/bifrost-react": "^4.13.0"
|
|
40
45
|
},
|
|
41
46
|
"devDependencies": {
|
|
42
|
-
"@intility/bifrost-react": "^4.
|
|
47
|
+
"@intility/bifrost-react": "^4.19.1"
|
|
43
48
|
},
|
|
44
49
|
"dependencies": {
|
|
45
50
|
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|