@rise-x/apps-sdk 0.7.0 → 0.8.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.
Files changed (59) hide show
  1. package/build/ui/components/accordion.d.ts +7 -0
  2. package/build/ui/components/aspect-ratio.d.ts +4 -0
  3. package/build/ui/components/button-group.d.ts +7 -0
  4. package/build/ui/components/carousel.d.ts +18 -0
  5. package/build/ui/components/chart.d.ts +45 -94
  6. package/build/ui/components/collapsible.d.ts +6 -0
  7. package/build/ui/components/combobox.d.ts +19 -0
  8. package/build/ui/components/command.d.ts +18 -0
  9. package/build/ui/components/context-menu.d.ts +29 -0
  10. package/build/ui/components/date-picker.d.ts +16 -0
  11. package/build/ui/components/direction.d.ts +6 -0
  12. package/build/ui/components/field.d.ts +25 -0
  13. package/build/ui/components/hover-card.d.ts +6 -0
  14. package/build/ui/components/input-group.d.ts +13 -0
  15. package/build/ui/components/input-otp.d.ts +34 -0
  16. package/build/ui/components/input.d.ts +1 -3
  17. package/build/ui/components/item.d.ts +23 -0
  18. package/build/ui/components/kbd.d.ts +4 -0
  19. package/build/ui/components/menubar.d.ts +26 -0
  20. package/build/ui/components/message-scroller.d.ts +15 -0
  21. package/build/ui/components/navigation-menu.d.ts +13 -0
  22. package/build/ui/components/page-header.d.ts +7 -1
  23. package/build/ui/index.d.ts +19 -0
  24. package/build/ui/reference/components/accordion.tsx +85 -0
  25. package/build/ui/reference/components/alert-dialog.tsx +1 -1
  26. package/build/ui/reference/components/aspect-ratio.tsx +28 -0
  27. package/build/ui/reference/components/button-group.tsx +77 -0
  28. package/build/ui/reference/components/carousel.tsx +248 -0
  29. package/build/ui/reference/components/chart.tsx +441 -1131
  30. package/build/ui/reference/components/collapsible.tsx +43 -0
  31. package/build/ui/reference/components/combobox.tsx +141 -0
  32. package/build/ui/reference/components/command.tsx +181 -0
  33. package/build/ui/reference/components/context-menu.tsx +243 -0
  34. package/build/ui/reference/components/data-table.tsx +3 -3
  35. package/build/ui/reference/components/date-picker.tsx +218 -0
  36. package/build/ui/reference/components/dialog.tsx +2 -2
  37. package/build/ui/reference/components/direction.tsx +22 -0
  38. package/build/ui/reference/components/field.tsx +252 -0
  39. package/build/ui/reference/components/hover-card.tsx +64 -0
  40. package/build/ui/reference/components/input-group.tsx +157 -0
  41. package/build/ui/reference/components/input-otp.tsx +106 -0
  42. package/build/ui/reference/components/input.tsx +4 -32
  43. package/build/ui/reference/components/item.tsx +188 -0
  44. package/build/ui/reference/components/kbd.tsx +43 -0
  45. package/build/ui/reference/components/label.tsx +1 -1
  46. package/build/ui/reference/components/menubar.tsx +275 -0
  47. package/build/ui/reference/components/message-scroller.tsx +141 -0
  48. package/build/ui/reference/components/nav.tsx +6 -0
  49. package/build/ui/reference/components/navigation-menu.tsx +191 -0
  50. package/build/ui/reference/components/page-header.tsx +32 -0
  51. package/build/ui/reference/components/popover.tsx +2 -2
  52. package/build/ui/reference/components/select.tsx +11 -8
  53. package/build/ui/reference/components/sheet.tsx +9 -1
  54. package/build/ui/reference/components/timeline.tsx +7 -0
  55. package/build/ui/reference/components/toggle.tsx +1 -1
  56. package/build/ui/reference/index.ts +19 -0
  57. package/build/ui/standalone.js +167 -28
  58. package/build/ui/styles.css +1 -1
  59. package/package.json +6 -1
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { Accordion as AccordionPrimitive } from 'radix-ui';
3
+ declare function Accordion({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): React.JSX.Element;
4
+ declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): React.JSX.Element;
5
+ declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): React.JSX.Element;
6
+ declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): React.JSX.Element;
7
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { AspectRatio as AspectRatioPrimitive } from 'radix-ui';
3
+ declare function AspectRatio({ className, ...props }: React.ComponentProps<typeof AspectRatioPrimitive.Root>): React.JSX.Element;
4
+ export { AspectRatio };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<'div'> & {
3
+ orientation?: 'horizontal' | 'vertical';
4
+ }): React.JSX.Element;
5
+ declare function ButtonGroupText({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
6
+ declare function ButtonGroupSeparator({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
7
+ export { ButtonGroup, ButtonGroupText, ButtonGroupSeparator };
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';
3
+ import { Button } from './button';
4
+ type CarouselApi = UseEmblaCarouselType[1];
5
+ type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
6
+ type CarouselOptions = UseCarouselParameters[0];
7
+ type CarouselPlugin = UseCarouselParameters[1];
8
+ declare const Carousel: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
9
+ opts?: CarouselOptions;
10
+ plugins?: CarouselPlugin;
11
+ orientation?: "horizontal" | "vertical";
12
+ setApi?: (api: CarouselApi) => void;
13
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ declare function CarouselContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
15
+ declare function CarouselItem({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
16
+ declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
17
+ declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
18
+ export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
@@ -1,4 +1,6 @@
1
1
  import * as React from 'react';
2
+ import * as RechartsPrimitive from 'recharts';
3
+ import type { TooltipValueType } from 'recharts';
2
4
  declare const CHART_SERIES: readonly ["var(--chart-1)", "var(--chart-2)", "var(--chart-3)", "var(--chart-4)", "var(--chart-5)", "var(--chart-6)"];
3
5
  declare const SEMANTIC_SERIES: {
4
6
  readonly success: "var(--success)";
@@ -9,99 +11,52 @@ declare const SEMANTIC_SERIES: {
9
11
  };
10
12
  type SemanticTone = keyof typeof SEMANTIC_SERIES;
11
13
  declare function seriesColor(index: number, tone?: SemanticTone): "var(--chart-1)" | "var(--chart-2)" | "var(--chart-3)" | "var(--chart-4)" | "var(--chart-5)" | "var(--chart-6)" | "var(--success)" | "var(--warning)" | "var(--error)" | "var(--info)" | "var(--neutral)";
14
+ declare const THEMES: {
15
+ readonly light: "";
16
+ readonly dark: ".dark";
17
+ };
18
+ type TooltipNameType = number | string;
19
+ export type ChartConfig = Record<string, {
20
+ label?: React.ReactNode;
21
+ icon?: React.ComponentType;
22
+ } & ({
23
+ color?: string;
24
+ theme?: never;
25
+ } | {
26
+ color?: never;
27
+ theme: Record<keyof typeof THEMES, string>;
28
+ })>;
29
+ declare function ChartContainer({ id, className, children, config, initialDimension, ...props }: React.ComponentProps<'div'> & {
30
+ config: ChartConfig;
31
+ children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];
32
+ initialDimension?: {
33
+ width: number;
34
+ height: number;
35
+ };
36
+ }): React.JSX.Element;
37
+ declare const ChartStyle: ({ id, config }: {
38
+ id: string;
39
+ config: ChartConfig;
40
+ }) => React.JSX.Element | null;
41
+ declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
42
+ declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<'div'> & {
43
+ hideLabel?: boolean;
44
+ hideIndicator?: boolean;
45
+ indicator?: 'line' | 'dot' | 'dashed';
46
+ nameKey?: string;
47
+ labelKey?: string;
48
+ } & Omit<RechartsPrimitive.DefaultTooltipContentProps<TooltipValueType, TooltipNameType>, 'accessibilityLayer'>): React.JSX.Element | null;
49
+ declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
50
+ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<'div'> & {
51
+ hideIcon?: boolean;
52
+ nameKey?: string;
53
+ } & RechartsPrimitive.DefaultLegendContentProps): React.JSX.Element | null;
12
54
  declare function ChartCard({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
13
55
  declare function ChartCardHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
14
56
  declare function ChartCardTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
15
57
  declare function ChartCardDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
16
58
  declare function ChartCardActions({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
17
59
  declare function ChartCardFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
18
- export interface ChartSeries {
19
- label: string;
20
- values: number[];
21
- tone?: SemanticTone;
22
- }
23
- interface AxisChartProps extends Omit<React.ComponentProps<'div'>, 'children'> {
24
- series: ChartSeries[];
25
- labels: string[];
26
- height?: number;
27
- gridLines?: number;
28
- formatValue?: (value: number) => string;
29
- }
30
- declare function LineChart({ series, labels, height, gridLines, formatValue, area, curve, dots, stacked, stackOffset, fill, yAxis, hover, className, ...props }: AxisChartProps & {
31
- area?: boolean;
32
- curve?: 'monotone' | 'linear' | 'step';
33
- dots?: boolean;
34
- /** Stack the series so the top line is the total. */
35
- stacked?: boolean;
36
- /** `expand` normalises each x to 100% — shadcn's `stackOffset="expand"`. Only
37
- * meaningful with `stacked`, since it is a share of the stack. */
38
- stackOffset?: 'none' | 'expand';
39
- /** `gradient`, ramping 0.8 → 0.1, is the default: an area chart is about the
40
- * shape under the line, and a flat block of colour flattens exactly that.
41
- * `flat` is shadcn's `fillOpacity={0.4}`, kept for a single-colour export
42
- * where a gradient would band. */
43
- fill?: 'gradient' | 'flat';
44
- /** Y tick LABELS. ON by default: these charts are read for MAGNITUDE, and a
45
- * tooltip only answers for the point under the pointer, so a chart someone
46
- * has to quote a number from needs the scale on the page. Not strict —
47
- * `yAxis={false}` gives shadcn's axis-less look and reclaims the gutter. */
48
- yAxis?: boolean;
49
- /** Hover bands + tooltip. On by default — see the note above HoverCard. */
50
- hover?: boolean;
51
- }): React.JSX.Element;
52
- declare function AreaChart(props: React.ComponentProps<typeof LineChart>): React.JSX.Element;
53
- declare function BarChart({ series, labels, height, gridLines, stacked, horizontal, radius, yAxis, hover, formatValue, className, ...props }: AxisChartProps & {
54
- stacked?: boolean;
55
- horizontal?: boolean;
56
- radius?: number;
57
- /** Y tick labels, on by default — see LineChart's note. Grid is unaffected. */
58
- yAxis?: boolean;
59
- hover?: boolean;
60
- }): React.JSX.Element;
61
- export interface PieSlice {
62
- label: string;
63
- value: number;
64
- tone?: SemanticTone;
65
- }
66
- declare function PieChart({ slices, size,
67
- /** 0 renders a solid pie; any thickness renders a donut. */
68
- thickness, centerLabel, centerValue, hover, formatValue, className, ...props }: Omit<React.ComponentProps<'div'>, 'children'> & {
69
- slices: PieSlice[];
70
- size?: number;
71
- thickness?: number;
72
- centerLabel?: React.ReactNode;
73
- centerValue?: React.ReactNode;
74
- hover?: boolean;
75
- formatValue?: (v: number) => string;
76
- }): React.JSX.Element;
77
- /** Donut is a pie with a hole — same arithmetic, one default changed. */
78
- declare function DonutChart({ thickness, ...props }: React.ComponentProps<typeof PieChart>): React.JSX.Element;
79
- declare function RadialChart({ series, size, thickness, gap, max, hover, centerLabel, centerValue, formatValue, className, ...props }: Omit<React.ComponentProps<'div'>, 'children'> & {
80
- series: {
81
- label: string;
82
- value: number;
83
- tone?: SemanticTone;
84
- }[];
85
- size?: number;
86
- thickness?: number;
87
- gap?: number;
88
- max?: number;
89
- centerLabel?: React.ReactNode;
90
- centerValue?: React.ReactNode;
91
- hover?: boolean;
92
- formatValue?: (value: number) => string;
93
- }): React.JSX.Element;
94
- declare function RadarChart({ axes, series, size, rings, hover, className, ...props }: Omit<React.ComponentProps<'div'>, 'children'> & {
95
- axes: string[];
96
- series: {
97
- label: string;
98
- values: number[];
99
- tone?: SemanticTone;
100
- }[];
101
- size?: number;
102
- rings?: number;
103
- hover?: boolean;
104
- }): React.JSX.Element;
105
60
  declare function Sparkline({ values, width, height, tone, className, ...props }: Omit<React.ComponentProps<'div'>, 'children'> & {
106
61
  values: number[];
107
62
  width?: number;
@@ -115,10 +70,6 @@ declare function ProgressRing({ value, size, thickness, tone, showValue, classNa
115
70
  tone?: SemanticTone;
116
71
  showValue?: boolean;
117
72
  }): React.JSX.Element;
118
- declare function ChartLegend({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
119
- declare function ChartLegendItem({ className, index, tone, children, ...props }: React.ComponentProps<'span'> & {
120
- index?: number;
121
- tone?: SemanticTone;
122
- }): React.JSX.Element;
123
- declare function ChartTooltip({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
124
- export { ChartCard, ChartCardHeader, ChartCardTitle, ChartCardDescription, ChartCardActions, ChartCardFooter, LineChart, AreaChart, BarChart, PieChart, DonutChart, RadialChart, RadarChart, Sparkline, ProgressRing, ChartLegend, ChartLegendItem, ChartTooltip, CHART_SERIES, seriesColor, type SemanticTone, };
73
+ export { Label as ChartLabel } from 'recharts';
74
+ export { Area, AreaChart, Bar, BarChart, Brush, CartesianGrid, Cell, ComposedChart, Customized, ErrorBar, Funnel, FunnelChart, LabelList, Line, LineChart, Pie, PieChart, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Radar, RadarChart, RadialBar, RadialBarChart, Rectangle, ReferenceArea, ReferenceDot, ReferenceLine, ResponsiveContainer, Scatter, ScatterChart, Sector, Treemap, XAxis, YAxis, ZAxis, } from 'recharts';
75
+ export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, ChartCard, ChartCardHeader, ChartCardTitle, ChartCardDescription, ChartCardActions, ChartCardFooter, Sparkline, ProgressRing, CHART_SERIES, seriesColor, type SemanticTone, };
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import { Collapsible as CollapsiblePrimitive } from 'radix-ui';
3
+ declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): React.JSX.Element;
4
+ declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Trigger>): React.JSX.Element;
5
+ declare function CollapsibleContent({ className, ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Content>): React.JSX.Element;
6
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ export interface ComboboxOption {
3
+ value: string;
4
+ label: string;
5
+ /** Extra searchable text — a code, an alias — that is not shown. */
6
+ keywords?: string;
7
+ disabled?: boolean;
8
+ }
9
+ declare const Combobox: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "onChange" | "value"> & {
10
+ options: ComboboxOption[];
11
+ value?: string;
12
+ onValueChange?: (value: string) => void;
13
+ placeholder?: string;
14
+ searchPlaceholder?: string;
15
+ emptyLabel?: string;
16
+ /** Matches Select's trigger sizes. */
17
+ size?: "sm" | "default";
18
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
19
+ export { Combobox };
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import { Command as CommandPrimitive } from 'cmdk';
3
+ import { Dialog } from './dialog';
4
+ declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): React.JSX.Element;
5
+ declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
6
+ title?: string;
7
+ description?: string;
8
+ className?: string;
9
+ showCloseButton?: boolean;
10
+ }): React.JSX.Element;
11
+ declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): React.JSX.Element;
12
+ declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): React.JSX.Element;
13
+ declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): React.JSX.Element;
14
+ declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): React.JSX.Element;
15
+ declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): React.JSX.Element;
16
+ declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): React.JSX.Element;
17
+ declare function CommandShortcut({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
18
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ import { ContextMenu as ContextMenuPrimitive } from 'radix-ui';
3
+ declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): React.JSX.Element;
4
+ declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): React.JSX.Element;
5
+ declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): React.JSX.Element;
6
+ declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): React.JSX.Element;
7
+ declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): React.JSX.Element;
8
+ declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): React.JSX.Element;
9
+ declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content>): React.JSX.Element;
10
+ declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
11
+ inset?: boolean;
12
+ variant?: 'default' | 'destructive';
13
+ }): React.JSX.Element;
14
+ declare function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem> & {
15
+ inset?: boolean;
16
+ }): React.JSX.Element;
17
+ declare function ContextMenuRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem> & {
18
+ inset?: boolean;
19
+ }): React.JSX.Element;
20
+ declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
21
+ inset?: boolean;
22
+ }): React.JSX.Element;
23
+ declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): React.JSX.Element;
24
+ declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
25
+ declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
26
+ inset?: boolean;
27
+ }): React.JSX.Element;
28
+ declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): React.JSX.Element;
29
+ export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuGroup, ContextMenuPortal, ContextMenuLabel, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubTrigger, ContextMenuSubContent, };
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export interface DatePickerRange {
3
+ from?: Date;
4
+ to?: Date;
5
+ }
6
+ declare const DatePicker: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "onChange" | "value"> & {
7
+ value?: Date;
8
+ onValueChange?: (date: Date) => void;
9
+ /** Renders a range span instead of a single day. Selection stays the caller's. */
10
+ range?: DatePickerRange;
11
+ placeholder?: string;
12
+ /** Formats the trigger label. Keep it on the date's local parts. */
13
+ format?: (date: Date) => string;
14
+ footer?: React.ReactNode;
15
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
16
+ export { DatePicker };
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ declare function DirectionProvider({ dir, children }: {
3
+ dir: 'ltr' | 'rtl';
4
+ children?: React.ReactNode;
5
+ }): React.JSX.Element;
6
+ export { DirectionProvider };
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ import { Label } from './label';
4
+ declare function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>): React.JSX.Element;
5
+ declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<'legend'> & {
6
+ variant?: 'legend' | 'label';
7
+ }): React.JSX.Element;
8
+ declare function FieldGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
9
+ declare const fieldVariants: (props?: ({
10
+ orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ declare function Field({ className, orientation, ...props }: React.ComponentProps<'div'> & VariantProps<typeof fieldVariants>): React.JSX.Element;
13
+ declare function FieldContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
14
+ declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): React.JSX.Element;
15
+ declare function FieldTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
16
+ declare function FieldDescription({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
17
+ declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<'div'> & {
18
+ children?: React.ReactNode;
19
+ }): React.JSX.Element;
20
+ declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<'div'> & {
21
+ errors?: Array<{
22
+ message?: string;
23
+ } | undefined>;
24
+ }): React.JSX.Element | null;
25
+ export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import { HoverCard as HoverCardPrimitive } from 'radix-ui';
3
+ declare function HoverCard({ openDelay, closeDelay, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>): React.JSX.Element;
4
+ declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>): React.JSX.Element;
5
+ declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): React.JSX.Element;
6
+ export { HoverCard, HoverCardTrigger, HoverCardContent };
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ import { Button } from './button';
4
+ declare function InputGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
5
+ declare const inputGroupAddonVariants: (props?: ({
6
+ align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ declare function InputGroupAddon({ className, align, onClick, ...props }: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>): React.JSX.Element;
9
+ declare function InputGroupButton({ type, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
10
+ declare function InputGroupText({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
11
+ declare function InputGroupInput({ className, ...props }: React.ComponentProps<'input'>): React.JSX.Element;
12
+ declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<'textarea'>): React.JSX.Element;
13
+ export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
@@ -0,0 +1,34 @@
1
+ import * as React from 'react';
2
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
3
+ value?: string;
4
+ onChange?: (newValue: string) => unknown;
5
+ maxLength: number;
6
+ textAlign?: "left" | "center" | "right";
7
+ onComplete?: (...args: any[]) => unknown;
8
+ pushPasswordManagerStrategy?: "increase-width" | "none";
9
+ pasteTransformer?: (pasted: string) => string;
10
+ containerClassName?: string;
11
+ noScriptCSSFallback?: string | null;
12
+ } & {
13
+ render: (props: import("input-otp").RenderProps) => React.ReactNode;
14
+ children?: never;
15
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
16
+ value?: string;
17
+ onChange?: (newValue: string) => unknown;
18
+ maxLength: number;
19
+ textAlign?: "left" | "center" | "right";
20
+ onComplete?: (...args: any[]) => unknown;
21
+ pushPasswordManagerStrategy?: "increase-width" | "none";
22
+ pasteTransformer?: (pasted: string) => string;
23
+ containerClassName?: string;
24
+ noScriptCSSFallback?: string | null;
25
+ } & {
26
+ render?: never;
27
+ children: React.ReactNode;
28
+ } & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
29
+ declare function InputOTPGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
30
+ declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
31
+ index: number;
32
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
33
+ declare function InputOTPSeparator({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
34
+ export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
@@ -3,6 +3,4 @@ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProp
3
3
  declare function InputNumeric({ className, ...props }: React.ComponentProps<'input'>): React.JSX.Element;
4
4
  declare function InputField({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
5
5
  declare function InputAction({ className, ...props }: React.ComponentProps<'button'>): React.JSX.Element;
6
- declare function InputGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
7
- declare function InputAffix({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
8
- export { Input, InputNumeric, InputField, InputAction, InputGroup, InputAffix };
6
+ export { Input, InputNumeric, InputField, InputAction };
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ import { Separator } from './separator';
4
+ declare function ItemGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
5
+ declare function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
6
+ declare const itemVariants: (props?: ({
7
+ variant?: "default" | "outline" | "muted" | null | undefined;
8
+ size?: "default" | "sm" | null | undefined;
9
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
+ declare function Item({ className, variant, size, asChild, ...props }: React.ComponentProps<'div'> & VariantProps<typeof itemVariants> & {
11
+ asChild?: boolean;
12
+ }): React.JSX.Element;
13
+ declare const itemMediaVariants: (props?: ({
14
+ variant?: "image" | "default" | "icon" | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
+ declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>): React.JSX.Element;
17
+ declare function ItemContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
18
+ declare function ItemTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
19
+ declare function ItemDescription({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
20
+ declare function ItemActions({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
21
+ declare function ItemHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
22
+ declare function ItemFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
23
+ export { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter, };
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ declare function Kbd({ className, ...props }: React.ComponentProps<'kbd'>): React.JSX.Element;
3
+ declare function KbdGroup({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
4
+ export { Kbd, KbdGroup };
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { Menubar as MenubarPrimitive } from 'radix-ui';
3
+ declare function Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>): React.JSX.Element;
4
+ declare function MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>): React.JSX.Element;
5
+ declare function MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>): React.JSX.Element;
6
+ declare function MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>): React.JSX.Element;
7
+ declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): React.JSX.Element;
8
+ declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>): React.JSX.Element;
9
+ declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Trigger>): React.JSX.Element;
10
+ declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Content>): React.JSX.Element;
11
+ declare function MenubarItem({ className, inset, variant, ...props }: React.ComponentProps<typeof MenubarPrimitive.Item> & {
12
+ inset?: boolean;
13
+ variant?: 'default' | 'destructive';
14
+ }): React.JSX.Element;
15
+ declare function MenubarCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem>): React.JSX.Element;
16
+ declare function MenubarRadioItem({ className, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioItem>): React.JSX.Element;
17
+ declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Label> & {
18
+ inset?: boolean;
19
+ }): React.JSX.Element;
20
+ declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Separator>): React.JSX.Element;
21
+ declare function MenubarShortcut({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
22
+ declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
23
+ inset?: boolean;
24
+ }): React.JSX.Element;
25
+ declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubContent>): React.JSX.Element;
26
+ export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarGroup, MenubarPortal, MenubarLabel, MenubarItem, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubTrigger, MenubarSubContent, };
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ declare const MessageScroller: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
3
+ /** Bump this whenever a message is appended — it is what triggers the stick. */
4
+ revision?: number | string;
5
+ /** Shown on the jump affordance while the reader is away from the bottom. */
6
+ unreadCount?: number;
7
+ /** Label for the jump affordance when no count is given. */
8
+ jumpLabel?: string;
9
+ /** Label when `unreadCount` is set. Override to localise — the built-in
10
+ * default is English with an English plural rule, and it is the form that
11
+ * actually shows once a count exists, so `jumpLabel` alone cannot carry a
12
+ * translation. */
13
+ formatUnread?: (count: number) => string;
14
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ export { MessageScroller };
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { NavigationMenu as NavigationMenuPrimitive } from 'radix-ui';
3
+ declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
4
+ viewport?: boolean;
5
+ }): React.JSX.Element;
6
+ declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.List>): React.JSX.Element;
7
+ declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Item>): React.JSX.Element;
8
+ declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): React.JSX.Element;
9
+ declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Content>): React.JSX.Element;
10
+ declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): React.JSX.Element;
11
+ declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>): React.JSX.Element;
12
+ declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): React.JSX.Element;
13
+ export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, };
@@ -15,6 +15,12 @@ declare function PageHeaderBack({ className, children, ...props }: React.Compone
15
15
  declare function PageHeaderTitle({ className, ...props }: React.ComponentProps<'h1'>): React.JSX.Element;
16
16
  declare function PageHeaderSubtitle({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
17
17
  declare function PageHeaderActions({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
18
+ declare const PageHeaderActivity: React.ForwardRefExoticComponent<Omit<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & import("class-variance-authority").VariantProps<(props?: ({
19
+ variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "tint" | "tint-brand" | "destructive" | "destructive-solid" | "brand" | "dashed" | "pill" | null | undefined;
20
+ size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
21
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
22
+ asChild?: boolean;
23
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
24
  declare function PageHeaderTabs({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
19
25
  declare function PageHeaderTab({ className, selected, ...props }: React.ComponentProps<'button'> & {
20
26
  selected?: boolean;
@@ -24,4 +30,4 @@ declare function ToolbarEnd({ className, ...props }: React.ComponentProps<'div'>
24
30
  declare function ToolbarSeparator({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
25
31
  declare function Breadcrumbs({ className, ...props }: React.ComponentProps<'nav'>): React.JSX.Element;
26
32
  declare function BreadcrumbSeparator({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
27
- export { PageHeader, PageHeaderRow, PageHeaderBack, PageHeaderTitle, PageHeaderSubtitle, PageHeaderActions, PageHeaderTabs, PageHeaderTab, Toolbar, ToolbarEnd, ToolbarSeparator, Breadcrumbs, BreadcrumbSeparator, };
33
+ export { PageHeader, PageHeaderRow, PageHeaderBack, PageHeaderTitle, PageHeaderSubtitle, PageHeaderActions, PageHeaderActivity, PageHeaderTabs, PageHeaderTab, Toolbar, ToolbarEnd, ToolbarSeparator, Breadcrumbs, BreadcrumbSeparator, };
@@ -1,24 +1,43 @@
1
+ export * from './components/accordion';
1
2
  export * from './components/ai';
2
3
  export * from './components/alert';
3
4
  export * from './components/alert-dialog';
5
+ export * from './components/aspect-ratio';
4
6
  export * from './components/avatar';
5
7
  export * from './components/badge';
6
8
  export * from './components/button';
9
+ export * from './components/button-group';
7
10
  export * from './components/calendar';
8
11
  export * from './components/card';
12
+ export * from './components/carousel';
9
13
  export * from './components/chart';
10
14
  export * from './components/checkbox';
15
+ export * from './components/collapsible';
16
+ export * from './components/combobox';
17
+ export * from './components/command';
18
+ export * from './components/context-menu';
11
19
  export * from './components/data-table';
20
+ export * from './components/date-picker';
12
21
  export * from './components/dialog';
22
+ export * from './components/direction';
13
23
  export * from './components/dropdown-menu';
14
24
  export * from './components/empty-state';
25
+ export * from './components/field';
15
26
  export * from './components/file-upload';
27
+ export * from './components/hover-card';
16
28
  export * from './components/input';
29
+ export * from './components/input-group';
30
+ export * from './components/input-otp';
31
+ export * from './components/item';
32
+ export * from './components/kbd';
17
33
  export * from './components/label';
18
34
  export * from './components/list';
19
35
  export * from './components/map';
36
+ export * from './components/menubar';
20
37
  export * from './components/message';
38
+ export * from './components/message-scroller';
21
39
  export * from './components/nav';
40
+ export * from './components/navigation-menu';
22
41
  export * from './components/page-header';
23
42
  export * from './components/popover';
24
43
  export * from './components/progress';