@krosoft/react 0.0.95 → 0.0.96

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.
Files changed (42) hide show
  1. package/dist/{AppSubTitle-BpBamEcm.js → AppSubTitle-Bc8utqt7.js} +1 -1
  2. package/dist/{AppTitle-eMxmvBxB.js → AppTitle-QlMMlpbQ.js} +8 -8
  3. package/dist/{AppVerticalTabs-CVukFn4d.js → AppVerticalTabs--Kb9OFa4.js} +29 -30
  4. package/dist/{ConfirmationDialog-D7W5xkwQ.js → ConfirmationDialog-Bv-O4ui4.js} +43 -43
  5. package/dist/{DataTable-C5t09hPv.js → DataTable-DWGao3TY.js} +28 -28
  6. package/dist/{ErrorAlert-BITMD2I5.js → ErrorAlert-DpOsMww8.js} +1 -1
  7. package/dist/LoadingState-M_TV_5Ui.js +13 -0
  8. package/dist/MetricCard-BjTGW3b2.js +103 -0
  9. package/dist/{SearchInput-Cez8b7gL.js → SearchInput-CvBCMaFl.js} +54 -54
  10. package/dist/{TableFilter-ChclLTH1.js → TableFilter-TsVYIJlw.js} +44 -44
  11. package/dist/alert-sHZy6NHC.js +30 -0
  12. package/dist/components/core/cards/CardSkeleton.d.ts.map +1 -0
  13. package/dist/components/core/cards/CardsSkeleton.d.ts.map +1 -0
  14. package/dist/components/core/cards/DashboardCard.d.ts +10 -0
  15. package/dist/components/core/cards/DashboardCard.d.ts.map +1 -0
  16. package/dist/components/core/cards/index.d.ts +4 -1
  17. package/dist/components/core/cards/index.d.ts.map +1 -1
  18. package/dist/components/core/cards/index.js +7 -4
  19. package/dist/components/core/dialogs/index.js +2 -2
  20. package/dist/components/core/filters/index.js +1 -1
  21. package/dist/components/core/index.js +63 -62
  22. package/dist/components/core/inputs/index.js +1 -1
  23. package/dist/components/core/layouts/index.js +2 -2
  24. package/dist/components/core/states/index.d.ts +0 -2
  25. package/dist/components/core/states/index.d.ts.map +1 -1
  26. package/dist/components/core/states/index.js +5 -7
  27. package/dist/components/core/table/index.js +1 -1
  28. package/dist/components/core/tabs/index.js +1 -1
  29. package/dist/components/index.js +284 -283
  30. package/dist/components/ui/button.d.ts +2 -2
  31. package/dist/components/ui/command.d.ts +12 -12
  32. package/dist/components/ui/index.js +187 -187
  33. package/dist/{toaster-DeSyPrhi.js → toaster-B09ou5gw.js} +24 -24
  34. package/dist/{toggle-group-CrQymn4l.js → toggle-group-iLf3T7oV.js} +5850 -5832
  35. package/package.json +1 -1
  36. package/dist/LoadingState-COf3KhOP.js +0 -29
  37. package/dist/MetricCard-BkOvTc3_.js +0 -85
  38. package/dist/card-Bn3Y7DHQ.js +0 -48
  39. package/dist/components/core/states/CardSkeleton.d.ts.map +0 -1
  40. package/dist/components/core/states/CardsSkeleton.d.ts.map +0 -1
  41. /package/dist/components/core/{states → cards}/CardSkeleton.d.ts +0 -0
  42. /package/dist/components/core/{states → cards}/CardsSkeleton.d.ts +0 -0
