@intility/bifrost-react-select 6.0.0 → 6.0.1
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,11 @@
|
|
|
1
1
|
# @intility/bifrost-react-select
|
|
2
2
|
|
|
3
|
+
## 6.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 01a6406: Update `@fortawesome/*-icons` dependencies to `^7.0.1`
|
|
8
|
+
|
|
3
9
|
## 6.0.0
|
|
4
10
|
|
|
5
11
|
### Major Changes
|
|
@@ -13,8 +19,6 @@
|
|
|
13
19
|
```
|
|
14
20
|
|
|
15
21
|
- 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
22
|
- If you have trouble installing, try deleting your `node_modules` and
|
|
19
23
|
`package-lock.json`.
|
|
20
24
|
- 5de0e05: No longer override internal Input for Select (apparently does nothing) - could potentially break something?
|
package/dist/Select.d.ts
CHANGED
|
@@ -59,6 +59,16 @@ export type SelectType = {
|
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
61
|
* Select component - dropdown list
|
|
62
|
+
*
|
|
63
|
+
* @see https://bifrost.intility.com/react/select
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* <Select
|
|
67
|
+
* label="Select a country"
|
|
68
|
+
* options={countries} // [{ value: countryData, label: "Norway" }, ...]
|
|
69
|
+
* value={selected}
|
|
70
|
+
* onChange={(item) => setSelected(item)}
|
|
71
|
+
* />
|
|
62
72
|
*/
|
|
63
73
|
export declare const Select: SelectType;
|
|
64
74
|
export type AsyncType = {
|
package/dist/Select.js
CHANGED
|
@@ -279,6 +279,16 @@ export const selectComponents = {
|
|
|
279
279
|
};
|
|
280
280
|
/**
|
|
281
281
|
* Select component - dropdown list
|
|
282
|
+
*
|
|
283
|
+
* @see https://bifrost.intility.com/react/select
|
|
284
|
+
*
|
|
285
|
+
* @example
|
|
286
|
+
* <Select
|
|
287
|
+
* label="Select a country"
|
|
288
|
+
* options={countries} // [{ value: countryData, label: "Norway" }, ...]
|
|
289
|
+
* value={selected}
|
|
290
|
+
* onChange={(item) => setSelected(item)}
|
|
291
|
+
* />
|
|
282
292
|
*/ export const Select = SelectHOC(ReactSelect);
|
|
283
293
|
Select.displayName = "Select";
|
|
284
294
|
const AsyncSelect = SelectHOC(AsyncReactSelect);
|
|
@@ -11,7 +11,6 @@ const CustomOption = (props)=>{
|
|
|
11
11
|
props.isMulti && /*#__PURE__*/ _jsx("div", {
|
|
12
12
|
children: /*#__PURE__*/ _jsx(Icon, {
|
|
13
13
|
icon: props.isSelected ? faCheckSquare : faSquare,
|
|
14
|
-
fixedWidth: true,
|
|
15
14
|
marginRight: true,
|
|
16
15
|
color: props.isSelected ? "var(--bfc-theme)" : "var(--bfc-base-c-2)"
|
|
17
16
|
})
|
|
@@ -20,7 +19,6 @@ const CustomOption = (props)=>{
|
|
|
20
19
|
!props.isMulti && props.isSelected && /*#__PURE__*/ _jsx("div", {
|
|
21
20
|
children: /*#__PURE__*/ _jsx(Icon, {
|
|
22
21
|
icon: faCheck,
|
|
23
|
-
fixedWidth: true,
|
|
24
22
|
className: "bf-select-selected-icon"
|
|
25
23
|
})
|
|
26
24
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intility/bifrost-react-select",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "React select component for Intility's design system, Bifrost.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/Select.js",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"react-dom": "^17 || ^18 || ^19"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@intility/bifrost-react": "^6.
|
|
47
|
+
"@intility/bifrost-react": "^6.3.1"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@fortawesome/fontawesome-svg-core": "^7.0.
|
|
51
|
-
"@fortawesome/free-solid-svg-icons": "^7.0.
|
|
50
|
+
"@fortawesome/fontawesome-svg-core": "^7.0.1",
|
|
51
|
+
"@fortawesome/free-solid-svg-icons": "^7.0.1",
|
|
52
52
|
"classnames": "^2.2.6",
|
|
53
53
|
"react-select": "^5.10.2"
|
|
54
54
|
},
|