@intility/bifrost-react-select 4.2.1 → 4.2.3
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 +18 -0
- package/dist/Select.js +10 -5
- package/dist/overrides/CustomInput.internal.js +2 -2
- package/package.json +2 -2
- package/dist/overrides/index.d.ts +0 -6
- package/dist/overrides/index.js +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @intility/bifrost-react-select
|
|
2
2
|
|
|
3
|
+
## 4.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 633e7b2: chore: avoid internal barrel file imports
|
|
8
|
+
- 899927b: Fix: form field height should follow browser font-size setting. Use `rem` over `px` for height-related units for form fields (input, button, select, datepicker).
|
|
9
|
+
|
|
10
|
+
## 4.2.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 3434ad1: Update Select styling to match new bifrost Button
|
|
15
|
+
|
|
16
|
+
- Increased `border-radius` (from xs to s)
|
|
17
|
+
- Slight `border-color` tweaks
|
|
18
|
+
|
|
19
|
+
- 7b2eacc: Fix: Apparently, Chrome has changed its `<input autocomplete>` behaviour and now appears to only respect `autoComplete="off"`, so lets try that and pray to the browser gods that this will satisfy all of them for the forseeable future. #758
|
|
20
|
+
|
|
3
21
|
## 4.2.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/Select.js
CHANGED
|
@@ -10,7 +10,12 @@ import Description from "@intility/bifrost-react/Description";
|
|
|
10
10
|
import Feedback from "@intility/bifrost-react/Feedback";
|
|
11
11
|
import Label from "@intility/bifrost-react/Label";
|
|
12
12
|
import useUniqueId from "@intility/bifrost-react/hooks/useUniqueId";
|
|
13
|
-
import
|
|
13
|
+
import DropdownIndicator from "./overrides/DropdownIndicator.internal.js";
|
|
14
|
+
import CustomInput from "./overrides/CustomInput.internal.js";
|
|
15
|
+
import CustomMenuList from "./overrides/CustomMenuList.internal.js";
|
|
16
|
+
import ClearIndicator from "./overrides/ClearIndicator.internal.js";
|
|
17
|
+
import CustomOption from "./overrides/CustomOption.internal.js";
|
|
18
|
+
import LoadingIndicator from "./overrides/LoadingIndicator.internal.js";
|
|
14
19
|
const ReactSelect = ReactSelectDefaultExport.default ?? ReactSelectDefaultExport;
|
|
15
20
|
export const selectStyles = {
|
|
16
21
|
container: (provided)=>({
|
|
@@ -22,7 +27,7 @@ export const selectStyles = {
|
|
|
22
27
|
control: (provided, state)=>({
|
|
23
28
|
...provided,
|
|
24
29
|
"&:hover": {
|
|
25
|
-
borderColor:
|
|
30
|
+
borderColor: "var(--bfc-base-c-inverted)",
|
|
26
31
|
// Change color of dropdown icon when hover on Select
|
|
27
32
|
".bf-select__dropdown-indicator": {
|
|
28
33
|
color: "var(--bfc-base-c)"
|
|
@@ -33,7 +38,7 @@ export const selectStyles = {
|
|
|
33
38
|
borderStyle: "solid",
|
|
34
39
|
borderColor: state.isFocused ? "var(--bfc-base-c-inverted)" : state.isDisabled ? "transparent" : "var(--bfc-base-c-wcag)",
|
|
35
40
|
boxShadow: state.isFocused ? "inset 0 0 0 1px var(--bfc-base-c-inverted)" : "none",
|
|
36
|
-
borderRadius: "var(--bf-radius-
|
|
41
|
+
borderRadius: "var(--bf-radius-s)",
|
|
37
42
|
minHeight: "var(--bfs40)",
|
|
38
43
|
cursor: "text"
|
|
39
44
|
}),
|
|
@@ -43,7 +48,7 @@ export const selectStyles = {
|
|
|
43
48
|
indicatorsContainer: (provided)=>({
|
|
44
49
|
...provided,
|
|
45
50
|
alignItems: "flex-start",
|
|
46
|
-
padding: "
|
|
51
|
+
padding: "0.46875rem 0"
|
|
47
52
|
}),
|
|
48
53
|
clearIndicator: (provided)=>({
|
|
49
54
|
...provided,
|
|
@@ -84,7 +89,7 @@ export const selectStyles = {
|
|
|
84
89
|
backgroundColor: "var(--bfc-base-3)",
|
|
85
90
|
padding: 0,
|
|
86
91
|
border: "1px solid var(--bfc-base-c-wcag)",
|
|
87
|
-
borderRadius: "var(--bf-radius-
|
|
92
|
+
borderRadius: "var(--bf-radius-s)"
|
|
88
93
|
}),
|
|
89
94
|
placeholder: (provided)=>({
|
|
90
95
|
...provided,
|
|
@@ -4,7 +4,7 @@ const CustomInput = (props)=>{
|
|
|
4
4
|
const { required, value } = props.selectProps;
|
|
5
5
|
const updatedProps = {
|
|
6
6
|
...props,
|
|
7
|
-
autoComplete: "
|
|
7
|
+
autoComplete: "off"
|
|
8
8
|
};
|
|
9
9
|
return /*#__PURE__*/ _jsxs(_Fragment, {
|
|
10
10
|
children: [
|
|
@@ -22,7 +22,7 @@ const CustomInput = (props)=>{
|
|
|
22
22
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
23
|
value: value?.label ?? "",
|
|
24
24
|
tabIndex: -1,
|
|
25
|
-
autoComplete: "
|
|
25
|
+
autoComplete: "off",
|
|
26
26
|
required: required,
|
|
27
27
|
"data-testid": "bf-select-input"
|
|
28
28
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intility/bifrost-react-select",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
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.
|
|
42
|
+
"@intility/bifrost-react": "^4.7.4"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as ClearIndicator } from "./ClearIndicator.internal.js";
|
|
2
|
-
export { default as CustomInput } from "./CustomInput.internal.js";
|
|
3
|
-
export { default as LoadingIndicator } from "./LoadingIndicator.internal.js";
|
|
4
|
-
export { default as CustomMenuList } from "./CustomMenuList.internal.js";
|
|
5
|
-
export { default as DropdownIndicator } from "./DropdownIndicator.internal.js";
|
|
6
|
-
export { default as CustomOption } from "./CustomOption.internal.js";
|
package/dist/overrides/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as ClearIndicator } from "./ClearIndicator.internal.js";
|
|
2
|
-
export { default as CustomInput } from "./CustomInput.internal.js";
|
|
3
|
-
export { default as LoadingIndicator } from "./LoadingIndicator.internal.js";
|
|
4
|
-
export { default as CustomMenuList } from "./CustomMenuList.internal.js";
|
|
5
|
-
export { default as DropdownIndicator } from "./DropdownIndicator.internal.js";
|
|
6
|
-
export { default as CustomOption } from "./CustomOption.internal.js";
|