@equinor/fusion-react-searchable-dropdown 0.1.6 → 0.1.8
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/dist/Dropdown.d.ts +4 -3
- package/dist/Dropdown.d.ts.map +1 -1
- package/dist/Dropdown.js +1 -2
- package/dist/Dropdown.js.map +1 -1
- package/package.json +3 -3
package/dist/Dropdown.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { BaseSyntheticEvent } from 'react';
|
|
2
2
|
import { ComponentProps } from '@equinor/fusion-react-utils';
|
|
3
|
-
import { SearchableDropdownElement } from '@equinor/fusion-wc-searchable-dropdown';
|
|
3
|
+
import { SearchableDropdownElement, SearchableDropdownSelectEvent as HTMLSearchableDropdownSelectEvent } from '@equinor/fusion-wc-searchable-dropdown';
|
|
4
4
|
export { SearchableDropdownResult, SearchableDropdownResultItem, SearchableDropdownResolver, } from '@equinor/fusion-wc-searchable-dropdown';
|
|
5
5
|
type ElementAttributes = Partial<Pick<SearchableDropdownElement, 'id' | 'label' | 'placeholder' | 'variant' | 'meta' | 'value' | 'initialText' | 'leadingIcon' | 'dropdownHeight' | 'multiple' | 'graphic'>>;
|
|
6
|
+
export type SearchableDropdownSelectEvent = BaseSyntheticEvent<HTMLSearchableDropdownSelectEvent>;
|
|
6
7
|
type ElementEvents = {
|
|
7
|
-
onSelect?: (e:
|
|
8
|
+
onSelect?: (e: SearchableDropdownSelectEvent) => void;
|
|
8
9
|
};
|
|
9
10
|
type ElementProps = ElementAttributes & ElementEvents;
|
|
10
11
|
export type DropdownProps = ComponentProps<SearchableDropdownElement, ElementProps>;
|
package/dist/Dropdown.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../src/Dropdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../src/Dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AAE9E,OAAO,EACL,yBAAyB,EACzB,6BAA6B,IAAI,iCAAiC,EACnE,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,wCAAwC,CAAC;AAEhD,KAAK,iBAAiB,GAAG,OAAO,CAC9B,IAAI,CACF,yBAAyB,EACvB,IAAI,GACJ,OAAO,GACP,aAAa,GACb,SAAS,GACT,MAAM,GACN,OAAO,GACP,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,UAAU,GACV,SAAS,CACZ,CACF,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,kBAAkB,CAAC,iCAAiC,CAAC,CAAC;AAElG,KAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,6BAA6B,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,KAAK,YAAY,GAAG,iBAAiB,GAAG,aAAa,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,yBAAyB,EAAE,YAAY,CAAC,CAAC;AAEpF,eAAO,MAAM,QAAQ,kYAIpB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/dist/Dropdown.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/* eslint-disable react/no-multi-comp */
|
|
2
1
|
import { createComponent } from '@equinor/fusion-react-utils';
|
|
3
|
-
import { SearchableDropdownElement } from '@equinor/fusion-wc-searchable-dropdown';
|
|
2
|
+
import { SearchableDropdownElement, } from '@equinor/fusion-wc-searchable-dropdown';
|
|
4
3
|
export const Dropdown = createComponent(SearchableDropdownElement, 'fwc-searchable-dropdown', { events: { onSelect: 'select' } });
|
|
5
4
|
export default Dropdown;
|
|
6
5
|
//# sourceMappingURL=Dropdown.js.map
|
package/dist/Dropdown.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../src/Dropdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../src/Dropdown.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAkB,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9E,OAAO,EACL,yBAAyB,GAE1B,MAAM,wCAAwC,CAAC;AAmChD,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CACrC,yBAAyB,EACzB,yBAAyB,EACzB,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,CACnC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-react-searchable-dropdown",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "component for displaying searchable dropdown",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"searchable dropdown",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@equinor/fusion-react-utils": "^2.0.4",
|
|
40
|
-
"@equinor/fusion-wc-searchable-dropdown": "^2.0
|
|
40
|
+
"@equinor/fusion-wc-searchable-dropdown": "^2.2.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "c1b49666f71c665f858c76ac434e01a8010559d6"
|
|
43
43
|
}
|