@algolia/satellite 1.0.0-beta.160 → 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/AutoComplete.tailwind.js +4 -1
- 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/Button/PolymorphicIconButton.d.ts +1 -1
- package/cjs/Button/PolymorphicIconButton.js +4 -4
- package/cjs/Card/components/CardHeader.d.ts +2 -2
- package/cjs/Card/components/CardTitle.d.ts +2 -2
- package/cjs/Checkbox/Checkbox.js +3 -3
- package/cjs/Checkbox/Checkbox.tailwind.js +1 -1
- 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 +5 -6
- package/cjs/HelpUnderline/HelpUnderline.js +13 -10
- package/cjs/Input/Input.tailwind.js +28 -4
- 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/RadioButton.tailwind.js +4 -1
- package/cjs/RadioGroup/RadioGroup.d.ts +6 -6
- package/cjs/RangeSlider/RangeSlider.js +2 -2
- package/cjs/Satellite/Satellite.d.ts +2 -3
- package/cjs/Satellite/Satellite.js +27 -16
- package/cjs/Satellite/SatelliteContext.d.ts +1 -1
- package/cjs/Satellite/SatelliteContext.js +2 -1
- package/cjs/ScrollIndicator/ScrollIndicator.d.ts +2 -2
- package/cjs/Select/Select.tailwind.js +2 -2
- package/cjs/Separator/Separator.d.ts +8 -0
- package/cjs/Separator/Separator.js +29 -0
- package/cjs/Separator/Separator.tailwind.d.ts +5 -0
- package/cjs/Separator/Separator.tailwind.js +25 -0
- package/cjs/Separator/index.d.ts +2 -0
- package/cjs/Separator/index.js +27 -0
- package/cjs/Sidebar/Sidebar.d.ts +2 -2
- package/cjs/Sidebar/SidebarButtonLink.d.ts +2 -2
- package/cjs/Sidebar/SidebarButtonLink.js +8 -14
- 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/Tag/Tag.js +7 -7
- package/cjs/TextWrap/TextWrap.d.ts +2 -2
- package/cjs/Toggle/Toggle.js +3 -13
- package/cjs/Toggle/Toggle.tailwind.js +8 -2
- package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +2 -5
- package/cjs/Tooltip/OverflowTooltipWrapper.js +20 -78
- package/cjs/Tooltip/Tooltip.d.ts +6 -6
- package/cjs/Tooltip/Tooltip.js +6 -6
- package/cjs/Tooltip/Tooltip.tailwind.js +85 -62
- package/cjs/Tooltip/TooltipWrapper.d.ts +8 -21
- package/cjs/Tooltip/TooltipWrapper.js +49 -158
- package/cjs/Tooltip/types.d.ts +57 -6
- package/cjs/Tooltip/utils.d.ts +1 -0
- package/cjs/Tooltip/utils.js +10 -0
- package/cjs/UserContent/UserContent.d.ts +2 -2
- package/cjs/index.d.ts +2 -1
- package/cjs/index.js +20 -8
- package/cjs/styles/tailwind.config.js +1 -1
- package/cjs/types.d.ts +6 -6
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +2 -2
- package/esm/AutoComplete/AutoComplete.tailwind.js +4 -1
- 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/Button/PolymorphicIconButton.d.ts +1 -1
- package/esm/Button/PolymorphicIconButton.js +4 -4
- package/esm/Card/components/CardHeader.d.ts +2 -2
- package/esm/Card/components/CardTitle.d.ts +2 -2
- package/esm/Checkbox/Checkbox.js +3 -3
- package/esm/Checkbox/Checkbox.tailwind.js +1 -1
- 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 +5 -6
- package/esm/HelpUnderline/HelpUnderline.js +13 -10
- package/esm/Input/Input.tailwind.js +28 -4
- 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/RadioButton.tailwind.js +4 -1
- package/esm/RadioGroup/RadioGroup.d.ts +6 -6
- package/esm/RangeSlider/RangeSlider.js +2 -2
- package/esm/Satellite/Satellite.d.ts +2 -3
- package/esm/Satellite/Satellite.js +26 -14
- package/esm/Satellite/SatelliteContext.d.ts +1 -1
- package/esm/Satellite/SatelliteContext.js +2 -1
- package/esm/ScrollIndicator/ScrollIndicator.d.ts +2 -2
- package/esm/Select/Select.tailwind.js +2 -2
- package/esm/Separator/Separator.d.ts +8 -0
- package/esm/Separator/Separator.js +17 -0
- package/esm/Separator/Separator.tailwind.d.ts +5 -0
- package/esm/Separator/Separator.tailwind.js +24 -0
- package/esm/Separator/index.d.ts +2 -0
- package/esm/Separator/index.js +2 -0
- package/esm/Sidebar/Sidebar.d.ts +2 -2
- package/esm/Sidebar/SidebarButtonLink.d.ts +2 -2
- package/esm/Sidebar/SidebarButtonLink.js +8 -14
- 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/Tag/Tag.js +7 -7
- package/esm/TextWrap/TextWrap.d.ts +2 -2
- package/esm/Toggle/Toggle.js +3 -13
- package/esm/Toggle/Toggle.tailwind.js +8 -2
- package/esm/Tooltip/OverflowTooltipWrapper.d.ts +2 -5
- package/esm/Tooltip/OverflowTooltipWrapper.js +20 -78
- package/esm/Tooltip/Tooltip.d.ts +6 -6
- package/esm/Tooltip/Tooltip.js +6 -6
- package/esm/Tooltip/Tooltip.tailwind.js +84 -62
- package/esm/Tooltip/TooltipWrapper.d.ts +8 -21
- package/esm/Tooltip/TooltipWrapper.js +47 -157
- package/esm/Tooltip/types.d.ts +57 -6
- package/esm/Tooltip/utils.d.ts +1 -0
- package/esm/Tooltip/utils.js +3 -0
- package/esm/UserContent/UserContent.d.ts +2 -2
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -1
- package/esm/styles/tailwind.config.js +1 -1
- package/esm/types.d.ts +6 -6
- package/package.json +3 -1
- package/satellite.min.css +1 -1
@@ -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;
|
@@ -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,12 +1,11 @@
|
|
1
|
-
import type {
|
1
|
+
import type { VFC } from "react";
|
2
2
|
import { TooltipWrapperProps } from "../Tooltip";
|
3
|
-
|
3
|
+
import type { TooltipWrapperBaseProps } from "../Tooltip/types";
|
4
|
+
export declare type HelpUnderlineProps = {
|
4
5
|
/** @ignore */
|
5
6
|
className?: string;
|
6
|
-
placement?: TooltipWrapperProps["placement"];
|
7
|
-
tooltipClassName?: TooltipWrapperProps["tooltipClassName"];
|
8
7
|
tooltipContent: TooltipWrapperProps["content"];
|
9
8
|
children: string;
|
10
|
-
}
|
11
|
-
export declare const HelpUnderline:
|
9
|
+
} & Omit<TooltipWrapperBaseProps, "children">;
|
10
|
+
export declare const HelpUnderline: VFC<HelpUnderlineProps>;
|
12
11
|
export default HelpUnderline;
|
@@ -5,29 +5,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
6
6
|
});
|
7
7
|
exports["default"] = exports.HelpUnderline = void 0;
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
8
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
9
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
10
12
|
var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
|
11
13
|
var _Tooltip = require("../Tooltip");
|
12
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
13
|
-
var _templateObject, _templateObject2
|
15
|
+
var _templateObject, _templateObject2;
|
16
|
+
var _excluded = ["className", "children", "tooltipClassName", "tooltipContent"];
|
17
|
+
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; }
|
18
|
+
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) { (0, _defineProperty2["default"])(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; }
|
14
19
|
var HelpUnderline = function HelpUnderline(_ref) {
|
15
20
|
var className = _ref.className,
|
16
21
|
children = _ref.children,
|
17
22
|
tooltipClassName = _ref.tooltipClassName,
|
18
23
|
tooltipContent = _ref.tooltipContent,
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
content: tooltipContent,
|
25
|
-
placement: placement,
|
24
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.TooltipWrapper, _objectSpread(_objectSpread({
|
26
|
+
tooltipClassName: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["max-w-64"]))), tooltipClassName),
|
27
|
+
content: tooltipContent
|
28
|
+
}, props), {}, {
|
26
29
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
27
|
-
className: (0, _satellitePrefixer["default"])(
|
30
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["help-underline leading-inherit"]))), className),
|
28
31
|
children: children
|
29
32
|
})
|
30
|
-
});
|
33
|
+
}));
|
31
34
|
};
|
32
35
|
exports.HelpUnderline = HelpUnderline;
|
33
36
|
var _default = HelpUnderline;
|
@@ -16,11 +16,17 @@ var inputPlugin = plugin(function (_ref) {
|
|
16
16
|
fontSize: theme("fontSize.base"),
|
17
17
|
lineHeight: theme("lineHeight.base"),
|
18
18
|
backgroundColor: theme("colors.white"),
|
19
|
-
border: "1px solid ".concat(theme("colors.grey.
|
19
|
+
border: "1px solid ".concat(theme("colors.grey.500")),
|
20
20
|
borderRadius: theme("borderRadius.DEFAULT"),
|
21
21
|
boxShadow: "inset 0px 1px 4px 0px ".concat(rgba(theme("colors.grey.500"), 0.3)),
|
22
22
|
overflow: "hidden",
|
23
23
|
transition: "all 100ms ease-in-out",
|
24
|
+
"&:not(.input-disabled):hover": {
|
25
|
+
borderColor: theme("colors.grey.600"),
|
26
|
+
".input-spinner-button": {
|
27
|
+
borderColor: theme("colors.grey.600")
|
28
|
+
}
|
29
|
+
},
|
24
30
|
input: {
|
25
31
|
flex: "1",
|
26
32
|
minWidth: "0px",
|
@@ -44,7 +50,10 @@ var inputPlugin = plugin(function (_ref) {
|
|
44
50
|
},
|
45
51
|
".input-focused, .input:focus-within": {
|
46
52
|
borderColor: theme("colors.accent.600"),
|
47
|
-
boxShadow: "0px 1px 0px 0px ".concat(theme("colors.shadow.5"))
|
53
|
+
boxShadow: "0px 1px 0px 0px ".concat(theme("colors.shadow.5")),
|
54
|
+
".input-spinner-button": {
|
55
|
+
borderColor: theme("colors.accent.600")
|
56
|
+
}
|
48
57
|
},
|
49
58
|
".input-disabled": {
|
50
59
|
cursor: "not-allowed",
|
@@ -67,7 +76,17 @@ var inputPlugin = plugin(function (_ref) {
|
|
67
76
|
},
|
68
77
|
".input-invalid:not(.input-disabled)": {
|
69
78
|
backgroundColor: theme("colors.red.100"),
|
70
|
-
borderColor: theme("colors.red.700")
|
79
|
+
borderColor: theme("colors.red.700"),
|
80
|
+
".input-spinner-button": {
|
81
|
+
background: theme("colors.red.100"),
|
82
|
+
borderColor: theme("colors.red.700")
|
83
|
+
},
|
84
|
+
"&:hover": {
|
85
|
+
borderColor: theme("colors.red.800"),
|
86
|
+
".input-spinner-button": {
|
87
|
+
borderColor: theme("colors.red.800")
|
88
|
+
}
|
89
|
+
}
|
71
90
|
}
|
72
91
|
});
|
73
92
|
addComponents({
|
@@ -80,7 +99,7 @@ var inputPlugin = plugin(function (_ref) {
|
|
80
99
|
},
|
81
100
|
".input-spinner-button": {
|
82
101
|
background: "linear-gradient(-180deg, ".concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.50"), " 100%)"),
|
83
|
-
borderColor: theme("colors.grey.
|
102
|
+
borderColor: theme("colors.grey.500"),
|
84
103
|
borderStyle: "solid",
|
85
104
|
borderLeftWidth: "1px",
|
86
105
|
flex: "1",
|
@@ -92,6 +111,11 @@ var inputPlugin = plugin(function (_ref) {
|
|
92
111
|
},
|
93
112
|
"&:not(:last-child)": {
|
94
113
|
borderBottomWidth: "1px"
|
114
|
+
},
|
115
|
+
// This is to counterbalance the width of the first button's bottom border
|
116
|
+
// so that the two buttons have the same height.
|
117
|
+
"&:last-child": {
|
118
|
+
paddingTop: "1px"
|
95
119
|
}
|
96
120
|
}
|
97
121
|
});
|
package/cjs/Insert/Insert.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
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:
|
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/cjs/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 { 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:
|
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:
|
8
|
+
export declare const ProgressSpinner: VFC<ProgressSpinnerProps>;
|
9
9
|
export default ProgressSpinner;
|
@@ -15,9 +15,12 @@ var radioButtonPlugin = plugin(function (_ref) {
|
|
15
15
|
appearance: "none",
|
16
16
|
outline: "0px",
|
17
17
|
background: theme("colors.white"),
|
18
|
-
border: "1px solid ".concat(theme("colors.grey.
|
18
|
+
border: "1px solid ".concat(theme("colors.grey.500")),
|
19
19
|
borderRadius: "50%",
|
20
20
|
boxShadow: "inset 0 1px 4px 0 ".concat(rgba(theme("colors.grey.500"), 0.3)),
|
21
|
+
"&:hover": {
|
22
|
+
borderColor: theme("colors.grey.600")
|
23
|
+
},
|
21
24
|
"&:focus": {
|
22
25
|
borderColor: theme("colors.accent.600"),
|
23
26
|
boxShadow: "0 1px 0 0 ".concat(theme("colors.shadow.5"))
|
@@ -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;
|
@@ -27,7 +27,7 @@ var getThumbCount = function getThumbCount(value) {
|
|
27
27
|
var ThumbGroove = function ThumbGroove(_ref) {
|
28
28
|
var className = _ref.className;
|
29
29
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
30
|
-
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["h-3 w-px bg-grey-
|
30
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["h-3 w-px bg-grey-500 group-hover:bg-grey-600"]))), className)
|
31
31
|
});
|
32
32
|
};
|
33
33
|
|
@@ -87,7 +87,7 @@ var RangeSlider = function RangeSlider(_ref2) {
|
|
87
87
|
})
|
88
88
|
}), Array(thumbsCount).fill(undefined).map(function (_, idx) {
|
89
89
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactSlider.SliderThumb, {
|
90
|
-
className: (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["
|
90
|
+
className: (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["group absolute -translate-x-1.5 -translate-y-3\n w-3 h-6 rounded-[2px] border border-grey-500\n bg-white bg-gradient-to-b from-white to-grey-50 shadow-[0_1px_0_0_rgb(35_38_59_/_5%)]\n hover:border-grey-600\n "]))),
|
91
91
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ThumbGroove, {
|
92
92
|
className: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["absolute top-1.5 right-1.5"])))
|
93
93
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(ThumbGroove, {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { type
|
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,6 +7,5 @@ export interface SatelliteProps {
|
|
7
7
|
portalTarget?: HTMLElement;
|
8
8
|
children: ReactNode;
|
9
9
|
}
|
10
|
-
export declare const
|
11
|
-
export declare const Satellite: FunctionComponent<SatelliteProps>;
|
10
|
+
export declare const Satellite: VFC<SatelliteProps>;
|
12
11
|
export default Satellite;
|
@@ -4,38 +4,49 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
5
5
|
value: true
|
6
6
|
});
|
7
|
-
exports["default"] = exports.Satellite =
|
7
|
+
exports["default"] = exports.Satellite = void 0;
|
8
8
|
var _react = require("react");
|
9
9
|
var _SatelliteContext = _interopRequireDefault(require("./SatelliteContext"));
|
10
10
|
var _SatelliteRouter = require("./SatelliteRouter");
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
12
|
-
var
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
if (typeof document === "undefined") return;
|
17
|
-
if (!portalElement) {
|
18
|
-
var element = document.createElement("div");
|
19
|
-
element.setAttribute("id", DEFAULT_PORTAL_TARGET_ID);
|
20
|
-
document.body.appendChild(element);
|
21
|
-
portalElement = element;
|
12
|
+
var DEFAULT_PORTAL_ID = "satellite-portal";
|
13
|
+
var createDefaultPortalTarget = function createDefaultPortalTarget() {
|
14
|
+
if (typeof document === "undefined") {
|
15
|
+
return null;
|
22
16
|
}
|
23
|
-
|
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
24
|
};
|
25
25
|
var Satellite = function Satellite(_ref) {
|
26
|
+
var _ref2;
|
26
27
|
var _ref$router = _ref.router,
|
27
28
|
router = _ref$router === void 0 ? _SatelliteRouter.router : _ref$router,
|
28
29
|
locales = _ref.locales,
|
29
30
|
_ref$portalTarget = _ref.portalTarget,
|
30
|
-
|
31
|
+
customPortalTarget = _ref$portalTarget === void 0 ? null : _ref$portalTarget,
|
31
32
|
children = _ref.children;
|
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
|
36
|
+
(0, _react.useEffect)(function () {
|
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)
|
32
45
|
(0, _react.useEffect)(function () {
|
33
|
-
if (!portalTarget) return;
|
46
|
+
if (!portalTarget || typeof document === "undefined") return;
|
34
47
|
if (portalTarget === document.body) {
|
35
48
|
console.warn("Avoid using the document body as a portal target.");
|
36
49
|
}
|
37
|
-
|
38
|
-
// Radix adds pointer-events: none; on the body for its modal, so we need to reenable it for other portaled elements (tooltips, menus, autocomplete)
|
39
50
|
portalTarget.style.pointerEvents = "auto";
|
40
51
|
}, [portalTarget]);
|
41
52
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SatelliteContext["default"].Provider, {
|
@@ -3,8 +3,8 @@ import type { ComponentsLocales } from "./locale";
|
|
3
3
|
import { SatelliteRouter } from "./SatelliteRouter";
|
4
4
|
export interface SatelliteContextType {
|
5
5
|
router: SatelliteRouter;
|
6
|
+
portalTarget: HTMLElement | null;
|
6
7
|
locales?: ComponentsLocales;
|
7
|
-
portalTarget?: HTMLElement;
|
8
8
|
}
|
9
9
|
export declare const SatelliteContext: import("react").Context<SatelliteContextType>;
|
10
10
|
export declare const useSatelliteContext: () => SatelliteContextType;
|
@@ -12,7 +12,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
12
12
|
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) { (0, _defineProperty2["default"])(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; }
|
13
13
|
var DEFAULT_CONTEXT = {
|
14
14
|
router: _SatelliteRouter.router,
|
15
|
-
locales: {}
|
15
|
+
locales: {},
|
16
|
+
portalTarget: null
|
16
17
|
};
|
17
18
|
var SatelliteContext = /*#__PURE__*/(0, _react.createContext)(DEFAULT_CONTEXT);
|
18
19
|
exports.SatelliteContext = SatelliteContext;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { CSSProperties,
|
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:
|
13
|
+
export declare const ScrollIndicator: VFC<ScrollIndicatorProps>;
|
14
14
|
export default ScrollIndicator;
|
@@ -23,7 +23,7 @@ var selectPlugin = plugin(function (_ref) {
|
|
23
23
|
backgroundPosition: "right ".concat(theme("spacing.4"), " center, 0 0"),
|
24
24
|
backgroundRepeat: "no-repeat",
|
25
25
|
borderRadius: theme("borderRadius.DEFAULT"),
|
26
|
-
border: "1px solid ".concat(theme("colors.grey.
|
26
|
+
border: "1px solid ".concat(theme("colors.grey.500")),
|
27
27
|
boxShadow: "0 1px 0 0 ".concat(theme("colors.shadow.5")),
|
28
28
|
"&::-moz-focus-inner, &:-moz-focusring": {
|
29
29
|
outline: "none",
|
@@ -44,7 +44,7 @@ var selectPlugin = plugin(function (_ref) {
|
|
44
44
|
},
|
45
45
|
"&:hover": {
|
46
46
|
backgroundImage: "\n ".concat(selectIconBG(theme("colors.grey.500")), ",\n linear-gradient(-180deg, ").concat(theme("colors.grey.50"), " 0%, ").concat(theme("colors.grey.100"), " 100%)\n "),
|
47
|
-
borderColor: theme("colors.grey.
|
47
|
+
borderColor: theme("colors.grey.600")
|
48
48
|
},
|
49
49
|
"&:focus": {
|
50
50
|
backgroundImage: "\n ".concat(selectIconBG(theme("colors.grey.500")), ",\n linear-gradient(-180deg, ").concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.100"), " 100%)\n "),
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as RadixSeparator from "@radix-ui/react-separator";
|
2
|
+
import type { VFC } from "react";
|
3
|
+
export interface SeparatorProps {
|
4
|
+
className?: string;
|
5
|
+
orientation?: RadixSeparator.SeparatorProps["orientation"];
|
6
|
+
}
|
7
|
+
export declare const Separator: VFC<SeparatorProps>;
|
8
|
+
export default Separator;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports["default"] = exports.Separator = void 0;
|
9
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
10
|
+
var RadixSeparator = _interopRequireWildcard(require("@radix-ui/react-separator"));
|
11
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
12
|
+
var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
14
|
+
var _templateObject;
|
15
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
17
|
+
var Separator = function Separator(_ref) {
|
18
|
+
var className = _ref.className,
|
19
|
+
_ref$orientation = _ref.orientation,
|
20
|
+
orientation = _ref$orientation === void 0 ? "horizontal" : _ref$orientation;
|
21
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RadixSeparator.Root, {
|
22
|
+
decorative: true,
|
23
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["separator"]))), className),
|
24
|
+
orientation: orientation
|
25
|
+
});
|
26
|
+
};
|
27
|
+
exports.Separator = Separator;
|
28
|
+
var _default = Separator;
|
29
|
+
exports["default"] = _default;
|