@intility/bifrost-react-select 4.0.0-alpha.8 → 4.0.0-beta.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,40 @@
1
1
  # @intility/bifrost-react-select
2
2
 
3
+ ## 4.0.0-beta.2
4
+
5
+ ### Major Changes
6
+
7
+ - 608d2083: update module output
8
+
9
+ ### Patch Changes
10
+
11
+ - 165904af: use deep imports from @intility/bifrost-react
12
+ - Updated dependencies [165904af]
13
+ - Updated dependencies [608d2083]
14
+ - @intility/bifrost-react@4.0.0-beta.1
15
+
16
+ ## 4.0.0-beta.1
17
+
18
+ ### Patch Changes
19
+
20
+ - 217c8741: Named export for Select and DatePicker
21
+
22
+ ## 4.0.0-beta.0
23
+
24
+ ### Major Changes
25
+
26
+ - 5c7ba5a4: split react-select and react-datepicker
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [3785f8d6]
31
+ - Updated dependencies [5c7ba5a4]
32
+ - Updated dependencies [5cb3ebac]
33
+ - Updated dependencies [d8bd3f72]
34
+ - Updated dependencies [df1f169d]
35
+ - Updated dependencies [727894c3]
36
+ - @intility/bifrost-react@4.0.0-beta.0
37
+
3
38
  ## 4.0.0-alpha.8
4
39
 
5
40
  ### Patch Changes
