@rocket.chat/fuselage 0.6.3-dev.400 → 0.6.3-dev.406

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/README.md CHANGED
@@ -110,17 +110,3 @@ yarn storybook
110
110
  ```
111
111
 
112
112
  <!--/yarn(storybook)-->
113
-
114
- ### Visually testing stories
115
-
116
- We perform visual regression testing in our component stories using [Loki](https://loki.js.org/).
117
- Everytime you add, modify, or remove components, you should update the set of reference images used to match
118
- how the components render in a real browser by running the following:
119
-
120
- <!--yarn(update-storybook)-->
121
-
122
- ```sh
123
- yarn update-storybook
124
- ```
125
-
126
- <!--/yarn(update-storybook)-->
@@ -1,11 +1,13 @@
1
1
  import { ElementType, FC } from 'react';
2
2
 
3
- type AutoCompleteProps = {
3
+ import { Options } from '..';
4
+
5
+ type AutoCompleteProps = Omit<ComponentProps<typeof Options>> & {
4
6
  value: unknown[];
5
7
  filter: string;
6
8
  setFilter?: (filter: string) => void;
7
9
  options?: { label: string; value: unknown }[];
8
- renderItem: ElementType;
10
+ renderItem?: ElementType;
9
11
  renderSelected?: ElementType;
10
12
  onChange: (value: unknown, action: 'remove' | undefined) => void;
11
13
  getLabel?: (option: { label: string; value: unknown }) => string;
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithoutRef, FC } from 'react';
1
+ import { ComponentPropsWithoutRef, FC, DetailedHTMLProps, HTMLAttributes } from 'react';
2
2
  import { Box } from '..';
3
3
  declare type AvatarProps = Omit<ComponentPropsWithoutRef<typeof Box>, 'title' | 'size' | 'className'> & {
4
4
  title?: string;
@@ -11,6 +11,6 @@ declare type AvatarProps = Omit<ComponentPropsWithoutRef<typeof Box>, 'title' |
11
11
  export declare const Avatar: FC<AvatarProps> & {
12
12
  Stack: typeof AvatarStack;
13
13
  };
14
- declare const AvatarStack: FC<AvatarProps>;
14
+ declare const AvatarStack: FC<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
15
15
  export {};
16
16
  //# sourceMappingURL=Avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,wBAAwB,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,GAAG,EAAE,MAAM,IAAI,CAAC;AAGzB,aAAK,WAAW,GAAG,IAAI,CACrB,wBAAwB,CAAC,OAAO,GAAG,CAAC,EACpC,OAAO,GAAG,MAAM,GAAG,WAAW,CAC/B,GAAG;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EACD,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG;IACrC,KAAK,EAAE,OAAO,WAAW,CAAC;CA6B3B,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,WAAW,CAGhC,CAAC"}
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,wBAAwB,EACxB,EAAE,EACF,iBAAiB,EACjB,cAAc,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,GAAG,EAAE,MAAM,IAAI,CAAC;AAGzB,aAAK,WAAW,GAAG,IAAI,CACrB,wBAAwB,CAAC,OAAO,GAAG,CAAC,EACpC,OAAO,GAAG,MAAM,GAAG,WAAW,CAC/B,GAAG;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EACD,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG;IACrC,KAAK,EAAE,OAAO,WAAW,CAAC;CA6B3B,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,EAAE,CACnB,iBAAiB,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,CAIlE,CAAC"}
@@ -4,6 +4,7 @@ type ScrollableProps = PropsWithChildren<{
4
4
  horizontal?: boolean;
5
5
  vertical?: boolean;
6
6
  onScrollContent?: (touching: { top: boolean }) => void;
7
+ smooth?: boolean;
7
8
  }>;
8
9
  const Scrollable: ForwardRefExoticComponent<ScrollableProps>;
9
10
  export default Scrollable;
@@ -12,7 +12,10 @@ type ButtonProps = ComponentProps<typeof Box> & {
12
12
  nude?: boolean;
13
13
  ghostish?: boolean;
14
14
  small?: boolean;
15
+ mini?: boolean;
16
+ tiny?: boolean;
15
17
  square?: boolean;
18
+ external?: boolean;
16
19
  };
17
20
  export const Button: ForwardRefExoticComponent<ButtonProps>;
18
21
 
@@ -2,12 +2,13 @@ import { ComponentProps, ForwardRefExoticComponent } from 'react';
2
2
 
3
3
  import { Box } from '../Box';
4
4
 
5
- type ButtonGroupProps = ComponentProps<typeof Box> & {
6
- align?: 'start' | 'center' | 'end';
7
- stretch?: boolean;
8
- wrap?: boolean;
9
- vertical?: boolean;
10
- small?: boolean;
11
- medium?: boolean;
12
- };
5
+ type ButtonGroupProps = ComponentProps<typeof Box> &
6
+ Omit<'wrap'> & {
7
+ align?: 'start' | 'center' | 'end';
8
+ stretch?: boolean;
9
+ wrap?: boolean;
10
+ vertical?: boolean;
11
+ small?: boolean;
12
+ medium?: boolean;
13
+ };
13
14
  export const ButtonGroup: ForwardRefExoticComponent<ButtonGroupProps>;
@@ -2,7 +2,9 @@ import { ComponentProps, ForwardRefExoticComponent } from 'react';
2
2
 
3
3
  import { Box } from '../Box';
4
4
 
5
- type ChipProps = ComponentProps<typeof Box>;
5
+ type ChipProps = ComponentProps<typeof Box> & {
6
+ thumbUrl: string;
7
+ };
6
8
  const Chip: ForwardRefExoticComponent<ChipProps>;
7
9
 
8
10
  export = Chip;
@@ -0,0 +1,2 @@
1
+ export declare const iconsList: readonly ["arrow-back", "arrow-collapse", "arrow-down", "arrow-down-box", "arrow-expand", "arrow-fall", "arrow-jump", "arrow-loop", "arrow-return", "arrow-rise", "arrow-up-box", "at", "avatar", "backspace", "bag", "ball", "balloon", "balloon-arrow-left", "balloon-arrow-top-right", "balloon-close-top-right", "balloon-ellipsis", "balloon-exclamation", "balloon-off", "balloons", "balloon-text", "ban", "bell", "bell-off", "bold", "book", "brush", "burger", "burger-arrow-left", "business", "calendar", "camera", "card", "check", "chevron-down", "chevron-expand", "chevron-left", "chevron-right", "chevron-up", "circle-arrow-down", "circle-check", "circle-cross", "circle-exclamation", "clip", "clipboard", "clock", "cloud-arrow-up", "cloud-plus", "code", "cog", "condensed-view", "contact", "copy", "crop", "cross", "cross-small", "cube", "customize", "desktop", "dialpad", "doc", "document-eye", "doner", "emoji", "emoji-neutral", "emoji-plus", "eraser", "error-circle", "exit", "extended-view", "eye", "eye-off", "file", "fingerprint", "flag", "folder", "globe", "globe-off", "group-by-type", "hash", "hashtag-lock", "h-bar", "headphone", "headphone-off", "headset", "help", "history", "home", "image", "info", "italic", "joystick", "kebab", "key", "keyboard", "language", "link", "list-bullets", "list-numbers", "live", "lock", "login", "magnifier", "mail", "mail-arrow-top-right", "meatballs", "medium-view", "members", "mic", "mic-off", "mobile", "moon", "musical-note", "new-window", "pause", "pause-unfilled", "pencil", "pencil-box", "phone", "phone-disabled", "phone-in", "phone-off", "phone-out", "pin", "pin-map", "play", "plus", "plus-small", "podcast", "quote", "rec", "refresh", "send", "send-filled", "sheet", "shield", "shield-check", "shredder", "signal", "sms", "sort", "sort-az", "squares", "stack", "star", "star-filled", "strike", "success-circle", "sun", "team", "team-arrow-right", "team-lock", "text-decrease", "text-increase", "trash", "underline", "undo", "user", "user-arrow-right", "user-plus", "video", "video-disabled", "video-filled", "video-off", "volume", "volume-disabled", "volume-lock", "volume-off", "warning", "zip", "add-reaction", "add-user", "attachment", "audio", "back", "baloon-arrow-left", "baloon-arrow-top-right", "baloon-close-top-right", "baloon-ellipsis", "baloon-exclamation", "baloons", "baloon-text", "cancel", "canned-response", "chat", "checkmark-circled", "circled-arrow-down", "computer", "discover", "discussion", "download", "edit", "edit-rounded", "file-document", "file-generic", "file-google-drive", "file-pdf", "files-audio", "file-sheets", "files-video", "files-zip", "game", "hashtag", "import", "info-circled", "jump", "jump-to-message", "map-pin", "menu", "message", "message-disabled", "modal-warning", "multiline", "omnichannel", "permalink", "post", "queue", "reload", "reply-directly", "report", "send-active", "share", "shield-alt", "sign-out", "sort-amount-down", "th-list", "thread", "upload", "user-rounded", "circle", "file-keynote", "hand-pointer", "list", "list-alt", "livechat", "loading", "play-solid", "reply", "sort-down", "sort-up", "adobe", "facebook", "github", "gitlab", "google", "google-drive", "hubot", "linkedin", "twitter"];
2
+ //# sourceMappingURL=IconsList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconsList.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/IconsList.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,+oGA8PZ,CAAC"}
@@ -5,6 +5,7 @@ import { Box } from '../Box';
5
5
  type InputBoxProps = ComponentProps<typeof Box> & {
6
6
  addon?: ReactNode;
7
7
  input?: ReactNode;
8
+ multiple?: boolean;
8
9
  error?: string;
9
10
  type:
10
11
  | 'button'
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/MessageToolbox/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,8BAA8B,CAAC;;;;;;AAEtC,wBAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/MessageToolbox/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,8BAA8B,CAAC;;;;;;AAEtC,wBAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC"}
@@ -2,7 +2,7 @@ import { ComponentProps, ForwardRefExoticComponent } from 'react';
2
2
 
3
3
  import { Box } from '../Box';
4
4
 
5
- type MultiSelectOptions = readonly (readonly [string, string])[];
5
+ type MultiSelectOptions = readonly (readonly [string, string, boolean?])[];
6
6
 
7
7
  type MultiSelectProps = Omit<ComponentProps<typeof Box>, 'onChange'> & {
8
8
  error?: string;
@@ -0,0 +1,18 @@
1
+ import { ComponentProps, ElementType, ForwardRefExoticComponent } from 'react';
2
+
3
+ import { Avatar } from '../Avatar';
4
+ import { Box } from '../Box';
5
+
6
+ type OptionsPaginatedProps = Omit<ComponentProps<typeof Box>, 'onSelect'> & {
7
+ multiple?: boolean;
8
+ options: { value: unknown; label: string }[];
9
+ cursor: number;
10
+ renderItem?: ElementType;
11
+ renderEmpty?: ElementType;
12
+ onSelect: (option: [unknown, string]) => void;
13
+ };
14
+ export const OptionsPaginated: ForwardRefExoticComponent<OptionsPaginatedProps> & {
15
+ AvatarSize: ComponentProps<typeof Avatar>['size'];
16
+ };
17
+
18
+ export const CheckOption: ForwardRefExoticComponent<OptionsPaginatedProps>;
@@ -0,0 +1,17 @@
1
+ import { ComponentProps, ForwardRefExoticComponent, ReactNode } from 'react';
2
+
3
+ import { InputBox } from '..';
4
+ import { Box } from '../Box';
5
+
6
+ type SelectInputOptions = readonly (readonly [string, string])[];
7
+
8
+ type SelectInputProps = Omit<ComponentProps<typeof Box>, 'onChange'> & {
9
+ error?: string;
10
+ options: SelectInputOptions;
11
+ onChange: (value: SelectInputOptions[number][0]) => void;
12
+ htmlSize?: number;
13
+ addon: ReactNode;
14
+ };
15
+
16
+ export const SelectInput: ForwardRefExoticComponent<SelectInputProps>;
17
+ export const SelectInputOption: typeof InputBox.Option;
@@ -1,7 +1,7 @@
1
- import React, { ComponentProps, FC } from 'react';
1
+ import { ComponentProps, FC } from 'react';
2
2
  import { Box } from '..';
3
3
  import { Icon as FuselageIcon } from '../Icon';
4
- import { SidebarAction } from './SidebarActions';
4
+ import { SidebarAction, SidebarActions } from './SidebarActions';
5
5
  export declare const SidebarItem: FC<{
6
6
  selected?: boolean;
7
7
  highlighted?: boolean;
@@ -23,18 +23,18 @@ export declare const SidebarItemBadge: FC<{
23
23
  className: string;
24
24
  }>;
25
25
  export declare const SidebarItemSubtitle: FC<{
26
- className: string;
26
+ className?: string;
27
27
  }>;
28
28
  export declare const SidebarItemWrapper: FC<{
29
29
  className?: string;
30
30
  }>;
31
31
  export declare const SidebarItemIcon: FC<{
32
- className: string;
32
+ className?: string;
33
33
  highlighted?: boolean;
34
34
  icon: ComponentProps<typeof FuselageIcon>['name'];
35
35
  }>;
36
36
  export declare const SidebarItemAvatar: FC;
37
- export declare const SidebarItemActions: React.FC<any>;
37
+ export declare const SidebarItemActions: FC<ComponentProps<typeof SidebarActions>>;
38
38
  export declare const SidebarItemAction: FC<ComponentProps<typeof SidebarAction>>;
39
39
  export default SidebarItem;
40
40
  //# sourceMappingURL=Item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,GAAG,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAkB,MAAM,kBAAkB,CAAC;AAEjE,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,EAAE,CAAC,EAAE,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;CACvC,CAwBA,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,EAKlC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,EAK7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAQzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAQvD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAQrD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAA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idebarAction, SidebarActions } from './SidebarActions';
3
3
  declare const TopBar: FC<{
4
4
  className: string;
5
5
  }> & {
@@ -20,9 +20,9 @@ export declare const TopBarSection: FC<{
20
20
  className: string;
21
21
  }>;
22
22
  export declare const TopBarAvatar: {
23
- size: string;
23
+ size: 'x24';
24
24
  };
25
- export declare const TopBarActions: React.FC<any>;
25
+ export declare const TopBarActions: FC<ComponentProps<typeof SidebarActions>>;
26
26
  export declare const TopBarAction: FC<ComponentProps<typeof SidebarAction>>;
27
27
  export declare const TopBarDivider: FC;
28
28
  export declare const TopBarTitle: FC;
@@ -1 +1 @@
1
- {"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/TopBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlD,OAAO,EAAE,aAAa,EAAkB,MAAM,kBAAkB,CAAC;AAIjE,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG;IACxC,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B,MAAM,EAAE,OAAO,YAAY,CAAC;IAC5B,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B,MAAM,EAAE,OAAO,YAAY,CAAC;IAC5B,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B,KAAK,EAAE,OAAO,WAAW,CAAC;IAC1B,OAAO,EAAE,OAAO,aAAa,CAAC;CAQ/B,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,EAKpB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAcpD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAcnD,CAAC;AAEF,eAAO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ACpD,CAAC;AACjB,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,CAE3B,CAAC;AAExC,eAAO,MAAM,aAAa,EAAE,EAA2C,CAAC;AAExE,eAAO,MAAM,WAAW,EAAE,EAEzB,CAAC;AAYF,eAAe,MAAM,CAAC"}
@@ -1,4 +1,8 @@
1
- import { ComponentProps, ForwardRefExoticComponent } from 'react';
1
+ import {
2
+ ComponentProps,
3
+ ForwardRefExoticComponent,
4
+ JSXElementConstructor,
5
+ } from 'react';
2
6
 
3
7
  import { Box } from '../Box';
4
8
 
@@ -12,15 +16,31 @@ type TableBodyProps = ComponentProps<typeof Box>;
12
16
  type TableFootProps = ComponentProps<typeof Box>;
13
17
  type TableRowProps = Omit<ComponentProps<typeof Box>, 'action'> & {
14
18
  action?: boolean;
19
+ hasAction?: boolean;
15
20
  };
16
21
  type TableCellProps = ComponentProps<typeof Box> & {
17
22
  align?: 'start' | 'center' | 'end';
18
23
  clickable?: boolean;
19
24
  };
20
- export const Table: ForwardRefExoticComponent<TableProps> & {
21
- Head: ForwardRefExoticComponent<TableHeadProps>;
22
- Body: ForwardRefExoticComponent<TableBodyProps>;
23
- Foot: ForwardRefExoticComponent<TableFootProps>;
24
- Row: ForwardRefExoticComponent<TableRowProps>;
25
- Cell: ForwardRefExoticComponent<TableCellProps>;
25
+ type TableSelectionProps = ComponentProps<typeof Box> & {
26
+ children?: JSXElementConstructor;
27
+ text?: string;
26
28
  };
29
+
30
+ type TableSelectionButtonProps = ComponentProps<typeof Box>;
31
+
32
+ export const Table: ForwardRefExoticComponent<TableProps>;
33
+ export const TableHead: ForwardRefExoticComponent<TableProps> &
34
+ ForwardRefExoticComponent<TableHeadProps>;
35
+ export const TableBody: ForwardRefExoticComponent<TableProps> &
36
+ ForwardRefExoticComponent<TableBodyProps>;
37
+ export const TableFoot: ForwardRefExoticComponent<TableProps> &
38
+ ForwardRefExoticComponent<TableFootProps>;
39
+ export const TableSelection: ForwardRefExoticComponent<TableProps> &
40
+ ForwardRefExoticComponent<TableSelectionProps>;
41
+ export const TableSelectionButton: ForwardRefExoticComponent<TableProps> &
42
+ ForwardRefExoticComponent<TableSelectionButtonProps>;
43
+ export const TableRow: ForwardRefExoticComponent<TableProps> &
44
+ ForwardRefExoticComponent<TableRowProps>;
45
+ export const TableCell: ForwardRefExoticComponent<TableProps> &
46
+ ForwardRefExoticComponent<TableCellProps>;
@@ -6584,7 +6584,7 @@ var Empty = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().memo(funct
6584
6584
  }
6585
6585
  });
6586
6586
  });
6587
- var CheckOption = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().memo(function (_ref) {
6587
+ var CheckOption = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().memo(function CheckOption(_ref) {
6588
6588
  var selected = _ref.selected,
6589
6589
  label = _ref.children,
6590
6590
  options = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, _excluded);
@@ -6593,18 +6593,18 @@ var CheckOption = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().memo
6593
6593
  label: label,
6594
6594
  selected: selected
6595
6595
  }, options, {
6596
- __self: _this,
6596
+ __self: this,
6597
6597
  __source: {
6598
6598
  fileName: _jsxFileName,
6599
- lineNumber: 22,
6599
+ lineNumber: 26,
6600
6600
  columnNumber: 5
6601
6601
  }
6602
6602
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_CheckBox__WEBPACK_IMPORTED_MODULE_5__.CheckBox, {
6603
6603
  checked: selected,
6604
- __self: _this,
6604
+ __self: this,
6605
6605
  __source: {
6606
6606
  fileName: _jsxFileName,
6607
- lineNumber: 23,
6607
+ lineNumber: 27,
6608
6608
  columnNumber: 7
6609
6609
  }
6610
6610
  }));
@@ -6645,7 +6645,7 @@ var OptionsPaginated = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default()
6645
6645
  __self: _this,
6646
6646
  __source: {
6647
6647
  fileName: _jsxFileName,
6648
- lineNumber: 46,
6648
+ lineNumber: 50,
6649
6649
  columnNumber: 9
6650
6650
  }
6651
6651
  }));
@@ -6658,7 +6658,7 @@ var OptionsPaginated = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default()
6658
6658
  __self: _this,
6659
6659
  __source: {
6660
6660
  fileName: _jsxFileName,
6661
- lineNumber: 64,
6661
+ lineNumber: 68,
6662
6662
  columnNumber: 7
6663
6663
  }
6664
6664
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_Tile__WEBPACK_IMPORTED_MODULE_7__.default, {
@@ -6669,14 +6669,14 @@ var OptionsPaginated = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default()
6669
6669
  __self: _this,
6670
6670
  __source: {
6671
6671
  fileName: _jsxFileName,
6672
- lineNumber: 65,
6672
+ lineNumber: 69,
6673
6673
  columnNumber: 9
6674
6674
  }
6675
6675
  }, !options.length ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(EmptyComponent, {
6676
6676
  __self: _this,
6677
6677
  __source: {
6678
6678
  fileName: _jsxFileName,
6679
- lineNumber: 67,
6679
+ lineNumber: 71,
6680
6680
  columnNumber: 13
6681
6681
  }
6682
6682
  }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(react_virtuoso__WEBPACK_IMPORTED_MODULE_8__.Virtuoso, {
@@ -6695,7 +6695,7 @@ var OptionsPaginated = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default()
6695
6695
  __self: _this,
6696
6696
  __source: {
6697
6697
  fileName: _jsxFileName,
6698
- lineNumber: 77,
6698
+ lineNumber: 81,
6699
6699
  columnNumber: 17
6700
6700
  }
6701
6701
  });
@@ -6703,7 +6703,7 @@ var OptionsPaginated = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default()
6703
6703
  __self: _this,
6704
6704
  __source: {
6705
6705
  fileName: _jsxFileName,
6706
- lineNumber: 69,
6706
+ lineNumber: 73,
6707
6707
  columnNumber: 13
6708
6708
  }
6709
6709
  })));
@@ -7507,7 +7507,8 @@ __webpack_require__.r(__webpack_exports__);
7507
7507
  "use strict";
7508
7508
  __webpack_require__.r(__webpack_exports__);
7509
7509
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7510
- /* harmony export */ "SelectInput": function() { return /* binding */ SelectInput; }
7510
+ /* harmony export */ "SelectInput": function() { return /* binding */ SelectInput; },
7511
+ /* harmony export */ "SelectInputOption": function() { return /* binding */ SelectInputOption; }
7511
7512
  /* harmony export */ });
7512
7513
  /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../../node_modules/@babel/runtime/helpers/slicedToArray.js");
7513
7514
  /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
@@ -7594,7 +7595,7 @@ var SelectInput = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)
7594
7595
  }
7595
7596
  }, placeholder), children);
7596
7597
  });
7597
- SelectInput.Option = _InputBox__WEBPACK_IMPORTED_MODULE_4__.InputBox.Option;
7598
+ var SelectInputOption = _InputBox__WEBPACK_IMPORTED_MODULE_4__.InputBox.Option;
7598
7599
 
7599
7600
  /***/ }),
7600
7601
 
@@ -7809,7 +7810,7 @@ var PaginatedMultiSelect = function PaginatedMultiSelect(_ref) {
7809
7810
  lineNumber: 88,
7810
7811
  columnNumber: 19
7811
7812
  }
7812
- }), currentValue.map(function (value) {
7813
+ }), currentValue.map(function (value, index) {
7813
7814
  var _options$find, _options$find2;
7814
7815
 
7815
7816
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(SelectedOptions, Object.assign({}, withTitle && {
@@ -7819,7 +7820,7 @@ var PaginatedMultiSelect = function PaginatedMultiSelect(_ref) {
7819
7820
  }, {
7820
7821
  tabIndex: -1,
7821
7822
  role: "option",
7822
- key: value && value.value,
7823
+ key: index,
7823
7824
  onMouseDown: function onMouseDown(e) {
7824
7825
  prevent(e);
7825
7826
  internalChanged([value]);
@@ -8292,8 +8293,8 @@ __webpack_require__.r(__webpack_exports__);
8292
8293
  "use strict";
8293
8294
  __webpack_require__.r(__webpack_exports__);
8294
8295
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8295
- /* harmony export */ "Selection": function() { return /* binding */ Selection; },
8296
- /* harmony export */ "SelectionButton": function() { return /* binding */ SelectionButton; },
8296
+ /* harmony export */ "TableSelection": function() { return /* binding */ TableSelection; },
8297
+ /* harmony export */ "TableSelectionButton": function() { return /* binding */ TableSelectionButton; },
8297
8298
  /* harmony export */ "Table": function() { return /* binding */ Table; },
8298
8299
  /* harmony export */ "TableHead": function() { return /* binding */ TableHead; },
8299
8300
  /* harmony export */ "TableBody": function() { return /* binding */ TableBody; },
@@ -8326,7 +8327,7 @@ var style = {
8326
8327
  textOverflow: 'ellipsis',
8327
8328
  whiteSpace: 'nowrap'
8328
8329
  };
8329
- function Selection(_ref) {
8330
+ function TableSelection(_ref) {
8330
8331
  var children = _ref.children,
8331
8332
  text = _ref.text,
8332
8333
  props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_ref, _excluded);
@@ -8376,7 +8377,7 @@ function Selection(_ref) {
8376
8377
  }
8377
8378
  }, children)));
8378
8379
  }
8379
- function SelectionButton(props) {
8380
+ function TableSelectionButton(props) {
8380
8381
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_4__.Button, Object.assign({
8381
8382
  small: true,
8382
8383
  primary: true,
@@ -8390,7 +8391,7 @@ function SelectionButton(props) {
8390
8391
  }
8391
8392
  }));
8392
8393
  }
8393
- Selection.Button = SelectionButton;
8394
+ Selection.Button = TableSelectionButton;
8394
8395
  function Table(_ref2) {
8395
8396
  var striped = _ref2.striped,
8396
8397
  sticky = _ref2.sticky,
@@ -18176,6 +18177,7 @@ __webpack_require__.r(__webpack_exports__);
18176
18177
  /* harmony export */ "PaginatedSelect": function() { return /* reexport safe */ _SelectPaginated__WEBPACK_IMPORTED_MODULE_36__.PaginatedSelect; },
18177
18178
  /* harmony export */ "PaginatedSelectFiltered": function() { return /* reexport safe */ _SelectPaginated__WEBPACK_IMPORTED_MODULE_36__.PaginatedSelectFiltered; },
18178
18179
  /* harmony export */ "SelectInput": function() { return /* reexport safe */ _SelectInput__WEBPACK_IMPORTED_MODULE_37__.SelectInput; },
18180
+ /* harmony export */ "SelectInputOption": function() { return /* reexport safe */ _SelectInput__WEBPACK_IMPORTED_MODULE_37__.SelectInputOption; },
18179
18181
  /* harmony export */ "Sidebar": function() { return /* reexport safe */ _Sidebar__WEBPACK_IMPORTED_MODULE_38__.Sidebar; },
18180
18182
  /* harmony export */ "SidebarFooter": function() { return /* reexport safe */ _Sidebar__WEBPACK_IMPORTED_MODULE_38__.SidebarFooter; },
18181
18183
  /* harmony export */ "SidebarFooterHighlight": function() { return /* reexport safe */ _Sidebar__WEBPACK_IMPORTED_MODULE_38__.SidebarFooterHighlight; },
@@ -18213,14 +18215,14 @@ __webpack_require__.r(__webpack_exports__);
18213
18215
  /* harmony export */ "StatesSuggestionListItem": function() { return /* reexport safe */ _States__WEBPACK_IMPORTED_MODULE_40__.StatesSuggestionListItem; },
18214
18216
  /* harmony export */ "StatesSuggestionText": function() { return /* reexport safe */ _States__WEBPACK_IMPORTED_MODULE_40__.StatesSuggestionText; },
18215
18217
  /* harmony export */ "StatesTitle": function() { return /* reexport safe */ _States__WEBPACK_IMPORTED_MODULE_40__.StatesTitle; },
18216
- /* harmony export */ "Selection": function() { return /* reexport safe */ _Table__WEBPACK_IMPORTED_MODULE_41__.Selection; },
18217
- /* harmony export */ "SelectionButton": function() { return /* reexport safe */ _Table__WEBPACK_IMPORTED_MODULE_41__.SelectionButton; },
18218
18218
  /* harmony export */ "Table": function() { return /* reexport safe */ _Table__WEBPACK_IMPORTED_MODULE_41__.Table; },
18219
18219
  /* harmony export */ "TableBody": function() { return /* reexport safe */ _Table__WEBPACK_IMPORTED_MODULE_41__.TableBody; },
18220
18220
  /* harmony export */ "TableCell": function() { return /* reexport safe */ _Table__WEBPACK_IMPORTED_MODULE_41__.TableCell; },
18221
18221
  /* harmony export */ "TableFoot": function() { return /* reexport safe */ _Table__WEBPACK_IMPORTED_MODULE_41__.TableFoot; },
18222
18222
  /* harmony export */ "TableHead": function() { return /* reexport safe */ _Table__WEBPACK_IMPORTED_MODULE_41__.TableHead; },
18223
18223
  /* harmony export */ "TableRow": function() { return /* reexport safe */ _Table__WEBPACK_IMPORTED_MODULE_41__.TableRow; },
18224
+ /* harmony export */ "TableSelection": function() { return /* reexport safe */ _Table__WEBPACK_IMPORTED_MODULE_41__.TableSelection; },
18225
+ /* harmony export */ "TableSelectionButton": function() { return /* reexport safe */ _Table__WEBPACK_IMPORTED_MODULE_41__.TableSelectionButton; },
18224
18226
  /* harmony export */ "Tabs": function() { return /* reexport safe */ _Tabs__WEBPACK_IMPORTED_MODULE_42__.Tabs; },
18225
18227
  /* harmony export */ "TabsItem": function() { return /* reexport safe */ _Tabs__WEBPACK_IMPORTED_MODULE_42__.TabsItem; },
18226
18228
  /* harmony export */ "Tag": function() { return /* reexport safe */ _Tag__WEBPACK_IMPORTED_MODULE_43__.Tag; },
@@ -18825,8 +18827,7 @@ __webpack_require__.r(__webpack_exports__);
18825
18827
  /* harmony export */ "Select": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.Select; },
18826
18828
  /* harmony export */ "SelectFiltered": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.SelectFiltered; },
18827
18829
  /* harmony export */ "SelectInput": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.SelectInput; },
18828
- /* harmony export */ "Selection": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.Selection; },
18829
- /* harmony export */ "SelectionButton": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.SelectionButton; },
18830
+ /* harmony export */ "SelectInputOption": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.SelectInputOption; },
18830
18831
  /* harmony export */ "Sidebar": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.Sidebar; },
18831
18832
  /* harmony export */ "SidebarFooter": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.SidebarFooter; },
18832
18833
  /* harmony export */ "SidebarFooterHighlight": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.SidebarFooterHighlight; },
@@ -18864,6 +18865,8 @@ __webpack_require__.r(__webpack_exports__);
18864
18865
  /* harmony export */ "TableFoot": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.TableFoot; },
18865
18866
  /* harmony export */ "TableHead": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.TableHead; },
18866
18867
  /* harmony export */ "TableRow": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.TableRow; },
18868
+ /* harmony export */ "TableSelection": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.TableSelection; },
18869
+ /* harmony export */ "TableSelectionButton": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.TableSelectionButton; },
18867
18870
  /* harmony export */ "Tabs": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.Tabs; },
18868
18871
  /* harmony export */ "TabsItem": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.TabsItem; },
18869
18872
  /* harmony export */ "Tag": function() { return /* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.Tag; },