@intility/bifrost-react-select 4.2.1 → 4.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,16 @@
1
1
  # @intility/bifrost-react-select
2
2
 
3
+ ## 4.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 3434ad1: Update Select styling to match new bifrost Button
8
+
9
+ - Increased `border-radius` (from xs to s)
10
+ - Slight `border-color` tweaks
11
+
12
+ - 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
13
+
3
14
  ## 4.2.1
4
15
 
5
16
  ### Patch Changes
package/dist/Select.js CHANGED
@@ -22,7 +22,7 @@ export const selectStyles = {
22
22
  control: (provided, state)=>({
23
23
  ...provided,
24
24
  "&:hover": {
25
- borderColor: state.isFocused ? "var(--bfc-base-c-inverted)" : "var(--bfc-base-c-inverted-2)",
25
+ borderColor: "var(--bfc-base-c-inverted)",
26
26
  // Change color of dropdown icon when hover on Select
27
27
  ".bf-select__dropdown-indicator": {
28
28
  color: "var(--bfc-base-c)"
@@ -33,7 +33,7 @@ export const selectStyles = {
33
33
  borderStyle: "solid",
34
34
  borderColor: state.isFocused ? "var(--bfc-base-c-inverted)" : state.isDisabled ? "transparent" : "var(--bfc-base-c-wcag)",
35
35
  boxShadow: state.isFocused ? "inset 0 0 0 1px var(--bfc-base-c-inverted)" : "none",
36
- borderRadius: "var(--bf-radius-xs)",
36
+ borderRadius: "var(--bf-radius-s)",
37
37
  minHeight: "var(--bfs40)",
38
38
  cursor: "text"
39
39
  }),
@@ -84,7 +84,7 @@ export const selectStyles = {
84
84
  backgroundColor: "var(--bfc-base-3)",
85
85
  padding: 0,
86
86
  border: "1px solid var(--bfc-base-c-wcag)",
87
- borderRadius: "var(--bf-radius-xs)"
87
+ borderRadius: "var(--bf-radius-s)"
88
88
  }),
89
89
  placeholder: (provided)=>({
90
90
  ...provided,
@@ -4,7 +4,7 @@ const CustomInput = (props)=>{
4
4
  const { required, value } = props.selectProps;
5
5
  const updatedProps = {
6
6
  ...props,
7
- autoComplete: "noAutocomplete"
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: "noAutocomplete",
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.1",
3
+ "version": "4.2.2",
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.6.0"
42
+ "@intility/bifrost-react": "^4.7.0"
43
43
  },
44
44
  "dependencies": {
45
45
  "@fortawesome/fontawesome-svg-core": "^6.4.2",