@equinor/fusion-react-searchable-dropdown 0.1.0 → 0.1.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.
@@ -1,9 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { SearchableDropdownElement } from '@equinor/fusion-wc-searchable-dropdown';
3
2
  import { ComponentProps } from '@equinor/fusion-react-utils';
3
+ import { SearchableDropdownElement } from '@equinor/fusion-wc-searchable-dropdown';
4
+ export { SearchableDropdownResult, SearchableDropdownResultItem, SearchableDropdownResolver, } from '@equinor/fusion-wc-searchable-dropdown';
4
5
  declare type ElementAttributes = Partial<Pick<SearchableDropdownElement, 'label' | 'placeholder' | 'variant' | 'meta' | 'selected' | 'initialText' | 'trailingIcon'>>;
5
6
  declare type ElementEvents = {
6
- onAction?: (e: Event) => void;
7
+ onSelect?: (e: Event) => void;
7
8
  };
8
9
  declare type ElementProps = ElementAttributes & ElementEvents;
9
10
  export declare type DropdownProps = ComponentProps<SearchableDropdownElement, ElementProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../src/Dropdown.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AAE9E,aAAK,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,aAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;CAC/B,CAAC;AAEF,aAAK,YAAY,GAAG,iBAAiB,GAAG,aAAa,CAAC;AAEtD,oBAAY,aAAa,GAAG,cAAc,CAAC,yBAAyB,EAAE,YAAY,CAAC,CAAC;AAEpF,eAAO,MAAM,QAAQ,mVAIpB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
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,aAAK,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,aAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;CAC/B,CAAC;AAEF,aAAK,YAAY,GAAG,iBAAiB,GAAG,aAAa,CAAC;AAEtD,oBAAY,aAAa,GAAG,cAAc,CAAC,yBAAyB,EAAE,YAAY,CAAC,CAAC;AAEpF,eAAO,MAAM,QAAQ,mVAIpB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
package/dist/Dropdown.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable react/no-multi-comp */
2
- import { SearchableDropdownElement } from '@equinor/fusion-wc-searchable-dropdown';
3
2
  import { createComponent } from '@equinor/fusion-react-utils';
4
- export const Dropdown = createComponent(SearchableDropdownElement, 'fwc-searchable-dropdown', { events: { onAction: 'action' } });
3
+ import { SearchableDropdownElement } from '@equinor/fusion-wc-searchable-dropdown';
4
+ export const Dropdown = createComponent(SearchableDropdownElement, 'fwc-searchable-dropdown', { events: { onSelect: 'select' } });
5
5
  export default Dropdown;
6
6
  //# sourceMappingURL=Dropdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../src/Dropdown.tsx"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAkB,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAiB9E,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"}
1
+ {"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../src/Dropdown.tsx"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,OAAO,EAAkB,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAsBnF,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/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export * from './Dropdown';
2
2
  export * from './DropdownProvider';
3
- export * from './SearchableDropdown';
4
3
  export * from './useDropdownProviderRef';
5
4
  export { SearchableDropdownElement as HTMLSearchableDropdownCustomElement, SearchableDropdownProviderElement as HTMLSearchableDropdownProviderCustomElement, } from '@equinor/fusion-wc-searchable-dropdown';
6
- export { SearchableDropdown as default } from './SearchableDropdown';
5
+ export { Dropdown as default } from './Dropdown';
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EACL,yBAAyB,IAAI,mCAAmC,EAChE,iCAAiC,IAAI,2CAA2C,GACjF,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EACL,yBAAyB,IAAI,mCAAmC,EAChE,iCAAiC,IAAI,2CAA2C,GACjF,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  export * from './Dropdown';
2
2
  export * from './DropdownProvider';
3
- export * from './SearchableDropdown';
4
3
  export * from './useDropdownProviderRef';
5
4
  export { SearchableDropdownElement as HTMLSearchableDropdownCustomElement, SearchableDropdownProviderElement as HTMLSearchableDropdownProviderCustomElement, } from '@equinor/fusion-wc-searchable-dropdown';
6
- export { SearchableDropdown as default } from './SearchableDropdown';
5
+ export { Dropdown as default } from './Dropdown';
7
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EACL,yBAAyB,IAAI,mCAAmC,EAChE,iCAAiC,IAAI,2CAA2C,GACjF,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EACL,yBAAyB,IAAI,mCAAmC,EAChE,iCAAiC,IAAI,2CAA2C,GACjF,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-react-searchable-dropdown",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
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.3",
40
- "@equinor/fusion-wc-searchable-dropdown": "^0.2.0"
40
+ "@equinor/fusion-wc-searchable-dropdown": "^0.3.1"
41
41
  },
42
- "gitHead": "075999bf0259f4edc4319ca85403da529b28fa2b"
42
+ "gitHead": "d6b548443eb5babf721f6ad87ab05c3dd48142e8"
43
43
  }