@intility/bifrost-react-select 4.0.0-beta.0 → 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,24 @@
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
+
3
22
  ## 4.0.0-beta.0
4
23
 
5
24
  ### Major Changes
package/dist/Select.js CHANGED
@@ -6,8 +6,11 @@ import AsyncReactSelect from "react-select/async";
6
6
  import CreatableReactSelect from "react-select/creatable";
7
7
  import AsyncCreatableReactSelect from "react-select/async-creatable";
8
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";
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)=>({
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,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Icon } from "@intility/bifrost-react";
3
- import bfSpinner from "../assets/bfSpinner";
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-beta.0",
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-beta.0",
43
+ "@intility/bifrost-react": "4.0.0-beta.1",
44
44
  "classnames": "^2.2.6",
45
45
  "react-select": "^5.7.7"
46
46
  }
@@ -1,6 +1,7 @@
1
- import Select from "./Select";
2
1
  import { render } from "@testing-library/react";
3
2
 
3
+ import Select from "./Select.js";
4
+
4
5
  let getByTestId, getByText, queryByText, element, customInput, rerender;
5
6
 
6
7
  beforeEach(() => {
package/src/Select.tsx CHANGED
@@ -18,12 +18,10 @@ import AsyncCreatableReactSelect, {
18
18
  AsyncCreatableProps as AsyncCreatableSelectProps,
19
19
  } from "react-select/async-creatable";
20
20
  import classNames from "classnames";
21
- import {
22
- Description,
23
- Feedback,
24
- Label,
25
- useUniqueId,
26
- } from "@intility/bifrost-react";
21
+ import Description from "@intility/bifrost-react/Description";
22
+ import Feedback from "@intility/bifrost-react/Feedback";
23
+ import Label from "@intility/bifrost-react/Label";
24
+ import useUniqueId from "@intility/bifrost-react/hooks/useUniqueId";
27
25
 
28
26
  import {
29
27
  DropdownIndicator,
@@ -32,7 +30,7 @@ import {
32
30
  CustomMenuList,
33
31
  CustomOption,
34
32
  LoadingIndicator,
35
- } from "./overrides";
33
+ } from "./overrides/index.js";
36
34
 
37
35
  const ReactSelect =
38
36
  (
package/src/index.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  export {
2
2
  default,
3
+ default as Select,
3
4
  AsyncSelect,
4
5
  CreatableSelect,
5
6
  AsyncCreatableSelect,
6
7
  selectStyles,
7
8
  selectComponents,
8
- } from "./Select";
9
+ } from "./Select.js";
@@ -1,6 +1,6 @@
1
1
  import { Icon } from "@intility/bifrost-react";
2
2
 
3
- import bfSpinner from "../assets/bfSpinner";
3
+ import bfSpinner from "../assets/bfSpinner.js";
4
4
 
5
5
  export default function LoadingIndicator() {
6
6
  return (
@@ -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/tsconfig.json CHANGED
@@ -2,12 +2,12 @@
2
2
  "extends": "../../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
+ "rootDir": "src",
5
6
  "declarationMap": false,
6
7
  "isolatedModules": false,
7
8
  "noEmit": false,
8
9
  "allowJs": false,
9
10
  "sourceMap": false,
10
- "moduleResolution": "Bundler",
11
11
  "emitDeclarationOnly": true,
12
12
  "outDir": "dist"
13
13
  },