@algolia/satellite 1.0.0-beta.161 → 1.0.0-beta.162

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.
Files changed (163) hide show
  1. package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +2 -2
  2. package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +2 -2
  3. package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +2 -2
  4. package/cjs/Avatars/ApplicationAvatar.d.ts +2 -2
  5. package/cjs/Avatars/UserAvatar.d.ts +2 -2
  6. package/cjs/Badge/Badge.d.ts +3 -3
  7. package/cjs/Badge/Badge.js +6 -3
  8. package/cjs/Banners/Alert/Alert.d.ts +2 -2
  9. package/cjs/Banners/BigBertha/BigBertha.d.ts +2 -2
  10. package/cjs/Banners/Promote/Promote.d.ts +2 -2
  11. package/cjs/Button/ButtonGroup.d.ts +2 -2
  12. package/cjs/Card/components/CardHeader.d.ts +2 -2
  13. package/cjs/Card/components/CardTitle.d.ts +2 -2
  14. package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +2 -2
  15. package/cjs/DatePicker/DatePicker/DatePicker.d.ts +2 -2
  16. package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +2 -2
  17. package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +2 -2
  18. package/cjs/DatePicker/components/Calendar.d.ts +2 -2
  19. package/cjs/DatePicker/components/Display.d.ts +2 -2
  20. package/cjs/DatePicker/components/Footer.d.ts +2 -2
  21. package/cjs/DatePicker/components/FooterActions.d.ts +2 -2
  22. package/cjs/DatePicker/components/Modal.d.ts +2 -2
  23. package/cjs/DatePicker/components/NavBar.d.ts +2 -2
  24. package/cjs/DatePicker/components/SidePanel.d.ts +2 -2
  25. package/cjs/Dropdown/Dropdown.d.ts +20 -34
  26. package/cjs/Dropdown/components/DropdownButtonItem.d.ts +2 -7
  27. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +2 -2
  28. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +2 -2
  29. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +2 -1
  30. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +2 -1
  31. package/cjs/Dropdown/components/DropdownFooterItem.d.ts +2 -2
  32. package/cjs/Dropdown/components/DropdownLinkItem.d.ts +2 -7
  33. package/cjs/Dropdown/components/DropdownRadioItem.d.ts +2 -7
  34. package/cjs/Dropdown/components/DropdownTitle.d.ts +2 -2
  35. package/cjs/Dropdown/components/DropdownToggleItem.d.ts +2 -7
  36. package/cjs/Dropzone/Dropzone.d.ts +2 -2
  37. package/cjs/EmptyState/EmptyState.d.ts +2 -2
  38. package/cjs/Field/Field.d.ts +2 -2
  39. package/cjs/Flag/Flag.d.ts +2 -2
  40. package/cjs/Flag/Flags.d.ts +2 -2
  41. package/cjs/FlexGrid/FlexGrid.d.ts +2 -2
  42. package/cjs/HelpUnderline/HelpUnderline.d.ts +2 -2
  43. package/cjs/Insert/Insert.d.ts +2 -2
  44. package/cjs/KeyboardKey/KeyboardKey.d.ts +2 -2
  45. package/cjs/Medallion/Medallion.d.ts +2 -2
  46. package/cjs/Modal/Modal.d.ts +7 -5
  47. package/cjs/Modal/components/ModalFooter.d.ts +2 -2
  48. package/cjs/Modal/components/ModalSection.d.ts +2 -2
  49. package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +2 -2
  50. package/cjs/Pagination/Pagination/Pagination.d.ts +2 -2
  51. package/cjs/ProgressBar/ProgressBar.d.ts +2 -2
  52. package/cjs/ProgressSpinner/ProgressSpinner.d.ts +2 -2
  53. package/cjs/RadioGroup/RadioGroup.d.ts +6 -6
  54. package/cjs/Satellite/Satellite.d.ts +2 -2
  55. package/cjs/Satellite/Satellite.js +29 -13
  56. package/cjs/ScrollIndicator/ScrollIndicator.d.ts +2 -2
  57. package/cjs/Separator/Separator.d.ts +2 -2
  58. package/cjs/Sidebar/Sidebar.d.ts +2 -2
  59. package/cjs/Sidebar/SidebarButtonLink.d.ts +2 -2
  60. package/cjs/Sidebar/SidebarHeader.d.ts +2 -2
  61. package/cjs/Sidebar/SidebarHeading.d.ts +2 -2
  62. package/cjs/Sidebar/SidebarLink.d.ts +2 -2
  63. package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +2 -2
  64. package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +2 -2
  65. package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +2 -2
  66. package/cjs/Sidebar/SidebarNav.d.ts +2 -2
  67. package/cjs/Switch/Switch.d.ts +2 -2
  68. package/cjs/Switch/SwitchOption.d.ts +2 -2
  69. package/cjs/Tables/DataTable/DataTable.d.ts +4 -2
  70. package/cjs/Tables/DataTable/DataTable.js +9 -4
  71. package/cjs/Tables/DataTable/components/Footer.d.ts +2 -2
  72. package/cjs/Tables/DataTable/components/Loader.d.ts +2 -2
  73. package/cjs/Tables/Table/Table.d.ts +2 -2
  74. package/cjs/Tables/Table/components/TableFooter.d.ts +2 -2
  75. package/cjs/Tabs/ContentTabs.d.ts +2 -2
  76. package/cjs/Tabs/LinkTabs.d.ts +2 -2
  77. package/cjs/Tabs/components/LinkTab.d.ts +2 -2
  78. package/cjs/TextWrap/TextWrap.d.ts +2 -2
  79. package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +2 -2
  80. package/cjs/Tooltip/TooltipWrapper.d.ts +2 -2
  81. package/cjs/UserContent/UserContent.d.ts +2 -2
  82. package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +2 -2
  83. package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +2 -2
  84. package/esm/AutoComplete/components/DefaultOptionItem.d.ts +2 -2
  85. package/esm/Avatars/ApplicationAvatar.d.ts +2 -2
  86. package/esm/Avatars/UserAvatar.d.ts +2 -2
  87. package/esm/Badge/Badge.d.ts +3 -3
  88. package/esm/Badge/Badge.js +6 -3
  89. package/esm/Banners/Alert/Alert.d.ts +2 -2
  90. package/esm/Banners/BigBertha/BigBertha.d.ts +2 -2
  91. package/esm/Banners/Promote/Promote.d.ts +2 -2
  92. package/esm/Button/ButtonGroup.d.ts +2 -2
  93. package/esm/Card/components/CardHeader.d.ts +2 -2
  94. package/esm/Card/components/CardTitle.d.ts +2 -2
  95. package/esm/ClickAwayContainer/ClickAwayContainer.d.ts +2 -2
  96. package/esm/DatePicker/DatePicker/DatePicker.d.ts +2 -2
  97. package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +2 -2
  98. package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +2 -2
  99. package/esm/DatePicker/components/Calendar.d.ts +2 -2
  100. package/esm/DatePicker/components/Display.d.ts +2 -2
  101. package/esm/DatePicker/components/Footer.d.ts +2 -2
  102. package/esm/DatePicker/components/FooterActions.d.ts +2 -2
  103. package/esm/DatePicker/components/Modal.d.ts +2 -2
  104. package/esm/DatePicker/components/NavBar.d.ts +2 -2
  105. package/esm/DatePicker/components/SidePanel.d.ts +2 -2
  106. package/esm/Dropdown/Dropdown.d.ts +20 -34
  107. package/esm/Dropdown/components/DropdownButtonItem.d.ts +2 -7
  108. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +2 -2
  109. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +2 -2
  110. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +2 -1
  111. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +2 -1
  112. package/esm/Dropdown/components/DropdownFooterItem.d.ts +2 -2
  113. package/esm/Dropdown/components/DropdownLinkItem.d.ts +2 -7
  114. package/esm/Dropdown/components/DropdownRadioItem.d.ts +2 -7
  115. package/esm/Dropdown/components/DropdownTitle.d.ts +2 -2
  116. package/esm/Dropdown/components/DropdownToggleItem.d.ts +2 -7
  117. package/esm/Dropzone/Dropzone.d.ts +2 -2
  118. package/esm/EmptyState/EmptyState.d.ts +2 -2
  119. package/esm/Field/Field.d.ts +2 -2
  120. package/esm/Flag/Flag.d.ts +2 -2
  121. package/esm/Flag/Flags.d.ts +2 -2
  122. package/esm/FlexGrid/FlexGrid.d.ts +2 -2
  123. package/esm/HelpUnderline/HelpUnderline.d.ts +2 -2
  124. package/esm/Insert/Insert.d.ts +2 -2
  125. package/esm/KeyboardKey/KeyboardKey.d.ts +2 -2
  126. package/esm/Medallion/Medallion.d.ts +2 -2
  127. package/esm/Modal/Modal.d.ts +7 -5
  128. package/esm/Modal/components/ModalFooter.d.ts +2 -2
  129. package/esm/Modal/components/ModalSection.d.ts +2 -2
  130. package/esm/Pagination/CompactPagination/CompactPagination.d.ts +2 -2
  131. package/esm/Pagination/Pagination/Pagination.d.ts +2 -2
  132. package/esm/ProgressBar/ProgressBar.d.ts +2 -2
  133. package/esm/ProgressSpinner/ProgressSpinner.d.ts +2 -2
  134. package/esm/RadioGroup/RadioGroup.d.ts +6 -6
  135. package/esm/Satellite/Satellite.d.ts +2 -2
  136. package/esm/Satellite/Satellite.js +30 -15
  137. package/esm/ScrollIndicator/ScrollIndicator.d.ts +2 -2
  138. package/esm/Separator/Separator.d.ts +2 -2
  139. package/esm/Sidebar/Sidebar.d.ts +2 -2
  140. package/esm/Sidebar/SidebarButtonLink.d.ts +2 -2
  141. package/esm/Sidebar/SidebarHeader.d.ts +2 -2
  142. package/esm/Sidebar/SidebarHeading.d.ts +2 -2
  143. package/esm/Sidebar/SidebarLink.d.ts +2 -2
  144. package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +2 -2
  145. package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +2 -2
  146. package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +2 -2
  147. package/esm/Sidebar/SidebarNav.d.ts +2 -2
  148. package/esm/Switch/Switch.d.ts +2 -2
  149. package/esm/Switch/SwitchOption.d.ts +2 -2
  150. package/esm/Tables/DataTable/DataTable.d.ts +4 -2
  151. package/esm/Tables/DataTable/DataTable.js +9 -4
  152. package/esm/Tables/DataTable/components/Footer.d.ts +2 -2
  153. package/esm/Tables/DataTable/components/Loader.d.ts +2 -2
  154. package/esm/Tables/Table/Table.d.ts +2 -2
  155. package/esm/Tables/Table/components/TableFooter.d.ts +2 -2
  156. package/esm/Tabs/ContentTabs.d.ts +2 -2
  157. package/esm/Tabs/LinkTabs.d.ts +2 -2
  158. package/esm/Tabs/components/LinkTab.d.ts +2 -2
  159. package/esm/TextWrap/TextWrap.d.ts +2 -2
  160. package/esm/Tooltip/OverflowTooltipWrapper.d.ts +2 -2
  161. package/esm/Tooltip/TooltipWrapper.d.ts +2 -2
  162. package/esm/UserContent/UserContent.d.ts +2 -2
  163. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import type { FunctionComponent, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export declare type FlexGridDirection = "row" | "column";
3
3
  export declare type FlexGridAlignment = "leading" | "trailing" | "center" | "fill" | "baseline";
4
4
  export declare type FlexGridDistribution = "equalSpacing" | "leading" | "trailing" | "center" | "fill" | "fillEvenly";
@@ -47,5 +47,5 @@ export interface FlexGridProps {
47
47
  spacing?: FlexGridSpacing;
48
48
  children: ReactNode;
49
49
  }
50
- export declare const FlexGrid: FunctionComponent<FlexGridProps>;
50
+ export declare const FlexGrid: VFC<FlexGridProps>;
51
51
  export default FlexGrid;
@@ -1,4 +1,4 @@
1
- import type { FunctionComponent } from "react";
1
+ import type { VFC } from "react";
2
2
  import { TooltipWrapperProps } from "../Tooltip";
3
3
  import type { TooltipWrapperBaseProps } from "../Tooltip/types";
4
4
  export declare type HelpUnderlineProps = {
@@ -7,5 +7,5 @@ export declare type HelpUnderlineProps = {
7
7
  tooltipContent: TooltipWrapperProps["content"];
8
8
  children: string;
9
9
  } & Omit<TooltipWrapperBaseProps, "children">;
10
- export declare const HelpUnderline: FunctionComponent<HelpUnderlineProps>;
10
+ export declare const HelpUnderline: VFC<HelpUnderlineProps>;
11
11
  export default HelpUnderline;
@@ -1,4 +1,4 @@
1
- import type { FC, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  import { BadgeVariants } from "../Badge";
3
3
  declare type InsertContext = {
4
4
  label: string;
@@ -41,5 +41,5 @@ export interface InsertProps {
41
41
  * ## Accessibility
42
42
  * TODO
43
43
  */
44
- export declare const Insert: FC<InsertProps>;
44
+ export declare const Insert: VFC<InsertProps>;
45
45
  export default Insert;
@@ -1,7 +1,7 @@
1
- import type { FC } from "react";
1
+ import type { VFC } from "react";
2
2
  export interface KeyboardKeyProps {
3
3
  /** @ignore */
4
4
  className?: string;
5
5
  value: string;
6
6
  }
7
- export declare const KeyboardKey: FC<KeyboardKeyProps>;
7
+ export declare const KeyboardKey: VFC<KeyboardKeyProps>;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { VFC } from "react";
2
2
  import type { IconComponentType } from "../types";
3
3
  import type { MedallionSize, MedallionVariant } from "./types";
4
4
  export interface MedallionProps {
@@ -7,5 +7,5 @@ export interface MedallionProps {
7
7
  size?: MedallionSize;
8
8
  className?: string;
9
9
  }
10
- export declare const Medallion: ({ icon: Icon, variant, size, className }: MedallionProps) => JSX.Element;
10
+ export declare const Medallion: VFC<MedallionProps>;
11
11
  export default Medallion;
@@ -1,5 +1,7 @@
1
- import type { ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  import type { XOR } from "../types";
3
+ import ModalFooter from "./components/ModalFooter";
4
+ import ModalSection from "./components/ModalSection";
3
5
  export declare type ModalSizeVariant = "medium" | "large";
4
6
  export declare type ModalLocale = {
5
7
  dismissText?: string;
@@ -46,9 +48,9 @@ export declare type ModalProps = XOR<ModalControlledProps, ModalUncontrolledProp
46
48
  autoFocusOnOpenElement?: HTMLElement | null | false;
47
49
  children: ReactNode;
48
50
  };
49
- export declare const Modal: {
50
- ({ title, className, children, open, onDismiss, fullBleed, animate, hideCloseIcon, size, centerY, autoFocusOnOpenElement, autoFocusOnCloseElement, triggerButton, locale: propsLocale, }: ModalProps): JSX.Element;
51
- Footer: import("react").FunctionComponent<import("./components/ModalFooter").ModalFooterProps>;
52
- Section: ({ children, className, fullBleed }: import("./components/ModalSection").ModalSectionProps) => JSX.Element;
51
+ declare type ModalSubComponents = {
52
+ Footer: typeof ModalFooter;
53
+ Section: typeof ModalSection;
53
54
  };
55
+ export declare const Modal: VFC<ModalProps> & ModalSubComponents;
54
56
  export default Modal;
@@ -1,6 +1,6 @@
1
- import type { FunctionComponent, HTMLAttributes, ReactNode } from "react";
1
+ import type { HTMLAttributes, ReactNode, VFC } from "react";
2
2
  export declare type ModalFooterProps = HTMLAttributes<HTMLElement> & {
3
3
  children: ReactNode;
4
4
  };
5
- export declare const ModalFooter: FunctionComponent<ModalFooterProps>;
5
+ export declare const ModalFooter: VFC<ModalFooterProps>;
6
6
  export default ModalFooter;
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export declare type ModalSectionProps = {
3
3
  children: ReactNode;
4
4
  /** @ignore */
@@ -6,5 +6,5 @@ export declare type ModalSectionProps = {
6
6
  /** Negates the modal default horizontal padding when true */
7
7
  fullBleed?: boolean;
8
8
  };
9
- export declare const ModalSection: ({ children, className, fullBleed }: ModalSectionProps) => JSX.Element;
9
+ export declare const ModalSection: VFC<ModalSectionProps>;
10
10
  export default ModalSection;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { VFC } from "react";
2
2
  export declare type CompactPaginationLabel = "complete" | "compact" | "none";
3
3
  export declare type CompactPaginationLocale = {
4
4
  goToFirstPage?: string;
@@ -27,5 +27,5 @@ export declare type CompactPaginationProps = DeterminateCompactPaginationProps |
27
27
  export declare const isDeterminateCompactPaginationProps: (props: CompactPaginationProps) => props is DeterminateCompactPaginationProps;
28
28
  /** @ignore */
29
29
  export declare const isIndeterminateCompactPaginationProps: (props: CompactPaginationProps) => props is IndeterminateCompactPaginationProps;
30
- export declare const CompactPagination: (props: CompactPaginationProps) => JSX.Element;
30
+ export declare const CompactPagination: VFC<CompactPaginationProps>;
31
31
  export default CompactPagination;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { VFC } from "react";
2
2
  export declare type PaginationLocale = {
3
3
  goToPage?(page: number): string;
4
4
  goToNextPage?: string;
@@ -18,5 +18,5 @@ export interface PaginationProps {
18
18
  * - Don't use on list with less than 20 items
19
19
  * - Place the pagination at the bottom of the split item
20
20
  */
21
- export declare const Pagination: ({ currentPage, nbPages, onChange, maxButtons: maxButtonsParam, locale: propsLocale, }: PaginationProps) => JSX.Element;
21
+ export declare const Pagination: VFC<PaginationProps>;
22
22
  export default Pagination;
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes } from "react";
1
+ import type { HTMLAttributes, VFC } from "react";
2
2
  export interface ProgressBarProps extends HTMLAttributes<HTMLDivElement> {
3
3
  barClassName?: string;
4
4
  value: number;
@@ -9,5 +9,5 @@ export interface ProgressBarProps extends HTMLAttributes<HTMLDivElement> {
9
9
  * - Progress bars show an indication of how much of the task has been completed and how much is still left.
10
10
  * - You should indicate either a percentage or other numeric values (such as - 234/4092 queries processed)
11
11
  */
12
- export declare const ProgressBar: ({ value, className, barClassName, ...props }: ProgressBarProps) => JSX.Element;
12
+ export declare const ProgressBar: VFC<ProgressBarProps>;
13
13
  export default ProgressBar;
@@ -1,9 +1,9 @@
1
- import type { SVGAttributes } from "react";
1
+ import type { SVGAttributes, VFC } from "react";
2
2
  export declare type ProgressSpinnerAlign = "left" | "center" | "right";
3
3
  export interface ProgressSpinnerProps extends SVGAttributes<SVGSVGElement> {
4
4
  size?: number;
5
5
  thickness?: number;
6
6
  align?: ProgressSpinnerAlign;
7
7
  }
8
- export declare const ProgressSpinner: ({ className, size, thickness, align, ...svgProps }: ProgressSpinnerProps) => JSX.Element;
8
+ export declare const ProgressSpinner: VFC<ProgressSpinnerProps>;
9
9
  export default ProgressSpinner;
@@ -1,4 +1,4 @@
1
- import type { FunctionComponent, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export interface RadioGroupProps {
3
3
  className?: string;
4
4
  name?: string;
@@ -17,7 +17,10 @@ export interface RadioGroupItemProps {
17
17
  disabled?: boolean;
18
18
  children?: ReactNode;
19
19
  }
20
- export declare const RadioGroupItem: FunctionComponent<RadioGroupItemProps>;
20
+ declare type RadioGroupSubComponents = {
21
+ Item: VFC<RadioGroupItemProps>;
22
+ };
23
+ export declare const RadioGroupItem: VFC<RadioGroupItemProps>;
21
24
  /**
22
25
  * Use radio buttons when users have to make a single selection from a list of options.
23
26
  *
@@ -33,8 +36,5 @@ export declare const RadioGroupItem: FunctionComponent<RadioGroupItemProps>;
33
36
  * - If you need to have an unselected state, just add a radio button with a *None* option.
34
37
  * - Sometimes, you might want to include an *Other* option (Usually followed by a text input if a user needs to provide a specific answer)
35
38
  */
36
- export declare const RadioGroup: {
37
- ({ className, name, value, disabled, textPosition, children, onChange }: RadioGroupProps): JSX.Element;
38
- Item: FunctionComponent<RadioGroupItemProps>;
39
- };
39
+ export declare const RadioGroup: VFC<RadioGroupProps> & RadioGroupSubComponents;
40
40
  export default RadioGroup;
@@ -1,4 +1,4 @@
1
- import { type FunctionComponent, type ReactNode } from "react";
1
+ import { type ReactNode, type VFC } from "react";
2
2
  import type { ComponentsLocales } from "./locale";
3
3
  import type { SatelliteRouter } from "./SatelliteRouter";
4
4
  export interface SatelliteProps {
@@ -7,5 +7,5 @@ export interface SatelliteProps {
7
7
  portalTarget?: HTMLElement;
8
8
  children: ReactNode;
9
9
  }
10
- export declare const Satellite: FunctionComponent<SatelliteProps>;
10
+ export declare const Satellite: VFC<SatelliteProps>;
11
11
  export default Satellite;
@@ -5,41 +5,57 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports["default"] = exports.Satellite = void 0;
8
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
8
  var _react = require("react");
10
9
  var _SatelliteContext = _interopRequireDefault(require("./SatelliteContext"));
11
10
  var _SatelliteRouter = require("./SatelliteRouter");
12
11
  var _jsxRuntime = require("react/jsx-runtime");
12
+ var DEFAULT_PORTAL_ID = "satellite-portal";
13
+ var createDefaultPortalTarget = function createDefaultPortalTarget() {
14
+ if (typeof document === "undefined") {
15
+ return null;
16
+ }
17
+ var div = document.createElement("div");
18
+ div.setAttribute("id", DEFAULT_PORTAL_ID);
19
+ div.setAttribute("data-testid", DEFAULT_PORTAL_ID);
20
+ return div;
21
+ };
22
+ var isDefaultPortalTarget = function isDefaultPortalTarget(el) {
23
+ return el.getAttribute("id") === DEFAULT_PORTAL_ID;
24
+ };
13
25
  var Satellite = function Satellite(_ref) {
26
+ var _ref2;
14
27
  var _ref$router = _ref.router,
15
28
  router = _ref$router === void 0 ? _SatelliteRouter.router : _ref$router,
16
29
  locales = _ref.locales,
17
30
  _ref$portalTarget = _ref.portalTarget,
18
31
  customPortalTarget = _ref$portalTarget === void 0 ? null : _ref$portalTarget,
19
32
  children = _ref.children;
20
- var _useState = (0, _react.useState)(null),
21
- _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
22
- defaultPortalTarget = _useState2[0],
23
- setDefaultPortalTarget = _useState2[1];
24
- var portalTarget = customPortalTarget !== null && customPortalTarget !== void 0 ? customPortalTarget : defaultPortalTarget;
33
+ var portalTarget = (_ref2 = customPortalTarget !== null && customPortalTarget !== void 0 ? customPortalTarget : document.getElementById(DEFAULT_PORTAL_ID)) !== null && _ref2 !== void 0 ? _ref2 : createDefaultPortalTarget();
34
+
35
+ // Auto append / remove default target as necessary
25
36
  (0, _react.useEffect)(function () {
26
- if (!portalTarget) return;
37
+ if (!portalTarget || !isDefaultPortalTarget(portalTarget)) return;
38
+ document.body.appendChild(portalTarget);
39
+ return function () {
40
+ return portalTarget.remove();
41
+ };
42
+ }, [portalTarget]);
43
+
44
+ // Radix adds pointer-events: none; on the body for its modal, so we need to reenable it for other portaled elements (tooltips, menus, autocomplete)
45
+ (0, _react.useEffect)(function () {
46
+ if (!portalTarget || typeof document === "undefined") return;
27
47
  if (portalTarget === document.body) {
28
48
  console.warn("Avoid using the document body as a portal target.");
29
49
  }
30
-
31
- // Radix adds pointer-events: none; on the body for its modal, so we need to reenable it for other portaled elements (tooltips, menus, autocomplete)
32
50
  portalTarget.style.pointerEvents = "auto";
33
51
  }, [portalTarget]);
34
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SatelliteContext["default"].Provider, {
52
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SatelliteContext["default"].Provider, {
35
53
  value: {
36
54
  router: router,
37
55
  locales: locales,
38
56
  portalTarget: portalTarget
39
57
  },
40
- children: [children, !customPortalTarget && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
41
- ref: setDefaultPortalTarget
42
- })]
58
+ children: children
43
59
  });
44
60
  };
45
61
  exports.Satellite = Satellite;
@@ -1,4 +1,4 @@
1
- import type { CSSProperties, FunctionComponent, ReactHTML, ReactNode } from "react";
1
+ import type { CSSProperties, ReactHTML, ReactNode, VFC } from "react";
2
2
  export declare type ScrollIndicatorVariant = "light" | "dark";
3
3
  export interface ScrollIndicatorProps {
4
4
  wrapperClassName?: string;
@@ -10,5 +10,5 @@ export interface ScrollIndicatorProps {
10
10
  variant?: ScrollIndicatorVariant;
11
11
  children: ReactNode;
12
12
  }
13
- export declare const ScrollIndicator: FunctionComponent<ScrollIndicatorProps>;
13
+ export declare const ScrollIndicator: VFC<ScrollIndicatorProps>;
14
14
  export default ScrollIndicator;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
1
  import * as RadixSeparator from "@radix-ui/react-separator";
2
+ import type { VFC } from "react";
3
3
  export interface SeparatorProps {
4
4
  className?: string;
5
5
  orientation?: RadixSeparator.SeparatorProps["orientation"];
6
6
  }
7
- export declare const Separator: ({ className, orientation }: SeparatorProps) => JSX.Element;
7
+ export declare const Separator: VFC<SeparatorProps>;
8
8
  export default Separator;
@@ -1,4 +1,4 @@
1
- import type { FC, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  import type { SidebarLocale, SidebarLocation, SidebarVariant } from "./types";
3
3
  export interface SidebarProps {
4
4
  id?: string;
@@ -32,4 +32,4 @@ export interface SidebarProps {
32
32
  location: SidebarLocation;
33
33
  children?: ReactNode;
34
34
  }
35
- export declare const Sidebar: FC<SidebarProps>;
35
+ export declare const Sidebar: VFC<SidebarProps>;
@@ -1,4 +1,4 @@
1
- import type { FC, MouseEventHandler, ReactNode } from "react";
1
+ import type { MouseEventHandler, ReactNode, VFC } from "react";
2
2
  import type { IconComponentType } from "../types";
3
3
  export declare type SidebarButtonLinkIcon = IconComponentType | {
4
4
  active: IconComponentType;
@@ -17,4 +17,4 @@ export interface SidebarButtonLinkProps {
17
17
  tooltipContent?: ReactNode;
18
18
  children: ReactNode;
19
19
  }
20
- export declare const SidebarButtonLink: FC<SidebarButtonLinkProps>;
20
+ export declare const SidebarButtonLink: VFC<SidebarButtonLinkProps>;
@@ -1,6 +1,6 @@
1
- import type { FC, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export declare type SidebarHeaderProps = {
3
3
  className?: string;
4
4
  children?: ReactNode;
5
5
  };
6
- export declare const SidebarHeader: FC<SidebarHeaderProps>;
6
+ export declare const SidebarHeader: VFC<SidebarHeaderProps>;
@@ -1,7 +1,7 @@
1
- import type { FC, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export declare type SidebarHeadingProps = {
3
3
  id?: string;
4
4
  className?: string;
5
5
  children: ReactNode;
6
6
  };
7
- export declare const SidebarHeading: FC<SidebarHeadingProps>;
7
+ export declare const SidebarHeading: VFC<SidebarHeadingProps>;
@@ -1,4 +1,4 @@
1
- import type { FC, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  import type { IconComponentType } from "../types";
3
3
  export declare type SidebarLinkProps = {
4
4
  icon: IconComponentType;
@@ -6,4 +6,4 @@ export declare type SidebarLinkProps = {
6
6
  disabled?: boolean;
7
7
  children: ReactNode;
8
8
  } & Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "id" | "className" | "target" | "rel" | "aria-label" | "onClick">;
9
- export declare const SidebarLink: FC<SidebarLinkProps>;
9
+ export declare const SidebarLink: VFC<SidebarLinkProps>;
@@ -1,8 +1,8 @@
1
- import type { FC } from "react";
1
+ import type { VFC } from "react";
2
2
  declare type ActiveLinkIndicatorProps = {
3
3
  className?: string;
4
4
  activeIndex?: number;
5
5
  linksCount: number;
6
6
  };
7
- export declare const ActiveLinkIndicator: FC<ActiveLinkIndicatorProps>;
7
+ export declare const ActiveLinkIndicator: VFC<ActiveLinkIndicatorProps>;
8
8
  export {};
@@ -1,7 +1,7 @@
1
- import type { FC } from "react";
1
+ import type { VFC } from "react";
2
2
  import type { SidebarLinksGroupLink } from "./types";
3
3
  declare type LinkProps = SidebarLinksGroupLink & {
4
4
  active: boolean;
5
5
  };
6
- export declare const SidebarGroupLink: FC<LinkProps>;
6
+ export declare const SidebarGroupLink: VFC<LinkProps>;
7
7
  export {};
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  import type { IconComponentType } from "../../types";
3
3
  import type { SidebarLinksGroupLink } from "./types";
4
4
  declare type SidebarLinksGroupBaseProps = {
@@ -19,5 +19,5 @@ export declare type CollapsibleSidebarLinksGroupProps = SidebarLinksGroupBasePro
19
19
  onGroupToggle?: (open: boolean) => void;
20
20
  };
21
21
  export declare type SidebarLinksGroupProps = StaticSidebarLinksGroupProps | CollapsibleSidebarLinksGroupProps;
22
- export declare const SidebarLinksGroup: (props: SidebarLinksGroupProps) => JSX.Element;
22
+ export declare const SidebarLinksGroup: VFC<SidebarLinksGroupProps>;
23
23
  export {};
@@ -1,4 +1,4 @@
1
- import type { FC, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export declare type SidebarNavSpacing = "small" | "large";
3
3
  export declare type SidebarNavProps = {
4
4
  id?: string;
@@ -7,4 +7,4 @@ export declare type SidebarNavProps = {
7
7
  label: string;
8
8
  children: ReactNode;
9
9
  };
10
- export declare const SidebarNav: FC<SidebarNavProps>;
10
+ export declare const SidebarNav: VFC<SidebarNavProps>;
@@ -1,4 +1,4 @@
1
- import type { FunctionComponent, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  import type { SwitchSize } from "./types";
3
3
  export interface SwitchProps {
4
4
  className?: string;
@@ -9,5 +9,5 @@ export interface SwitchProps {
9
9
  size?: SwitchSize;
10
10
  name?: string;
11
11
  }
12
- export declare const Switch: FunctionComponent<SwitchProps>;
12
+ export declare const Switch: VFC<SwitchProps>;
13
13
  export default Switch;
@@ -1,8 +1,8 @@
1
- import type { FunctionComponent, ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export interface SwitchOptionProps {
3
3
  value: string;
4
4
  disabled?: boolean;
5
5
  children: ReactNode;
6
6
  }
7
- export declare const SwitchOption: FunctionComponent<SwitchOptionProps>;
7
+ export declare const SwitchOption: VFC<SwitchOptionProps>;
8
8
  export default SwitchOption;
@@ -1,6 +1,7 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { ColumnDefinition, DataConfiguration, GetItemId, PaginationConfiguration, Row, SelectMode, Sorting, Status } from "./types";
3
3
  declare type CanSelectItem<Item> = (item: Item, idx: number) => boolean;
4
+ export declare type SortMode = "single" | "multi";
4
5
  export declare type DataTableLocale = {
5
6
  selectAllButton?: string;
6
7
  noDataTitle?: string;
@@ -14,7 +15,6 @@ interface BaseDataTableProps<Item> {
14
15
  data: Item[];
15
16
  itemId?: GetItemId<Item>;
16
17
  pagination?: PaginationConfiguration;
17
- sorting?: Sorting[];
18
18
  onChange?(dataConfiguration: DataConfiguration): void;
19
19
  status?: Status;
20
20
  noDataContent?: ReactNode;
@@ -22,6 +22,8 @@ interface BaseDataTableProps<Item> {
22
22
  columns: ColumnDefinition<Item>[];
23
23
  canHoverRow?(row: Row<Item>): boolean;
24
24
  onRowHoveredChanged?(row: Row<Item> | null): void;
25
+ sorting?: Sorting[];
26
+ sortMode?: SortMode;
25
27
  locale?: DataTableLocale;
26
28
  }
27
29
  declare type DataTableWithSelectMode<Item> = {
@@ -56,5 +58,5 @@ export declare type DataTableProps<Item> = BaseDataTableProps<Item> & (DataTable
56
58
  * - If a cell is empty or unavailable, keep the cell empty to reduce noise and help with legibility.
57
59
  * - Truncate long text to make it fit into a cell. However, choose column width wisely based on expected values, and adjust the table accordingly
58
60
  */
59
- export declare const DataTable: <Item extends {}>({ data, itemId, columns, onChange, status, noDataContent, errorContent, sorting, pagination, selectMode, selection, onSelectionChange, canSelectItem, canHoverRow, onRowHoveredChanged, locale: propsLocale, }: DataTableProps<Item>) => JSX.Element;
61
+ export declare const DataTable: <Item extends {}>({ data, itemId, columns, onChange, status, noDataContent, errorContent, sorting, sortMode, pagination, selectMode, selection, onSelectionChange, canSelectItem, canHoverRow, onRowHoveredChanged, locale: propsLocale, }: DataTableProps<Item>) => JSX.Element;
60
62
  export default DataTable;
@@ -73,6 +73,8 @@ var DataTable = function DataTable(_ref) {
73
73
  errorContent = _ref.errorContent,
74
74
  _ref$sorting = _ref.sorting,
75
75
  sorting = _ref$sorting === void 0 ? [] : _ref$sorting,
76
+ _ref$sortMode = _ref.sortMode,
77
+ sortMode = _ref$sortMode === void 0 ? "single" : _ref$sortMode,
76
78
  _ref$pagination = _ref.pagination,
77
79
  pagination = _ref$pagination === void 0 ? false : _ref$pagination,
78
80
  _ref$selectMode = _ref.selectMode,
@@ -189,12 +191,15 @@ var DataTable = function DataTable(_ref) {
189
191
  };
190
192
  });
191
193
  var internalSorting = computedColumns.map(function (c) {
192
- var _sorting$find$, _sorting$find;
193
- return [c.id, c.sort ? (_sorting$find$ = (_sorting$find = sorting.find(function (_ref5) {
194
+ var _sorting$find;
195
+ if (c.sort === undefined) return [c.id, "none"];
196
+ var columnDirection = (_sorting$find = sorting.find(function (_ref5) {
194
197
  var _ref6 = (0, _slicedToArray2["default"])(_ref5, 1),
195
198
  columnId = _ref6[0];
196
199
  return columnId === c.id;
197
- })) === null || _sorting$find === void 0 ? void 0 : _sorting$find[1]) !== null && _sorting$find$ !== void 0 ? _sorting$find$ : "desc" : "none"];
200
+ })) === null || _sorting$find === void 0 ? void 0 : _sorting$find[1];
201
+ if (columnDirection) return [c.id, columnDirection];
202
+ return [c.id, "desc"];
198
203
  });
199
204
  var shouldRenderPagination = function shouldRenderPagination() {
200
205
  if ((0, _utils2.isDeterminatePagination)(pagination)) return pagination && pagination.totalItemsCount > 0;
@@ -210,7 +215,7 @@ var DataTable = function DataTable(_ref) {
210
215
  var _ref8 = (0, _slicedToArray2["default"])(_ref7, 2),
211
216
  colId = _ref8[0],
212
217
  d = _ref8[1];
213
- return columnId === colId ? [columnId, direction] : [colId, d];
218
+ return columnId === colId ? [columnId, direction] : [colId, sortMode === "multi" ? d : "none"];
214
219
  });
215
220
  onChange === null || onChange === void 0 ? void 0 : onChange({
216
221
  pagination: pagination,
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import type { VFC } from "react";
2
2
  import type { DataConfiguration, PaginationConfiguration } from "../types";
3
3
  export interface FooterProps {
4
4
  pagination: PaginationConfiguration;
5
5
  onChange(dataConfiguration: DataConfiguration): void;
6
6
  }
7
- export declare const Footer: ({ pagination, onChange }: FooterProps) => JSX.Element | null;
7
+ export declare const Footer: VFC<FooterProps>;
8
8
  export default Footer;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import { VFC } from "react";
2
2
  import type { DataTableLocale } from "../DataTable";
3
3
  export interface LoaderProps {
4
4
  className?: string;
5
5
  locale: Required<DataTableLocale>;
6
6
  }
7
- export declare const Loader: ({ className, locale }: LoaderProps) => JSX.Element;
7
+ export declare const Loader: VFC<LoaderProps>;
8
8
  export default Loader;
@@ -1,4 +1,4 @@
1
- import type { DetailedHTMLProps, ReactNode, TableHTMLAttributes } from "react";
1
+ import type { DetailedHTMLProps, ReactNode, TableHTMLAttributes, VFC } from "react";
2
2
  export interface TableProps extends DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement> {
3
3
  footer?: ReactNode;
4
4
  smallFooter?: boolean;
@@ -24,5 +24,5 @@ export interface TableProps extends DetailedHTMLProps<TableHTMLAttributes<HTMLTa
24
24
  * - If a cell is empty or unavailable, keep the cell empty to reduce noise and help with legibility.
25
25
  * - Truncate long text to make it fit into a cell. However, choose column width wisely based on expected values, and adjust the table accordingly
26
26
  */
27
- export declare const Table: ({ className, footer, smallFooter, hasActions, highlight, ...props }: TableProps) => JSX.Element;
27
+ export declare const Table: VFC<TableProps>;
28
28
  export default Table;
@@ -1,8 +1,8 @@
1
- import type { ReactNode } from "react";
1
+ import type { ReactNode, VFC } from "react";
2
2
  export declare type FooterSizes = "default" | "small";
3
3
  export interface FooterProps {
4
4
  size?: FooterSizes;
5
5
  children?: ReactNode;
6
6
  }
7
- export declare const TableFooter: ({ size, children }: FooterProps) => JSX.Element;
7
+ export declare const TableFooter: VFC<FooterProps>;
8
8
  export default TableFooter;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { VFC } from "react";
2
2
  import type { ContentTabsProps } from "./types";
3
- export declare const ContentTabs: ({ className, tabs, tabIndex, defaultIndex, onChange }: ContentTabsProps) => JSX.Element;
3
+ export declare const ContentTabs: VFC<ContentTabsProps>;
4
4
  export default ContentTabs;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import type { VFC } from "react";
2
2
  import type { LinkTabsProps, UrlMatcher } from "./types";
3
3
  export declare const defaultUrlMatcher: UrlMatcher;
4
4
  /**
@@ -29,5 +29,5 @@ export declare const defaultUrlMatcher: UrlMatcher;
29
29
  * - Use more than one row of tabs. Multiple rows create jumping UI elements, which make it impossible for users to remember which tabs they've already visited
30
30
  * - Place the tab on the sides or bottom of the page, where users often overlook them
31
31
  */
32
- export declare const LinkTabs: ({ className, tabs, onTabClick, urlMatcher }: LinkTabsProps) => JSX.Element;
32
+ export declare const LinkTabs: VFC<LinkTabsProps>;
33
33
  export default LinkTabs;
@@ -1,9 +1,9 @@
1
- import type { MouseEventHandler } from "react";
1
+ import type { MouseEventHandler, VFC } from "react";
2
2
  import type { LinkTab as LinkTabType } from "../types";
3
3
  export interface LinkTabProps {
4
4
  tab: LinkTabType;
5
5
  onClick?: MouseEventHandler<HTMLAnchorElement>;
6
6
  selected: boolean;
7
7
  }
8
- export declare const LinkTab: ({ tab, onClick, selected }: LinkTabProps) => JSX.Element;
8
+ export declare const LinkTab: VFC<LinkTabProps>;
9
9
  export default LinkTab;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import type { VFC } from "react";
2
2
  export interface TextWrapProps extends Omit<JSX.IntrinsicElements["span"], "children"> {
3
3
  /** The max number of lines before the text is cut with an ellipsis */
4
4
  maxLines?: number;
5
5
  children: string;
6
6
  }
7
- export declare const TextWrap: ({ children: text, maxLines, style, ...spanProps }: TextWrapProps) => JSX.Element;
7
+ export declare const TextWrap: VFC<TextWrapProps>;
8
8
  export default TextWrap;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import { VFC } from "react";
2
2
  import type { TooltipWrapperBaseProps } from "./types";
3
- export declare const OverflowTooltipWrapper: ({ children, ...props }: TooltipWrapperBaseProps) => JSX.Element;
3
+ export declare const OverflowTooltipWrapper: VFC<TooltipWrapperBaseProps>;
@@ -1,4 +1,4 @@
1
- import { ReactElement, ReactNode, ReactText } from "react";
1
+ import { ReactElement, ReactNode, ReactText, VFC } from "react";
2
2
  import type { TooltipWrapperBaseProps } from "./types";
3
3
  export interface TooltipWrapperProps extends TooltipWrapperBaseProps {
4
4
  /**
@@ -12,4 +12,4 @@ export interface TooltipWrapperProps extends TooltipWrapperBaseProps {
12
12
  content: ReactNode;
13
13
  children: ReactElement | ReactText;
14
14
  }
15
- export declare const TooltipWrapper: ({ show, delay, hideDelay, content: tooltipContent, side, sideOffset, align, alignOffset, tooltipVariant, tooltipClassName, children, noArrow, interactive, avoidCollisions, }: TooltipWrapperProps) => JSX.Element;
15
+ export declare const TooltipWrapper: VFC<TooltipWrapperProps>;