@intility/bifrost-react-select 4.0.3 → 4.1.0

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
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ab69807d: Styling changes for Select input #740
8
+
3
9
  ## 4.0.3
4
10
 
5
11
  ### Patch Changes
package/dist/Select.d.ts CHANGED
@@ -20,7 +20,7 @@ export declare const selectStyles: {
20
20
  singleValue: (provided: any, state: any) => any;
21
21
  option: (provided: any, state: any) => any;
22
22
  multiValue: (provided: any, state: any) => any;
23
- multiValueLabel: (provided: any, state: any) => any;
23
+ multiValueLabel: (provided: any) => any;
24
24
  multiValueRemove: (provided: any, state: any) => any;
25
25
  group: (provided: any) => any;
26
26
  groupHeading: (provided: any) => any;
package/dist/Select.js CHANGED
@@ -22,18 +22,18 @@ export const selectStyles = {
22
22
  control: (provided, state)=>({
23
23
  ...provided,
24
24
  "&:hover": {
25
- borderColor: state.isFocused ? "var(--bfc-theme-3)" : "var(--bfc-base-c-inverted-2)",
25
+ borderColor: state.isFocused ? "var(--bfc-base-c-inverted)" : "var(--bfc-base-c-inverted-2)",
26
26
  // Change color of dropdown icon when hover on Select
27
27
  ".bf-select__dropdown-indicator": {
28
- color: "var(--bfc-theme-3)"
28
+ color: "var(--bfc-base-c)"
29
29
  }
30
30
  },
31
31
  backgroundColor: state.isDisabled ? "var(--bfc-base-dimmed)" : "var(--bfc-base-3)",
32
32
  borderWidth: "1px",
33
33
  borderStyle: "solid",
34
- borderColor: state.isFocused ? "var(--bfc-theme-3)" : state.isDisabled ? "transparent" : "var(--bfc-base-c-wcag)",
35
- boxShadow: "none",
36
- borderRadius: state.selectProps.menuIsOpen ? " var(--bf-radius-xs) var(--bf-radius-xs) 0 0" : "var(--bf-radius-xs)",
34
+ borderColor: state.isFocused ? "var(--bfc-base-c-inverted)" : state.isDisabled ? "transparent" : "var(--bfc-base-c-wcag)",
35
+ boxShadow: state.isFocused ? "inset 0 0 0 1px var(--bfc-base-c-inverted)" : "none",
36
+ borderRadius: state.selectProps.menuIsOpen ? "var(--bf-radius-xs) var(--bf-radius-xs) 0 0" : "var(--bf-radius-xs)",
37
37
  minHeight: "var(--bfs40)",
38
38
  cursor: "text"
39
39
  }),
@@ -57,7 +57,7 @@ export const selectStyles = {
57
57
  }),
58
58
  dropdownIndicator: (provided, state)=>({
59
59
  ...provided,
60
- color: state.isDisabled ? "var(--bfc-base-c-2)" : "var(--bfc-theme-1)",
60
+ color: state.isFocused ? "var(--bfc-base-c)" : "var(--bfc-base-c-2)",
61
61
  cursor: "pointer",
62
62
  padding: "var(--bfs4)",
63
63
  marginRight: "var(--bfs8)"
@@ -84,7 +84,7 @@ export const selectStyles = {
84
84
  ...provided,
85
85
  backgroundColor: "var(--bfc-base-3)",
86
86
  padding: 0,
87
- border: "1px solid var(--bfc-theme-3)",
87
+ border: "2px solid var(--bfc-base-c-inverted)",
88
88
  borderTop: "none",
89
89
  borderRadius: "0 0 var(--bf-radius-xs) var(--bf-radius-xs)"
90
90
  }),
@@ -111,11 +111,11 @@ export const selectStyles = {
111
111
  color: "var(--bfc-theme)"
112
112
  },
113
113
  "& .bf-select-selected-icon": {
114
- color: "var(--bfc-base-c-theme)",
114
+ color: "var(--bfc-base-c)",
115
115
  marginLeft: "var(--bfs4)"
116
116
  },
117
117
  "&:hover": {
118
- backgroundColor: state.isDisabled ? "var(--bfc-base-dimmed)" : "var(--bfc-base-1)",
118
+ backgroundColor: state.isDisabled ? "var(--bfc-base-dimmed)" : "var(--bfc-base-3)",
119
119
  cursor: state.isDisabled ? "default" : "pointer"
120
120
  },
121
121
  fontSize: "var(--bf-font-size-l)",
@@ -125,31 +125,30 @@ export const selectStyles = {
125
125
  }),
126
126
  multiValue: (provided, state)=>({
127
127
  ...provided,
128
- backgroundColor: state.isDisabled ? "var(--bfc-base-c-inverted-2)" : "var(--bfc-theme-c)",
129
- borderRadius: "var(--bf-radius-xs)"
128
+ backgroundColor: "var(--bfc-base)",
129
+ borderRadius: "var(--bf-radius-xs)",
130
+ border: state.isDisabled ? "1px solid var(--bfc-base-c-disabled)" : "var(--bf-border)",
131
+ opacity: state.isDisabled ? 0.5 : 1
130
132
  }),
131
- multiValueLabel: (provided, state)=>({
133
+ multiValueLabel: (provided)=>({
132
134
  ...provided,
133
- color: state.isDisabled ? "var(--bfc-base-1)" : "var(--bfc-base-c-theme)",
134
- fontSize: "var(--bf-font-size-m)"
135
+ fontSize: "var(--bf-font-size-m)",
136
+ padding: "2px 4px 2px 8px",
137
+ color: "inherit"
135
138
  }),
136
139
  multiValueRemove: (provided, state)=>({
137
140
  ...provided,
138
- color: state.isDisabled ? "var(--bfc-base-1)" : state.isFocused ? "var(--bfc-theme-c-base-3)" : "var(--bfc-theme-1)",
139
- borderRadius: "unset",
140
- borderTopRightRadius: "var(--bf-radius-xs)",
141
- borderBottomRightRadius: "var(--bf-radius-xs)",
142
- paddingLeft: "var(--bfs2)",
143
- paddingRight: "var(--bfs2)",
144
- marginLeft: "var(--bfs2)",
141
+ color: "var(--bfc-base-c-2)",
142
+ paddingLeft: 5,
143
+ paddingRight: 5,
145
144
  background: state.isFocused && "var(--bfc-theme-2)",
146
145
  "&:hover": {
147
- color: "var(--bfc-theme-c-base-3)",
146
+ color: "var(--bfc-base-c-1)",
148
147
  cursor: "pointer",
149
- background: "var(--bfc-theme)"
148
+ background: "var(--bfc-base-2)"
150
149
  },
151
150
  "&:active": {
152
- background: "var(--bfc-theme-2)"
151
+ background: "var(--bfc-base-3)"
153
152
  },
154
153
  svg: {
155
154
  marginTop: "1px"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intility/bifrost-react-select",
3
- "version": "4.0.3",
3
+ "version": "4.1.0",
4
4
  "description": "React select component for Intility's design system, Bifrost.",
5
5
  "type": "module",
6
6
  "main": "dist/Select.js",
@@ -39,7 +39,7 @@
39
39
  "@intility/bifrost-react": "^4.0.2"
40
40
  },
41
41
  "devDependencies": {
42
- "@intility/bifrost-react": "^4.2.3"
42
+ "@intility/bifrost-react": "^4.3.0"
43
43
  },
44
44
  "dependencies": {
45
45
  "@fortawesome/fontawesome-svg-core": "^6.4.2",