@intility/bifrost-react-select 5.2.0 → 5.2.1

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,11 @@
1
1
  # @intility/bifrost-react-select
2
2
 
3
+ ## 5.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - b16e76d: Update styling for disabled select
8
+
3
9
  ## 5.2.0
4
10
 
5
11
  ### Minor Changes
package/dist/Select.d.ts CHANGED
@@ -14,7 +14,7 @@ export declare const selectStyles: {
14
14
  input: (provided: any) => any;
15
15
  menu: (provided: any) => any;
16
16
  menuList: (provided: any) => any;
17
- placeholder: (provided: any) => any;
17
+ placeholder: (provided: any, state: any) => any;
18
18
  valueContainer: (provided: any) => any;
19
19
  singleValue: (provided: any, state: any) => any;
20
20
  option: (provided: any, state: any) => any;
package/dist/Select.js CHANGED
@@ -55,10 +55,10 @@ export const selectStyles = {
55
55
  borderTopRightRadius: "var(--bf-radius-s)",
56
56
  borderBottomRightRadius: "var(--bf-radius-s)"
57
57
  },
58
- backgroundColor: state.isDisabled ? "var(--bfc-base-dimmed)" : "var(--bfc-base-3)",
58
+ backgroundColor: state.isDisabled ? "var(--bfc-base)" : "var(--bfc-base-3)",
59
59
  borderWidth: 1,
60
60
  borderStyle: "solid",
61
- borderColor: state.isFocused ? "var(--bfc-base-c-inverted)" : state.isDisabled ? "transparent" : "var(--bfc-base-c-wcag)",
61
+ borderColor: state.isFocused ? "var(--bfc-base-c-inverted)" : state.isDisabled ? "var(--bfc-base-c-dimmed)" : "var(--bfc-base-c-wcag)",
62
62
  boxShadow: state.isFocused ? "inset 0 0 0 1px var(--bfc-base-c-inverted)" : "none",
63
63
  borderRadius: "var(--bf-radius-s)",
64
64
  minHeight: "var(--rem40)",
@@ -90,7 +90,7 @@ export const selectStyles = {
90
90
  ".bf-select-small &": {
91
91
  marginRight: 4
92
92
  },
93
- color: state.isFocused ? "var(--bfc-base-c)" : "var(--bfc-base-c-2)",
93
+ color: state.isDisabled ? "var(--bfc-base-c-disabled)" : state.isFocused ? "var(--bfc-base-c)" : "var(--bfc-base-c-2)",
94
94
  cursor: "pointer",
95
95
  padding: 4,
96
96
  marginRight: 8
@@ -118,9 +118,9 @@ export const selectStyles = {
118
118
  border: "1px solid var(--bfc-base-c-wcag)",
119
119
  borderRadius: "var(--bf-radius-s)"
120
120
  }),
121
- placeholder: (provided)=>({
121
+ placeholder: (provided, state)=>({
122
122
  ...provided,
123
- color: "var(--bfc-base-c-2)",
123
+ color: state.isDisabled ? "var(--bfc-base-c-disabled)" : "var(--bfc-base-c-2)",
124
124
  fontSize: "var(--bf-font-size-l)"
125
125
  }),
126
126
  valueContainer: (provided)=>({
@@ -132,7 +132,7 @@ export const selectStyles = {
132
132
  }),
133
133
  singleValue: (provided, state)=>({
134
134
  ...provided,
135
- color: state.selectProps.menuIsOpen || state.isDisabled ? "var(--bfc-base-c-2)" : "var(--bfc-base-c)",
135
+ color: state.selectProps.menuIsOpen ? "var(--bfc-base-c-2)" : state.isDisabled ? "var(--bfc-base-c-disabled)" : "var(--bfc-base-c)",
136
136
  fontSize: "var(--bf-font-size-l)"
137
137
  }),
138
138
  option: (provided, state)=>({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intility/bifrost-react-select",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "description": "React select component for Intility's design system, Bifrost.",
5
5
  "type": "module",
6
6
  "main": "dist/Select.js",
@@ -44,7 +44,7 @@
44
44
  "react-dom": ">=17.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@intility/bifrost-react": "^5.7.0"
47
+ "@intility/bifrost-react": "^5.8.0"
48
48
  },
49
49
  "dependencies": {
50
50
  "@fortawesome/fontawesome-svg-core": "^6.4.2",