@algolia/satellite 1.0.0-beta.161 → 1.0.0-beta.163
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/AnnouncementBadge/AnnouncementBadge.js +7 -3
- package/cjs/AutoComplete/AutoComplete.d.ts +1 -1
- package/cjs/AutoComplete/AutoComplete.tailwind.js +1 -1
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +3 -3
- 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/Button/PolymorphicButton.d.ts +2 -1
- package/cjs/Button/PolymorphicButton.js +1 -0
- package/cjs/Button/PolymorphicIconButton.d.ts +2 -1
- package/cjs/Button/PolymorphicIconButton.js +1 -0
- package/cjs/Button/index.d.ts +1 -1
- package/cjs/Button/index.js +1 -17
- 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 +3 -3
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +4 -3
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +4 -4
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +1 -1
- package/cjs/DatePicker/components/Calendar.d.ts +3 -3
- 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 +3 -3
- package/cjs/DatePicker/components/Modal.d.ts +2 -2
- package/cjs/DatePicker/components/NavBar.d.ts +3 -3
- package/cjs/DatePicker/components/SidePanel.d.ts +2 -2
- package/cjs/Dropdown/Dropdown.d.ts +21 -36
- package/cjs/Dropdown/DropdownButton.d.ts +3 -3
- package/cjs/Dropdown/components/DropdownButtonItem.d.ts +3 -8
- 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 -2
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +2 -2
- package/cjs/Dropdown/components/DropdownFooterItem.d.ts +2 -2
- package/cjs/Dropdown/components/DropdownLinkItem.d.ts +3 -8
- package/cjs/Dropdown/components/DropdownLinkItem.js +6 -1
- package/cjs/Dropdown/components/DropdownRadioItem.d.ts +4 -9
- package/cjs/Dropdown/components/DropdownTitle.d.ts +2 -2
- package/cjs/Dropdown/components/DropdownToggleItem.d.ts +4 -9
- package/cjs/Dropzone/Dropzone.d.ts +4 -3
- package/cjs/Dropzone/Dropzone.js +17 -18
- package/cjs/EmptyState/EmptyState.d.ts +2 -2
- package/cjs/Field/Field.d.ts +3 -3
- 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 +3 -3
- package/cjs/HelpUnderline/HelpUnderline.js +1 -1
- package/cjs/Input/Input.tailwind.js +1 -1
- package/cjs/Insert/Insert.d.ts +3 -3
- 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/ProgressBar/ProgressBar.js +7 -3
- package/cjs/ProgressSpinner/ProgressSpinner.d.ts +2 -2
- package/cjs/RadioGroup/RadioGroup.d.ts +6 -6
- package/cjs/RangeSlider/RangeSlider.d.ts +6 -4
- package/cjs/RangeSlider/RangeSlider.js +14 -10
- package/cjs/Satellite/Satellite.d.ts +2 -2
- package/cjs/Satellite/Satellite.js +29 -13
- package/cjs/Satellite/SatelliteContext.d.ts +1 -1
- package/cjs/Satellite/useCreatePortal.d.ts +1 -1
- 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/SidebarButtonLink.js +2 -2
- package/cjs/Sidebar/SidebarHeader.d.ts +2 -2
- package/cjs/Sidebar/SidebarHeading.d.ts +2 -2
- package/cjs/Sidebar/SidebarHeading.js +1 -1
- 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/Switch/SwitchOption.js +3 -1
- 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/TextArea/TextArea.tailwind.js +4 -1
- package/cjs/TextWrap/TextWrap.d.ts +2 -2
- package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +4 -2
- package/cjs/Tooltip/OverflowTooltipWrapper.js +5 -2
- package/cjs/Tooltip/TooltipWrapper.d.ts +2 -3
- package/cjs/Tooltip/TooltipWrapper.js +4 -3
- package/cjs/Tooltip/types.d.ts +2 -2
- package/cjs/UserContent/UserContent.d.ts +2 -2
- package/cjs/styles/tailwind.config.js +3 -1
- package/cjs/utils/isReactText.d.ts +2 -0
- package/cjs/utils/isReactText.js +10 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +2 -2
- package/esm/AnnouncementBadge/AnnouncementBadge.js +7 -3
- package/esm/AutoComplete/AutoComplete.d.ts +1 -1
- package/esm/AutoComplete/AutoComplete.tailwind.js +1 -1
- package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +3 -3
- 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/Button/PolymorphicButton.d.ts +2 -1
- package/esm/Button/PolymorphicButton.js +1 -0
- package/esm/Button/PolymorphicIconButton.d.ts +2 -1
- package/esm/Button/PolymorphicIconButton.js +1 -0
- package/esm/Button/index.d.ts +1 -1
- package/esm/Button/index.js +0 -1
- 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 +3 -3
- package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +4 -3
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +4 -4
- package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +1 -1
- package/esm/DatePicker/components/Calendar.d.ts +3 -3
- 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 +3 -3
- package/esm/DatePicker/components/Modal.d.ts +2 -2
- package/esm/DatePicker/components/NavBar.d.ts +3 -3
- package/esm/DatePicker/components/SidePanel.d.ts +2 -2
- package/esm/Dropdown/Dropdown.d.ts +21 -36
- package/esm/Dropdown/DropdownButton.d.ts +3 -3
- package/esm/Dropdown/components/DropdownButtonItem.d.ts +3 -8
- 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 -2
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +2 -2
- package/esm/Dropdown/components/DropdownFooterItem.d.ts +2 -2
- package/esm/Dropdown/components/DropdownLinkItem.d.ts +3 -8
- package/esm/Dropdown/components/DropdownLinkItem.js +6 -1
- package/esm/Dropdown/components/DropdownRadioItem.d.ts +4 -9
- package/esm/Dropdown/components/DropdownTitle.d.ts +2 -2
- package/esm/Dropdown/components/DropdownToggleItem.d.ts +4 -9
- package/esm/Dropzone/Dropzone.d.ts +4 -3
- package/esm/Dropzone/Dropzone.js +17 -18
- package/esm/EmptyState/EmptyState.d.ts +2 -2
- package/esm/Field/Field.d.ts +3 -3
- 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 +3 -3
- package/esm/HelpUnderline/HelpUnderline.js +1 -1
- package/esm/Input/Input.tailwind.js +1 -1
- package/esm/Insert/Insert.d.ts +3 -3
- 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/ProgressBar/ProgressBar.js +7 -3
- package/esm/ProgressSpinner/ProgressSpinner.d.ts +2 -2
- package/esm/RadioGroup/RadioGroup.d.ts +6 -6
- package/esm/RangeSlider/RangeSlider.d.ts +6 -4
- package/esm/RangeSlider/RangeSlider.js +14 -10
- package/esm/Satellite/Satellite.d.ts +2 -2
- package/esm/Satellite/Satellite.js +30 -15
- package/esm/Satellite/SatelliteContext.d.ts +1 -1
- package/esm/Satellite/useCreatePortal.d.ts +1 -1
- 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/SidebarButtonLink.js +2 -2
- package/esm/Sidebar/SidebarHeader.d.ts +2 -2
- package/esm/Sidebar/SidebarHeading.d.ts +2 -2
- package/esm/Sidebar/SidebarHeading.js +1 -1
- 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/Switch/SwitchOption.js +3 -1
- 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/TextArea/TextArea.tailwind.js +4 -1
- package/esm/TextWrap/TextWrap.d.ts +2 -2
- package/esm/Tooltip/OverflowTooltipWrapper.d.ts +4 -2
- package/esm/Tooltip/OverflowTooltipWrapper.js +5 -2
- package/esm/Tooltip/TooltipWrapper.d.ts +2 -3
- package/esm/Tooltip/TooltipWrapper.js +4 -3
- package/esm/Tooltip/types.d.ts +2 -2
- package/esm/UserContent/UserContent.d.ts +2 -2
- package/esm/styles/tailwind.config.js +3 -1
- package/esm/utils/isReactText.d.ts +2 -0
- package/esm/utils/isReactText.js +3 -0
- package/package.json +3 -2
- package/satellite.min.css +1 -1
@@ -1,6 +1,6 @@
|
|
1
|
-
import { ReactNode } from "react";
|
2
|
-
import { ButtonProps } from "../Button";
|
3
|
-
import { RenderTargetParams } from "./Dropdown";
|
1
|
+
import type { ReactNode } from "react";
|
2
|
+
import type { ButtonProps } from "../Button";
|
3
|
+
import type { RenderTargetParams } from "./Dropdown";
|
4
4
|
export interface DropdownButtonProps extends Omit<ButtonProps, "title" | "endIcon"> {
|
5
5
|
/** Descriptive title for `Dropdown` */
|
6
6
|
title: ReactNode;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import type { IconComponentType } from "../../types";
|
3
|
-
import { DropdownBaseItemProps } from "../useDropdownItemProps";
|
3
|
+
import type { DropdownBaseItemProps } from "../useDropdownItemProps";
|
4
4
|
export declare type DropdownButtonItemProps = DropdownBaseItemProps<HTMLButtonElement> & JSX.IntrinsicElements["button"] & {
|
5
5
|
/** Left aligned icon */
|
6
6
|
startIcon?: IconComponentType;
|
@@ -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/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { ReactNode } from "react";
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
export declare type DropdownCollapsibleItemsMultiGroupProps = {
|
3
3
|
initialExpandedItems?: string[];
|
4
4
|
children: ReactNode;
|
@@ -6,4 +6,4 @@ export declare type DropdownCollapsibleItemsMultiGroupProps = {
|
|
6
6
|
/**
|
7
7
|
* Multiple collapsible item can be open at a given time
|
8
8
|
*/
|
9
|
-
export declare const DropdownCollapsibleItemsMultiGroup:
|
9
|
+
export declare const DropdownCollapsibleItemsMultiGroup: VFC<DropdownCollapsibleItemsMultiGroupProps>;
|
package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { ReactNode } from "react";
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
2
|
export declare type DropdownCollapsibleItemsExclusiveGroupProps = {
|
3
3
|
initialExpandedItem?: string;
|
4
4
|
children: ReactNode;
|
@@ -6,4 +6,4 @@ export declare type DropdownCollapsibleItemsExclusiveGroupProps = {
|
|
6
6
|
/**
|
7
7
|
* Only one collapsible item can be open at a given time (unless you manually override)
|
8
8
|
*/
|
9
|
-
export declare const DropdownCollapsibleItemsSingleGroup:
|
9
|
+
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,15 +1,10 @@
|
|
1
|
-
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import type { IconComponentType } from "../../types";
|
3
|
-
import { DropdownBaseItemProps } from "../useDropdownItemProps";
|
3
|
+
import type { DropdownBaseItemProps } from "../useDropdownItemProps";
|
4
4
|
export declare type DropdownLinkItemProps = DropdownBaseItemProps<HTMLAnchorElement> & JSX.IntrinsicElements["a"] & {
|
5
5
|
href: string;
|
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,11 +1,12 @@
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
4
|
-
var _templateObject, _templateObject2, _templateObject3;
|
4
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
5
5
|
var _excluded = ["toggle", "disabled", "startIcon", "className", "children"];
|
6
6
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
7
7
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
8
8
|
import cx from "clsx";
|
9
|
+
import { ExternalLink } from "react-feather";
|
9
10
|
import stl from "../../styles/helpers/satellitePrefixer";
|
10
11
|
import useLinkProps from "../../utils/useLinkProps";
|
11
12
|
import useDropdownItemProps from "../useDropdownItemProps";
|
@@ -14,6 +15,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
15
|
export var DropdownLinkItem = function DropdownLinkItem(props) {
|
15
16
|
var dropdownItemProps = useDropdownItemProps(props);
|
16
17
|
var linkProps = useLinkProps(_objectSpread(_objectSpread({}, props), dropdownItemProps));
|
18
|
+
var isExternalLink = linkProps.target === "_blank";
|
17
19
|
// `toggle` and `disabled` is destructured here because we don't want them passed to the `a`
|
18
20
|
var _props$dropdownItemPr = _objectSpread(_objectSpread(_objectSpread({}, props), dropdownItemProps), linkProps),
|
19
21
|
toggle = _props$dropdownItemPr.toggle,
|
@@ -31,6 +33,9 @@ export var DropdownLinkItem = function DropdownLinkItem(props) {
|
|
31
33
|
}), /*#__PURE__*/_jsx("span", {
|
32
34
|
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["w-full truncate"]))),
|
33
35
|
children: children
|
36
|
+
}), isExternalLink && /*#__PURE__*/_jsx(ExternalLink, {
|
37
|
+
className: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["ml-1 shrink-0"]))),
|
38
|
+
size: "1em"
|
34
39
|
})]
|
35
40
|
}));
|
36
41
|
};
|
@@ -1,13 +1,8 @@
|
|
1
|
-
import type { ReactNode } from "react";
|
2
|
-
import { RadioButtonProps } from "../../RadioGroup";
|
3
|
-
import { DropdownBaseItemProps } from "../useDropdownItemProps";
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
|
+
import type { RadioButtonProps } from "../../RadioGroup";
|
3
|
+
import type { 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,16 +1,11 @@
|
|
1
|
-
import type { ReactNode } from "react";
|
2
|
-
import { ToggleProps } from "../../Toggle";
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
|
+
import type { ToggleProps } from "../../Toggle";
|
3
3
|
import type { IconComponentType } from "../../types";
|
4
|
-
import { DropdownBaseItemProps } from "../useDropdownItemProps";
|
4
|
+
import type { DropdownBaseItemProps } from "../useDropdownItemProps";
|
5
5
|
export interface DropdownToggleItemProps extends ToggleProps, DropdownBaseItemProps<HTMLInputElement> {
|
6
6
|
/** Left aligned icon */
|
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,7 +1,8 @@
|
|
1
|
-
import type {
|
2
|
-
import { FileRejection, DropzoneProps as ReactDropZoneProps } from "react-dropzone";
|
1
|
+
import type { VFC } from "react";
|
2
|
+
import type { FileRejection, DropzoneProps as ReactDropZoneProps } from "react-dropzone";
|
3
3
|
export declare type DropzoneLocale = {
|
4
4
|
clearInput?: string;
|
5
|
+
placeholder?: (multiple: boolean) => string;
|
5
6
|
};
|
6
7
|
export interface DropzoneBaseProps {
|
7
8
|
id?: string;
|
@@ -16,5 +17,5 @@ export interface DropzoneBaseProps {
|
|
16
17
|
locale?: DropzoneLocale;
|
17
18
|
}
|
18
19
|
export declare type DropzoneProps = DropzoneBaseProps & Omit<ReactDropZoneProps, "onDrop" | "onDropAccepted" | "onDropRejected" | "multiple">;
|
19
|
-
export declare const Dropzone:
|
20
|
+
export declare const Dropzone: VFC<DropzoneProps>;
|
20
21
|
export default Dropzone;
|
package/esm/Dropzone/Dropzone.js
CHANGED
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
5
5
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
6
6
|
var _excluded = ["id", "placeholder", "disabled", "multiple", "clearable", "onChange", "className", "locale"];
|
7
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10
|
7
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
8
8
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
9
9
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
10
10
|
import cx from "clsx";
|
@@ -26,22 +26,20 @@ var DropzoneFileItem = function DropzoneFileItem(_ref) {
|
|
26
26
|
children: [file.name, " - ", formatHumanSize(file.size)]
|
27
27
|
});
|
28
28
|
};
|
29
|
-
var STATUS_CLASSNAMES = {
|
30
|
-
"default": "",
|
31
|
-
invalid: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["input-invalid"]))),
|
32
|
-
validated: ""
|
33
|
-
};
|
34
29
|
var DEFAULT_DROPZONE_LOCALE = {
|
35
|
-
clearInput: "Clear input"
|
30
|
+
clearInput: "Clear input",
|
31
|
+
placeholder: function placeholder(multiple) {
|
32
|
+
return "Drop ".concat(multiple ? "files" : "file", " here or click to select.");
|
33
|
+
}
|
36
34
|
};
|
37
35
|
var InvalidIcon = function InvalidIcon() {
|
38
36
|
return /*#__PURE__*/_jsx(X, {
|
39
|
-
className: stl(
|
37
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["mr-4 h-4 w-4 text-white bg-red-700 p-px rounded-full"])))
|
40
38
|
});
|
41
39
|
};
|
42
40
|
var ValidatedIcon = function ValidatedIcon() {
|
43
41
|
return /*#__PURE__*/_jsx(Check, {
|
44
|
-
className: stl(
|
42
|
+
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["mr-4 h-4 w-4 text-white bg-accent-600 p-px rounded-full"])))
|
45
43
|
});
|
46
44
|
};
|
47
45
|
export var Dropzone = function Dropzone(_ref2) {
|
@@ -92,10 +90,11 @@ export var Dropzone = function Dropzone(_ref2) {
|
|
92
90
|
return id !== null && id !== void 0 ? id : uniqueId("dropzone");
|
93
91
|
}, [id]);
|
94
92
|
var isValueEmpty = files.length === 0;
|
95
|
-
var
|
93
|
+
var isInvalid = status === "invalid";
|
94
|
+
var StatusIcon = isInvalid ? InvalidIcon : status === "validated" ? ValidatedIcon : Fragment;
|
96
95
|
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({}, getRootProps({
|
97
96
|
"aria-controls": dropzoneId,
|
98
|
-
className: cx(stl(
|
97
|
+
className: cx(stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n relative flex items-center group/dropzone\n border border-grey-500 rounded\n shadow-field\n overflow-hidden transition-all ease-in-out delay-100\n focus-within:border-accent-600 focus-within:shadow-field-focused\n min-h-16\n ", "\n ", "\n ", "\n ", ""])), focused && "border-accent-600 shadow-field-focused", disabled ? "cursor-not-allowed border-grey-200/30 shadow-none bg-gradient-to-b from-white to-grey-100" : "cursor-pointer", isDragReject && !disabled ? "border-red-200 cursor-not-allowed" : isDragActive ? "border-accent-500 cursor-pointer" : null, isInvalid ? "bg-red-100 border-red-700 hover:bg-red-50" : "bg-white hover:bg-grey-50"), className),
|
99
98
|
onClick: function onClick(evt) {
|
100
99
|
// Helps with https://github.com/react-dropzone/react-dropzone/issues/182
|
101
100
|
if (evt.target.closest("label")) {
|
@@ -112,7 +111,7 @@ export var Dropzone = function Dropzone(_ref2) {
|
|
112
111
|
return setFocused(false);
|
113
112
|
}
|
114
113
|
}))), /*#__PURE__*/_jsx("div", {
|
115
|
-
className: stl(
|
114
|
+
className: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["flex-1 flex items-center justify-center space-x-2 display-body"]))),
|
116
115
|
children: files.length > 0 ? files.length > 1 ? /*#__PURE__*/_jsx("ul", {
|
117
116
|
children: files.map(function (file) {
|
118
117
|
return /*#__PURE__*/_jsx("li", {
|
@@ -124,19 +123,19 @@ export var Dropzone = function Dropzone(_ref2) {
|
|
124
123
|
}) : /*#__PURE__*/_jsx(DropzoneFileItem, {
|
125
124
|
file: files[0]
|
126
125
|
}) : /*#__PURE__*/_jsxs("div", {
|
127
|
-
className: stl(
|
126
|
+
className: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["flex items-center justify-center space-x-2 display-body"]))),
|
128
127
|
children: [/*#__PURE__*/_jsx(UploadCloud, {
|
129
128
|
size: "1rem",
|
130
|
-
className: stl(
|
129
|
+
className: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["", ""])), disabled ? "text-grey-200" : "text-grey-500")
|
131
130
|
}), /*#__PURE__*/_jsx("p", {
|
132
|
-
className: stl(
|
133
|
-
children: placeholder ||
|
131
|
+
className: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["", ""])), disabled ? "text-grey-300" : "typo-subdued"),
|
132
|
+
children: placeholder || locale.placeholder(multiple)
|
134
133
|
})]
|
135
134
|
})
|
136
135
|
}), clearable && !disabled && !isValueEmpty && /*#__PURE__*/_jsx("span", {
|
137
|
-
className: stl(
|
136
|
+
className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral([""]))),
|
138
137
|
children: /*#__PURE__*/_jsx(IconButton, {
|
139
|
-
className: stl(
|
138
|
+
className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["mr-2 ", ""])), focused ? "visible" : "invisible group-hover/dropzone:visible"),
|
140
139
|
title: locale.clearInput,
|
141
140
|
icon: X,
|
142
141
|
variant: "subtle",
|
@@ -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/esm/Field/Field.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
import { FieldState } from "./FieldStateContext";
|
1
|
+
import type { ReactChild, ReactNode, VFC } from "react";
|
2
|
+
import type { FieldState } from "./FieldStateContext";
|
3
3
|
export interface FieldProps {
|
4
4
|
/** @ignore */
|
5
5
|
className?: string;
|
@@ -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/esm/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/esm/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;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
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:
|
50
|
+
export declare const FlexGrid: VFC<FlexGridProps>;
|
51
51
|
export default FlexGrid;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
import { TooltipWrapperProps } from "../Tooltip";
|
1
|
+
import type { VFC } from "react";
|
2
|
+
import type { TooltipWrapperProps } from "../Tooltip";
|
3
3
|
import type { TooltipWrapperBaseProps } from "../Tooltip/types";
|
4
4
|
export declare type HelpUnderlineProps = {
|
5
5
|
/** @ignore */
|
@@ -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:
|
10
|
+
export declare const HelpUnderline: VFC<HelpUnderlineProps>;
|
11
11
|
export default HelpUnderline;
|
@@ -20,7 +20,7 @@ export var HelpUnderline = function HelpUnderline(_ref) {
|
|
20
20
|
content: tooltipContent
|
21
21
|
}, props), {}, {
|
22
22
|
children: /*#__PURE__*/_jsx("span", {
|
23
|
-
className: cx(stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["help-underline
|
23
|
+
className: cx(stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["help-underline"]))), className),
|
24
24
|
children: children
|
25
25
|
})
|
26
26
|
}));
|
@@ -22,7 +22,7 @@ var inputPlugin = plugin(function (_ref) {
|
|
22
22
|
boxShadow: "inset 0px 1px 4px 0px ".concat(rgba(theme("colors.grey.500"), 0.3)),
|
23
23
|
overflow: "hidden",
|
24
24
|
transition: "all 100ms ease-in-out",
|
25
|
-
"&:not(.input-disabled):hover": {
|
25
|
+
"&:not(.input-disabled, .input-focused):hover": {
|
26
26
|
borderColor: theme("colors.grey.600"),
|
27
27
|
".input-spinner-button": {
|
28
28
|
borderColor: theme("colors.grey.600")
|
package/esm/Insert/Insert.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
import { BadgeVariants } from "../Badge";
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
|
+
import type { BadgeVariants } from "../Badge";
|
3
3
|
declare type InsertContext = {
|
4
4
|
label: string;
|
5
5
|
variant?: BadgeVariants;
|
@@ -41,5 +41,5 @@ export interface InsertProps {
|
|
41
41
|
* ## Accessibility
|
42
42
|
* TODO
|
43
43
|
*/
|
44
|
-
export declare const Insert:
|
44
|
+
export declare const Insert: VFC<InsertProps>;
|
45
45
|
export default Insert;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import type {
|
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:
|
7
|
+
export declare const KeyboardKey: VFC<KeyboardKeyProps>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
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:
|
10
|
+
export declare const Medallion: VFC<MedallionProps>;
|
11
11
|
export default Medallion;
|
package/esm/Modal/Modal.d.ts
CHANGED
@@ -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
|
-
|
50
|
-
|
51
|
-
|
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 {
|
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:
|
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:
|
9
|
+
export declare const ModalSection: VFC<ModalSectionProps>;
|
10
10
|
export default ModalSection;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
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:
|
30
|
+
export declare const CompactPagination: VFC<CompactPaginationProps>;
|
31
31
|
export default CompactPagination;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
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:
|
21
|
+
export declare const Pagination: VFC<PaginationProps>;
|
22
22
|
export default Pagination;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type
|
1
|
+
import { type HTMLAttributes } 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: (
|
12
|
+
export declare const ProgressBar: import("react").ForwardRefExoticComponent<ProgressBarProps & import("react").RefAttributes<HTMLDivElement>>;
|
13
13
|
export default ProgressBar;
|
@@ -6,6 +6,7 @@ var _excluded = ["value", "className", "barClassName"];
|
|
6
6
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
7
7
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
8
8
|
import cx from "clsx";
|
9
|
+
import { forwardRef } from "react";
|
9
10
|
import stl from "../styles/helpers/satellitePrefixer";
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
11
12
|
/**
|
@@ -14,12 +15,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
15
|
* - Progress bars show an indication of how much of the task has been completed and how much is still left.
|
15
16
|
* - You should indicate either a percentage or other numeric values (such as - 234/4092 queries processed)
|
16
17
|
*/
|
17
|
-
export var ProgressBar = function
|
18
|
+
export var ProgressBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
18
19
|
var value = _ref.value,
|
19
20
|
className = _ref.className,
|
20
21
|
barClassName = _ref.barClassName,
|
21
22
|
props = _objectWithoutProperties(_ref, _excluded);
|
22
|
-
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
|
23
|
+
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
|
24
|
+
ref: ref
|
25
|
+
}, props), {}, {
|
23
26
|
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["progress-bar"]))), className),
|
24
27
|
role: "progressbar",
|
25
28
|
"aria-valuenow": value,
|
@@ -33,5 +36,6 @@ export var ProgressBar = function ProgressBar(_ref) {
|
|
33
36
|
}
|
34
37
|
})
|
35
38
|
}));
|
36
|
-
};
|
39
|
+
});
|
40
|
+
ProgressBar.displayName = "ProgressBar";
|
37
41
|
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:
|
8
|
+
export declare const ProgressSpinner: VFC<ProgressSpinnerProps>;
|
9
9
|
export default ProgressSpinner;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
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
|
-
|
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;
|