@overmap-ai/blocks 1.0.31-minimize-size.6 → 1.0.31-tailwind-components.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/AlertDialog/Content.d.ts +7 -0
- package/dist/AlertDialog/Provider.d.ts +2 -0
- package/dist/AlertDialog/context.d.ts +5 -0
- package/dist/AlertDialog/cva.d.ts +4 -0
- package/dist/AlertDialog/hooks.d.ts +1 -0
- package/dist/AlertDialog/index.d.ts +14 -0
- package/dist/AlertDialog/typings.d.ts +19 -0
- package/dist/Avatar/Fallback.d.ts +5 -0
- package/dist/Avatar/Image.d.ts +5 -0
- package/dist/Avatar/Root.d.ts +7 -0
- package/dist/Avatar/context.d.ts +7 -0
- package/dist/Avatar/cva.d.ts +6 -0
- package/dist/Avatar/index.d.ts +9 -0
- package/dist/Avatar/typings.d.ts +12 -0
- package/dist/Badge/Badge.d.ts +6 -6
- package/dist/Badge/cva.d.ts +5 -0
- package/dist/Badge/index.d.ts +1 -0
- package/dist/Badge/typings.d.ts +12 -7
- package/dist/ButtonGroup/ButtonGroup.d.ts +9 -7
- package/dist/ButtonGroup/context.d.ts +9 -4
- package/dist/ButtonGroup/index.d.ts +1 -2
- package/dist/Buttons/Button.d.ts +6 -4
- package/dist/Buttons/IconButton.d.ts +5 -7
- package/dist/Buttons/cva.d.ts +5 -0
- package/dist/Buttons/index.d.ts +4 -4
- package/dist/Buttons/typings.d.ts +11 -24
- package/dist/Checkbox/Indicator.d.ts +5 -0
- package/dist/Checkbox/Root.d.ts +7 -0
- package/dist/Checkbox/cva.d.ts +4 -0
- package/dist/Checkbox/index.d.ts +7 -3
- package/dist/Checkbox/typings.d.ts +11 -15
- package/dist/CollapsibleTree/context.d.ts +1 -4
- package/dist/CollapsibleTree/typings.d.ts +3 -16
- package/dist/Dialog/Content.d.ts +11 -0
- package/dist/Dialog/Root.d.ts +2 -0
- package/dist/Dialog/context.d.ts +3 -0
- package/dist/Dialog/hooks.d.ts +1 -0
- package/dist/Dialog/index.d.ts +11 -0
- package/dist/Dialog/typings.d.ts +17 -0
- package/dist/HoverCard/Arrow.d.ts +5 -0
- package/dist/HoverCard/Content.d.ts +8 -0
- package/dist/HoverCard/cva.d.ts +3 -0
- package/dist/HoverCard/index.d.ts +10 -0
- package/dist/HoverCard/typings.d.ts +10 -0
- package/dist/HoverUtility/HoverUtility.d.ts +1 -0
- package/dist/Input/Field.d.ts +4 -0
- package/dist/Input/Root.d.ts +6 -0
- package/dist/Input/Slot.d.ts +4 -0
- package/dist/Input/context.d.ts +8 -0
- package/dist/Input/cva.d.ts +12 -0
- package/dist/Input/index.d.ts +9 -2
- package/dist/Input/typings.d.ts +10 -12
- package/dist/Layout/Container.d.ts +3 -4
- package/dist/Layout/SlideOutOverlay.d.ts +2 -3
- package/dist/Layout/index.d.ts +3 -3
- package/dist/OvermapMenu/ClickTrigger/index.d.ts +1 -1
- package/dist/OvermapMenu/Content/Content.d.ts +1 -1
- package/dist/OvermapMenu/Content/context.d.ts +7 -1
- package/dist/OvermapMenu/Input/Field.d.ts +3 -0
- package/dist/OvermapMenu/Input/Root.d.ts +4 -0
- package/dist/OvermapMenu/Input/Slot.d.ts +5 -0
- package/dist/OvermapMenu/Input/index.d.ts +3 -1
- package/dist/OvermapMenu/Pages/index.d.ts +1 -1
- package/dist/OvermapMenu/SelectAll/SelectAllIndicator.d.ts +6 -0
- package/dist/OvermapMenu/SelectAll/SelectAllItem.d.ts +3 -0
- package/dist/OvermapMenu/SelectAll/context.d.ts +6 -0
- package/dist/OvermapMenu/SelectAll/index.d.ts +2 -0
- package/dist/OvermapMenu/SelectedIndicator/index.d.ts +1 -1
- package/dist/OvermapMenu/Separator/Separator.d.ts +1 -1
- package/dist/OvermapMenu/Sub/context.d.ts +1 -1
- package/dist/OvermapMenu/Sub/index.d.ts +1 -1
- package/dist/OvermapMenu/SubTrigger/index.d.ts +1 -1
- package/dist/OvermapMenu/cva.d.ts +20 -0
- package/dist/OvermapMenu/root/context.d.ts +1 -4
- package/dist/OvermapMenu/root/index.d.ts +1 -1
- package/dist/OvermapMenu/typings.d.ts +30 -20
- package/dist/Popover/Arrow.d.ts +5 -0
- package/dist/Popover/Content.d.ts +8 -0
- package/dist/Popover/cva.d.ts +3 -0
- package/dist/Popover/index.d.ts +19 -2
- package/dist/Popover/typings.d.ts +8 -17
- package/dist/Provider/Provider.d.ts +8 -0
- package/dist/Provider/context.d.ts +8 -0
- package/dist/Provider/index.d.ts +3 -0
- package/dist/Provider/typings.d.ts +1 -0
- package/dist/RadioGroup/Indicator.d.ts +5 -0
- package/dist/RadioGroup/Item.d.ts +6 -0
- package/dist/RadioGroup/Root.d.ts +7 -0
- package/dist/RadioGroup/context.d.ts +7 -0
- package/dist/RadioGroup/cva.d.ts +4 -0
- package/dist/RadioGroup/index.d.ts +9 -0
- package/dist/RadioGroup/typings.d.ts +10 -0
- package/dist/RiIcon/RiIcon.d.ts +4 -5
- package/dist/RiIcon/index.d.ts +0 -2
- package/dist/SelectContext/index.d.ts +1 -1
- package/dist/Separator/Separator.d.ts +8 -3
- package/dist/Separator/cva.d.ts +5 -0
- package/dist/Separator/index.d.ts +0 -1
- package/dist/Separator/typings.d.ts +11 -19
- package/dist/SlideOut/SlideOutV2.d.ts +1 -3
- package/dist/TextArea/TextArea.d.ts +6 -7
- package/dist/TextArea/cva.d.ts +5 -0
- package/dist/TextArea/typings.d.ts +13 -15
- package/dist/Toast/cva.d.ts +4 -0
- package/dist/Toast/typings.d.ts +13 -10
- package/dist/ToggleButton/BaseToggleButton.d.ts +3 -0
- package/dist/ToggleButton/IconToggleButton.d.ts +3 -0
- package/dist/ToggleButton/ToggleButton.d.ts +2 -7
- package/dist/ToggleButton/cva.d.ts +5 -0
- package/dist/ToggleButton/index.d.ts +2 -0
- package/dist/ToggleButton/typings.d.ts +18 -0
- package/dist/Tooltip/Arrow.d.ts +5 -0
- package/dist/Tooltip/Content.d.ts +8 -0
- package/dist/Tooltip/cva.d.ts +4 -0
- package/dist/Tooltip/index.d.ts +11 -1
- package/dist/Tooltip/typings.d.ts +10 -0
- package/dist/blocks.js +3089 -4024
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +3358 -19
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/constants.d.ts +1 -2
- package/dist/cva/floating.d.ts +6 -0
- package/dist/cva/index.d.ts +2 -0
- package/dist/cva/radius.d.ts +4 -0
- package/dist/index.d.ts +17 -35
- package/dist/typings.d.ts +3 -3
- package/dist/utils.d.ts +2 -27
- package/package.json +66 -42
- package/dist/Breadcrumb/Breadcrumb.d.ts +0 -27
- package/dist/Breadcrumb/context.d.ts +0 -10
- package/dist/Breadcrumb/index.d.ts +0 -2
- package/dist/ButtonGroup/ButtonList.d.ts +0 -25
- package/dist/ButtonGroup/typings.d.ts +0 -37
- package/dist/Buttons/constants.d.ts +0 -9
- package/dist/Checkbox/Checkbox.d.ts +0 -3
- package/dist/Checkbox/SelectAllCheckbox.d.ts +0 -3
- package/dist/ConfirmEditInput/ConfirmEditInput.d.ts +0 -3
- package/dist/ConfirmEditInput/index.d.ts +0 -2
- package/dist/ConfirmEditInput/typings.d.ts +0 -15
- package/dist/Dialogs/AlertDialog/AlertDialog.d.ts +0 -11
- package/dist/Dialogs/AlertDialog/AlertDialogContent.d.ts +0 -4
- package/dist/Dialogs/AlertDialog/context.d.ts +0 -8
- package/dist/Dialogs/AlertDialog/hooks.d.ts +0 -7
- package/dist/Dialogs/AlertDialog/index.d.ts +0 -3
- package/dist/Dialogs/AlertDialog/typings.d.ts +0 -49
- package/dist/Dialogs/BaseDialog/BaseDialog.d.ts +0 -3
- package/dist/Dialogs/BaseDialog/index.d.ts +0 -2
- package/dist/Dialogs/BaseDialog/typings.d.ts +0 -31
- package/dist/Dialogs/Dialog/Dialog.d.ts +0 -7
- package/dist/Dialogs/Dialog/DialogContent.d.ts +0 -3
- package/dist/Dialogs/Dialog/index.d.ts +0 -3
- package/dist/Dialogs/Dialog/typings.d.ts +0 -40
- package/dist/Dialogs/Dialog/utils.d.ts +0 -7
- package/dist/Dialogs/Overlay/Overlay.d.ts +0 -7
- package/dist/Dialogs/Overlay/index.d.ts +0 -1
- package/dist/Dialogs/index.d.ts +0 -4
- package/dist/Dialogs/typings.d.ts +0 -7
- package/dist/DownloadButtonUtility/DownloadButtonUtility.d.ts +0 -7
- package/dist/DownloadButtonUtility/index.d.ts +0 -1
- package/dist/Flex/Flex.d.ts +0 -17
- package/dist/Flex/index.d.ts +0 -1
- package/dist/IconColorUtility/IconColorUtility.d.ts +0 -17
- package/dist/IconColorUtility/index.d.ts +0 -1
- package/dist/Input/Input.d.ts +0 -3
- package/dist/ItemStack/Group.d.ts +0 -9
- package/dist/ItemStack/Item.d.ts +0 -4
- package/dist/LeftAndRightPanels/LeftAndRightPanels.d.ts +0 -34
- package/dist/LeftAndRightPanels/index.d.ts +0 -1
- package/dist/MultiPagePopover/MultiPagePopover.d.ts +0 -3
- package/dist/MultiPagePopover/index.d.ts +0 -1
- package/dist/MultiPagePopover/typings.d.ts +0 -21
- package/dist/MultiSelect/MultiSelect.d.ts +0 -28
- package/dist/MultiSelect/MultiSelectItem.d.ts +0 -14
- package/dist/MultiSelect/index.d.ts +0 -1
- package/dist/OvermapDropdownMenu/DropdownMenu.d.ts +0 -8
- package/dist/OvermapDropdownMenu/index.d.ts +0 -1
- package/dist/OvermapDropdownMultiSelect/DropdownMultiSelect.d.ts +0 -8
- package/dist/OvermapDropdownMultiSelect/index.d.ts +0 -1
- package/dist/OvermapDropdownSelect/DropdownSelect.d.ts +0 -8
- package/dist/OvermapDropdownSelect/index.d.ts +0 -1
- package/dist/OvermapInputItem/OvermapInputItem.d.ts +0 -6
- package/dist/OvermapInputItem/index.d.ts +0 -2
- package/dist/OvermapInputItem/typings.d.ts +0 -4
- package/dist/OvermapItem/OvermapItem.d.ts +0 -5
- package/dist/OvermapItem/constants.d.ts +0 -2
- package/dist/OvermapItem/index.d.ts +0 -2
- package/dist/OvermapItem/typings.d.ts +0 -24
- package/dist/OvermapItemGroup/OvermapItemGroup.d.ts +0 -3
- package/dist/OvermapItemGroup/context.d.ts +0 -9
- package/dist/OvermapItemGroup/index.d.ts +0 -3
- package/dist/OvermapItemGroup/typings.d.ts +0 -6
- package/dist/OvermapMenu/Input/Input.d.ts +0 -3
- package/dist/OvermapMenu/Scroll/Scroll.d.ts +0 -2
- package/dist/OvermapMenu/Scroll/index.d.ts +0 -1
- package/dist/OvermapMenu/index.d.ts +0 -29
- package/dist/Popover/Popover.d.ts +0 -3
- package/dist/RiIcon/constants.d.ts +0 -134
- package/dist/RiIcon/typings.d.ts +0 -2
- package/dist/Select/Select.d.ts +0 -3
- package/dist/Select/index.d.ts +0 -2
- package/dist/Select/typings.d.ts +0 -22
- package/dist/Sidebar/Sidebar.d.ts +0 -30
- package/dist/Sidebar/index.d.ts +0 -1
- package/dist/Switch/Switch.d.ts +0 -7
- package/dist/Switch/index.d.ts +0 -2
- package/dist/Switch/typings.d.ts +0 -13
- package/dist/Table/Table.d.ts +0 -3
- package/dist/Table/index.d.ts +0 -2
- package/dist/Table/typings.d.ts +0 -70
- package/dist/Text/Text.d.ts +0 -24
- package/dist/Text/index.d.ts +0 -1
- package/dist/Theme/DefaultTheme.d.ts +0 -4
- package/dist/Theme/index.d.ts +0 -2
- package/dist/ToggleGroup/ToggleGroup.d.ts +0 -7
- package/dist/ToggleGroup/index.d.ts +0 -2
- package/dist/ToggleGroup/typings.d.ts +0 -7
- package/dist/Toolbar/Toolbar.d.ts +0 -23
- package/dist/Toolbar/index.d.ts +0 -1
- package/dist/Tooltip/Tooltip.d.ts +0 -6
- package/dist/style.css +0 -1
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { DialogContent } from "@radix-ui/themes";
|
|
3
|
-
import { CloseDialog, CloseDialogWithOptions } from "../typings";
|
|
4
|
-
type RadixDialogContentProps = React.ComponentProps<typeof DialogContent>;
|
|
5
|
-
export interface DialogProps extends Omit<RadixDialogContentProps, "content" | "children"> {
|
|
6
|
-
/** The content of the dialog, which is rendered below the description.
|
|
7
|
-
* Should include buttons to close the dialog.
|
|
8
|
-
*/
|
|
9
|
-
content: (close: CloseDialogWithOptions) => ReactNode;
|
|
10
|
-
/** The title of the Dialog should only be a few words */
|
|
11
|
-
title: string;
|
|
12
|
-
/** The description of the Dialog should explain what is happening and possible ramifications. */
|
|
13
|
-
description?: string;
|
|
14
|
-
/** The button triggering the dialog to open. */
|
|
15
|
-
children?: ReactNode;
|
|
16
|
-
/** Should the dialog be opened by default when the page is first rendered.
|
|
17
|
-
* @default false
|
|
18
|
-
*/
|
|
19
|
-
defaultOpen?: boolean;
|
|
20
|
-
/** Called when the dialog opens. Unlike `onCloseInterrupt`, it does not interrupt the dialog opening */
|
|
21
|
-
onOpen?: () => void;
|
|
22
|
-
/** Interrupts the close process; use the provided `confirmClose` callback to continue the close process. */
|
|
23
|
-
onCloseInterrupt?: (confirmClose: CloseDialog) => void;
|
|
24
|
-
/** Called when the dialog closes. If used in conjunction with `onCloseInterrupt`,
|
|
25
|
-
* the `onClose` callback executes when the `confirmClose` callback is called. */
|
|
26
|
-
onClose?: () => void;
|
|
27
|
-
/** Manually control the open state
|
|
28
|
-
* @deprecated Use `defaultOpen` and `Trigger` when possible as they are more
|
|
29
|
-
* accessible and correctly handle focus when the dialog is closed.
|
|
30
|
-
*/
|
|
31
|
-
open?: boolean;
|
|
32
|
-
/** Manually control the open state changes.
|
|
33
|
-
* @deprecated Use `onOpen` and `onCloseInterrupt` when possible.
|
|
34
|
-
*/
|
|
35
|
-
onOpenChange?: (open: boolean) => void;
|
|
36
|
-
}
|
|
37
|
-
export interface DialogContentProps extends Pick<DialogProps, "title" | "description" | "content"> {
|
|
38
|
-
closeDialog: CloseDialogWithOptions;
|
|
39
|
-
}
|
|
40
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CloseDialogOptions, CloseDialogWithOptions } from "../typings";
|
|
2
|
-
/** This custom hook is used as a utility for wrapping a general callback in callback that accepts a close function for the
|
|
3
|
-
* Blocks dialog component. Sometimes a side effect callback needs to be run upon the closure of a Dialog. This provides
|
|
4
|
-
* a hook to wrap a callback with the returned close function passed to the Dialog Content. This allows the closure of
|
|
5
|
-
* the Dialog and the callback to be run simultaneously. It also saves the developer from attaching callback logic with
|
|
6
|
-
* the close functionality of the Dialog. */
|
|
7
|
-
export declare const useWrapCallbackInDialogClose: (callback: (...arg: never[]) => void, closeOptions: CloseDialogOptions) => (...arg: never[]) => (closeDialog: CloseDialogWithOptions) => void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseDialogProps } from "../BaseDialog";
|
|
3
|
-
export interface OverlayProps extends BaseDialogProps {
|
|
4
|
-
}
|
|
5
|
-
/** The Overlay component is a versatile UI element designed to provide a layer above the existing content.
|
|
6
|
-
* It serves various purposes such as modals, popovers, tooltips, or any other temporary or context-based UI overlay.*/
|
|
7
|
-
export declare const Overlay: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<OverlayProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Overlay";
|
package/dist/Dialogs/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** Triggers the dialog to close */
|
|
2
|
-
export type CloseDialog = () => void;
|
|
3
|
-
export interface CloseDialogOptions {
|
|
4
|
-
/** Bypass the `onCloseInterrupt` and force the dialog to close */
|
|
5
|
-
force?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export type CloseDialogWithOptions = (options?: CloseDialogOptions) => void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
interface DownloadButtonUtilityProps {
|
|
3
|
-
children: ReactElement;
|
|
4
|
-
file: File;
|
|
5
|
-
}
|
|
6
|
-
export declare const DownloadButtonUtility: import("react").MemoExoticComponent<(props: DownloadButtonUtilityProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./DownloadButtonUtility";
|
package/dist/Flex/Flex.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "react";
|
|
2
|
-
import { Flex as RadixFlex } from "@radix-ui/themes";
|
|
3
|
-
export interface FlexProps extends ComponentProps<typeof RadixFlex> {
|
|
4
|
-
/** if true the border radius of the Flex container will match the one specified by the Theme
|
|
5
|
-
* @default false
|
|
6
|
-
* */
|
|
7
|
-
radius?: boolean;
|
|
8
|
-
/** if true sets the min-width of the Flex container to 0
|
|
9
|
-
* @default false
|
|
10
|
-
* */
|
|
11
|
-
zeroMinWidth?: boolean;
|
|
12
|
-
/** if true sets the min-height of the Flex container to 0
|
|
13
|
-
* @default false
|
|
14
|
-
* */
|
|
15
|
-
zeroMinHeight?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare const Flex: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<FlexProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>>;
|
package/dist/Flex/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Flex";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, ReactElement } from "react";
|
|
2
|
-
import { Theme } from "@radix-ui/themes";
|
|
3
|
-
import { Severity } from "../typings";
|
|
4
|
-
interface IconColorUtilityProps {
|
|
5
|
-
children: ReactElement;
|
|
6
|
-
}
|
|
7
|
-
interface IconColorUtilitySeverityProps extends IconColorUtilityProps {
|
|
8
|
-
severity: Severity;
|
|
9
|
-
color?: undefined;
|
|
10
|
-
}
|
|
11
|
-
interface IconColorUtilityColorProps extends IconColorUtilityProps {
|
|
12
|
-
color: Exclude<ComponentProps<typeof Theme>["accentColor"], undefined>;
|
|
13
|
-
severity?: undefined;
|
|
14
|
-
}
|
|
15
|
-
/** This component is used to provide Icons color based on Severity or a Radix theme accentColor */
|
|
16
|
-
export declare const IconColorUtility: import("react").NamedExoticComponent<IconColorUtilitySeverityProps | IconColorUtilityColorProps>;
|
|
17
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./IconColorUtility";
|
package/dist/Input/Input.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, PropsWithChildren } from "react";
|
|
2
|
-
import { Flex } from "@radix-ui/themes";
|
|
3
|
-
import { OvermapResponsive } from "../typings";
|
|
4
|
-
interface ItemStackGroupProps extends PropsWithChildren {
|
|
5
|
-
direction: Extract<ComponentProps<typeof Flex>["direction"], "row" | "column">;
|
|
6
|
-
offset: OvermapResponsive<string>;
|
|
7
|
-
}
|
|
8
|
-
export declare const Group: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ItemStackGroupProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
9
|
-
export {};
|
package/dist/ItemStack/Item.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode, ReactElement } from "react";
|
|
2
|
-
export interface LeftAndRightPanelsProps {
|
|
3
|
-
/** content to be rendered within the center panel */
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
/** state to determine whether to show or hide the left panel*/
|
|
6
|
-
showLeft?: boolean;
|
|
7
|
-
/** content to be rendered within the left panel*/
|
|
8
|
-
leftPanel?: ReactElement;
|
|
9
|
-
/** minimum width of the left panel when resizing */
|
|
10
|
-
leftMinWidth?: number;
|
|
11
|
-
/** maximum width of the left panel when resizing */
|
|
12
|
-
leftMaxWidth?: number;
|
|
13
|
-
/** state to determine whether to show or hide the right panel*/
|
|
14
|
-
showRight?: boolean;
|
|
15
|
-
/** content to be rendered within the left panel*/
|
|
16
|
-
rightPanel?: ReactElement;
|
|
17
|
-
/** minimum width of the left panel when resizing */
|
|
18
|
-
rightMinWidth?: number;
|
|
19
|
-
/** maximum width of the left panel when resizing */
|
|
20
|
-
rightMaxWidth?: number;
|
|
21
|
-
/** used to disable or enable resizing on the left and right panels */
|
|
22
|
-
resizeable?: {
|
|
23
|
-
left?: boolean;
|
|
24
|
-
right?: boolean;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
/** Panels are graphical elements that divide a screen or window into distinct sections, each of which can contain
|
|
28
|
-
* different types of content or functionality. They are often used to organize and present information in a structured
|
|
29
|
-
* manner. In many graphical user interfaces (GUIs), panels are draggable and resizable, allowing users to customize
|
|
30
|
-
* the layout to suit their preferences. Panels can be used for a variety of purposes, such as displaying navigation
|
|
31
|
-
* menus, presenting data, providing tools or controls, or hosting multimedia content. LeftAndRightPanels renders main
|
|
32
|
-
* content and provides left and right resizable, toggleable panels. This component can be rendered within any element
|
|
33
|
-
* as its container and the Panels will be scoped to the height and appear to the left and right of that container. */
|
|
34
|
-
export declare const LeftAndRightPanels: FC<LeftAndRightPanelsProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./LeftAndRightPanels";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./MultiPagePopover";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { PopoverProps } from "../Popover/typings";
|
|
3
|
-
export type MultiPagePopoverOption = {
|
|
4
|
-
value: string;
|
|
5
|
-
label: ReactNode;
|
|
6
|
-
page?: MultiPagePopoverPage;
|
|
7
|
-
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
8
|
-
buttonClassName?: string;
|
|
9
|
-
};
|
|
10
|
-
export interface MultiPagePopoverPage {
|
|
11
|
-
title?: ReactNode;
|
|
12
|
-
options?: MultiPagePopoverOption[];
|
|
13
|
-
content?: ReactNode;
|
|
14
|
-
buttonsContainerClassName?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface MultiPagePopoverProps extends Omit<PopoverProps, "content"> {
|
|
17
|
-
page: MultiPagePopoverPage;
|
|
18
|
-
className?: string;
|
|
19
|
-
direction?: "vertical" | "horizontal";
|
|
20
|
-
color: "light" | "dark";
|
|
21
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Select } from "@radix-ui/themes";
|
|
2
|
-
import { ComponentProps, FC } from "react";
|
|
3
|
-
import { Severity, Size } from "../typings";
|
|
4
|
-
import { MultiSelectOption } from "./MultiSelectItem";
|
|
5
|
-
type RadixTriggerProps = ComponentProps<typeof Select.Trigger>;
|
|
6
|
-
export interface MultiSelectProps {
|
|
7
|
-
value: string[];
|
|
8
|
-
onValueChange: (value: string[]) => void;
|
|
9
|
-
options: MultiSelectOption[];
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/** @default medium */
|
|
12
|
-
size?: Size;
|
|
13
|
-
name?: string;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
id?: string;
|
|
16
|
-
/** @default surface */
|
|
17
|
-
variant?: Exclude<RadixTriggerProps["variant"], "classic">;
|
|
18
|
-
radius?: RadixTriggerProps["radius"];
|
|
19
|
-
/** @default primary */
|
|
20
|
-
severity?: Severity;
|
|
21
|
-
className?: string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* `MultiSelect` does not support being used as an uncontrolled component,
|
|
25
|
-
* hence `onValueChange` and `value` are required.
|
|
26
|
-
*/
|
|
27
|
-
export declare const MultiSelect: FC<MultiSelectProps>;
|
|
28
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from "react";
|
|
2
|
-
import { SizeMapping } from "../constants";
|
|
3
|
-
import { Size } from "../typings";
|
|
4
|
-
import { Responsive } from "@radix-ui/themes";
|
|
5
|
-
export interface MultiSelectOption {
|
|
6
|
-
label: ReactNode;
|
|
7
|
-
value: string;
|
|
8
|
-
}
|
|
9
|
-
interface MultiSelectItemProps extends MultiSelectOption {
|
|
10
|
-
checked: boolean;
|
|
11
|
-
size?: Responsive<(typeof SizeMapping)[Size]>;
|
|
12
|
-
}
|
|
13
|
-
export declare const MultiSelectItem: FC<MultiSelectItemProps>;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./MultiSelect";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { MenuClickTriggerProps, MenuRootProps, MenuItemProps } from "../OvermapMenu";
|
|
3
|
-
interface DropdownMenuProps extends Omit<MenuRootProps, "children">, Omit<MenuClickTriggerProps, "children"> {
|
|
4
|
-
trigger: ReactElement;
|
|
5
|
-
items: MenuItemProps[];
|
|
6
|
-
}
|
|
7
|
-
export declare const DropdownMenu: import("react").MemoExoticComponent<(props: DropdownMenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DropdownMenu as OvermapDropdownMenu } from "./DropdownMenu";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { MenuClickTriggerProps, MenuMultiSelectGroupProps, MenuRootProps, MenuSelectItemProps } from "../OvermapMenu";
|
|
3
|
-
interface DropdownMultiSelectProps extends Omit<MenuRootProps, "children">, Omit<MenuClickTriggerProps, "children">, MenuMultiSelectGroupProps {
|
|
4
|
-
trigger: ReactElement;
|
|
5
|
-
items: MenuSelectItemProps[];
|
|
6
|
-
}
|
|
7
|
-
export declare const DropdownMultiSelect: import("react").MemoExoticComponent<(props: DropdownMultiSelectProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DropdownMultiSelect as OvermapDropdownMultiSelect } from "./DropdownMultiSelect";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { MenuClickTriggerProps, MenuRootProps, MenuSelectGroupProps, MenuSelectItemProps } from "../OvermapMenu";
|
|
3
|
-
interface DropdownSelectProps extends Omit<MenuRootProps, "children">, Omit<MenuClickTriggerProps, "children">, MenuSelectGroupProps {
|
|
4
|
-
trigger: ReactElement;
|
|
5
|
-
items: MenuSelectItemProps[];
|
|
6
|
-
}
|
|
7
|
-
export declare const DropdownSelect: import("react").MemoExoticComponent<(props: DropdownSelectProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DropdownSelect as OvermapDropdownSelect } from "./DropdownSelect";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { OvermapInputItemProps } from "./typings";
|
|
3
|
-
/** The OvermapInputItem component is used as a Base Component to provide an input-based element that follows the
|
|
4
|
-
* OvermapItem layout, in an item-like format. It supports responsive sizing and slot props to insert content to the
|
|
5
|
-
* left and right of its input field. */
|
|
6
|
-
export declare const OvermapInputItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<OvermapInputItemProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { OvermapItemProps } from "./typings";
|
|
3
|
-
/** The OvermapItem component is supposed to be used as a Base Component to layout content in an item-like format. It
|
|
4
|
-
* supports responsive sizing and slot props to insert content to the left and right of its children. */
|
|
5
|
-
export declare const OvermapItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<OvermapItemProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { HTMLProps, ReactNode, ComponentProps } from "react";
|
|
2
|
-
import { Flex } from "@radix-ui/themes";
|
|
3
|
-
import { OvermapResponsive } from "../typings";
|
|
4
|
-
type FlexProps = ComponentProps<typeof Flex>;
|
|
5
|
-
export interface SizeDependableProps {
|
|
6
|
-
gap: FlexProps["gap"];
|
|
7
|
-
px: FlexProps["px"];
|
|
8
|
-
height: FlexProps["height"];
|
|
9
|
-
fontSize: string;
|
|
10
|
-
}
|
|
11
|
-
export type OvermapItemSizes = "1" | "2" | "3" | "4" | "5";
|
|
12
|
-
export interface OvermapItemProps extends Omit<HTMLProps<HTMLDivElement>, "ref" | "width" | "height" | "wrap" | "size"> {
|
|
13
|
-
/** content to be rendered on the left of any children */
|
|
14
|
-
leftSlot?: ReactNode;
|
|
15
|
-
/** content to be rendered on the right of any children */
|
|
16
|
-
rightSlot?: ReactNode;
|
|
17
|
-
/** supports five different sizes, changing the overall proportions of the OvermapItem including font size. */
|
|
18
|
-
size?: OvermapResponsive<OvermapItemSizes>;
|
|
19
|
-
/** displays the item in a "compact" mode.
|
|
20
|
-
* leftSlot and rightSlot won't be visible, and the width and height are the same
|
|
21
|
-
* based on the "size" prop. */
|
|
22
|
-
compact?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { OvermapItemProps } from "../OvermapItem";
|
|
3
|
-
interface OvermapItemGroupContext {
|
|
4
|
-
size: OvermapItemProps["size"];
|
|
5
|
-
compact: OvermapItemProps["compact"];
|
|
6
|
-
}
|
|
7
|
-
export declare const OvermapItemGroupContext: import("react").Context<OvermapItemGroupContext>;
|
|
8
|
-
export declare const useOvermapItemGroupContext: () => OvermapItemGroupContext;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Scroll";
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const OvermapMenu: {
|
|
3
|
-
Root: import("react").MemoExoticComponent<(props: import("./typings").MenuRootProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
-
ClickTrigger: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./typings").MenuClickTriggerProps & import("react").RefAttributes<HTMLElement>>>;
|
|
5
|
-
ContextTrigger: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./typings").MenuContextTriggerProps & import("react").RefAttributes<HTMLElement>>>;
|
|
6
|
-
VirtualTrigger: import("react").MemoExoticComponent<(props: import("./typings").MenuVirtualTriggerProps) => null>;
|
|
7
|
-
Content: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./typings").MenuContentProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
8
|
-
Item: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./typings").MenuItemProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
9
|
-
Sub: import("react").MemoExoticComponent<(props: import("./typings").MenuSubProps) => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
-
SubContent: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./typings").SubMenuContentProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
11
|
-
SubTrigger: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./typings").MenuSubTriggerProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
12
|
-
Group: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./typings").MenuGroupProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
13
|
-
SelectGroup: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./typings").MenuSelectGroupProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
14
|
-
MultiSelectGroup: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./typings").MenuMultiSelectGroupProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
15
|
-
MultiSelectItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./typings").MenuSelectItemProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
16
|
-
SelectItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./typings").MenuSelectItemProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
17
|
-
SelectedIndicator: import("react").MemoExoticComponent<(props: {
|
|
18
|
-
children?: import("react").ReactNode;
|
|
19
|
-
}) => import("react/jsx-runtime").JSX.Element>;
|
|
20
|
-
PageContent: import("react").MemoExoticComponent<(props: import("./typings").PageContentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
21
|
-
Pages: import("react").MemoExoticComponent<(props: import("./typings").PageProps) => import("react/jsx-runtime").JSX.Element>;
|
|
22
|
-
PageTrigger: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./typings").PageTriggerProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
23
|
-
Separator: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("./typings").MenuSeparatorProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
24
|
-
Input: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./typings").MenuInputProps & import("react").RefAttributes<HTMLInputElement>>>;
|
|
25
|
-
Scroll: import("react").MemoExoticComponent<(props: {
|
|
26
|
-
children?: import("react").ReactNode;
|
|
27
|
-
}) => import("react/jsx-runtime").JSX.Element>;
|
|
28
|
-
};
|
|
29
|
-
export * from "./typings";
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
We use `@react-icons/all-files` to reduce the bundle size.
|
|
3
|
-
The default `react-icons` package does not support tree-shaking.
|
|
4
|
-
We use an external .tar.gz file to use the `all-files` package because it has too many files for NPM to host.
|
|
5
|
-
This drastically reduces the bundle size, and therefore the load time and memory usage of the app (and improves
|
|
6
|
-
SEO), b at the cost of a slower `yarn install` and having to define the available icons in this file.
|
|
7
|
-
On the other hand, defining all used icons in this file makes it easier to find icons because we get autocomplete
|
|
8
|
-
and validation through TypeScript instead of hoping that there's a matching icon in the `react-icons` package.
|
|
9
|
-
*/
|
|
10
|
-
export declare const USED_ICONS: {
|
|
11
|
-
readonly RiAccountBoxLine: IconType;
|
|
12
|
-
readonly RiAddLine: IconType;
|
|
13
|
-
readonly RiAlertLine: IconType;
|
|
14
|
-
readonly RiArrowDownSFill: IconType;
|
|
15
|
-
readonly RiArrowDownSLine: IconType;
|
|
16
|
-
readonly RiArrowDropDownLine: IconType;
|
|
17
|
-
readonly RiArrowGoBackLine: IconType;
|
|
18
|
-
readonly RiArrowLeftDoubleLine: IconType;
|
|
19
|
-
readonly RiArrowLeftLine: IconType;
|
|
20
|
-
readonly RiArrowLeftSLine: IconType;
|
|
21
|
-
readonly RiArrowRightDoubleLine: IconType;
|
|
22
|
-
readonly RiArrowRightLine: IconType;
|
|
23
|
-
readonly RiArrowRightSLine: IconType;
|
|
24
|
-
readonly RiArrowUpLine: IconType;
|
|
25
|
-
readonly RiArrowUpSFill: IconType;
|
|
26
|
-
readonly RiArrowUpSLine: IconType;
|
|
27
|
-
readonly RiArticleFill: IconType;
|
|
28
|
-
readonly RiAttachment2: IconType;
|
|
29
|
-
readonly RiBankCardFill: IconType;
|
|
30
|
-
readonly RiBarChartFill: IconType;
|
|
31
|
-
readonly RiBardFill: IconType;
|
|
32
|
-
readonly RiBold: IconType;
|
|
33
|
-
readonly RiBugLine: IconType;
|
|
34
|
-
readonly RiBuilding2Fill: IconType;
|
|
35
|
-
readonly RiCalendarEventFill: IconType;
|
|
36
|
-
readonly RiCalendarFill: IconType;
|
|
37
|
-
readonly RiCheckLine: IconType;
|
|
38
|
-
readonly RiCheckboxBlankFill: IconType;
|
|
39
|
-
readonly RiCircleFill: IconType;
|
|
40
|
-
readonly RiCircleLine: IconType;
|
|
41
|
-
readonly RiCloseCircleFill: IconType;
|
|
42
|
-
readonly RiCloseLargeLine: IconType;
|
|
43
|
-
readonly RiCloseLine: IconType;
|
|
44
|
-
readonly RiColorFilterFill: IconType;
|
|
45
|
-
readonly RiCommunityLine: IconType;
|
|
46
|
-
readonly RiDeleteBin2Line: IconType;
|
|
47
|
-
readonly RiDeleteBin7Fill: IconType;
|
|
48
|
-
readonly RiDeleteBin7Line: IconType;
|
|
49
|
-
readonly RiDownload2Line: IconType;
|
|
50
|
-
readonly RiDragDropLine: IconType;
|
|
51
|
-
readonly RiDragMoveFill: IconType;
|
|
52
|
-
readonly RiDraggable: IconType;
|
|
53
|
-
readonly RiEqualizerFill: IconType;
|
|
54
|
-
readonly RiEqualizerLine: IconType;
|
|
55
|
-
readonly RiErrorWarningLine: IconType;
|
|
56
|
-
readonly RiExpandDiagonalFill: IconType;
|
|
57
|
-
readonly RiExpandDiagonalLine: IconType;
|
|
58
|
-
readonly RiExpandUpDownLine: IconType;
|
|
59
|
-
readonly RiExportFill: IconType;
|
|
60
|
-
readonly RiExternalLinkFill: IconType;
|
|
61
|
-
readonly RiExternalLinkLine: IconType;
|
|
62
|
-
readonly RiEyeOffFill: IconType;
|
|
63
|
-
readonly RiFile3Fill: IconType;
|
|
64
|
-
readonly RiFileCopy2Line: IconType;
|
|
65
|
-
readonly RiFileCopyFill: IconType;
|
|
66
|
-
readonly RiFileCopyLine: IconType;
|
|
67
|
-
readonly RiFileTextFill: IconType;
|
|
68
|
-
readonly RiFilter3Line: IconType;
|
|
69
|
-
readonly RiFocus3Line: IconType;
|
|
70
|
-
readonly RiFontColor: IconType;
|
|
71
|
-
readonly RiFunctionFill: IconType;
|
|
72
|
-
readonly RiH1: IconType;
|
|
73
|
-
readonly RiH2: IconType;
|
|
74
|
-
readonly RiH3: IconType;
|
|
75
|
-
readonly RiHome2Line: IconType;
|
|
76
|
-
readonly RiHomeLine: IconType;
|
|
77
|
-
readonly RiImportFill: IconType;
|
|
78
|
-
readonly RiInformationLine: IconType;
|
|
79
|
-
readonly RiInstanceLine: IconType;
|
|
80
|
-
readonly RiItalic: IconType;
|
|
81
|
-
readonly RiLayoutColumnLine: IconType;
|
|
82
|
-
readonly RiLayoutLeftLine: IconType;
|
|
83
|
-
readonly RiLayoutRightLine: IconType;
|
|
84
|
-
readonly RiLink: IconType;
|
|
85
|
-
readonly RiLinkUnlink: IconType;
|
|
86
|
-
readonly RiListCheck: IconType;
|
|
87
|
-
readonly RiListOrdered: IconType;
|
|
88
|
-
readonly RiListUnordered: IconType;
|
|
89
|
-
readonly RiLoginBoxLine: IconType;
|
|
90
|
-
readonly RiLogoutBoxLine: IconType;
|
|
91
|
-
readonly RiLoopLeftLine: IconType;
|
|
92
|
-
readonly RiMapPin2Fill: IconType;
|
|
93
|
-
readonly RiMapPin5Fill: IconType;
|
|
94
|
-
readonly RiMarkPenFill: IconType;
|
|
95
|
-
readonly RiMarkupFill: IconType;
|
|
96
|
-
readonly RiMenuLine: IconType;
|
|
97
|
-
readonly RiMoonFill: IconType;
|
|
98
|
-
readonly RiMore2Fill: IconType;
|
|
99
|
-
readonly RiMoreFill: IconType;
|
|
100
|
-
readonly RiMusic2Fill: IconType;
|
|
101
|
-
readonly RiNavigationFill: IconType;
|
|
102
|
-
readonly RiPencilFill: IconType;
|
|
103
|
-
readonly RiPencilLine: IconType;
|
|
104
|
-
readonly RiPlayFill: IconType;
|
|
105
|
-
readonly RiQuestionLine: IconType;
|
|
106
|
-
readonly RiQuestionMark: IconType;
|
|
107
|
-
readonly RiQuoteText: IconType;
|
|
108
|
-
readonly RiRefreshLine: IconType;
|
|
109
|
-
readonly RiRestartLine: IconType;
|
|
110
|
-
readonly RiRoadMapFill: IconType;
|
|
111
|
-
readonly RiSearchLine: IconType;
|
|
112
|
-
readonly RiSeparator: IconType;
|
|
113
|
-
readonly RiSettings2Line: IconType;
|
|
114
|
-
readonly RiSquareFill: IconType;
|
|
115
|
-
readonly RiSquareLine: IconType;
|
|
116
|
-
readonly RiStarLine: IconType;
|
|
117
|
-
readonly RiStrikethrough: IconType;
|
|
118
|
-
readonly RiSubtractLine: IconType;
|
|
119
|
-
readonly RiSunFill: IconType;
|
|
120
|
-
readonly RiTableView: IconType;
|
|
121
|
-
readonly RiThumbDownFill: IconType;
|
|
122
|
-
readonly RiThumbDownLine: IconType;
|
|
123
|
-
readonly RiThumbUpFill: IconType;
|
|
124
|
-
readonly RiThumbUpLine: IconType;
|
|
125
|
-
readonly RiTimeLine: IconType;
|
|
126
|
-
readonly RiUnderline: IconType;
|
|
127
|
-
readonly RiUploadLine: IconType;
|
|
128
|
-
readonly RiUser2Fill: IconType;
|
|
129
|
-
readonly RiUser3Fill: IconType;
|
|
130
|
-
readonly RiUserAddFill: IconType;
|
|
131
|
-
readonly RiUserForbidFill: IconType;
|
|
132
|
-
readonly RiUserLine: IconType;
|
|
133
|
-
};
|
|
134
|
-
export declare const DEFAULT_ICON_SIZE = "15px";
|
package/dist/RiIcon/typings.d.ts
DELETED
package/dist/Select/Select.d.ts
DELETED
package/dist/Select/index.d.ts
DELETED
package/dist/Select/typings.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, ReactNode } from "react";
|
|
2
|
-
import { Responsive, Select as RadixSelect } from "@radix-ui/themes";
|
|
3
|
-
import { Severity, Size, Variant } from "../typings.ts";
|
|
4
|
-
type RadixSelectItemProps = ComponentProps<typeof RadixSelect.Item>;
|
|
5
|
-
type RadixSelectContentProps = ComponentProps<typeof RadixSelect.Content>;
|
|
6
|
-
export interface SelectItemProps extends Omit<RadixSelectItemProps, "asChild" | "textValue"> {
|
|
7
|
-
itemContent: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export interface SelectProps extends Omit<ComponentProps<typeof RadixSelect.Root>, "dir" | "open" | "onOpenChange" | "size"> {
|
|
10
|
-
className?: string;
|
|
11
|
-
size?: Responsive<Size>;
|
|
12
|
-
label?: string;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
fluid?: boolean;
|
|
15
|
-
id?: string;
|
|
16
|
-
side?: RadixSelectContentProps["side"];
|
|
17
|
-
items?: SelectItemProps[];
|
|
18
|
-
severity?: Severity;
|
|
19
|
-
itemSeverity?: Severity;
|
|
20
|
-
variant?: Extract<Variant, "surface" | "ghost" | "soft">;
|
|
21
|
-
}
|
|
22
|
-
export {};
|