package/dist/Select.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { CSSProperties, ReactNode, RefAttributes } from 'react';
2
- import { GroupBase, Props as ReactSelectProps, SelectInstance, components } from 'react-select';
3
- import { AsyncProps as AsyncSelectProps } from 'react-select/async';
4
- import { CreatableProps as CreatableSelectProps } from 'react-select/creatable';
5
- import { AsyncCreatableProps as AsyncCreatableSelectProps } from 'react-select/async-creatable';
1
+ import { CSSProperties, ReactNode, RefAttributes } from "react";
2
+ import { GroupBase, Props as ReactSelectProps, SelectInstance, components } from "react-select";
3
+ import { AsyncProps as AsyncSelectProps } from "react-select/async";
4
+ import { CreatableProps as CreatableSelectProps } from "react-select/creatable";
5
+ import { AsyncCreatableProps as AsyncCreatableSelectProps } from "react-select/async-creatable";
6
6
  export declare const selectStyles: {
7
7
  container: (provided: any) => any;
8
8
  control: (provided: any, state: any) => any;
package/dist/Select.js CHANGED
@@ -1,70 +1,73 @@
1
- /* eslint-disable @typescript-eslint/ban-ts-comment */ 'use client';
1
+ /* eslint-disable @typescript-eslint/ban-ts-comment */ "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { forwardRef } from 'react';
4
- import ReactSelectDefaultExport from 'react-select';
5
- import AsyncReactSelect from 'react-select/async';
6
- import CreatableReactSelect from 'react-select/creatable';
7
- import AsyncCreatableReactSelect from 'react-select/async-creatable';
8
- import classNames from 'classnames';
9
- import { Description, Feedback, Label, useUniqueId } from '@intility/bifrost-react';
10
- import { DropdownIndicator, ClearIndicator, CustomInput, CustomMenuList, CustomOption, LoadingIndicator } from './overrides';
3
+ import { forwardRef } from "react";
4
+ import ReactSelectDefaultExport from "react-select";
5
+ import AsyncReactSelect from "react-select/async";
6
+ import CreatableReactSelect from "react-select/creatable";
7
+ import AsyncCreatableReactSelect from "react-select/async-creatable";
8
+ import classNames from "classnames";
9
+ import Description from "@intility/bifrost-react/Description";
10
+ import Feedback from "@intility/bifrost-react/Feedback";
11
+ import Label from "@intility/bifrost-react/Label";
12
+ import useUniqueId from "@intility/bifrost-react/hooks/useUniqueId";
13
+ import { DropdownIndicator, ClearIndicator, CustomInput, CustomMenuList, CustomOption, LoadingIndicator } from "./overrides/index.js";
11
14
  const ReactSelect = ReactSelectDefaultExport.default ?? ReactSelectDefaultExport;
12
15
  export const selectStyles = {
13
16
  container: (provided)=>({
14
17
  ...provided,
15
- '.bf-label-description + &, .bf-label + &': {
16
- marginTop: 'var(--bfs4)' // add margin-top only when label or description is direct sibling with select
18
+ ".bf-label-description + &, .bf-label + &": {
19
+ marginTop: "var(--bfs4)"
17
20
  }
18
21
  }),
19
22
  control: (provided, state)=>({
20
23
  ...provided,
21
- '&:hover': {
22
- borderBottomColor: state.isFocused ? 'var(--bfc-base-c-theme)' : 'var(--bfc-base-c-inverted-2)',
24
+ "&:hover": {
25
+ borderBottomColor: state.isFocused ? "var(--bfc-base-c-theme)" : "var(--bfc-base-c-inverted-2)",
23
26
  // Change color of dropdown icon when hover on Select
24
- '.bf-select__dropdown-indicator': {
25
- color: 'var(--bfc-theme-3)'
27
+ ".bf-select__dropdown-indicator": {
28
+ color: "var(--bfc-theme-3)"
26
29
  }
27
30
  },
28
- backgroundColor: state.isDisabled ? 'var(--bfc-base-dimmed)' : 'var(--bfc-base-3)',
31
+ backgroundColor: state.isDisabled ? "var(--bfc-base-dimmed)" : "var(--bfc-base-3)",
29
32
  border: 0,
30
- borderBottomWidth: '2px',
31
- borderBottomStyle: 'solid',
32
- borderBottomColor: state.isFocused ? 'var(--bfc-base-c-theme)' : state.isDisabled ? 'transparent' : 'var(--bfc-base-c-wcag)',
33
- boxShadow: state.isFocused && '0 0 0 1px var(--bfc-theme-3)',
34
- borderRadius: state.selectProps.menuIsOpen ? ' var(--bfl-border-radius) var(--bfl-border-radius) 0 0' : 'var(--bfl-border-radius)',
35
- minHeight: 'var(--bfs40)',
36
- cursor: 'text'
33
+ borderBottomWidth: "2px",
34
+ borderBottomStyle: "solid",
35
+ borderBottomColor: state.isFocused ? "var(--bfc-base-c-theme)" : state.isDisabled ? "transparent" : "var(--bfc-base-c-wcag)",
36
+ boxShadow: state.isFocused && "0 0 0 1px var(--bfc-theme-3)",
37
+ borderRadius: state.selectProps.menuIsOpen ? " var(--bf-radius-xs) var(--bf-radius-xs) 0 0" : "var(--bf-radius-xs)",
38
+ minHeight: "var(--bfs40)",
39
+ cursor: "text"
37
40
  }),
38
41
  indicatorSeparator: ()=>({
39
- display: 'none'
42
+ display: "none"
40
43
  }),
41
44
  indicatorsContainer: (provided)=>({
42
45
  ...provided,
43
- alignItems: 'flex-start',
44
- padding: '7.5px 0'
46
+ alignItems: "flex-start",
47
+ padding: "7.5px 0"
45
48
  }),
46
49
  clearIndicator: (provided)=>({
47
50
  ...provided,
48
- '&:hover': {
49
- color: 'var(--bfc-base-c-1)'
51
+ "&:hover": {
52
+ color: "var(--bfc-base-c-1)"
50
53
  },
51
- color: 'var(--bfc-base-c-2)',
52
- cursor: 'pointer',
53
- padding: 'var(--bfs4)',
54
- margin: '1px var(--bfs4) 0px 0px'
54
+ color: "var(--bfc-base-c-2)",
55
+ cursor: "pointer",
56
+ padding: "var(--bfs4)",
57
+ margin: "1px var(--bfs4) 0px 0px"
55
58
  }),
56
59
  dropdownIndicator: (provided, state)=>({
57
60
  ...provided,
58
- color: state.isDisabled ? 'var(--bfc-base-c-2)' : 'var(--bfc-theme-1)',
59
- cursor: 'pointer',
60
- padding: 'var(--bfs4)',
61
- marginRight: 'var(--bfs8)'
61
+ color: state.isDisabled ? "var(--bfc-base-c-2)" : "var(--bfc-theme-1)",
62
+ cursor: "pointer",
63
+ padding: "var(--bfs4)",
64
+ marginRight: "var(--bfs8)"
62
65
  }),
63
66
  input: (provided)=>({
64
67
  ...provided,
65
- color: 'var(--bfc-base-c-1)',
66
- fontFamily: 'inherit',
67
- fontSize: 'var(--bf-font-size-l)'
68
+ color: "var(--bfc-base-c-1)",
69
+ fontFamily: "inherit",
70
+ fontSize: "var(--bf-font-size-l)"
68
71
  }),
69
72
  menuPortal: (provided)=>({
70
73
  ...provided,
@@ -72,98 +75,98 @@ export const selectStyles = {
72
75
  }),
73
76
  menu: (provided)=>({
74
77
  ...provided,
75
- backgroundColor: 'var(--bfc-base-3)',
76
- boxShadow: 'none',
77
- borderRadius: 'none',
78
+ backgroundColor: "var(--bfc-base-3)",
79
+ boxShadow: "none",
80
+ borderRadius: "none",
78
81
  marginTop: 0,
79
82
  zIndex: 3
80
83
  }),
81
84
  menuList: (provided)=>({
82
85
  ...provided,
83
86
  padding: 0,
84
- boxShadow: '0 0 0 1px var(--bfc-theme-3)',
85
- borderRadius: '0 0 var(--bfl-border-radius) var(--bfl-border-radius)'
87
+ boxShadow: "0 0 0 1px var(--bfc-theme-3)",
88
+ borderRadius: "0 0 var(--bf-radius-xs) var(--bf-radius-xs)"
86
89
  }),
87
90
  placeholder: (provided)=>({
88
91
  ...provided,
89
- color: 'var(--bfc-base-c-2)',
90
- fontSize: 'var(--bf-font-size-l)'
92
+ color: "var(--bfc-base-c-2)",
93
+ fontSize: "var(--bf-font-size-l)"
91
94
  }),
92
95
  singleValue: (provided, state)=>({
93
96
  ...provided,
94
- color: state.selectProps.menuIsOpen ? 'var(--bfc-base-c-2)' : 'var(--bfc-base-c)',
95
- fontSize: 'var(--bf-font-size-l)'
97
+ color: state.selectProps.menuIsOpen ? "var(--bfc-base-c-2)" : "var(--bfc-base-c)",
98
+ fontSize: "var(--bf-font-size-l)"
96
99
  }),
97
100
  option: (provided, state)=>({
98
101
  ...provided,
99
- display: 'flex',
100
- justifyContent: !state.isMulti ? 'space-between' : 'normal',
101
- alignItems: 'baseline',
102
- padding: '7px 12px',
103
- backgroundColor: state.isDisabled ? 'var(--bfc-base-dimmed)' : state.isFocused ? 'var(--bfc-base-1)' : 'var(--bfc-base-3)',
104
- color: 'var(--bfc-base-c)',
105
- '& .bf-select-checkbox': {
106
- marginRight: 'var(--bfs8)',
107
- color: 'var(--bfc-theme)'
102
+ display: "flex",
103
+ justifyContent: !state.isMulti ? "space-between" : "normal",
104
+ alignItems: "baseline",
105
+ padding: "7px 12px",
106
+ backgroundColor: state.isDisabled ? "var(--bfc-base-dimmed)" : state.isFocused ? "var(--bfc-base-1)" : "var(--bfc-base-3)",
107
+ color: "var(--bfc-base-c)",
108
+ "& .bf-select-checkbox": {
109
+ marginRight: "var(--bfs8)",
110
+ color: "var(--bfc-theme)"
108
111
  },
109
- '& .bf-select-selected-icon': {
110
- color: 'var(--bfc-base-c-theme)',
111
- marginLeft: 'var(--bfs4)'
112
+ "& .bf-select-selected-icon": {
113
+ color: "var(--bfc-base-c-theme)",
114
+ marginLeft: "var(--bfs4)"
112
115
  },
113
- '&:hover': {
114
- backgroundColor: state.isDisabled ? 'var(--bfc-base-dimmed)' : 'var(--bfc-base-1)',
115
- cursor: state.isDisabled ? 'default' : 'pointer'
116
+ "&:hover": {
117
+ backgroundColor: state.isDisabled ? "var(--bfc-base-dimmed)" : "var(--bfc-base-1)",
118
+ cursor: state.isDisabled ? "default" : "pointer"
116
119
  },
117
- fontSize: 'var(--bf-font-size-l)',
120
+ fontSize: "var(--bf-font-size-l)",
118
121
  fontWeight: state.isSelected ? 600 : 400,
119
- wordBreak: 'break-word',
120
- whiteSpace: 'normal'
122
+ wordBreak: "break-word",
123
+ whiteSpace: "normal"
121
124
  }),
122
125
  multiValue: (provided, state)=>({
123
126
  ...provided,
124
- backgroundColor: state.isDisabled ? 'var(--bfc-base-c-inverted-2)' : 'var(--bfc-theme-c)',
125
- borderRadius: 'var(--bfl-border-radius)'
127
+ backgroundColor: state.isDisabled ? "var(--bfc-base-c-inverted-2)" : "var(--bfc-theme-c)",
128
+ borderRadius: "var(--bf-radius-xs)"
126
129
  }),
127
130
  multiValueLabel: (provided, state)=>({
128
131
  ...provided,
129
- color: state.isDisabled ? 'var(--bfc-base-1)' : 'var(--bfc-base-c-theme)',
130
- fontSize: 'var(--bf-font-size-m)'
132
+ color: state.isDisabled ? "var(--bfc-base-1)" : "var(--bfc-base-c-theme)",
133
+ fontSize: "var(--bf-font-size-m)"
131
134
  }),
132
135
  multiValueRemove: (provided, state)=>({
133
136
  ...provided,
134
- color: state.isDisabled ? 'var(--bfc-base-1)' : state.isFocused ? 'var(--bfc-theme-c-base-3)' : 'var(--bfc-theme-1)',
135
- borderRadius: 'unset',
136
- borderTopRightRadius: 'var(--bfl-border-radius)',
137
- borderBottomRightRadius: 'var(--bfl-border-radius)',
138
- paddingLeft: 'var(--bfs2)',
139
- paddingRight: 'var(--bfs2)',
140
- marginLeft: 'var(--bfs2)',
141
- background: state.isFocused && 'var(--bfc-theme-2)',
142
- '&:hover': {
143
- color: 'var(--bfc-theme-c-base-3)',
144
- cursor: 'pointer',
145
- background: 'var(--bfc-theme)'
137
+ color: state.isDisabled ? "var(--bfc-base-1)" : state.isFocused ? "var(--bfc-theme-c-base-3)" : "var(--bfc-theme-1)",
138
+ borderRadius: "unset",
139
+ borderTopRightRadius: "var(--bf-radius-xs)",
140
+ borderBottomRightRadius: "var(--bf-radius-xs)",
141
+ paddingLeft: "var(--bfs2)",
142
+ paddingRight: "var(--bfs2)",
143
+ marginLeft: "var(--bfs2)",
144
+ background: state.isFocused && "var(--bfc-theme-2)",
145
+ "&:hover": {
146
+ color: "var(--bfc-theme-c-base-3)",
147
+ cursor: "pointer",
148
+ background: "var(--bfc-theme)"
146
149
  },
147
- '&:active': {
148
- background: 'var(--bfc-theme-2)'
150
+ "&:active": {
151
+ background: "var(--bfc-theme-2)"
149
152
  },
150
153
  svg: {
151
- marginTop: '1px'
154
+ marginTop: "1px"
152
155
  }
153
156
  }),
154
157
  group: (provided)=>({
155
158
  ...provided,
156
- padding: 'var(--bfs6) 0',
157
- '&:first-of-type': {
158
- marginTop: 'var(--bfs4)'
159
+ padding: "var(--bfs6) 0",
160
+ "&:first-of-type": {
161
+ marginTop: "var(--bfs4)"
159
162
  }
160
163
  }),
161
164
  groupHeading: (provided)=>({
162
165
  ...provided,
163
- textTransform: 'capitalize',
164
- color: 'var(--bfc-base-c-2)',
165
- fontSize: 'var(--bf-font-size-s)',
166
- marginBottom: 'var(--bfs2)'
166
+ textTransform: "capitalize",
167
+ color: "var(--bfc-base-c-2)",
168
+ fontSize: "var(--bf-font-size-s)",
169
+ marginBottom: "var(--bfs2)"
167
170
  })
168
171
  };
169
172
  export const selectComponents = {
@@ -175,8 +178,8 @@ export const selectComponents = {
175
178
  LoadingIndicator
176
179
  };
177
180
  const selectStates = [
178
- 'default',
179
- 'alert'
181
+ "default",
182
+ "alert"
180
183
  ];
181
184
  /**
182
185
  * Select HOC
@@ -187,11 +190,11 @@ const selectStates = [
187
190
  const selectId = useUniqueId(inputId);
188
191
  return /*#__PURE__*/ _jsxs("div", {
189
192
  className: classNames(className, {
190
- 'bf-select-container': true
193
+ "bf-select-container": true
191
194
  }, {
192
- 'bf-select-disabled': isDisabled
195
+ "bf-select-disabled": isDisabled
193
196
  }, {
194
- 'bf-select-alert': !isDisabled && state === 'alert'
197
+ "bf-select-alert": !isDisabled && state === "alert"
195
198
  }),
196
199
  style: style,
197
200
  "data-testid": "bf-select-container",
@@ -235,12 +238,12 @@ const selectStates = [
235
238
  /**
236
239
  * Select component - dropdown list
237
240
  */ const SelectComponent = SelectHOC(ReactSelect);
238
- SelectComponent.displayName = 'Select';
241
+ SelectComponent.displayName = "Select";
239
242
  const AsyncSelect = SelectHOC(AsyncReactSelect);
240
- AsyncSelect.displayName = 'AsyncSelect';
243
+ AsyncSelect.displayName = "AsyncSelect";
241
244
  const CreatableSelect = SelectHOC(CreatableReactSelect);
242
- CreatableSelect.displayName = 'CreatableSelect';
245
+ CreatableSelect.displayName = "CreatableSelect";
243
246
  const AsyncCreatableSelect = SelectHOC(AsyncCreatableReactSelect);
244
- AsyncCreatableSelect.displayName = 'AsyncCreatableSelect';
247
+ AsyncCreatableSelect.displayName = "AsyncCreatableSelect";
245
248
  export { AsyncSelect, CreatableSelect, AsyncCreatableSelect };
246
249
  export default SelectComponent;
@@ -1,4 +1,4 @@
1
- import { IconDefinition, IconName, IconPathData, IconPrefix } from '@fortawesome/fontawesome-svg-core';
1
+ import { IconDefinition, IconName, IconPathData, IconPrefix } from "@fortawesome/fontawesome-svg-core";
2
2
  declare const prefix: IconPrefix;
3
3
  declare const iconName: IconName;
4
4
  declare const width = 18;
@@ -7,4 +7,4 @@ declare const aliases: never[];
7
7
  declare const unicode = "";
8
8
  declare const svgPathData: IconPathData;
9
9
  declare const definition: IconDefinition;
10
- export { definition as default, definition as faIndeterminate, definition, prefix, iconName, width, height, aliases as ligatures, unicode, svgPathData, aliases };
10
+ export { definition as default, definition as faIndeterminate, definition, prefix, iconName, width, height, aliases as ligatures, unicode, svgPathData, aliases, };
@@ -1,12 +1,12 @@
1
- const prefix = 'fac';
2
- const iconName = 'bf-spinner';
1
+ const prefix = "fac";
2
+ const iconName = "bf-spinner";
3
3
  const width = 18;
4
4
  const height = 18;
5
5
  const aliases = [];
6
- const unicode = '';
6
+ const unicode = "";
7
7
  const svgPathData = [
8
- 'M9 2C5.13401 2 2 5.13401 2 9C2 12.866 5.13401 16 9 16C12.866 16 16 12.866 16 9C16 5.13401 12.866 2 9 2ZM0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9C18 13.9706 13.9706 18 9 18C4.02944 18 0 13.9706 0 9Z',
9
- 'M8 1C8 0.447715 8.44772 0 9 0C13.9706 0 18 4.02944 18 9C18 9.55229 17.5523 10 17 10C16.4477 10 16 9.55229 16 9C16 5.13401 12.866 2 9 2C8.44772 2 8 1.55228 8 1Z'
8
+ "M9 2C5.13401 2 2 5.13401 2 9C2 12.866 5.13401 16 9 16C12.866 16 16 12.866 16 9C16 5.13401 12.866 2 9 2ZM0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9C18 13.9706 13.9706 18 9 18C4.02944 18 0 13.9706 0 9Z",
9
+ "M8 1C8 0.447715 8.44772 0 9 0C13.9706 0 18 4.02944 18 9C18 9.55229 17.5523 10 17 10C16.4477 10 16 9.55229 16 9C16 5.13401 12.866 2 9 2C8.44772 2 8 1.55228 8 1Z"
10
10
  ];
11
11
  const definition = {
12
12
  prefix,
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { default, AsyncSelect, CreatableSelect, AsyncCreatableSelect, selectStyles, selectComponents } from './Select';
1
+ export { default, default as Select, AsyncSelect, CreatableSelect, AsyncCreatableSelect, selectStyles, selectComponents, } from "./Select.js";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { default, AsyncSelect, CreatableSelect, AsyncCreatableSelect, selectStyles, selectComponents } from './Select';
1
+ export { default, default as Select, AsyncSelect, CreatableSelect, AsyncCreatableSelect, selectStyles, selectComponents } from "./Select.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon } from '@intility/bifrost-react';
3
- import { components } from 'react-select';
4
- import { faXmark } from '@fortawesome/free-solid-svg-icons/faXmark';
2
+ import { Icon } from "@intility/bifrost-react";
3
+ import { components } from "react-select";
4
+ import { faXmark } from "@fortawesome/free-solid-svg-icons/faXmark";
5
5
  const ClearIndicator = (props)=>{
6
6
  return /*#__PURE__*/ _jsx(components.ClearIndicator, {
7
7
  ...props,
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { components } from 'react-select';
2
+ import { components } from "react-select";
3
3
  const CustomInput = (props)=>{
4
4
  const { required, value } = props.selectProps;
5
5
  const updatedProps = {
6
6
  ...props,
7
- autoComplete: 'noAutocomplete'
7
+ autoComplete: "noAutocomplete"
8
8
  };
9
9
  return /*#__PURE__*/ _jsxs(_Fragment, {
10
10
  children: [
@@ -15,12 +15,12 @@ const CustomInput = (props)=>{
15
15
  style: {
16
16
  opacity: 0,
17
17
  height: 0,
18
- position: 'absolute',
19
- pointerEvents: 'none'
18
+ position: "absolute",
19
+ pointerEvents: "none"
20
20
  },
21
21
  onChange: (e)=>e.preventDefault(),
22
22
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
23
- value: value?.label ?? '',
23
+ value: value?.label ?? "",
24
24
  tabIndex: -1,
25
25
  autoComplete: "noAutocomplete",
26
26
  required: required,
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { components } from 'react-select';
2
+ import { components } from "react-select";
3
3
  const CustomMenuList = (props)=>{
4
4
  return /*#__PURE__*/ _jsx(components.MenuList, {
5
5
  "data-testid": "bf-select-menulist",
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { components } from 'react-select';
3
- import { faSquare } from '@fortawesome/free-regular-svg-icons/faSquare';
4
- import { faCheckSquare } from '@fortawesome/free-solid-svg-icons/faCheckSquare';
5
- import { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck';
6
- import { Icon } from '@intility/bifrost-react';
2
+ import { components } from "react-select";
3
+ import { faSquare } from "@fortawesome/free-regular-svg-icons/faSquare";
4
+ import { faCheckSquare } from "@fortawesome/free-solid-svg-icons/faCheckSquare";
5
+ import { faCheck } from "@fortawesome/free-solid-svg-icons/faCheck";
6
+ import { Icon } from "@intility/bifrost-react";
7
7
  const CustomOption = (props)=>{
8
8
  return /*#__PURE__*/ _jsxs(components.Option, {
9
9
  ...props,
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { components } from 'react-select';
3
- import { faCaretDown } from '@fortawesome/free-solid-svg-icons/faCaretDown';
4
- import { Icon } from '@intility/bifrost-react';
2
+ import { components } from "react-select";
3
+ import { faCaretDown } from "@fortawesome/free-solid-svg-icons/faCaretDown";
4
+ import { Icon } from "@intility/bifrost-react";
5
5
  const DropdownIndicator = (props)=>{
6
6
  return /*#__PURE__*/ _jsx(components.DropdownIndicator, {
7
7
  ...props,
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon } from '@intility/bifrost-react';
3
- import bfSpinner from '../assets/bfSpinner';
2
+ import { Icon } from "@intility/bifrost-react";
3
+ import bfSpinner from "../assets/bfSpinner.js";
4
4
  export default function LoadingIndicator() {
5
5
  return /*#__PURE__*/ _jsx(Icon, {
6
6
  icon: bfSpinner,
@@ -1,6 +1,6 @@
1
- export { default as ClearIndicator } from './ClearIndicator.internal';
2
- export { default as CustomInput } from './CustomInput.internal';
3
- export { default as LoadingIndicator } from './LoadingIndicator.internal';
4
- export { default as CustomMenuList } from './CustomMenuList.internal';
5
- export { default as DropdownIndicator } from './DropdownIndicator.internal';
6
- export { default as CustomOption } from './CustomOption.internal';
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";
@@ -1,6 +1,6 @@
1
- export { default as ClearIndicator } from './ClearIndicator.internal';
2
- export { default as CustomInput } from './CustomInput.internal';
3
- export { default as LoadingIndicator } from './LoadingIndicator.internal';
4
- export { default as CustomMenuList } from './CustomMenuList.internal';
5
- export { default as DropdownIndicator } from './DropdownIndicator.internal';
6
- export { default as CustomOption } from './CustomOption.internal';
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intility/bifrost-react-select",
3
- "version": "4.0.0-alpha.8",
3
+ "version": "4.0.0-beta.2",
4
4
  "description": "React select component for Intility's design system, Bifrost.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -40,7 +40,7 @@
40
40
  "@fortawesome/fontawesome-svg-core": "^6.4.2",
41
41
  "@fortawesome/free-solid-svg-icons": "^6.4.2",
42
42
  "@fortawesome/react-fontawesome": "^0.2.0",
43
- "@intility/bifrost-react": "4.0.0-alpha.8",
43
+ "@intility/bifrost-react": "4.0.0-beta.1",
44
44
  "classnames": "^2.2.6",
45
45
  "react-select": "^5.7.7"
46
46
  }