@@ -0,0 +1,30 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { a as l } from "./index-DSyPHOLE.js";
4
+ import { c as i } from "./index-gWiv5-6R.js";
5
+ const d = l(
6
+ "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
7
+ {
8
+ variants: {
9
+ variant: {
10
+ default: "bg-background text-foreground",
11
+ destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
12
+ }
13
+ },
14
+ defaultVariants: {
15
+ variant: "default"
16
+ }
17
+ }
18
+ ), n = s.forwardRef(
19
+ ({ className: t, variant: e, ...r }, o) => /* @__PURE__ */ a("div", { ref: o, role: "alert", className: i(d({ variant: e }), t), ...r })
20
+ );
21
+ n.displayName = "Alert";
22
+ const c = s.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a("h5", { ref: r, className: i("mb-1 font-medium leading-none tracking-tight", t), ...e }));
23
+ c.displayName = "AlertTitle";
24
+ const v = s.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a("div", { ref: r, className: i("text-sm [&_p]:leading-relaxed", t), ...e }));
25
+ v.displayName = "AlertDescription";
26
+ export {
27
+ n as A,
28
+ v as a,
29
+ c as b
30
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/CardSkeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,YAAY,QAAO,KAAK,CAAC,GAAG,CAAC,OAczC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardsSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/CardsSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,aAAa,GAAI,WAAe,kBAAkB,KAAG,KAAK,CAAC,GAAG,CAAC,OAQ3E,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ interface DashboardCardProps {
3
+ titleKey: string;
4
+ icon?: React.ElementType;
5
+ className?: string;
6
+ children: React.ReactNode;
7
+ }
8
+ export declare const DashboardCard: ({ titleKey, icon: Icon, className, children }: DashboardCardProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=DashboardCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardCard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/DashboardCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,GAAI,+CAA+C,kBAAkB,4CAa9F,CAAC"}
@@ -1,6 +1,9 @@
1
+ export { CardSkeleton } from "./CardSkeleton";
2
+ export { CardsSkeleton } from "./CardsSkeleton";
3
+ export { DashboardCard } from "./DashboardCard";
1
4
  export { KpiCard } from "./KpiCard";
2
5
  export type { KpiCardProps } from "./KpiCard";
3
6
  export { KpiCards } from "./KpiCards";
4
7
  export { MetricCard } from "./MetricCard";
5
- export type { MetricCardProps, MetricCardColor } from "./MetricCard";
8
+ export type { MetricCardColor, MetricCardProps } from "./MetricCard";
6
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -1,6 +1,9 @@
1
- import { K as s, a as d, M as i } from "../../../MetricCard-BkOvTc3_.js";
1
+ import { C as s, a as d, D as C, K as e, b as o, M as t } from "../../../MetricCard-BjTGW3b2.js";
2
2
  export {
3
- s as KpiCard,
4
- d as KpiCards,
5
- i as MetricCard
3
+ s as CardSkeleton,
4
+ d as CardsSkeleton,
5
+ C as DashboardCard,
6
+ e as KpiCard,
7
+ o as KpiCards,
8
+ t as MetricCard
6
9
  };
@@ -1,5 +1,5 @@
1
- import { A as i, C as l, a as s, F as g } from "../../../ConfirmationDialog-D7W5xkwQ.js";
2
- import { D as e, a as r, b as t, c as n, d as f, e as m, f as p, g as C, h as F, i as P, P as c } from "../../../toggle-group-CrQymn4l.js";
1
+ import { A as i, C as l, a as s, F as g } from "../../../ConfirmationDialog-Bv-O4ui4.js";
2
+ import { D as e, a as r, b as t, c as n, d as f, e as m, f as p, g as C, h as F, i as P, P as c } from "../../../toggle-group-iLf3T7oV.js";
3
3
  export {
4
4
  i as AppDialog,
5
5
  l as ConfirmDeleteDialog,
@@ -1,4 +1,4 @@
1
- import { A as l, a as i, F as r, S as s, T as t } from "../../../TableFilter-ChclLTH1.js";
1
+ import { A as l, a as i, F as r, S as s, T as t } from "../../../TableFilter-TsVYIJlw.js";
2
2
  export {
3
3
  l as ActiveFilters,
4
4
  i as AdvancedFilters,
@@ -1,66 +1,67 @@
1
- import { K as r, a as s, M as o } from "../../MetricCard-BkOvTc3_.js";
2
- import { A as i, C as l, a as p, F as b } from "../../ConfirmationDialog-D7W5xkwQ.js";
3
- import { D, a as T, b as n, c, d as A, e as m, f as d, g as S, h as f, i as x, P as C } from "../../toggle-group-CrQymn4l.js";
4
- import { A as P, a as h, F as k, S as u, T as v } from "../../TableFilter-ChclLTH1.js";
5
- import { D as M, a as H, M as K, S as y, b as B } from "../../SearchInput-Cez8b7gL.js";
6
- import { A as L, a as N } from "../../AppTitle-eMxmvBxB.js";
7
- import { A as R } from "../../AppSubTitle-BpBamEcm.js";
8
- import { S as j, a as q, T as w } from "../../Topbar-QKCJiWdO.js";
9
- import { C as G, a as J, E as Q, L as U } from "../../LoadingState-COf3KhOP.js";
10
- import { E as X } from "../../ErrorAlert-BITMD2I5.js";
11
- import { D as Z, T as _, a as $, b as aa, c as ea, d as ra, e as sa } from "../../DataTable-C5t09hPv.js";
12
- import { A as ta, a as ia, b as la, c as pa } from "../../AppVerticalTabs-CVukFn4d.js";
1
+ import { C as r, a as s, D as o, K as t, b as i, M as l } from "../../MetricCard-BjTGW3b2.js";
2
+ import { A as b, C as D, a as g, F as T } from "../../ConfirmationDialog-Bv-O4ui4.js";
3
+ import { D as c, a as d, b as A, c as m, d as S, e as f, f as x, g as C, h as F, i as P, P as h } from "../../toggle-group-iLf3T7oV.js";
4
+ import { A as u, a as v, F as E, S as M, T as H } from "../../TableFilter-TsVYIJlw.js";
5
+ import { D as y, a as B, M as I, S as L, b as N } from "../../SearchInput-CvBCMaFl.js";
6
+ import { A as R, a as V } from "../../AppTitle-QlMMlpbQ.js";
7
+ import { A as q } from "../../AppSubTitle-Bc8utqt7.js";
8
+ import { S as z, a as G, T as J } from "../../Topbar-QKCJiWdO.js";
9
+ import { E as U } from "../../ErrorAlert-DpOsMww8.js";
10
+ import { E as X, L as Y } from "../../LoadingState-M_TV_5Ui.js";
11
+ import { D as _, T as $, a as aa, b as ea, c as ra, d as sa, e as oa } from "../../DataTable-DWGao3TY.js";
12
+ import { A as ia, a as la, b as pa, c as ba } from "../../AppVerticalTabs--Kb9OFa4.js";
13
13
  import { T as ga } from "../../ThemeSelector-Bzxc7UEq.js";
14
14
  export {
15
- P as ActiveFilters,
16
- h as AdvancedFilters,
17
- L as AppActions,
18
- i as AppDialog,
19
- R as AppSubTitle,
20
- ta as AppTabContainer,
21
- ia as AppTabHeader,
22
- la as AppTabs,
23
- N as AppTitle,
24
- pa as AppVerticalTabs,
25
- G as CardSkeleton,
26
- J as CardsSkeleton,
27
- l as ConfirmDeleteDialog,
28
- p as ConfirmationDialog,
29
- Z as DataTable,
30
- M as DatePicker,
31
- H as DateRangePicker,
32
- D as Dialog,
33
- T as DialogClose,
34
- n as DialogContent,
35
- c as DialogDescription,
36
- A as DialogFooter,
37
- m as DialogHeader,
38
- d as DialogOverlay,
39
- S as DialogPortal,
40
- f as DialogTitle,
41
- x as DialogTrigger,
42
- X as ErrorAlert,
43
- Q as ErrorState,
44
- k as FilterField,
45
- b as FormDialog,
46
- r as KpiCard,
47
- s as KpiCards,
48
- U as LoadingState,
49
- o as MetricCard,
50
- K as MultiSelect,
51
- C as Progress,
52
- y as SearchInput,
53
- u as SearchableFilterPill,
54
- B as SearchableSelect,
55
- j as Sidebar,
56
- q as SidebarNavItem,
57
- _ as TableActions,
58
- $ as TableBody,
59
- aa as TableBulkActions,
60
- v as TableFilter,
61
- ea as TableHeader,
62
- ra as TablePagination,
63
- sa as TableSettings,
15
+ u as ActiveFilters,
16
+ v as AdvancedFilters,
17
+ R as AppActions,
18
+ b as AppDialog,
19
+ q as AppSubTitle,
20
+ ia as AppTabContainer,
21
+ la as AppTabHeader,
22
+ pa as AppTabs,
23
+ V as AppTitle,
24
+ ba as AppVerticalTabs,
25
+ r as CardSkeleton,
26
+ s as CardsSkeleton,
27
+ D as ConfirmDeleteDialog,
28
+ g as ConfirmationDialog,
29
+ o as DashboardCard,
30
+ _ as DataTable,
31
+ y as DatePicker,
32
+ B as DateRangePicker,
33
+ c as Dialog,
34
+ d as DialogClose,
35
+ A as DialogContent,
36
+ m as DialogDescription,
37
+ S as DialogFooter,
38
+ f as DialogHeader,
39
+ x as DialogOverlay,
40
+ C as DialogPortal,
41
+ F as DialogTitle,
42
+ P as DialogTrigger,
43
+ U as ErrorAlert,
44
+ X as ErrorState,
45
+ E as FilterField,
46
+ T as FormDialog,
47
+ t as KpiCard,
48
+ i as KpiCards,
49
+ Y as LoadingState,
50
+ l as MetricCard,
51
+ I as MultiSelect,
52
+ h as Progress,
53
+ L as SearchInput,
54
+ M as SearchableFilterPill,
55
+ N as SearchableSelect,
56
+ z as Sidebar,
57
+ G as SidebarNavItem,
58
+ $ as TableActions,
59
+ aa as TableBody,
60
+ ea as TableBulkActions,
61
+ H as TableFilter,
62
+ ra as TableHeader,
63
+ sa as TablePagination,
64
+ oa as TableSettings,
64
65
  ga as ThemeSelector,
65
- w as Topbar
66
+ J as Topbar
66
67
  };
@@ -1,4 +1,4 @@
1
- import { D as t, a as c, M as r, S as s, b as S } from "../../../SearchInput-Cez8b7gL.js";
1
+ import { D as t, a as c, M as r, S as s, b as S } from "../../../SearchInput-CvBCMaFl.js";
2
2
  export {
3
3
  t as DatePicker,
4
4
  c as DateRangePicker,
@@ -1,5 +1,5 @@
1
- import { A as o, a as t } from "../../../AppTitle-eMxmvBxB.js";
2
- import { A as e } from "../../../AppSubTitle-BpBamEcm.js";
1
+ import { A as o, a as t } from "../../../AppTitle-QlMMlpbQ.js";
2
+ import { A as e } from "../../../AppSubTitle-Bc8utqt7.js";
3
3
  export {
4
4
  o as AppActions,
5
5
  e as AppSubTitle,
@@ -1,5 +1,3 @@
1
- export { CardSkeleton } from "./CardSkeleton";
2
- export { CardsSkeleton } from "./CardsSkeleton";
3
1
  export { ErrorAlert } from "./ErrorAlert";
4
2
  export { ErrorState } from "./ErrorState";
5
3
  export { LoadingState } from "./LoadingState";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/states/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/states/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,9 +1,7 @@
1
- import { C as e, a as o, E as t, L as s } from "../../../LoadingState-COf3KhOP.js";
2
- import { E as S } from "../../../ErrorAlert-BITMD2I5.js";
1
+ import { E as t } from "../../../ErrorAlert-DpOsMww8.js";
2
+ import { E as e, L as E } from "../../../LoadingState-M_TV_5Ui.js";
3
3
  export {
4
- e as CardSkeleton,
5
- o as CardsSkeleton,
6
- S as ErrorAlert,
7
- t as ErrorState,
8
- s as LoadingState
4
+ t as ErrorAlert,
5
+ e as ErrorState,
6
+ E as LoadingState
9
7
  };
@@ -1,4 +1,4 @@
1
- import { D as s, T as b, a as l, b as T, c as t, d as o, e as i } from "../../../DataTable-C5t09hPv.js";
1
+ import { D as s, T as b, a as l, b as T, c as t, d as o, e as i } from "../../../DataTable-DWGao3TY.js";
2
2
  export {
3
3
  s as DataTable,
4
4
  b as TableActions,
@@ -1,4 +1,4 @@
1
- import { A as s, a as b, b as e, c as r } from "../../../AppVerticalTabs-CVukFn4d.js";
1
+ import { A as s, a as b, b as e, c as r } from "../../../AppVerticalTabs--Kb9OFa4.js";
2
2
  export {
3
3
  s as AppTabContainer,
4
4
  b as AppTabHeader,