@alpic-ai/ui 0.0.0-dev.g20a247a → 0.0.0-dev.g20fd91c
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/accordion-card.d.mts +5 -5
- package/dist/components/accordion.d.mts +5 -5
- package/dist/components/alert.d.mts +8 -8
- package/dist/components/area-chart.d.mts +64 -0
- package/dist/components/area-chart.mjs +275 -0
- package/dist/components/attachment-tile.d.mts +1 -1
- package/dist/components/avatar.d.mts +7 -7
- package/dist/components/badge.d.mts +1 -1
- package/dist/components/bar-chart.d.mts +50 -0
- package/dist/components/bar-chart.mjs +262 -0
- package/dist/components/bar-list.d.mts +31 -0
- package/dist/components/bar-list.mjs +111 -0
- package/dist/components/breadcrumb.d.mts +10 -10
- package/dist/components/button.d.mts +5 -5
- package/dist/components/card.d.mts +9 -9
- package/dist/components/chart-card.d.mts +25 -0
- package/dist/components/chart-card.mjs +48 -0
- package/dist/components/chart-container.d.mts +20 -0
- package/dist/components/chart-container.mjs +37 -0
- package/dist/components/chart-legend.d.mts +21 -0
- package/dist/components/chart-legend.mjs +35 -0
- package/dist/components/chart-tooltip.d.mts +33 -0
- package/dist/components/chart-tooltip.mjs +52 -0
- package/dist/components/checkbox.d.mts +2 -2
- package/dist/components/collapsible.d.mts +4 -4
- package/dist/components/combobox.d.mts +10 -10
- package/dist/components/command.d.mts +9 -9
- package/dist/components/copyable.d.mts +2 -2
- package/dist/components/description-list.d.mts +5 -5
- package/dist/components/dialog.d.mts +13 -13
- package/dist/components/donut-chart.d.mts +46 -0
- package/dist/components/donut-chart.mjs +189 -0
- package/dist/components/dropdown-menu.d.mts +17 -17
- package/dist/components/form.d.mts +18 -18
- package/dist/components/form.mjs +7 -7
- package/dist/components/github-button.d.mts +1 -1
- package/dist/components/heatmap-chart.d.mts +48 -0
- package/dist/components/heatmap-chart.mjs +229 -0
- package/dist/components/input-group.d.mts +4 -4
- package/dist/components/input.d.mts +4 -4
- package/dist/components/input.mjs +2 -2
- package/dist/components/label.d.mts +2 -2
- package/dist/components/line-chart.d.mts +57 -0
- package/dist/components/line-chart.mjs +218 -0
- package/dist/components/page-loader.d.mts +1 -1
- package/dist/components/pagination.d.mts +3 -3
- package/dist/components/popover.d.mts +5 -5
- package/dist/components/radio-group.d.mts +3 -3
- package/dist/components/scroll-area.d.mts +3 -3
- package/dist/components/select.d.mts +9 -9
- package/dist/components/separator.d.mts +2 -2
- package/dist/components/sheet.d.mts +11 -11
- package/dist/components/shimmer-text.d.mts +3 -1
- package/dist/components/sidebar.d.mts +33 -33
- package/dist/components/sidebar.mjs +10 -10
- package/dist/components/skeleton.d.mts +1 -1
- package/dist/components/sonner.d.mts +5 -5
- package/dist/components/spinner.d.mts +2 -2
- package/dist/components/stat.d.mts +32 -0
- package/dist/components/stat.mjs +117 -0
- package/dist/components/status-dot.d.mts +1 -1
- package/dist/components/switch.d.mts +2 -2
- package/dist/components/table.d.mts +10 -10
- package/dist/components/tabs.d.mts +10 -10
- package/dist/components/tag.d.mts +3 -3
- package/dist/components/task-progress.d.mts +1 -1
- package/dist/components/textarea.d.mts +3 -3
- package/dist/components/textarea.mjs +3 -3
- package/dist/components/toggle-group.d.mts +3 -3
- package/dist/components/toggle-group.mjs +3 -3
- package/dist/components/tooltip.d.mts +5 -5
- package/dist/components/typography.d.mts +4 -4
- package/dist/components/wizard.d.mts +4 -22
- package/dist/components/wizard.mjs +1 -19
- package/dist/hooks/use-chart-theme.d.mts +18 -0
- package/dist/hooks/use-chart-theme.mjs +57 -0
- package/dist/hooks/use-mobile.mjs +3 -3
- package/dist/hooks/use-reduced-motion.d.mts +4 -0
- package/dist/hooks/use-reduced-motion.mjs +16 -0
- package/dist/lib/chart-palette.d.mts +4 -0
- package/dist/lib/chart-palette.mjs +95 -0
- package/dist/lib/chart.d.mts +14 -0
- package/dist/lib/chart.mjs +42 -0
- package/package.json +30 -29
- package/src/components/area-chart.tsx +347 -0
- package/src/components/bar-chart.tsx +317 -0
- package/src/components/bar-list.tsx +166 -0
- package/src/components/chart-card.tsx +65 -0
- package/src/components/chart-container.tsx +51 -0
- package/src/components/chart-legend.tsx +49 -0
- package/src/components/chart-tooltip.tsx +93 -0
- package/src/components/donut-chart.tsx +217 -0
- package/src/components/form.tsx +1 -1
- package/src/components/heatmap-chart.tsx +331 -0
- package/src/components/line-chart.tsx +277 -0
- package/src/components/stat.tsx +113 -0
- package/src/components/textarea.tsx +1 -1
- package/src/components/wizard.tsx +1 -35
- package/src/hooks/use-chart-theme.ts +75 -0
- package/src/hooks/use-reduced-motion.ts +17 -0
- package/src/lib/chart-palette.ts +110 -0
- package/src/lib/chart.ts +90 -0
- package/src/stories/area-chart.stories.tsx +198 -0
- package/src/stories/bar-chart.stories.tsx +167 -0
- package/src/stories/bar-list.stories.tsx +83 -0
- package/src/stories/donut-chart.stories.tsx +110 -0
- package/src/stories/heatmap-chart.stories.tsx +105 -0
- package/src/stories/line-chart.stories.tsx +144 -0
- package/src/stories/stat.stories.tsx +64 -0
- package/src/stories/textarea.stories.tsx +7 -0
- package/src/stories/wizard.stories.tsx +23 -5
- package/src/styles/tokens.css +18 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ChartSeries } from "../lib/chart.mjs";
|
|
2
|
+
import { ChartPaletteName } from "../lib/chart-palette.mjs";
|
|
3
|
+
import { ChartMarker } from "./area-chart.mjs";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/line-chart.d.ts
|
|
7
|
+
declare const CURVE_TYPE: {
|
|
8
|
+
readonly monotone: "monotone";
|
|
9
|
+
readonly linear: "linear";
|
|
10
|
+
readonly step: "stepAfter";
|
|
11
|
+
};
|
|
12
|
+
interface LineChartProps {
|
|
13
|
+
data: ReadonlyArray<Record<string, string | number | null | undefined>>;
|
|
14
|
+
index: string;
|
|
15
|
+
series: ChartSeries[];
|
|
16
|
+
curve?: keyof typeof CURVE_TYPE;
|
|
17
|
+
legend?: boolean;
|
|
18
|
+
legendAlign?: "left" | "center" | "right";
|
|
19
|
+
valueFlags?: boolean;
|
|
20
|
+
dots?: boolean;
|
|
21
|
+
height?: number;
|
|
22
|
+
yAxisWidth?: number;
|
|
23
|
+
palette?: ChartPaletteName;
|
|
24
|
+
referenceLine?: {
|
|
25
|
+
y: number;
|
|
26
|
+
label?: string;
|
|
27
|
+
band?: boolean;
|
|
28
|
+
};
|
|
29
|
+
markers?: ChartMarker[];
|
|
30
|
+
lastValueLabel?: boolean;
|
|
31
|
+
loading?: boolean;
|
|
32
|
+
valueFormatter?: (value: number) => string;
|
|
33
|
+
labelFormatter?: (label: string | number) => string;
|
|
34
|
+
className?: string;
|
|
35
|
+
}
|
|
36
|
+
declare function LineChart({
|
|
37
|
+
data,
|
|
38
|
+
index,
|
|
39
|
+
series,
|
|
40
|
+
curve,
|
|
41
|
+
legend,
|
|
42
|
+
legendAlign,
|
|
43
|
+
valueFlags,
|
|
44
|
+
dots,
|
|
45
|
+
height,
|
|
46
|
+
yAxisWidth,
|
|
47
|
+
palette,
|
|
48
|
+
referenceLine,
|
|
49
|
+
markers,
|
|
50
|
+
lastValueLabel,
|
|
51
|
+
loading,
|
|
52
|
+
valueFormatter,
|
|
53
|
+
labelFormatter,
|
|
54
|
+
className
|
|
55
|
+
}: LineChartProps): React$1.JSX.Element;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { LineChart, LineChartProps };
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../lib/cn.mjs";
|
|
3
|
+
import { useReducedMotion } from "../hooks/use-reduced-motion.mjs";
|
|
4
|
+
import { makeXAxisTick, resolveSeries } from "../lib/chart.mjs";
|
|
5
|
+
import { useChartContext } from "./chart-container.mjs";
|
|
6
|
+
import { ChartLegend } from "./chart-legend.mjs";
|
|
7
|
+
import { ChartTooltipContent } from "./chart-tooltip.mjs";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import * as React$1 from "react";
|
|
10
|
+
import { CartesianGrid, LabelList, Line, LineChart as LineChart$1, ReferenceArea, ReferenceDot, ReferenceLine, ResponsiveContainer, Tooltip, XAxis, YAxis } from "recharts";
|
|
11
|
+
//#region src/components/line-chart.tsx
|
|
12
|
+
const CURVE_TYPE = {
|
|
13
|
+
monotone: "monotone",
|
|
14
|
+
linear: "linear",
|
|
15
|
+
step: "stepAfter"
|
|
16
|
+
};
|
|
17
|
+
function LineChart({ data, index, series, curve = "monotone", legend = false, legendAlign = "left", valueFlags = false, dots = false, height = 200, yAxisWidth = 48, palette, referenceLine, markers, lastValueLabel = false, loading = false, valueFormatter = (value) => value.toLocaleString("en-US"), labelFormatter, className }) {
|
|
18
|
+
const { palette: paletteColors, theme } = useChartContext(palette);
|
|
19
|
+
const animated = !useReducedMotion();
|
|
20
|
+
const resolved = resolveSeries(series, paletteColors, theme);
|
|
21
|
+
const numericMax = React$1.useMemo(() => {
|
|
22
|
+
let max = 0;
|
|
23
|
+
for (const row of data) for (const entry of series) {
|
|
24
|
+
const value = Number(row[entry.key]);
|
|
25
|
+
if (Number.isFinite(value) && value > max) max = value;
|
|
26
|
+
}
|
|
27
|
+
return max;
|
|
28
|
+
}, [data, series]);
|
|
29
|
+
const curveType = CURVE_TYPE[curve];
|
|
30
|
+
const margin = {
|
|
31
|
+
top: markers?.length ? 18 : 8,
|
|
32
|
+
right: lastValueLabel ? 56 : 8,
|
|
33
|
+
bottom: 2,
|
|
34
|
+
left: 0
|
|
35
|
+
};
|
|
36
|
+
const axis = {
|
|
37
|
+
stroke: theme.border,
|
|
38
|
+
tick: {
|
|
39
|
+
fill: theme.axisForeground,
|
|
40
|
+
fontSize: 10,
|
|
41
|
+
fontFamily: theme.fontMono
|
|
42
|
+
},
|
|
43
|
+
tickLine: false,
|
|
44
|
+
axisLine: {
|
|
45
|
+
stroke: theme.border,
|
|
46
|
+
strokeOpacity: .6
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const legendItems = resolved.map((entry) => ({
|
|
50
|
+
name: entry.name,
|
|
51
|
+
color: entry.color,
|
|
52
|
+
dashed: entry.dashed
|
|
53
|
+
}));
|
|
54
|
+
const activeDotFor = (entry) => valueFlags ? (dotProps) => {
|
|
55
|
+
if (dotProps.cx == null || dotProps.cy == null) return /* @__PURE__ */ jsx("g", {});
|
|
56
|
+
return /* @__PURE__ */ jsxs("g", { children: [/* @__PURE__ */ jsx("circle", {
|
|
57
|
+
cx: dotProps.cx,
|
|
58
|
+
cy: dotProps.cy,
|
|
59
|
+
r: 3.5,
|
|
60
|
+
fill: entry.color,
|
|
61
|
+
stroke: theme.card,
|
|
62
|
+
strokeWidth: 2
|
|
63
|
+
}), /* @__PURE__ */ jsx("text", {
|
|
64
|
+
x: dotProps.cx,
|
|
65
|
+
y: dotProps.cy - 8,
|
|
66
|
+
textAnchor: "middle",
|
|
67
|
+
fill: entry.color,
|
|
68
|
+
fontFamily: theme.fontMono,
|
|
69
|
+
fontSize: 10,
|
|
70
|
+
style: { fontVariantNumeric: "tabular-nums" },
|
|
71
|
+
children: valueFormatter(Number(dotProps.value ?? 0))
|
|
72
|
+
})] });
|
|
73
|
+
} : {
|
|
74
|
+
r: 3.5,
|
|
75
|
+
fill: entry.color,
|
|
76
|
+
stroke: theme.card,
|
|
77
|
+
strokeWidth: 2
|
|
78
|
+
};
|
|
79
|
+
const renderLastLabel = (color) => (props) => {
|
|
80
|
+
if (props.index !== data.length - 1 || props.x == null || props.y == null) return null;
|
|
81
|
+
return /* @__PURE__ */ jsx("text", {
|
|
82
|
+
x: Number(props.x) + 6,
|
|
83
|
+
y: Number(props.y),
|
|
84
|
+
dy: 3,
|
|
85
|
+
fill: color,
|
|
86
|
+
fontFamily: theme.fontMono,
|
|
87
|
+
fontSize: 10,
|
|
88
|
+
textAnchor: "start",
|
|
89
|
+
style: { fontVariantNumeric: "tabular-nums" },
|
|
90
|
+
children: valueFormatter(Number(props.value ?? 0))
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
const isEmpty = data.length === 0 || resolved.length === 0;
|
|
94
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
95
|
+
"data-slot": "line-chart",
|
|
96
|
+
className: cn("flex w-full flex-col gap-3", className),
|
|
97
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
98
|
+
className: "w-full",
|
|
99
|
+
style: { height },
|
|
100
|
+
children: loading ? /* @__PURE__ */ jsxs("div", {
|
|
101
|
+
className: "flex h-full items-center justify-center gap-2.5 font-mono text-quaternary-foreground text-text-xs",
|
|
102
|
+
children: [/* @__PURE__ */ jsx("span", { className: "size-4 animate-spin rounded-full border-2 border-border border-t-foreground" }), "loading…"]
|
|
103
|
+
}) : isEmpty ? /* @__PURE__ */ jsx("div", {
|
|
104
|
+
className: "flex h-full items-center justify-center rounded-lg border border-border border-dashed font-mono text-quaternary-foreground text-text-xs",
|
|
105
|
+
children: "no data in range"
|
|
106
|
+
}) : /* @__PURE__ */ jsx(ResponsiveContainer, {
|
|
107
|
+
width: "100%",
|
|
108
|
+
height: "100%",
|
|
109
|
+
initialDimension: {
|
|
110
|
+
width: 0,
|
|
111
|
+
height
|
|
112
|
+
},
|
|
113
|
+
children: /* @__PURE__ */ jsxs(LineChart$1, {
|
|
114
|
+
data,
|
|
115
|
+
margin,
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ jsx(CartesianGrid, {
|
|
118
|
+
vertical: false,
|
|
119
|
+
stroke: theme.grid,
|
|
120
|
+
strokeDasharray: "2 4"
|
|
121
|
+
}),
|
|
122
|
+
/* @__PURE__ */ jsx(XAxis, {
|
|
123
|
+
dataKey: index,
|
|
124
|
+
...axis,
|
|
125
|
+
tick: makeXAxisTick(theme),
|
|
126
|
+
interval: "preserveStartEnd",
|
|
127
|
+
minTickGap: 44
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ jsx(YAxis, {
|
|
130
|
+
...axis,
|
|
131
|
+
width: yAxisWidth,
|
|
132
|
+
domain: ["auto", "auto"],
|
|
133
|
+
tickFormatter: (value) => valueFormatter(value)
|
|
134
|
+
}),
|
|
135
|
+
/* @__PURE__ */ jsx(Tooltip, {
|
|
136
|
+
offset: 12,
|
|
137
|
+
allowEscapeViewBox: {
|
|
138
|
+
x: false,
|
|
139
|
+
y: false
|
|
140
|
+
},
|
|
141
|
+
cursor: {
|
|
142
|
+
stroke: theme.axisForeground,
|
|
143
|
+
strokeWidth: 1,
|
|
144
|
+
strokeDasharray: "3 3"
|
|
145
|
+
},
|
|
146
|
+
content: /* @__PURE__ */ jsx(ChartTooltipContent, {
|
|
147
|
+
valueFormatter,
|
|
148
|
+
labelFormatter
|
|
149
|
+
})
|
|
150
|
+
}),
|
|
151
|
+
referenceLine?.band && /* @__PURE__ */ jsx(ReferenceArea, {
|
|
152
|
+
y1: referenceLine.y,
|
|
153
|
+
y2: numericMax,
|
|
154
|
+
fill: theme.warning,
|
|
155
|
+
fillOpacity: .06,
|
|
156
|
+
ifOverflow: "extendDomain"
|
|
157
|
+
}),
|
|
158
|
+
referenceLine && /* @__PURE__ */ jsx(ReferenceLine, {
|
|
159
|
+
y: referenceLine.y,
|
|
160
|
+
stroke: theme.warning,
|
|
161
|
+
strokeDasharray: "4 4",
|
|
162
|
+
strokeOpacity: .6,
|
|
163
|
+
label: referenceLine.label ? {
|
|
164
|
+
value: referenceLine.label,
|
|
165
|
+
fill: theme.warning,
|
|
166
|
+
fontSize: 9,
|
|
167
|
+
fontFamily: theme.fontMono,
|
|
168
|
+
position: "insideBottomRight"
|
|
169
|
+
} : void 0
|
|
170
|
+
}),
|
|
171
|
+
resolved.map((entry) => /* @__PURE__ */ jsx(Line, {
|
|
172
|
+
type: curveType,
|
|
173
|
+
dataKey: entry.key,
|
|
174
|
+
name: entry.name,
|
|
175
|
+
stroke: entry.color,
|
|
176
|
+
strokeWidth: entry.dashed ? 2 : 1.8,
|
|
177
|
+
strokeDasharray: entry.dashed ? "5 3" : void 0,
|
|
178
|
+
dot: dots ? {
|
|
179
|
+
r: 2.5,
|
|
180
|
+
fill: entry.color,
|
|
181
|
+
strokeWidth: 0
|
|
182
|
+
} : false,
|
|
183
|
+
activeDot: activeDotFor(entry),
|
|
184
|
+
isAnimationActive: animated,
|
|
185
|
+
animationDuration: 650,
|
|
186
|
+
animationEasing: "ease-out",
|
|
187
|
+
children: lastValueLabel && /* @__PURE__ */ jsx(LabelList, {
|
|
188
|
+
dataKey: entry.key,
|
|
189
|
+
content: renderLastLabel(entry.color)
|
|
190
|
+
})
|
|
191
|
+
}, entry.key)),
|
|
192
|
+
markers?.map((marker) => /* @__PURE__ */ jsx(ReferenceDot, {
|
|
193
|
+
x: marker.x,
|
|
194
|
+
y: marker.y,
|
|
195
|
+
r: 3.5,
|
|
196
|
+
fill: marker.color ?? theme.foreground,
|
|
197
|
+
stroke: theme.card,
|
|
198
|
+
strokeWidth: 2,
|
|
199
|
+
label: marker.label ? {
|
|
200
|
+
value: marker.label,
|
|
201
|
+
fill: marker.color ?? theme.foreground,
|
|
202
|
+
fontSize: 9,
|
|
203
|
+
fontFamily: theme.fontMono,
|
|
204
|
+
position: "top"
|
|
205
|
+
} : void 0
|
|
206
|
+
}, `${marker.x}-${marker.y}`))
|
|
207
|
+
]
|
|
208
|
+
})
|
|
209
|
+
})
|
|
210
|
+
}), legend && !isEmpty && /* @__PURE__ */ jsx(ChartLegend, {
|
|
211
|
+
items: legendItems,
|
|
212
|
+
align: legendAlign,
|
|
213
|
+
insetLeft: yAxisWidth
|
|
214
|
+
})]
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
//#endregion
|
|
218
|
+
export { LineChart };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/pagination.d.ts
|
|
4
|
-
interface PaginationProps extends React.ComponentProps<"nav"> {
|
|
4
|
+
interface PaginationProps extends React$1.ComponentProps<"nav"> {
|
|
5
5
|
currentPage: number;
|
|
6
6
|
totalPages: number;
|
|
7
7
|
onPageChange: (page: number) => void;
|
|
@@ -12,6 +12,6 @@ declare function Pagination({
|
|
|
12
12
|
onPageChange,
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: PaginationProps):
|
|
15
|
+
}: PaginationProps): React$1.JSX.Element | null;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { Pagination, type PaginationProps };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
3
|
|
|
4
4
|
//#region src/components/popover.d.ts
|
|
5
5
|
declare function Popover({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Root>):
|
|
7
|
+
}: React$1.ComponentProps<typeof PopoverPrimitive.Root>): React$1.JSX.Element;
|
|
8
8
|
declare function PopoverTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Trigger>):
|
|
10
|
+
}: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): React$1.JSX.Element;
|
|
11
11
|
declare function PopoverAnchor({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Anchor>):
|
|
13
|
+
}: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): React$1.JSX.Element;
|
|
14
14
|
declare function PopoverContent({
|
|
15
15
|
className,
|
|
16
16
|
align,
|
|
17
17
|
sideOffset,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Content>):
|
|
19
|
+
}: React$1.ComponentProps<typeof PopoverPrimitive.Content>): React$1.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3
3
|
|
|
4
4
|
//#region src/components/radio-group.d.ts
|
|
5
5
|
declare function RadioGroup({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof RadioGroupPrimitive.Root>):
|
|
8
|
+
}: React$1.ComponentProps<typeof RadioGroupPrimitive.Root>): React$1.JSX.Element;
|
|
9
9
|
declare function RadioGroupItem({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof RadioGroupPrimitive.Item>):
|
|
12
|
+
}: React$1.ComponentProps<typeof RadioGroupPrimitive.Item>): React$1.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { RadioGroup, RadioGroupItem };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
3
3
|
|
|
4
4
|
//#region src/components/scroll-area.d.ts
|
|
@@ -6,11 +6,11 @@ declare function ScrollArea({
|
|
|
6
6
|
className,
|
|
7
7
|
children,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>):
|
|
9
|
+
}: React$1.ComponentProps<typeof ScrollAreaPrimitive.Root>): React$1.JSX.Element;
|
|
10
10
|
declare function ScrollBar({
|
|
11
11
|
className,
|
|
12
12
|
orientation,
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>):
|
|
14
|
+
}: React$1.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): React$1.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { ScrollArea, ScrollBar };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { selectTriggerVariants } from "./select-trigger-variants.mjs";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as React from "react";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
4
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
5
5
|
|
|
6
6
|
//#region src/components/select.d.ts
|
|
7
7
|
declare function Select({
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof SelectPrimitive.Root>):
|
|
9
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Root>): React$1.JSX.Element;
|
|
10
10
|
declare function SelectGroup({
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof SelectPrimitive.Group>):
|
|
12
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Group>): React$1.JSX.Element;
|
|
13
13
|
declare function SelectValue({
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<typeof SelectPrimitive.Value>):
|
|
15
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Value>): React$1.JSX.Element;
|
|
16
16
|
declare function SelectTrigger({
|
|
17
17
|
className,
|
|
18
18
|
size,
|
|
19
19
|
children,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof SelectPrimitive.Trigger> & VariantProps<typeof selectTriggerVariants>):
|
|
21
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Trigger> & VariantProps<typeof selectTriggerVariants>): React$1.JSX.Element;
|
|
22
22
|
declare function SelectContent({
|
|
23
23
|
className,
|
|
24
24
|
children,
|
|
25
25
|
position,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<typeof SelectPrimitive.Content>):
|
|
27
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Content>): React$1.JSX.Element;
|
|
28
28
|
declare function SelectLabel({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<typeof SelectPrimitive.Label>):
|
|
31
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Label>): React$1.JSX.Element;
|
|
32
32
|
declare function SelectItem({
|
|
33
33
|
className,
|
|
34
34
|
children,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<typeof SelectPrimitive.Item>):
|
|
36
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Item>): React$1.JSX.Element;
|
|
37
37
|
declare function SelectSeparator({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<typeof SelectPrimitive.Separator>):
|
|
40
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Separator>): React$1.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, selectTriggerVariants };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3
3
|
|
|
4
4
|
//#region src/components/separator.d.ts
|
|
@@ -7,6 +7,6 @@ declare function Separator({
|
|
|
7
7
|
orientation,
|
|
8
8
|
decorative,
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof SeparatorPrimitive.Root>):
|
|
10
|
+
}: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): React$1.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Separator };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
3
3
|
|
|
4
4
|
//#region src/components/sheet.d.ts
|
|
5
5
|
declare function Sheet({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof SheetPrimitive.Root>):
|
|
7
|
+
}: React$1.ComponentProps<typeof SheetPrimitive.Root>): React$1.JSX.Element;
|
|
8
8
|
declare function SheetTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof SheetPrimitive.Trigger>):
|
|
10
|
+
}: React$1.ComponentProps<typeof SheetPrimitive.Trigger>): React$1.JSX.Element;
|
|
11
11
|
declare function SheetClose({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof SheetPrimitive.Close>):
|
|
13
|
+
}: React$1.ComponentProps<typeof SheetPrimitive.Close>): React$1.JSX.Element;
|
|
14
14
|
declare function SheetPortal({
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<typeof SheetPrimitive.Portal>):
|
|
16
|
+
}: React$1.ComponentProps<typeof SheetPrimitive.Portal>): React$1.JSX.Element;
|
|
17
17
|
declare function SheetContent({
|
|
18
18
|
className,
|
|
19
19
|
children,
|
|
20
20
|
side,
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
22
|
+
}: React$1.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
23
23
|
side?: "top" | "right" | "bottom" | "left";
|
|
24
|
-
}):
|
|
24
|
+
}): React$1.JSX.Element;
|
|
25
25
|
declare function SheetHeader({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<"div">):
|
|
28
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
29
29
|
declare function SheetFooter({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<"div">):
|
|
32
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
33
33
|
declare function SheetTitle({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<typeof SheetPrimitive.Title>):
|
|
36
|
+
}: React$1.ComponentProps<typeof SheetPrimitive.Title>): React$1.JSX.Element;
|
|
37
37
|
declare function SheetDescription({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<typeof SheetPrimitive.Description>):
|
|
40
|
+
}: React$1.ComponentProps<typeof SheetPrimitive.Description>): React$1.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetPortal, SheetTitle, SheetTrigger };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
1
3
|
//#region src/components/shimmer-text.d.ts
|
|
2
4
|
declare function ShimmerText({
|
|
3
5
|
children,
|
|
@@ -5,6 +7,6 @@ declare function ShimmerText({
|
|
|
5
7
|
}: {
|
|
6
8
|
children: string | number;
|
|
7
9
|
className?: string;
|
|
8
|
-
}):
|
|
10
|
+
}): React.JSX.Element;
|
|
9
11
|
//#endregion
|
|
10
12
|
export { ShimmerText };
|