@acronis-platform/ui-react 0.45.0 → 0.46.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/dist/components/ui/data-table/data-table-column-header.js +30 -42
- package/dist/components/ui/data-table/data-table-column-header.js.map +1 -1
- package/dist/components/ui/progress-circle/progress-circle.js +115 -0
- package/dist/components/ui/progress-circle/progress-circle.js.map +1 -0
- package/dist/index.js +154 -151
- package/dist/index.js.map +1 -1
- package/dist/react.js +154 -151
- package/dist/react.js.map +1 -1
- package/dist/src/components/ui/data-table/data-table-column-header.d.ts +2 -2
- package/dist/src/components/ui/progress-circle/index.d.ts +1 -0
- package/dist/src/components/ui/progress-circle/progress-circle.d.ts +47 -0
- package/dist/src/components/ui/progress-circle/progress-circle.docs.d.ts +21 -0
- package/dist/src/components/ui/tag/tag.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/ui-react.css +1 -1
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { cn as
|
|
1
|
+
import { cn as t } from "./lib/utils.js";
|
|
2
2
|
import { Avatar as a, AvatarFallback as n, AvatarGroup as i, AvatarImage as l, avatarVariants as p } from "./components/ui/avatar/avatar.js";
|
|
3
3
|
import { Tag as d, Tag as s, tagVariants as c } from "./components/ui/tag/tag.js";
|
|
4
4
|
import { Breadcrumb as m, BreadcrumbEllipsis as b, BreadcrumbItem as g, BreadcrumbLink as D, BreadcrumbList as x, BreadcrumbPage as T, BreadcrumbSeparator as I } from "./components/ui/breadcrumb/breadcrumb.js";
|
|
5
5
|
import { Button as f, buttonVariants as C } from "./components/ui/button/button.js";
|
|
6
6
|
import { ButtonIcon as P, buttonIconVariants as M } from "./components/ui/button-icon/button-icon.js";
|
|
7
|
-
import { ButtonMenu as L, buttonMenuVariants as
|
|
7
|
+
import { ButtonMenu as L, buttonMenuVariants as V } from "./components/ui/button-menu/button-menu.js";
|
|
8
8
|
import { Card as v, CardContent as F, CardDescription as H, CardFooter as E, CardHeader as A, CardTitle as G } from "./components/ui/card/card.js";
|
|
9
9
|
import { CardFilter as R, cardFilterVariants as k } from "./components/ui/card-filter/card-filter.js";
|
|
10
10
|
import { Checkbox as z } from "./components/ui/checkbox/checkbox.js";
|
|
@@ -14,34 +14,35 @@ import { DataTableColumnHeader as U } from "./components/ui/data-table/data-tabl
|
|
|
14
14
|
import { DataTablePagination as Y } from "./components/ui/data-table/data-table-pagination.js";
|
|
15
15
|
import { DataTableToolbar as _ } from "./components/ui/data-table/data-table-toolbar.js";
|
|
16
16
|
import { DataTableViewOptions as ee } from "./components/ui/data-table/data-table-view-options.js";
|
|
17
|
-
import { DescriptionList as
|
|
18
|
-
import { Sheet as Se, SheetBody as de, SheetClose as se, SheetCloseButton as ce, SheetContent as ue, SheetDescription as me, SheetFooter as be, SheetHeader as ge, SheetOverlay as De, SheetPortal as xe, SheetTitle as Te, SheetTrigger as Ie, Sheet as he, SheetBody as fe, SheetClose as Ce, SheetCloseButton as ye, SheetContent as Pe, SheetDescription as Me, SheetFooter as Be, SheetHeader as Le, SheetOverlay as
|
|
17
|
+
import { DescriptionList as te, DescriptionListActions as oe, DescriptionListItem as ae, DescriptionListLabel as ne, DescriptionListValue as ie, DescriptionListValueDescription as le } from "./components/ui/description-list/description-list.js";
|
|
18
|
+
import { Sheet as Se, SheetBody as de, SheetClose as se, SheetCloseButton as ce, SheetContent as ue, SheetDescription as me, SheetFooter as be, SheetHeader as ge, SheetOverlay as De, SheetPortal as xe, SheetTitle as Te, SheetTrigger as Ie, Sheet as he, SheetBody as fe, SheetClose as Ce, SheetCloseButton as ye, SheetContent as Pe, SheetDescription as Me, SheetFooter as Be, SheetHeader as Le, SheetOverlay as Ve, SheetPortal as we, SheetTitle as ve, SheetTrigger as Fe, sheetVariants as He } from "./components/ui/sheet/sheet.js";
|
|
19
19
|
import { Dialog as Ae, DialogBody as Ge, DialogClose as We, DialogCloseButton as Re, DialogContent as ke, DialogDescription as Oe, DialogFooter as ze, DialogHeader as Ne, DialogOverlay as je, DialogPortal as qe, DialogTitle as Je, DialogTrigger as Ke, dialogContentVariants as Qe } from "./components/ui/dialog/dialog.js";
|
|
20
|
-
import { DropdownMenu as Xe, DropdownMenuCheckboxItem as Ye, DropdownMenuContent as Ze, DropdownMenuGroup as _e, DropdownMenuItem as $e, DropdownMenuLabel as
|
|
21
|
-
import { Empty as
|
|
22
|
-
import { InputText as
|
|
23
|
-
import { InputDatePicker as
|
|
24
|
-
import { InputSearch as
|
|
25
|
-
import { InputSelect as
|
|
26
|
-
import { InputTextArea as
|
|
27
|
-
import { Label as
|
|
28
|
-
import { Link as
|
|
29
|
-
import { Popover as
|
|
30
|
-
import { Progress as
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
20
|
+
import { DropdownMenu as Xe, DropdownMenuCheckboxItem as Ye, DropdownMenuContent as Ze, DropdownMenuGroup as _e, DropdownMenuItem as $e, DropdownMenuLabel as er, DropdownMenuPortal as rr, DropdownMenuRadioGroup as tr, DropdownMenuRadioItem as or, DropdownMenuSeparator as ar, DropdownMenuShortcut as nr, DropdownMenuSub as ir, DropdownMenuSubContent as lr, DropdownMenuSubTrigger as pr, DropdownMenuTrigger as Sr } from "./components/ui/dropdown-menu/dropdown-menu.js";
|
|
21
|
+
import { Empty as sr, EmptyActions as cr, EmptyDescription as ur, EmptyHeader as mr, EmptyIcon as br, EmptyLinks as gr, EmptyTitle as Dr } from "./components/ui/empty/empty.js";
|
|
22
|
+
import { InputText as Tr, InputText as Ir } from "./components/ui/input-text/input-text.js";
|
|
23
|
+
import { InputDatePicker as fr } from "./components/ui/input-date-picker/input-date-picker.js";
|
|
24
|
+
import { InputSearch as yr, InputSearch as Pr } from "./components/ui/input-search/input-search.js";
|
|
25
|
+
import { InputSelect as Br, InputSelectContent as Lr, InputSelectDescription as Vr, InputSelectError as wr, InputSelectField as vr, InputSelectGroup as Fr, InputSelectItem as Hr, InputSelectLabel as Er, InputSelectSearch as Ar, InputSelectSection as Gr, InputSelectSectionLabel as Wr, InputSelectStatus as Rr, InputSelectTrigger as kr, InputSelectValue as Or, InputSelect as zr, InputSelectContent as Nr, InputSelectSection as jr, InputSelectSectionLabel as qr, InputSelectItem as Jr, InputSelectTrigger as Kr, InputSelectValue as Qr } from "./components/ui/input-select/input-select.js";
|
|
26
|
+
import { InputTextArea as Xr, InputTextArea as Yr } from "./components/ui/input-text-area/input-text-area.js";
|
|
27
|
+
import { Label as _r, labelClassName as $r } from "./components/ui/label/label.js";
|
|
28
|
+
import { Link as rt } from "./components/ui/link/link.js";
|
|
29
|
+
import { Popover as ot, PopoverContent as at, PopoverPortal as nt, PopoverTrigger as it } from "./components/ui/popover/popover.js";
|
|
30
|
+
import { Progress as pt } from "./components/ui/progress/progress.js";
|
|
31
|
+
import { ProgressCircle as dt, progressCircleVariants as st } from "./components/ui/progress-circle/progress-circle.js";
|
|
32
|
+
import { Radio as ut, RadioGroup as mt } from "./components/ui/radio/radio.js";
|
|
33
|
+
import { ResizableHandle as gt, ResizablePanel as Dt, ResizablePanelGroup as xt } from "./components/ui/resizable/resizable.js";
|
|
34
|
+
import { SearchGlobal as It } from "./components/ui/search-global/search-global.js";
|
|
35
|
+
import { Separator as ft } from "./components/ui/separator/separator.js";
|
|
36
|
+
import { SheetDetails as yt } from "./components/ui/sheet/sheet-details.js";
|
|
37
|
+
import { SidebarPrimary as Mt, SidebarPrimaryCollapseTrigger as Bt, SidebarPrimaryContent as Lt, SidebarPrimaryFooter as Vt, SidebarPrimaryHeader as wt, SidebarPrimaryMenu as vt, SidebarPrimaryMenuItem as Ft, SidebarPrimaryMenuItemExtras as Ht, SidebarPrimarySection as Et, sidebarPrimaryMenuItemVariants as At } from "./components/ui/sidebar-primary/sidebar-primary.js";
|
|
38
|
+
import { SidebarSecondary as Wt, SidebarSecondaryCollapseTrigger as Rt, SidebarSecondaryCollapsedBreadcrumb as kt, SidebarSecondaryContent as Ot, SidebarSecondaryFooter as zt, SidebarSecondaryHeader as Nt, SidebarSecondaryMenu as jt, SidebarSecondaryMenuItem as qt, SidebarSecondaryMenuItemExtras as Jt, SidebarSecondaryMenuSub as Kt, SidebarSecondaryMenuSubContent as Qt, SidebarSecondaryMenuSubItem as Ut, SidebarSecondaryMenuSubTrigger as Xt, SidebarSecondarySection as Yt, SidebarSecondarySectionLabel as Zt, sidebarSecondaryMenuItemVariants as _t } from "./components/ui/sidebar-secondary/sidebar-secondary.js";
|
|
39
|
+
import { Spinner as eo, spinnerVariants as ro } from "./components/ui/spinner/spinner.js";
|
|
40
|
+
import { Switch as oo } from "./components/ui/switch/switch.js";
|
|
41
|
+
import { Table as no, TableBody as io, TableCaption as lo, TableCell as po, TableFooter as So, TableHead as so, TableHeader as co, TableRow as uo } from "./components/ui/table/table.js";
|
|
42
|
+
import { Tabs as bo, TabsContent as go, TabsList as Do, TabsTrigger as xo } from "./components/ui/tabs/tabs.js";
|
|
43
|
+
import { Toaster as Io, toast as ho } from "./components/ui/toast/toast.js";
|
|
44
|
+
import { Tooltip as Co, TooltipContent as yo, TooltipProvider as Po, TooltipTrigger as Mo } from "./components/ui/tooltip/tooltip.js";
|
|
45
|
+
import { WidgetPlaceholder as Lo, WidgetPlaceholderAction as Vo, WidgetPlaceholderContent as wo, WidgetPlaceholderFooter as vo, WidgetPlaceholderHeader as Fo, WidgetPlaceholderIcon as Ho, WidgetPlaceholderImage as Eo, WidgetPlaceholderText as Ao, WidgetPlaceholderTitle as Go } from "./components/ui/widget-placeholder/widget-placeholder.js";
|
|
45
46
|
export {
|
|
46
47
|
a as Avatar,
|
|
47
48
|
n as AvatarFallback,
|
|
@@ -72,7 +73,7 @@ export {
|
|
|
72
73
|
Y as DataTablePagination,
|
|
73
74
|
_ as DataTableToolbar,
|
|
74
75
|
ee as DataTableViewOptions,
|
|
75
|
-
|
|
76
|
+
te as DescriptionList,
|
|
76
77
|
oe as DescriptionListActions,
|
|
77
78
|
ae as DescriptionListItem,
|
|
78
79
|
ne as DescriptionListLabel,
|
|
@@ -107,145 +108,147 @@ export {
|
|
|
107
108
|
Ze as DropdownMenuContent,
|
|
108
109
|
_e as DropdownMenuGroup,
|
|
109
110
|
$e as DropdownMenuItem,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
111
|
+
er as DropdownMenuLabel,
|
|
112
|
+
rr as DropdownMenuPortal,
|
|
113
|
+
tr as DropdownMenuRadioGroup,
|
|
114
|
+
or as DropdownMenuRadioItem,
|
|
115
|
+
ar as DropdownMenuSeparator,
|
|
116
|
+
nr as DropdownMenuShortcut,
|
|
117
|
+
ir as DropdownMenuSub,
|
|
118
|
+
lr as DropdownMenuSubContent,
|
|
119
|
+
pr as DropdownMenuSubTrigger,
|
|
120
|
+
Sr as DropdownMenuTrigger,
|
|
121
|
+
sr as Empty,
|
|
122
|
+
cr as EmptyActions,
|
|
123
|
+
ur as EmptyDescription,
|
|
124
|
+
mr as EmptyHeader,
|
|
125
|
+
br as EmptyIcon,
|
|
126
|
+
gr as EmptyLinks,
|
|
127
|
+
Dr as EmptyTitle,
|
|
128
|
+
Tr as Input,
|
|
129
|
+
fr as InputDatePicker,
|
|
130
|
+
yr as InputSearch,
|
|
131
|
+
Br as InputSelect,
|
|
132
|
+
Lr as InputSelectContent,
|
|
133
|
+
Vr as InputSelectDescription,
|
|
134
|
+
wr as InputSelectError,
|
|
135
|
+
vr as InputSelectField,
|
|
136
|
+
Fr as InputSelectGroup,
|
|
137
|
+
Hr as InputSelectItem,
|
|
138
|
+
Er as InputSelectLabel,
|
|
139
|
+
Ar as InputSelectSearch,
|
|
140
|
+
Gr as InputSelectSection,
|
|
141
|
+
Wr as InputSelectSectionLabel,
|
|
142
|
+
Rr as InputSelectStatus,
|
|
143
|
+
kr as InputSelectTrigger,
|
|
144
|
+
Or as InputSelectValue,
|
|
145
|
+
Ir as InputText,
|
|
146
|
+
Xr as InputTextArea,
|
|
147
|
+
_r as Label,
|
|
148
|
+
rt as Link,
|
|
149
|
+
ot as Popover,
|
|
150
|
+
at as PopoverContent,
|
|
151
|
+
nt as PopoverPortal,
|
|
152
|
+
it as PopoverTrigger,
|
|
153
|
+
pt as Progress,
|
|
154
|
+
dt as ProgressCircle,
|
|
155
|
+
ut as Radio,
|
|
156
|
+
mt as RadioGroup,
|
|
157
|
+
gt as ResizableHandle,
|
|
158
|
+
Dt as ResizablePanel,
|
|
159
|
+
xt as ResizablePanelGroup,
|
|
160
|
+
Pr as Search,
|
|
161
|
+
It as SearchGlobal,
|
|
162
|
+
zr as Select,
|
|
163
|
+
Nr as SelectContent,
|
|
164
|
+
jr as SelectGroup,
|
|
165
|
+
qr as SelectGroupLabel,
|
|
166
|
+
Jr as SelectItem,
|
|
167
|
+
Kr as SelectTrigger,
|
|
168
|
+
Qr as SelectValue,
|
|
169
|
+
ft as Separator,
|
|
168
170
|
he as Sheet,
|
|
169
171
|
fe as SheetBody,
|
|
170
172
|
Ce as SheetClose,
|
|
171
173
|
ye as SheetCloseButton,
|
|
172
174
|
Pe as SheetContent,
|
|
173
175
|
Me as SheetDescription,
|
|
174
|
-
|
|
176
|
+
yt as SheetDetails,
|
|
175
177
|
Be as SheetFooter,
|
|
176
178
|
Le as SheetHeader,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
+
Ve as SheetOverlay,
|
|
180
|
+
we as SheetPortal,
|
|
179
181
|
ve as SheetTitle,
|
|
180
182
|
Fe as SheetTrigger,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
183
|
+
Mt as SidebarPrimary,
|
|
184
|
+
Bt as SidebarPrimaryCollapseTrigger,
|
|
185
|
+
Lt as SidebarPrimaryContent,
|
|
186
|
+
Vt as SidebarPrimaryFooter,
|
|
187
|
+
wt as SidebarPrimaryHeader,
|
|
188
|
+
vt as SidebarPrimaryMenu,
|
|
189
|
+
Ft as SidebarPrimaryMenuItem,
|
|
190
|
+
Ht as SidebarPrimaryMenuItemExtras,
|
|
191
|
+
Et as SidebarPrimarySection,
|
|
192
|
+
Wt as SidebarSecondary,
|
|
193
|
+
Rt as SidebarSecondaryCollapseTrigger,
|
|
194
|
+
kt as SidebarSecondaryCollapsedBreadcrumb,
|
|
195
|
+
Ot as SidebarSecondaryContent,
|
|
196
|
+
zt as SidebarSecondaryFooter,
|
|
197
|
+
Nt as SidebarSecondaryHeader,
|
|
198
|
+
jt as SidebarSecondaryMenu,
|
|
199
|
+
qt as SidebarSecondaryMenuItem,
|
|
200
|
+
Jt as SidebarSecondaryMenuItemExtras,
|
|
201
|
+
Kt as SidebarSecondaryMenuSub,
|
|
202
|
+
Qt as SidebarSecondaryMenuSubContent,
|
|
203
|
+
Ut as SidebarSecondaryMenuSubItem,
|
|
204
|
+
Xt as SidebarSecondaryMenuSubTrigger,
|
|
205
|
+
Yt as SidebarSecondarySection,
|
|
206
|
+
Zt as SidebarSecondarySectionLabel,
|
|
207
|
+
eo as Spinner,
|
|
208
|
+
oo as Switch,
|
|
209
|
+
no as Table,
|
|
210
|
+
io as TableBody,
|
|
211
|
+
lo as TableCaption,
|
|
212
|
+
po as TableCell,
|
|
213
|
+
So as TableFooter,
|
|
214
|
+
so as TableHead,
|
|
215
|
+
co as TableHeader,
|
|
216
|
+
uo as TableRow,
|
|
217
|
+
bo as Tabs,
|
|
218
|
+
go as TabsContent,
|
|
219
|
+
Do as TabsList,
|
|
220
|
+
xo as TabsTrigger,
|
|
219
221
|
s as Tag,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
222
|
+
Yr as Textarea,
|
|
223
|
+
Io as Toaster,
|
|
224
|
+
Co as Tooltip,
|
|
225
|
+
yo as TooltipContent,
|
|
226
|
+
Po as TooltipProvider,
|
|
227
|
+
Mo as TooltipTrigger,
|
|
228
|
+
Lo as WidgetPlaceholder,
|
|
229
|
+
Vo as WidgetPlaceholderAction,
|
|
230
|
+
wo as WidgetPlaceholderContent,
|
|
231
|
+
vo as WidgetPlaceholderFooter,
|
|
232
|
+
Fo as WidgetPlaceholderHeader,
|
|
233
|
+
Ho as WidgetPlaceholderIcon,
|
|
234
|
+
Eo as WidgetPlaceholderImage,
|
|
235
|
+
Ao as WidgetPlaceholderText,
|
|
236
|
+
Go as WidgetPlaceholderTitle,
|
|
235
237
|
p as avatarVariants,
|
|
236
238
|
M as buttonIconVariants,
|
|
237
|
-
|
|
239
|
+
V as buttonMenuVariants,
|
|
238
240
|
C as buttonVariants,
|
|
239
241
|
k as cardFilterVariants,
|
|
240
242
|
q as chipVariants,
|
|
241
|
-
|
|
243
|
+
t as cn,
|
|
242
244
|
Qe as dialogContentVariants,
|
|
243
|
-
$
|
|
245
|
+
$r as labelClassName,
|
|
246
|
+
st as progressCircleVariants,
|
|
244
247
|
He as sheetVariants,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
+
At as sidebarPrimaryMenuItemVariants,
|
|
249
|
+
_t as sidebarSecondaryMenuItemVariants,
|
|
250
|
+
ro as spinnerVariants,
|
|
248
251
|
c as tagVariants,
|
|
249
|
-
|
|
252
|
+
ho as toast
|
|
250
253
|
};
|
|
251
254
|
//# sourceMappingURL=react.js.map
|
package/dist/react.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Column } from '@tanstack/react-table';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
interface DataTableColumnHeaderProps<TData, TValue> extends React.
|
|
3
|
+
interface DataTableColumnHeaderProps<TData, TValue> extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
4
|
column: Column<TData, TValue>;
|
|
5
5
|
title: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function DataTableColumnHeader<TData, TValue>({ column, title, className, ...props }: DataTableColumnHeaderProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProgressCircle, progressCircleVariants, type ProgressCircleProps, type ProgressCircleSize, type ProgressCircleStatus, } from './progress-circle';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type ProgressCircleStatus = 'brand' | 'danger' | 'critical' | 'warning' | 'success';
|
|
4
|
+
declare const SIZES: {
|
|
5
|
+
readonly tiny: {
|
|
6
|
+
readonly d: 16;
|
|
7
|
+
readonly stroke: 2;
|
|
8
|
+
readonly font: "text-[10px] leading-none";
|
|
9
|
+
};
|
|
10
|
+
readonly sm: {
|
|
11
|
+
readonly d: 24;
|
|
12
|
+
readonly stroke: 3;
|
|
13
|
+
readonly font: "text-[10px] leading-none";
|
|
14
|
+
};
|
|
15
|
+
readonly md: {
|
|
16
|
+
readonly d: 40;
|
|
17
|
+
readonly stroke: 4;
|
|
18
|
+
readonly font: "text-xs font-semibold";
|
|
19
|
+
};
|
|
20
|
+
readonly lg: {
|
|
21
|
+
readonly d: 64;
|
|
22
|
+
readonly stroke: 5;
|
|
23
|
+
readonly font: "text-sm font-semibold";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export type ProgressCircleSize = keyof typeof SIZES;
|
|
27
|
+
declare const progressCircleVariants: (props?: ({
|
|
28
|
+
size?: "sm" | "md" | "lg" | "tiny" | null | undefined;
|
|
29
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
30
|
+
export interface ProgressCircleProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof progressCircleVariants> {
|
|
31
|
+
/** Current progress; clamped to `[0, max]`. */
|
|
32
|
+
value?: number;
|
|
33
|
+
/** Value representing full completion. */
|
|
34
|
+
max?: number;
|
|
35
|
+
/** Ring diameter + stroke. Defaults to `sm`. */
|
|
36
|
+
size?: ProgressCircleSize;
|
|
37
|
+
/** Color level for the arc. Omit to derive from `value`/`max` by thresholds. */
|
|
38
|
+
status?: ProgressCircleStatus;
|
|
39
|
+
/** Show the rounded percentage in the center. */
|
|
40
|
+
showValue?: boolean;
|
|
41
|
+
/** Show a status icon in the center (takes priority over `showValue`). */
|
|
42
|
+
showIcon?: boolean;
|
|
43
|
+
/** Custom center content (takes priority over icon/value). */
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
}
|
|
46
|
+
declare const ProgressCircle: React.ForwardRefExoticComponent<ProgressCircleProps & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
export { ProgressCircle, progressCircleVariants };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
/** Props for `ProgressCircle`. */
|
|
3
|
+
export interface ProgressCircleProps {
|
|
4
|
+
/** Current progress, clamped to `[0, max]`. */
|
|
5
|
+
value?: number;
|
|
6
|
+
/** Value representing full completion (default `100`). */
|
|
7
|
+
max?: number;
|
|
8
|
+
/** Ring diameter + stroke: `tiny` · `sm` (default) · `md` · `lg`. */
|
|
9
|
+
size?: 'tiny' | 'sm' | 'md' | 'lg';
|
|
10
|
+
/**
|
|
11
|
+
* Arc color level. Omit to derive from `value`/`max` by thresholds
|
|
12
|
+
* (≈ <40% danger, <60% critical, <80% warning, else success).
|
|
13
|
+
*/
|
|
14
|
+
status?: 'brand' | 'danger' | 'critical' | 'warning' | 'success';
|
|
15
|
+
/** Show the rounded percentage in the center. */
|
|
16
|
+
showValue?: boolean;
|
|
17
|
+
/** Show a status icon in the center (priority over `showValue`). */
|
|
18
|
+
showIcon?: boolean;
|
|
19
|
+
/** Custom center content (priority over icon / value). */
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const tagVariants: (props?: ({
|
|
4
|
-
variant?: "ai" | "
|
|
4
|
+
variant?: "ai" | "danger" | "critical" | "warning" | "success" | "info" | "neutral" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface TagProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof tagVariants> {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './components/ui/label';
|
|
|
22
22
|
export * from './components/ui/link';
|
|
23
23
|
export * from './components/ui/popover';
|
|
24
24
|
export * from './components/ui/progress';
|
|
25
|
+
export * from './components/ui/progress-circle';
|
|
25
26
|
export * from './components/ui/search-global';
|
|
26
27
|
export { InputText as Input, type InputTextProps as InputProps, } from './components/ui/input-text';
|
|
27
28
|
export { InputSearch as Search, type InputSearchProps as SearchProps, } from './components/ui/input-search';
|