@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.
- package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +2 -2
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +2 -2
- package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +2 -2
- package/cjs/Avatars/ApplicationAvatar.d.ts +2 -2
- package/cjs/Avatars/UserAvatar.d.ts +2 -2
- package/cjs/Badge/Badge.d.ts +3 -3
- package/cjs/Badge/Badge.js +6 -3
- package/cjs/Banners/Alert/Alert.d.ts +2 -2
- package/cjs/Banners/BigBertha/BigBertha.d.ts +2 -2
- package/cjs/Banners/Promote/Promote.d.ts +2 -2
- package/cjs/Button/ButtonGroup.d.ts +2 -2
- package/cjs/Card/components/CardHeader.d.ts +2 -2
- package/cjs/Card/components/CardTitle.d.ts +2 -2
- package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +2 -2
- package/cjs/DatePicker/DatePicker/DatePicker.d.ts +2 -2
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +2 -2
- package/cjs/DatePicker/components/Calendar.d.ts +2 -2
- package/cjs/DatePicker/components/Display.d.ts +2 -2
- package/cjs/DatePicker/components/Footer.d.ts +2 -2
- package/cjs/DatePicker/components/FooterActions.d.ts +2 -2
- package/cjs/DatePicker/components/Modal.d.ts +2 -2
- package/cjs/DatePicker/components/NavBar.d.ts +2 -2
- package/cjs/DatePicker/components/SidePanel.d.ts +2 -2
- package/cjs/Dropdown/Dropdown.d.ts +20 -34
- package/cjs/Dropdown/components/DropdownButtonItem.d.ts +2 -7
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +2 -2
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +2 -2
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +2 -1
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +2 -1
- package/cjs/Dropdown/components/DropdownFooterItem.d.ts +2 -2
- package/cjs/Dropdown/components/DropdownLinkItem.d.ts +2 -7
- package/cjs/Dropdown/components/DropdownRadioItem.d.ts +2 -7
- package/cjs/Dropdown/components/DropdownTitle.d.ts +2 -2
- package/cjs/Dropdown/components/DropdownToggleItem.d.ts +2 -7
- package/cjs/Dropzone/Dropzone.d.ts +2 -2
- package/cjs/EmptyState/EmptyState.d.ts +2 -2
- package/cjs/Field/Field.d.ts +2 -2
- package/cjs/Flag/Flag.d.ts +2 -2
- package/cjs/Flag/Flags.d.ts +2 -2
- package/cjs/FlexGrid/FlexGrid.d.ts +2 -2
- package/cjs/HelpUnderline/HelpUnderline.d.ts +2 -2
- package/cjs/Insert/Insert.d.ts +2 -2
- package/cjs/KeyboardKey/KeyboardKey.d.ts +2 -2
- package/cjs/Medallion/Medallion.d.ts +2 -2
- package/cjs/Modal/Modal.d.ts +7 -5
- package/cjs/Modal/components/ModalFooter.d.ts +2 -2
- package/cjs/Modal/components/ModalSection.d.ts +2 -2
- package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +2 -2
- package/cjs/Pagination/Pagination/Pagination.d.ts +2 -2
- package/cjs/ProgressBar/ProgressBar.d.ts +2 -2
- package/cjs/ProgressSpinner/ProgressSpinner.d.ts +2 -2
- package/cjs/RadioGroup/RadioGroup.d.ts +6 -6
- package/cjs/Satellite/Satellite.d.ts +2 -2
- package/cjs/Satellite/Satellite.js +29 -13
- package/cjs/ScrollIndicator/ScrollIndicator.d.ts +2 -2
- package/cjs/Separator/Separator.d.ts +2 -2
- package/cjs/Sidebar/Sidebar.d.ts +2 -2
- package/cjs/Sidebar/SidebarButtonLink.d.ts +2 -2
- package/cjs/Sidebar/SidebarHeader.d.ts +2 -2
- package/cjs/Sidebar/SidebarHeading.d.ts +2 -2
- package/cjs/Sidebar/SidebarLink.d.ts +2 -2
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +2 -2
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +2 -2
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +2 -2
- package/cjs/Sidebar/SidebarNav.d.ts +2 -2
- package/cjs/Switch/Switch.d.ts +2 -2
- package/cjs/Switch/SwitchOption.d.ts +2 -2
- package/cjs/Tables/DataTable/DataTable.d.ts +4 -2
- package/cjs/Tables/DataTable/DataTable.js +9 -4
- package/cjs/Tables/DataTable/components/Footer.d.ts +2 -2
- package/cjs/Tables/DataTable/components/Loader.d.ts +2 -2
- package/cjs/Tables/Table/Table.d.ts +2 -2
- package/cjs/Tables/Table/components/TableFooter.d.ts +2 -2
- package/cjs/Tabs/ContentTabs.d.ts +2 -2
- package/cjs/Tabs/LinkTabs.d.ts +2 -2
- package/cjs/Tabs/components/LinkTab.d.ts +2 -2
- package/cjs/TextWrap/TextWrap.d.ts +2 -2
- package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +2 -2
- package/cjs/Tooltip/TooltipWrapper.d.ts +2 -2
- package/cjs/UserContent/UserContent.d.ts +2 -2
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +2 -2
- package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +2 -2
- package/esm/AutoComplete/components/DefaultOptionItem.d.ts +2 -2
- package/esm/Avatars/ApplicationAvatar.d.ts +2 -2
- package/esm/Avatars/UserAvatar.d.ts +2 -2
- package/esm/Badge/Badge.d.ts +3 -3
- package/esm/Badge/Badge.js +6 -3
- package/esm/Banners/Alert/Alert.d.ts +2 -2
- package/esm/Banners/BigBertha/BigBertha.d.ts +2 -2
- package/esm/Banners/Promote/Promote.d.ts +2 -2
- package/esm/Button/ButtonGroup.d.ts +2 -2
- package/esm/Card/components/CardHeader.d.ts +2 -2
- package/esm/Card/components/CardTitle.d.ts +2 -2
- package/esm/ClickAwayContainer/ClickAwayContainer.d.ts +2 -2
- package/esm/DatePicker/DatePicker/DatePicker.d.ts +2 -2
- package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +2 -2
- package/esm/DatePicker/components/Calendar.d.ts +2 -2
- package/esm/DatePicker/components/Display.d.ts +2 -2
- package/esm/DatePicker/components/Footer.d.ts +2 -2
- package/esm/DatePicker/components/FooterActions.d.ts +2 -2
- package/esm/DatePicker/components/Modal.d.ts +2 -2
- package/esm/DatePicker/components/NavBar.d.ts +2 -2
- package/esm/DatePicker/components/SidePanel.d.ts +2 -2
- package/esm/Dropdown/Dropdown.d.ts +20 -34
- package/esm/Dropdown/components/DropdownButtonItem.d.ts +2 -7
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +2 -2
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +2 -2
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +2 -1
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +2 -1
- package/esm/Dropdown/components/DropdownFooterItem.d.ts +2 -2
- package/esm/Dropdown/components/DropdownLinkItem.d.ts +2 -7
- package/esm/Dropdown/components/DropdownRadioItem.d.ts +2 -7
- package/esm/Dropdown/components/DropdownTitle.d.ts +2 -2
- package/esm/Dropdown/components/DropdownToggleItem.d.ts +2 -7
- package/esm/Dropzone/Dropzone.d.ts +2 -2
- package/esm/EmptyState/EmptyState.d.ts +2 -2
- package/esm/Field/Field.d.ts +2 -2
- package/esm/Flag/Flag.d.ts +2 -2
- package/esm/Flag/Flags.d.ts +2 -2
- package/esm/FlexGrid/FlexGrid.d.ts +2 -2
- package/esm/HelpUnderline/HelpUnderline.d.ts +2 -2
- package/esm/Insert/Insert.d.ts +2 -2
- package/esm/KeyboardKey/KeyboardKey.d.ts +2 -2
- package/esm/Medallion/Medallion.d.ts +2 -2
- package/esm/Modal/Modal.d.ts +7 -5
- package/esm/Modal/components/ModalFooter.d.ts +2 -2
- package/esm/Modal/components/ModalSection.d.ts +2 -2
- package/esm/Pagination/CompactPagination/CompactPagination.d.ts +2 -2
- package/esm/Pagination/Pagination/Pagination.d.ts +2 -2
- package/esm/ProgressBar/ProgressBar.d.ts +2 -2
- package/esm/ProgressSpinner/ProgressSpinner.d.ts +2 -2
- package/esm/RadioGroup/RadioGroup.d.ts +6 -6
- package/esm/Satellite/Satellite.d.ts +2 -2
- package/esm/Satellite/Satellite.js +30 -15
- package/esm/ScrollIndicator/ScrollIndicator.d.ts +2 -2
- package/esm/Separator/Separator.d.ts +2 -2
- package/esm/Sidebar/Sidebar.d.ts +2 -2
- package/esm/Sidebar/SidebarButtonLink.d.ts +2 -2
- package/esm/Sidebar/SidebarHeader.d.ts +2 -2
- package/esm/Sidebar/SidebarHeading.d.ts +2 -2
- package/esm/Sidebar/SidebarLink.d.ts +2 -2
- package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +2 -2
- package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +2 -2
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +2 -2
- package/esm/Sidebar/SidebarNav.d.ts +2 -2
- package/esm/Switch/Switch.d.ts +2 -2
- package/esm/Switch/SwitchOption.d.ts +2 -2
- package/esm/Tables/DataTable/DataTable.d.ts +4 -2
- package/esm/Tables/DataTable/DataTable.js +9 -4
- package/esm/Tables/DataTable/components/Footer.d.ts +2 -2
- package/esm/Tables/DataTable/components/Loader.d.ts +2 -2
- package/esm/Tables/Table/Table.d.ts +2 -2
- package/esm/Tables/Table/components/TableFooter.d.ts +2 -2
- package/esm/Tabs/ContentTabs.d.ts +2 -2
- package/esm/Tabs/LinkTabs.d.ts +2 -2
- package/esm/Tabs/components/LinkTab.d.ts +2 -2
- package/esm/TextWrap/TextWrap.d.ts +2 -2
- package/esm/Tooltip/OverflowTooltipWrapper.d.ts +2 -2
- package/esm/Tooltip/TooltipWrapper.d.ts +2 -2
- package/esm/UserContent/UserContent.d.ts +2 -2
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { HTMLAttributes, VFC } from "react";
|
2
2
|
export declare type AnnouncementBadgeSizes = "default" | "small";
|
3
3
|
export declare type AnnouncementBadgeTexts = "new" | "beta" | "internal" | "pilot";
|
4
4
|
export declare type AnnouncementBadgeLocale = {
|
@@ -17,5 +17,5 @@ export interface AnnouncementBadgeProps extends HTMLAttributes<HTMLSpanElement>
|
|
17
17
|
locale?: AnnouncementBadgeLocale;
|
18
18
|
children?: never;
|
19
19
|
}
|
20
|
-
export declare const AnnouncementBadge:
|
20
|
+
export declare const AnnouncementBadge: VFC<AnnouncementBadgeProps>;
|
21
21
|
export default AnnouncementBadge;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { ReactNode } from "react";
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
import { MedallionVariant } from "../../Medallion";
|
3
3
|
import type { IconComponentType } from "../../types";
|
4
4
|
export interface AutoCompleteEmptyStateProps {
|
@@ -9,5 +9,5 @@ export interface AutoCompleteEmptyStateProps {
|
|
9
9
|
/** Optional description to explain why the screen is empty or define next steps */
|
10
10
|
description?: ReactNode;
|
11
11
|
}
|
12
|
-
export declare const AutoCompleteEmptyState:
|
12
|
+
export declare const AutoCompleteEmptyState: VFC<AutoCompleteEmptyStateProps>;
|
13
13
|
export default AutoCompleteEmptyState;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import type { AutoCompleteLocale, OptionItemProps } from "../types";
|
3
3
|
declare type DefaultOptionItemProps = OptionItemProps & {
|
4
4
|
locale?: AutoCompleteLocale;
|
5
5
|
};
|
6
|
-
declare const DefaultOptionItem:
|
6
|
+
declare const DefaultOptionItem: VFC<DefaultOptionItemProps>;
|
7
7
|
export default DefaultOptionItem;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import type { ApplicationAvatarSize, MinimalApplication } from "./types";
|
3
3
|
export interface ApplicationAvatarProps {
|
4
4
|
/** A minimal application object containing `applicationID` and `name`. */
|
@@ -9,5 +9,5 @@ export interface ApplicationAvatarProps {
|
|
9
9
|
className?: string;
|
10
10
|
}
|
11
11
|
/** The `ApplicationAvatar` is used as a visual representation of an application. */
|
12
|
-
export declare const ApplicationAvatar:
|
12
|
+
export declare const ApplicationAvatar: VFC<ApplicationAvatarProps>;
|
13
13
|
export default ApplicationAvatar;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import type { MinimalUser } from "./types";
|
3
3
|
export declare type UserAvatarLocale = {
|
4
4
|
fallbackText?: string;
|
@@ -16,5 +16,5 @@ export interface UserAvatarProps {
|
|
16
16
|
locale?: UserAvatarLocale;
|
17
17
|
}
|
18
18
|
/** The `UserAvatar` is used as a visual representation of a user. */
|
19
|
-
export declare const UserAvatar:
|
19
|
+
export declare const UserAvatar: VFC<UserAvatarProps>;
|
20
20
|
export default UserAvatar;
|
package/cjs/Badge/Badge.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import { type HTMLAttributes, type ReactNode } from "react";
|
2
2
|
import type { AtLeastOne, ColorVariant, IconComponentType } from "../types";
|
3
3
|
export declare type BadgeSizes = "small" | "medium" | "large";
|
4
4
|
export declare type BadgeVariants = ColorVariant | "pink";
|
5
|
-
interface BaseBadgeProps extends HTMLAttributes<
|
5
|
+
interface BaseBadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
6
6
|
/** @default "grey" */
|
7
7
|
variant?: BadgeVariants;
|
8
8
|
/** @default "default" */
|
@@ -31,5 +31,5 @@ export declare type BadgeProps = BaseBadgeProps & AtLeastOne<BadgeContentProps>;
|
|
31
31
|
* - To indicate problem with an index
|
32
32
|
* - To display numeric values for multiple items (similar to a "tag cloud")
|
33
33
|
*/
|
34
|
-
export declare const Badge:
|
34
|
+
export declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLSpanElement>>;
|
35
35
|
export default Badge;
|
package/cjs/Badge/Badge.js
CHANGED
@@ -9,6 +9,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
10
10
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
11
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
12
|
+
var _react = require("react");
|
12
13
|
var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
|
13
14
|
var _isRenderedChild = _interopRequireDefault(require("../utils/isRenderedChild"));
|
14
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
@@ -47,7 +48,7 @@ var SIZE_CLASSNAMES = {
|
|
47
48
|
* - To indicate problem with an index
|
48
49
|
* - To display numeric values for multiple items (similar to a "tag cloud")
|
49
50
|
*/
|
50
|
-
var Badge = function
|
51
|
+
var Badge = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
51
52
|
var children = _ref.children,
|
52
53
|
value = _ref.value,
|
53
54
|
Icon = _ref.icon,
|
@@ -58,7 +59,8 @@ var Badge = function Badge(_ref) {
|
|
58
59
|
className = _ref.className,
|
59
60
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
60
61
|
var badgeClassName = (0, _clsx["default"])(BASE_CLASSNAMES, VARIANT_CLASSNAMES[variant], SIZE_CLASSNAMES[size], className);
|
61
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("
|
62
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", _objectSpread(_objectSpread({}, props), {}, {
|
63
|
+
ref: ref,
|
62
64
|
className: badgeClassName,
|
63
65
|
children: [Icon && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
64
66
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
@@ -71,7 +73,8 @@ var Badge = function Badge(_ref) {
|
|
71
73
|
children: value
|
72
74
|
})]
|
73
75
|
}));
|
74
|
-
};
|
76
|
+
});
|
75
77
|
exports.Badge = Badge;
|
78
|
+
Badge.displayName = "Badge";
|
76
79
|
var _default = Badge;
|
77
80
|
exports["default"] = _default;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { CSSProperties,
|
1
|
+
import type { CSSProperties, ReactNode, VFC } from "react";
|
2
2
|
import type { ColorVariant, IconComponentType } from "../../types";
|
3
3
|
export declare type AlertContextType = "page" | "section";
|
4
4
|
export declare type AlertColorVariant = Exclude<ColorVariant, "blue">;
|
@@ -74,5 +74,5 @@ export interface AlertProps {
|
|
74
74
|
* ## Accessibility
|
75
75
|
* TODO
|
76
76
|
*/
|
77
|
-
export declare const Alert:
|
77
|
+
export declare const Alert: VFC<AlertProps>;
|
78
78
|
export default Alert;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
import type { IconComponentType } from "../../types";
|
3
3
|
export interface BigBerthaProps {
|
4
4
|
icon?: IconComponentType;
|
@@ -37,5 +37,5 @@ export interface BigBerthaProps {
|
|
37
37
|
* ## Accessibility
|
38
38
|
* TODO
|
39
39
|
*/
|
40
|
-
export declare const BigBertha:
|
40
|
+
export declare const BigBertha: VFC<BigBerthaProps>;
|
41
41
|
export default BigBertha;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
declare type PromoteVariants = "large" | "compact";
|
3
3
|
interface CompactPromoteProps {
|
4
4
|
variant?: Extract<PromoteVariants, "compact">;
|
@@ -53,5 +53,5 @@ export declare type PromoteProps = {
|
|
53
53
|
* ## Accessibility
|
54
54
|
* TODO
|
55
55
|
*/
|
56
|
-
export declare const Promote:
|
56
|
+
export declare const Promote: VFC<PromoteProps>;
|
57
57
|
export default Promote;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
export interface ButtonGroupProps {
|
3
3
|
/**
|
4
4
|
* Specify HTML element `ButtonGroup` should be presented as.
|
@@ -14,5 +14,5 @@ export interface ButtonGroupProps {
|
|
14
14
|
* - Group buttons logically into sets based on usage and importance.
|
15
15
|
* - Common placement of grouped buttons is the view switch (e.g. list vs grid view)
|
16
16
|
*/
|
17
|
-
export declare const ButtonGroup:
|
17
|
+
export declare const ButtonGroup: VFC<ButtonGroupProps>;
|
18
18
|
export default ButtonGroup;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
export declare type CardHeaderProps = JSX.IntrinsicElements["div"] & {
|
3
3
|
children: ReactNode;
|
4
4
|
};
|
5
|
-
export declare const CardHeader:
|
5
|
+
export declare const CardHeader: VFC<CardHeaderProps>;
|
6
6
|
export default CardHeader;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
export declare type CardTitleProps = JSX.IntrinsicElements["h2"] & {
|
3
3
|
children: ReactNode;
|
4
4
|
};
|
5
|
-
export declare const CardTitle:
|
5
|
+
export declare const CardTitle: VFC<CardTitleProps>;
|
6
6
|
export default CardTitle;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
interface ClickAwayContextType {
|
3
3
|
registerElement(element: HTMLElement): void;
|
4
4
|
unregisterElement(element: HTMLElement): void;
|
@@ -24,5 +24,5 @@ export interface ClickAwayContainerProps {
|
|
24
24
|
* but it's not the case when using portals.
|
25
25
|
* This component allows click-away functionality even when portals are involved.
|
26
26
|
*/
|
27
|
-
export declare const ClickAwayContainer:
|
27
|
+
export declare const ClickAwayContainer: VFC<ClickAwayContainerProps>;
|
28
28
|
export default ClickAwayContainer;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Dispatch,
|
1
|
+
import type { Dispatch, MouseEvent, ReactNode, VFC } from "react";
|
2
2
|
import type { CalendarProps } from "../components/Calendar";
|
3
3
|
import type { DisplayProps } from "../components/Display";
|
4
4
|
import type { FooterActionsProps } from "../components/FooterActions";
|
@@ -30,5 +30,5 @@ export declare type DatePickerProps = {
|
|
30
30
|
initialValue?: Date | null;
|
31
31
|
buttonSize?: DisplayProps["size"];
|
32
32
|
} & SharedDatePickerProps;
|
33
|
-
declare const DatePicker:
|
33
|
+
declare const DatePicker: VFC<DatePickerProps>;
|
34
34
|
export default DatePicker;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Dispatch,
|
1
|
+
import type { Dispatch, ReactNode, VFC } from "react";
|
2
2
|
import type { CalendarProps } from "../components/Calendar";
|
3
3
|
import type { SharedDatePickerProps } from "../types";
|
4
4
|
import type { DateRangePickerDisplayProps } from "./DateRangePickerDisplay";
|
@@ -30,5 +30,5 @@ export declare type DateRangePickerProps = {
|
|
30
30
|
renderRightPanel?: (args: RightSidePanelComponentArgs) => ReactNode;
|
31
31
|
buttonSize?: DateRangePickerDisplayProps["buttonSize"];
|
32
32
|
} & SharedDatePickerProps;
|
33
|
-
export declare const DateRangePicker:
|
33
|
+
export declare const DateRangePicker: VFC<DateRangePickerProps>;
|
34
34
|
export default DateRangePicker;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import type { WithRequiredProperty } from "../../types";
|
3
3
|
import { DisplayProps } from "../components/Display";
|
4
4
|
import type { DatePickerLocale } from "../types";
|
@@ -10,5 +10,5 @@ export interface DateRangePickerDisplayProps {
|
|
10
10
|
buttonSize?: DisplayProps["size"];
|
11
11
|
locale: WithRequiredProperty<DatePickerLocale, "openButton">;
|
12
12
|
}
|
13
|
-
declare const DateRangePickerDisplay:
|
13
|
+
declare const DateRangePickerDisplay: VFC<DateRangePickerDisplayProps>;
|
14
14
|
export default DateRangePickerDisplay;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import { DayPickerDefaultProps, DayPickerRangeProps, DayPickerSingleProps } from "react-day-picker";
|
3
3
|
import type { WithRequiredProperty } from "../../types";
|
4
4
|
import type { DatePickerLocale } from "../types";
|
@@ -13,5 +13,5 @@ export declare type EditableYearProps = {
|
|
13
13
|
export declare type CalendarProps = Omit<Omit<DayPickerSingleProps | DayPickerRangeProps | DayPickerDefaultProps, "locale">, ExcludedDayPickerProps> & EditableYearProps & {
|
14
14
|
locale: WithRequiredProperty<DatePickerLocale, "nextMonth" | "previousMonth">;
|
15
15
|
};
|
16
|
-
declare const Calendar:
|
16
|
+
declare const Calendar: VFC<CalendarProps>;
|
17
17
|
export default Calendar;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
import type { ButtonProps, ButtonSize } from "../../Button";
|
3
3
|
export interface DisplayProps {
|
4
4
|
id?: string;
|
@@ -6,5 +6,5 @@ export interface DisplayProps {
|
|
6
6
|
children: ReactNode;
|
7
7
|
size?: ButtonSize;
|
8
8
|
}
|
9
|
-
declare const Display:
|
9
|
+
declare const Display: VFC<DisplayProps>;
|
10
10
|
export default Display;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
export declare type FooterProps = {
|
3
3
|
children: ReactNode;
|
4
4
|
};
|
5
|
-
declare const Footer:
|
5
|
+
declare const Footer: VFC<FooterProps>;
|
6
6
|
export default Footer;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import { ButtonProps } from "../../Button";
|
3
3
|
import type { WithRequiredProperty } from "../../types";
|
4
4
|
import type { DatePickerLocale } from "../types";
|
@@ -8,5 +8,5 @@ export interface FooterActionsProps {
|
|
8
8
|
disableApply: boolean;
|
9
9
|
locale: WithRequiredProperty<DatePickerLocale, "cancel" | "apply">;
|
10
10
|
}
|
11
|
-
declare const FooterActions:
|
11
|
+
declare const FooterActions: VFC<FooterActionsProps>;
|
12
12
|
export default FooterActions;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Placement, StrictModifiers } from "@popperjs/core";
|
2
|
-
import type {
|
2
|
+
import type { ReactNode, VFC } from "react";
|
3
3
|
import type { StrictModifier } from "react-popper";
|
4
4
|
import type { ClickAwayContainerProps } from "../../ClickAwayContainer";
|
5
5
|
export interface ModalProps {
|
@@ -12,5 +12,5 @@ export interface ModalProps {
|
|
12
12
|
onClickAway?: ClickAwayContainerProps["onClickAway"];
|
13
13
|
}
|
14
14
|
export declare const DEFAULT_DATE_PICKER_MODAL_POPPER_MODIFIERS: StrictModifier[];
|
15
|
-
declare const Modal:
|
15
|
+
declare const Modal: VFC<ModalProps>;
|
16
16
|
export default Modal;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import { CaptionProps } from "react-day-picker";
|
3
3
|
import type { WithRequiredProperty } from "../../types";
|
4
4
|
import type { DatePickerLocale } from "../types";
|
@@ -6,5 +6,5 @@ import type { EditableYearProps } from "./Calendar";
|
|
6
6
|
export declare type NavBarProps = CaptionProps & EditableYearProps & {
|
7
7
|
locale: WithRequiredProperty<DatePickerLocale, "nextMonth" | "previousMonth">;
|
8
8
|
};
|
9
|
-
declare const NavBar:
|
9
|
+
declare const NavBar: VFC<NavBarProps>;
|
10
10
|
export default NavBar;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
export declare type SidePanelProps = {
|
3
3
|
children: ReactNode;
|
4
4
|
};
|
5
|
-
declare const SidePanel:
|
5
|
+
declare const SidePanel: VFC<SidePanelProps>;
|
6
6
|
export default SidePanel;
|
@@ -1,6 +1,15 @@
|
|
1
1
|
import type { StrictModifiers } from "@popperjs/core";
|
2
|
+
import { VFC } from "react";
|
2
3
|
import type { ReactNode } from "react";
|
3
4
|
import { StrictModifier } from "react-popper";
|
5
|
+
import DropdownButtonItem from "./components/DropdownButtonItem";
|
6
|
+
import { DropdownCollapsibleItem } from "./components/DropdownCollapsibleItem";
|
7
|
+
import DropdownDivider from "./components/DropdownDivider";
|
8
|
+
import DropdownFooterItem from "./components/DropdownFooterItem";
|
9
|
+
import DropdownLinkItem from "./components/DropdownLinkItem";
|
10
|
+
import DropdownRadioItem from "./components/DropdownRadioItem";
|
11
|
+
import DropdownTitle from "./components/DropdownTitle";
|
12
|
+
import DropdownToggleItem from "./components/DropdownToggleItem";
|
4
13
|
export interface RenderTargetParams {
|
5
14
|
toggle: (open?: boolean) => any;
|
6
15
|
isShowingMenu: boolean;
|
@@ -16,6 +25,16 @@ export interface DropdownProps {
|
|
16
25
|
renderFooter?: (params: RenderTargetParams) => ReactNode;
|
17
26
|
children?: ReactNode;
|
18
27
|
}
|
28
|
+
declare type DropdownSubComponents = {
|
29
|
+
ButtonItem: typeof DropdownButtonItem;
|
30
|
+
LinkItem: typeof DropdownLinkItem;
|
31
|
+
RadioItem: typeof DropdownRadioItem;
|
32
|
+
ToggleItem: typeof DropdownToggleItem;
|
33
|
+
CollapsibleItem: typeof DropdownCollapsibleItem;
|
34
|
+
FooterItem: typeof DropdownFooterItem;
|
35
|
+
Divider: typeof DropdownDivider;
|
36
|
+
Title: typeof DropdownTitle;
|
37
|
+
};
|
19
38
|
export declare const DEFAULT_DROPDOWN_POPPER_MODIFIERS: StrictModifier[];
|
20
39
|
/**
|
21
40
|
* ## Best practices
|
@@ -27,38 +46,5 @@ export declare const DEFAULT_DROPDOWN_POPPER_MODIFIERS: StrictModifier[];
|
|
27
46
|
* - Clearly label options based on what each one will do
|
28
47
|
* - Make sure the most common options are listed. These can be grouped into sub-categories under headings
|
29
48
|
*/
|
30
|
-
export declare const Dropdown:
|
31
|
-
({ placement, menuClassName, modifiers, renderTarget, renderFooter, children, }: DropdownProps): JSX.Element;
|
32
|
-
ButtonItem: {
|
33
|
-
(props: import("./components/DropdownButtonItem").DropdownButtonItemProps): JSX.Element;
|
34
|
-
defaultProps: {
|
35
|
-
toggle: boolean;
|
36
|
-
};
|
37
|
-
};
|
38
|
-
LinkItem: {
|
39
|
-
(props: import("./components/DropdownLinkItem").DropdownLinkItemProps): JSX.Element;
|
40
|
-
defaultProps: {
|
41
|
-
toggle: boolean;
|
42
|
-
};
|
43
|
-
};
|
44
|
-
RadioItem: {
|
45
|
-
(props: import("./components/DropdownRadioItem").DropdownRadioItemProps): JSX.Element;
|
46
|
-
defaultProps: {
|
47
|
-
toggle: boolean;
|
48
|
-
};
|
49
|
-
};
|
50
|
-
ToggleItem: {
|
51
|
-
(props: import("./components/DropdownToggleItem").DropdownToggleItemProps): JSX.Element;
|
52
|
-
defaultProps: {
|
53
|
-
toggle: boolean;
|
54
|
-
};
|
55
|
-
};
|
56
|
-
CollapsibleItem: import("react").FC<import("./components/DropdownCollapsibleItem").DropdownCollapsibleItemProps>;
|
57
|
-
FooterItem: ({ children, className, ...props }: {
|
58
|
-
className?: string | undefined;
|
59
|
-
children: ReactNode;
|
60
|
-
}) => JSX.Element | null;
|
61
|
-
Divider: () => JSX.Element;
|
62
|
-
Title: import("react").FunctionComponent<import("./components/DropdownTitle").DropdownTitleProps>;
|
63
|
-
};
|
49
|
+
export declare const Dropdown: VFC<DropdownProps> & DropdownSubComponents;
|
64
50
|
export default Dropdown;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import type { IconComponentType } from "../../types";
|
3
3
|
import { DropdownBaseItemProps } from "../useDropdownItemProps";
|
4
4
|
export declare type DropdownButtonItemProps = DropdownBaseItemProps<HTMLButtonElement> & JSX.IntrinsicElements["button"] & {
|
@@ -10,10 +10,5 @@ export declare type DropdownButtonItemProps = DropdownBaseItemProps<HTMLButtonEl
|
|
10
10
|
*/
|
11
11
|
variant?: "default" | "destructive";
|
12
12
|
};
|
13
|
-
export declare const DropdownButtonItem:
|
14
|
-
(props: DropdownButtonItemProps): JSX.Element;
|
15
|
-
defaultProps: {
|
16
|
-
toggle: boolean;
|
17
|
-
};
|
18
|
-
};
|
13
|
+
export declare const DropdownButtonItem: VFC<DropdownButtonItemProps>;
|
19
14
|
export default DropdownButtonItem;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { MouseEvent, ReactNode, VFC } from "react";
|
2
2
|
export interface DropdownCollapsibleItemProps {
|
3
3
|
title: ReactNode;
|
4
4
|
name?: string;
|
@@ -6,5 +6,5 @@ export interface DropdownCollapsibleItemProps {
|
|
6
6
|
onClick?: (evt: MouseEvent<HTMLElement>, name: string, expandedItems: readonly string[]) => void;
|
7
7
|
children: ReactNode;
|
8
8
|
}
|
9
|
-
export declare const DropdownCollapsibleItem:
|
9
|
+
export declare const DropdownCollapsibleItem: VFC<DropdownCollapsibleItemProps>;
|
10
10
|
export default DropdownCollapsibleItem;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { ReactNode } from "react";
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
export declare type DropdownCollapsibleItemsGroupProps = {
|
3
3
|
expandedItems: string[];
|
4
4
|
onItemClick(name: string): void;
|
5
5
|
children: ReactNode;
|
6
6
|
};
|
7
|
-
export declare const DropdownCollapsibleItemsGroup:
|
7
|
+
export declare const DropdownCollapsibleItemsGroup: VFC<DropdownCollapsibleItemsGroupProps>;
|
package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { VFC } from "react";
|
1
2
|
import type { ReactNode } from "react";
|
2
3
|
export declare type DropdownCollapsibleItemsMultiGroupProps = {
|
3
4
|
initialExpandedItems?: string[];
|
@@ -6,4 +7,4 @@ export declare type DropdownCollapsibleItemsMultiGroupProps = {
|
|
6
7
|
/**
|
7
8
|
* Multiple collapsible item can be open at a given time
|
8
9
|
*/
|
9
|
-
export declare const DropdownCollapsibleItemsMultiGroup:
|
10
|
+
export declare const DropdownCollapsibleItemsMultiGroup: VFC<DropdownCollapsibleItemsMultiGroupProps>;
|
package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { VFC } from "react";
|
1
2
|
import type { ReactNode } from "react";
|
2
3
|
export declare type DropdownCollapsibleItemsExclusiveGroupProps = {
|
3
4
|
initialExpandedItem?: string;
|
@@ -6,4 +7,4 @@ export declare type DropdownCollapsibleItemsExclusiveGroupProps = {
|
|
6
7
|
/**
|
7
8
|
* Only one collapsible item can be open at a given time (unless you manually override)
|
8
9
|
*/
|
9
|
-
export declare const DropdownCollapsibleItemsSingleGroup:
|
10
|
+
export declare const DropdownCollapsibleItemsSingleGroup: VFC<DropdownCollapsibleItemsExclusiveGroupProps>;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { ReactNode } from "react";
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
declare type DropdownFooterItemProps = {
|
3
3
|
className?: string;
|
4
4
|
children: ReactNode;
|
5
5
|
};
|
6
|
-
export declare const DropdownFooterItem:
|
6
|
+
export declare const DropdownFooterItem: VFC<DropdownFooterItemProps>;
|
7
7
|
export default DropdownFooterItem;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import type { IconComponentType } from "../../types";
|
3
3
|
import { DropdownBaseItemProps } from "../useDropdownItemProps";
|
4
4
|
export declare type DropdownLinkItemProps = DropdownBaseItemProps<HTMLAnchorElement> & JSX.IntrinsicElements["a"] & {
|
@@ -6,10 +6,5 @@ export declare type DropdownLinkItemProps = DropdownBaseItemProps<HTMLAnchorElem
|
|
6
6
|
/** Left aligned icon */
|
7
7
|
startIcon?: IconComponentType;
|
8
8
|
};
|
9
|
-
export declare const DropdownLinkItem:
|
10
|
-
(props: DropdownLinkItemProps): JSX.Element;
|
11
|
-
defaultProps: {
|
12
|
-
toggle: boolean;
|
13
|
-
};
|
14
|
-
};
|
9
|
+
export declare const DropdownLinkItem: VFC<DropdownLinkItemProps>;
|
15
10
|
export default DropdownLinkItem;
|
@@ -1,13 +1,8 @@
|
|
1
|
-
import type { ReactNode } from "react";
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
import { RadioButtonProps } from "../../RadioGroup";
|
3
3
|
import { DropdownBaseItemProps } from "../useDropdownItemProps";
|
4
4
|
export interface DropdownRadioItemProps extends RadioButtonProps, DropdownBaseItemProps<HTMLInputElement> {
|
5
5
|
children?: ReactNode;
|
6
6
|
}
|
7
|
-
export declare const DropdownRadioItem:
|
8
|
-
(props: DropdownRadioItemProps): JSX.Element;
|
9
|
-
defaultProps: {
|
10
|
-
toggle: boolean;
|
11
|
-
};
|
12
|
-
};
|
7
|
+
export declare const DropdownRadioItem: VFC<DropdownRadioItemProps>;
|
13
8
|
export default DropdownRadioItem;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
export declare type DropdownTitleProps = JSX.IntrinsicElements["h4"] & {
|
3
3
|
children: ReactNode;
|
4
4
|
};
|
5
|
-
export declare const DropdownTitle:
|
5
|
+
export declare const DropdownTitle: VFC<DropdownTitleProps>;
|
6
6
|
export default DropdownTitle;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { ReactNode } from "react";
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
import { ToggleProps } from "../../Toggle";
|
3
3
|
import type { IconComponentType } from "../../types";
|
4
4
|
import { DropdownBaseItemProps } from "../useDropdownItemProps";
|
@@ -7,10 +7,5 @@ export interface DropdownToggleItemProps extends ToggleProps, DropdownBaseItemPr
|
|
7
7
|
startIcon?: IconComponentType;
|
8
8
|
children?: ReactNode;
|
9
9
|
}
|
10
|
-
export declare const DropdownToggleItem:
|
11
|
-
(props: DropdownToggleItemProps): JSX.Element;
|
12
|
-
defaultProps: {
|
13
|
-
toggle: boolean;
|
14
|
-
};
|
15
|
-
};
|
10
|
+
export declare const DropdownToggleItem: VFC<DropdownToggleItemProps>;
|
16
11
|
export default DropdownToggleItem;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import { FileRejection, DropzoneProps as ReactDropZoneProps } from "react-dropzone";
|
3
3
|
export declare type DropzoneLocale = {
|
4
4
|
clearInput?: string;
|
@@ -16,5 +16,5 @@ export interface DropzoneBaseProps {
|
|
16
16
|
locale?: DropzoneLocale;
|
17
17
|
}
|
18
18
|
export declare type DropzoneProps = DropzoneBaseProps & Omit<ReactDropZoneProps, "onDrop" | "onDropAccepted" | "onDropRejected" | "multiple">;
|
19
|
-
export declare const Dropzone:
|
19
|
+
export declare const Dropzone: VFC<DropzoneProps>;
|
20
20
|
export default Dropzone;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import type { EmptyStateProps } from "./types";
|
3
3
|
/**
|
4
4
|
* Empty states are used when a list, table, chart or page has no items or data to show. This is an opportunity to provide explanation or guidance to help users progress. This can also be shown when a features hasn't been enable.
|
@@ -24,5 +24,5 @@ import type { EmptyStateProps } from "./types";
|
|
24
24
|
* - Use illustrations thoughtfully
|
25
25
|
* - Use only one primary call-to-action button
|
26
26
|
*/
|
27
|
-
export declare const EmptyState:
|
27
|
+
export declare const EmptyState: VFC<EmptyStateProps>;
|
28
28
|
export default EmptyState;
|
package/cjs/Field/Field.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ReactChild, ReactNode, VFC } from "react";
|
2
2
|
import { FieldState } from "./FieldStateContext";
|
3
3
|
export interface FieldProps {
|
4
4
|
/** @ignore */
|
@@ -50,5 +50,5 @@ export interface FieldProps {
|
|
50
50
|
* - If you need to ask users to provide optional information, mark the field optional by placing the text “(optional)” at the end of the field's label
|
51
51
|
* - Don't mark required fields with asterisks
|
52
52
|
*/
|
53
|
-
export declare const Field:
|
53
|
+
export declare const Field: VFC<FieldProps>;
|
54
54
|
export default Field;
|
package/cjs/Flag/Flag.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import type { Notification } from "./types";
|
3
3
|
export declare type FlagLocale = Notification["locale"];
|
4
4
|
export declare type FlagProps = Omit<Notification, "id" | "content">;
|
5
|
-
export declare const Flag:
|
5
|
+
export declare const Flag: VFC<FlagProps>;
|
6
6
|
export default Flag;
|
package/cjs/Flag/Flags.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import type { Notification } from "./types";
|
3
3
|
export interface FlagsProps {
|
4
4
|
/**
|
@@ -44,5 +44,5 @@ export interface FlagsProps {
|
|
44
44
|
*
|
45
45
|
* When there are multiple flags, they will stack on top of one another with the most recent flag on top. When a user dismisses a flag, any older flags 'below' will come to the top. Careful consideration should be taken to take into account the ordering and priority of flags in the stack. Never use dismissible and non-dismissible flags in a stack as flags that automatically dismiss can do so and not be visible to the user.
|
46
46
|
*/
|
47
|
-
export declare const Flags:
|
47
|
+
export declare const Flags: VFC<FlagsProps>;
|
48
48
|
export default Flags;
|