@intility/bifrost-react-select 5.2.2 → 6.0.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,24 @@
1
1
  # @intility/bifrost-react-select
2
2
 
3
+ ## 6.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 5de0e05: Update `peerDependencies` to explicit major versions:
8
+
9
+ ```
10
+ @intility/bifrost-react: ^6
11
+ react: ^17 || ^18 || ^19
12
+ react-dom: ^17 || ^18 || ^19
13
+ ```
14
+
15
+ - 5de0e05: Updated Font Awesome dependencies from `^6.4.2` to `^7.0.0`.
16
+ - `<Icon fixedWidth>` prop deprecated since icons are now fixed width default.
17
+ - New `<Icon widthAuto>` prop if you want the old behavior.
18
+ - If you have trouble installing, try deleting your `node_modules` and
19
+ `package-lock.json`.
20
+ - 5de0e05: No longer override internal Input for Select (apparently does nothing) - could potentially break something?
21
+
3
22
  ## 5.2.2
4
23
 
5
24
  ### Patch Changes
package/dist/Select.js CHANGED
@@ -12,7 +12,6 @@ import Label from "@intility/bifrost-react/Label";
12
12
  import useUniqueId from "@intility/bifrost-react/hooks/useUniqueId";
13
13
  import useLocale from "@intility/bifrost-react/hooks/useLocale";
14
14
  import DropdownIndicator from "./overrides/DropdownIndicator.internal.js";
15
- import CustomInput from "./overrides/CustomInput.internal.js";
16
15
  import CustomMenuList from "./overrides/CustomMenuList.internal.js";
17
16
  import ClearIndicator from "./overrides/ClearIndicator.internal.js";
18
17
  import CustomOption from "./overrides/CustomOption.internal.js";
@@ -206,7 +205,6 @@ export const selectStyles = {
206
205
  export const selectComponents = {
207
206
  ...originalComponents,
208
207
  DropdownIndicator,
209
- Input: CustomInput,
210
208
  MenuList: CustomMenuList,
211
209
  // @ts-ignore
212
210
  Menu,
@@ -6,6 +6,7 @@ const ClearIndicator = (props)=>{
6
6
  return /*#__PURE__*/ _jsx(components.ClearIndicator, {
7
7
  ...props,
8
8
  children: /*#__PURE__*/ _jsx(Icon, {
9
+ widthAuto: true,
9
10
  icon: faXmark
10
11
  })
11
12
  });
@@ -6,6 +6,7 @@ const DropdownIndicator = (props)=>{
6
6
  return /*#__PURE__*/ _jsx(components.DropdownIndicator, {
7
7
  ...props,
8
8
  children: /*#__PURE__*/ _jsx(Icon, {
9
+ widthAuto: true,
9
10
  icon: faCaretDown
10
11
  })
11
12
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intility/bifrost-react-select",
3
- "version": "5.2.2",
3
+ "version": "6.0.0",
4
4
  "description": "React select component for Intility's design system, Bifrost.",
5
5
  "type": "module",
6
6
  "main": "dist/Select.js",
@@ -39,17 +39,16 @@
39
39
  "access": "public"
40
40
  },
41
41
  "peerDependencies": {
42
- "@intility/bifrost-react": ">=5.0.0",
43
- "react": ">=17.0.0",
44
- "react-dom": ">=17.0.0"
42
+ "@intility/bifrost-react": "^6",
43
+ "react": "^17 || ^18 || ^19",
44
+ "react-dom": "^17 || ^18 || ^19"
45
45
  },
46
46
  "devDependencies": {
47
- "@intility/bifrost-react": "^5.8.2"
47
+ "@intility/bifrost-react": "^6.0.0"
48
48
  },
49
49
  "dependencies": {
50
- "@fortawesome/fontawesome-svg-core": "^6.4.2",
51
- "@fortawesome/free-solid-svg-icons": "^6.4.2",
52
- "@fortawesome/react-fontawesome": "^0.2.0",
50
+ "@fortawesome/fontawesome-svg-core": "^7.0.0",
51
+ "@fortawesome/free-solid-svg-icons": "^7.0.0",
53
52
  "classnames": "^2.2.6",
54
53
  "react-select": "^5.10.2"
55
54
  },
@@ -1,2 +0,0 @@
1
- declare const CustomInput: (props: any) => import("react/jsx-runtime").JSX.Element;
2
- export default CustomInput;
@@ -1,32 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { components } from "react-select";
3
- const CustomInput = (props)=>{
4
- const { required, value } = props.selectProps;
5
- const updatedProps = {
6
- ...props,
7
- autoComplete: "off"
8
- };
9
- return /*#__PURE__*/ _jsxs(_Fragment, {
10
- children: [
11
- /*#__PURE__*/ _jsx(components.Input, {
12
- ...updatedProps
13
- }),
14
- /*#__PURE__*/ _jsx("input", {
15
- style: {
16
- opacity: 0,
17
- height: 0,
18
- position: "absolute",
19
- pointerEvents: "none"
20
- },
21
- onChange: (e)=>e.preventDefault(),
22
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
23
- value: value?.label ?? "",
24
- tabIndex: -1,
25
- autoComplete: "off",
26
- required: required,
27
- "data-testid": "bf-select-input"
28
- })
29
- ]
30
- });
31
- };
32
- export default CustomInput;