@krosoft/react 0.0.294 → 0.0.296
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/README.md +3 -0
- package/dist/{AppActions-CpbkO_3O.js → AppActions-BMh044Sc.js} +2 -2
- package/dist/{AppSubTitle-BOVTZlUB.js → AppSubTitle-BfZTloah.js} +1 -1
- package/dist/ErrorAlert-0L-Dwqu8.js +37 -0
- package/dist/GenericForm-BV8n9y1n.js +311 -0
- package/dist/{ImageInput-BPNEywyf.js → ImageInput-BdOxyamZ.js} +2 -2
- package/dist/{MultiSelect-CZ4hye2w.js → MultiSelect-Dmt1iWgB.js} +45 -44
- package/dist/{SearchInput-nr0CrMLK.js → SearchInput-81oecSco.js} +42 -38
- package/dist/{cards-BBgGXmYa.js → cards-BFa9EQc6.js} +1 -1
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/dialogs/AppDialog.d.ts +38 -7
- package/dist/components/core/dialogs/AppDialog.d.ts.map +1 -1
- package/dist/components/core/dialogs/FormDialog.d.ts +8 -1
- package/dist/components/core/dialogs/FormDialog.d.ts.map +1 -1
- package/dist/components/core/dialogs/index.d.ts +1 -1
- package/dist/components/core/dialogs/index.d.ts.map +1 -1
- package/dist/components/core/dialogs/index.js +3 -3
- package/dist/components/core/filters/index.js +5 -5
- package/dist/components/core/forms/GenericForm.d.ts +4 -3
- package/dist/components/core/forms/GenericForm.d.ts.map +1 -1
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/index.js +17 -17
- package/dist/components/core/inputs/MultiSelect.d.ts +13 -3
- package/dist/components/core/inputs/MultiSelect.d.ts.map +1 -1
- package/dist/components/core/inputs/SingleSelect.d.ts +10 -2
- package/dist/components/core/inputs/SingleSelect.d.ts.map +1 -1
- package/dist/components/core/inputs/index.d.ts +1 -0
- package/dist/components/core/inputs/index.d.ts.map +1 -1
- package/dist/components/core/inputs/index.js +4 -4
- package/dist/components/core/language/index.js +1 -1
- package/dist/components/core/layouts/index.js +6 -6
- package/dist/components/core/navbar/index.js +1 -1
- package/dist/components/core/states/ErrorAlert.d.ts +5 -2
- package/dist/components/core/states/ErrorAlert.d.ts.map +1 -1
- package/dist/components/core/states/index.js +2 -2
- package/dist/components/core/table/index.js +3 -3
- package/dist/components/core/tabs/index.js +4 -4
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +19 -19
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/command.d.ts +7 -7
- package/dist/components/ui/index.js +4 -4
- package/dist/components/ui/input-otp.d.ts +2 -2
- package/dist/dialogs-CUKX7EFT.js +217 -0
- package/dist/{inputs-BMCt-VqZ.js → inputs-V2h_AcMW.js} +3 -3
- package/dist/{language-DOGOdjzx.js → language-9nbLYpqG.js} +2 -2
- package/dist/{navbar-CCHGdEzE.js → navbar-BLdw6QDi.js} +2 -2
- package/dist/{select-DmLScQKX.js → select-CfhuieLs.js} +1 -1
- package/dist/{sheet-DQTOen4V.js → sheet-DRzg-JWH.js} +1 -1
- package/dist/{states-BQK9jqS4.js → states-C4MdmAbW.js} +1 -1
- package/dist/tailwind/index.d.ts +5 -0
- package/dist/tailwind/index.d.ts.map +1 -1
- package/dist/tailwind/index.js +5 -0
- package/dist/{theme-q2uzluEd.js → theme-2eQs7CHF.js} +2 -2
- package/dist/{tooltip-BmZ9Bfou.js → tooltip-Bu3wNhtW.js} +1 -1
- package/dist/types/ButtonVariantType.d.ts +9 -1
- package/dist/types/ButtonVariantType.d.ts.map +1 -1
- package/dist/{ui-D8Pg34YW.js → ui-DVtB9U8H.js} +3 -3
- package/package.json +1 -1
- package/dist/ErrorAlert-L2s8Dd1_.js +0 -27
- package/dist/GenericForm-D7ni-5-4.js +0 -309
- package/dist/dialogs-BjqvZvax.js +0 -207
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "../../../tailwind.helper-CJaRYBmL.js";
|
|
2
2
|
import { c as t, d as n, s as r } from "../../../chart-Dq3AIrue.js";
|
|
3
3
|
import { t as i } from "../../../i18n-d2p0RJo9.js";
|
|
4
|
-
import { _ as a, g as o, h as s, m as c } from "../../../ui-
|
|
5
|
-
import { d as l } from "../../../sheet-
|
|
6
|
-
import { i as u, l as d, n as f, t as p, u as m } from "../../../select-
|
|
7
|
-
import { t as h } from "../../../AppActions-
|
|
4
|
+
import { _ as a, g as o, h as s, m as c } from "../../../ui-DVtB9U8H.js";
|
|
5
|
+
import { d as l } from "../../../sheet-DRzg-JWH.js";
|
|
6
|
+
import { i as u, l as d, n as f, t as p, u as m } from "../../../select-CfhuieLs.js";
|
|
7
|
+
import { t as h } from "../../../AppActions-BMh044Sc.js";
|
|
8
8
|
import { t as g } from "../../../AppTitle-BZ5jQWbs.js";
|
|
9
9
|
import { useEffect as _, useRef as v } from "react";
|
|
10
10
|
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../theme-
|
|
1
|
+
import { t as e } from "../../../theme-2eQs7CHF.js";
|
|
2
2
|
export { e as ThemeSelector };
|
package/dist/components/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../chart-Dq3AIrue.js";
|
|
2
|
-
import { a as f, i as p, n as m, o as h, r as g, t as _ } from "../cards-
|
|
3
|
-
import { $ as v, $t as y, A as b, An as x, At as S, B as C, Bn as w, Bt as T, C as E, Cn as D, Ct as O, D as k, Dn as A, Dt as j, E as M, En as N, Et as P, F, Fn as I, Ft as L, G as R, Gn as z, Gt as B, H as V, Hn as H, Ht as U, I as W, In as G, It as K, J as q, Jn as J, Jt as Y, K as X, Kn as Z, Kt as Q, L as $, Ln as ee, Lt as te, M as ne, Mn as re, Mt as ie, N as ae, Nn as oe, Nt as se, O as ce, On as le, Ot as ue, P as de, Pn as fe, Pt as pe, Q as me, Qn as he, Qt as ge, R as _e, Rn as ve, Rt as ye, S as be, Sn as xe, St as Se, T as Ce, Tn as we, Tt as Te, U as Ee, Un as De, Ut as Oe, V as ke, Vn as Ae, Vt as je, W as Me, Wn as Ne, Wt as Pe, X as Fe, Xn as Ie, Xt as Le, Y as Re, Yn as ze, Yt as Be, Z as Ve, Zn as He, Zt as Ue, _ as We, _n as Ge, _t as Ke, a as qe, an as Je, at as Ye, b as Xe, bn as Ze, bt as Qe, c as $e, cn as et, ct as tt, d as nt, dn as rt, dt as it, en as at, et as ot, f as st, fn as ct, ft as lt, g as ut, gn as dt, gt as ft, h as pt, hn as mt, ht, i as gt, in as _t, it as vt, j as yt, jn as bt, jt as xt, k as St, kn as Ct, kt as wt, l as Tt, ln as Et, lt as Dt, m as Ot, mn as kt, mt as At, n as jt, nn as Mt, nt as Nt, o as Pt, on as Ft, ot as It, p as Lt, pn as Rt, pt as zt, q as Bt, qn as Vt, qt as Ht, r as Ut, rn as Wt, rt as Gt, s as Kt, sn as qt, st as Jt, t as Yt, tn as Xt, tt as Zt, u as Qt, un as $t, ut as en, v as tn, vn as nn, vt as rn, w as an, wn as on, wt as sn, x as cn, xn as ln, xt as un, y as dn, yn as fn, yt as pn, z as mn, zn as hn, zt as gn } from "../ui-
|
|
2
|
+
import { a as f, i as p, n as m, o as h, r as g, t as _ } from "../cards-BFa9EQc6.js";
|
|
3
|
+
import { $ as v, $t as y, A as b, An as x, At as S, B as C, Bn as w, Bt as T, C as E, Cn as D, Ct as O, D as k, Dn as A, Dt as j, E as M, En as N, Et as P, F, Fn as I, Ft as L, G as R, Gn as z, Gt as B, H as V, Hn as H, Ht as U, I as W, In as G, It as K, J as q, Jn as J, Jt as Y, K as X, Kn as Z, Kt as Q, L as $, Ln as ee, Lt as te, M as ne, Mn as re, Mt as ie, N as ae, Nn as oe, Nt as se, O as ce, On as le, Ot as ue, P as de, Pn as fe, Pt as pe, Q as me, Qn as he, Qt as ge, R as _e, Rn as ve, Rt as ye, S as be, Sn as xe, St as Se, T as Ce, Tn as we, Tt as Te, U as Ee, Un as De, Ut as Oe, V as ke, Vn as Ae, Vt as je, W as Me, Wn as Ne, Wt as Pe, X as Fe, Xn as Ie, Xt as Le, Y as Re, Yn as ze, Yt as Be, Z as Ve, Zn as He, Zt as Ue, _ as We, _n as Ge, _t as Ke, a as qe, an as Je, at as Ye, b as Xe, bn as Ze, bt as Qe, c as $e, cn as et, ct as tt, d as nt, dn as rt, dt as it, en as at, et as ot, f as st, fn as ct, ft as lt, g as ut, gn as dt, gt as ft, h as pt, hn as mt, ht, i as gt, in as _t, it as vt, j as yt, jn as bt, jt as xt, k as St, kn as Ct, kt as wt, l as Tt, ln as Et, lt as Dt, m as Ot, mn as kt, mt as At, n as jt, nn as Mt, nt as Nt, o as Pt, on as Ft, ot as It, p as Lt, pn as Rt, pt as zt, q as Bt, qn as Vt, qt as Ht, r as Ut, rn as Wt, rt as Gt, s as Kt, sn as qt, st as Jt, t as Yt, tn as Xt, tt as Zt, u as Qt, un as $t, ut as en, v as tn, vn as nn, vt as rn, w as an, wn as on, wt as sn, x as cn, xn as ln, xt as un, y as dn, yn as fn, yt as pn, z as mn, zn as hn, zt as gn } from "../ui-DVtB9U8H.js";
|
|
4
4
|
import { n as _n, r as vn, t as yn } from "../alert-REQGK9bR.js";
|
|
5
|
-
import { a as bn, c as xn, i as Sn, n as Cn, o as wn, r as Tn, s as En, t as Dn } from "../tooltip-
|
|
6
|
-
import { A as On, C as kn, D as An, E as jn, F as Mn, M as Nn, N as Pn, O as Fn, P as In, S as Ln, T as Rn, _ as zn, a as Bn, b as Vn, c as Hn, d as Un, f as Wn, g as Gn, h as Kn, i as qn, j as Jn, k as Yn, l as Xn, m as Zn, n as Qn, o as $n, p as er, r as tr, s as nr, t as rr, u as ir, v as ar, w as or, x as sr, y as cr } from "../sheet-
|
|
7
|
-
import { a as lr, c as ur, i as dr, l as fr, n as pr, o as mr, r as hr, s as gr, t as _r, u as vr } from "../select-
|
|
5
|
+
import { a as bn, c as xn, i as Sn, n as Cn, o as wn, r as Tn, s as En, t as Dn } from "../tooltip-Bu3wNhtW.js";
|
|
6
|
+
import { A as On, C as kn, D as An, E as jn, F as Mn, M as Nn, N as Pn, O as Fn, P as In, S as Ln, T as Rn, _ as zn, a as Bn, b as Vn, c as Hn, d as Un, f as Wn, g as Gn, h as Kn, i as qn, j as Jn, k as Yn, l as Xn, m as Zn, n as Qn, o as $n, p as er, r as tr, s as nr, t as rr, u as ir, v as ar, w as or, x as sr, y as cr } from "../sheet-DRzg-JWH.js";
|
|
7
|
+
import { a as lr, c as ur, i as dr, l as fr, n as pr, o as mr, r as hr, s as gr, t as _r, u as vr } from "../select-CfhuieLs.js";
|
|
8
8
|
import { t as yr } from "../skeleton-D6Ga4BLw.js";
|
|
9
9
|
import { a as br, c as xr, i as Sr, n as Cr, o as wr, r as Tr, s as Er, t as Dr } from "../charts-C7MWuqi9.js";
|
|
10
|
-
import {
|
|
11
|
-
import { t as jr } from "../
|
|
12
|
-
import { t as Mr } from "../
|
|
13
|
-
import { t as Nr } from "../
|
|
14
|
-
import { t as Pr } from "../
|
|
15
|
-
import { t as Fr } from "../
|
|
16
|
-
import { t as Ir } from "../
|
|
17
|
-
import { i as Lr, n as Rr, r as zr, t as Br } from "../SearchInput-
|
|
10
|
+
import { t as Or } from "../ErrorAlert-0L-Dwqu8.js";
|
|
11
|
+
import { n as kr, r as Ar, t as jr } from "../dialogs-CUKX7EFT.js";
|
|
12
|
+
import { t as Mr } from "../ImageInput-BdOxyamZ.js";
|
|
13
|
+
import { t as Nr } from "../AppActions-BMh044Sc.js";
|
|
14
|
+
import { t as Pr } from "../AppSubTitle-BfZTloah.js";
|
|
15
|
+
import { t as Fr } from "../MultiSelect-Dmt1iWgB.js";
|
|
16
|
+
import { t as Ir } from "../GenericForm-BV8n9y1n.js";
|
|
17
|
+
import { i as Lr, n as Rr, r as zr, t as Br } from "../SearchInput-81oecSco.js";
|
|
18
18
|
import { ActiveFilters as Vr, AdvancedFilters as Hr, FilterField as Ur, FilterPills as Wr, FilterPillsGroup as Gr, TableFilter as Kr } from "./core/filters/index.js";
|
|
19
|
-
import { t as qr } from "../inputs-
|
|
20
|
-
import { t as Jr } from "../language-
|
|
19
|
+
import { t as qr } from "../inputs-V2h_AcMW.js";
|
|
20
|
+
import { t as Jr } from "../language-9nbLYpqG.js";
|
|
21
21
|
import { t as Yr } from "../AppTitle-BZ5jQWbs.js";
|
|
22
|
-
import { n as Xr, t as Zr } from "../states-
|
|
22
|
+
import { n as Xr, t as Zr } from "../states-C4MdmAbW.js";
|
|
23
23
|
import { AppPageHeader as Qr, KpiCardsLayout as $r } from "./core/layouts/index.js";
|
|
24
|
-
import { a as ei, i as ti, n as ni, o as ri, r as ii, t as ai } from "../navbar-
|
|
24
|
+
import { a as ei, i as ti, n as ni, o as ri, r as ii, t as ai } from "../navbar-BLdw6QDi.js";
|
|
25
25
|
import { DataTable as oi, JsonTableOutput as si, TableActions as ci, TableBody as li, TableBulkActions as ui, TableHeader as di, TablePagination as fi, TableSettings as pi } from "./core/table/index.js";
|
|
26
26
|
import { AppTabContainer as mi, AppTabHeader as hi, AppTabs as gi, AppVerticalTabs as _i } from "./core/tabs/index.js";
|
|
27
|
-
import { t as vi } from "../theme-
|
|
27
|
+
import { t as vi } from "../theme-2eQs7CHF.js";
|
|
28
28
|
import "./core/index.js";
|
|
29
|
-
export { ze as Accordion, Ie as AccordionContent, He as AccordionItem, he as AccordionTrigger, Vr as ActiveFilters, Hr as AdvancedFilters, yn as Alert, _n as AlertDescription, w as AlertDialog, Ae as AlertDialogAction, H as AlertDialogCancel, De as AlertDialogContent, Ne as AlertDialogDescription, z as AlertDialogFooter, Z as AlertDialogHeader, Vt as AlertDialogTitle, J as AlertDialogTrigger, vn as AlertTitle,
|
|
29
|
+
export { ze as Accordion, Ie as AccordionContent, He as AccordionItem, he as AccordionTrigger, Vr as ActiveFilters, Hr as AdvancedFilters, yn as Alert, _n as AlertDescription, w as AlertDialog, Ae as AlertDialogAction, H as AlertDialogCancel, De as AlertDialogContent, Ne as AlertDialogDescription, z as AlertDialogFooter, Z as AlertDialogHeader, Vt as AlertDialogTitle, J as AlertDialogTrigger, vn as AlertTitle, Nr as AppActions, Ar as AppDialog, Qr as AppPageHeader, Pr as AppSubTitle, mi as AppTabContainer, hi as AppTabHeader, gi as AppTabs, Yr as AppTitle, _i as AppVerticalTabs, hn as AspectRatio, G as Avatar, ee as AvatarFallback, ve as AvatarImage, fe as Badge, xr as BarChartHorizontal, Er as BarChartVertical, A as Breadcrumb, le as BreadcrumbEllipsis, Ct as BreadcrumbItem, x as BreadcrumbLink, bt as BreadcrumbList, re as BreadcrumbPage, oe as BreadcrumbSeparator, En as Button, br as CHART_COLORS, N as Calendar, l as Card, t as CardContent, a as CardDescription, d as CardFooter, n as CardHeader, r as CardTitle, ln as Carousel, xe as CarouselContent, D as CarouselItem, on as CarouselNext, we as CarouselPrevious, Sr as ChartCard, u as ChartContainer, o as ChartLegend, c as ChartLegendContent, i as ChartStyle, e as ChartTooltip, s as ChartTooltipContent, Ze as Checkbox, Tr as CircularGauge, Ge as Collapsible, nn as CollapsibleContent, fn as CollapsibleTrigger, zn as Command, ar as CommandDialog, cr as CommandEmpty, Vn as CommandGroup, sr as CommandInput, Ln as CommandItem, kn as CommandList, or as CommandSeparator, Rn as CommandShortcut, jr as ConfirmationDialog, Mt as ContextMenu, Wt as ContextMenuCheckboxItem, _t as ContextMenuContent, Je as ContextMenuGroup, Ft as ContextMenuItem, qt as ContextMenuLabel, et as ContextMenuPortal, Et as ContextMenuRadioGroup, $t as ContextMenuRadioItem, rt as ContextMenuSeparator, ct as ContextMenuShortcut, Rt as ContextMenuSub, kt as ContextMenuSubContent, mt as ContextMenuSubTrigger, dt as ContextMenuTrigger, h as DashboardCard, oi as DataTable, Lr as DatePicker, zr as DateRangePicker, jn as Dialog, An as DialogClose, Fn as DialogContent, Yn as DialogDescription, On as DialogFooter, Jn as DialogHeader, Nn as DialogOverlay, Pn as DialogPortal, In as DialogTitle, Mn as DialogTrigger, Q as Drawer, Ht as DrawerClose, Y as DrawerContent, Be as DrawerDescription, Le as DrawerFooter, Ue as DrawerHeader, ge as DrawerOverlay, y as DrawerPortal, at as DrawerTitle, Xt as DrawerTrigger, xt as DropdownMenu, ie as DropdownMenuCheckboxItem, se as DropdownMenuContent, pe as DropdownMenuGroup, L as DropdownMenuItem, K as DropdownMenuLabel, te as DropdownMenuPortal, ye as DropdownMenuRadioGroup, gn as DropdownMenuRadioItem, T as DropdownMenuSeparator, je as DropdownMenuShortcut, U as DropdownMenuSub, Oe as DropdownMenuSubContent, Pe as DropdownMenuSubTrigger, B as DropdownMenuTrigger, Or as ErrorAlert, Xr as ErrorState, Ur as FilterField, Wr as FilterPills, Gr as FilterPillsGroup, Se as Form, O as FormControl, sn as FormDescription, kr as FormDialog, Te as FormField, P as FormItem, j as FormLabel, ue as FormMessage, Ir as GenericForm, ri as GlobalSearch, pn as HoverCard, Qe as HoverCardContent, un as HoverCardTrigger, Mr as ImageInput, Gn as Input, ht as InputOTP, ft as InputOTPGroup, Ke as InputOTPSeparator, rn as InputOTPSlot, si as JsonTableOutput, f as KpiCard, p as KpiCards, $r as KpiCardsLayout, S as Label, Jr as LanguageSelector, Cr as LineChart, Zr as LoadingState, v as Menubar, ot as MenubarCheckboxItem, Zt as MenubarContent, Nt as MenubarGroup, Gt as MenubarItem, vt as MenubarLabel, Ye as MenubarMenu, It as MenubarPortal, Jt as MenubarRadioGroup, tt as MenubarRadioItem, Dt as MenubarSeparator, en as MenubarShortcut, it as MenubarSub, lt as MenubarSubContent, zt as MenubarSubTrigger, At as MenubarTrigger, g as MetricCard, Fr as MultiSelect, Me as NavigationMenu, R as NavigationMenuContent, X as NavigationMenuIndicator, Bt as NavigationMenuItem, q as NavigationMenuLink, Re as NavigationMenuList, Fe as NavigationMenuTrigger, Ve as NavigationMenuViewport, ei as NotificationsBell, $ as Pagination, _e as PaginationContent, mn as PaginationEllipsis, C as PaginationItem, ke as PaginationLink, V as PaginationNext, Ee as PaginationPrevious, Dr as PieChart, er as Popover, Zn as PopoverContent, Kn as PopoverTrigger, W as Progress, de as RadioGroup, F as RadioGroupItem, qr as RatingInput, yt as ResizableHandle, ne as ResizablePanel, ae as ResizablePanelGroup, Un as ScrollArea, Wn as ScrollBar, Br as SearchInput, _r as Select, pr as SelectContent, hr as SelectGroup, dr as SelectItem, lr as SelectLabel, mr as SelectScrollDownButton, gr as SelectScrollUpButton, ur as SelectSeparator, fr as SelectTrigger, vr as SelectValue, b as Separator, rr as Sheet, Qn as SheetClose, tr as SheetContent, qn as SheetDescription, Bn as SheetFooter, $n as SheetHeader, nr as SheetOverlay, Hn as SheetPortal, Xn as SheetTitle, ir as SheetTrigger, ii as Sidebar, ni as SidebarHeader, ti as SidebarNavItem, be as SimpleTable, E as SimpleTableBody, an as SimpleTableCaption, Ce as SimpleTableCell, M as SimpleTableFooter, k as SimpleTableHead, ce as SimpleTableHeader, St as SimpleTableRow, Rr as SingleSelect, yr as Skeleton, m as SkeletonCard, _ as SkeletonCards, cn as Slider, dn as Sonner, tn as Switch, ci as TableActions, li as TableBody, ui as TableBulkActions, Kr as TableFilter, di as TableHeader, fi as TablePagination, pi as TableSettings, Ot as Tabs, pt as TabsContent, ut as TabsList, We as TabsTrigger, Lt as Textarea, vi as ThemeSelector, Pt as Toast, Kt as ToastAction, $e as ToastClose, Tt as ToastDescription, Qt as ToastProvider, nt as ToastTitle, st as ToastViewport, qe as Toaster, Ut as Toggle, Yt as ToggleGroup, jt as ToggleGroupItem, Dn as Tooltip, Cn as TooltipContent, Tn as TooltipProvider, Sn as TooltipTrigger, ai as Topbar, I as badgeVariants, xn as buttonVariants, bn as controlBaseClass, wn as controlTriggerClass, wr as getChartColor, me as navigationMenuTriggerStyle, Xe as toast, gt as toggleVariants, wt as useFormField };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "
|
|
5
|
-
size?: "default" | "
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "brand" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
asChild?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,QAAA,MAAM,cAAc;;;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,QAAA,MAAM,cAAc;;;8EA2BnB,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IACrH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,uFAGV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
6
6
|
ref?: React.Ref<HTMLDivElement>;
|
|
7
7
|
} & {
|
|
8
8
|
asChild?: boolean;
|
|
9
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement
|
|
9
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
10
|
label?: string;
|
|
11
11
|
shouldFilter?: boolean;
|
|
12
12
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -48,7 +48,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
48
48
|
ref?: React.Ref<HTMLInputElement>;
|
|
49
49
|
} & {
|
|
50
50
|
asChild?: boolean;
|
|
51
|
-
}, "
|
|
51
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
52
52
|
value?: string;
|
|
53
53
|
onValueChange?: (search: string) => void;
|
|
54
54
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -58,7 +58,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
58
58
|
ref?: React.Ref<HTMLDivElement>;
|
|
59
59
|
} & {
|
|
60
60
|
asChild?: boolean;
|
|
61
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement
|
|
61
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
62
62
|
label?: string;
|
|
63
63
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
64
64
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -67,14 +67,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
67
67
|
ref?: React.Ref<HTMLDivElement>;
|
|
68
68
|
} & {
|
|
69
69
|
asChild?: boolean;
|
|
70
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement
|
|
70
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
71
71
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
72
72
|
children?: React.ReactNode;
|
|
73
73
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
74
74
|
ref?: React.Ref<HTMLDivElement>;
|
|
75
75
|
} & {
|
|
76
76
|
asChild?: boolean;
|
|
77
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement
|
|
77
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
78
78
|
heading?: React.ReactNode;
|
|
79
79
|
value?: string;
|
|
80
80
|
forceMount?: boolean;
|
|
@@ -83,7 +83,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
83
83
|
ref?: React.Ref<HTMLDivElement>;
|
|
84
84
|
} & {
|
|
85
85
|
asChild?: boolean;
|
|
86
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement
|
|
86
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
87
87
|
alwaysRender?: boolean;
|
|
88
88
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
89
89
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -92,7 +92,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
92
92
|
ref?: React.Ref<HTMLDivElement>;
|
|
93
93
|
} & {
|
|
94
94
|
asChild?: boolean;
|
|
95
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement
|
|
95
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
96
96
|
disabled?: boolean;
|
|
97
97
|
onSelect?: (value: string) => void;
|
|
98
98
|
value?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../../chart-Dq3AIrue.js";
|
|
2
|
-
import { $ as f, $t as p, A as m, An as h, At as g, B as _, Bn as v, Bt as y, C as b, Cn as x, Ct as S, D as C, Dn as w, Dt as T, E, En as D, Et as O, F as k, Fn as A, Ft as j, G as M, Gn as N, Gt as P, H as F, Hn as I, Ht as L, I as R, In as z, It as B, J as V, Jn as H, Jt as U, K as W, Kn as G, Kt as K, L as q, Ln as J, Lt as Y, M as X, Mn as Z, Mt as Q, N as $, Nn as ee, Nt as te, O as ne, On as re, Ot as ie, P as ae, Pn as oe, Pt as se, Q as ce, Qn as le, Qt as ue, R as de, Rn as fe, Rt as pe, S as me, Sn as he, St as ge, T as _e, Tn as ve, Tt as ye, U as be, Un as xe, Ut as Se, V as Ce, Vn as we, Vt as Te, W as Ee, Wn as De, Wt as Oe, X as ke, Xn as Ae, Xt as je, Y as Me, Yn as Ne, Yt as Pe, Z as Fe, Zn as Ie, Zt as Le, _ as Re, _n as ze, _t as Be, a as Ve, an as He, at as Ue, b as We, bn as Ge, bt as Ke, c as qe, cn as Je, ct as Ye, d as Xe, dn as Ze, dt as Qe, en as $e, et, f as tt, fn as nt, ft as rt, g as it, gn as at, gt as ot, h as st, hn as ct, ht as lt, i as ut, in as dt, it as ft, j as pt, jn as mt, jt as ht, k as gt, kn as _t, kt as vt, l as yt, ln as bt, lt as xt, m as St, mn as Ct, mt as wt, n as Tt, nn as Et, nt as Dt, o as Ot, on as kt, ot as At, p as jt, pn as Mt, pt as Nt, q as Pt, qn as Ft, qt as It, r as Lt, rn as Rt, rt as zt, s as Bt, sn as Vt, st as Ht, t as Ut, tn as Wt, tt as Gt, u as Kt, un as qt, ut as Jt, v as Yt, vn as Xt, vt as Zt, w as Qt, wn as $t, wt as en, x as tn, xn as nn, xt as rn, y as an, yn as on, yt as sn, z as cn, zn as ln, zt as un } from "../../ui-
|
|
2
|
+
import { $ as f, $t as p, A as m, An as h, At as g, B as _, Bn as v, Bt as y, C as b, Cn as x, Ct as S, D as C, Dn as w, Dt as T, E, En as D, Et as O, F as k, Fn as A, Ft as j, G as M, Gn as N, Gt as P, H as F, Hn as I, Ht as L, I as R, In as z, It as B, J as V, Jn as H, Jt as U, K as W, Kn as G, Kt as K, L as q, Ln as J, Lt as Y, M as X, Mn as Z, Mt as Q, N as $, Nn as ee, Nt as te, O as ne, On as re, Ot as ie, P as ae, Pn as oe, Pt as se, Q as ce, Qn as le, Qt as ue, R as de, Rn as fe, Rt as pe, S as me, Sn as he, St as ge, T as _e, Tn as ve, Tt as ye, U as be, Un as xe, Ut as Se, V as Ce, Vn as we, Vt as Te, W as Ee, Wn as De, Wt as Oe, X as ke, Xn as Ae, Xt as je, Y as Me, Yn as Ne, Yt as Pe, Z as Fe, Zn as Ie, Zt as Le, _ as Re, _n as ze, _t as Be, a as Ve, an as He, at as Ue, b as We, bn as Ge, bt as Ke, c as qe, cn as Je, ct as Ye, d as Xe, dn as Ze, dt as Qe, en as $e, et, f as tt, fn as nt, ft as rt, g as it, gn as at, gt as ot, h as st, hn as ct, ht as lt, i as ut, in as dt, it as ft, j as pt, jn as mt, jt as ht, k as gt, kn as _t, kt as vt, l as yt, ln as bt, lt as xt, m as St, mn as Ct, mt as wt, n as Tt, nn as Et, nt as Dt, o as Ot, on as kt, ot as At, p as jt, pn as Mt, pt as Nt, q as Pt, qn as Ft, qt as It, r as Lt, rn as Rt, rt as zt, s as Bt, sn as Vt, st as Ht, t as Ut, tn as Wt, tt as Gt, u as Kt, un as qt, ut as Jt, v as Yt, vn as Xt, vt as Zt, w as Qt, wn as $t, wt as en, x as tn, xn as nn, xt as rn, y as an, yn as on, yt as sn, z as cn, zn as ln, zt as un } from "../../ui-DVtB9U8H.js";
|
|
3
3
|
import { n as dn, r as fn, t as pn } from "../../alert-REQGK9bR.js";
|
|
4
|
-
import { a as mn, c as hn, i as gn, n as _n, o as vn, r as yn, s as bn, t as xn } from "../../tooltip-
|
|
5
|
-
import { A as Sn, C as Cn, D as wn, E as Tn, F as En, M as Dn, N as On, O as kn, P as An, S as jn, T as Mn, _ as Nn, a as Pn, b as Fn, c as In, d as Ln, f as Rn, g as zn, h as Bn, i as Vn, j as Hn, k as Un, l as Wn, m as Gn, n as Kn, o as qn, p as Jn, r as Yn, s as Xn, t as Zn, u as Qn, v as $n, w as er, x as tr, y as nr } from "../../sheet-
|
|
6
|
-
import { a as rr, c as ir, i as ar, l as or, n as sr, o as cr, r as lr, s as ur, t as dr, u as fr } from "../../select-
|
|
4
|
+
import { a as mn, c as hn, i as gn, n as _n, o as vn, r as yn, s as bn, t as xn } from "../../tooltip-Bu3wNhtW.js";
|
|
5
|
+
import { A as Sn, C as Cn, D as wn, E as Tn, F as En, M as Dn, N as On, O as kn, P as An, S as jn, T as Mn, _ as Nn, a as Pn, b as Fn, c as In, d as Ln, f as Rn, g as zn, h as Bn, i as Vn, j as Hn, k as Un, l as Wn, m as Gn, n as Kn, o as qn, p as Jn, r as Yn, s as Xn, t as Zn, u as Qn, v as $n, w as er, x as tr, y as nr } from "../../sheet-DRzg-JWH.js";
|
|
6
|
+
import { a as rr, c as ir, i as ar, l as or, n as sr, o as cr, r as lr, s as ur, t as dr, u as fr } from "../../select-CfhuieLs.js";
|
|
7
7
|
import { t as pr } from "../../skeleton-D6Ga4BLw.js";
|
|
8
8
|
export { Ne as Accordion, Ae as AccordionContent, Ie as AccordionItem, le as AccordionTrigger, pn as Alert, dn as AlertDescription, v as AlertDialog, we as AlertDialogAction, I as AlertDialogCancel, xe as AlertDialogContent, De as AlertDialogDescription, N as AlertDialogFooter, G as AlertDialogHeader, Ft as AlertDialogTitle, H as AlertDialogTrigger, fn as AlertTitle, ln as AspectRatio, z as Avatar, J as AvatarFallback, fe as AvatarImage, oe as Badge, w as Breadcrumb, re as BreadcrumbEllipsis, _t as BreadcrumbItem, h as BreadcrumbLink, mt as BreadcrumbList, Z as BreadcrumbPage, ee as BreadcrumbSeparator, bn as Button, D as Calendar, l as Card, t as CardContent, a as CardDescription, d as CardFooter, n as CardHeader, r as CardTitle, nn as Carousel, he as CarouselContent, x as CarouselItem, $t as CarouselNext, ve as CarouselPrevious, u as ChartContainer, o as ChartLegend, c as ChartLegendContent, i as ChartStyle, e as ChartTooltip, s as ChartTooltipContent, Ge as Checkbox, ze as Collapsible, Xt as CollapsibleContent, on as CollapsibleTrigger, Nn as Command, $n as CommandDialog, nr as CommandEmpty, Fn as CommandGroup, tr as CommandInput, jn as CommandItem, Cn as CommandList, er as CommandSeparator, Mn as CommandShortcut, Et as ContextMenu, Rt as ContextMenuCheckboxItem, dt as ContextMenuContent, He as ContextMenuGroup, kt as ContextMenuItem, Vt as ContextMenuLabel, Je as ContextMenuPortal, bt as ContextMenuRadioGroup, qt as ContextMenuRadioItem, Ze as ContextMenuSeparator, nt as ContextMenuShortcut, Mt as ContextMenuSub, Ct as ContextMenuSubContent, ct as ContextMenuSubTrigger, at as ContextMenuTrigger, Tn as Dialog, wn as DialogClose, kn as DialogContent, Un as DialogDescription, Sn as DialogFooter, Hn as DialogHeader, Dn as DialogOverlay, On as DialogPortal, An as DialogTitle, En as DialogTrigger, K as Drawer, It as DrawerClose, U as DrawerContent, Pe as DrawerDescription, je as DrawerFooter, Le as DrawerHeader, ue as DrawerOverlay, p as DrawerPortal, $e as DrawerTitle, Wt as DrawerTrigger, ht as DropdownMenu, Q as DropdownMenuCheckboxItem, te as DropdownMenuContent, se as DropdownMenuGroup, j as DropdownMenuItem, B as DropdownMenuLabel, Y as DropdownMenuPortal, pe as DropdownMenuRadioGroup, un as DropdownMenuRadioItem, y as DropdownMenuSeparator, Te as DropdownMenuShortcut, L as DropdownMenuSub, Se as DropdownMenuSubContent, Oe as DropdownMenuSubTrigger, P as DropdownMenuTrigger, ge as Form, S as FormControl, en as FormDescription, ye as FormField, O as FormItem, T as FormLabel, ie as FormMessage, sn as HoverCard, Ke as HoverCardContent, rn as HoverCardTrigger, zn as Input, lt as InputOTP, ot as InputOTPGroup, Be as InputOTPSeparator, Zt as InputOTPSlot, g as Label, f as Menubar, et as MenubarCheckboxItem, Gt as MenubarContent, Dt as MenubarGroup, zt as MenubarItem, ft as MenubarLabel, Ue as MenubarMenu, At as MenubarPortal, Ht as MenubarRadioGroup, Ye as MenubarRadioItem, xt as MenubarSeparator, Jt as MenubarShortcut, Qe as MenubarSub, rt as MenubarSubContent, Nt as MenubarSubTrigger, wt as MenubarTrigger, Ee as NavigationMenu, M as NavigationMenuContent, W as NavigationMenuIndicator, Pt as NavigationMenuItem, V as NavigationMenuLink, Me as NavigationMenuList, ke as NavigationMenuTrigger, Fe as NavigationMenuViewport, q as Pagination, de as PaginationContent, cn as PaginationEllipsis, _ as PaginationItem, Ce as PaginationLink, F as PaginationNext, be as PaginationPrevious, Jn as Popover, Gn as PopoverContent, Bn as PopoverTrigger, R as Progress, ae as RadioGroup, k as RadioGroupItem, pt as ResizableHandle, X as ResizablePanel, $ as ResizablePanelGroup, Ln as ScrollArea, Rn as ScrollBar, dr as Select, sr as SelectContent, lr as SelectGroup, ar as SelectItem, rr as SelectLabel, cr as SelectScrollDownButton, ur as SelectScrollUpButton, ir as SelectSeparator, or as SelectTrigger, fr as SelectValue, m as Separator, Zn as Sheet, Kn as SheetClose, Yn as SheetContent, Vn as SheetDescription, Pn as SheetFooter, qn as SheetHeader, Xn as SheetOverlay, In as SheetPortal, Wn as SheetTitle, Qn as SheetTrigger, me as SimpleTable, b as SimpleTableBody, Qt as SimpleTableCaption, _e as SimpleTableCell, E as SimpleTableFooter, C as SimpleTableHead, ne as SimpleTableHeader, gt as SimpleTableRow, pr as Skeleton, tn as Slider, an as Sonner, Yt as Switch, St as Tabs, st as TabsContent, it as TabsList, Re as TabsTrigger, jt as Textarea, Ot as Toast, Bt as ToastAction, qe as ToastClose, yt as ToastDescription, Kt as ToastProvider, Xe as ToastTitle, tt as ToastViewport, Ve as Toaster, Lt as Toggle, Ut as ToggleGroup, Tt as ToggleGroupItem, xn as Tooltip, _n as TooltipContent, yn as TooltipProvider, gn as TooltipTrigger, A as badgeVariants, hn as buttonVariants, mn as controlBaseClass, vn as controlTriggerClass, ce as navigationMenuTriggerStyle, We as toast, ut as toggleVariants, vt as useFormField };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
2
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "nonce" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
3
3
|
value?: string;
|
|
4
4
|
onChange?: (newValue: string) => unknown;
|
|
5
5
|
maxLength: number;
|
|
@@ -13,7 +13,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
|
|
|
13
13
|
} & {
|
|
14
14
|
render: (props: import("input-otp").RenderProps) => React.ReactNode;
|
|
15
15
|
children?: never;
|
|
16
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
16
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "nonce" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
17
17
|
value?: string;
|
|
18
18
|
onChange?: (newValue: string) => unknown;
|
|
19
19
|
maxLength: number;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
+
import { t } from "./i18n-d2p0RJo9.js";
|
|
3
|
+
import { Bn as n, Gn as r, Hn as i, I as a, Kn as o, Un as s, Wn as c, qn as l } from "./ui-DVtB9U8H.js";
|
|
4
|
+
import { s as u } from "./tooltip-Bu3wNhtW.js";
|
|
5
|
+
import { E as d, O as f, P as p, j as m, k as h } from "./sheet-DRzg-JWH.js";
|
|
6
|
+
import { t as g } from "./ErrorAlert-0L-Dwqu8.js";
|
|
7
|
+
import { t as _ } from "./GenericForm-BV8n9y1n.js";
|
|
8
|
+
import { useEffect as v, useId as y, useState as b } from "react";
|
|
9
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
10
|
+
import { Pen as w, Save as T, X as E } from "lucide-react";
|
|
11
|
+
//#region src/components/core/dialogs/AppDialog.tsx
|
|
12
|
+
var D = {
|
|
13
|
+
sm: "sm:max-w-sm",
|
|
14
|
+
md: "sm:max-w-md",
|
|
15
|
+
lg: "sm:max-w-lg",
|
|
16
|
+
xl: "sm:max-w-xl",
|
|
17
|
+
"2xl": "sm:max-w-2xl",
|
|
18
|
+
"3xl": "sm:max-w-3xl",
|
|
19
|
+
"4xl": "sm:max-w-4xl",
|
|
20
|
+
full: "sm:max-w-[95vw]"
|
|
21
|
+
};
|
|
22
|
+
function O({ open: n, onOpenChange: r, config: i, isLoading: o, error: s, footer: c, className: l, children: _ }) {
|
|
23
|
+
let { t: v } = t(), { title: y, description: b, icon: x, size: w = "xl", maxWidth: T, actions: E, headerClassName: O, footerClassName: k } = i, A = o === !0, j = (e) => typeof e == "string" ? v(e) : e, M = (e) => {
|
|
24
|
+
!e && A || r(e);
|
|
25
|
+
}, N = c !== void 0 || E !== void 0 && E.length > 0;
|
|
26
|
+
return /* @__PURE__ */ S(d, {
|
|
27
|
+
open: n,
|
|
28
|
+
onOpenChange: M,
|
|
29
|
+
children: /* @__PURE__ */ C(f, {
|
|
30
|
+
className: e("max-h-[100dvh] sm:max-h-[90vh] border-0 shadow-2xl p-0 flex flex-col overflow-hidden", "[&>button]:text-brand-foreground [&>button]:focus:ring-brand-foreground", A && "[&>button]:pointer-events-none [&>button]:opacity-40", T ?? D[w], l),
|
|
31
|
+
children: [
|
|
32
|
+
A ? /* @__PURE__ */ S("div", {
|
|
33
|
+
className: "absolute top-0 left-0 right-0 z-10",
|
|
34
|
+
children: /* @__PURE__ */ S(a, {
|
|
35
|
+
indeterminate: !0,
|
|
36
|
+
className: "h-1 rounded-none"
|
|
37
|
+
})
|
|
38
|
+
}) : null,
|
|
39
|
+
/* @__PURE__ */ C(m, {
|
|
40
|
+
className: e("bg-gradient-to-r from-brand-from to-brand-to p-4 sm:p-6 pr-12 sm:pr-12 sm:rounded-t-surface shrink-0", O),
|
|
41
|
+
children: [/* @__PURE__ */ C(p, {
|
|
42
|
+
className: "text-xl sm:text-2xl font-bold flex items-center gap-2 text-brand-foreground",
|
|
43
|
+
children: [x === void 0 ? null : /* @__PURE__ */ S("div", {
|
|
44
|
+
className: "p-2 bg-brand-foreground/20 rounded-control",
|
|
45
|
+
children: /* @__PURE__ */ S(x, { className: "size-4 text-brand-foreground" })
|
|
46
|
+
}), j(y)]
|
|
47
|
+
}), b !== void 0 && b !== "" ? /* @__PURE__ */ S(h, {
|
|
48
|
+
className: "text-brand-foreground/80 text-base",
|
|
49
|
+
children: j(b)
|
|
50
|
+
}) : null]
|
|
51
|
+
}),
|
|
52
|
+
s ? /* @__PURE__ */ S("div", {
|
|
53
|
+
className: "px-4 sm:px-6 pt-4",
|
|
54
|
+
children: /* @__PURE__ */ S(g, {
|
|
55
|
+
error: s,
|
|
56
|
+
className: "max-w-full"
|
|
57
|
+
})
|
|
58
|
+
}) : null,
|
|
59
|
+
/* @__PURE__ */ S("div", {
|
|
60
|
+
className: "flex-1 overflow-y-auto px-4 sm:px-6 py-4",
|
|
61
|
+
children: _
|
|
62
|
+
}),
|
|
63
|
+
N ? /* @__PURE__ */ S("div", {
|
|
64
|
+
className: e("sm:rounded-b-surface border-t border-border bg-muted/40 shrink-0 p-4 sm:p-6", k),
|
|
65
|
+
children: c ?? /* @__PURE__ */ S("div", {
|
|
66
|
+
className: "flex justify-end gap-3",
|
|
67
|
+
children: E?.map((e) => /* @__PURE__ */ C(u, {
|
|
68
|
+
type: e.type ?? "button",
|
|
69
|
+
form: e.form,
|
|
70
|
+
variant: e.variant ?? "default",
|
|
71
|
+
onClick: e.onClick,
|
|
72
|
+
disabled: e.disabled === !0 || A && e.disableOnLoading !== !1,
|
|
73
|
+
className: e.className,
|
|
74
|
+
children: [e.icon === void 0 ? null : /* @__PURE__ */ S(e.icon, { className: "size-4" }), v(e.label)]
|
|
75
|
+
}, e.id ?? e.label))
|
|
76
|
+
})
|
|
77
|
+
}) : null
|
|
78
|
+
]
|
|
79
|
+
})
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/components/core/dialogs/FormDialog.tsx
|
|
84
|
+
function k({ open: e, onOpenChange: n, data: r, title: i, headerBadge: a, schema: o, onSave: s, customFooter: c, defaultEditing: l = !1, footerActions: d = !0, saveLabel: f, cancelLabel: p, hideSaveIcon: m = !1, size: h = "4xl", maxWidth: g, isLoading: D = !1 }) {
|
|
85
|
+
let { t: k } = t(), A = f ?? k("actions.save"), [j, M] = b(l), [N, P] = b(!1), F = y();
|
|
86
|
+
if (v(() => {
|
|
87
|
+
e && M(l);
|
|
88
|
+
}, [e, l]), r == null) return null;
|
|
89
|
+
let I = () => {
|
|
90
|
+
M(!0);
|
|
91
|
+
}, L = () => {
|
|
92
|
+
M(!1);
|
|
93
|
+
}, R = async (e) => {
|
|
94
|
+
if (s) {
|
|
95
|
+
P(!0);
|
|
96
|
+
try {
|
|
97
|
+
await s(e), M(!1);
|
|
98
|
+
} catch (e) {
|
|
99
|
+
console.error(e);
|
|
100
|
+
} finally {
|
|
101
|
+
P(!1);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}, z = [];
|
|
105
|
+
s !== void 0 && (j ? (p !== "" && z.push({
|
|
106
|
+
label: p ?? k("actions.cancel"),
|
|
107
|
+
onClick: L,
|
|
108
|
+
variant: "outline",
|
|
109
|
+
disabled: N || D,
|
|
110
|
+
icon: E
|
|
111
|
+
}), z.push({
|
|
112
|
+
label: N ? k("actions.saving") : A,
|
|
113
|
+
type: "submit",
|
|
114
|
+
form: F,
|
|
115
|
+
variant: "default",
|
|
116
|
+
disabled: N || D,
|
|
117
|
+
icon: m ? void 0 : T
|
|
118
|
+
})) : z.push({
|
|
119
|
+
label: k("actions.edit"),
|
|
120
|
+
onClick: I,
|
|
121
|
+
variant: "outline",
|
|
122
|
+
icon: w
|
|
123
|
+
}));
|
|
124
|
+
let B = {
|
|
125
|
+
title: i(r),
|
|
126
|
+
size: h,
|
|
127
|
+
maxWidth: g,
|
|
128
|
+
actions: d ? z : []
|
|
129
|
+
};
|
|
130
|
+
return /* @__PURE__ */ S(O, {
|
|
131
|
+
open: e,
|
|
132
|
+
onOpenChange: (e) => {
|
|
133
|
+
n(e), e || L();
|
|
134
|
+
},
|
|
135
|
+
config: B,
|
|
136
|
+
isLoading: N || D,
|
|
137
|
+
children: /* @__PURE__ */ C("div", { children: [
|
|
138
|
+
a === void 0 ? null : /* @__PURE__ */ S("div", {
|
|
139
|
+
className: "mb-4",
|
|
140
|
+
children: a(r)
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ S(_, {
|
|
143
|
+
id: F,
|
|
144
|
+
schema: o,
|
|
145
|
+
initialData: r,
|
|
146
|
+
disabled: !j,
|
|
147
|
+
onSubmit: (e) => {
|
|
148
|
+
R(e);
|
|
149
|
+
},
|
|
150
|
+
renderActions: !1,
|
|
151
|
+
isLoading: N || D
|
|
152
|
+
}),
|
|
153
|
+
c === void 0 ? null : c(r),
|
|
154
|
+
s !== void 0 && !d ? /* @__PURE__ */ S("div", {
|
|
155
|
+
className: "flex justify-end gap-2 border-t pt-4 mt-6",
|
|
156
|
+
children: j ? /* @__PURE__ */ C(x, { children: [p === "" ? null : /* @__PURE__ */ C(u, {
|
|
157
|
+
onClick: L,
|
|
158
|
+
variant: "outline",
|
|
159
|
+
size: "sm",
|
|
160
|
+
disabled: N || D,
|
|
161
|
+
children: [/* @__PURE__ */ S(E, { className: "size-4 mr-2" }), p ?? k("actions.cancel")]
|
|
162
|
+
}), /* @__PURE__ */ C(u, {
|
|
163
|
+
type: "submit",
|
|
164
|
+
form: F,
|
|
165
|
+
size: "sm",
|
|
166
|
+
disabled: N || D,
|
|
167
|
+
className: "text-white",
|
|
168
|
+
children: [m ? null : /* @__PURE__ */ S(T, { className: "size-4 mr-2" }), N ? k("actions.saving") : A]
|
|
169
|
+
})] }) : /* @__PURE__ */ C(u, {
|
|
170
|
+
onClick: I,
|
|
171
|
+
variant: "outline",
|
|
172
|
+
size: "sm",
|
|
173
|
+
children: [/* @__PURE__ */ S(w, { className: "size-4 mr-2" }), k("actions.edit")]
|
|
174
|
+
})
|
|
175
|
+
}) : null
|
|
176
|
+
] })
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/components/core/dialogs/ConfirmationDialog.tsx
|
|
181
|
+
function A({ isLoading: e, error: a, config: d, destructive: f = !1 }) {
|
|
182
|
+
let { t: p } = t();
|
|
183
|
+
return d ? /* @__PURE__ */ S(n, {
|
|
184
|
+
open: d.isOpen,
|
|
185
|
+
onOpenChange: (t) => {
|
|
186
|
+
!t && !e && d.onClose();
|
|
187
|
+
},
|
|
188
|
+
children: /* @__PURE__ */ C(s, { children: [
|
|
189
|
+
/* @__PURE__ */ C(o, { children: [
|
|
190
|
+
/* @__PURE__ */ C(l, {
|
|
191
|
+
className: d.titleClassName,
|
|
192
|
+
children: [d.icon && /* @__PURE__ */ S(d.icon, { className: "size-4" }), p(d.title)]
|
|
193
|
+
}),
|
|
194
|
+
d.headerClassName && /* @__PURE__ */ S(o, { className: d.headerClassName }),
|
|
195
|
+
/* @__PURE__ */ S(c, { children: p(d.description) }),
|
|
196
|
+
d.itemName && /* @__PURE__ */ S(c, { children: /* @__PURE__ */ S("span", {
|
|
197
|
+
className: "font-semibold block my-2",
|
|
198
|
+
children: d.itemName
|
|
199
|
+
}) })
|
|
200
|
+
] }),
|
|
201
|
+
/* @__PURE__ */ S(g, { error: a }),
|
|
202
|
+
/* @__PURE__ */ C(r, { children: [/* @__PURE__ */ S(i, {
|
|
203
|
+
disabled: e,
|
|
204
|
+
children: p("actions.cancel")
|
|
205
|
+
}), /* @__PURE__ */ S(u, {
|
|
206
|
+
onClick: (e) => {
|
|
207
|
+
e.preventDefault(), d.onConfirm();
|
|
208
|
+
},
|
|
209
|
+
disabled: e,
|
|
210
|
+
className: f ? "bg-destructive text-destructive-foreground hover:bg-destructive/90" : "",
|
|
211
|
+
children: p(e ? d.loadingKey ?? "states.loading" : d.confirmKey)
|
|
212
|
+
})] })
|
|
213
|
+
] })
|
|
214
|
+
}) : null;
|
|
215
|
+
}
|
|
216
|
+
//#endregion
|
|
217
|
+
export { k as n, O as r, A as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import "./ImageInput-
|
|
3
|
-
import "./MultiSelect-
|
|
4
|
-
import "./SearchInput-
|
|
2
|
+
import "./ImageInput-BdOxyamZ.js";
|
|
3
|
+
import "./MultiSelect-Dmt1iWgB.js";
|
|
4
|
+
import "./SearchInput-81oecSco.js";
|
|
5
5
|
import { jsx as t } from "react/jsx-runtime";
|
|
6
6
|
import { Heart as n, Star as r } from "lucide-react";
|
|
7
7
|
//#region src/components/core/inputs/RatingInput.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./i18n-d2p0RJo9.js";
|
|
2
|
-
import { i as t, n, r, s as i, t as a } from "./tooltip-
|
|
3
|
-
import { i as o, l as s, n as c, t as l, u } from "./select-
|
|
2
|
+
import { i as t, n, r, s as i, t as a } from "./tooltip-Bu3wNhtW.js";
|
|
3
|
+
import { i as o, l as s, n as c, t as l, u } from "./select-CfhuieLs.js";
|
|
4
4
|
import { t as d } from "./useLanguage-BVUtoDnh.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
2
|
import { t } from "./i18n-d2p0RJo9.js";
|
|
3
|
-
import { i as n, n as r, r as i, s as a, t as o } from "./tooltip-
|
|
4
|
-
import { C as s, S as c, b as l, d as u, g as d, h as f, i as p, l as m, m as h, p as g, r as _, t as v, v as y, x as b, y as x } from "./sheet-
|
|
3
|
+
import { i as n, n as r, r as i, s as a, t as o } from "./tooltip-Bu3wNhtW.js";
|
|
4
|
+
import { C as s, S as c, b as l, d as u, g as d, h as f, i as p, l as m, m as h, p as g, r as _, t as v, v as y, x as b, y as x } from "./sheet-DRzg-JWH.js";
|
|
5
5
|
import { t as S } from "./skeleton-D6Ga4BLw.js";
|
|
6
6
|
import { c as C } from "./behavior-CFsFoY50.js";
|
|
7
7
|
import "./hooks/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import { o as t } from "./tooltip-
|
|
2
|
+
import { o as t } from "./tooltip-Bu3wNhtW.js";
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
import { CheckIcon as a, ChevronDownIcon as o, ChevronUpIcon as s, XIcon as c } from "lucide-react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
2
|
import "./helpers/index.js";
|
|
3
3
|
import { t } from "./i18n-d2p0RJo9.js";
|
|
4
|
-
import { a as n } from "./tooltip-
|
|
4
|
+
import { a as n } from "./tooltip-Bu3wNhtW.js";
|
|
5
5
|
import * as r from "react";
|
|
6
6
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
import { SearchIcon as o, X as s } from "lucide-react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./i18n-d2p0RJo9.js";
|
|
2
|
-
import "./ErrorAlert-
|
|
2
|
+
import "./ErrorAlert-0L-Dwqu8.js";
|
|
3
3
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
4
|
import { Loader2Icon as r } from "lucide-react";
|
|
5
5
|
//#region src/components/core/states/ErrorState.tsx
|
package/dist/tailwind/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tailwind/index.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,UAAiD,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tailwind/index.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,UAAiD,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6LQ,CAAC;AAE5B,eAAe,aAAa,CAAC"}
|
package/dist/tailwind/index.js
CHANGED
|
@@ -91,6 +91,11 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr
|
|
|
91
91
|
DEFAULT: "hsl(var(--card))",
|
|
92
92
|
foreground: "hsl(var(--card-foreground))"
|
|
93
93
|
},
|
|
94
|
+
brand: {
|
|
95
|
+
from: "hsl(var(--k-brand-from))",
|
|
96
|
+
to: "hsl(var(--k-brand-to))",
|
|
97
|
+
foreground: "hsl(var(--k-brand-foreground))"
|
|
98
|
+
},
|
|
94
99
|
success: {
|
|
95
100
|
DEFAULT: "hsl(var(--k-success))",
|
|
96
101
|
foreground: "hsl(var(--k-success-foreground))"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./i18n-d2p0RJo9.js";
|
|
2
|
-
import { i as t, n, r, s as i, t as a } from "./tooltip-
|
|
3
|
-
import { i as o, l as s, n as c, t as l, u } from "./select-
|
|
2
|
+
import { i as t, n, r, s as i, t as a } from "./tooltip-Bu3wNhtW.js";
|
|
3
|
+
import { i as o, l as s, n as c, t as l, u } from "./select-CfhuieLs.js";
|
|
4
4
|
import { t as d } from "./useTheme-CNx4iolb.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
@@ -14,7 +14,7 @@ var o = r("inline-flex items-center justify-center gap-2 whitespace-nowrap round
|
|
|
14
14
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
15
15
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
16
16
|
link: "text-primary underline-offset-4 hover:underline",
|
|
17
|
-
|
|
17
|
+
brand: "bg-gradient-to-r from-brand-from to-brand-to hover:from-brand-from/90 hover:to-brand-to/90 text-brand-foreground shadow-lg shadow-brand-to/25"
|
|
18
18
|
},
|
|
19
19
|
size: {
|
|
20
20
|
default: "h-10 px-4 py-2",
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import type { buttonVariants } from "../components/ui/button";
|
|
2
|
+
import type { VariantProps } from "class-variance-authority";
|
|
3
|
+
/**
|
|
4
|
+
* Variants du `Button`, dérivés de `buttonVariants` : un variant ajouté au composant
|
|
5
|
+
* devient utilisable partout où ce type est attendu, sans recopie à tenir à jour.
|
|
6
|
+
*
|
|
7
|
+
* L'import est effacé à la compilation (`import type`) : aucune dépendance de `types` vers `components` à l'exécution.
|
|
8
|
+
*/
|
|
9
|
+
export type ButtonVariantType = NonNullable<VariantProps<typeof buttonVariants>["variant"]>;
|
|
2
10
|
//# sourceMappingURL=ButtonVariantType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonVariantType.d.ts","sourceRoot":"","sources":["../../src/types/ButtonVariantType.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ButtonVariantType.d.ts","sourceRoot":"","sources":["../../src/types/ButtonVariantType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC"}
|
|
@@ -2,9 +2,9 @@ import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
|
2
2
|
import "./helpers/index.js";
|
|
3
3
|
import "./chart-Dq3AIrue.js";
|
|
4
4
|
import "./alert-REQGK9bR.js";
|
|
5
|
-
import { c as t, s as n } from "./tooltip-
|
|
6
|
-
import "./sheet-
|
|
7
|
-
import "./select-
|
|
5
|
+
import { c as t, s as n } from "./tooltip-Bu3wNhtW.js";
|
|
6
|
+
import "./sheet-DRzg-JWH.js";
|
|
7
|
+
import "./select-CfhuieLs.js";
|
|
8
8
|
import "./skeleton-D6Ga4BLw.js";
|
|
9
9
|
import { t as r } from "./useScrollFade-D9kqJBDh.js";
|
|
10
10
|
import { n as i } from "./useToast-UeDRLovh.js";
|