@intility/bifrost-react-select 5.0.2 → 5.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,15 @@
1
1
  # @intility/bifrost-react-select
2
2
 
3
+ ## 5.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c7e5540: Bump `react-select` dependency to `5.10.1`
8
+
9
+ ### Patch Changes
10
+
11
+ - 30fd9d3: Fix: Avoid wrapping `<Select isMulti>` with a single long-worded option selected. #178
12
+
3
13
  ## 5.0.2
4
14
 
5
15
  ### Patch Changes
package/dist/Select.js CHANGED
@@ -55,7 +55,7 @@ export const selectStyles = {
55
55
  borderBottomRightRadius: "var(--bf-radius-s)"
56
56
  },
57
57
  backgroundColor: state.isDisabled ? "var(--bfc-base-dimmed)" : "var(--bfc-base-3)",
58
- borderWidth: "1px",
58
+ borderWidth: 1,
59
59
  borderStyle: "solid",
60
60
  borderColor: state.isFocused ? "var(--bfc-base-c-inverted)" : state.isDisabled ? "transparent" : "var(--bfc-base-c-wcag)",
61
61
  boxShadow: state.isFocused ? "inset 0 0 0 1px var(--bfc-base-c-inverted)" : "none",
@@ -81,7 +81,7 @@ export const selectStyles = {
81
81
  },
82
82
  color: "var(--bfc-base-c-2)",
83
83
  cursor: "pointer",
84
- padding: "var(--bfs4)",
84
+ padding: 4,
85
85
  margin: "1px 4px 0px 0px"
86
86
  }),
87
87
  dropdownIndicator: (provided, state)=>({
@@ -91,17 +91,16 @@ export const selectStyles = {
91
91
  },
92
92
  color: state.isFocused ? "var(--bfc-base-c)" : "var(--bfc-base-c-2)",
93
93
  cursor: "pointer",
94
- padding: "var(--bfs4)",
94
+ padding: 4,
95
95
  marginRight: 8
96
96
  }),
97
97
  input: (provided)=>({
98
98
  ...provided,
99
- ".bf-select-small &": {
100
- marginBlock: 0
101
- },
102
99
  color: "var(--bfc-base-c)",
103
100
  fontFamily: "inherit",
104
- fontSize: "var(--bf-font-size-l)"
101
+ fontSize: "var(--bf-font-size-l)",
102
+ margin: 0,
103
+ padding: 0
105
104
  }),
106
105
  menuPortal: (provided)=>({
107
106
  ...provided,
@@ -148,7 +147,7 @@ export const selectStyles = {
148
147
  color: state.isDisabled ? "var(--bfc-base-c-2)" : "var(--bfc-base-c)",
149
148
  "& .bf-select-selected-icon": {
150
149
  color: "var(--bfc-base-c)",
151
- marginLeft: "var(--bfs4)"
150
+ marginLeft: 4
152
151
  },
153
152
  "&:hover": {
154
153
  backgroundColor: state.isDisabled ? "var(--bfc-base-dimmed)" : "var(--bfc-base)",
@@ -164,7 +163,8 @@ export const selectStyles = {
164
163
  backgroundColor: "var(--bfc-base)",
165
164
  borderRadius: "var(--bf-radius-xs)",
166
165
  border: state.isDisabled ? "1px solid var(--bfc-base-c-disabled)" : "var(--bf-border)",
167
- opacity: state.isDisabled ? 0.5 : 1
166
+ opacity: state.isDisabled ? 0.5 : 1,
167
+ maxWidth: "calc(100% - 10px)"
168
168
  }),
169
169
  multiValueLabel: (provided)=>({
170
170
  ...provided,
@@ -177,7 +177,7 @@ export const selectStyles = {
177
177
  color: "var(--bfc-base-c-2)",
178
178
  paddingLeft: 5,
179
179
  paddingRight: 5,
180
- background: state.isFocused && "var(--bfc-theme-2)",
180
+ background: state.isFocused ? "var(--bfc-theme-2)" : undefined,
181
181
  "&:hover": {
182
182
  color: "var(--bfc-base-c)",
183
183
  cursor: "pointer",
@@ -187,14 +187,14 @@ export const selectStyles = {
187
187
  background: "var(--bfc-base-3)"
188
188
  },
189
189
  svg: {
190
- marginTop: "1px"
190
+ marginTop: 1
191
191
  }
192
192
  }),
193
193
  group: (provided)=>({
194
194
  ...provided,
195
- padding: "var(--bfs6) 0",
195
+ padding: "6px 0",
196
196
  "&:first-of-type": {
197
- marginTop: "var(--bfs4)"
197
+ marginTop: 4
198
198
  }
199
199
  }),
200
200
  groupHeading: (provided)=>({
@@ -202,7 +202,7 @@ export const selectStyles = {
202
202
  textTransform: "capitalize",
203
203
  color: "var(--bfc-base-c-2)",
204
204
  fontSize: "var(--bf-font-size-s)",
205
- marginBottom: "var(--bfs2)"
205
+ marginBottom: 2
206
206
  })
207
207
  };
208
208
  export const selectComponents = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intility/bifrost-react-select",
3
- "version": "5.0.2",
3
+ "version": "5.1.0",
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.2.1"
47
+ "@intility/bifrost-react": "^5.3.0"
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.7.7"
54
+ "react-select": "^5.10.1"
55
55
  },
56
56
  "files": [
57
57
  "CHANGELOG.md",