@blockscout/ui-toolkit 2.2.1 → 2.3.0

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.
@@ -11,4 +11,13 @@ export interface AccordionItemContentProps extends Accordion.ItemContentProps {
11
11
  export declare const AccordionItemContent: React.ForwardRefExoticComponent<AccordionItemContentProps & React.RefAttributes<HTMLDivElement>>;
12
12
  export declare const AccordionRoot: (props: Accordion.RootProps) => React.JSX.Element;
13
13
  export declare const AccordionItem: React.ForwardRefExoticComponent<Accordion.ItemProps & React.RefAttributes<HTMLDivElement>>;
14
+ export declare function useAccordion(items: Array<{
15
+ id: string;
16
+ }>): {
17
+ value: string[];
18
+ onValueChange: ({ value }: {
19
+ value: Array<string>;
20
+ }) => void;
21
+ scrollToItemFromUrl: () => void;
22
+ };
14
23
  export {};
@@ -1,5 +1,6 @@
1
1
  import { ListCollection, Select as ChakraSelect } from '@chakra-ui/react';
2
2
  import * as React from 'react';
3
+ export type ViewMode = 'default' | 'compact';
3
4
  export interface SelectOption<Value extends string = string> {
4
5
  label: string;
5
6
  renderLabel?: () => React.ReactNode;
@@ -28,6 +29,7 @@ interface SelectValueTextProps extends Omit<ChakraSelect.ValueTextProps, 'childr
28
29
  required?: boolean;
29
30
  invalid?: boolean;
30
31
  errorText?: string;
32
+ mode?: ViewMode;
31
33
  }
32
34
  export declare const SelectValueText: React.ForwardRefExoticComponent<SelectValueTextProps & React.RefAttributes<HTMLSpanElement>>;
33
35
  export interface SelectRootProps extends ChakraSelect.RootProps {
@@ -46,6 +48,7 @@ export interface SelectProps extends SelectRootProps {
46
48
  loading?: boolean;
47
49
  errorText?: string;
48
50
  contentProps?: SelectContentProps;
51
+ mode?: ViewMode;
49
52
  }
50
53
  export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
51
54
  export interface SelectAsyncProps extends Omit<SelectProps, 'collection'> {
@@ -54,6 +57,7 @@ export interface SelectAsyncProps extends Omit<SelectProps, 'collection'> {
54
57
  loading?: boolean;
55
58
  loadOptions: (input: string, currentValue: Array<string>) => Promise<ListCollection<SelectOption>>;
56
59
  extraControls?: React.ReactNode;
60
+ mode?: ViewMode;
57
61
  }
58
62
  export declare const SelectAsync: React.ForwardRefExoticComponent<SelectAsyncProps & React.RefAttributes<HTMLDivElement>>;
59
63
  export {};
@@ -22,5 +22,5 @@ interface Props extends BaseProps {
22
22
  activeTab: string;
23
23
  variant: TabsProps['variant'];
24
24
  }
25
- declare const _default: React.MemoExoticComponent<(props: Props) => React.JSX.Element>;
25
+ declare const _default: React.MemoExoticComponent<(props: Props) => React.JSX.Element | null>;
26
26
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { TabItem, TabItemMenu } from './types';
2
2
  export declare const menuButton: TabItemMenu;
3
- export declare const getTabValue: (tab: TabItem) => string;
3
+ export declare const getTabValue: (tab: TabItem | undefined) => string;
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { Props as AdaptiveTabsProps } from '../AdaptiveTabs/AdaptiveTabs';
3
3
  interface Props extends AdaptiveTabsProps {
4
+ preservedParams?: Array<string>;
4
5
  }
5
6
  declare const _default: React.MemoExoticComponent<(props: Props) => React.JSX.Element>;
6
7
  export default _default;