@intility/bifrost-react-select 4.3.0 → 4.3.2

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @intility/bifrost-react-select
2
2
 
3
+ ## 4.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - eb3b1cc: Fix: Text color should be `base-c-2` for disabled inputs (when they have a value).
8
+
9
+ ## 4.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 9ac0d65: allow react 17 as a peer dep
14
+
3
15
  ## 4.3.0
4
16
 
5
17
  ### Minor 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-1)"
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-1)",
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-1)" : "var(--bfc-base-3)",
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-1)",
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-1)",
145
+ color: "var(--bfc-base-c)",
146
146
  cursor: "pointer",
147
147
  background: "var(--bfc-base-2)"
148
148
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intility/bifrost-react-select",
3
- "version": "4.3.0",
3
+ "version": "4.3.2",
4
4
  "description": "React select component for Intility's design system, Bifrost.",
5
5
  "type": "module",
6
6
  "main": "dist/Select.js",
@@ -34,12 +34,12 @@
34
34
  "access": "public"
35
35
  },
36
36
  "peerDependencies": {
37
- "react-dom": ">=18.0.0",
38
- "react": ">=18.0.0",
37
+ "react-dom": ">=17.0.0",
38
+ "react": ">=17.0.0",
39
39
  "@intility/bifrost-react": "^4.13.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@intility/bifrost-react": "^4.13.0"
42
+ "@intility/bifrost-react": "^4.17.0"
43
43
  },
44
44
  "dependencies": {
45
45
  "@fortawesome/fontawesome-svg-core": "^6.4.2",