@intility/bifrost-react-select 5.2.0 → 5.2.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,18 @@
1
1
  # @intility/bifrost-react-select
2
2
 
3
+ ## 5.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 123c323: Bump `react-select` dependency from `5.10.1` to `5.10.2`
8
+ - d74de86: Update css-in-js selector for `<Select>` component to remove warning about `:first-child`
9
+
10
+ ## 5.2.1
11
+
12
+ ### Patch Changes
13
+
14
+ - b16e76d: Update styling for disabled select
15
+
3
16
  ## 5.2.0
4
17
 
5
18
  ### 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
@@ -47,7 +47,7 @@ export const selectStyles = {
47
47
  ".bf-fieldgroup &": {
48
48
  borderRadius: 0
49
49
  },
50
- ".bf-fieldgroup > :first-child &": {
50
+ ".bf-fieldgroup > :first-of-type &": {
51
51
  borderTopLeftRadius: "var(--bf-radius-s)",
52
52
  borderBottomLeftRadius: "var(--bf-radius-s)"
53
53
  },
@@ -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.2",
4
4
  "description": "React select component for Intility's design system, Bifrost.",
5
5
  "type": "module",
6
6
  "main": "dist/Select.js",
@@ -44,14 +44,14 @@
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.2"
48
48
  },
49
49
  "dependencies": {
50
50
  "@fortawesome/fontawesome-svg-core": "^6.4.2",
51
51
  "@fortawesome/free-solid-svg-icons": "^6.4.2",
52
52
  "@fortawesome/react-fontawesome": "^0.2.0",
53
53
  "classnames": "^2.2.6",
54
- "react-select": "^5.10.1"
54
+ "react-select": "^5.10.2"
55
55
  },
56
56
  "files": [
57
57
  "CHANGELOG.md",