@equinor/fusion-components
Advanced tools
Comparing version 0.0.48 to 0.0.49
@@ -1,3 +0,3 @@ | ||
import * as React from "react"; | ||
import { MenuItemType, MenuItemComponentProps } from "./MenuItem"; | ||
import * as React from 'react'; | ||
import { MenuItemType, MenuItemComponentProps } from './MenuItem'; | ||
import { Elevation } from '@equinor/fusion-components'; | ||
@@ -19,3 +19,3 @@ export declare type MenuSection<TItem extends MenuItemType> = { | ||
export { MenuItemType }; | ||
declare function Menu<TItem extends MenuItemType = MenuItemType>({ sections, elevation, onClick, itemComponent: component, asideComponent, keyboardNavigationRef }: MenuProps<TItem>): JSX.Element; | ||
declare function Menu<TItem extends MenuItemType = MenuItemType>({ sections, elevation, onClick, itemComponent: component, asideComponent, keyboardNavigationRef, }: MenuProps<TItem>): JSX.Element; | ||
declare namespace Menu { | ||
@@ -22,0 +22,0 @@ var defaultProps: { |
@@ -1,2 +0,2 @@ | ||
import { FC } from 'react'; | ||
/// <reference types="react" /> | ||
export declare type SearchableDropdownOption = { | ||
@@ -8,8 +8,17 @@ title: string; | ||
}; | ||
export declare type SearchableDropdownSection = { | ||
key: string; | ||
title?: string; | ||
items: SearchableDropdownOption[]; | ||
}; | ||
declare type SearchableDropdownProps = { | ||
label?: string; | ||
options: SearchableDropdownOption[]; | ||
options?: SearchableDropdownOption[]; | ||
sections?: SearchableDropdownSection[]; | ||
itemComponent?: any; | ||
asideComponent?: any; | ||
onSelect?: (item: SearchableDropdownOption) => void; | ||
onSearchAsync?: (query: string) => void; | ||
}; | ||
declare const SearchableDropdown: FC<SearchableDropdownProps>; | ||
declare const SearchableDropdown: ({ options, sections, label, onSelect, onSearchAsync, itemComponent, asideComponent, }: SearchableDropdownProps) => JSX.Element; | ||
export default SearchableDropdown; |
@@ -9,2 +9,3 @@ import * as React from 'react'; | ||
label?: string; | ||
asideComponent?: any; | ||
helperText?: string; | ||
@@ -11,0 +12,0 @@ onChange: (newValue: string) => void; |
@@ -19,3 +19,3 @@ export { default as FusionHeader } from './components/core/Header'; | ||
export { default as Dropdown, useDropdownController, DropdownController, } from './components/general/Dropdown'; | ||
export { default as SearchableDropdownWrapper, SearchableDropdownOption, } from './components/general/SearchableDropdown'; | ||
export { default as SearchableDropdownWrapper, SearchableDropdownOption, SearchableDropdownSection, } from './components/general/SearchableDropdown'; | ||
export { ModalSideSheet } from './components/general/SideSheet'; | ||
@@ -29,2 +29,3 @@ export { default as Scrim } from './components/general/Scrim'; | ||
export { default as PersonPhoto, PhotoSize } from './components/people/PersonPhoto'; | ||
export { default as PersonCard } from './components/people/PersonCard'; | ||
export { default as Spinner } from './components/feedback/Spinner'; | ||
@@ -31,0 +32,0 @@ export { default as Banner } from './components/feedback/Banner'; |
{ | ||
"name": "@equinor/fusion-components", | ||
"version": "0.0.48", | ||
"version": "0.0.49", | ||
"description": "Common react components used by fusion core and fusion apps", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
324720
178
1779
32