@rise-x/apps-sdk 0.6.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/LICENSE +1 -0
- package/README.md +553 -0
- package/build/_internal.d.ts +2 -0
- package/build/_internal.js +23 -0
- package/build/accessors.d.ts +8 -0
- package/build/accessors.js +40 -0
- package/build/cli/index.d.ts +13 -0
- package/build/cli/index.js +54 -0
- package/build/cli/init.d.ts +6 -0
- package/build/cli/init.js +179 -0
- package/build/cli/templating.d.ts +2 -0
- package/build/cli/templating.js +84 -0
- package/build/connectors/agents.d.ts +85 -0
- package/build/connectors/agents.js +404 -0
- package/build/connectors/assets.d.ts +76 -0
- package/build/connectors/assets.js +204 -0
- package/build/connectors/deps.d.ts +4 -0
- package/build/connectors/deps.js +2 -0
- package/build/connectors/errors.d.ts +11 -0
- package/build/connectors/errors.js +67 -0
- package/build/connectors/flows.d.ts +37 -0
- package/build/connectors/flows.js +191 -0
- package/build/connectors/index.d.ts +8 -0
- package/build/connectors/index.js +50 -0
- package/build/connectors/sse.d.ts +12 -0
- package/build/connectors/sse.js +157 -0
- package/build/connectors/types.d.ts +285 -0
- package/build/connectors/types.js +419 -0
- package/build/connectors/work.d.ts +84 -0
- package/build/connectors/work.js +224 -0
- package/build/hooks.d.ts +4 -0
- package/build/hooks.js +28 -0
- package/build/index.d.ts +6 -0
- package/build/index.js +34 -0
- package/build/lifecycle.d.ts +23 -0
- package/build/lifecycle.js +6 -0
- package/build/mockShell.d.ts +10 -0
- package/build/mockShell.js +55 -0
- package/build/query/agents.d.ts +80 -0
- package/build/query/agents.js +143 -0
- package/build/query/assets.d.ts +73 -0
- package/build/query/assets.js +152 -0
- package/build/query/client.d.ts +5 -0
- package/build/query/client.js +68 -0
- package/build/query/context.d.ts +2 -0
- package/build/query/context.js +34 -0
- package/build/query/flows.d.ts +54 -0
- package/build/query/flows.js +81 -0
- package/build/query/index.d.ts +10 -0
- package/build/query/index.js +85 -0
- package/build/query/keys.d.ts +51 -0
- package/build/query/keys.js +79 -0
- package/build/query/layer.d.ts +175 -0
- package/build/query/layer.js +35 -0
- package/build/query/shared.d.ts +43 -0
- package/build/query/shared.js +116 -0
- package/build/query/work.d.ts +75 -0
- package/build/query/work.js +172 -0
- package/build/shell/index.d.ts +1 -0
- package/build/shell/index.js +6 -0
- package/build/shell/installShellBridge.d.ts +11 -0
- package/build/shell/installShellBridge.js +104 -0
- package/build/shellBridge.d.ts +36 -0
- package/build/shellBridge.js +10 -0
- package/build/topBar.d.ts +25 -0
- package/build/topBar.js +17 -0
- package/build/ui/components/ai.d.ts +49 -0
- package/build/ui/components/alert-dialog.d.ts +27 -0
- package/build/ui/components/alert.d.ts +14 -0
- package/build/ui/components/avatar.d.ts +17 -0
- package/build/ui/components/badge.d.ts +19 -0
- package/build/ui/components/button.d.ts +13 -0
- package/build/ui/components/calendar.d.ts +21 -0
- package/build/ui/components/card.d.ts +16 -0
- package/build/ui/components/chart.d.ts +124 -0
- package/build/ui/components/checkbox.d.ts +4 -0
- package/build/ui/components/data-table.d.ts +70 -0
- package/build/ui/components/dialog.d.ts +17 -0
- package/build/ui/components/dropdown-menu.d.ts +29 -0
- package/build/ui/components/empty-state.d.ts +7 -0
- package/build/ui/components/file-upload.d.ts +17 -0
- package/build/ui/components/input.d.ts +8 -0
- package/build/ui/components/label.d.ts +4 -0
- package/build/ui/components/list.d.ts +24 -0
- package/build/ui/components/map.d.ts +26 -0
- package/build/ui/components/message.d.ts +24 -0
- package/build/ui/components/nav.d.ts +12 -0
- package/build/ui/components/page-header.d.ts +27 -0
- package/build/ui/components/popover.d.ts +10 -0
- package/build/ui/components/progress.d.ts +4 -0
- package/build/ui/components/radio.d.ts +6 -0
- package/build/ui/components/resizable.d.ts +7 -0
- package/build/ui/components/scroll-area.d.ts +5 -0
- package/build/ui/components/segmented.d.ts +6 -0
- package/build/ui/components/select.d.ts +15 -0
- package/build/ui/components/separator.d.ts +4 -0
- package/build/ui/components/sheet.d.ts +14 -0
- package/build/ui/components/skeleton.d.ts +3 -0
- package/build/ui/components/slider.d.ts +15 -0
- package/build/ui/components/snackbar.d.ts +3 -0
- package/build/ui/components/sonner.d.ts +4 -0
- package/build/ui/components/spinner.d.ts +5 -0
- package/build/ui/components/statistic.d.ts +19 -0
- package/build/ui/components/stepper.d.ts +12 -0
- package/build/ui/components/switch.d.ts +6 -0
- package/build/ui/components/table.d.ts +24 -0
- package/build/ui/components/textarea.d.ts +3 -0
- package/build/ui/components/timeline.d.ts +15 -0
- package/build/ui/components/toggle-group.d.ts +10 -0
- package/build/ui/components/toggle.d.ts +9 -0
- package/build/ui/components/tooltip.d.ts +7 -0
- package/build/ui/index.d.ts +46 -0
- package/build/ui/index.js +8 -0
- package/build/ui/lib/utils.d.ts +2 -0
- package/build/ui/reference/README.md +11 -0
- package/build/ui/reference/components/ai.tsx +291 -0
- package/build/ui/reference/components/alert-dialog.tsx +208 -0
- package/build/ui/reference/components/alert.tsx +112 -0
- package/build/ui/reference/components/avatar.tsx +158 -0
- package/build/ui/reference/components/badge.tsx +160 -0
- package/build/ui/reference/components/button.tsx +100 -0
- package/build/ui/reference/components/calendar.tsx +119 -0
- package/build/ui/reference/components/card.tsx +144 -0
- package/build/ui/reference/components/chart.tsx +1394 -0
- package/build/ui/reference/components/checkbox.tsx +44 -0
- package/build/ui/reference/components/data-table.tsx +480 -0
- package/build/ui/reference/components/dialog.tsx +172 -0
- package/build/ui/reference/components/dropdown-menu.tsx +245 -0
- package/build/ui/reference/components/empty-state.tsx +63 -0
- package/build/ui/reference/components/file-upload.tsx +116 -0
- package/build/ui/reference/components/input.tsx +114 -0
- package/build/ui/reference/components/label.tsx +19 -0
- package/build/ui/reference/components/list.tsx +191 -0
- package/build/ui/reference/components/map.css +251 -0
- package/build/ui/reference/components/map.tsx +294 -0
- package/build/ui/reference/components/message.tsx +171 -0
- package/build/ui/reference/components/nav.tsx +113 -0
- package/build/ui/reference/components/page-header.tsx +213 -0
- package/build/ui/reference/components/popover.tsx +76 -0
- package/build/ui/reference/components/progress.tsx +31 -0
- package/build/ui/reference/components/radio.tsx +65 -0
- package/build/ui/reference/components/resizable.tsx +40 -0
- package/build/ui/reference/components/scroll-area.tsx +55 -0
- package/build/ui/reference/components/segmented.tsx +45 -0
- package/build/ui/reference/components/select.tsx +185 -0
- package/build/ui/reference/components/separator.tsx +26 -0
- package/build/ui/reference/components/sheet.tsx +173 -0
- package/build/ui/reference/components/skeleton.tsx +15 -0
- package/build/ui/reference/components/slider.tsx +161 -0
- package/build/ui/reference/components/snackbar.tsx +27 -0
- package/build/ui/reference/components/sonner.tsx +43 -0
- package/build/ui/reference/components/spinner.tsx +27 -0
- package/build/ui/reference/components/statistic.tsx +122 -0
- package/build/ui/reference/components/stepper.tsx +138 -0
- package/build/ui/reference/components/switch.tsx +47 -0
- package/build/ui/reference/components/table.tsx +233 -0
- package/build/ui/reference/components/textarea.tsx +28 -0
- package/build/ui/reference/components/timeline.tsx +94 -0
- package/build/ui/reference/components/toggle-group.tsx +86 -0
- package/build/ui/reference/components/toggle.tsx +46 -0
- package/build/ui/reference/components/tooltip.tsx +53 -0
- package/build/ui/reference/index.ts +49 -0
- package/build/ui/reference/lib/utils.ts +34 -0
- package/build/ui/standalone-stub.js +5 -0
- package/build/ui/standalone.js +135 -0
- package/build/ui/styles.css +3 -0
- package/connectors/package.json +8 -0
- package/package.json +114 -0
- package/query/package.json +8 -0
- package/shell/package.json +8 -0
- package/template/AGENTS.md +70 -0
- package/template/CLAUDE.md +4 -0
- package/template/README.md +102 -0
- package/template/_gitignore +6 -0
- package/template/commitlint.config.js +12 -0
- package/template/package.json +31 -0
- package/template/public/index.html +13 -0
- package/template/src/App.tsx +171 -0
- package/template/src/bootstrap.tsx +13 -0
- package/template/src/index.tsx +1 -0
- package/template/src/lifecycle.ts +20 -0
- package/template/tsconfig.json +31 -0
- package/template/webpack.config.js +112 -0
- package/template/webpack.local.config.js +68 -0
- package/ui/package.json +8 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const cardVariants: (props?: ({
|
|
4
|
+
variant?: "summary" | "status" | "default" | "metric" | "interactive" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
declare function Card({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof cardVariants>): React.JSX.Element;
|
|
7
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
8
|
+
declare const cardGlyphVariants: (props?: ({
|
|
9
|
+
tone?: "warning" | "neutral" | "success" | "error" | "info" | "ai" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
declare function CardGlyph({ className, tone, ...props }: React.ComponentProps<'span'> & VariantProps<typeof cardGlyphVariants>): React.JSX.Element;
|
|
12
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
13
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
14
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
15
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
16
|
+
export { Card, CardHeader, CardGlyph, CardTitle, CardDescription, CardContent, CardFooter, cardVariants, };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const CHART_SERIES: readonly ["var(--chart-1)", "var(--chart-2)", "var(--chart-3)", "var(--chart-4)", "var(--chart-5)", "var(--chart-6)"];
|
|
3
|
+
declare const SEMANTIC_SERIES: {
|
|
4
|
+
readonly success: "var(--success)";
|
|
5
|
+
readonly warning: "var(--warning)";
|
|
6
|
+
readonly error: "var(--error)";
|
|
7
|
+
readonly info: "var(--info)";
|
|
8
|
+
readonly neutral: "var(--neutral)";
|
|
9
|
+
};
|
|
10
|
+
type SemanticTone = keyof typeof SEMANTIC_SERIES;
|
|
11
|
+
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)";
|
|
12
|
+
declare function ChartCard({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
13
|
+
declare function ChartCardHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
14
|
+
declare function ChartCardTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
15
|
+
declare function ChartCardDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
16
|
+
declare function ChartCardActions({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
17
|
+
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
|
+
declare function Sparkline({ values, width, height, tone, className, ...props }: Omit<React.ComponentProps<'div'>, 'children'> & {
|
|
106
|
+
values: number[];
|
|
107
|
+
width?: number;
|
|
108
|
+
height?: number;
|
|
109
|
+
tone?: SemanticTone;
|
|
110
|
+
}): React.JSX.Element;
|
|
111
|
+
declare function ProgressRing({ value, size, thickness, tone, showValue, className, ...props }: Omit<React.ComponentProps<'div'>, 'children'> & {
|
|
112
|
+
value: number;
|
|
113
|
+
size?: number;
|
|
114
|
+
thickness?: number;
|
|
115
|
+
tone?: SemanticTone;
|
|
116
|
+
showValue?: boolean;
|
|
117
|
+
}): 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, };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type Column, type ColumnDef } from '@tanstack/react-table';
|
|
3
|
+
export type { ColumnDef } from '@tanstack/react-table';
|
|
4
|
+
export interface DataTableFilterOption {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
icon?: React.ComponentType<{
|
|
8
|
+
className?: string;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
11
|
+
export interface FacetedFilterOption extends DataTableFilterOption {
|
|
12
|
+
/** Right-aligned tally in the menu — usually how many rows carry this value.
|
|
13
|
+
* Omitted means "not counted", and the tally is left off entirely rather
|
|
14
|
+
* than printed as 0. */
|
|
15
|
+
count?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface FacetedFilterProps {
|
|
18
|
+
title: string;
|
|
19
|
+
options: FacetedFilterOption[];
|
|
20
|
+
/** Applied values — a Set or an array, whichever the caller already holds. */
|
|
21
|
+
selected: Iterable<string>;
|
|
22
|
+
onSelect: (value: string, checked: boolean) => void;
|
|
23
|
+
onClear: () => void;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface DataTableFilter {
|
|
27
|
+
/** Column id (accessorKey) the filter applies to. */
|
|
28
|
+
columnId: string;
|
|
29
|
+
title: string;
|
|
30
|
+
options: DataTableFilterOption[];
|
|
31
|
+
}
|
|
32
|
+
export interface DataTableProps<TData, TValue> {
|
|
33
|
+
columns: ColumnDef<TData, TValue>[];
|
|
34
|
+
data: TData[];
|
|
35
|
+
searchPlaceholder?: string;
|
|
36
|
+
/** Faceted multi-select filters shown in the toolbar. */
|
|
37
|
+
filters?: DataTableFilter[];
|
|
38
|
+
/** Prepends a checkbox column and shows the selection count. */
|
|
39
|
+
enableRowSelection?: boolean;
|
|
40
|
+
onRowClick?: (row: TData) => void;
|
|
41
|
+
/** Extra toolbar content (e.g. a "New item" button), right-aligned. */
|
|
42
|
+
toolbarEnd?: React.ReactNode;
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
/** Sortable column header — pass via `header: ({ column }) => <DataTableColumnHeader …/>`. */
|
|
46
|
+
export declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: {
|
|
47
|
+
column: Column<TData, TValue>;
|
|
48
|
+
title: string;
|
|
49
|
+
className?: string;
|
|
50
|
+
}): React.JSX.Element;
|
|
51
|
+
/**
|
|
52
|
+
* Multi-select filter trigger + menu, with no table attached — for toolbars
|
|
53
|
+
* that filter something other than a DataTable. State is the caller's:
|
|
54
|
+
* `selected` in, `onSelect`/`onClear` out. DataTableFacetedFilter is this
|
|
55
|
+
* component wired to a TanStack column.
|
|
56
|
+
*/
|
|
57
|
+
export declare function FacetedFilter({ title, options, selected: selectedValues, onSelect, onClear, className, }: FacetedFilterProps): React.JSX.Element;
|
|
58
|
+
/** FacetedFilter bound to a TanStack column: facet counts and the filter value
|
|
59
|
+
* come from the table, so the toolbar only names the column. */
|
|
60
|
+
export declare function DataTableFacetedFilter<TData>({ column, title, options, }: {
|
|
61
|
+
column: Column<TData, unknown>;
|
|
62
|
+
title: string;
|
|
63
|
+
options: DataTableFilterOption[];
|
|
64
|
+
}): React.JSX.Element;
|
|
65
|
+
/**
|
|
66
|
+
* Rise-X data table: search, faceted filters and column visibility are built
|
|
67
|
+
* in — every table ships with the full toolbar. Sorting via
|
|
68
|
+
* DataTableColumnHeader, optional row selection and row-click handling.
|
|
69
|
+
*/
|
|
70
|
+
export declare function DataTable<TData, TValue>({ columns, data, searchPlaceholder, filters, enableRowSelection, onRowClick, toolbarEnd, className, }: DataTableProps<TData, TValue>): React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
3
|
+
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
|
|
6
|
+
declare const DialogClose: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const DialogHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const DialogFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
+
showCloseButton?: boolean;
|
|
14
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
16
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
17
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
|
|
3
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React.JSX.Element;
|
|
5
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function DropdownMenuContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React.JSX.Element;
|
|
7
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): React.JSX.Element;
|
|
8
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
9
|
+
inset?: boolean;
|
|
10
|
+
variant?: 'default' | 'destructive';
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem> & {
|
|
13
|
+
inset?: boolean;
|
|
14
|
+
}): React.JSX.Element;
|
|
15
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React.JSX.Element;
|
|
16
|
+
declare function DropdownMenuRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem> & {
|
|
17
|
+
inset?: boolean;
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
20
|
+
inset?: boolean;
|
|
21
|
+
}): React.JSX.Element;
|
|
22
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
|
|
23
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
24
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React.JSX.Element;
|
|
25
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
26
|
+
inset?: boolean;
|
|
27
|
+
}): React.JSX.Element;
|
|
28
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React.JSX.Element;
|
|
29
|
+
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function EmptyState({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
3
|
+
declare function EmptyStateGlyph({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
4
|
+
declare function EmptyStateTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
5
|
+
declare function EmptyStateDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
6
|
+
declare function EmptyStateActions({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
7
|
+
export { EmptyState, EmptyStateGlyph, EmptyStateTitle, EmptyStateDescription, EmptyStateActions };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function FileDrop({ className, active, ...props }: React.ComponentProps<'div'> & {
|
|
3
|
+
active?: boolean;
|
|
4
|
+
}): React.JSX.Element;
|
|
5
|
+
declare function FileDropGlyph({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
6
|
+
declare function FileCard({ className, glyph, name, meta, action, ...props }: React.ComponentProps<'div'> & {
|
|
7
|
+
glyph?: React.ReactNode;
|
|
8
|
+
name: React.ReactNode;
|
|
9
|
+
meta?: React.ReactNode;
|
|
10
|
+
action?: React.ReactNode;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
declare function AttachmentList({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
13
|
+
declare function MediaThumb({ className, size, ...props }: React.ComponentProps<'div'> & {
|
|
14
|
+
size?: number;
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
declare function MediaGallery({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
17
|
+
export { FileDrop, FileDropGlyph, FileCard, AttachmentList, MediaThumb, MediaGallery };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
3
|
+
declare function InputNumeric({ className, ...props }: React.ComponentProps<'input'>): React.JSX.Element;
|
|
4
|
+
declare function InputField({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
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 };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function List({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
3
|
+
declare function ListItem({ className, rich, ...props }: React.ComponentProps<'div'> & {
|
|
4
|
+
/** Two-line item: aligns to the top and adds room for a description. */
|
|
5
|
+
rich?: boolean;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
declare function ListMain({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
8
|
+
declare function ListName({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
9
|
+
declare function ListMeta({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
10
|
+
declare function ListDescription({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
11
|
+
declare function ListValue({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
12
|
+
declare function GroupedList({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
13
|
+
declare function GroupedListRow({ className, icon, iconClassName, ...props }: React.ComponentProps<'button'> & {
|
|
14
|
+
/** Just the glyph. The component owns the tile — passing a wrapper of your own
|
|
15
|
+
* nests a tile inside a tile and the icon-sizing selector stops matching. */
|
|
16
|
+
icon?: React.ReactNode;
|
|
17
|
+
/** Tile background, e.g. "bg-chart-1". */
|
|
18
|
+
iconClassName?: string;
|
|
19
|
+
}): React.JSX.Element;
|
|
20
|
+
declare function GroupedListLabel({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
21
|
+
declare function GroupedListValue({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
22
|
+
declare function GroupedListHeading({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
23
|
+
declare function GroupedListFootnote({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
24
|
+
export { List, ListItem, ListMain, ListName, ListMeta, ListDescription, ListValue, GroupedList, GroupedListRow, GroupedListLabel, GroupedListValue, GroupedListHeading, GroupedListFootnote, };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DivIconOptions, LatLngBoundsExpression, LatLngExpression, Map as LeafletMap, MapOptions, TileLayerOptions } from 'leaflet';
|
|
3
|
+
type MapTilePreset = 'light' | 'dark' | 'streets' | 'satellite';
|
|
4
|
+
type MapTileSpec = TileLayerOptions & {
|
|
5
|
+
url: string;
|
|
6
|
+
};
|
|
7
|
+
declare const MAP_TILES: Record<MapTilePreset, MapTileSpec>;
|
|
8
|
+
type MapPinTone = 'default' | 'brand' | 'success' | 'warning' | 'error' | 'info';
|
|
9
|
+
type MapPinOptions = {
|
|
10
|
+
tone?: MapPinTone;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare function mapPin({ tone, selected }?: MapPinOptions): DivIconOptions;
|
|
14
|
+
type MapViewProps = React.ComponentProps<'div'> & {
|
|
15
|
+
center?: LatLngExpression;
|
|
16
|
+
zoom?: number;
|
|
17
|
+
bounds?: LatLngBoundsExpression;
|
|
18
|
+
boundsPadding?: number;
|
|
19
|
+
tiles?: 'auto' | MapTilePreset | MapTileSpec | null;
|
|
20
|
+
interactive?: boolean;
|
|
21
|
+
options?: MapOptions;
|
|
22
|
+
onReady?: (map: LeafletMap, leaflet: typeof import('leaflet')) => void;
|
|
23
|
+
};
|
|
24
|
+
declare const MapView: React.ForwardRefExoticComponent<Omit<MapViewProps, "ref"> & React.RefAttributes<LeafletMap | null>>;
|
|
25
|
+
export { MapView, MAP_TILES, mapPin };
|
|
26
|
+
export type { MapViewProps, MapTilePreset, MapTileSpec, MapPinOptions, MapPinTone };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FileCard } from './file-upload';
|
|
3
|
+
declare function MessageGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
4
|
+
declare function Message({ className, align, ...props }: React.ComponentProps<'div'> & {
|
|
5
|
+
align?: 'start' | 'end';
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
declare function MessageAvatar({ className, align, ...props }: React.ComponentProps<'div'> & {
|
|
8
|
+
align?: 'start' | 'end';
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
declare function MessageHeader({ className, align, ...props }: React.ComponentProps<'div'> & {
|
|
11
|
+
align?: 'start' | 'end';
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
declare function MessageBody({ className, align, ...props }: React.ComponentProps<'div'> & {
|
|
14
|
+
align?: 'start' | 'end';
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
declare function MessageBubble({ className, variant, ...props }: React.ComponentProps<'div'> & {
|
|
17
|
+
variant?: 'default' | 'user' | 'ai';
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
declare function MessageFooter({ className, align, ...props }: React.ComponentProps<'div'> & {
|
|
20
|
+
align?: 'start' | 'end';
|
|
21
|
+
}): React.JSX.Element;
|
|
22
|
+
declare function MessageAttachments({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
23
|
+
declare function MessageAttachment({ className, ...props }: React.ComponentProps<typeof FileCard>): React.JSX.Element;
|
|
24
|
+
export { MessageGroup, Message, MessageAvatar, MessageHeader, MessageBody, MessageBubble, MessageFooter, MessageAttachments, MessageAttachment, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function Nav({ className, ...props }: React.ComponentProps<'nav'>): React.JSX.Element;
|
|
3
|
+
declare function NavItem({ className, current, ...props }: React.ComponentProps<'button'> & {
|
|
4
|
+
current?: boolean;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
declare function NavSection({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
7
|
+
declare function Panel({ className, ...props }: React.ComponentProps<'aside'>): React.JSX.Element;
|
|
8
|
+
declare function PanelHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
9
|
+
declare function PanelTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
10
|
+
declare function PanelBody({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
11
|
+
declare function PanelFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
12
|
+
export { Nav, NavItem, NavSection, Panel, PanelHeader, PanelTitle, PanelBody, PanelFooter };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function PageHeader({ className, variant, ...props }: React.ComponentProps<'header'> & {
|
|
3
|
+
/**
|
|
4
|
+
* `card` — a white band with a bottom rule, for headers that own tabs.
|
|
5
|
+
* `bare` — sits directly ON the page background with no surface and no rule,
|
|
6
|
+
* so the content below can be a set of white tiles (metrics, tables, cards).
|
|
7
|
+
* Use this whenever the page is a dashboard rather than a single document:
|
|
8
|
+
* a white header above white tiles produces two stacked surfaces with a seam
|
|
9
|
+
* between them and nothing gained.
|
|
10
|
+
*/
|
|
11
|
+
variant?: 'card' | 'bare';
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
declare function PageHeaderRow({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
14
|
+
declare function PageHeaderBack({ className, children, ...props }: React.ComponentProps<'button'>): React.JSX.Element;
|
|
15
|
+
declare function PageHeaderTitle({ className, ...props }: React.ComponentProps<'h1'>): React.JSX.Element;
|
|
16
|
+
declare function PageHeaderSubtitle({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
|
|
17
|
+
declare function PageHeaderActions({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
18
|
+
declare function PageHeaderTabs({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
19
|
+
declare function PageHeaderTab({ className, selected, ...props }: React.ComponentProps<'button'> & {
|
|
20
|
+
selected?: boolean;
|
|
21
|
+
}): React.JSX.Element;
|
|
22
|
+
declare function Toolbar({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
23
|
+
declare function ToolbarEnd({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
24
|
+
declare function ToolbarSeparator({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
25
|
+
declare function Breadcrumbs({ className, ...props }: React.ComponentProps<'nav'>): React.JSX.Element;
|
|
26
|
+
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, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): React.JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): React.JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): React.JSX.Element;
|
|
7
|
+
declare function PopoverHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
8
|
+
declare function PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>): React.JSX.Element;
|
|
9
|
+
declare function PopoverDescription({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
|
|
10
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { RadioGroup as RadioGroupPrimitive } from 'radix-ui';
|
|
3
|
+
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function Radio({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): React.JSX.Element;
|
|
5
|
+
declare function ChoiceRow({ className, ...props }: React.ComponentProps<'label'>): React.JSX.Element;
|
|
6
|
+
export { RadioGroup, Radio, ChoiceRow };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
2
|
+
declare function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps): import("react").JSX.Element;
|
|
3
|
+
declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): import("react").JSX.Element;
|
|
4
|
+
declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
|
|
5
|
+
withHandle?: boolean;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';
|
|
3
|
+
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): React.JSX.Element;
|
|
5
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function Segmented({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
3
|
+
declare function SegmentedItem({ className, selected, ...props }: React.ComponentProps<'button'> & {
|
|
4
|
+
selected?: boolean;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export { Segmented, SegmentedItem };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Select as SelectPrimitive } from 'radix-ui';
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function SelectGroup({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): React.JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): React.JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: 'sm' | 'default';
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): React.JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): React.JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): React.JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): React.JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): React.JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): React.JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Dialog as SheetPrimitive } from 'radix-ui';
|
|
3
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const SheetClose: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const SheetContent: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
7
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
8
|
+
showCloseButton?: boolean;
|
|
9
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SheetHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const SheetFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
13
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
14
|
+
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Slider as SliderPrimitive } from 'radix-ui';
|
|
3
|
+
declare function Slider({ className, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function Rating({ value, max, className, onRate, ...props }: Omit<React.ComponentProps<'span'>, 'children'> & {
|
|
5
|
+
value: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
onRate?: (value: number) => void;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
declare function StepperInput({ className, value, onValueChange, min, max, ...props }: Omit<React.ComponentProps<'span'>, 'children' | 'onChange'> & {
|
|
10
|
+
value: number;
|
|
11
|
+
onValueChange?: (value: number) => void;
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
}): React.JSX.Element;
|
|
15
|
+
export { Slider, Rating, StepperInput };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare function Statistic({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
4
|
+
declare function StatisticLabel({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
5
|
+
declare function StatisticValue({ className, size, ...props }: React.ComponentProps<'div'> & {
|
|
6
|
+
size?: 'sm' | 'default' | 'lg';
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
declare function StatisticCaption({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
9
|
+
declare const trendVariants: (props?: ({
|
|
10
|
+
direction?: "flat" | "up" | "down" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
|
+
declare function Trend({ className, direction, ...props }: React.ComponentProps<'span'> & VariantProps<typeof trendVariants>): React.JSX.Element;
|
|
13
|
+
declare const meterVariants: (props?: ({
|
|
14
|
+
tone?: "warning" | "neutral" | "success" | "error" | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
+
declare function Meter({ className, tone, value, ...props }: Omit<React.ComponentProps<'div'>, 'children'> & VariantProps<typeof meterVariants> & {
|
|
17
|
+
value: number;
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
export { Statistic, StatisticLabel, StatisticValue, StatisticCaption, Trend, Meter, trendVariants };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function Steps({ className, children, ...props }: React.ComponentProps<'ol'>): React.JSX.Element;
|
|
3
|
+
type StepState = 'done' | 'current' | 'ahead';
|
|
4
|
+
declare function Step({ className, state, index, children, ...props }: React.ComponentProps<'li'> & {
|
|
5
|
+
state?: StepState;
|
|
6
|
+
/** 1-based number shown when the step is not complete. */
|
|
7
|
+
index?: number;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
declare function WizardBar({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
10
|
+
declare function WizardMeta({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
11
|
+
declare function WizardEnd({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
12
|
+
export { Steps, Step, WizardBar, WizardMeta, WizardEnd, type StepState };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Switch as SwitchPrimitive } from 'radix-ui';
|
|
3
|
+
declare function Switch({ className, size, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
4
|
+
size?: 'sm' | 'default';
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export { Switch };
|