@krosoft/react 0.0.89 → 0.0.91
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/{AppSubTitle-RKbtrPJr.js → AppSubTitle-CvJlatS9.js} +1 -1
- package/dist/{AppTitle-DCQpP2qE.js → AppTitle-LIQCjpo5.js} +26 -25
- package/dist/{AppVerticalTabs-pK3i9ZTD.js → AppVerticalTabs-BHrad7wu.js} +23 -23
- package/dist/ConfirmationDialog-BlRXnFH5.js +321 -0
- package/dist/ErrorAlert-BITMD2I5.js +33 -0
- package/dist/{LoadingState-DQjGcT2l.js → LoadingState-COf3KhOP.js} +6 -6
- package/dist/{MetricCard-DB1ME6tD.js → MetricCard-BGT2QRn0.js} +14 -13
- package/dist/{SearchInput-D_SLIZ2y.js → SearchInput-DpOuKSIf.js} +115 -126
- package/dist/{TableFilter-DXTOY-oa.js → TableFilter-DFtN_-Bg.js} +51 -51
- package/dist/{TableSettings-CBtuAPgM.js → TableSettings-m2q3s0wU.js} +68 -80
- package/dist/{ThemeSelector-CU8JmN2b.js → ThemeSelector-D9KTJAWz.js} +3 -3
- package/dist/{Topbar-BzZxu1Zi.js → Topbar-QKCJiWdO.js} +2 -2
- package/dist/{badge-DyRSpnOb.js → badge-C09fRxvd.js} +1 -1
- package/dist/card-Bn3Y7DHQ.js +48 -0
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/dialogs/ConfirmDeleteDialog.d.ts +10 -0
- package/dist/components/core/dialogs/ConfirmDeleteDialog.d.ts.map +1 -0
- package/dist/components/core/dialogs/ConfirmationDialog.d.ts +13 -0
- package/dist/components/core/dialogs/ConfirmationDialog.d.ts.map +1 -0
- package/dist/components/core/dialogs/index.d.ts +3 -0
- package/dist/components/core/dialogs/index.d.ts.map +1 -1
- package/dist/components/core/dialogs/index.js +15 -13
- package/dist/components/core/filters/index.js +1 -1
- package/dist/components/core/index.js +60 -56
- package/dist/components/core/inputs/index.js +1 -1
- package/dist/components/core/layouts/index.js +2 -2
- package/dist/components/core/navbar/index.js +1 -1
- package/dist/components/core/states/ErrorAlert.d.ts +7 -0
- package/dist/components/core/states/ErrorAlert.d.ts.map +1 -0
- package/dist/components/core/states/index.d.ts +1 -0
- package/dist/components/core/states/index.d.ts.map +1 -1
- package/dist/components/core/states/index.js +6 -4
- package/dist/components/core/table/index.js +1 -1
- package/dist/components/core/tabs/index.js +1 -1
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +280 -136
- package/dist/components/ui/accordion.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +21 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +4 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/avatar.d.ts +7 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +20 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/carousel.d.ts +19 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/chart.d.ts +50 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/command.d.ts +83 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/context-menu.d.ts +28 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/drawer.d.ts +23 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/form.d.ts +24 -0
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/hover-card.d.ts +7 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +42 -16
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +231 -91
- package/dist/components/ui/input-otp.d.ts +35 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/menubar.d.ts +34 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +13 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/pagination.d.ts +33 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/resizable.d.ts +8 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/components/ui/sidebar.d.ts +67 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/simple-table.d.ts +11 -0
- package/dist/components/ui/simple-table.d.ts.map +1 -0
- package/dist/components/ui/slider.d.ts +5 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/sonner.d.ts +5 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/textarea.d.ts +6 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/toaster.d.ts +2 -0
- package/dist/components/ui/toaster.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +13 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle.d.ts +13 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/{ellipsis-vertical-CqrunffH.js → ellipsis-vertical-BVxSFNOa.js} +1 -1
- package/dist/grip-vertical-CJ07_87Y.js +18 -0
- package/dist/hooks/index.js +6 -5
- package/dist/index-DSyPHOLE.js +147 -0
- package/dist/{loader-circle-BhJXKs31.js → loader-circle-GAYBtm3z.js} +1 -1
- package/dist/{select-B5wF6jxC.js → select-D6_XPD6x.js} +309 -308
- package/dist/toaster-D6ND7OTk.js +113 -0
- package/dist/toggle-group-VJoGbVQm.js +19987 -0
- package/dist/{tooltip-BzTGwm2E.js → tooltip-CAu4DEhc.js} +767 -796
- package/dist/types/ConfirmDialogConfig.d.ts +11 -0
- package/dist/types/ConfirmDialogConfig.d.ts.map +1 -0
- package/dist/useTheme-Bn8z_uxy.js +31 -0
- package/dist/useToast-BFTk4lWz.js +100 -0
- package/package.json +29 -7
- package/dist/FormDialog-CXLQG83d.js +0 -250
- package/dist/card-7XPLAra3.js +0 -23
- package/dist/createLucideIcon-CRdjzt2A.js +0 -116
- package/dist/skeleton-CJ1F2tD3.js +0 -8
- package/dist/tabs-BYqvMsA6.js +0 -6628
- package/dist/useTheme-CvNYmhjo.js +0 -128
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import "react-dom";
|
|
3
|
+
import { e as m } from "./tooltip-CAu4DEhc.js";
|
|
4
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
5
|
+
import { c9 as v, ca as b, cb as g, cc as h, cd as w, ce as x, b_ as R, bW as T, b$ as y, bZ as C, bY as N, c0 as P } from "./toggle-group-VJoGbVQm.js";
|
|
6
|
+
import { c as n } from "./index-gWiv5-6R.js";
|
|
7
|
+
import { G as $ } from "./grip-vertical-CJ07_87Y.js";
|
|
8
|
+
import { u as S } from "./useToast-BFTk4lWz.js";
|
|
9
|
+
var A = [
|
|
10
|
+
"a",
|
|
11
|
+
"button",
|
|
12
|
+
"div",
|
|
13
|
+
"form",
|
|
14
|
+
"h2",
|
|
15
|
+
"h3",
|
|
16
|
+
"img",
|
|
17
|
+
"input",
|
|
18
|
+
"label",
|
|
19
|
+
"li",
|
|
20
|
+
"nav",
|
|
21
|
+
"ol",
|
|
22
|
+
"p",
|
|
23
|
+
"select",
|
|
24
|
+
"span",
|
|
25
|
+
"svg",
|
|
26
|
+
"ul"
|
|
27
|
+
], j = A.reduce((a, e) => {
|
|
28
|
+
const r = m(`Primitive.${e}`), i = c.forwardRef((o, s) => {
|
|
29
|
+
const { asChild: d, ...f } = o, u = d ? r : e;
|
|
30
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ t(u, { ...f, ref: s });
|
|
31
|
+
});
|
|
32
|
+
return i.displayName = `Primitive.${e}`, { ...a, [e]: i };
|
|
33
|
+
}, {}), z = "AspectRatio", p = c.forwardRef(
|
|
34
|
+
(a, e) => {
|
|
35
|
+
const { ratio: r = 1 / 1, style: i, ...o } = a;
|
|
36
|
+
return /* @__PURE__ */ t(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
style: {
|
|
40
|
+
// ensures inner element is contained
|
|
41
|
+
position: "relative",
|
|
42
|
+
// ensures padding bottom trick maths works
|
|
43
|
+
width: "100%",
|
|
44
|
+
paddingBottom: `${100 / r}%`
|
|
45
|
+
},
|
|
46
|
+
"data-radix-aspect-ratio-wrapper": "",
|
|
47
|
+
children: /* @__PURE__ */ t(
|
|
48
|
+
j.div,
|
|
49
|
+
{
|
|
50
|
+
...o,
|
|
51
|
+
ref: e,
|
|
52
|
+
style: {
|
|
53
|
+
...i,
|
|
54
|
+
// ensures children expand in ratio
|
|
55
|
+
position: "absolute",
|
|
56
|
+
top: 0,
|
|
57
|
+
right: 0,
|
|
58
|
+
bottom: 0,
|
|
59
|
+
left: 0
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
p.displayName = z;
|
|
68
|
+
var G = p;
|
|
69
|
+
const M = G, O = v, Q = g, U = b, W = ({ className: a, ...e }) => /* @__PURE__ */ t(x, { className: n("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", a), ...e }), Z = h, _ = ({
|
|
70
|
+
withHandle: a,
|
|
71
|
+
className: e,
|
|
72
|
+
...r
|
|
73
|
+
}) => /* @__PURE__ */ t(
|
|
74
|
+
w,
|
|
75
|
+
{
|
|
76
|
+
className: n(
|
|
77
|
+
"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
78
|
+
e
|
|
79
|
+
),
|
|
80
|
+
...r,
|
|
81
|
+
children: a && /* @__PURE__ */ t("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ t($, { className: "h-2.5 w-2.5" }) })
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
function q({ className: a, ...e }) {
|
|
85
|
+
return /* @__PURE__ */ t("div", { className: n("animate-pulse rounded-md bg-muted", a), ...e });
|
|
86
|
+
}
|
|
87
|
+
function F() {
|
|
88
|
+
const { toasts: a } = S();
|
|
89
|
+
return /* @__PURE__ */ l(R, { children: [
|
|
90
|
+
a.map(function({ id: e, title: r, description: i, action: o, ...s }) {
|
|
91
|
+
return /* @__PURE__ */ l(T, { ...s, children: [
|
|
92
|
+
/* @__PURE__ */ l("div", { className: "grid gap-1", children: [
|
|
93
|
+
r && /* @__PURE__ */ t(y, { children: r }),
|
|
94
|
+
i && /* @__PURE__ */ t(C, { children: i })
|
|
95
|
+
] }),
|
|
96
|
+
o,
|
|
97
|
+
/* @__PURE__ */ t(N, {})
|
|
98
|
+
] }, e);
|
|
99
|
+
}),
|
|
100
|
+
/* @__PURE__ */ t(P, {})
|
|
101
|
+
] });
|
|
102
|
+
}
|
|
103
|
+
export {
|
|
104
|
+
M as A,
|
|
105
|
+
O as C,
|
|
106
|
+
_ as R,
|
|
107
|
+
q as S,
|
|
108
|
+
F as T,
|
|
109
|
+
U as a,
|
|
110
|
+
Q as b,
|
|
111
|
+
Z as c,
|
|
112
|
+
W as d
|
|
113
|
+
};
|