@equinor/fusion-react-context-selector 0.1.3 → 0.1.5

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/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  [![Published on npm](https://img.shields.io/npm/v/@equinor/fusion-react-context-selector.svg)](https://www.npmjs.com/package/@equinor/fusion-react-context-selector)
5
5
 
6
- [Storybook](https://equinor.github.io/fusion-react-components/?path=/docs/data-searchabledropdown)
6
+ [Storybook](https://equinor.github.io/fusion-react-components/?path=/docs/data-contextselector)
7
7
 
8
8
  [Fusion Web Component](https://github.com/equinor/fusion-web-components/tree/main/packages/searchable-dropdown)
9
9
 
@@ -17,6 +17,6 @@ npm install @equinor/fusion-react-context-selector
17
17
 
18
18
  | Name | Description
19
19
  | -------- | -------------
20
- | `select() => SearchableDropdownResult` | Returns `SearchableDropdownResult` of selected items.
20
+ | `onSelect() => ContextResult` | Returns `ContextResult` of selected items in event details.
21
21
 
22
22
  <!--prettier-ignore-end-->
@@ -1,8 +1,10 @@
1
- import { DropdownProps, SearchableDropdownResolver } from '@equinor/fusion-react-searchable-dropdown';
1
+ import { DropdownProps, SearchableDropdownResolver, SearchableDropdownResult, SearchableDropdownResultItem } from '@equinor/fusion-react-searchable-dropdown';
2
2
  type ElementResolver = {
3
3
  resolver?: SearchableDropdownResolver;
4
4
  };
5
- export { SearchableDropdownResult as ContextResult, SearchableDropdownResultItem as ContextResultItem, } from '@equinor/fusion-react-searchable-dropdown';
5
+ export type ContextResult = SearchableDropdownResult;
6
+ export type ContextResultItem = SearchableDropdownResultItem;
7
+ export type ContextResolver = SearchableDropdownResolver;
6
8
  export type ContextSelectorProps = DropdownProps & ElementResolver;
7
9
  export declare const ContextSelector: ({ children, ...props }: React.PropsWithChildren<ContextSelectorProps>) => JSX.Element;
8
10
  export default ContextSelector;
@@ -1 +1 @@
1
- {"version":3,"file":"ContextSelector.d.ts","sourceRoot":"","sources":["../src/ContextSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,aAAa,EACb,0BAA0B,EAC3B,MAAM,2CAA2C,CAAC;AAEnD,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,0BAA0B,CAAC;CACvC,CAAC;AAEF,OAAO,EACL,wBAAwB,IAAI,aAAa,EACzC,4BAA4B,IAAI,iBAAiB,GAClD,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,eAAe,CAAC;AAEnE,eAAO,MAAM,eAAe,2BAA4B,MAAM,iBAAiB,CAAC,oBAAoB,CAAC,KAAG,WAOvG,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"ContextSelector.d.ts","sourceRoot":"","sources":["../src/ContextSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,aAAa,EACb,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,2CAA2C,CAAC;AAEnD,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,0BAA0B,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,wBAAwB,CAAC;AACrD,MAAM,MAAM,iBAAiB,GAAG,4BAA4B,CAAC;AAC7D,MAAM,MAAM,eAAe,GAAG,0BAA0B,CAAC;AACzD,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,eAAe,CAAC;AAEnE,eAAO,MAAM,eAAe,2BAA4B,MAAM,iBAAiB,CAAC,oBAAoB,CAAC,KAAG,WAOvG,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContextSelector.js","sourceRoot":"","sources":["../src/ContextSelector.tsx"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,sBAAsB,GAGvB,MAAM,2CAA2C,CAAC;AAanD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAiD,EAAe,EAAE;IACpH,MAAM,WAAW,GAAG,sBAAsB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3D,OAAO,CACL,KAAC,gBAAgB,IAAC,GAAG,EAAE,WAAW,YAChC,KAAC,QAAQ,OAAK,KAAK,YAAG,QAAQ,GAAY,GACzB,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"ContextSelector.js","sourceRoot":"","sources":["../src/ContextSelector.tsx"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,sBAAsB,GAKvB,MAAM,2CAA2C,CAAC;AAWnD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAiD,EAAe,EAAE;IACpH,MAAM,WAAW,GAAG,sBAAsB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3D,OAAO,CACL,KAAC,gBAAgB,IAAC,GAAG,EAAE,WAAW,YAChC,KAAC,QAAQ,OAAK,KAAK,YAAG,QAAQ,GAAY,GACzB,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-react-context-selector",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "React component for context selector",
5
5
  "keywords": [
6
6
  "contextselector",
@@ -37,8 +37,8 @@
37
37
  "url": "https://github.com/equinor/fusion-react-components/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@equinor/fusion-react-searchable-dropdown": "^0.1.4",
40
+ "@equinor/fusion-react-searchable-dropdown": "^0.1.5",
41
41
  "@equinor/fusion-react-utils": "^2.0.4"
42
42
  },
43
- "gitHead": "931c07293c9fc4c00b338da377a76e154a08f199"
43
+ "gitHead": "42cefe9152b45b0d68b71b5e3846b57b83291894"
44
44
  }