@alpic-ai/ui 0.0.0-dev.g0999450 → 0.0.0-dev.g0a2a154
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 +62 -0
- package/dist/components/area-chart.mjs +269 -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 +48 -0
- package/dist/components/bar-chart.mjs +256 -0
- package/dist/components/bar-list.d.mts +28 -0
- package/dist/components/bar-list.mjs +98 -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 +16 -0
- package/dist/components/chart-legend.mjs +26 -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 +185 -0
- package/dist/components/dropdown-menu.d.mts +17 -17
- package/dist/components/form.d.mts +18 -18
- package/dist/components/form.mjs +6 -6
- package/dist/components/github-button.d.mts +1 -1
- package/dist/components/heatmap-chart.d.mts +40 -0
- package/dist/components/heatmap-chart.mjs +198 -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 +55 -0
- package/dist/components/line-chart.mjs +211 -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 +30 -0
- package/dist/components/stat.mjs +107 -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 +2 -2
- 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 +27 -0
- package/package.json +30 -29
- package/src/components/area-chart.tsx +339 -0
- package/src/components/bar-chart.tsx +309 -0
- package/src/components/bar-list.tsx +150 -0
- package/src/components/chart-card.tsx +63 -0
- package/src/components/chart-container.tsx +49 -0
- package/src/components/chart-legend.tsx +41 -0
- package/src/components/chart-tooltip.tsx +93 -0
- package/src/components/donut-chart.tsx +217 -0
- package/src/components/heatmap-chart.tsx +287 -0
- package/src/components/line-chart.tsx +264 -0
- package/src/components/stat.tsx +109 -0
- 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 +56 -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/wizard.stories.tsx +22 -4
- package/src/styles/tokens.css +63 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../lib/cn.mjs";
|
|
3
|
+
import { useReducedMotion } from "../hooks/use-reduced-motion.mjs";
|
|
4
|
+
import { 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, 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
|
+
children: /* @__PURE__ */ jsxs(LineChart$1, {
|
|
110
|
+
data,
|
|
111
|
+
margin,
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ jsx(CartesianGrid, {
|
|
114
|
+
vertical: false,
|
|
115
|
+
stroke: theme.grid,
|
|
116
|
+
strokeDasharray: "2 4"
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ jsx(XAxis, {
|
|
119
|
+
dataKey: index,
|
|
120
|
+
...axis,
|
|
121
|
+
interval: "preserveStartEnd",
|
|
122
|
+
minTickGap: 44
|
|
123
|
+
}),
|
|
124
|
+
/* @__PURE__ */ jsx(YAxis, {
|
|
125
|
+
...axis,
|
|
126
|
+
width: yAxisWidth,
|
|
127
|
+
tickFormatter: (value) => valueFormatter(value)
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ jsx(Tooltip, {
|
|
130
|
+
offset: 12,
|
|
131
|
+
allowEscapeViewBox: {
|
|
132
|
+
x: false,
|
|
133
|
+
y: false
|
|
134
|
+
},
|
|
135
|
+
cursor: {
|
|
136
|
+
stroke: theme.axisForeground,
|
|
137
|
+
strokeWidth: 1,
|
|
138
|
+
strokeDasharray: "3 3"
|
|
139
|
+
},
|
|
140
|
+
content: /* @__PURE__ */ jsx(ChartTooltipContent, {
|
|
141
|
+
valueFormatter,
|
|
142
|
+
labelFormatter
|
|
143
|
+
})
|
|
144
|
+
}),
|
|
145
|
+
referenceLine?.band && /* @__PURE__ */ jsx(ReferenceArea, {
|
|
146
|
+
y1: referenceLine.y,
|
|
147
|
+
y2: numericMax,
|
|
148
|
+
fill: theme.warning,
|
|
149
|
+
fillOpacity: .06,
|
|
150
|
+
ifOverflow: "extendDomain"
|
|
151
|
+
}),
|
|
152
|
+
referenceLine && /* @__PURE__ */ jsx(ReferenceLine, {
|
|
153
|
+
y: referenceLine.y,
|
|
154
|
+
stroke: theme.warning,
|
|
155
|
+
strokeDasharray: "4 4",
|
|
156
|
+
strokeOpacity: .6,
|
|
157
|
+
label: referenceLine.label ? {
|
|
158
|
+
value: referenceLine.label,
|
|
159
|
+
fill: theme.warning,
|
|
160
|
+
fontSize: 9,
|
|
161
|
+
fontFamily: theme.fontMono,
|
|
162
|
+
position: "insideBottomRight"
|
|
163
|
+
} : void 0
|
|
164
|
+
}),
|
|
165
|
+
resolved.map((entry) => /* @__PURE__ */ jsx(Line, {
|
|
166
|
+
type: curveType,
|
|
167
|
+
dataKey: entry.key,
|
|
168
|
+
name: entry.name,
|
|
169
|
+
stroke: entry.color,
|
|
170
|
+
strokeWidth: entry.dashed ? 2 : 1.8,
|
|
171
|
+
strokeDasharray: entry.dashed ? "5 3" : void 0,
|
|
172
|
+
dot: dots ? {
|
|
173
|
+
r: 2.5,
|
|
174
|
+
fill: entry.color,
|
|
175
|
+
strokeWidth: 0
|
|
176
|
+
} : false,
|
|
177
|
+
activeDot: activeDotFor(entry),
|
|
178
|
+
isAnimationActive: animated,
|
|
179
|
+
animationDuration: 650,
|
|
180
|
+
animationEasing: "ease-out",
|
|
181
|
+
children: lastValueLabel && /* @__PURE__ */ jsx(LabelList, {
|
|
182
|
+
dataKey: entry.key,
|
|
183
|
+
content: renderLastLabel(entry.color)
|
|
184
|
+
})
|
|
185
|
+
}, entry.key)),
|
|
186
|
+
markers?.map((marker) => /* @__PURE__ */ jsx(ReferenceDot, {
|
|
187
|
+
x: marker.x,
|
|
188
|
+
y: marker.y,
|
|
189
|
+
r: 3.5,
|
|
190
|
+
fill: marker.color ?? theme.foreground,
|
|
191
|
+
stroke: theme.card,
|
|
192
|
+
strokeWidth: 2,
|
|
193
|
+
label: marker.label ? {
|
|
194
|
+
value: marker.label,
|
|
195
|
+
fill: marker.color ?? theme.foreground,
|
|
196
|
+
fontSize: 9,
|
|
197
|
+
fontFamily: theme.fontMono,
|
|
198
|
+
position: "top"
|
|
199
|
+
} : void 0
|
|
200
|
+
}, `${marker.x}-${marker.y}`))
|
|
201
|
+
]
|
|
202
|
+
})
|
|
203
|
+
})
|
|
204
|
+
}), legend && !isEmpty && /* @__PURE__ */ jsx(ChartLegend, {
|
|
205
|
+
items: legendItems,
|
|
206
|
+
style: { paddingLeft: yAxisWidth }
|
|
207
|
+
})]
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
//#endregion
|
|
211
|
+
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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "./button.mjs";
|
|
2
2
|
import { TooltipContent } from "./tooltip.mjs";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as React from "react";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/sidebar.d.ts
|
|
7
7
|
type SidebarContextProps = {
|
|
@@ -22,11 +22,11 @@ declare function SidebarProvider({
|
|
|
22
22
|
style,
|
|
23
23
|
children,
|
|
24
24
|
...props
|
|
25
|
-
}: React.ComponentProps<"div"> & {
|
|
25
|
+
}: React$1.ComponentProps<"div"> & {
|
|
26
26
|
defaultOpen?: boolean;
|
|
27
27
|
open?: boolean;
|
|
28
28
|
onOpenChange?: (open: boolean) => void;
|
|
29
|
-
}):
|
|
29
|
+
}): React$1.JSX.Element;
|
|
30
30
|
declare function Sidebar({
|
|
31
31
|
side,
|
|
32
32
|
variant,
|
|
@@ -34,26 +34,26 @@ declare function Sidebar({
|
|
|
34
34
|
className,
|
|
35
35
|
children,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<"div"> & {
|
|
37
|
+
}: React$1.ComponentProps<"div"> & {
|
|
38
38
|
side?: "left" | "right";
|
|
39
39
|
variant?: "sidebar" | "floating" | "inset";
|
|
40
40
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
41
|
-
}):
|
|
41
|
+
}): React$1.JSX.Element;
|
|
42
42
|
declare function SidebarTrigger({
|
|
43
43
|
className,
|
|
44
44
|
onClick,
|
|
45
45
|
...props
|
|
46
|
-
}: React.ComponentProps<typeof Button>):
|
|
46
|
+
}: React$1.ComponentProps<typeof Button>): React$1.JSX.Element;
|
|
47
47
|
declare function SidebarRail({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<"button">):
|
|
50
|
+
}: React$1.ComponentProps<"button">): React$1.JSX.Element;
|
|
51
51
|
declare function SidebarInset({
|
|
52
52
|
className,
|
|
53
53
|
...props
|
|
54
|
-
}: React.ComponentProps<"main">):
|
|
55
|
-
interface SidebarHeaderProps extends React.ComponentProps<"div"> {
|
|
56
|
-
icon?: React.ReactNode;
|
|
54
|
+
}: React$1.ComponentProps<"main">): React$1.JSX.Element;
|
|
55
|
+
interface SidebarHeaderProps extends React$1.ComponentProps<"div"> {
|
|
56
|
+
icon?: React$1.ReactNode;
|
|
57
57
|
title?: string;
|
|
58
58
|
}
|
|
59
59
|
declare function SidebarHeader({
|
|
@@ -62,48 +62,48 @@ declare function SidebarHeader({
|
|
|
62
62
|
title,
|
|
63
63
|
children,
|
|
64
64
|
...props
|
|
65
|
-
}: SidebarHeaderProps):
|
|
65
|
+
}: SidebarHeaderProps): React$1.JSX.Element;
|
|
66
66
|
declare function SidebarFooter({
|
|
67
67
|
className,
|
|
68
68
|
...props
|
|
69
|
-
}: React.ComponentProps<"div">):
|
|
69
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
70
70
|
declare function SidebarSeparator({
|
|
71
71
|
className
|
|
72
|
-
}: React.ComponentProps<"div">):
|
|
72
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
73
73
|
declare function SidebarContent({
|
|
74
74
|
className,
|
|
75
75
|
...props
|
|
76
|
-
}: React.ComponentProps<"div">):
|
|
76
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
77
77
|
declare function SidebarGroup({
|
|
78
78
|
className,
|
|
79
79
|
...props
|
|
80
|
-
}: React.ComponentProps<"div">):
|
|
80
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
81
81
|
declare function SidebarGroupLabel({
|
|
82
82
|
className,
|
|
83
83
|
asChild,
|
|
84
84
|
...props
|
|
85
|
-
}: React.ComponentProps<"div"> & {
|
|
85
|
+
}: React$1.ComponentProps<"div"> & {
|
|
86
86
|
asChild?: boolean;
|
|
87
|
-
}):
|
|
87
|
+
}): React$1.JSX.Element;
|
|
88
88
|
declare function SidebarGroupAction({
|
|
89
89
|
className,
|
|
90
90
|
asChild,
|
|
91
91
|
...props
|
|
92
|
-
}: React.ComponentProps<"button"> & {
|
|
92
|
+
}: React$1.ComponentProps<"button"> & {
|
|
93
93
|
asChild?: boolean;
|
|
94
|
-
}):
|
|
94
|
+
}): React$1.JSX.Element;
|
|
95
95
|
declare function SidebarGroupContent({
|
|
96
96
|
className,
|
|
97
97
|
...props
|
|
98
|
-
}: React.ComponentProps<"div">):
|
|
98
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
99
99
|
declare function SidebarMenu({
|
|
100
100
|
className,
|
|
101
101
|
...props
|
|
102
|
-
}: React.ComponentProps<"ul">):
|
|
102
|
+
}: React$1.ComponentProps<"ul">): React$1.JSX.Element;
|
|
103
103
|
declare function SidebarMenuItem({
|
|
104
104
|
className,
|
|
105
105
|
...props
|
|
106
|
-
}: React.ComponentProps<"li">):
|
|
106
|
+
}: React$1.ComponentProps<"li">): React$1.JSX.Element;
|
|
107
107
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
108
108
|
variant?: "default" | "outline" | null | undefined;
|
|
109
109
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
@@ -116,46 +116,46 @@ declare function SidebarMenuButton({
|
|
|
116
116
|
tooltip,
|
|
117
117
|
className,
|
|
118
118
|
...props
|
|
119
|
-
}: React.ComponentProps<"button"> & {
|
|
119
|
+
}: React$1.ComponentProps<"button"> & {
|
|
120
120
|
asChild?: boolean;
|
|
121
121
|
isActive?: boolean;
|
|
122
|
-
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
123
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
122
|
+
tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
|
|
123
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): React$1.JSX.Element;
|
|
124
124
|
declare function SidebarMenuAction({
|
|
125
125
|
className,
|
|
126
126
|
asChild,
|
|
127
127
|
showOnHover,
|
|
128
128
|
...props
|
|
129
|
-
}: React.ComponentProps<"button"> & {
|
|
129
|
+
}: React$1.ComponentProps<"button"> & {
|
|
130
130
|
asChild?: boolean;
|
|
131
131
|
showOnHover?: boolean;
|
|
132
|
-
}):
|
|
132
|
+
}): React$1.JSX.Element;
|
|
133
133
|
declare function SidebarMenuBadge({
|
|
134
134
|
className,
|
|
135
135
|
...props
|
|
136
|
-
}: React.ComponentProps<"div">):
|
|
136
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
137
137
|
declare function SidebarMenuSkeleton({
|
|
138
138
|
className,
|
|
139
139
|
...props
|
|
140
|
-
}: React.ComponentProps<"div">):
|
|
140
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
141
141
|
declare function SidebarMenuSub({
|
|
142
142
|
className,
|
|
143
143
|
...props
|
|
144
|
-
}: React.ComponentProps<"ul">):
|
|
144
|
+
}: React$1.ComponentProps<"ul">): React$1.JSX.Element;
|
|
145
145
|
declare function SidebarMenuSubItem({
|
|
146
146
|
className,
|
|
147
147
|
...props
|
|
148
|
-
}: React.ComponentProps<"li">):
|
|
148
|
+
}: React$1.ComponentProps<"li">): React$1.JSX.Element;
|
|
149
149
|
declare function SidebarMenuSubButton({
|
|
150
150
|
asChild,
|
|
151
151
|
size,
|
|
152
152
|
isActive,
|
|
153
153
|
className,
|
|
154
154
|
...props
|
|
155
|
-
}: React.ComponentProps<"a"> & {
|
|
155
|
+
}: React$1.ComponentProps<"a"> & {
|
|
156
156
|
asChild?: boolean;
|
|
157
157
|
size?: "sm" | "md";
|
|
158
158
|
isActive?: boolean;
|
|
159
|
-
}):
|
|
159
|
+
}): React$1.JSX.Element;
|
|
160
160
|
//#endregion
|
|
161
161
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, sidebarMenuButtonVariants, useSidebar };
|