@rocket.chat/fuselage 0.68.1 → 0.69.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.
- package/dist/components/AutoComplete/AutoComplete.d.ts +21 -10
- package/dist/components/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/dist/components/AutoComplete/index.d.ts +1 -1
- package/dist/components/AutoComplete/index.d.ts.map +1 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Button/IconButton.d.ts +2 -2
- package/dist/components/Button/IconButton.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownDesktop.d.ts +2 -0
- package/dist/components/Dropdown/DropdownDesktop.d.ts.map +1 -1
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Menu/Menu.d.ts +10 -3
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/V2/MenuPopover.d.ts.map +1 -1
- package/dist/components/Message/MessageMetrics/index.d.ts +1 -1
- package/dist/components/Message/MessageToolbar/MessageToolbarItem.d.ts +1 -2
- package/dist/components/Message/MessageToolbar/MessageToolbarItem.d.ts.map +1 -1
- package/dist/components/Message/MessageToolbar/index.d.ts +10 -4
- package/dist/components/Message/MessageToolbar/index.d.ts.map +1 -1
- package/dist/components/Message/index.d.ts +11 -5
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/NavBar/NavBarItem.d.ts +2 -2
- package/dist/components/NavBar/NavBarItem.d.ts.map +1 -1
- package/dist/components/NavBar/NavBarSection.d.ts.map +1 -1
- package/dist/components/Option/Option.d.ts +3 -3
- package/dist/components/Option/Option.d.ts.map +1 -1
- package/dist/components/Options/OptionType.d.ts +3 -3
- package/dist/components/Options/OptionType.d.ts.map +1 -1
- package/dist/components/Options/Options.d.ts +17 -15
- package/dist/components/Options/Options.d.ts.map +1 -1
- package/dist/components/Options/OptionsEmpty.d.ts +1 -1
- package/dist/components/Options/OptionsEmpty.d.ts.map +1 -1
- package/dist/components/OptionsPaginated/OptionsPaginated.d.ts +16 -7
- package/dist/components/OptionsPaginated/OptionsPaginated.d.ts.map +1 -1
- package/dist/components/PaginatedSelect/PaginatedMultiSelect.d.ts +32 -5
- package/dist/components/PaginatedSelect/PaginatedMultiSelect.d.ts.map +1 -1
- package/dist/components/PaginatedSelect/PaginatedMultiSelectFiltered.d.ts +2 -2
- package/dist/components/PaginatedSelect/PaginatedMultiSelectFiltered.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarActions.d.ts +1 -2
- package/dist/components/Sidebar/SidebarActions.d.ts.map +1 -1
- package/dist/components/Sidebar/TopBar/TopBarAction.d.ts +1 -2
- package/dist/components/Sidebar/TopBar/TopBarAction.d.ts.map +1 -1
- package/dist/components/Sidebar/TopBar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.d.ts +2 -2
- package/dist/components/SidebarV2/SidebarAction.d.ts +1 -2
- package/dist/components/SidebarV2/SidebarAction.d.ts.map +1 -1
- package/dist/components/SidebarV2/SidebarGroupTitle.d.ts +3 -4
- package/dist/components/SidebarV2/SidebarGroupTitle.d.ts.map +1 -1
- package/dist/components/SidebarV2/SidebarItem/SidebarItem.d.ts +2 -2
- package/dist/components/SidebarV2/SidebarItem/SidebarItem.d.ts.map +1 -1
- package/dist/fuselage.css +1 -1
- package/dist/fuselage.css.map +1 -1
- package/dist/fuselage.development.js +8 -14
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +7 -7
- package/package.json +19 -19
|
@@ -1,16 +1,27 @@
|
|
|
1
|
-
import type { AllHTMLAttributes,
|
|
2
|
-
type AutoCompleteOption = {
|
|
1
|
+
import type { AllHTMLAttributes, ComponentType, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
type AutoCompleteOption<TLabel> = {
|
|
3
3
|
value: string;
|
|
4
|
-
label:
|
|
4
|
+
label: TLabel;
|
|
5
5
|
};
|
|
6
|
-
type AutoCompleteProps = Omit<AllHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'is'> & {
|
|
6
|
+
export type AutoCompleteProps<TLabel> = Omit<AllHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'is'> & {
|
|
7
7
|
filter: string;
|
|
8
8
|
setFilter?: (filter: string) => void;
|
|
9
|
-
options?: AutoCompleteOption[];
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
options?: AutoCompleteOption<TLabel>[];
|
|
10
|
+
renderSelected?: ComponentType<{
|
|
11
|
+
selected: AutoCompleteOption<TLabel>;
|
|
12
|
+
onRemove?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
+
}>;
|
|
12
14
|
onChange: (value: string | string[]) => void;
|
|
13
|
-
|
|
15
|
+
renderItem?: ComponentType<{
|
|
16
|
+
role?: string;
|
|
17
|
+
label: TLabel;
|
|
18
|
+
value: string;
|
|
19
|
+
selected?: boolean;
|
|
20
|
+
focus?: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
renderEmpty?: ComponentType<{
|
|
23
|
+
customEmpty?: string;
|
|
24
|
+
}>;
|
|
14
25
|
placeholder?: string;
|
|
15
26
|
error?: boolean;
|
|
16
27
|
disabled?: boolean;
|
|
@@ -20,6 +31,6 @@ type AutoCompleteProps = Omit<AllHTMLAttributes<HTMLInputElement>, 'value' | 'on
|
|
|
20
31
|
/**
|
|
21
32
|
* An input for selection of options.
|
|
22
33
|
*/
|
|
23
|
-
|
|
24
|
-
export
|
|
34
|
+
declare function AutoComplete<TLabel = ReactNode>({ value, filter, setFilter, options, renderItem, renderSelected: RenderSelected, onChange, renderEmpty, placeholder, error, disabled, multiple, onBlur: onBlurAction, ...props }: AutoCompleteProps<TLabel>): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export default AutoComplete;
|
|
25
36
|
//# sourceMappingURL=AutoComplete.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../src/components/AutoComplete/AutoComplete.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,
|
|
1
|
+
{"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../src/components/AutoComplete/AutoComplete.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EAEjB,aAAa,EAEb,UAAU,EACV,SAAS,EACV,MAAM,OAAO,CAAC;AAYf,KAAK,kBAAkB,CAAC,MAAM,IAAI;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,MAAM,IAAI,IAAI,CAC1C,iBAAiB,CAAC,gBAAgB,CAAC,EACnC,OAAO,GAAG,UAAU,GAAG,IAAI,CAC5B,GAAG;IACF,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,OAAO,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;IACvC,cAAc,CAAC,EAAE,aAAa,CAAC;QAC7B,QAAQ,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACrC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;KAC3D,CAAC,CAAC;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,aAAa,CAAC;QACzB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC,CAAC;IACH,WAAW,CAAC,EAAE,aAAa,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC,CAAC;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC3B,CAAC;AA0BF;;GAEG;AACH,iBAAS,YAAY,CAAC,MAAM,GAAG,SAAS,EAAE,EACxC,KAAK,EACL,MAAM,EACN,SAAS,EACT,OAAY,EACZ,UAAU,EACV,cAAc,EAAE,cAAc,EAC9B,QAAQ,EACR,WAAW,EACX,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,EAAE,YAAuB,EAC/B,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,MAAM,CAAC,2CAiK3B;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default as AutoComplete, type AutoCompleteProps, } from './AutoComplete';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AutoComplete/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AutoComplete/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,YAAY,EACvB,KAAK,iBAAiB,GACvB,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ElementType, HTMLAttributes } from 'react';
|
|
2
2
|
export type BadgeProps = {
|
|
3
|
-
is?: ElementType
|
|
3
|
+
is?: ElementType<HTMLAttributes<HTMLSpanElement>>;
|
|
4
4
|
variant?: 'secondary' | 'primary' | 'danger' | 'warning' | 'ghost';
|
|
5
5
|
small?: boolean;
|
|
6
6
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAIzD,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,CAAC,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAIzD,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC,CAAC;IAClD,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;IACnE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,GAAG,cAAc,CAAC,eAAe,CAAC,CAAC;AAEpC;;GAEG;AACH,wBAAgB,KAAK,CAAC,EACpB,EAAE,EAAE,GAAY,EAChB,OAAqB,EACrB,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,UAAU,2CAeZ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Keys as IconName } from '@rocket.chat/icons';
|
|
1
2
|
import type { ComponentProps, ReactElement } from 'react';
|
|
2
3
|
import Box from '../Box';
|
|
3
|
-
import { Icon } from '../Icon';
|
|
4
4
|
type ButtonSize = {
|
|
5
5
|
large?: boolean;
|
|
6
6
|
medium?: boolean;
|
|
@@ -9,7 +9,7 @@ type ButtonSize = {
|
|
|
9
9
|
mini?: boolean;
|
|
10
10
|
};
|
|
11
11
|
type IconButtonProps = {
|
|
12
|
-
icon:
|
|
12
|
+
icon: IconName | ReactElement;
|
|
13
13
|
primary?: boolean;
|
|
14
14
|
secondary?: boolean;
|
|
15
15
|
info?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/Button/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAO,MAAM,OAAO,CAAC;AAG/D,OAAO,GAAG,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/Button/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAO,MAAM,OAAO,CAAC;AAG/D,OAAO,GAAG,MAAM,QAAQ,CAAC;AAGzB,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,QAAQ,GAAG,YAAY,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,UAAU,GACZ,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC;AAmB7B,eAAO,MAAM,UAAU,sHA8FtB,CAAC"}
|
|
@@ -2,6 +2,8 @@ import type { CSSProperties, ReactNode } from 'react';
|
|
|
2
2
|
export declare const DropdownDesktop: import("react").ForwardRefExoticComponent<{
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
maxWidth?: string;
|
|
5
|
+
maxHeight?: string;
|
|
6
|
+
overflowY?: CSSProperties["overflowY"];
|
|
5
7
|
style?: CSSProperties;
|
|
6
8
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
7
9
|
//# sourceMappingURL=DropdownDesktop.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownDesktop.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/DropdownDesktop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAO,MAAM,OAAO,CAAC;AAK3D,eAAO,MAAM,eAAe;cAQd,SAAS;eACR,MAAM;
|
|
1
|
+
{"version":3,"file":"DropdownDesktop.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/DropdownDesktop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAO,MAAM,OAAO,CAAC;AAK3D,eAAO,MAAM,eAAe;cAQd,SAAS;eACR,MAAM;gBACL,MAAM;gBACN,aAAa,CAAC,WAAW,CAAC;YAC9B,aAAa;+CAsBvB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Keys } from '@rocket.chat/icons';
|
|
1
|
+
import type { Keys as IconName } from '@rocket.chat/icons';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
3
|
import Box from '../Box';
|
|
4
4
|
export type IconProps = Omit<ComponentProps<typeof Box>, 'name' | 'size'> & {
|
|
5
|
-
name:
|
|
5
|
+
name: IconName;
|
|
6
6
|
size?: ComponentProps<typeof Box>['width'];
|
|
7
7
|
};
|
|
8
8
|
export declare const Icon: import("react").ForwardRefExoticComponent<Omit<IconProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,KAAK,EAAE,cAAc,EAAO,MAAM,OAAO,CAAC;AAGjD,OAAO,GAAG,MAAM,QAAQ,CAAC;AAEzB,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG;IAC1E,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,IAAI,gHAgBf,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { UsePositionOptions } from '@rocket.chat/fuselage-hooks';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Keys as IconName } from '@rocket.chat/icons';
|
|
3
|
+
import type { ComponentProps, ComponentType, ReactNode } from 'react';
|
|
3
4
|
import type Box from '../Box';
|
|
4
5
|
import { IconButton } from '../Button';
|
|
5
6
|
type MenuProps = Omit<ComponentProps<typeof IconButton>, 'icon'> & {
|
|
@@ -13,8 +14,14 @@ type MenuProps = Omit<ComponentProps<typeof IconButton>, 'icon'> & {
|
|
|
13
14
|
};
|
|
14
15
|
optionWidth?: ComponentProps<typeof Box>['width'];
|
|
15
16
|
placement?: UsePositionOptions['placement'];
|
|
16
|
-
renderItem?:
|
|
17
|
-
|
|
17
|
+
renderItem?: ComponentType<{
|
|
18
|
+
role?: string;
|
|
19
|
+
label: ReactNode;
|
|
20
|
+
value: string | number;
|
|
21
|
+
selected?: boolean;
|
|
22
|
+
focus?: boolean;
|
|
23
|
+
}>;
|
|
24
|
+
icon?: IconName;
|
|
18
25
|
maxHeight?: string | number;
|
|
19
26
|
};
|
|
20
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtE,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIvC,KAAK,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,EAAE,MAAM,CAAC,GAAG;IACjE,OAAO,EAAE;QACP,CAAC,EAAE,EAAE,MAAM,GAAG;YACZ,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;YACxC,KAAK,CAAC,EAAE,SAAS,CAAC;YAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;YACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;SACpB,CAAC;KACH,CAAC;IACF,WAAW,CAAC,EAAE,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;IAClD,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC5C,UAAU,CAAC,EAAE,aAAa,CAAC;QACzB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,SAAS,CAAC;QACjB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC,CAAC;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B,CAAC;AAiBF;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,+FAWlB,SAAS,4CAuEX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/V2/MenuPopover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAMzD,UAAU,gBAAiB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,YAAY,CAAC;IACrE,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,iBAAS,WAAW,CAAC,EACnB,QAAQ,EACR,KAAK,EACL,MAAU,EACV,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"MenuPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/V2/MenuPopover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAMzD,UAAU,gBAAiB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,YAAY,CAAC;IACrE,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,iBAAS,WAAW,CAAC,EACnB,QAAQ,EACR,KAAK,EACL,MAAU,EACV,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAkBlB;AACD,eAAe,WAAW,CAAC"}
|
|
@@ -23,7 +23,7 @@ declare const _default: ((props: import("react").HTMLAttributes<HTMLDivElement>)
|
|
|
23
23
|
name: "bell" | "bell-off";
|
|
24
24
|
badge?: import("react").ReactElement;
|
|
25
25
|
} & Omit<Omit<{
|
|
26
|
-
icon: import("
|
|
26
|
+
icon: import("@rocket.chat/icons").Keys | import("react").ReactElement;
|
|
27
27
|
primary?: boolean;
|
|
28
28
|
secondary?: boolean;
|
|
29
29
|
info?: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
1
|
export declare const MessageToolbarItem: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
3
|
-
icon:
|
|
2
|
+
icon: import("@rocket.chat/icons").Keys | import("react").ReactElement;
|
|
4
3
|
primary?: boolean;
|
|
5
4
|
secondary?: boolean;
|
|
6
5
|
info?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageToolbarItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/MessageToolbar/MessageToolbarItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageToolbarItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/MessageToolbar/MessageToolbarItem.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;kHAK7B,CAAC"}
|
|
@@ -14,7 +14,7 @@ declare const _default: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
14
14
|
* @deprecated prefer using named imports
|
|
15
15
|
* */
|
|
16
16
|
Item: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
17
|
-
icon: import("
|
|
17
|
+
icon: import("@rocket.chat/icons").Keys | import("react").ReactElement;
|
|
18
18
|
primary?: boolean;
|
|
19
19
|
secondary?: boolean;
|
|
20
20
|
info?: boolean;
|
|
@@ -41,7 +41,7 @@ declare const _default: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
41
41
|
* @deprecated prefer using named imports
|
|
42
42
|
* */
|
|
43
43
|
Menu: ({ tiny, mini, small, options, optionWidth, placement, renderItem, maxHeight, icon, ...props }: Omit<Omit<{
|
|
44
|
-
icon: import("
|
|
44
|
+
icon: import("@rocket.chat/icons").Keys | import("react").ReactElement;
|
|
45
45
|
primary?: boolean;
|
|
46
46
|
secondary?: boolean;
|
|
47
47
|
info?: boolean;
|
|
@@ -68,8 +68,14 @@ declare const _default: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
68
68
|
};
|
|
69
69
|
optionWidth?: import("react").ComponentProps<typeof import("../..").Box>["width"];
|
|
70
70
|
placement?: import("@rocket.chat/fuselage-hooks").UsePositionOptions["placement"];
|
|
71
|
-
renderItem?: import("react").
|
|
72
|
-
|
|
71
|
+
renderItem?: import("react").ComponentType<{
|
|
72
|
+
role?: string;
|
|
73
|
+
label: import("react").ReactNode;
|
|
74
|
+
value: string | number;
|
|
75
|
+
selected?: boolean;
|
|
76
|
+
focus?: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
icon?: import("@rocket.chat/icons").Keys;
|
|
73
79
|
maxHeight?: string | number;
|
|
74
80
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
75
81
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/MessageToolbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;;;;;;;;;IAG9D;;SAEK;;;;;;;;;;;;;;;;;;;IAEL;;SAEK;;;;IAEL;;SAEK;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/MessageToolbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;;;;;;;;;IAG9D;;SAEK;;;;;;;;;;;;;;;;;;;IAEL;;SAEK;;;;IAEL;;SAEK;;;;;;;;;;;;;;;;;;;;;oBAI8C,CAAC;qBAC7B,CAAC;sBAAyB,CAAC;wBAA4B,CAAC;;;;;;gBAAkK,CAAC;;;oBAAwE,CAAC;iBAAoB,CAAC;;;;;;AAhBlV,wBAaG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -42,7 +42,7 @@ declare const _default: import("react").ForwardRefExoticComponent<import("react"
|
|
|
42
42
|
name: "bell" | "bell-off";
|
|
43
43
|
badge?: import("react").ReactElement;
|
|
44
44
|
} & Omit<Omit<{
|
|
45
|
-
icon: import("
|
|
45
|
+
icon: import("@rocket.chat/icons").Keys | import("react").ReactElement;
|
|
46
46
|
primary?: boolean;
|
|
47
47
|
secondary?: boolean;
|
|
48
48
|
info?: boolean;
|
|
@@ -69,7 +69,7 @@ declare const _default: import("react").ForwardRefExoticComponent<import("react"
|
|
|
69
69
|
large?: boolean;
|
|
70
70
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
71
71
|
Item: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
72
|
-
icon: import("
|
|
72
|
+
icon: import("@rocket.chat/icons").Keys | import("react").ReactElement;
|
|
73
73
|
primary?: boolean;
|
|
74
74
|
secondary?: boolean;
|
|
75
75
|
info?: boolean;
|
|
@@ -90,7 +90,7 @@ declare const _default: import("react").ForwardRefExoticComponent<import("react"
|
|
|
90
90
|
visible?: boolean;
|
|
91
91
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
92
92
|
Menu: ({ tiny, mini, small, options, optionWidth, placement, renderItem, maxHeight, icon, ...props }: Omit<Omit<{
|
|
93
|
-
icon: import("
|
|
93
|
+
icon: import("@rocket.chat/icons").Keys | import("react").ReactElement;
|
|
94
94
|
primary?: boolean;
|
|
95
95
|
secondary?: boolean;
|
|
96
96
|
info?: boolean;
|
|
@@ -117,8 +117,14 @@ declare const _default: import("react").ForwardRefExoticComponent<import("react"
|
|
|
117
117
|
};
|
|
118
118
|
optionWidth?: import("react").ComponentProps<typeof import("..").Box>["width"];
|
|
119
119
|
placement?: import("@rocket.chat/fuselage-hooks").UsePositionOptions["placement"];
|
|
120
|
-
renderItem?: import("react").
|
|
121
|
-
|
|
120
|
+
renderItem?: import("react").ComponentType<{
|
|
121
|
+
role?: string;
|
|
122
|
+
label: import("react").ReactNode;
|
|
123
|
+
value: string | number;
|
|
124
|
+
selected?: boolean;
|
|
125
|
+
focus?: boolean;
|
|
126
|
+
}>;
|
|
127
|
+
icon?: import("@rocket.chat/icons").Keys;
|
|
122
128
|
maxHeight?: string | number;
|
|
123
129
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
124
130
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Message/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAWtD,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Message/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAWtD,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA5BjC,CAAC;yBAA+C,CAAC;0BACtC,CAAC;4BAA4B,CAAC;;;;;;oBAIhC,CAAC;;;wBAEkB,CAAC;qBACd,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBlB,wBAiBG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
2
|
export declare const NavBarItem: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLElement> & Partial<Omit<{
|
|
3
|
-
icon:
|
|
3
|
+
icon: import("@rocket.chat/icons").Keys | import("react").ReactElement;
|
|
4
4
|
primary?: boolean;
|
|
5
5
|
secondary?: boolean;
|
|
6
6
|
info?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavBarItem.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"NavBarItem.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,OAAO,CAAC;AAS5D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;6GAoBrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavBarSection.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavBarSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"NavBarSection.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavBarSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,cAAc,EAAgB,MAAM,OAAO,CAAC;AAWzE,KAAK,kBAAkB,GAAG,cAAc,CAAC,eAAe,CAAC,CAAC;AAU1D,eAAO,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,4CAavE,CAAC"}
|
|
@@ -15,11 +15,11 @@ export type OptionProps = {
|
|
|
15
15
|
avatar?: ReactNode;
|
|
16
16
|
title?: string;
|
|
17
17
|
disabled?: boolean;
|
|
18
|
-
value?: string;
|
|
18
|
+
value?: string | number;
|
|
19
19
|
variant?: 'danger' | 'success' | 'warning' | 'primary';
|
|
20
20
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
21
21
|
description?: ReactNode;
|
|
22
|
-
} & Omit<AllHTMLAttributes<HTMLElement>, 'label'>;
|
|
23
|
-
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<OptionProps, "ref"> & import("react").RefAttributes<
|
|
22
|
+
} & Omit<AllHTMLAttributes<HTMLElement>, 'is' | 'id' | 'children' | 'label' | 'selected' | 'className' | 'ref' | 'icon' | 'gap' | 'avatar' | 'title' | 'disabled' | 'value' | 'variant' | 'onClick' | 'description'>;
|
|
23
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<OptionProps, "ref"> & import("react").RefAttributes<Element>>>;
|
|
24
24
|
export default _default;
|
|
25
25
|
//# sourceMappingURL=Option.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/components/Option/Option.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI3E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAOzC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IAClC,GAAG,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/components/Option/Option.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI3E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAOzC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IAClC,GAAG,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IACvD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACnD,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,GAAG,IAAI,CACN,iBAAiB,CAAC,WAAW,CAAC,EAC5B,IAAI,GACJ,IAAI,GACJ,UAAU,GACV,OAAO,GACP,UAAU,GACV,WAAW,GACX,KAAK,GACL,MAAM,GACN,KAAK,GACL,QAAQ,GACR,OAAO,GACP,UAAU,GACV,OAAO,GACP,SAAS,GACT,SAAS,GACT,aAAa,CAChB,CAAC;;AAuEF,wBAA4B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
export type OptionType = [
|
|
3
|
-
value:
|
|
4
|
-
label:
|
|
2
|
+
export type OptionType<TValue = string | number, TLabel = ReactNode> = [
|
|
3
|
+
value: TValue,
|
|
4
|
+
label: TLabel,
|
|
5
5
|
selected?: boolean,
|
|
6
6
|
disabled?: boolean,
|
|
7
7
|
type?: 'heading' | 'divider' | 'option',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionType.d.ts","sourceRoot":"","sources":["../../../src/components/Options/OptionType.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG
|
|
1
|
+
{"version":3,"file":"OptionType.d.ts","sourceRoot":"","sources":["../../../src/components/Options/OptionType.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,SAAS,IAAI;IACrE,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;IACb,QAAQ,CAAC,EAAE,OAAO;IAClB,QAAQ,CAAC,EAAE,OAAO;IAClB,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ;IACvC,GAAG,CAAC,EAAE,MAAM;CACb,CAAC"}
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentType, ForwardRefExoticComponent, PropsWithoutRef, ReactNode, RefAttributes } from 'react';
|
|
2
2
|
import { type BoxProps } from '../Box';
|
|
3
3
|
import type { OptionType } from './OptionType';
|
|
4
|
-
export type OptionsProps = Omit<BoxProps, 'onSelect'> & {
|
|
4
|
+
export type OptionsProps<TValue = string | number, TLabel = ReactNode> = Omit<BoxProps, 'onSelect'> & {
|
|
5
5
|
multiple?: boolean;
|
|
6
|
-
options: OptionType[];
|
|
6
|
+
options: OptionType<TValue, TLabel>[];
|
|
7
7
|
cursor: number;
|
|
8
|
-
renderItem?:
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
renderItem?: ComponentType<{
|
|
9
|
+
role?: string;
|
|
10
|
+
label: TLabel;
|
|
11
|
+
value: TValue;
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
focus?: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
renderEmpty?: ComponentType<{
|
|
16
|
+
customEmpty?: string;
|
|
17
|
+
}>;
|
|
18
|
+
onSelect: (option: OptionType<TValue, TLabel>) => void;
|
|
11
19
|
customEmpty?: string;
|
|
12
20
|
};
|
|
13
21
|
/**
|
|
14
22
|
* An input for selection of options.
|
|
15
23
|
*/
|
|
16
|
-
declare const Options:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
cursor: number;
|
|
20
|
-
renderItem?: ElementType;
|
|
21
|
-
renderEmpty?: ElementType;
|
|
22
|
-
onSelect: (option: OptionType) => void;
|
|
23
|
-
customEmpty?: string;
|
|
24
|
-
} & import("react").RefAttributes<HTMLElement>>;
|
|
24
|
+
declare const Options: ForwardRefExoticComponent<PropsWithoutRef<OptionsProps> & RefAttributes<HTMLElement>> & {
|
|
25
|
+
<TValue = string | number, TLabel = ReactNode>(props: PropsWithoutRef<OptionsProps<TValue, TLabel>> & RefAttributes<HTMLElement>): JSX.Element;
|
|
26
|
+
};
|
|
25
27
|
export default Options;
|
|
26
28
|
//# sourceMappingURL=Options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../src/components/Options/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../src/components/Options/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,yBAAyB,EACzB,eAAe,EACf,SAAS,EACT,aAAa,EAEd,MAAM,OAAO,CAAC;AAIf,OAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAK5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,MAAM,YAAY,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,SAAS,IAAI,IAAI,CAC3E,QAAQ,EACR,UAAU,CACX,GAAG;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,aAAa,CAAC;QACzB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC,CAAC;IACH,WAAW,CAAC,EAAE,aAAa,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC,CAAC;IACH,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,OAAO,EA8FP,yBAAyB,CAC7B,eAAe,CAAC,YAAY,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAC3D,GAAG;IACF,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,SAAS,EAC3C,KAAK,EAAE,eAAe,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAClD,aAAa,CAAC,WAAW,CAAC,GAC3B,GAAG,CAAC,OAAO,CAAC;CAChB,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsEmpty.d.ts","sourceRoot":"","sources":["../../../src/components/Options/OptionsEmpty.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"OptionsEmpty.d.ts","sourceRoot":"","sources":["../../../src/components/Options/OptionsEmpty.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;8EAEqC,iBAAiB;AAIxD,wBAAkC"}
|
|
@@ -1,22 +1,31 @@
|
|
|
1
|
-
import type { ComponentProps, ElementType } from 'react';
|
|
1
|
+
import type { ComponentProps, ComponentType, ElementType, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import Box from '../Box';
|
|
3
3
|
type OptionsPaginatedProps = Omit<ComponentProps<typeof Box>, 'onSelect'> & {
|
|
4
4
|
multiple?: boolean;
|
|
5
5
|
options: {
|
|
6
|
-
value:
|
|
6
|
+
value: string | number;
|
|
7
7
|
label: string;
|
|
8
8
|
selected?: boolean;
|
|
9
9
|
}[];
|
|
10
10
|
cursor: number;
|
|
11
11
|
withTitle?: boolean;
|
|
12
|
-
renderItem?:
|
|
13
|
-
|
|
12
|
+
renderItem?: ComponentType<{
|
|
13
|
+
role?: string;
|
|
14
|
+
label?: ReactNode;
|
|
15
|
+
title?: string;
|
|
16
|
+
selected?: boolean;
|
|
17
|
+
index?: number;
|
|
18
|
+
focus?: boolean;
|
|
19
|
+
value?: string | number;
|
|
20
|
+
onMouseDown?: (e: MouseEvent<HTMLElement>) => void;
|
|
21
|
+
}>;
|
|
22
|
+
renderEmpty?: ElementType<object>;
|
|
14
23
|
onSelect: (option: [unknown, string]) => void;
|
|
15
|
-
endReached?: (
|
|
24
|
+
endReached?: (start?: number | undefined, end?: number | undefined) => void;
|
|
16
25
|
};
|
|
17
26
|
export declare const Empty: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
|
|
18
|
-
export declare const CheckOption: import("react").NamedExoticComponent<Omit<Omit<import("..").OptionProps, "ref"> & import("react").RefAttributes<
|
|
19
|
-
ref?: ((instance:
|
|
27
|
+
export declare const CheckOption: import("react").NamedExoticComponent<Omit<Omit<import("..").OptionProps, "ref"> & import("react").RefAttributes<Element>, "ref"> & {
|
|
28
|
+
ref?: import("react").RefObject<Element> | ((instance: Element | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
20
29
|
}>;
|
|
21
30
|
/**
|
|
22
31
|
* An input for selection of options.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsPaginated.d.ts","sourceRoot":"","sources":["../../../src/components/OptionsPaginated/OptionsPaginated.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"OptionsPaginated.d.ts","sourceRoot":"","sources":["../../../src/components/OptionsPaginated/OptionsPaginated.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EAGV,MAAM,OAAO,CAAC;AAMf,OAAO,GAAG,MAAM,QAAQ,CAAC;AAKzB,KAAK,qBAAqB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IACzE,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,aAAa,CAAC;QACzB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,SAAS,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACxB,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;KACpD,CAAC,CAAC;IACH,WAAW,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAC9C,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CAC7E,CAAC;AAEF,eAAO,MAAM,KAAK,oFAAuC,CAAC;AAI1D,eAAO,MAAM,WAAW;;EAUtB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,wHAgE5B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,qFAA6C,gFAMvE,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { type ComponentProps, type
|
|
1
|
+
import { type ComponentProps, type ComponentType, type ReactNode, type MouseEvent, type CSSProperties } from 'react';
|
|
2
2
|
import Box from '../Box';
|
|
3
|
-
import { Option } from '../Option';
|
|
4
|
-
import { OptionsPaginated } from '../OptionsPaginated';
|
|
5
3
|
export type PaginatedMultiSelectOption = {
|
|
6
4
|
value: string | number;
|
|
7
5
|
label: string;
|
|
@@ -14,8 +12,37 @@ type PaginatedMultiSelectProps = Omit<ComponentProps<typeof Box>, 'onChange' | '
|
|
|
14
12
|
endReached?: (start?: number, end?: number) => void;
|
|
15
13
|
value?: PaginatedMultiSelectOption[];
|
|
16
14
|
onChange: (values: PaginatedMultiSelectOption[]) => void;
|
|
17
|
-
renderOptions?:
|
|
18
|
-
|
|
15
|
+
renderOptions?: ComponentType<{
|
|
16
|
+
width?: CSSProperties['width'];
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
filter?: string;
|
|
19
|
+
role?: string;
|
|
20
|
+
options: PaginatedMultiSelectOption[];
|
|
21
|
+
cursor: number;
|
|
22
|
+
endReached?: (start?: number, end?: number) => void;
|
|
23
|
+
renderItem?: ComponentType<{
|
|
24
|
+
role?: string;
|
|
25
|
+
label?: ReactNode;
|
|
26
|
+
title?: string;
|
|
27
|
+
selected?: boolean;
|
|
28
|
+
index?: number;
|
|
29
|
+
focus?: boolean;
|
|
30
|
+
value?: string | number;
|
|
31
|
+
onMouseDown?: (e: MouseEvent<HTMLElement>) => void;
|
|
32
|
+
}>;
|
|
33
|
+
onSelect: (option: [unknown, string]) => void;
|
|
34
|
+
onMouseDown?: (e: MouseEvent<HTMLElement>) => void;
|
|
35
|
+
}>;
|
|
36
|
+
renderItem?: ComponentType<{
|
|
37
|
+
role?: string;
|
|
38
|
+
label?: ReactNode;
|
|
39
|
+
title?: string;
|
|
40
|
+
selected?: boolean;
|
|
41
|
+
index?: number;
|
|
42
|
+
focus?: boolean;
|
|
43
|
+
value?: string | number;
|
|
44
|
+
onMouseDown?: (e: MouseEvent<HTMLElement>) => void;
|
|
45
|
+
}>;
|
|
19
46
|
anchor?: any;
|
|
20
47
|
};
|
|
21
48
|
declare const PaginatedMultiSelect: ({ withTitle, value, filter, options, error, disabled, anchor: Anchor, onChange, placeholder, renderOptions: OptionsComponent, renderItem, endReached, ...props }: PaginatedMultiSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginatedMultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/PaginatedSelect/PaginatedMultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"PaginatedMultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/PaginatedSelect/PaginatedMultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAGnB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAIf,OAAO,GAAG,MAAM,QAAQ,CAAC;AAYzB,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,yBAAyB,GAAG,IAAI,CACnC,cAAc,CAAC,OAAO,GAAG,CAAC,EAC1B,UAAU,GAAG,OAAO,CACrB,GAAG;IACF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,0BAA0B,EAAE,CAAC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,KAAK,CAAC,EAAE,0BAA0B,EAAE,CAAC;IACrC,QAAQ,EAAE,CAAC,MAAM,EAAE,0BAA0B,EAAE,KAAK,IAAI,CAAC;IACzD,aAAa,CAAC,EAAE,aAAa,CAAC;QAC5B,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;QAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,0BAA0B,EAAE,CAAC;QACtC,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;QACpD,UAAU,CAAC,EAAE,aAAa,CAAC;YACzB,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,KAAK,CAAC,EAAE,SAAS,CAAC;YAClB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,QAAQ,CAAC,EAAE,OAAO,CAAC;YACnB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,KAAK,CAAC,EAAE,OAAO,CAAC;YAChB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;YACxB,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;SACpD,CAAC,CAAC;QACH,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;QAC9C,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;KACpD,CAAC,CAAC;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;QACzB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,SAAS,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACxB,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;KACpD,CAAC,CAAC;IACH,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,QAAA,MAAM,oBAAoB,GAAI,kKAc3B,yBAAyB,4CA+I3B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import PaginatedMultiSelect from './PaginatedMultiSelect';
|
|
3
3
|
type PaginatedMultiSelectFilteredProps = {
|
|
4
4
|
setFilter?: (value: string) => void;
|
|
5
|
-
} &
|
|
5
|
+
} & ComponentPropsWithoutRef<typeof PaginatedMultiSelect>;
|
|
6
6
|
export declare const PaginatedMultiSelectFiltered: ({ filter, setFilter, options, placeholder, ...props }: PaginatedMultiSelectFilteredProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=PaginatedMultiSelectFiltered.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginatedMultiSelectFiltered.d.ts","sourceRoot":"","sources":["../../../src/components/PaginatedSelect/PaginatedMultiSelectFiltered.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"PaginatedMultiSelectFiltered.d.ts","sourceRoot":"","sources":["../../../src/components/PaginatedSelect/PaginatedMultiSelectFiltered.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAMjE,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D,KAAK,iCAAiC,GAAG;IACvC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,GAAG,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE1D,eAAO,MAAM,4BAA4B,GAAI,uDAM1C,iCAAiC,4CA8BnC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
1
|
export declare const SidebarActions: import("react").ForwardRefExoticComponent<Omit<{
|
|
3
2
|
align?: "start" | "center" | "end";
|
|
4
3
|
stretch?: boolean;
|
|
@@ -8,7 +7,7 @@ export declare const SidebarActions: import("react").ForwardRefExoticComponent<O
|
|
|
8
7
|
large?: boolean;
|
|
9
8
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
9
|
export declare const SidebarAction: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
11
|
-
icon:
|
|
10
|
+
icon: import("@rocket.chat/icons").Keys | import("react").ReactElement;
|
|
12
11
|
primary?: boolean;
|
|
13
12
|
secondary?: boolean;
|
|
14
13
|
info?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarActions.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarActions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarActions.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarActions.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc;;;;;;;2JAKzB,CAAC;AAIH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;4GAKxB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
1
|
export declare const TopBarAction: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<{
|
|
3
|
-
icon:
|
|
2
|
+
icon: import("@rocket.chat/icons").Keys | import("react").ReactElement;
|
|
4
3
|
primary?: boolean;
|
|
5
4
|
secondary?: boolean;
|
|
6
5
|
info?: boolean;
|