@krosoft/react 0.0.169 → 0.0.171
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 +27 -1
- package/dist/{AppActions-DCYt9I0e.js → AppActions-CwPaiNx1.js} +5 -5
- package/dist/{AppSubTitle-DhioA5bv.js → AppSubTitle-6JLlE8Vf.js} +1 -1
- package/dist/{AppVerticalTabs-DujFNh9f.js → AppVerticalTabs-BkZkxL_K.js} +4 -4
- package/dist/{ConfirmationDialog-CCZPbD4x.js → ConfirmationDialog-t5QtNOQO.js} +10 -10
- package/dist/{DataTable-28eGRJvy.js → DataTable-C1l3CLr1.js} +92 -86
- package/dist/{ErrorAlert-DH1onuyt.js → ErrorAlert-SrIcU1mM.js} +1 -1
- package/dist/{ErrorState-vU8d4CwD.js → ErrorState-CmaxuJyW.js} +2 -2
- package/dist/{GenericForm-EohJXOt8.js → GenericForm-DXclmweK.js} +8 -8
- package/dist/{ImageInput-Bbxr8vpu.js → ImageInput-BqoCekqh.js} +18 -18
- package/dist/KpiCardsLayout-BhEoJhJ9.js +49 -0
- package/dist/{MetricCard-rL1mIA58.js → MetricCard-C7kgpgRl.js} +8 -8
- package/dist/{MultiSelect-B72dsN-1.js → MultiSelect-BFdaRnIO.js} +8 -8
- package/dist/{SearchInput-rRYNQ8fq.js → SearchInput-Dg5Aw2lv.js} +29 -29
- package/dist/{SkeletonCards-BgsWWMun.js → SkeletonCards-DemfjUfD.js} +6 -6
- package/dist/{TableFilter-BfWYeTv_.js → TableFilter-WWNz4Nua.js} +9 -9
- package/dist/{ThemeSelector-CQ3fSDJ2.js → ThemeSelector-BwrbKW-4.js} +2 -2
- package/dist/{Topbar-DMyjbOTI.js → Topbar-D55ou5Uk.js} +7 -7
- package/dist/{alert-B78CiTYe.js → alert-B9F1N9Qk.js} +6 -6
- package/dist/components/core/cards/index.js +2 -2
- package/dist/components/core/dialogs/ConfirmationDialog.d.ts +1 -1
- package/dist/components/core/dialogs/FormDialog.d.ts +1 -1
- package/dist/components/core/dialogs/index.d.ts +1 -1
- package/dist/components/core/dialogs/index.js +2 -2
- package/dist/components/core/filters/AdvancedFilters.d.ts +1 -1
- package/dist/components/core/filters/FilterField.d.ts +1 -1
- package/dist/components/core/filters/TableFilter.d.ts +1 -1
- package/dist/components/core/filters/index.js +1 -1
- package/dist/components/core/forms/GenericForm.d.ts +1 -1
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/index.js +18 -18
- package/dist/components/core/inputs/index.js +3 -3
- package/dist/components/core/layouts/AppActions.d.ts +1 -1
- package/dist/components/core/layouts/AppPageHeader.d.ts +1 -1
- package/dist/components/core/layouts/AppSubTitle.d.ts +1 -1
- package/dist/components/core/layouts/index.js +3 -3
- package/dist/components/core/navbar/index.js +1 -1
- package/dist/components/core/states/index.js +2 -2
- package/dist/components/core/table/DataTable.d.ts.map +1 -1
- package/dist/components/core/table/TableActions.d.ts +1 -1
- package/dist/components/core/table/TableBody.d.ts +1 -1
- package/dist/components/core/table/TableBulkActions.d.ts +1 -1
- package/dist/components/core/table/TableHeader.d.ts +1 -1
- package/dist/components/core/table/TableSettings.d.ts +1 -1
- package/dist/components/core/table/index.js +1 -1
- package/dist/components/core/tabs/AppTabContainer.d.ts +1 -1
- package/dist/components/core/tabs/AppTabHeader.d.ts +1 -1
- package/dist/components/core/tabs/AppTabs.d.ts +1 -1
- package/dist/components/core/tabs/AppVerticalTabs.d.ts +1 -1
- package/dist/components/core/tabs/index.js +1 -1
- package/dist/components/core/theme/ThemeSelector.d.ts +1 -1
- package/dist/components/core/theme/index.d.ts +1 -1
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +24 -24
- package/dist/components/ui/index.js +7 -7
- package/dist/contexts/page.context.d.ts +1 -1
- package/dist/hooks/behavior/index.js +1 -1
- package/dist/hooks/behavior/useConfirmDeleteDialog.d.ts +1 -1
- package/dist/hooks/behavior/useConfirmationDialog.d.ts +1 -1
- package/dist/hooks/behavior/usePage.d.ts +1 -1
- package/dist/hooks/behavior/useSidebar.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/ui/useDataTable.d.ts +2 -2
- package/dist/{select-MWzbMBAS.js → select-BwcXfUqZ.js} +2 -2
- package/dist/{sheet-Gop1cIaU.js → sheet-DOncI9p6.js} +5 -5
- package/dist/skeleton-BX4RcsiK.js +8 -0
- package/dist/tailwind/index.d.ts +2 -0
- package/dist/tailwind/index.d.ts.map +1 -1
- package/dist/tailwind/index.js +10 -2
- package/dist/{toaster-DTcdwmkK.js → toaster-S0xacBVZ.js} +1 -1
- package/dist/{toggle-group-DY9wl0HW.js → toggle-group-DC5hqQ4H.js} +33 -33
- package/dist/{tooltip-BWyFpIxo.js → tooltip-OY3E8Lo0.js} +14 -14
- package/dist/{usePage-CWu-cjzK.js → usePage-u2gRhvQ0.js} +1 -1
- package/package.json +3 -2
- package/dist/KpiCardsLayout-DBqGhp0I.js +0 -49
- package/dist/skeleton-8o8eJd3P.js +0 -8
|
@@ -4,7 +4,7 @@ import { c as r } from "./tailwind.helper-B6yFEsav.js";
|
|
|
4
4
|
import * as P from "@radix-ui/react-accordion";
|
|
5
5
|
import { ChevronDown as te, MoreHorizontal as Ie, ChevronRight as H, ChevronLeft as Te, ArrowLeft as Se, ArrowRight as Pe, CheckIcon as oe, X as De, SearchIcon as ze, Check as re, Circle as Z, ChevronRightIcon as se, CircleIcon as Me, Dot as _e, MoreHorizontalIcon as Le, ChevronLeftIcon as je, XIcon as Ae } from "lucide-react";
|
|
6
6
|
import * as N from "@radix-ui/react-alert-dialog";
|
|
7
|
-
import { d as M, B as ne } from "./tooltip-
|
|
7
|
+
import { d as M, B as ne } from "./tooltip-OY3E8Lo0.js";
|
|
8
8
|
import * as _ from "@radix-ui/react-avatar";
|
|
9
9
|
import { cva as B } from "class-variance-authority";
|
|
10
10
|
import { Slot as ie } from "@radix-ui/react-slot";
|
|
@@ -34,7 +34,7 @@ import * as D from "@radix-ui/react-tabs";
|
|
|
34
34
|
import * as v from "@radix-ui/react-toast";
|
|
35
35
|
import * as E from "@radix-ui/react-toggle-group";
|
|
36
36
|
import * as le from "@radix-ui/react-toggle";
|
|
37
|
-
const Ke = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: r("rounded-
|
|
37
|
+
const Ke = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: r("rounded-surface border bg-card text-card-foreground shadow-sm", a), ...e }));
|
|
38
38
|
Ke.displayName = "Card";
|
|
39
39
|
const qe = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: r("flex flex-col space-y-1.5 p-6", a), ...e }));
|
|
40
40
|
qe.displayName = "CardHeader";
|
|
@@ -92,7 +92,7 @@ const aa = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ d(ea, { c
|
|
|
92
92
|
{
|
|
93
93
|
ref: t,
|
|
94
94
|
className: r(
|
|
95
|
-
"fixed left-[50%] top-[50%] z-70 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-
|
|
95
|
+
"fixed left-[50%] top-[50%] z-70 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-surface",
|
|
96
96
|
a
|
|
97
97
|
),
|
|
98
98
|
...e
|
|
@@ -125,7 +125,7 @@ const ca = s.forwardRef(
|
|
|
125
125
|
);
|
|
126
126
|
ca.displayName = _.Fallback.displayName;
|
|
127
127
|
const ma = B(
|
|
128
|
-
"inline-flex items-center rounded-
|
|
128
|
+
"inline-flex items-center rounded-control border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
129
129
|
{
|
|
130
130
|
variants: {
|
|
131
131
|
variant: {
|
|
@@ -175,19 +175,19 @@ function ha({ className: a, classNames: e, showOutsideDays: t = !0, ...n }) {
|
|
|
175
175
|
button_previous: r(M({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100", "absolute left-1"),
|
|
176
176
|
button_next: r(M({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100", "absolute right-1"),
|
|
177
177
|
weekdays: "flex justify-center",
|
|
178
|
-
weekday: "text-muted-foreground rounded-
|
|
178
|
+
weekday: "text-muted-foreground rounded-control w-9 font-normal text-[0.8rem] text-center flex items-center justify-center",
|
|
179
179
|
week: "flex w-full mt-2",
|
|
180
180
|
day: r(
|
|
181
181
|
"group relative size-9 p-0 text-center text-sm focus-within:relative focus-within:z-20",
|
|
182
|
-
"[&:has([aria-selected].day-range-end)]:rounded-r-
|
|
182
|
+
"[&:has([aria-selected].day-range-end)]:rounded-r-control",
|
|
183
183
|
"[&:has([aria-selected])]:bg-accent",
|
|
184
|
-
"first:[&:has([aria-selected])]:rounded-l-
|
|
185
|
-
"last:[&:has([aria-selected])]:rounded-r-
|
|
184
|
+
"first:[&:has([aria-selected])]:rounded-l-control",
|
|
185
|
+
"last:[&:has([aria-selected])]:rounded-r-control",
|
|
186
186
|
"[&:has([aria-selected].day-outside)]:bg-accent/50"
|
|
187
187
|
),
|
|
188
188
|
day_button: r(M({ variant: "ghost" }), "size-9 p-0 font-normal aria-selected:opacity-100"),
|
|
189
|
-
range_start: "day-range-start rounded-l-
|
|
190
|
-
range_end: "day-range-end rounded-r-
|
|
189
|
+
range_start: "day-range-start rounded-l-control",
|
|
190
|
+
range_end: "day-range-end rounded-r-control",
|
|
191
191
|
selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
192
192
|
today: "bg-accent text-accent-foreground",
|
|
193
193
|
outside: "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
@@ -286,7 +286,7 @@ const Ca = s.forwardRef(
|
|
|
286
286
|
variant: e,
|
|
287
287
|
size: t,
|
|
288
288
|
className: r(
|
|
289
|
-
"absolute h-8 w-8 rounded-
|
|
289
|
+
"absolute h-8 w-8 rounded-control",
|
|
290
290
|
l === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
291
291
|
a
|
|
292
292
|
),
|
|
@@ -312,7 +312,7 @@ const Ra = s.forwardRef(
|
|
|
312
312
|
variant: e,
|
|
313
313
|
size: t,
|
|
314
314
|
className: r(
|
|
315
|
-
"absolute h-8 w-8 rounded-
|
|
315
|
+
"absolute h-8 w-8 rounded-control",
|
|
316
316
|
l === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
317
317
|
a
|
|
318
318
|
),
|
|
@@ -407,7 +407,7 @@ ${t.map(([l, u]) => {
|
|
|
407
407
|
"div",
|
|
408
408
|
{
|
|
409
409
|
ref: W,
|
|
410
|
-
className: r("grid min-w-[8rem] items-start gap-1.5 rounded-
|
|
410
|
+
className: r("grid min-w-[8rem] items-start gap-1.5 rounded-surface border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl", t),
|
|
411
411
|
children: [
|
|
412
412
|
T ? null : z,
|
|
413
413
|
/* @__PURE__ */ o("div", { className: "grid gap-1.5", children: e.map((g, w) => {
|
|
@@ -516,7 +516,7 @@ const ge = s.forwardRef(
|
|
|
516
516
|
{
|
|
517
517
|
ref: n,
|
|
518
518
|
className: r(
|
|
519
|
-
"fixed left-[50%] top-[50%] z-[70] grid w-full max-w-lg max-h-[95vh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-
|
|
519
|
+
"fixed left-[50%] top-[50%] z-[70] grid w-full max-w-lg max-h-[95vh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-surface",
|
|
520
520
|
a
|
|
521
521
|
),
|
|
522
522
|
...t,
|
|
@@ -547,7 +547,7 @@ const be = s.forwardRef(
|
|
|
547
547
|
x,
|
|
548
548
|
{
|
|
549
549
|
ref: t,
|
|
550
|
-
className: r("flex h-full w-full flex-col overflow-hidden rounded-
|
|
550
|
+
className: r("flex h-full w-full flex-col overflow-hidden rounded-surface bg-popover text-popover-foreground", a),
|
|
551
551
|
...e
|
|
552
552
|
}
|
|
553
553
|
)
|
|
@@ -561,7 +561,7 @@ const qo = ({ children: a, ...e }) => /* @__PURE__ */ o(za, { ...e, children: /*
|
|
|
561
561
|
{
|
|
562
562
|
ref: t,
|
|
563
563
|
className: r(
|
|
564
|
-
"flex h-11 w-full rounded-
|
|
564
|
+
"flex h-11 w-full rounded-control bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
565
565
|
a
|
|
566
566
|
),
|
|
567
567
|
...e
|
|
@@ -632,7 +632,7 @@ const Ka = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
632
632
|
{
|
|
633
633
|
ref: t,
|
|
634
634
|
className: r(
|
|
635
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-
|
|
635
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
636
636
|
a
|
|
637
637
|
),
|
|
638
638
|
...e
|
|
@@ -644,7 +644,7 @@ const qa = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(f.Porta
|
|
|
644
644
|
{
|
|
645
645
|
ref: t,
|
|
646
646
|
className: r(
|
|
647
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-
|
|
647
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
648
648
|
a
|
|
649
649
|
),
|
|
650
650
|
...e
|
|
@@ -716,7 +716,7 @@ const at = s.forwardRef(
|
|
|
716
716
|
R.Content,
|
|
717
717
|
{
|
|
718
718
|
ref: n,
|
|
719
|
-
className: r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-
|
|
719
|
+
className: r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-surface border bg-background", a),
|
|
720
720
|
...t,
|
|
721
721
|
children: [
|
|
722
722
|
/* @__PURE__ */ o("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
@@ -759,7 +759,7 @@ const it = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
759
759
|
{
|
|
760
760
|
ref: t,
|
|
761
761
|
className: r(
|
|
762
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-
|
|
762
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
763
763
|
a
|
|
764
764
|
),
|
|
765
765
|
...e
|
|
@@ -772,7 +772,7 @@ const dt = s.forwardRef(({ className: a, sideOffset: e = 4, ...t }, n) => /* @__
|
|
|
772
772
|
ref: n,
|
|
773
773
|
sideOffset: e,
|
|
774
774
|
className: r(
|
|
775
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-
|
|
775
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
776
776
|
a
|
|
777
777
|
),
|
|
778
778
|
...t
|
|
@@ -891,7 +891,7 @@ const lr = $.Root, cr = $.Trigger, vt = s.forwardRef(({ className: a, align: e =
|
|
|
891
891
|
align: e,
|
|
892
892
|
sideOffset: t,
|
|
893
893
|
className: r(
|
|
894
|
-
"z-50 w-64 rounded-
|
|
894
|
+
"z-50 w-64 rounded-surface border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
895
895
|
a
|
|
896
896
|
),
|
|
897
897
|
...n
|
|
@@ -920,7 +920,7 @@ const Rt = s.forwardRef(
|
|
|
920
920
|
{
|
|
921
921
|
ref: n,
|
|
922
922
|
className: r(
|
|
923
|
-
"relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-
|
|
923
|
+
"relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-control first:border-l last:rounded-r-control",
|
|
924
924
|
b && "z-10 ring-2 ring-ring ring-offset-background",
|
|
925
925
|
e
|
|
926
926
|
),
|
|
@@ -937,7 +937,7 @@ Rt.displayName = "InputOTPSlot";
|
|
|
937
937
|
const kt = s.forwardRef(({ ...a }, e) => /* @__PURE__ */ o("div", { ref: e, role: "separator", ...a, children: /* @__PURE__ */ o(_e, {}) }));
|
|
938
938
|
kt.displayName = "InputOTPSeparator";
|
|
939
939
|
const mr = m.Menu, ur = m.Group, fr = m.Portal, pr = m.Sub, gr = m.RadioGroup, It = s.forwardRef(
|
|
940
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o(m.Root, { ref: t, className: r("flex h-10 items-center space-x-1 rounded-
|
|
940
|
+
({ className: a, ...e }, t) => /* @__PURE__ */ o(m.Root, { ref: t, className: r("flex h-10 items-center space-x-1 rounded-surface border bg-background p-1", a), ...e })
|
|
941
941
|
);
|
|
942
942
|
It.displayName = m.Root.displayName;
|
|
943
943
|
const Tt = s.forwardRef(
|
|
@@ -976,7 +976,7 @@ const Pt = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
976
976
|
{
|
|
977
977
|
ref: t,
|
|
978
978
|
className: r(
|
|
979
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-
|
|
979
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
980
980
|
a
|
|
981
981
|
),
|
|
982
982
|
...e
|
|
@@ -992,7 +992,7 @@ const Dt = s.forwardRef(
|
|
|
992
992
|
alignOffset: t,
|
|
993
993
|
sideOffset: n,
|
|
994
994
|
className: r(
|
|
995
|
-
"z-50 min-w-[12rem] overflow-hidden rounded-
|
|
995
|
+
"z-50 min-w-[12rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
996
996
|
a
|
|
997
997
|
),
|
|
998
998
|
...i
|
|
@@ -1060,7 +1060,7 @@ Ft.displayName = h.Root.displayName;
|
|
|
1060
1060
|
const Gt = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(h.List, { ref: t, className: r("group flex flex-1 list-none items-center justify-center space-x-1", a), ...e }));
|
|
1061
1061
|
Gt.displayName = h.List.displayName;
|
|
1062
1062
|
const br = h.Item, Ot = B(
|
|
1063
|
-
"group inline-flex h-10 w-max items-center justify-center rounded-
|
|
1063
|
+
"group inline-flex h-10 w-max items-center justify-center rounded-control bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
1064
1064
|
), Bt = s.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ d(h.Trigger, { ref: n, className: r(Ot(), "group", a), ...t, children: [
|
|
1065
1065
|
e,
|
|
1066
1066
|
" ",
|
|
@@ -1083,7 +1083,7 @@ const Nr = h.Link, ve = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__
|
|
|
1083
1083
|
h.Viewport,
|
|
1084
1084
|
{
|
|
1085
1085
|
className: r(
|
|
1086
|
-
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-
|
|
1086
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-surface border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
1087
1087
|
a
|
|
1088
1088
|
),
|
|
1089
1089
|
ref: t,
|
|
@@ -1148,7 +1148,7 @@ const xr = G.Root, hr = G.Trigger, Jt = s.forwardRef(
|
|
|
1148
1148
|
align: e,
|
|
1149
1149
|
sideOffset: t,
|
|
1150
1150
|
className: r(
|
|
1151
|
-
"z-[100] w-72 rounded-
|
|
1151
|
+
"z-[100] w-72 rounded-surface border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1152
1152
|
a
|
|
1153
1153
|
),
|
|
1154
1154
|
...n
|
|
@@ -1310,7 +1310,7 @@ const go = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
|
1310
1310
|
"textarea",
|
|
1311
1311
|
{
|
|
1312
1312
|
className: r(
|
|
1313
|
-
"flex min-h-[80px] w-full rounded-
|
|
1313
|
+
"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",
|
|
1314
1314
|
a
|
|
1315
1315
|
),
|
|
1316
1316
|
ref: t,
|
|
@@ -1333,7 +1333,7 @@ const vr = v.Provider, bo = s.forwardRef(
|
|
|
1333
1333
|
);
|
|
1334
1334
|
bo.displayName = v.Viewport.displayName;
|
|
1335
1335
|
const No = B(
|
|
1336
|
-
"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-
|
|
1336
|
+
"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",
|
|
1337
1337
|
{
|
|
1338
1338
|
variants: {
|
|
1339
1339
|
variant: {
|
|
@@ -1353,7 +1353,7 @@ const ho = s.forwardRef(
|
|
|
1353
1353
|
{
|
|
1354
1354
|
ref: t,
|
|
1355
1355
|
className: r(
|
|
1356
|
-
"inline-flex h-8 shrink-0 items-center justify-center rounded-
|
|
1356
|
+
"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",
|
|
1357
1357
|
a
|
|
1358
1358
|
),
|
|
1359
1359
|
...e
|
|
@@ -1384,7 +1384,7 @@ vo.displayName = v.Title.displayName;
|
|
|
1384
1384
|
const wo = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(v.Description, { ref: t, className: r("text-sm opacity-90", a), ...e }));
|
|
1385
1385
|
wo.displayName = v.Description.displayName;
|
|
1386
1386
|
const Ce = B(
|
|
1387
|
-
"inline-flex items-center justify-center rounded-
|
|
1387
|
+
"inline-flex items-center justify-center rounded-control text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-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=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
1388
1388
|
{
|
|
1389
1389
|
variants: {
|
|
1390
1390
|
variant: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { c as n } from "./tailwind.helper-B6yFEsav.js";
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { cva as
|
|
3
|
+
import { Slot as c } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as f } from "class-variance-authority";
|
|
5
5
|
import * as s from "react";
|
|
6
6
|
import * as e from "@radix-ui/react-tooltip";
|
|
7
|
-
const
|
|
8
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-
|
|
7
|
+
const p = f(
|
|
8
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-control text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
@@ -19,8 +19,8 @@ const f = p(
|
|
|
19
19
|
},
|
|
20
20
|
size: {
|
|
21
21
|
default: "h-10 px-4 py-2",
|
|
22
|
-
sm: "h-9 rounded-
|
|
23
|
-
lg: "h-11 rounded-
|
|
22
|
+
sm: "h-9 rounded-control px-3",
|
|
23
|
+
lg: "h-11 rounded-control px-8",
|
|
24
24
|
icon: "h-10 w-10"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
@@ -29,28 +29,28 @@ const f = p(
|
|
|
29
29
|
size: "default"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
),
|
|
33
|
-
|
|
34
|
-
const y = e.Provider, w = e.Root, T = e.Trigger,
|
|
32
|
+
), u = s.forwardRef(({ className: o, variant: t, size: r, asChild: i = !1, ...d }, l) => /* @__PURE__ */ a(i ? c : "button", { className: n(p({ variant: t, size: r, className: o })), ref: l, ...d }));
|
|
33
|
+
u.displayName = "Button";
|
|
34
|
+
const y = e.Provider, w = e.Root, T = e.Trigger, m = s.forwardRef(
|
|
35
35
|
({ className: o, sideOffset: t = 4, ...r }, i) => /* @__PURE__ */ a(
|
|
36
36
|
e.Content,
|
|
37
37
|
{
|
|
38
38
|
ref: i,
|
|
39
39
|
sideOffset: t,
|
|
40
40
|
className: n(
|
|
41
|
-
"z-50 overflow-hidden rounded-
|
|
41
|
+
"z-50 overflow-hidden rounded-surface border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
42
42
|
o
|
|
43
43
|
),
|
|
44
44
|
...r
|
|
45
45
|
}
|
|
46
46
|
)
|
|
47
47
|
);
|
|
48
|
-
|
|
48
|
+
m.displayName = e.Content.displayName;
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
u as B,
|
|
51
51
|
w as T,
|
|
52
|
-
|
|
52
|
+
m as a,
|
|
53
53
|
y as b,
|
|
54
54
|
T as c,
|
|
55
|
-
|
|
55
|
+
p as d
|
|
56
56
|
};
|
|
@@ -57,7 +57,7 @@ const g = (e) => {
|
|
|
57
57
|
loadingKey: "Suppression...",
|
|
58
58
|
icon: l,
|
|
59
59
|
titleClassName: "flex items-center gap-2 text-destructive",
|
|
60
|
-
headerClassName: "bg-gradient-to-r from-slate-900 to-purple-700 rounded-t-
|
|
60
|
+
headerClassName: "bg-gradient-to-r from-slate-900 to-purple-700 rounded-t-surface shrink-0"
|
|
61
61
|
}), x = () => {
|
|
62
62
|
const e = u(m);
|
|
63
63
|
if (e === void 0)
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krosoft/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.171",
|
|
4
4
|
"description": "Krosoft shared React package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "vite build && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
7
|
+
"build": "vite build && tsc -p tsconfig.build.json --emitDeclarationOnly && tsc-alias -p tsconfig.build.json",
|
|
8
8
|
"lint": "eslint .",
|
|
9
9
|
"format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}'",
|
|
10
10
|
"type-check": "tsc --noEmit",
|
|
@@ -113,6 +113,7 @@
|
|
|
113
113
|
"react-router-dom": "^7.18.1",
|
|
114
114
|
"storybook": "^10.5.0",
|
|
115
115
|
"tailwindcss": "^3.4.19",
|
|
116
|
+
"tsc-alias": "^1.9.1",
|
|
116
117
|
"typescript": "^5.9.3",
|
|
117
118
|
"vite": "^6.4.3",
|
|
118
119
|
"vitest": "^4.1.10"
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import "./toggle-group-DY9wl0HW.js";
|
|
3
|
-
import "./alert-B78CiTYe.js";
|
|
4
|
-
import "@radix-ui/react-aspect-ratio";
|
|
5
|
-
import { B as l } from "./tooltip-BWyFpIxo.js";
|
|
6
|
-
import "@radix-ui/react-collapsible";
|
|
7
|
-
import "./sheet-Gop1cIaU.js";
|
|
8
|
-
import { ArrowLeftIcon as c } from "lucide-react";
|
|
9
|
-
import "react-resizable-panels";
|
|
10
|
-
import "clsx";
|
|
11
|
-
import "tailwind-merge";
|
|
12
|
-
import "./select-MWzbMBAS.js";
|
|
13
|
-
import "next-themes";
|
|
14
|
-
import "sonner";
|
|
15
|
-
import "react";
|
|
16
|
-
import { A as f } from "./AppActions-DCYt9I0e.js";
|
|
17
|
-
import { A as u } from "./AppTitle-uboDuil4.js";
|
|
18
|
-
import { u as d } from "./useDocumentTitle-WNwdPz-I.js";
|
|
19
|
-
import { useTranslation as x } from "react-i18next";
|
|
20
|
-
import "@krosoft/core/helpers";
|
|
21
|
-
import { b as g, a as h } from "./SkeletonCards-BgsWWMun.js";
|
|
22
|
-
import { E as A } from "./ErrorState-vU8d4CwD.js";
|
|
23
|
-
function M({
|
|
24
|
-
icon: e,
|
|
25
|
-
titleKey: t,
|
|
26
|
-
descriptionKey: i,
|
|
27
|
-
actions: a,
|
|
28
|
-
onBack: s,
|
|
29
|
-
renderPreActions: m,
|
|
30
|
-
className: p
|
|
31
|
-
}) {
|
|
32
|
-
const { t: n } = x();
|
|
33
|
-
return d(n(t)), /* @__PURE__ */ o("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4", children: [
|
|
34
|
-
/* @__PURE__ */ o("div", { className: "flex items-center gap-4", children: [
|
|
35
|
-
s && /* @__PURE__ */ r(l, { variant: "ghost", size: "icon", onClick: s, className: "rounded-2xl", children: /* @__PURE__ */ r(c, { className: "h-4 w-4" }) }),
|
|
36
|
-
e && /* @__PURE__ */ r("div", { className: "size-12 bg-blue-100 rounded-lg flex items-center justify-center", children: /* @__PURE__ */ r(e, { className: "h-6 w-6 text-blue-600" }) }),
|
|
37
|
-
/* @__PURE__ */ r(u, { titleKey: t, descriptionKey: i })
|
|
38
|
-
] }),
|
|
39
|
-
/* @__PURE__ */ o("div", { className: "flex items-center gap-4", children: [
|
|
40
|
-
m && m(),
|
|
41
|
-
/* @__PURE__ */ r(f, { actions: a, className: p })
|
|
42
|
-
] })
|
|
43
|
-
] });
|
|
44
|
-
}
|
|
45
|
-
const O = ({ stats: e, isLoading: t, error: i }) => t ? /* @__PURE__ */ r(g, { count: 4 }) : i ? /* @__PURE__ */ r(A, { message: i.message }) : /* @__PURE__ */ r(h, { stats: e });
|
|
46
|
-
export {
|
|
47
|
-
M as A,
|
|
48
|
-
O as K
|
|
49
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as r } from "./tailwind.helper-B6yFEsav.js";
|
|
3
|
-
function a({ className: e, ...m }) {
|
|
4
|
-
return /* @__PURE__ */ o("div", { className: r("animate-pulse rounded-md bg-muted", e), ...m });
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
a as S
|
|
8
|
-
};
|