@krosoft/react 0.0.253 → 0.0.255
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/{AppActions-BMq9aQrB.js → AppActions-DyKuUO4k.js} +1 -1
- package/dist/{AppSubTitle-DIQetGjl.js → AppSubTitle-CSQOqzlF.js} +1 -1
- package/dist/{GenericForm-D1TP41Gp.js → GenericForm-C0Hxh84y.js} +4 -4
- package/dist/{ImageInput-DnoBhP4X.js → ImageInput-D8bv_faw.js} +1 -1
- package/dist/{MultiSelect-O9AljNco.js → MultiSelect-6vCPLMY8.js} +1 -1
- package/dist/{SearchInput-BEqCjP6R.js → SearchInput-DlLexldF.js} +1 -1
- package/dist/{cards-3sbUuHR0.js → cards-CV5w_mHL.js} +1 -1
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/dialogs/index.js +2 -2
- package/dist/components/core/filters/index.js +3 -3
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/index.js +13 -13
- package/dist/components/core/inputs/index.js +3 -3
- package/dist/components/core/layouts/index.js +4 -4
- package/dist/components/core/table/JsonTableOutput.d.ts +8 -0
- package/dist/components/core/table/JsonTableOutput.d.ts.map +1 -0
- package/dist/components/core/table/TableBody.d.ts +1 -1
- package/dist/components/core/table/TableBody.d.ts.map +1 -1
- package/dist/components/core/table/TableHeader.d.ts.map +1 -1
- package/dist/components/core/table/index.d.ts +1 -0
- package/dist/components/core/table/index.d.ts.map +1 -1
- package/dist/components/core/table/index.js +2 -2
- package/dist/components/core/tabs/index.js +2 -2
- package/dist/components/index.js +13 -13
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/tabs.d.ts +14 -3
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/{dialogs-CVA3y-o4.js → dialogs-CnBaE0-1.js} +2 -2
- package/dist/table-C56FL-qc.js +644 -0
- package/dist/{ui-hvA1osvS.js → ui-CvuDSRPw.js} +56 -38
- package/package.json +1 -1
- package/dist/table-BGKIqR2y.js +0 -582
|
@@ -1003,50 +1003,68 @@ var Qn = ({ ...e }) => {
|
|
|
1003
1003
|
$n.displayName = F.Root.displayName;
|
|
1004
1004
|
//#endregion
|
|
1005
1005
|
//#region src/components/ui/tabs.tsx
|
|
1006
|
-
var er = I.Root, tr =
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1006
|
+
var er = I.Root, tr = b("text-muted-foreground [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", {
|
|
1007
|
+
variants: { variant: {
|
|
1008
|
+
line: "inline-flex h-10 w-full items-center justify-start gap-6 overflow-x-auto overscroll-x-contain border-b border-border bg-transparent p-0",
|
|
1009
|
+
solid: "inline-flex h-10 w-fit items-center justify-center gap-1 rounded-md bg-muted p-1"
|
|
1010
|
+
} },
|
|
1011
|
+
defaultVariants: { variant: "line" }
|
|
1012
|
+
}), nr = b("relative inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap text-sm font-medium text-muted-foreground ring-offset-background cursor-pointer transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-foreground [&_svg]:h-4 [&_svg]:w-4", {
|
|
1013
|
+
variants: { variant: {
|
|
1014
|
+
line: "rounded-none border-b-2 border-transparent bg-transparent px-1 pb-2.5 pt-2 -mb-px data-[state=active]:border-primary data-[state=active]:shadow-none",
|
|
1015
|
+
solid: "rounded-sm px-3 py-1.5 data-[state=active]:bg-background data-[state=active]:shadow-sm"
|
|
1016
|
+
} },
|
|
1017
|
+
defaultVariants: { variant: "line" }
|
|
1018
|
+
}), rr = a.createContext("line"), ir = a.forwardRef(({ className: t, style: n, variant: i, ...s }, c) => {
|
|
1019
|
+
let l = i ?? "line", u = a.useRef(null), d = a.useCallback((e) => {
|
|
1020
|
+
u.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
1021
|
+
}, [c]), f = r(u);
|
|
1022
|
+
return /* @__PURE__ */ o(rr.Provider, {
|
|
1023
|
+
value: l,
|
|
1024
|
+
children: /* @__PURE__ */ o(I.List, {
|
|
1025
|
+
ref: d,
|
|
1026
|
+
style: {
|
|
1027
|
+
...n,
|
|
1028
|
+
...f
|
|
1029
|
+
},
|
|
1030
|
+
className: e(tr({ variant: l }), t),
|
|
1031
|
+
...s
|
|
1032
|
+
})
|
|
1018
1033
|
});
|
|
1019
1034
|
});
|
|
1020
|
-
|
|
1021
|
-
var
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
}))
|
|
1026
|
-
|
|
1027
|
-
|
|
1035
|
+
ir.displayName = I.List.displayName;
|
|
1036
|
+
var ar = a.forwardRef(({ className: t, variant: n, ...r }, i) => {
|
|
1037
|
+
let s = a.useContext(rr);
|
|
1038
|
+
return /* @__PURE__ */ o(I.Trigger, {
|
|
1039
|
+
ref: i,
|
|
1040
|
+
className: e(nr({ variant: n ?? s }), t),
|
|
1041
|
+
...r
|
|
1042
|
+
});
|
|
1043
|
+
});
|
|
1044
|
+
ar.displayName = I.Trigger.displayName;
|
|
1045
|
+
var or = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o(I.Content, {
|
|
1028
1046
|
ref: r,
|
|
1029
1047
|
className: e("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", t),
|
|
1030
1048
|
...n
|
|
1031
1049
|
}));
|
|
1032
|
-
|
|
1050
|
+
or.displayName = I.Content.displayName;
|
|
1033
1051
|
//#endregion
|
|
1034
1052
|
//#region src/components/ui/textarea.tsx
|
|
1035
|
-
var
|
|
1053
|
+
var sr = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o("textarea", {
|
|
1036
1054
|
className: e("flex min-h-[80px] w-full rounded-control border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", t),
|
|
1037
1055
|
ref: r,
|
|
1038
1056
|
...n
|
|
1039
1057
|
}));
|
|
1040
|
-
|
|
1058
|
+
sr.displayName = "Textarea";
|
|
1041
1059
|
//#endregion
|
|
1042
1060
|
//#region src/components/ui/toast.tsx
|
|
1043
|
-
var
|
|
1061
|
+
var cr = L.Provider, q = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o(L.Viewport, {
|
|
1044
1062
|
ref: r,
|
|
1045
1063
|
className: e("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]", t),
|
|
1046
1064
|
...n
|
|
1047
1065
|
}));
|
|
1048
1066
|
q.displayName = L.Viewport.displayName;
|
|
1049
|
-
var
|
|
1067
|
+
var lr = b("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-surface border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", {
|
|
1050
1068
|
variants: { variant: {
|
|
1051
1069
|
default: "border bg-background text-foreground",
|
|
1052
1070
|
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
@@ -1054,16 +1072,16 @@ var or = b("group pointer-events-auto relative flex w-full items-center justify-
|
|
|
1054
1072
|
defaultVariants: { variant: "default" }
|
|
1055
1073
|
}), J = a.forwardRef(({ className: t, variant: n, ...r }, i) => /* @__PURE__ */ o(L.Root, {
|
|
1056
1074
|
ref: i,
|
|
1057
|
-
className: e(
|
|
1075
|
+
className: e(lr({ variant: n }), t),
|
|
1058
1076
|
...r
|
|
1059
1077
|
}));
|
|
1060
1078
|
J.displayName = L.Root.displayName;
|
|
1061
|
-
var
|
|
1079
|
+
var ur = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o(L.Action, {
|
|
1062
1080
|
ref: r,
|
|
1063
1081
|
className: e("inline-flex h-8 shrink-0 items-center justify-center rounded-control border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50", t),
|
|
1064
1082
|
...n
|
|
1065
1083
|
}));
|
|
1066
|
-
|
|
1084
|
+
ur.displayName = L.Action.displayName;
|
|
1067
1085
|
var Y = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o(L.Close, {
|
|
1068
1086
|
ref: r,
|
|
1069
1087
|
className: e("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", t),
|
|
@@ -1086,9 +1104,9 @@ var Z = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o(L.Descript
|
|
|
1086
1104
|
Z.displayName = L.Description.displayName;
|
|
1087
1105
|
//#endregion
|
|
1088
1106
|
//#region src/components/ui/toaster.tsx
|
|
1089
|
-
function
|
|
1107
|
+
function dr() {
|
|
1090
1108
|
let { toasts: e } = i();
|
|
1091
|
-
return /* @__PURE__ */ s(
|
|
1109
|
+
return /* @__PURE__ */ s(cr, { children: [e.map(function({ id: e, title: t, description: n, action: r, ...i }) {
|
|
1092
1110
|
return /* @__PURE__ */ s(J, {
|
|
1093
1111
|
...i,
|
|
1094
1112
|
children: [
|
|
@@ -1120,7 +1138,7 @@ var Q = b("inline-flex items-center justify-center rounded-control text-sm font-
|
|
|
1120
1138
|
variant: "default",
|
|
1121
1139
|
size: "default"
|
|
1122
1140
|
}
|
|
1123
|
-
}),
|
|
1141
|
+
}), fr = a.forwardRef(({ className: t, variant: n, size: r, ...i }, a) => /* @__PURE__ */ o(R.Root, {
|
|
1124
1142
|
ref: a,
|
|
1125
1143
|
className: e(Q({
|
|
1126
1144
|
variant: n,
|
|
@@ -1129,17 +1147,17 @@ var Q = b("inline-flex items-center justify-center rounded-control text-sm font-
|
|
|
1129
1147
|
})),
|
|
1130
1148
|
...i
|
|
1131
1149
|
}));
|
|
1132
|
-
|
|
1150
|
+
fr.displayName = R.Root.displayName;
|
|
1133
1151
|
//#endregion
|
|
1134
1152
|
//#region src/components/ui/toggle-group.tsx
|
|
1135
|
-
var
|
|
1153
|
+
var pr = a.createContext({
|
|
1136
1154
|
size: "default",
|
|
1137
1155
|
variant: "default"
|
|
1138
|
-
}),
|
|
1156
|
+
}), mr = a.forwardRef(({ className: t, variant: n, size: r, children: i, ...a }, s) => /* @__PURE__ */ o(z.Root, {
|
|
1139
1157
|
ref: s,
|
|
1140
1158
|
className: e("flex items-center justify-center gap-1", t),
|
|
1141
1159
|
...a,
|
|
1142
|
-
children: /* @__PURE__ */ o(
|
|
1160
|
+
children: /* @__PURE__ */ o(pr.Provider, {
|
|
1143
1161
|
value: {
|
|
1144
1162
|
variant: n,
|
|
1145
1163
|
size: r
|
|
@@ -1147,9 +1165,9 @@ var ur = a.createContext({
|
|
|
1147
1165
|
children: i
|
|
1148
1166
|
})
|
|
1149
1167
|
}));
|
|
1150
|
-
|
|
1168
|
+
mr.displayName = z.Root.displayName;
|
|
1151
1169
|
var $ = a.forwardRef(({ className: t, children: n, variant: r, size: i, ...s }, c) => {
|
|
1152
|
-
let l = a.useContext(
|
|
1170
|
+
let l = a.useContext(pr);
|
|
1153
1171
|
return /* @__PURE__ */ o(z.Item, {
|
|
1154
1172
|
ref: c,
|
|
1155
1173
|
className: e(Q({
|
|
@@ -1162,4 +1180,4 @@ var $ = a.forwardRef(({ className: t, children: n, variant: r, size: i, ...s },
|
|
|
1162
1180
|
});
|
|
1163
1181
|
$.displayName = z.Item.displayName;
|
|
1164
1182
|
//#endregion
|
|
1165
|
-
export { fn as $, xt as $t, K as A, Ue as An, H as At, Nn as B, Ce as Bn, Vt as Bt, Gn as C, Ze as Cn, Xt as Ct, Jn as D, Be as Dn, Yt as Dt, Kn as E, qe as En, Jt as Et, zn as F, Re as Fn, Lt as Ft, On as G, ke as Gn, kt as Gt, Fn as H, Ne as Hn, Mt as Ht, Ln as I, Fe as In, Bt as It, kn as J, we as Jn, Ct as Jt, An as K, Oe as Kn, yt as Kt, jn as L, Le as Ln, jt as Lt, Vn as M, We as Mn, Rt as Mt, Bn as N, Ge as Nn, It as Nt, Wn as O, Ke as On, Qt as Ot, Rn as P, ze as Pn, At as Pt, En as Q, xe as Qn, V as Qt, Mn as R, Ie as Rn, Nt as Rt, Un as S, Xe as Sn, Wt as St, Yn as T, Qe as Tn, Kt as Tt, Pn as U, De as Un, Ft as Ut, G as V, Me as Vn, Ht as Vt, Cn as W, je as Wn, Pt as Wt, Dn as X, Se as Xn, Tt as Xt, wn as Y, ye as Yn, Dt as Yt, W as Z, be as Zn, wt as Zt,
|
|
1183
|
+
export { fn as $, xt as $t, K as A, Ue as An, H as At, Nn as B, Ce as Bn, Vt as Bt, Gn as C, Ze as Cn, Xt as Ct, Jn as D, Be as Dn, Yt as Dt, Kn as E, qe as En, Jt as Et, zn as F, Re as Fn, Lt as Ft, On as G, ke as Gn, kt as Gt, Fn as H, Ne as Hn, Mt as Ht, Ln as I, Fe as In, Bt as It, kn as J, we as Jn, Ct as Jt, An as K, Oe as Kn, yt as Kt, jn as L, Le as Ln, jt as Lt, Vn as M, We as Mn, Rt as Mt, Bn as N, Ge as Nn, It as Nt, Wn as O, Ke as On, Qt as Ot, Rn as P, ze as Pn, At as Pt, En as Q, xe as Qn, V as Qt, Mn as R, Ie as Rn, Nt as Rt, Un as S, Xe as Sn, Wt as St, Yn as T, Qe as Tn, Kt as Tt, Pn as U, De as Un, Ft as Ut, G as V, Me as Vn, Ht as Vt, Cn as W, je as Wn, Pt as Wt, Dn as X, Se as Xn, Tt as Xt, wn as Y, ye as Yn, Dt as Yt, W as Z, be as Zn, wt as Zt, ar as _, tt as _n, on as _t, dr as a, ot as an, sn as at, ve as b, et as bn, tn as bt, Y as c, st as cn, yn as ct, X as d, _t as dn, un as dt, Et as en, vn as et, q as f, vt as fn, hn as ft, ir as g, at as gn, rn as gt, or as h, ut as hn, nn as ht, Q as i, ft as in, bn as it, Hn as j, Ve as jn, Ot as jt, qn as k, He as kn, U as kt, Z as l, lt as ln, xn as lt, er as m, dt as mn, pn as mt, $ as n, it as nn, cn as nt, J as o, pt as on, ln as ot, sr as p, ct as pn, mn as pt, Tn as q, Ae as qn, St as qt, fr as r, mt as rn, _n as rt, ur as s, gt as sn, dn as st, mr as t, bt as tn, gn as tt, cr as u, ht as un, Sn as ut, $n as v, rt as vn, an as vt, Xn as w, $e as wn, Zt as wt, Zn as x, Ye as xn, en as xt, Qn as y, nt as yn, $t as yt, In as z, Pe as zn, zt };
|