@overmap-ai/blocks 1.0.37 → 1.0.39-alpha.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/dist/AlertDialog/Content.d.ts +10 -3
- package/dist/AlertDialog/Provider.d.ts +8 -2
- package/dist/AlertDialog/index.d.ts +1 -1
- package/dist/Avatar/Fallback.d.ts +7 -3
- package/dist/Avatar/Image.d.ts +7 -3
- package/dist/Avatar/Root.d.ts +12 -3
- package/dist/Avatar/index.d.ts +3 -3
- package/dist/Badge/Badge.d.ts +13 -3
- package/dist/ButtonGroup/ButtonGroup.d.ts +10 -4
- package/dist/Buttons/Button.d.ts +12 -3
- package/dist/Buttons/IconButton.d.ts +12 -3
- package/dist/Card/Card.d.ts +12 -3
- package/dist/Checkbox/Indicator.d.ts +7 -3
- package/dist/Checkbox/Root.d.ts +12 -3
- package/dist/Checkbox/index.d.ts +2 -2
- package/dist/CheckboxGroup/Item.d.ts +10 -0
- package/dist/CheckboxGroup/Root.d.ts +12 -0
- package/dist/CheckboxGroup/SelectAllItem.d.ts +9 -0
- package/dist/CommandMenu/CheckboxIndicator.d.ts +1 -1
- package/dist/CommandMenu/CheckboxItem.d.ts +1 -1
- package/dist/CommandMenu/Page.d.ts +1 -1
- package/dist/CommandMenu/PageTriggerItem.d.ts +1 -1
- package/dist/CommandMenu/Pages.d.ts +1 -1
- package/dist/CommandMenu/SelectedIndicator.d.ts +1 -1
- package/dist/CommandMenu/index.d.ts +6 -6
- package/dist/DayPicker/DayPicker.d.ts +11 -1
- package/dist/Dialog/Content.d.ts +11 -4
- package/dist/Dialog/Overlay.d.ts +9 -3
- package/dist/Dialog/Root.d.ts +12 -1
- package/dist/Dialog/index.d.ts +5 -3
- package/dist/Heading/Heading.d.ts +14 -3
- package/dist/HoverCard/Arrow.d.ts +3 -3
- package/dist/HoverCard/Content.d.ts +14 -3
- package/dist/HoverCard/index.d.ts +2 -2
- package/dist/Input/Field.d.ts +7 -3
- package/dist/Input/Root.d.ts +12 -3
- package/dist/Input/Slot.d.ts +8 -3
- package/dist/Input/index.d.ts +3 -3
- package/dist/Layout/Container.d.ts +7 -3
- package/dist/Layout/Root.d.ts +9 -7
- package/dist/Layout/SlideOut.d.ts +5 -8
- package/dist/Layout/SlideOutOverlay.d.ts +8 -5
- package/dist/Layout/SlideOutTrigger.d.ts +7 -5
- package/dist/Layout/context.d.ts +3 -7
- package/dist/Link/Link.d.ts +13 -3
- package/dist/Menu/ClickTrigger/ClickTrigger.d.ts +7 -1
- package/dist/Menu/Content/Content.d.ts +9 -0
- package/dist/Menu/Item/Item.d.ts +9 -0
- package/dist/Menu/index.d.ts +1 -1
- package/dist/Menu/root/Root.d.ts +13 -0
- package/dist/Popover/Arrow.d.ts +3 -3
- package/dist/Popover/Content.d.ts +13 -3
- package/dist/Popover/index.d.ts +2 -2
- package/dist/Progress/Progress.d.ts +11 -0
- package/dist/Provider/Provider.d.ts +8 -1
- package/dist/RadioGroup/Indicator.d.ts +3 -3
- package/dist/RadioGroup/Item.d.ts +10 -3
- package/dist/RadioGroup/Root.d.ts +11 -3
- package/dist/RadioGroup/index.d.ts +3 -3
- package/dist/RiIcon/RiIcon.d.ts +3 -3
- package/dist/SegmentedControl/Item.d.ts +7 -3
- package/dist/SegmentedControl/Root.d.ts +13 -3
- package/dist/SegmentedControl/index.d.ts +2 -2
- package/dist/SegmentedTabs/List.d.ts +3 -3
- package/dist/SegmentedTabs/Root.d.ts +3 -3
- package/dist/SegmentedTabs/Trigger.d.ts +3 -3
- package/dist/SegmentedTabs/index.d.ts +3 -3
- package/dist/Separator/Separator.d.ts +11 -3
- package/dist/SlideOut/SlideOut.d.ts +3 -3
- package/dist/Slider/Slider.d.ts +10 -0
- package/dist/Spinner/Spinner.d.ts +4 -0
- package/dist/Switch/Root.d.ts +11 -3
- package/dist/Switch/Thumb.d.ts +8 -3
- package/dist/Switch/index.d.ts +2 -2
- package/dist/Table/Body.d.ts +7 -3
- package/dist/Table/Cell.d.ts +7 -3
- package/dist/Table/ColumnHeaderCell.d.ts +3 -3
- package/dist/Table/Footer.d.ts +3 -3
- package/dist/Table/Header.d.ts +7 -3
- package/dist/Table/Root.d.ts +12 -3
- package/dist/Table/Row.d.ts +7 -3
- package/dist/Table/RowHeaderCell.d.ts +3 -3
- package/dist/Table/index.d.ts +8 -8
- package/dist/Tabs/List.d.ts +10 -3
- package/dist/Tabs/Root.d.ts +7 -3
- package/dist/Tabs/Trigger.d.ts +7 -3
- package/dist/Tabs/index.d.ts +3 -3
- package/dist/Text/Text.d.ts +13 -3
- package/dist/TextArea/TextArea.d.ts +13 -3
- package/dist/Toast/Toast.d.ts +14 -0
- package/dist/Toast/ToastProvider.d.ts +7 -0
- package/dist/Toast/typings.d.ts +2 -2
- package/dist/ToggleButton/BaseToggleButton.d.ts +1 -1
- package/dist/ToggleButton/IconToggleButton.d.ts +1 -1
- package/dist/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/ToggleButton/typings.d.ts +2 -1
- package/dist/ToggleGroup/Item.d.ts +4 -0
- package/dist/ToggleGroup/Root.d.ts +9 -0
- package/dist/Tooltip/Arrow.d.ts +3 -3
- package/dist/Tooltip/Content.d.ts +13 -3
- package/dist/Tooltip/index.d.ts +2 -2
- package/dist/blocks.js +639 -607
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +640 -608
- package/dist/blocks.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/Layout/index.d.ts +0 -15
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
1
2
|
import { AlertDialogVariantProps } from './typings';
|
|
2
|
-
/// <reference types="react" />
|
|
3
3
|
import * as RadixAlertDialog from "@radix-ui/react-alert-dialog";
|
|
4
|
-
export interface AlertDialogContentProps extends RadixAlertDialog.
|
|
4
|
+
export interface AlertDialogContentProps extends ComponentPropsWithRef<typeof RadixAlertDialog.Content>, AlertDialogVariantProps {
|
|
5
5
|
container?: RadixAlertDialog.AlertDialogPortalProps["container"];
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Content container for AlertDialog with overlay and portal rendering.
|
|
9
|
+
* Displays critical messages requiring user acknowledgment.
|
|
10
|
+
*
|
|
11
|
+
* @param {AlertDialogSize} [size="md"] - Dialog size
|
|
12
|
+
* @param container {RadixAlertDialog.AlertDialogPortalProps["container"]} - Portal container element
|
|
13
|
+
*/
|
|
14
|
+
export declare const AlertDialogContent: import('react').NamedExoticComponent<AlertDialogContentProps>;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Provider component for programmatic alert dialogs.
|
|
4
|
+
* Manages alert dialog state and provides context for opening dialogs imperatively.
|
|
5
|
+
*/
|
|
6
|
+
export declare const AlertDialogProvider: import('react').NamedExoticComponent<{
|
|
7
|
+
children?: import('react').ReactNode;
|
|
8
|
+
}>;
|
|
@@ -5,7 +5,7 @@ export * from './hooks';
|
|
|
5
5
|
export * from './Provider';
|
|
6
6
|
export * from './typings';
|
|
7
7
|
export declare const AlertDialog: {
|
|
8
|
-
Content: import('react').
|
|
8
|
+
Content: import('react').NamedExoticComponent<import('./Content').AlertDialogContentProps>;
|
|
9
9
|
Trigger: import('react').ForwardRefExoticComponent<RadixAlertDialog.AlertDialogTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
Root: import('react').FC<RadixAlertDialog.AlertDialogProps>;
|
|
11
11
|
Title: import('react').ForwardRefExoticComponent<RadixAlertDialog.AlertDialogTitleProps & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import * as RadixAvatar from "@radix-ui/react-avatar";
|
|
3
|
-
export interface AvatarFallbackProps extends RadixAvatar.
|
|
3
|
+
export interface AvatarFallbackProps extends ComponentPropsWithRef<typeof RadixAvatar.AvatarFallback> {
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Fallback content for Avatar when image fails to load.
|
|
7
|
+
* Typically displays user initials or placeholder icon.
|
|
8
|
+
*/
|
|
9
|
+
export declare const AvatarFallback: import('react').NamedExoticComponent<AvatarFallbackProps>;
|
package/dist/Avatar/Image.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import * as RadixAvatar from "@radix-ui/react-avatar";
|
|
3
|
-
export interface AvatarImageProps extends RadixAvatar.
|
|
3
|
+
export interface AvatarImageProps extends ComponentPropsWithRef<typeof RadixAvatar.Image> {
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Image component for Avatar.
|
|
7
|
+
* Handles loading and display of user profile images.
|
|
8
|
+
*/
|
|
9
|
+
export declare const AvatarImage: import('react').NamedExoticComponent<AvatarImageProps>;
|
package/dist/Avatar/Root.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
1
2
|
import { AvatarVariantProps } from './typings';
|
|
2
|
-
/// <reference types="react" />
|
|
3
3
|
import * as RadixAvatar from "@radix-ui/react-avatar";
|
|
4
|
-
export interface AvatarRootProps extends RadixAvatar.
|
|
4
|
+
export interface AvatarRootProps extends ComponentPropsWithRef<typeof RadixAvatar.Root>, AvatarVariantProps {
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Root container for Avatar component.
|
|
8
|
+
* Displays user profile images with fallback support.
|
|
9
|
+
*
|
|
10
|
+
* @param [size="md"] {AvatarSize} - Avatar size
|
|
11
|
+
* @param [variant="solid"] {AvatarVariant} - Visual style
|
|
12
|
+
* @param accentColor {string} - Theme color
|
|
13
|
+
* @param radius {ComponentRadius} - Border radius
|
|
14
|
+
*/
|
|
15
|
+
export declare const AvatarRoot: import('react').NamedExoticComponent<AvatarRootProps>;
|
package/dist/Avatar/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * from './Image';
|
|
|
4
4
|
export * from './Root';
|
|
5
5
|
export * from './typings';
|
|
6
6
|
export declare const Avatar: {
|
|
7
|
-
Fallback: import('react').
|
|
8
|
-
Image: import('react').
|
|
9
|
-
Root: import('react').
|
|
7
|
+
Fallback: import('react').NamedExoticComponent<import('./Fallback').AvatarFallbackProps>;
|
|
8
|
+
Image: import('react').NamedExoticComponent<import('./Image').AvatarImageProps>;
|
|
9
|
+
Root: import('react').NamedExoticComponent<import('./Root').AvatarRootProps>;
|
|
10
10
|
};
|
package/dist/Badge/Badge.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { BadgeVariantProps } from './typings';
|
|
3
|
-
export interface BadgeProps extends
|
|
3
|
+
export interface BadgeProps extends ComponentPropsWithRef<"span">, BadgeVariantProps {
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Badge component for displaying status indicators, labels, or counts.
|
|
7
|
+
* Supports multiple variants and sizes.
|
|
8
|
+
*
|
|
9
|
+
* @param [variant="solid"] {BadgeVariant} - Visual style
|
|
10
|
+
* @param [size="md"] {BadgeSize} - Badge size
|
|
11
|
+
* @param [icon=false] {boolean} - Whether badge contains only an icon
|
|
12
|
+
* @param accentColor {string} - Theme color
|
|
13
|
+
* @param {ComponentRadius} radius - Border radius
|
|
14
|
+
*/
|
|
15
|
+
export declare const Badge: import('react').NamedExoticComponent<BadgeProps>;
|
|
@@ -3,7 +3,13 @@ import { ButtonVariantProps } from '../Buttons';
|
|
|
3
3
|
import { AccentColorProps } from '../typings';
|
|
4
4
|
export interface ButtonGroupProps extends PropsWithoutRef<ComponentProps<"div">>, ButtonVariantProps, AccentColorProps {
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Container for grouping multiple buttons with shared styling.
|
|
8
|
+
* Provides consistent variant, size, and theme to child buttons.
|
|
9
|
+
*
|
|
10
|
+
* @param [variant="solid"] {ButtonVariant} - Button style variant
|
|
11
|
+
* @param {ButtonSize} [size="md"] - Button size
|
|
12
|
+
* @param radius {ComponentRadius} - Border radius
|
|
13
|
+
* @param accentColor {string} - Theme color
|
|
14
|
+
*/
|
|
15
|
+
export declare const ButtonGroup: import('react').NamedExoticComponent<ButtonGroupProps>;
|
package/dist/Buttons/Button.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { ButtonVariantProps } from './typings';
|
|
3
|
-
export interface ButtonProps extends ButtonVariantProps,
|
|
3
|
+
export interface ButtonProps extends ButtonVariantProps, ComponentPropsWithRef<"button"> {
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Primary button component for user interactions.
|
|
7
|
+
* Supports multiple variants, sizes, and theme colors.
|
|
8
|
+
*
|
|
9
|
+
* @param [variant="solid"] {ButtonVariant} - Button style variant
|
|
10
|
+
* @param [size="md"] {ButtonSize} - Button size
|
|
11
|
+
* @param radius {ComponentRadius} - Border radius
|
|
12
|
+
* @param accentColor {string} - Theme color
|
|
13
|
+
*/
|
|
14
|
+
export declare const Button: import('react').NamedExoticComponent<ButtonProps>;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { AccentColorProps } from '../typings';
|
|
3
3
|
import { ButtonVariantProps } from './typings';
|
|
4
|
-
export interface IconButtonProps extends ButtonVariantProps,
|
|
4
|
+
export interface IconButtonProps extends ButtonVariantProps, ComponentPropsWithRef<"button">, AccentColorProps {
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Square button optimized for icon-only content.
|
|
8
|
+
* Maintains 1:1 aspect ratio for consistent icon display.
|
|
9
|
+
*
|
|
10
|
+
* @param [variant="solid"] {ButtonVariant} - Button style variant
|
|
11
|
+
* @param [size="md"] {ButtonSize} - Button size
|
|
12
|
+
* @param radius {ComponentRadius} - Border radius
|
|
13
|
+
* @param accentColor {string} - Theme color
|
|
14
|
+
*/
|
|
15
|
+
export declare const IconButton: import('react').NamedExoticComponent<IconButtonProps>;
|
package/dist/Card/Card.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { CardVariantProps } from './typings';
|
|
3
|
-
export interface CardProps extends
|
|
3
|
+
export interface CardProps extends ComponentPropsWithRef<"div">, CardVariantProps {
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Container component for grouped content with visual separation.
|
|
7
|
+
* Provides elevated or outlined appearance for content sections.
|
|
8
|
+
*
|
|
9
|
+
* @param {CardSize} [size="md"] - Card padding size
|
|
10
|
+
* @param [variant="surface"] {CardVariant} - Visual style
|
|
11
|
+
* @param accentColor {string} - Theme color
|
|
12
|
+
* @param radius {ComponentRadius} - Border radius
|
|
13
|
+
*/
|
|
14
|
+
export declare const Card: import('react').NamedExoticComponent<CardProps>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import * as RadixCheckbox from "@radix-ui/react-checkbox";
|
|
3
|
-
export interface CheckboxIndicatorProps extends RadixCheckbox.
|
|
3
|
+
export interface CheckboxIndicatorProps extends ComponentPropsWithRef<typeof RadixCheckbox.CheckboxIndicator> {
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The visual indicator that appears inside a checkbox when it's checked.
|
|
7
|
+
* Automatically handles checked/indeterminate state display.
|
|
8
|
+
*/
|
|
9
|
+
export declare const CheckboxIndicator: import('react').NamedExoticComponent<CheckboxIndicatorProps>;
|
package/dist/Checkbox/Root.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
1
2
|
import { CheckboxVariantProps } from './typings';
|
|
2
|
-
/// <reference types="react" />
|
|
3
3
|
import * as RadixCheckbox from "@radix-ui/react-checkbox";
|
|
4
|
-
export interface CheckboxRootProps extends CheckboxVariantProps, RadixCheckbox.
|
|
4
|
+
export interface CheckboxRootProps extends CheckboxVariantProps, ComponentPropsWithRef<typeof RadixCheckbox.Root> {
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* A customizable checkbox component that supports various styles and sizes.
|
|
8
|
+
* Built on top of Radix UI Checkbox primitive with enhanced styling options.
|
|
9
|
+
*
|
|
10
|
+
* @param [variant="surface"] {CheckboxVariant} - Visual style variant
|
|
11
|
+
* @param [size="md"] {CheckboxSize} - Size of the checkbox
|
|
12
|
+
* @param radius {ComponentRadius} - Border radius override
|
|
13
|
+
* @param accentColor {string} - Accent color override
|
|
14
|
+
*/
|
|
15
|
+
export declare const CheckboxRoot: import('react').NamedExoticComponent<CheckboxRootProps>;
|
package/dist/Checkbox/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export * from './Indicator';
|
|
|
3
3
|
export * from './Root';
|
|
4
4
|
export * from './typings';
|
|
5
5
|
export declare const Checkbox: {
|
|
6
|
-
Root: import('react').
|
|
7
|
-
Indicator: import('react').
|
|
6
|
+
Root: import('react').NamedExoticComponent<import('./Root').CheckboxRootProps>;
|
|
7
|
+
Indicator: import('react').NamedExoticComponent<import('./Indicator').CheckboxIndicatorProps>;
|
|
8
8
|
};
|
|
@@ -4,4 +4,14 @@ import * as RadixCheckbox from "@radix-ui/react-checkbox";
|
|
|
4
4
|
export interface CheckboxGroupItemProps extends Omit<ComponentPropsWithRef<typeof RadixCheckbox.Root>, "checked" | "defaultChecked" | "onCheckedChange" | "name">, CheckboxGroupVariantProps {
|
|
5
5
|
value: string;
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* An individual checkbox item within a CheckboxGroup.
|
|
9
|
+
* Inherits styling and behavior from its parent CheckboxGroupRoot.
|
|
10
|
+
*
|
|
11
|
+
* @param value - Unique identifier for this checkbox item (required)
|
|
12
|
+
* @param variant - Visual style variant override (default: inherited from group)
|
|
13
|
+
* @param size - Size override (default: inherited from group)
|
|
14
|
+
* @param radius - Border radius override (default: inherited from group)
|
|
15
|
+
* @param disabled - Whether this specific item is disabled
|
|
16
|
+
*/
|
|
7
17
|
export declare const CheckboxGroupItem: import('react').NamedExoticComponent<CheckboxGroupItemProps>;
|
|
@@ -7,4 +7,16 @@ export interface CheckboxGroupRootProps extends MultiSelectProps<string>, Compon
|
|
|
7
7
|
required?: ComponentProps<typeof RadixCheckbox.Root>["required"];
|
|
8
8
|
disabled?: ComponentProps<typeof RadixCheckbox.Root>["disabled"];
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* A container component that manages a group of related checkboxes with shared state.
|
|
12
|
+
* Provides multi-select functionality and consistent styling across all checkbox items.
|
|
13
|
+
*
|
|
14
|
+
* @param variant - Visual style variant applied to child checkboxes (default: "surface")
|
|
15
|
+
* @param size - Size applied to child checkboxes (default: "md")
|
|
16
|
+
* @param radius - Border radius override (default: provider value)
|
|
17
|
+
* @param accentColor - Accent color override (default: provider value)
|
|
18
|
+
* @param name - Form name for all checkboxes in the group
|
|
19
|
+
* @param required - Whether any checkbox in the group is required
|
|
20
|
+
* @param disabled - Whether all checkboxes in the group are disabled
|
|
21
|
+
*/
|
|
10
22
|
export declare const CheckboxGroupRoot: import('react').NamedExoticComponent<CheckboxGroupRootProps>;
|
|
@@ -3,4 +3,13 @@ import { CheckboxGroupVariantProps } from './typings';
|
|
|
3
3
|
import * as RadixCheckbox from "@radix-ui/react-checkbox";
|
|
4
4
|
export interface CheckboxGroupSelectAllItemProps extends Omit<ComponentPropsWithRef<typeof RadixCheckbox.Root>, "checked" | "defaultChecked" | "onCheckedChange" | "name">, CheckboxGroupVariantProps {
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* A special checkbox that controls the selection state of all items in a CheckboxGroup.
|
|
8
|
+
* Shows checked when all items are selected, indeterminate when some are selected, and unchecked when none are selected.
|
|
9
|
+
*
|
|
10
|
+
* @param variant - Visual style variant override (default: inherited from group)
|
|
11
|
+
* @param size - Size override (default: inherited from group)
|
|
12
|
+
* @param radius - Border radius override (default: inherited from group)
|
|
13
|
+
* @param disabled - Whether this select all item is disabled
|
|
14
|
+
*/
|
|
6
15
|
export declare const CheckboxGroupSelectAllItem: import('react').NamedExoticComponent<CheckboxGroupSelectAllItemProps>;
|
|
@@ -3,4 +3,4 @@ import { CheckedState } from './typings';
|
|
|
3
3
|
export interface CommandMenuCheckboxIndicatorProps extends Omit<ComponentPropsWithRef<"span">, "children"> {
|
|
4
4
|
children: ReactNode | ((checked: CheckedState) => ReactNode);
|
|
5
5
|
}
|
|
6
|
-
export declare const CommandMenuCheckboxIndicator: (props: CommandMenuCheckboxIndicatorProps) => import("react/jsx-runtime").JSX.Element
|
|
6
|
+
export declare const CommandMenuCheckboxIndicator: import('react').MemoExoticComponent<(props: CommandMenuCheckboxIndicatorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -4,4 +4,4 @@ export interface CommandMenuCheckboxItemProps extends CommandMenuItemProps {
|
|
|
4
4
|
checked: CheckedState;
|
|
5
5
|
onCheckedChange: (checked: boolean) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const CommandMenuCheckboxItem: (props: CommandMenuCheckboxItemProps) => import("react/jsx-runtime").JSX.Element
|
|
7
|
+
export declare const CommandMenuCheckboxItem: import('react').MemoExoticComponent<(props: CommandMenuCheckboxItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -2,4 +2,4 @@ import { ComponentPropsWithRef } from 'react';
|
|
|
2
2
|
export interface CommandMenuPageProps extends ComponentPropsWithRef<"div"> {
|
|
3
3
|
page: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const CommandMenuPage: (props: CommandMenuPageProps) => import("react/jsx-runtime").JSX.Element
|
|
5
|
+
export declare const CommandMenuPage: import('react').MemoExoticComponent<(props: CommandMenuPageProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -2,4 +2,4 @@ import { CommandMenuItemProps } from './Item';
|
|
|
2
2
|
export interface CommandMenuPageTriggerItemProps extends CommandMenuItemProps {
|
|
3
3
|
page: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const CommandMenuPageTriggerItem: (props: CommandMenuPageTriggerItemProps) => import("react/jsx-runtime").JSX.Element
|
|
5
|
+
export declare const CommandMenuPageTriggerItem: import('react').MemoExoticComponent<(props: CommandMenuPageTriggerItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -4,4 +4,4 @@ export interface CommandMenuPagesProps extends PropsWithChildren {
|
|
|
4
4
|
page?: string;
|
|
5
5
|
onPageChange?: (page: string) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const CommandMenuPages: (props: CommandMenuPagesProps) => import("react/jsx-runtime").JSX.Element
|
|
7
|
+
export declare const CommandMenuPages: import('react').MemoExoticComponent<(props: CommandMenuPagesProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -2,4 +2,4 @@ import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
|
2
2
|
export interface CommandMenuSelectedIndicatorProps extends Omit<ComponentPropsWithRef<"span">, "children"> {
|
|
3
3
|
children: ReactNode | ((selected: boolean) => ReactNode);
|
|
4
4
|
}
|
|
5
|
-
export declare const CommandMenuSelectedIndicator: (props: CommandMenuSelectedIndicatorProps) => import("react/jsx-runtime").JSX.Element
|
|
5
|
+
export declare const CommandMenuSelectedIndicator: import('react').MemoExoticComponent<(props: CommandMenuSelectedIndicatorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -35,12 +35,12 @@ export declare const CommandMenu: {
|
|
|
35
35
|
MultiSelectGroup: <TValue>(props: import('./MultiSelectGroup').CommandMenuMultiSelectGroupProps<TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
MultiSelectItem: <TValue_1>(props: import('./MultiSelectItem').CommandMenuMultiSelectItemProps<TValue_1>) => import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
SelectAllItem: <TValue_2>(props: import('./SelectAllItem').CommandMenuSelectAllItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
SelectedIndicator: (props: import('./SelectedIndicator').CommandMenuSelectedIndicatorProps) => import("react/jsx-runtime").JSX.Element
|
|
38
|
+
SelectedIndicator: import('react').MemoExoticComponent<(props: import('./SelectedIndicator').CommandMenuSelectedIndicatorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
39
39
|
RadioGroup: <TValue_3>(props: import('./RadioGroup').CommandMenuRadioGroupProps<TValue_3>) => import("react/jsx-runtime").JSX.Element;
|
|
40
40
|
RadioItem: <TValue_4>(props: import('./RadioItem').CommandMenuRadioItemProps<TValue_4>) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
CheckboxItem: (props: import('./CheckboxItem').CommandMenuCheckboxItemProps) => import("react/jsx-runtime").JSX.Element
|
|
42
|
-
CheckboxIndicator: (props: import('./CheckboxIndicator').CommandMenuCheckboxIndicatorProps) => import("react/jsx-runtime").JSX.Element
|
|
43
|
-
Pages: (props: import('./Pages').CommandMenuPagesProps) => import("react/jsx-runtime").JSX.Element
|
|
44
|
-
Page: (props: import('./Page').CommandMenuPageProps) => import("react/jsx-runtime").JSX.Element
|
|
45
|
-
PageTriggerItem: (props: import('./PageTriggerItem').CommandMenuPageTriggerItemProps) => import("react/jsx-runtime").JSX.Element
|
|
41
|
+
CheckboxItem: import('react').MemoExoticComponent<(props: import('./CheckboxItem').CommandMenuCheckboxItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
42
|
+
CheckboxIndicator: import('react').MemoExoticComponent<(props: import('./CheckboxIndicator').CommandMenuCheckboxIndicatorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
43
|
+
Pages: import('react').MemoExoticComponent<(props: import('./Pages').CommandMenuPagesProps) => import("react/jsx-runtime").JSX.Element>;
|
|
44
|
+
Page: import('react').MemoExoticComponent<(props: import('./Page').CommandMenuPageProps) => import("react/jsx-runtime").JSX.Element>;
|
|
45
|
+
PageTriggerItem: import('react').MemoExoticComponent<(props: import('./PageTriggerItem').CommandMenuPageTriggerItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
46
46
|
};
|
|
@@ -2,4 +2,14 @@ import { ComponentProps } from 'react';
|
|
|
2
2
|
import { DayPicker as ReactDayPicker } from 'react-day-picker';
|
|
3
3
|
import { DayPickerVariantProps } from './typings';
|
|
4
4
|
export type DayPickerProps = ComponentProps<typeof ReactDayPicker> & DayPickerVariantProps;
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Date picker component built on react-day-picker with consistent styling.
|
|
7
|
+
* Supports single/multiple date selection, date ranges, and custom styling variants.
|
|
8
|
+
*
|
|
9
|
+
* @param accentColor {string} - Accent color override
|
|
10
|
+
* @param {DayPickerSize} [size="md"] - Size variant affecting button and text sizes
|
|
11
|
+
* @param [variant="soft"] {DayPickerVariant} - Visual style variant
|
|
12
|
+
* @param radius {ComponentRadius} - Border radius override
|
|
13
|
+
* @param [showOutsideDays=true] {boolean} - Whether to show days from adjacent months
|
|
14
|
+
*/
|
|
15
|
+
export declare const DayPicker: import('react').MemoExoticComponent<(props: DayPickerProps) => import("react/jsx-runtime").JSX.Element>;
|
package/dist/Dialog/Content.d.ts
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
import { AlertDialogSize } from '../AlertDialog';
|
|
3
3
|
import { CloseDialogWithOptions } from './typings';
|
|
4
4
|
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
5
|
-
export interface DialogContentProps extends Omit<RadixDialog.
|
|
6
|
-
title: string;
|
|
5
|
+
export interface DialogContentProps extends Omit<ComponentPropsWithRef<typeof RadixDialog.Content>, "children"> {
|
|
7
6
|
container?: RadixDialog.DialogPortalProps["container"];
|
|
8
7
|
size?: AlertDialogSize;
|
|
9
8
|
children: ReactNode | ((close: CloseDialogWithOptions) => ReactNode);
|
|
10
9
|
}
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* The main content area of a dialog with customizable size and styling.
|
|
12
|
+
* Content can be static or a function that receives the close handler for interactive content.
|
|
13
|
+
*
|
|
14
|
+
* @param size - Size variant affecting padding and max-width (default: "md")
|
|
15
|
+
* @param container - Portal container for rendering the content
|
|
16
|
+
* @param children - Static content or function receiving close handler
|
|
17
|
+
*/
|
|
18
|
+
export declare const DialogContent: import('react').NamedExoticComponent<DialogContentProps>;
|
package/dist/Dialog/Overlay.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
3
|
-
export interface DialogOverlayProps extends RadixDialog.
|
|
3
|
+
export interface DialogOverlayProps extends ComponentPropsWithRef<typeof RadixDialog.Overlay> {
|
|
4
4
|
container?: RadixDialog.DialogPortalProps["container"];
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* A backdrop overlay that appears behind dialog content.
|
|
8
|
+
* Provides visual separation and typically closes the dialog when clicked.
|
|
9
|
+
*
|
|
10
|
+
* @param container - Portal container for rendering the overlay
|
|
11
|
+
*/
|
|
12
|
+
export declare const DialogOverlay: import('react').NamedExoticComponent<DialogOverlayProps>;
|
package/dist/Dialog/Root.d.ts
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
import { DialogProps } from './typings';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Root component for managing dialog state and providing context to child components.
|
|
4
|
+
* Supports controlled and uncontrolled modes with advanced close interruption handling.
|
|
5
|
+
*
|
|
6
|
+
* @param defaultOpen - Initial open state for uncontrolled mode (default: false)
|
|
7
|
+
* @param open - Controlled open state
|
|
8
|
+
* @param onOpenChange - Callback for controlled open state changes
|
|
9
|
+
* @param onOpen - Called when dialog opens
|
|
10
|
+
* @param onClose - Called when dialog closes
|
|
11
|
+
* @param onCloseInterrupt - Intercept close attempts for custom handling (e.g., unsaved changes warnings)
|
|
12
|
+
*/
|
|
13
|
+
export declare const DialogRoot: import('react').MemoExoticComponent<(props: DialogProps) => import("react/jsx-runtime").JSX.Element>;
|
package/dist/Dialog/index.d.ts
CHANGED
|
@@ -5,9 +5,11 @@ export * from './Overlay';
|
|
|
5
5
|
export * from './Root';
|
|
6
6
|
export * from './typings';
|
|
7
7
|
export declare const Dialog: {
|
|
8
|
-
Root: (props: import('./typings').DialogProps) => import("react/jsx-runtime").JSX.Element
|
|
9
|
-
Content: import('react').
|
|
10
|
-
Overlay: import('react').
|
|
8
|
+
Root: import('react').MemoExoticComponent<(props: import('./typings').DialogProps) => import("react/jsx-runtime").JSX.Element>;
|
|
9
|
+
Content: import('react').NamedExoticComponent<import('./Content').DialogContentProps>;
|
|
10
|
+
Overlay: import('react').NamedExoticComponent<import('./Overlay').DialogOverlayProps>;
|
|
11
|
+
Title: import('react').ForwardRefExoticComponent<RadixDialog.DialogTitleProps & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
12
|
+
Description: import('react').ForwardRefExoticComponent<RadixDialog.DialogDescriptionProps & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
11
13
|
Trigger: import('react').ForwardRefExoticComponent<RadixDialog.DialogTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
12
14
|
Close: import('react').ForwardRefExoticComponent<RadixDialog.DialogCloseProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
13
15
|
};
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { AccentColorProps } from '../typings';
|
|
3
3
|
import { HeadingVariantProps } from './typings';
|
|
4
|
-
export interface HeadingProps extends
|
|
4
|
+
export interface HeadingProps extends ComponentPropsWithRef<"h1">, HeadingVariantProps, AccentColorProps {
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Semantic heading component that renders appropriate HTML heading tags (h1-h6).
|
|
8
|
+
* Provides comprehensive typography controls with accessibility-first design.
|
|
9
|
+
*
|
|
10
|
+
* @param [level="1"] {HeadingLevel} - Semantic heading level "1"-"6"
|
|
11
|
+
* @param {HeadingSize} size - Visual size variant (independent of semantic level)
|
|
12
|
+
* @param weight {HeadingWeight} - Font weight variant
|
|
13
|
+
* @param {HeadingAlign} align - Text alignment
|
|
14
|
+
* @param accentColor {string} - Accent color for text styling
|
|
15
|
+
* @param [highContrast=false] {boolean} - Enable high contrast mode
|
|
16
|
+
*/
|
|
17
|
+
export declare const Heading: import('react').NamedExoticComponent<HeadingProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import * as RadixHoverCard from "@radix-ui/react-hover-card";
|
|
3
|
-
export interface HoverCardArrowProps extends RadixHoverCard.
|
|
3
|
+
export interface HoverCardArrowProps extends ComponentPropsWithRef<typeof RadixHoverCard.Arrow> {
|
|
4
4
|
}
|
|
5
|
-
export declare const HoverCardArrow: import('react').
|
|
5
|
+
export declare const HoverCardArrow: import('react').MemoExoticComponent<(props: HoverCardArrowProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
1
2
|
import { HoverCardVariantProps } from './typings';
|
|
2
|
-
/// <reference types="react" />
|
|
3
3
|
import * as RadixHoverCard from "@radix-ui/react-hover-card";
|
|
4
|
-
export interface HoverCardContentProps extends RadixHoverCard.
|
|
4
|
+
export interface HoverCardContentProps extends ComponentPropsWithRef<typeof RadixHoverCard.Content>, HoverCardVariantProps {
|
|
5
5
|
container?: RadixHoverCard.HoverCardPortalProps["container"];
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Content area for hover card components that appears on hover interaction.
|
|
9
|
+
* Provides rich contextual information with customizable positioning and styling.
|
|
10
|
+
*
|
|
11
|
+
* @param [size="md"] {HoverCardSize} - Size variant affecting content dimensions
|
|
12
|
+
* @param side - Preferred side for positioning relative to trigger
|
|
13
|
+
* @param sideOffset - Distance from the trigger element (default: 4)
|
|
14
|
+
* @param radius - Border radius override (default: provider value)
|
|
15
|
+
* @param accentColor - Accent color override (default: provider value)
|
|
16
|
+
* @param container - Portal container for rendering
|
|
17
|
+
*/
|
|
18
|
+
export declare const HoverCardContent: import('react').NamedExoticComponent<HoverCardContentProps>;
|
|
@@ -4,8 +4,8 @@ export * from './Arrow';
|
|
|
4
4
|
export * from './Content';
|
|
5
5
|
export * from './typings';
|
|
6
6
|
export declare const HoverCard: {
|
|
7
|
-
Arrow: import('react').
|
|
8
|
-
Content: import('react').
|
|
7
|
+
Arrow: import('react').MemoExoticComponent<(props: import('./Arrow').HoverCardArrowProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
Content: import('react').NamedExoticComponent<import('./Content').HoverCardContentProps>;
|
|
9
9
|
Root: import('react').FC<RadixHoverCard.HoverCardProps>;
|
|
10
10
|
Trigger: import('react').ForwardRefExoticComponent<RadixHoverCard.HoverCardTriggerProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
11
11
|
};
|
package/dist/Input/Field.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface InputFieldProps extends
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
export interface InputFieldProps extends ComponentPropsWithRef<"input"> {
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* The actual input field element that receives user input.
|
|
6
|
+
* Inherits styling properties from its parent InputRoot context.
|
|
7
|
+
*/
|
|
8
|
+
export declare const InputField: import('react').NamedExoticComponent<InputFieldProps>;
|
package/dist/Input/Root.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { InputVariantProps } from './typings';
|
|
3
|
-
export interface InputRootProps extends InputVariantProps,
|
|
3
|
+
export interface InputRootProps extends InputVariantProps, ComponentPropsWithRef<"div"> {
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Container component for input fields that provides styling context and structure.
|
|
7
|
+
* Acts as a wrapper that manages the visual appearance of input field and slot elements.
|
|
8
|
+
*
|
|
9
|
+
* @param [variant="surface"] {InputVariant} - Visual style variant
|
|
10
|
+
* @param {InputSize} [size="md"] - Size of the input container
|
|
11
|
+
* @param radius {ComponentRadius} - Border radius override
|
|
12
|
+
* @param accentColor {string} - Accent color override
|
|
13
|
+
*/
|
|
14
|
+
export declare const InputRoot: import('react').NamedExoticComponent<InputRootProps>;
|
package/dist/Input/Slot.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface InputSlotProps extends
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
export interface InputSlotProps extends ComponentPropsWithRef<"div"> {
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Container for icons, buttons, or other elements positioned within the input.
|
|
6
|
+
* Commonly used for search icons, clear buttons, or action triggers.
|
|
7
|
+
* Inherits styling properties from its parent InputRoot context.
|
|
8
|
+
*/
|
|
9
|
+
export declare const InputSlot: import('react').NamedExoticComponent<InputSlotProps>;
|
package/dist/Input/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * from './Root';
|
|
|
4
4
|
export * from './Slot';
|
|
5
5
|
export * from './typings';
|
|
6
6
|
export declare const Input: {
|
|
7
|
-
Field: import('react').
|
|
8
|
-
Root: import('react').
|
|
9
|
-
Slot: import('react').
|
|
7
|
+
Field: import('react').NamedExoticComponent<import('./Field').InputFieldProps>;
|
|
8
|
+
Root: import('react').NamedExoticComponent<import('./Root').InputRootProps>;
|
|
9
|
+
Slot: import('react').NamedExoticComponent<import('./Slot').InputSlotProps>;
|
|
10
10
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
export interface LayoutContainerProps extends ComponentPropsWithRef<"div"> {
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Layout container component that provides flexible content structure.
|
|
6
|
+
* Can be hidden based on layout context state.
|
|
7
|
+
*/
|
|
8
|
+
export declare const LayoutContainer: import('react').NamedExoticComponent<LayoutContainerProps>;
|