@askrjs/themes 0.0.25 → 0.0.27
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/_internal/style.js +2 -1
- package/dist/components/_internal/style.js.map +1 -1
- package/dist/components/alert/alert.d.ts +5 -0
- package/dist/components/alert/alert.js +5 -0
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/alert/alert.types.d.ts +3 -0
- package/dist/components/aside/aside.d.ts +1 -0
- package/dist/components/aside/aside.js +1 -0
- package/dist/components/aside/aside.js.map +1 -1
- package/dist/components/aside/aside.types.d.ts +1 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +5 -0
- package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -1
- package/dist/components/aspect-ratio/aspect-ratio.types.d.ts +3 -0
- package/dist/components/badge/badge.d.ts +1 -0
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/badge/badge.types.d.ts +4 -0
- package/dist/components/block/block.d.ts +6 -0
- package/dist/components/block/block.js.map +1 -1
- package/dist/components/block/block.types.d.ts +8 -0
- package/dist/components/brand/brand.d.ts +3 -0
- package/dist/components/brand/brand.js +3 -0
- package/dist/components/brand/brand.js.map +1 -1
- package/dist/components/brand/brand.types.d.ts +6 -0
- package/dist/components/button-group/button-group.d.ts +1 -0
- package/dist/components/button-group/button-group.js +1 -0
- package/dist/components/button-group/button-group.js.map +1 -1
- package/dist/components/button-group/button-group.types.d.ts +2 -0
- package/dist/components/card/card.d.ts +7 -0
- package/dist/components/card/card.js +7 -0
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/card/card.types.d.ts +9 -0
- package/dist/components/catalog.d.ts +122 -0
- package/dist/components/catalog.js +118 -0
- package/dist/components/catalog.js.map +1 -1
- package/dist/components/close/close.d.ts +1 -0
- package/dist/components/close/close.js.map +1 -1
- package/dist/components/close/close.types.d.ts +2 -0
- package/dist/components/command-palette/command-palette.d.ts +14 -0
- package/dist/components/command-palette/command-palette.js +13 -0
- package/dist/components/command-palette/command-palette.js.map +1 -1
- package/dist/components/command-palette/command-palette.types.d.ts +6 -0
- package/dist/components/container/container.d.ts +1 -0
- package/dist/components/container/container.js +1 -0
- package/dist/components/container/container.js.map +1 -1
- package/dist/components/container/container.types.d.ts +1 -0
- package/dist/components/empty-state/empty-state.d.ts +1 -0
- package/dist/components/empty-state/empty-state.js +1 -0
- package/dist/components/empty-state/empty-state.js.map +1 -1
- package/dist/components/empty-state/empty-state.types.d.ts +2 -0
- package/dist/components/field/field.d.ts +3 -0
- package/dist/components/field/field.js +3 -0
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/field/field.types.d.ts +3 -0
- package/dist/components/footer/footer.d.ts +7 -0
- package/dist/components/footer/footer.js +7 -0
- package/dist/components/footer/footer.js.map +1 -1
- package/dist/components/footer/footer.types.d.ts +7 -0
- package/dist/components/grid/grid.d.ts +1 -0
- package/dist/components/grid/grid.js +1 -0
- package/dist/components/grid/grid.js.map +1 -1
- package/dist/components/grid/grid.types.d.ts +4 -0
- package/dist/components/header/header.d.ts +1 -0
- package/dist/components/header/header.js +1 -0
- package/dist/components/header/header.js.map +1 -1
- package/dist/components/header/header.types.d.ts +1 -0
- package/dist/components/input-group/input-group.d.ts +2 -0
- package/dist/components/input-group/input-group.js +1 -0
- package/dist/components/input-group/input-group.js.map +1 -1
- package/dist/components/input-group/input-group.types.d.ts +4 -0
- package/dist/components/main/main.d.ts +1 -0
- package/dist/components/main/main.js +1 -0
- package/dist/components/main/main.js.map +1 -1
- package/dist/components/main/main.types.d.ts +1 -0
- package/dist/components/nav/nav.d.ts +6 -0
- package/dist/components/nav/nav.js +3 -0
- package/dist/components/nav/nav.js.map +1 -1
- package/dist/components/nav/nav.types.d.ts +14 -0
- package/dist/components/navbar/navbar.d.ts +8 -0
- package/dist/components/navbar/navbar.js +8 -0
- package/dist/components/navbar/navbar.js.map +1 -1
- package/dist/components/navbar/navbar.types.d.ts +5 -0
- package/dist/components/overlays/dropdown-content.d.ts +5 -0
- package/dist/components/overlays/dropdown-content.js.map +1 -1
- package/dist/components/page/page.d.ts +1 -0
- package/dist/components/page/page.js +1 -0
- package/dist/components/page/page.js.map +1 -1
- package/dist/components/page/page.types.d.ts +1 -0
- package/dist/components/page-header/page-header.d.ts +1 -0
- package/dist/components/page-header/page-header.js +1 -0
- package/dist/components/page-header/page-header.js.map +1 -1
- package/dist/components/page-header/page-header.types.d.ts +1 -0
- package/dist/components/section/section.d.ts +1 -0
- package/dist/components/section/section.js +1 -0
- package/dist/components/section/section.js.map +1 -1
- package/dist/components/section/section.types.d.ts +1 -0
- package/dist/components/separator/separator.d.ts +5 -0
- package/dist/components/separator/separator.js.map +1 -1
- package/dist/components/separator/separator.types.d.ts +4 -0
- package/dist/components/sidebar/sidebar.d.ts +16 -0
- package/dist/components/sidebar/sidebar.js +16 -0
- package/dist/components/sidebar/sidebar.js.map +1 -1
- package/dist/components/sidebar/sidebar.types.d.ts +8 -0
- package/dist/components/skeleton/skeleton.d.ts +1 -0
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/skeleton/skeleton.types.d.ts +3 -0
- package/dist/components/spinner/spinner.d.ts +1 -0
- package/dist/components/spinner/spinner.js +1 -0
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/spinner/spinner.types.d.ts +3 -0
- package/dist/components/stat/stat.d.ts +4 -0
- package/dist/components/stat/stat.js +4 -0
- package/dist/components/stat/stat.js.map +1 -1
- package/dist/components/stat/stat.types.d.ts +4 -0
- package/dist/components/text/text.d.ts +1 -0
- package/dist/components/text/text.js +1 -0
- package/dist/components/text/text.js.map +1 -1
- package/dist/components/text/text.types.d.ts +8 -0
- package/dist/components/theme/theme.d.ts +25 -0
- package/dist/components/theme/theme.js +17 -0
- package/dist/components/theme/theme.js.map +1 -1
- package/dist/components/toolbar/toolbar.d.ts +1 -0
- package/dist/components/toolbar/toolbar.js +1 -0
- package/dist/components/toolbar/toolbar.js.map +1 -1
- package/dist/components/toolbar/toolbar.types.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/_internal/style.ts +8 -1
- package/src/components/alert/alert.tsx +5 -0
- package/src/components/alert/alert.types.ts +3 -0
- package/src/components/aside/aside.tsx +1 -0
- package/src/components/aside/aside.types.ts +1 -0
- package/src/components/aspect-ratio/aspect-ratio.tsx +5 -0
- package/src/components/aspect-ratio/aspect-ratio.types.ts +3 -0
- package/src/components/badge/badge.tsx +1 -0
- package/src/components/badge/badge.types.ts +4 -0
- package/src/components/block/block.tsx +6 -0
- package/src/components/block/block.types.ts +8 -0
- package/src/components/brand/brand.tsx +3 -0
- package/src/components/brand/brand.types.ts +6 -0
- package/src/components/button-group/button-group.tsx +1 -0
- package/src/components/button-group/button-group.types.ts +2 -0
- package/src/components/card/card.tsx +7 -0
- package/src/components/card/card.types.ts +9 -0
- package/src/components/catalog.tsx +122 -0
- package/src/components/close/close.tsx +1 -0
- package/src/components/close/close.types.ts +2 -0
- package/src/components/command-palette/command-palette.tsx +14 -0
- package/src/components/command-palette/command-palette.types.ts +6 -0
- package/src/components/container/container.tsx +1 -0
- package/src/components/container/container.types.ts +1 -0
- package/src/components/empty-state/empty-state.tsx +1 -0
- package/src/components/empty-state/empty-state.types.ts +2 -0
- package/src/components/field/field.tsx +3 -0
- package/src/components/field/field.types.ts +3 -0
- package/src/components/footer/footer.tsx +7 -0
- package/src/components/footer/footer.types.ts +7 -0
- package/src/components/grid/grid.tsx +1 -0
- package/src/components/grid/grid.types.ts +4 -0
- package/src/components/header/header.tsx +1 -0
- package/src/components/header/header.types.ts +1 -0
- package/src/components/input-group/input-group.tsx +2 -0
- package/src/components/input-group/input-group.types.ts +4 -0
- package/src/components/main/main.tsx +1 -0
- package/src/components/main/main.types.ts +1 -0
- package/src/components/nav/nav.tsx +6 -0
- package/src/components/nav/nav.types.ts +14 -0
- package/src/components/navbar/navbar.tsx +8 -0
- package/src/components/navbar/navbar.types.ts +5 -0
- package/src/components/overlays/dropdown-content.tsx +5 -0
- package/src/components/page/page.tsx +1 -0
- package/src/components/page/page.types.ts +1 -0
- package/src/components/page-header/page-header.tsx +1 -0
- package/src/components/page-header/page-header.types.ts +1 -0
- package/src/components/section/section.tsx +1 -0
- package/src/components/section/section.types.ts +1 -0
- package/src/components/separator/separator.tsx +5 -0
- package/src/components/separator/separator.types.ts +4 -0
- package/src/components/sidebar/sidebar.tsx +16 -0
- package/src/components/sidebar/sidebar.types.ts +8 -0
- package/src/components/skeleton/skeleton.tsx +1 -0
- package/src/components/skeleton/skeleton.types.ts +3 -0
- package/src/components/spinner/spinner.tsx +1 -0
- package/src/components/spinner/spinner.types.ts +3 -0
- package/src/components/stat/stat.tsx +4 -0
- package/src/components/stat/stat.types.ts +4 -0
- package/src/components/text/text.tsx +1 -0
- package/src/components/text/text.types.ts +8 -0
- package/src/components/theme/theme.tsx +25 -0
- package/src/components/toolbar/toolbar.tsx +1 -0
- package/src/components/toolbar/toolbar.types.ts +1 -0
|
@@ -1,38 +1,47 @@
|
|
|
1
1
|
import { JSX } from "@askrjs/askr/jsx-runtime";
|
|
2
2
|
import { Ref } from "@askrjs/askr/foundations/utilities";
|
|
3
3
|
//#region src/components/card/card.types.d.ts
|
|
4
|
+
/** Visual style of a {@link CardProps} card. */
|
|
4
5
|
type CardVariant = "default" | "raised";
|
|
6
|
+
/** Heading tag allowed for a card's title via `titleAs`. */
|
|
5
7
|
type CardTitleHeadingTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
6
8
|
type DivProps = Omit<JSX.IntrinsicElements["div"], "children" | "ref">;
|
|
7
9
|
type HeadingProps = Omit<JSX.IntrinsicElements["h3"], "children" | "ref">;
|
|
8
10
|
type ParagraphProps = Omit<JSX.IntrinsicElements["p"], "children" | "ref">;
|
|
11
|
+
/** Props for the {@link Card} component. */
|
|
9
12
|
type CardProps = DivProps & {
|
|
10
13
|
children?: unknown;
|
|
11
14
|
variant?: CardVariant;
|
|
12
15
|
ref?: Ref<HTMLDivElement>;
|
|
13
16
|
};
|
|
17
|
+
/** Props for the {@link CardHeader} component. */
|
|
14
18
|
type CardHeaderProps = DivProps & {
|
|
15
19
|
children?: unknown;
|
|
16
20
|
ref?: Ref<HTMLDivElement>;
|
|
17
21
|
};
|
|
22
|
+
/** Props for the {@link CardTitle} component. */
|
|
18
23
|
type CardTitleProps = HeadingProps & {
|
|
19
24
|
children?: unknown;
|
|
20
25
|
/** Choose the level that follows the surrounding document hierarchy. */
|
|
21
26
|
titleAs?: CardTitleHeadingTag;
|
|
22
27
|
ref?: Ref<HTMLHeadingElement>;
|
|
23
28
|
};
|
|
29
|
+
/** Props for the {@link CardDescription} component. */
|
|
24
30
|
type CardDescriptionProps = ParagraphProps & {
|
|
25
31
|
children?: unknown;
|
|
26
32
|
ref?: Ref<HTMLParagraphElement>;
|
|
27
33
|
};
|
|
34
|
+
/** Props for the {@link CardContent} component. */
|
|
28
35
|
type CardContentProps = DivProps & {
|
|
29
36
|
children?: unknown;
|
|
30
37
|
ref?: Ref<HTMLDivElement>;
|
|
31
38
|
};
|
|
39
|
+
/** Props for the {@link CardFooter} component. */
|
|
32
40
|
type CardFooterProps = DivProps & {
|
|
33
41
|
children?: unknown;
|
|
34
42
|
ref?: Ref<HTMLDivElement>;
|
|
35
43
|
};
|
|
44
|
+
/** Props for the {@link CardAction} component. */
|
|
36
45
|
type CardActionProps = DivProps & {
|
|
37
46
|
children?: unknown;
|
|
38
47
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -2,6 +2,10 @@ import { JSX } from "@askrjs/askr/jsx-runtime";
|
|
|
2
2
|
import { Ref } from "@askrjs/askr/foundations/utilities";
|
|
3
3
|
//#region src/components/catalog.d.ts
|
|
4
4
|
type CatalogElement = keyof JSX.IntrinsicElements;
|
|
5
|
+
/**
|
|
6
|
+
* Shared prop shape for the shadcn-compatible catalog primitives below: a
|
|
7
|
+
* polymorphic `as`/`asChild` element plus passthrough attributes.
|
|
8
|
+
*/
|
|
5
9
|
type CatalogComponentProps = Record<string, unknown> & {
|
|
6
10
|
as?: CatalogElement;
|
|
7
11
|
asChild?: boolean;
|
|
@@ -9,34 +13,61 @@ type CatalogComponentProps = Record<string, unknown> & {
|
|
|
9
13
|
class?: string;
|
|
10
14
|
ref?: Ref<HTMLElement>;
|
|
11
15
|
};
|
|
16
|
+
/** Legacy `Box` layout alias for {@link Block} with no default direction. */
|
|
12
17
|
declare function Box(props: CatalogComponentProps): JSX.Element;
|
|
18
|
+
/** Legacy `Stack` layout alias for {@link Block} that defaults to a column direction. */
|
|
13
19
|
declare function Stack(props: CatalogComponentProps): JSX.Element;
|
|
20
|
+
/** Legacy `Inline` layout alias for {@link Block} that defaults to a row direction. */
|
|
14
21
|
declare function Inline(props: CatalogComponentProps): JSX.Element;
|
|
22
|
+
/** Legacy `Shell` layout alias for {@link Block}; the `variant` prop is accepted but ignored. */
|
|
15
23
|
declare function Shell(props: CatalogComponentProps & {
|
|
16
24
|
variant?: unknown;
|
|
17
25
|
}): JSX.Element;
|
|
26
|
+
/** Legacy `ShellNav` layout alias for {@link Block}. */
|
|
18
27
|
declare function ShellNav(props: CatalogComponentProps): JSX.Element;
|
|
28
|
+
/** Legacy `ShellMain` layout alias for {@link Block} that renders a growing `<main>` element. */
|
|
19
29
|
declare function ShellMain(props: CatalogComponentProps): JSX.Element;
|
|
30
|
+
/** Renders the `alert-title` part of the shadcn-compatible catalog primitives. */
|
|
20
31
|
declare function AlertTitle(props: CatalogComponentProps): JSX.Element;
|
|
32
|
+
/** Renders the `alert-description` part of the shadcn-compatible catalog primitives. */
|
|
21
33
|
declare function AlertDescription(props: CatalogComponentProps): JSX.Element;
|
|
34
|
+
/** Renders the `breadcrumb` part of the shadcn-compatible catalog primitives. */
|
|
22
35
|
declare function Breadcrumb(props: CatalogComponentProps): JSX.Element;
|
|
36
|
+
/** Renders the `breadcrumb-list` part of the shadcn-compatible catalog primitives. */
|
|
23
37
|
declare function BreadcrumbList(props: CatalogComponentProps): JSX.Element;
|
|
38
|
+
/** Renders the `breadcrumb-item` part of the shadcn-compatible catalog primitives. */
|
|
24
39
|
declare function BreadcrumbItem(props: CatalogComponentProps): JSX.Element;
|
|
40
|
+
/** Renders the `breadcrumb-link` part of the shadcn-compatible catalog primitives. */
|
|
25
41
|
declare function BreadcrumbLink(props: CatalogComponentProps): JSX.Element;
|
|
42
|
+
/** Renders the current (non-link) breadcrumb page, marked `aria-current="page"`. */
|
|
26
43
|
declare function BreadcrumbPage(props: CatalogComponentProps): JSX.Element;
|
|
44
|
+
/** Renders the separator between breadcrumb items (defaults to `"/"`). */
|
|
27
45
|
declare function BreadcrumbSeparator(props: CatalogComponentProps): JSX.Element;
|
|
46
|
+
/** Renders a non-interactive ellipsis marker in a breadcrumb trail. */
|
|
28
47
|
declare function BreadcrumbEllipsis(props: CatalogComponentProps): JSX.Element;
|
|
48
|
+
/** Renders the `calendar` part of the shadcn-compatible catalog primitives. */
|
|
29
49
|
declare function Calendar(props: CatalogComponentProps): JSX.Element;
|
|
50
|
+
/** Renders the `calendar-header` part of the shadcn-compatible catalog primitives. */
|
|
30
51
|
declare function CalendarHeader(props: CatalogComponentProps): JSX.Element;
|
|
52
|
+
/** Renders the `calendar-caption` part of the shadcn-compatible catalog primitives. */
|
|
31
53
|
declare function CalendarCaption(props: CatalogComponentProps): JSX.Element;
|
|
54
|
+
/** Renders the `calendar-nav` part of the shadcn-compatible catalog primitives. */
|
|
32
55
|
declare function CalendarNav(props: CatalogComponentProps): JSX.Element;
|
|
56
|
+
/** Button that navigates the calendar to the previous month. */
|
|
33
57
|
declare function CalendarPreviousButton(props: CatalogComponentProps): JSX.Element;
|
|
58
|
+
/** Button that navigates the calendar to the next month. */
|
|
34
59
|
declare function CalendarNextButton(props: CatalogComponentProps): JSX.Element;
|
|
60
|
+
/** Renders the `calendar-grid` part of the shadcn-compatible catalog primitives. */
|
|
35
61
|
declare function CalendarGrid(props: CatalogComponentProps): JSX.Element;
|
|
62
|
+
/** Renders the `calendar-head` part of the shadcn-compatible catalog primitives. */
|
|
36
63
|
declare function CalendarHead(props: CatalogComponentProps): JSX.Element;
|
|
64
|
+
/** Renders the `calendar-body` part of the shadcn-compatible catalog primitives. */
|
|
37
65
|
declare function CalendarBody(props: CatalogComponentProps): JSX.Element;
|
|
66
|
+
/** Renders the `calendar-row` part of the shadcn-compatible catalog primitives. */
|
|
38
67
|
declare function CalendarRow(props: CatalogComponentProps): JSX.Element;
|
|
68
|
+
/** Renders the `calendar-cell` part of the shadcn-compatible catalog primitives. */
|
|
39
69
|
declare function CalendarCell(props: CatalogComponentProps): JSX.Element;
|
|
70
|
+
/** Renders a single selectable day cell in the calendar grid, with selection/range/today state exposed as data attributes. */
|
|
40
71
|
declare function CalendarDay(props: CatalogComponentProps & {
|
|
41
72
|
disabled?: boolean;
|
|
42
73
|
outside?: boolean;
|
|
@@ -46,110 +77,201 @@ declare function CalendarDay(props: CatalogComponentProps & {
|
|
|
46
77
|
selected?: boolean;
|
|
47
78
|
today?: boolean;
|
|
48
79
|
}): JSX.Element;
|
|
80
|
+
/** Renders the `carousel` part of the shadcn-compatible catalog primitives. */
|
|
49
81
|
declare function Carousel(props: CatalogComponentProps): JSX.Element;
|
|
82
|
+
/** Renders the `carousel-content` part of the shadcn-compatible catalog primitives. */
|
|
50
83
|
declare function CarouselContent(props: CatalogComponentProps): JSX.Element;
|
|
84
|
+
/** Renders the `carousel-item` part of the shadcn-compatible catalog primitives. */
|
|
51
85
|
declare function CarouselItem(props: CatalogComponentProps): JSX.Element;
|
|
86
|
+
/** Button that navigates the carousel to the previous item. */
|
|
52
87
|
declare function CarouselPrevious(props: CatalogComponentProps): JSX.Element;
|
|
88
|
+
/** Button that navigates the carousel to the next item. */
|
|
53
89
|
declare function CarouselNext(props: CatalogComponentProps): JSX.Element;
|
|
90
|
+
/** Renders the `combobox` part of the shadcn-compatible catalog primitives. */
|
|
54
91
|
declare function Combobox(props: CatalogComponentProps): JSX.Element;
|
|
92
|
+
/** Renders the combobox's text input, wired up with `role="combobox"`. */
|
|
55
93
|
declare function ComboboxInput(props: CatalogComponentProps): JSX.Element;
|
|
94
|
+
/** Renders the `combobox-list` part of the shadcn-compatible catalog primitives. */
|
|
56
95
|
declare function ComboboxList(props: CatalogComponentProps): JSX.Element;
|
|
96
|
+
/** Renders the `combobox-option` part of the shadcn-compatible catalog primitives. */
|
|
57
97
|
declare function ComboboxOption(props: CatalogComponentProps): JSX.Element;
|
|
98
|
+
/** Renders the `command` part of the shadcn-compatible catalog primitives. */
|
|
58
99
|
declare function Command(props: CatalogComponentProps): JSX.Element;
|
|
100
|
+
/** Renders the `command-dialog` part of the shadcn-compatible catalog primitives. */
|
|
59
101
|
declare function CommandDialog(props: CatalogComponentProps): JSX.Element;
|
|
102
|
+
/** Renders the command palette's search `<input>`. */
|
|
60
103
|
declare function CommandInput(props: CatalogComponentProps): JSX.Element;
|
|
104
|
+
/** Renders the `command-header` part of the shadcn-compatible catalog primitives. */
|
|
61
105
|
declare function CommandHeader(props: CatalogComponentProps): JSX.Element;
|
|
106
|
+
/** Renders the `command-list` part of the shadcn-compatible catalog primitives. */
|
|
62
107
|
declare function CommandList(props: CatalogComponentProps): JSX.Element;
|
|
108
|
+
/** Renders the `command-empty` part of the shadcn-compatible catalog primitives. */
|
|
63
109
|
declare function CommandEmpty(props: CatalogComponentProps): JSX.Element;
|
|
110
|
+
/** Renders the `command-group` part of the shadcn-compatible catalog primitives. */
|
|
64
111
|
declare function CommandGroup(props: CatalogComponentProps): JSX.Element;
|
|
112
|
+
/** Renders the `command-group-heading` part of the shadcn-compatible catalog primitives. */
|
|
65
113
|
declare function CommandGroupHeading(props: CatalogComponentProps): JSX.Element;
|
|
114
|
+
/** Renders a selectable command list entry, exposing `active`/`disabled`/`selected` as ARIA and data attributes. */
|
|
66
115
|
declare function CommandItem(props: CatalogComponentProps & {
|
|
67
116
|
active?: boolean;
|
|
68
117
|
disabled?: boolean;
|
|
69
118
|
selected?: boolean;
|
|
70
119
|
}): JSX.Element;
|
|
120
|
+
/** Renders the `command-separator` part of the shadcn-compatible catalog primitives. */
|
|
71
121
|
declare function CommandSeparator(props: CatalogComponentProps): JSX.Element;
|
|
122
|
+
/** Renders the `command-shortcut` part of the shadcn-compatible catalog primitives. */
|
|
72
123
|
declare function CommandShortcut(props: CatalogComponentProps): JSX.Element;
|
|
124
|
+
/** Renders the `data-table` part of the shadcn-compatible catalog primitives. */
|
|
73
125
|
declare function DataTable(props: CatalogComponentProps): JSX.Element;
|
|
126
|
+
/** Renders the `date-picker` part of the shadcn-compatible catalog primitives. */
|
|
74
127
|
declare function DatePicker(props: CatalogComponentProps): JSX.Element;
|
|
128
|
+
/** Renders the date picker's `<input type="date">` by default. */
|
|
75
129
|
declare function DatePickerInput(props: CatalogComponentProps): JSX.Element;
|
|
130
|
+
/** Sets the `dir` attribute (defaulting to `"ltr"`) on its wrapping element for RTL/LTR scoping. */
|
|
76
131
|
declare function Direction(props: CatalogComponentProps & {
|
|
77
132
|
dir?: "ltr" | "rtl";
|
|
78
133
|
}): JSX.Element;
|
|
134
|
+
/** Renders the `empty` part of the shadcn-compatible catalog primitives. */
|
|
79
135
|
declare function Empty(props: CatalogComponentProps): JSX.Element;
|
|
136
|
+
/** Renders the `empty-header` part of the shadcn-compatible catalog primitives. */
|
|
80
137
|
declare function EmptyHeader(props: CatalogComponentProps): JSX.Element;
|
|
138
|
+
/** Renders the `empty-title` part of the shadcn-compatible catalog primitives. */
|
|
81
139
|
declare function EmptyTitle(props: CatalogComponentProps): JSX.Element;
|
|
140
|
+
/** Renders the `empty-description` part of the shadcn-compatible catalog primitives. */
|
|
82
141
|
declare function EmptyDescription(props: CatalogComponentProps): JSX.Element;
|
|
142
|
+
/** Renders the `empty-content` part of the shadcn-compatible catalog primitives. */
|
|
83
143
|
declare function EmptyContent(props: CatalogComponentProps): JSX.Element;
|
|
144
|
+
/** Renders the `empty-media` part of the shadcn-compatible catalog primitives. */
|
|
84
145
|
declare function EmptyMedia(props: CatalogComponentProps): JSX.Element;
|
|
146
|
+
/** Renders the `field-group` part of the shadcn-compatible catalog primitives. */
|
|
85
147
|
declare function FieldGroup(props: CatalogComponentProps): JSX.Element;
|
|
148
|
+
/** Renders the `field-set` part of the shadcn-compatible catalog primitives. */
|
|
86
149
|
declare function FieldSet(props: CatalogComponentProps): JSX.Element;
|
|
150
|
+
/** Renders the `field-legend` part of the shadcn-compatible catalog primitives. */
|
|
87
151
|
declare function FieldLegend(props: CatalogComponentProps): JSX.Element;
|
|
152
|
+
/** Renders the `field-label` part of the shadcn-compatible catalog primitives. */
|
|
88
153
|
declare function FieldLabel(props: CatalogComponentProps): JSX.Element;
|
|
154
|
+
/** Renders the `field-description` part of the shadcn-compatible catalog primitives. */
|
|
89
155
|
declare function FieldDescription(props: CatalogComponentProps): JSX.Element;
|
|
156
|
+
/** Renders the `field-content` part of the shadcn-compatible catalog primitives. */
|
|
90
157
|
declare function FieldContent(props: CatalogComponentProps): JSX.Element;
|
|
158
|
+
/** Renders the `field-title` part of the shadcn-compatible catalog primitives. */
|
|
91
159
|
declare function FieldTitle(props: CatalogComponentProps): JSX.Element;
|
|
160
|
+
/** Renders the `field-separator` part of the shadcn-compatible catalog primitives. */
|
|
92
161
|
declare function FieldSeparator(props: CatalogComponentProps): JSX.Element;
|
|
162
|
+
/** Renders the `input-otp` part of the shadcn-compatible catalog primitives. */
|
|
93
163
|
declare function InputOTP(props: CatalogComponentProps): JSX.Element;
|
|
164
|
+
/** Renders the `input-otp-group` part of the shadcn-compatible catalog primitives. */
|
|
94
165
|
declare function InputOTPGroup(props: CatalogComponentProps): JSX.Element;
|
|
166
|
+
/** Renders the `input-otp-slot` part of the shadcn-compatible catalog primitives. */
|
|
95
167
|
declare function InputOTPSlot(props: CatalogComponentProps): JSX.Element;
|
|
168
|
+
/** Renders the visual separator between InputOTP groups (defaults to `"-"`). */
|
|
96
169
|
declare function InputOTPSeparator(props: CatalogComponentProps): JSX.Element;
|
|
170
|
+
/** Renders a generic list item part, exposing `active`/`size`/`variant` as data attributes. */
|
|
97
171
|
declare function Item(props: CatalogComponentProps & {
|
|
98
172
|
active?: boolean;
|
|
99
173
|
size?: "default" | "sm" | "xs";
|
|
100
174
|
variant?: "default" | "outline" | "muted";
|
|
101
175
|
}): JSX.Element;
|
|
176
|
+
/** Renders the `item-group` part of the shadcn-compatible catalog primitives. */
|
|
102
177
|
declare function ItemGroup(props: CatalogComponentProps): JSX.Element;
|
|
178
|
+
/** Renders the `item-header` part of the shadcn-compatible catalog primitives. */
|
|
103
179
|
declare function ItemHeader(props: CatalogComponentProps): JSX.Element;
|
|
180
|
+
/** Renders the `item-media` part of the shadcn-compatible catalog primitives. */
|
|
104
181
|
declare function ItemMedia(props: CatalogComponentProps): JSX.Element;
|
|
182
|
+
/** Renders the `item-content` part of the shadcn-compatible catalog primitives. */
|
|
105
183
|
declare function ItemContent(props: CatalogComponentProps): JSX.Element;
|
|
184
|
+
/** Renders the `item-title` part of the shadcn-compatible catalog primitives. */
|
|
106
185
|
declare function ItemTitle(props: CatalogComponentProps): JSX.Element;
|
|
186
|
+
/** Renders the `item-description` part of the shadcn-compatible catalog primitives. */
|
|
107
187
|
declare function ItemDescription(props: CatalogComponentProps): JSX.Element;
|
|
188
|
+
/** Renders the `item-actions` part of the shadcn-compatible catalog primitives. */
|
|
108
189
|
declare function ItemActions(props: CatalogComponentProps): JSX.Element;
|
|
190
|
+
/** Renders the `item-footer` part of the shadcn-compatible catalog primitives. */
|
|
109
191
|
declare function ItemFooter(props: CatalogComponentProps): JSX.Element;
|
|
192
|
+
/** Renders the `kbd` part of the shadcn-compatible catalog primitives. */
|
|
110
193
|
declare function Kbd(props: CatalogComponentProps): JSX.Element;
|
|
194
|
+
/** Renders a styled native `<select>` element. */
|
|
111
195
|
declare function NativeSelect(props: CatalogComponentProps): JSX.Element;
|
|
196
|
+
/** Renders the `navigation-menu` part of the shadcn-compatible catalog primitives. */
|
|
112
197
|
declare function NavigationMenu(props: CatalogComponentProps): JSX.Element;
|
|
198
|
+
/** Renders the `navigation-menu-list` part of the shadcn-compatible catalog primitives. */
|
|
113
199
|
declare function NavigationMenuList(props: CatalogComponentProps): JSX.Element;
|
|
200
|
+
/** Renders the `navigation-menu-item` part of the shadcn-compatible catalog primitives. */
|
|
114
201
|
declare function NavigationMenuItem(props: CatalogComponentProps): JSX.Element;
|
|
202
|
+
/** Renders the `navigation-menu-content` part of the shadcn-compatible catalog primitives. */
|
|
115
203
|
declare function NavigationMenuTrigger(props: CatalogComponentProps): JSX.Element;
|
|
204
|
+
/** Renders the `navigation-menu-content` part of the shadcn-compatible catalog primitives. */
|
|
116
205
|
declare function NavigationMenuContent(props: CatalogComponentProps): JSX.Element;
|
|
206
|
+
/** Renders the `navigation-menu-link` part of the shadcn-compatible catalog primitives. */
|
|
117
207
|
declare function NavigationMenuLink(props: CatalogComponentProps): JSX.Element;
|
|
208
|
+
/** Renders the `navigation-menu-viewport` part of the shadcn-compatible catalog primitives. */
|
|
118
209
|
declare function NavigationMenuViewport(props: CatalogComponentProps): JSX.Element;
|
|
210
|
+
/** Renders the `navigation-menu-indicator` part of the shadcn-compatible catalog primitives. */
|
|
119
211
|
declare function NavigationMenuIndicator(props: CatalogComponentProps): JSX.Element;
|
|
212
|
+
/** Renders the `pagination` part of the shadcn-compatible catalog primitives. */
|
|
120
213
|
declare function Pagination(props: CatalogComponentProps): JSX.Element;
|
|
214
|
+
/** Renders the `pagination-content` part of the shadcn-compatible catalog primitives. */
|
|
121
215
|
declare function PaginationContent(props: CatalogComponentProps): JSX.Element;
|
|
216
|
+
/** Renders the `pagination-item` part of the shadcn-compatible catalog primitives. */
|
|
122
217
|
declare function PaginationItem(props: CatalogComponentProps): JSX.Element;
|
|
218
|
+
/** Renders a pagination page link, marking it `aria-current="page"` when `active`. */
|
|
123
219
|
declare function PaginationLink(props: CatalogComponentProps & {
|
|
124
220
|
active?: boolean;
|
|
125
221
|
}): JSX.Element;
|
|
222
|
+
/** Pagination link that moves to the previous page. */
|
|
126
223
|
declare function PaginationPrevious(props: CatalogComponentProps): JSX.Element;
|
|
224
|
+
/** Pagination link that moves to the next page. */
|
|
127
225
|
declare function PaginationNext(props: CatalogComponentProps): JSX.Element;
|
|
226
|
+
/** Renders a non-interactive ellipsis marker between pagination links. */
|
|
128
227
|
declare function PaginationEllipsis(props: CatalogComponentProps): JSX.Element;
|
|
228
|
+
/** Renders the `resizable-panel-group` part of the shadcn-compatible catalog primitives. */
|
|
129
229
|
declare function ResizablePanelGroup(props: CatalogComponentProps): JSX.Element;
|
|
230
|
+
/** Renders the `resizable-panel` part of the shadcn-compatible catalog primitives. */
|
|
130
231
|
declare function ResizablePanel(props: CatalogComponentProps): JSX.Element;
|
|
232
|
+
/** Renders the `resizable-handle` part of the shadcn-compatible catalog primitives. */
|
|
131
233
|
declare function ResizableHandle(props: CatalogComponentProps): JSX.Element;
|
|
234
|
+
/** Renders the `tabs-list` part of the shadcn-compatible catalog primitives. */
|
|
132
235
|
declare function TabsList(props: CatalogComponentProps): JSX.Element;
|
|
236
|
+
/** Renders the `tabs-content` part of the shadcn-compatible catalog primitives. */
|
|
133
237
|
declare function TabsTrigger(props: CatalogComponentProps): JSX.Element;
|
|
238
|
+
/** Renders the `tabs-content` part of the shadcn-compatible catalog primitives. */
|
|
134
239
|
declare function TabsContent(props: CatalogComponentProps): JSX.Element;
|
|
240
|
+
/** Sheet variant of the dialog content part; defaults to sliding in from the right. */
|
|
135
241
|
declare function SheetContent(props: CatalogComponentProps & {
|
|
136
242
|
side?: "top" | "right" | "bottom" | "left";
|
|
137
243
|
}): JSX.Element;
|
|
244
|
+
/** Renders the `sheet-header` part of the shadcn-compatible catalog primitives. */
|
|
138
245
|
declare function SheetHeader(props: CatalogComponentProps): JSX.Element;
|
|
246
|
+
/** Renders the `sheet-footer` part of the shadcn-compatible catalog primitives. */
|
|
139
247
|
declare function SheetFooter(props: CatalogComponentProps): JSX.Element;
|
|
248
|
+
/** Sheet variant of the dialog title part. */
|
|
140
249
|
declare function SheetTitle(props: CatalogComponentProps): JSX.Element;
|
|
250
|
+
/** Sheet variant of the dialog description part. */
|
|
141
251
|
declare function SheetDescription(props: CatalogComponentProps): JSX.Element;
|
|
252
|
+
/** Renders the `sonner` part of the shadcn-compatible catalog primitives. */
|
|
142
253
|
declare function Toaster(props: CatalogComponentProps): JSX.Element;
|
|
254
|
+
/** Alias of {@link Toaster} kept for shadcn/sonner API compatibility. */
|
|
143
255
|
declare const Sonner: typeof Toaster;
|
|
256
|
+
/** Renders the `typography` part of the shadcn-compatible catalog primitives. */
|
|
144
257
|
declare function Typography(props: CatalogComponentProps): JSX.Element;
|
|
258
|
+
/** Renders the `typography-h1` part of the shadcn-compatible catalog primitives. */
|
|
145
259
|
declare function TypographyH1(props: CatalogComponentProps): JSX.Element;
|
|
260
|
+
/** Renders the `typography-h2` part of the shadcn-compatible catalog primitives. */
|
|
146
261
|
declare function TypographyH2(props: CatalogComponentProps): JSX.Element;
|
|
262
|
+
/** Renders the `typography-h3` part of the shadcn-compatible catalog primitives. */
|
|
147
263
|
declare function TypographyH3(props: CatalogComponentProps): JSX.Element;
|
|
264
|
+
/** Renders the `typography-h4` part of the shadcn-compatible catalog primitives. */
|
|
148
265
|
declare function TypographyH4(props: CatalogComponentProps): JSX.Element;
|
|
266
|
+
/** Renders the `typography-p` part of the shadcn-compatible catalog primitives. */
|
|
149
267
|
declare function TypographyP(props: CatalogComponentProps): JSX.Element;
|
|
268
|
+
/** Renders the `typography-blockquote` part of the shadcn-compatible catalog primitives. */
|
|
150
269
|
declare function TypographyBlockquote(props: CatalogComponentProps): JSX.Element;
|
|
270
|
+
/** Renders the `typography-list` part of the shadcn-compatible catalog primitives. */
|
|
151
271
|
declare function TypographyList(props: CatalogComponentProps): JSX.Element;
|
|
272
|
+
/** Renders the `typography-lead` part of the shadcn-compatible catalog primitives. */
|
|
152
273
|
declare function TypographyLead(props: CatalogComponentProps): JSX.Element;
|
|
274
|
+
/** Renders the `typography-muted` part of the shadcn-compatible catalog primitives. */
|
|
153
275
|
declare function TypographyMuted(props: CatalogComponentProps): JSX.Element;
|
|
154
276
|
//#endregion
|
|
155
277
|
export { AlertDescription, AlertTitle, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, CalendarBody, CalendarCaption, CalendarCell, CalendarDay, CalendarGrid, CalendarHead, CalendarHeader, CalendarNav, CalendarNextButton, CalendarPreviousButton, CalendarRow, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CatalogComponentProps, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DataTable, DatePicker, DatePickerInput, Direction, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Inline, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemTitle, Kbd, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ResizableHandle, ResizablePanel, ResizablePanelGroup, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Shell, ShellMain, ShellNav, Sonner, Stack, TabsContent, TabsList, TabsTrigger, Toaster, Typography, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyLead, TypographyList, TypographyMuted, TypographyP };
|