@equinor/fusion-react-searchable-dropdown 0.1.2 → 0.1.4
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
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { ComponentProps } from '@equinor/fusion-react-utils';
|
|
3
3
|
import { SearchableDropdownElement } from '@equinor/fusion-wc-searchable-dropdown';
|
|
4
4
|
export { SearchableDropdownResult, SearchableDropdownResultItem, SearchableDropdownResolver, } from '@equinor/fusion-wc-searchable-dropdown';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type ElementAttributes = Partial<Pick<SearchableDropdownElement, 'label' | 'placeholder' | 'variant' | 'meta' | 'selected' | 'initialText' | 'trailingIcon'>>;
|
|
6
|
+
type ElementEvents = {
|
|
7
7
|
onSelect?: (e: Event) => void;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
export
|
|
9
|
+
type ElementProps = ElementAttributes & ElementEvents;
|
|
10
|
+
export type DropdownProps = ComponentProps<SearchableDropdownElement, ElementProps>;
|
|
11
11
|
export declare const Dropdown: import("react").ForwardRefExoticComponent<import("@equinor/fusion-react-utils").ComponentAttributes<SearchableDropdownElement> & Partial<Pick<SearchableDropdownElement, "label" | "placeholder" | "variant" | "meta" | "selected" | "initialText" | "trailingIcon">> & ElementEvents & import("react").RefAttributes<SearchableDropdownElement>>;
|
|
12
12
|
export default Dropdown;
|
|
13
13
|
//# sourceMappingURL=Dropdown.d.ts.map
|
package/dist/Dropdown.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../src/Dropdown.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AAE9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,wCAAwC,CAAC;AAEhD,
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../src/Dropdown.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AAE9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,wCAAwC,CAAC;AAEhD,KAAK,iBAAiB,GAAG,OAAO,CAC9B,IAAI,CACF,yBAAyB,EACzB,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,aAAa,GAAG,cAAc,CAC3F,CACF,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;CAC/B,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,mVAIpB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ComponentProps } from '@equinor/fusion-react-utils';
|
|
2
2
|
import { SearchableDropdownElement, SearchableDropdownResolver } from '@equinor/fusion-wc-searchable-dropdown';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type ElementAttributes = Partial<Pick<SearchableDropdownElement, 'label' | 'placeholder' | 'variant' | 'meta' | 'selected' | 'initialText' | 'trailingIcon'>>;
|
|
4
|
+
type ElementEvents = {
|
|
5
5
|
onAction?: (e: Event) => void;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type ElementResolver = {
|
|
8
8
|
resolver?: SearchableDropdownResolver;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
export
|
|
10
|
+
type ElementProps = ElementAttributes & ElementEvents & ElementResolver;
|
|
11
|
+
export type SearchableDropdownProps = ComponentProps<SearchableDropdownElement, ElementProps>;
|
|
12
12
|
export declare const SearchableDropdown: ({ children, ...props }: React.PropsWithChildren<ElementProps>) => JSX.Element;
|
|
13
13
|
export default SearchableDropdown;
|
|
14
14
|
//# sourceMappingURL=SearchableDropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchableDropdown.d.ts","sourceRoot":"","sources":["../src/SearchableDropdown.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAM/G,
|
|
1
|
+
{"version":3,"file":"SearchableDropdown.d.ts","sourceRoot":"","sources":["../src/SearchableDropdown.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAM/G,KAAK,iBAAiB,GAAG,OAAO,CAC9B,IAAI,CACF,yBAAyB,EACzB,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,aAAa,GAAG,cAAc,CAC3F,CACF,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;CAC/B,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,0BAA0B,CAAC;CACvC,CAAC;AAEF,KAAK,YAAY,GAAG,iBAAiB,GAAG,aAAa,GAAG,eAAe,CAAC;AAExE,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,yBAAyB,EAAE,YAAY,CAAC,CAAC;AAE9F,eAAO,MAAM,kBAAkB,2BAA4B,MAAM,iBAAiB,CAAC,YAAY,CAAC,KAAG,WAOlG,CAAC;AAEF,eAAe,kBAAkB,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.4",
|
|
4
4
|
"description": "component for displaying searchable dropdown",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"searchable dropdown",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"url": "https://github.com/equinor/fusion-react-components/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@equinor/fusion-react-utils": "^2.0.
|
|
40
|
-
"@equinor/fusion-wc-searchable-dropdown": "^0.3.
|
|
39
|
+
"@equinor/fusion-react-utils": "^2.0.4",
|
|
40
|
+
"@equinor/fusion-wc-searchable-dropdown": "^0.3.2"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "931c07293c9fc4c00b338da377a76e154a08f199"
|
|
43
43
|
}
|