@acronis-platform/ui-react 2.0.0 → 3.0.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/components/ui/accordion-container/accordion-container.js +144 -0
- package/dist/components/ui/accordion-container/accordion-container.js.map +1 -0
- package/dist/components/ui/avatar/avatar.js +33 -22
- package/dist/components/ui/avatar/avatar.js.map +1 -1
- package/dist/components/ui/card/card.js +150 -74
- package/dist/components/ui/card/card.js.map +1 -1
- package/dist/components/ui/card-section/card-section.js +111 -0
- package/dist/components/ui/card-section/card-section.js.map +1 -0
- package/dist/components/ui/data-table/data-table.js +4 -2
- package/dist/components/ui/data-table/data-table.js.map +1 -1
- package/dist/components/ui/empty-overlay/empty-overlay.js +49 -0
- package/dist/components/ui/empty-overlay/empty-overlay.js.map +1 -0
- package/dist/components/ui/table/table.js +27 -27
- package/dist/components/ui/table/table.js.map +1 -1
- package/dist/index.js +530 -520
- package/dist/index.js.map +1 -1
- package/dist/react.js +530 -520
- package/dist/react.js.map +1 -1
- package/dist/src/components/ui/accordion-container/accordion-container.d.ts +44 -0
- package/dist/src/components/ui/accordion-container/index.d.ts +1 -0
- package/dist/src/components/ui/avatar/avatar.d.ts +26 -7
- package/dist/src/components/ui/button/button.d.ts +1 -1
- package/dist/src/components/ui/card/card.d.ts +69 -8
- package/dist/src/components/ui/card/index.d.ts +1 -1
- package/dist/src/components/ui/card-section/card-section.d.ts +50 -0
- package/dist/src/components/ui/card-section/index.d.ts +1 -0
- package/dist/src/components/ui/dialog/dialog.d.ts +1 -1
- package/dist/src/components/ui/empty-overlay/empty-overlay.d.ts +20 -0
- package/dist/src/components/ui/empty-overlay/index.d.ts +2 -0
- package/dist/src/components/ui/grid/grid.d.ts +1 -1
- package/dist/src/components/ui/sheet/sheet.d.ts +1 -1
- package/dist/src/components/ui/stack/stack.d.ts +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/ui-react.css +1 -1
- package/package.json +4 -4
package/dist/react.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface AccordionContainerState {
|
|
4
|
+
open: boolean;
|
|
5
|
+
}
|
|
6
|
+
type AccordionContainerChildren = React.ReactNode | ((state: AccordionContainerState) => React.ReactNode);
|
|
7
|
+
type AccordionContainerBaseProps = Omit<React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root>, 'children'>;
|
|
8
|
+
interface AccordionContainerProps extends AccordionContainerBaseProps {
|
|
9
|
+
/**
|
|
10
|
+
* Whether the disclosure exists at all. When `false`, `children` render
|
|
11
|
+
* directly with no trigger and no panel wrapper — the Figma
|
|
12
|
+
* `isCollapsable=false` state has no disclosure UI.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
collapsible?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Accepts a plain node, or a render-prop function receiving the current
|
|
18
|
+
* `{ open }` state — for content outside `AccordionContainer.Content` (e.g.
|
|
19
|
+
* a header) that still needs to know whether the panel is expanded, even
|
|
20
|
+
* when this component owns the open state itself (uncontrolled).
|
|
21
|
+
*/
|
|
22
|
+
children?: AccordionContainerChildren;
|
|
23
|
+
}
|
|
24
|
+
interface AccordionContainerContextValue {
|
|
25
|
+
collapsible: boolean;
|
|
26
|
+
open: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Reads whether the nearest `AccordionContainer` ancestor is `collapsible`
|
|
30
|
+
* and, if so, its current `open` state — for content outside
|
|
31
|
+
* `AccordionContainer.Content` (e.g. a header) that needs to react to the
|
|
32
|
+
* panel's state without a dedicated prop, such as `CardHeader` dropping its
|
|
33
|
+
* bottom divider while collapsed.
|
|
34
|
+
*/
|
|
35
|
+
declare const useAccordionContainerContext: () => AccordionContainerContextValue;
|
|
36
|
+
type AccordionContainerTriggerProps = React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Trigger>;
|
|
37
|
+
declare const AccordionContainerTrigger: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').CollapsibleTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
type AccordionContainerContentProps = React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Panel>;
|
|
39
|
+
declare const AccordionContainerContent: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').CollapsiblePanelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
declare const AccordionContainerRoot: React.ForwardRefExoticComponent<AccordionContainerProps & React.RefAttributes<HTMLDivElement>> & {
|
|
41
|
+
Trigger: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').CollapsibleTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
42
|
+
Content: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').CollapsiblePanelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
};
|
|
44
|
+
export { AccordionContainerRoot as AccordionContainer, AccordionContainerTrigger, AccordionContainerContent, useAccordionContainerContext, type AccordionContainerProps, type AccordionContainerTriggerProps, type AccordionContainerContentProps, type AccordionContainerState, type AccordionContainerContextValue, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AccordionContainer, AccordionContainerTrigger, AccordionContainerContent, useAccordionContainerContext, type AccordionContainerProps, type AccordionContainerTriggerProps, type AccordionContainerContentProps, type AccordionContainerState, type AccordionContainerContextValue, } from './accordion-container';
|
|
@@ -4,19 +4,38 @@ import * as React from 'react';
|
|
|
4
4
|
declare const avatarVariants: (props?: ({
|
|
5
5
|
color?: "blue" | "gray" | "green" | "orange" | "red" | "teal" | "violet" | "yellow" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
export interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* A user/entity avatar: a colored circle showing an image or initials. Compose
|
|
11
|
-
* `AvatarImage` and/or `AvatarFallback` inside; stack several in `AvatarGroup`.
|
|
12
|
-
*/
|
|
13
|
-
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
14
7
|
export type AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;
|
|
15
8
|
/** The avatar image; hidden by Base UI until it loads, revealing the fallback. */
|
|
16
9
|
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AvatarImageProps, "ref"> & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
17
10
|
export type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;
|
|
18
11
|
/** Shown when there's no image (or it fails) — typically the user's initials. */
|
|
19
12
|
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AvatarFallbackProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
13
|
+
export interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
|
|
14
|
+
/**
|
|
15
|
+
* Selects the auto-rendered fallback content when no `children` are
|
|
16
|
+
* composed: initials (`label`) or an `icon`. Ignored once `children` (e.g.
|
|
17
|
+
* `AvatarImage`/`AvatarFallback`) are composed directly — including an
|
|
18
|
+
* explicit `null`, which renders an empty circle.
|
|
19
|
+
*/
|
|
20
|
+
variant?: 'text' | 'icon';
|
|
21
|
+
/**
|
|
22
|
+
* Initials shown for the `text` variant when no `children` are composed
|
|
23
|
+
* (i.e. `children` is `undefined`).
|
|
24
|
+
*/
|
|
25
|
+
label?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Icon shown for the `icon` variant when no `children` are composed
|
|
28
|
+
* (i.e. `children` is `undefined`).
|
|
29
|
+
*/
|
|
30
|
+
icon?: React.ReactNode;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A user/entity avatar: a colored circle showing an image, initials, or an
|
|
34
|
+
* icon. Compose `AvatarImage`/`AvatarFallback` for the photo-with-fallback
|
|
35
|
+
* case, or use `variant`/`label`/`icon` for a quick text or icon badge; stack
|
|
36
|
+
* several in `AvatarGroup`.
|
|
37
|
+
*/
|
|
38
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
39
|
export type AvatarGroupProps = React.HTMLAttributes<HTMLDivElement>;
|
|
21
40
|
/**
|
|
22
41
|
* Overlapping stack of avatars. Each avatar after the first is pulled left by
|
|
@@ -2,7 +2,7 @@ import { useRender } from '@base-ui/react/use-render';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const buttonVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "default" | "ghost" | "secondary" | "destructive" | "ai" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
/**
|
|
@@ -1,17 +1,78 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
|
|
4
|
+
declare const cardVariants: (props?: ({
|
|
5
|
+
hasError?: boolean | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
4
8
|
/**
|
|
5
9
|
* Replace the rendered `<div>` with another element or component (Base UI
|
|
6
|
-
* composition) — e.g. render `
|
|
7
|
-
|
|
10
|
+
* composition) — e.g. render `Card` as an `<article>`.
|
|
11
|
+
*/
|
|
12
|
+
render?: useRender.RenderProp;
|
|
13
|
+
}
|
|
14
|
+
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export interface CardHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
16
|
+
/** The card's title. Renders nothing when omitted. */
|
|
17
|
+
title?: string;
|
|
18
|
+
/** Helper text shown under the title; only rendered when `hasDescription`. */
|
|
19
|
+
description?: string;
|
|
20
|
+
/** Shows `description` below the title. */
|
|
21
|
+
hasDescription?: boolean;
|
|
22
|
+
/** Shows a drag handle at the start of the header, for reorderable lists. */
|
|
23
|
+
isDraggable?: boolean;
|
|
24
|
+
/** Accessible label for the drag handle. */
|
|
25
|
+
dragHandleLabel?: string;
|
|
26
|
+
/** Shows a toggle switch at the start of the header. */
|
|
27
|
+
isSwitchable?: boolean;
|
|
28
|
+
/** Controlled checked state of the header switch. */
|
|
29
|
+
switchChecked?: boolean;
|
|
30
|
+
/** Uncontrolled initial checked state of the header switch. */
|
|
31
|
+
defaultSwitchChecked?: boolean;
|
|
32
|
+
/** Fires when the header switch is toggled. */
|
|
33
|
+
onSwitchCheckedChange?: (checked: boolean) => void;
|
|
34
|
+
/** Disables the header switch. */
|
|
35
|
+
switchDisabled?: boolean;
|
|
36
|
+
/** Accessible label for the header switch. */
|
|
37
|
+
switchLabel?: string;
|
|
38
|
+
/** Shows an avatar before the title. */
|
|
39
|
+
hasAvatar?: boolean;
|
|
40
|
+
/** Initials shown in the default avatar; ignored if `avatar` is provided. */
|
|
41
|
+
avatarLabel?: string;
|
|
42
|
+
/** Replaces the default initials avatar with custom content. */
|
|
43
|
+
avatar?: React.ReactNode;
|
|
44
|
+
/** Shows a rename button next to the title. */
|
|
45
|
+
hasRename?: boolean;
|
|
46
|
+
/** Fires when the rename button is activated. */
|
|
47
|
+
onRename?: () => void;
|
|
48
|
+
/** Accessible label for the rename button. */
|
|
49
|
+
renameLabel?: string;
|
|
50
|
+
/** Extra content rendered inline next to the title (e.g. a tag or badge). */
|
|
51
|
+
extras?: React.ReactNode;
|
|
52
|
+
/** Actions rendered at the end of the header (e.g. a menu button). */
|
|
53
|
+
actions?: React.ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* Shows a disclosure trigger at the end of the header. Only has an effect
|
|
56
|
+
* when this header renders inside a collapsible `AccordionContainer` —
|
|
57
|
+
* see the collapsible composition example.
|
|
58
|
+
*/
|
|
59
|
+
isCollapsible?: boolean;
|
|
60
|
+
/** Accessible label for the collapse trigger. */
|
|
61
|
+
collapseLabel?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Replace the rendered `<div>` with another element or component (Base UI
|
|
64
|
+
* composition).
|
|
65
|
+
*/
|
|
66
|
+
render?: useRender.RenderProp;
|
|
67
|
+
}
|
|
68
|
+
declare const CardHeader: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
export interface CardPartProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
70
|
+
/**
|
|
71
|
+
* Replace the rendered `<div>` with another element or component (Base UI
|
|
72
|
+
* composition).
|
|
8
73
|
*/
|
|
9
74
|
render?: useRender.RenderProp;
|
|
10
75
|
}
|
|
11
|
-
declare const Card: React.ForwardRefExoticComponent<CardPartProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
declare const CardHeader: React.ForwardRefExoticComponent<CardPartProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
declare const CardTitle: React.ForwardRefExoticComponent<CardPartProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const CardDescription: React.ForwardRefExoticComponent<CardPartProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
76
|
declare const CardContent: React.ForwardRefExoticComponent<CardPartProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
77
|
declare const CardFooter: React.ForwardRefExoticComponent<CardPartProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
export { Card, CardHeader,
|
|
78
|
+
export { Card, CardHeader, CardContent, CardFooter, cardVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Card, CardHeader, CardFooter,
|
|
1
|
+
export { Card, CardHeader, CardContent, CardFooter, cardVariants, type CardProps, type CardHeaderProps, type CardPartProps, } from './card';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const cardSectionVariants: (props?: ({
|
|
5
|
+
variant?: "slot" | "list" | "tag" | "table-actions" | "card-primary" | "card-secondary" | null | undefined;
|
|
6
|
+
hasBottomBorder?: boolean | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
export interface CardSectionBaseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'content'>, VariantProps<typeof cardSectionVariants> {
|
|
9
|
+
/** Extra content rendered inline next to the section title (e.g. a tag). */
|
|
10
|
+
extras?: React.ReactNode;
|
|
11
|
+
/** Actions rendered at the end of the section header row (e.g. a menu button). */
|
|
12
|
+
actions?: React.ReactNode;
|
|
13
|
+
/** Body of the `slot` variant — arbitrary passthrough content. */
|
|
14
|
+
content?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Body of the `tag` variant — a wrapping row of tags. Has no built-in
|
|
17
|
+
* default: like `contentList`, the consumer supplies the tags.
|
|
18
|
+
*/
|
|
19
|
+
contentTag?: React.ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Body of the `list` variant — title/description key-value rows. Has no
|
|
22
|
+
* built-in default: the `ListItem` tokens the design references
|
|
23
|
+
* (`--ui-card-body-section-item-*`) do not exist in tokens-pd yet.
|
|
24
|
+
*/
|
|
25
|
+
contentList?: React.ReactNode;
|
|
26
|
+
/** Body of the `table-actions` variant — a table with row actions. */
|
|
27
|
+
contentTable?: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Replace the rendered `<div>` with another element or component (Base UI
|
|
30
|
+
* composition) — e.g. render the section as a `<section>`.
|
|
31
|
+
*/
|
|
32
|
+
render?: useRender.RenderProp;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A band of content stacked inside a `Card`'s body.
|
|
36
|
+
*
|
|
37
|
+
* `hasHeader` and `title` form a discriminated union: turning the section's own
|
|
38
|
+
* mini-header on requires a title, because the header row always renders one.
|
|
39
|
+
*/
|
|
40
|
+
export type CardSectionProps = CardSectionBaseProps & ({
|
|
41
|
+
/** Shows the section's own mini-header row (14px, distinct from `CardHeader`). */
|
|
42
|
+
hasHeader: true;
|
|
43
|
+
/** The section header's title. Required whenever `hasHeader` is set. */
|
|
44
|
+
title: string;
|
|
45
|
+
} | {
|
|
46
|
+
hasHeader?: false;
|
|
47
|
+
title?: never;
|
|
48
|
+
});
|
|
49
|
+
declare const CardSection: React.ForwardRefExoticComponent<CardSectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
export { CardSection, cardSectionVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CardSection, cardSectionVariants, type CardSectionProps, type CardSectionBaseProps, } from './card-section';
|
|
@@ -2,7 +2,7 @@ import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const dialogContentVariants: (props?: ({
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "large" | "sm" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
declare const DialogRoot: typeof DialogPrimitive.Root;
|
|
8
8
|
declare const DialogTrigger: DialogPrimitive.Trigger;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const emptyOverlayIconVariants: (props?: ({
|
|
4
|
+
color?: "blue" | "gray" | "green" | "orange" | "red" | "teal" | "violet" | "yellow" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface EmptyOverlayProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'color' | 'children'>, VariantProps<typeof emptyOverlayIconVariants> {
|
|
7
|
+
/** Icon rendered in the colored badge (e.g. an `icons-react` glyph at 24px). */
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
/** The empty-state headline. */
|
|
10
|
+
title: React.ReactNode;
|
|
11
|
+
/** Supporting copy shown under the title. */
|
|
12
|
+
description?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A full-bleed empty-state overlay: a colored icon badge over a centered
|
|
16
|
+
* title/description, on a fade-to-solid backdrop. Size it via the parent
|
|
17
|
+
* (e.g. `absolute inset-0`) — the component fills whatever box it's given.
|
|
18
|
+
*/
|
|
19
|
+
declare const EmptyOverlay: React.ForwardRefExoticComponent<EmptyOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export { EmptyOverlay, emptyOverlayIconVariants };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const gridVariants: (props?: ({
|
|
4
|
-
cols?: 1 | 2 |
|
|
4
|
+
cols?: 1 | 2 | 3 | 6 | 4 | 12 | null | undefined;
|
|
5
5
|
gap?: "none" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface GridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
|
|
@@ -2,7 +2,7 @@ import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const sheetVariants: (props?: ({
|
|
5
|
-
side?: "
|
|
5
|
+
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
declare const Sheet: typeof DialogPrimitive.Root;
|
|
8
8
|
declare const SheetTrigger: DialogPrimitive.Trigger;
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
declare const stackVariants: (props?: ({
|
|
4
4
|
direction?: "horizontal" | "vertical" | null | undefined;
|
|
5
5
|
gap?: "none" | "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
6
|
-
align?: "center" | "end" | "
|
|
6
|
+
align?: "center" | "end" | "stretch" | "start" | null | undefined;
|
|
7
7
|
justify?: "center" | "end" | "start" | "between" | null | undefined;
|
|
8
8
|
wrap?: boolean | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './hooks';
|
|
|
3
3
|
export * from './lib/breakpoints';
|
|
4
4
|
export { PortalContainerProvider, usePortalContainer, type PortalContainerProviderProps, } from './lib/portal-container';
|
|
5
5
|
export * from './components/ui/accordion';
|
|
6
|
+
export * from './components/ui/accordion-container';
|
|
6
7
|
export * from './components/ui/alert';
|
|
7
8
|
export * from './components/ui/app-shell';
|
|
8
9
|
export * from './components/ui/app-shell-chat';
|
|
@@ -18,6 +19,7 @@ export * from './components/ui/calendar';
|
|
|
18
19
|
export * from './components/ui/calendar-panel';
|
|
19
20
|
export * from './components/ui/card';
|
|
20
21
|
export * from './components/ui/card-filter';
|
|
22
|
+
export * from './components/ui/card-section';
|
|
21
23
|
export * from './components/ui/category-bar';
|
|
22
24
|
export * from './components/ui/chart';
|
|
23
25
|
export * from './components/ui/chart-state';
|
|
@@ -36,6 +38,7 @@ export * from './components/ui/dialog-footer-default';
|
|
|
36
38
|
export * from './components/ui/dialog-welcome';
|
|
37
39
|
export * from './components/ui/dropdown-menu';
|
|
38
40
|
export * from './components/ui/empty';
|
|
41
|
+
export * from './components/ui/empty-overlay';
|
|
39
42
|
export * from './components/ui/field';
|
|
40
43
|
export * from './components/ui/fitted-actions';
|
|
41
44
|
export * from './components/ui/filter-cards';
|