@intility/bifrost-react-select 5.2.1 → 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 +26 -0
- package/dist/Select.js +1 -3
- package/dist/overrides/ClearIndicator.internal.js +1 -0
- package/dist/overrides/DropdownIndicator.internal.js +1 -0
- package/package.json +8 -9
- package/dist/overrides/CustomInput.internal.d.ts +0 -2
- package/dist/overrides/CustomInput.internal.js +0 -32
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
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
|
+
|
|
22
|
+
## 5.2.2
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- 123c323: Bump `react-select` dependency from `5.10.1` to `5.10.2`
|
|
27
|
+
- d74de86: Update css-in-js selector for `<Select>` component to remove warning about `:first-child`
|
|
28
|
+
|
|
3
29
|
## 5.2.1
|
|
4
30
|
|
|
5
31
|
### 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";
|
|
@@ -47,7 +46,7 @@ export const selectStyles = {
|
|
|
47
46
|
".bf-fieldgroup &": {
|
|
48
47
|
borderRadius: 0
|
|
49
48
|
},
|
|
50
|
-
".bf-fieldgroup > :first-
|
|
49
|
+
".bf-fieldgroup > :first-of-type &": {
|
|
51
50
|
borderTopLeftRadius: "var(--bf-radius-s)",
|
|
52
51
|
borderBottomLeftRadius: "var(--bf-radius-s)"
|
|
53
52
|
},
|
|
@@ -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,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intility/bifrost-react-select",
|
|
3
|
-
"version": "
|
|
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,19 +39,18 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@intility/bifrost-react": "
|
|
43
|
-
"react": "
|
|
44
|
-
"react-dom": "
|
|
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": "^
|
|
47
|
+
"@intility/bifrost-react": "^6.0.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@fortawesome/fontawesome-svg-core": "^
|
|
51
|
-
"@fortawesome/free-solid-svg-icons": "^
|
|
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
|
-
"react-select": "^5.10.
|
|
53
|
+
"react-select": "^5.10.2"
|
|
55
54
|
},
|
|
56
55
|
"files": [
|
|
57
56
|
"CHANGELOG.md",
|
|
@@ -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;
|