@krosoft/react 0.0.72 → 0.0.74
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/DateRangePicker-BAn4LMHi.js +1237 -0
- package/dist/KpiCards-Bp6EAsf7.js +40 -0
- package/dist/ThemeSelector-DQmkKmzE.js +49 -0
- package/dist/Topbar-CFALRIJn.js +168 -0
- package/dist/{badge-Cj2EQgcL.js → badge-C4pCH7IL.js} +1 -1
- package/dist/calendar-cHag6u-j.js +3942 -0
- package/dist/components/core/cards/KpiCards.d.ts.map +1 -1
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/index.d.ts +1 -0
- package/dist/components/core/index.d.ts.map +1 -1
- package/dist/components/core/index.js +13 -10
- package/dist/components/core/inputs/DateRangePicker.d.ts +10 -0
- package/dist/components/core/inputs/DateRangePicker.d.ts.map +1 -0
- package/dist/components/core/inputs/index.d.ts +2 -0
- package/dist/components/core/inputs/index.d.ts.map +1 -1
- package/dist/components/core/inputs/index.js +3 -2
- package/dist/components/core/navbar/index.js +1 -1
- package/dist/components/core/theme/ThemeSelector.d.ts +8 -0
- package/dist/components/core/theme/ThemeSelector.d.ts.map +1 -0
- package/dist/components/core/theme/index.d.ts +3 -0
- package/dist/components/core/theme/index.d.ts.map +1 -0
- package/dist/components/core/theme/index.js +4 -0
- package/dist/components/index.js +47 -34
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +3 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +29 -19
- package/dist/components/ui/select.d.ts +14 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +16 -112
- package/dist/hooks/ui/useTheme.d.ts +20 -0
- package/dist/hooks/ui/useTheme.d.ts.map +1 -0
- package/dist/index-BQOmHRsD.js +1662 -0
- package/dist/select-Dv9bdUCB.js +2023 -0
- package/dist/tooltip-Dep8OR3c.js +779 -0
- package/dist/useTheme-D__o7mLN.js +122 -0
- package/package.json +12 -2
- package/dist/KpiCards-D4Cy8CLT.js +0 -38
- package/dist/SearchInput-LIey3bo9.js +0 -46
- package/dist/Topbar-CtXJ337W.js +0 -2314
- package/dist/index-BNCR478R.js +0 -272
- package/dist/toast-B6CC_ory.js +0 -856
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KpiCards.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/KpiCards.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAW,MAAM,WAAW,CAAC;AAElD,UAAU,aAAa;IACrB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAED,eAAO,MAAM,QAAQ,GAAI,WAAW,aAAa,KAAG,KAAK,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"KpiCards.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/KpiCards.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAW,MAAM,WAAW,CAAC;AAElD,UAAU,aAAa;IACrB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAED,eAAO,MAAM,QAAQ,GAAI,WAAW,aAAa,KAAG,KAAK,CAAC,GAAG,CAAC,OAgB7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import { S as p } from "../../
|
|
3
|
-
import { E as
|
|
4
|
-
import { S as
|
|
1
|
+
import { K as e, a as o } from "../../KpiCards-Bp6EAsf7.js";
|
|
2
|
+
import { D as s, S as p } from "../../DateRangePicker-BAn4LMHi.js";
|
|
3
|
+
import { E as m, L as f } from "../../LoadingState-C0uS6aGT.js";
|
|
4
|
+
import { S as x, T as d } from "../../Topbar-CFALRIJn.js";
|
|
5
|
+
import { T as c } from "../../ThemeSelector-DQmkKmzE.js";
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
s as DateRangePicker,
|
|
8
|
+
m as ErrorState,
|
|
9
|
+
e as KpiCard,
|
|
10
|
+
o as KpiCards,
|
|
11
|
+
f as LoadingState,
|
|
10
12
|
p as SearchInput,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
x as Sidebar,
|
|
14
|
+
c as ThemeSelector,
|
|
15
|
+
d as Topbar
|
|
13
16
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DateRange } from "react-day-picker";
|
|
2
|
+
interface DateRangePickerProps {
|
|
3
|
+
value?: DateRange;
|
|
4
|
+
onChange: (range?: DateRange) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DateRangePicker: ({ value, onChange, placeholder, className }: DateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=DateRangePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/DateRangePicker.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,UAAU,oBAAoB;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,GAAI,6CAA0E,oBAAoB,4CAwF7H,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ThemeOption } from "@/hooks/ui/useTheme";
|
|
2
|
+
interface ThemeSelectorProps {
|
|
3
|
+
themeOptions: readonly ThemeOption[];
|
|
4
|
+
variant?: "select" | "mini";
|
|
5
|
+
}
|
|
6
|
+
export declare function ThemeSelector({ themeOptions, variant }: ThemeSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=ThemeSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/core/theme/ThemeSelector.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEjE,UAAU,kBAAkB;IAC1B,YAAY,EAAE,SAAS,WAAW,EAAE,CAAC;IACrC,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC7B;AAED,wBAAgB,aAAa,CAAC,EAAE,YAAY,EAAE,OAAkB,EAAE,EAAE,kBAAkB,2CAmDrF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,37 +1,50 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import { S as
|
|
3
|
-
import { E as p, L as
|
|
4
|
-
import { S as
|
|
5
|
-
import {
|
|
6
|
-
import { B as k,
|
|
7
|
-
import { B as F, b as
|
|
1
|
+
import { K as t, a as r } from "../KpiCards-Bp6EAsf7.js";
|
|
2
|
+
import { D as o, S as i } from "../DateRangePicker-BAn4LMHi.js";
|
|
3
|
+
import { E as p, L as n } from "../LoadingState-C0uS6aGT.js";
|
|
4
|
+
import { S as d, T as S } from "../Topbar-CFALRIJn.js";
|
|
5
|
+
import { T as C } from "../ThemeSelector-DQmkKmzE.js";
|
|
6
|
+
import { A as f, a as b, b as x, C as g, c as u, d as A, e as D, f as B, g as I, h as V, I as h, T as K, i as L, j as k, k as E, l as P, m as j, n as v } from "../calendar-cHag6u-j.js";
|
|
7
|
+
import { B as F, b as G } from "../index-BQOmHRsD.js";
|
|
8
|
+
import { B as R, b as q } from "../badge-C4pCH7IL.js";
|
|
9
|
+
import { S as z, a as J, b as M, c as N, d as O, e as Q, f as U, g as W } from "../select-Dv9bdUCB.js";
|
|
8
10
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
f as Alert,
|
|
12
|
+
b as AlertDescription,
|
|
13
|
+
x as AlertTitle,
|
|
14
|
+
R as Badge,
|
|
15
|
+
F as Button,
|
|
16
|
+
g as Calendar,
|
|
17
|
+
u as Card,
|
|
18
|
+
A as CardContent,
|
|
19
|
+
D as CardDescription,
|
|
20
|
+
B as CardFooter,
|
|
21
|
+
I as CardHeader,
|
|
22
|
+
V as CardTitle,
|
|
23
|
+
o as DateRangePicker,
|
|
20
24
|
p as ErrorState,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
h as Input,
|
|
26
|
+
t as KpiCard,
|
|
27
|
+
r as KpiCards,
|
|
28
|
+
n as LoadingState,
|
|
29
|
+
i as SearchInput,
|
|
30
|
+
z as Select,
|
|
31
|
+
J as SelectContent,
|
|
32
|
+
M as SelectGroup,
|
|
33
|
+
N as SelectItem,
|
|
34
|
+
O as SelectLabel,
|
|
35
|
+
Q as SelectSeparator,
|
|
36
|
+
U as SelectTrigger,
|
|
37
|
+
W as SelectValue,
|
|
38
|
+
d as Sidebar,
|
|
39
|
+
C as ThemeSelector,
|
|
40
|
+
K as Toast,
|
|
41
|
+
L as ToastAction,
|
|
42
|
+
k as ToastClose,
|
|
43
|
+
E as ToastDescription,
|
|
44
|
+
P as ToastProvider,
|
|
45
|
+
j as ToastTitle,
|
|
46
|
+
v as ToastViewport,
|
|
47
|
+
S as Topbar,
|
|
48
|
+
q as badgeVariants,
|
|
49
|
+
G as buttonVariants
|
|
37
50
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DayPicker } from "react-day-picker";
|
|
3
|
+
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare namespace Calendar {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
8
|
+
export { Calendar };
|
|
9
|
+
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnE,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,eAAsB,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CA4C3F;kBA5CQ,QAAQ;;;AA+CjB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -7,4 +7,7 @@ export type { BadgeProps } from "./badge";
|
|
|
7
7
|
export { Input } from "./input";
|
|
8
8
|
export { Toast, ToastProvider, ToastViewport, ToastTitle, ToastDescription, ToastClose, ToastAction } from "./toast";
|
|
9
9
|
export type { ToastProps, ToastActionElement } from "./toast";
|
|
10
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator } from "./select";
|
|
11
|
+
export { Calendar } from "./calendar";
|
|
12
|
+
export type { CalendarProps } from "./calendar";
|
|
10
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAClD,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC/F,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACrH,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAClD,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC/F,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACrH,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACpI,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,26 +1,36 @@
|
|
|
1
|
-
import { A as t, a as
|
|
2
|
-
import { B as
|
|
3
|
-
import { B as
|
|
1
|
+
import { A as t, a as s, b as r, C as o, c as l, d as i, e as n, f as c, g as d, h as T, I as p, T as C, i as S, j as b, k as f, l as g, m, n as u } from "../../calendar-cHag6u-j.js";
|
|
2
|
+
import { B as x, b as B } from "../../index-BQOmHRsD.js";
|
|
3
|
+
import { B as D, b as I } from "../../badge-C4pCH7IL.js";
|
|
4
|
+
import { S as j, a as k, b as v, c as w, d as F, e as G, f as H, g as L } from "../../select-Dv9bdUCB.js";
|
|
4
5
|
export {
|
|
5
6
|
t as Alert,
|
|
6
|
-
|
|
7
|
+
s as AlertDescription,
|
|
7
8
|
r as AlertTitle,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
D as Badge,
|
|
10
|
+
x as Button,
|
|
11
|
+
o as Calendar,
|
|
12
|
+
l as Card,
|
|
11
13
|
i as CardContent,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
n as CardDescription,
|
|
15
|
+
c as CardFooter,
|
|
16
|
+
d as CardHeader,
|
|
17
|
+
T as CardTitle,
|
|
18
|
+
p as Input,
|
|
19
|
+
j as Select,
|
|
20
|
+
k as SelectContent,
|
|
21
|
+
v as SelectGroup,
|
|
22
|
+
w as SelectItem,
|
|
23
|
+
F as SelectLabel,
|
|
24
|
+
G as SelectSeparator,
|
|
25
|
+
H as SelectTrigger,
|
|
26
|
+
L as SelectValue,
|
|
27
|
+
C as Toast,
|
|
28
|
+
S as ToastAction,
|
|
29
|
+
b as ToastClose,
|
|
30
|
+
f as ToastDescription,
|
|
31
|
+
g as ToastProvider,
|
|
22
32
|
m as ToastTitle,
|
|
23
|
-
|
|
33
|
+
u as ToastViewport,
|
|
24
34
|
I as badgeVariants,
|
|
25
|
-
|
|
35
|
+
B as buttonVariants
|
|
26
36
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
4
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton };
|
|
14
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,QAAA,MAAM,MAAM,uCAAuB,CAAC;AAEpC,QAAA,MAAM,WAAW,yGAAwB,CAAC;AAE1C,QAAA,MAAM,WAAW,0GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,oKAgBlB,CAAC;AAGF,QAAA,MAAM,oBAAoB,qKAMzB,CAAC;AAGF,QAAA,MAAM,sBAAsB,uKAO1B,CAAC;AAGH,QAAA,MAAM,aAAa,8JAwBlB,CAAC;AAGF,QAAA,MAAM,WAAW,4JAEhB,CAAC;AAGF,QAAA,MAAM,UAAU,2JAkBf,CAAC;AAGF,QAAA,MAAM,eAAe,gKAEpB,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,CAAC"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -2,4 +2,6 @@ export { useMobile } from "./ui/useMobile";
|
|
|
2
2
|
export { useNotifications } from "./ui/useNotifications";
|
|
3
3
|
export type { UseNotificationsResult } from "./ui/useNotifications";
|
|
4
4
|
export { useToast, toast } from "./ui/useToast";
|
|
5
|
+
export { useTheme } from "./ui/useTheme";
|
|
6
|
+
export type { ThemeOption } from "./ui/useTheme";
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,117 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
const [
|
|
6
|
-
return
|
|
7
|
-
const
|
|
8
|
-
|
|
1
|
+
import { useState as i, useEffect as a } from "react";
|
|
2
|
+
import { t as h, a as m, u as f, b as w } from "../useTheme-D__o7mLN.js";
|
|
3
|
+
const e = 768;
|
|
4
|
+
function c() {
|
|
5
|
+
const [o, t] = i(!1);
|
|
6
|
+
return a(() => {
|
|
7
|
+
const n = window.matchMedia(`(max-width: ${String(e - 1)}px)`), s = () => {
|
|
8
|
+
t(window.innerWidth < e);
|
|
9
9
|
};
|
|
10
|
-
return
|
|
11
|
-
|
|
10
|
+
return n.addEventListener("change", s), t(window.innerWidth < e), () => {
|
|
11
|
+
n.removeEventListener("change", s);
|
|
12
12
|
};
|
|
13
|
-
}, []),
|
|
13
|
+
}, []), o;
|
|
14
14
|
}
|
|
15
|
-
const p = 1, A = 1e6;
|
|
16
|
-
let a = 0;
|
|
17
|
-
function h() {
|
|
18
|
-
return a = (a + 1) % Number.MAX_SAFE_INTEGER, a.toString();
|
|
19
|
-
}
|
|
20
|
-
const T = /* @__PURE__ */ new Map(), f = (t) => {
|
|
21
|
-
if (T.has(t))
|
|
22
|
-
return;
|
|
23
|
-
const s = setTimeout(() => {
|
|
24
|
-
T.delete(t), r({
|
|
25
|
-
type: "REMOVE_TOAST",
|
|
26
|
-
toastId: t
|
|
27
|
-
});
|
|
28
|
-
}, A);
|
|
29
|
-
T.set(t, s);
|
|
30
|
-
}, O = (t, s) => {
|
|
31
|
-
switch (s.type) {
|
|
32
|
-
case "ADD_TOAST":
|
|
33
|
-
return {
|
|
34
|
-
...t,
|
|
35
|
-
toasts: [s.toast, ...t.toasts].slice(0, p)
|
|
36
|
-
};
|
|
37
|
-
case "UPDATE_TOAST":
|
|
38
|
-
return {
|
|
39
|
-
...t,
|
|
40
|
-
toasts: t.toasts.map((e) => e.id === s.toast.id ? { ...e, ...s.toast } : e)
|
|
41
|
-
};
|
|
42
|
-
case "DISMISS_TOAST": {
|
|
43
|
-
const { toastId: e } = s;
|
|
44
|
-
return e ? f(e) : t.toasts.forEach((o) => {
|
|
45
|
-
f(o.id);
|
|
46
|
-
}), {
|
|
47
|
-
...t,
|
|
48
|
-
toasts: t.toasts.map(
|
|
49
|
-
(o) => o.id === e || e === void 0 ? {
|
|
50
|
-
...o,
|
|
51
|
-
open: !1
|
|
52
|
-
} : o
|
|
53
|
-
)
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
case "REMOVE_TOAST":
|
|
57
|
-
return s.toastId === void 0 ? {
|
|
58
|
-
...t,
|
|
59
|
-
toasts: []
|
|
60
|
-
} : {
|
|
61
|
-
...t,
|
|
62
|
-
toasts: t.toasts.filter((e) => e.id !== s.toastId)
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
}, i = [];
|
|
66
|
-
let c = { toasts: [] };
|
|
67
|
-
function r(t) {
|
|
68
|
-
c = O(c, t), i.forEach((s) => {
|
|
69
|
-
s(c);
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function d({ ...t }) {
|
|
73
|
-
const s = h(), e = (n) => r({
|
|
74
|
-
type: "UPDATE_TOAST",
|
|
75
|
-
toast: { ...n, id: s }
|
|
76
|
-
}), o = () => r({ type: "DISMISS_TOAST", toastId: s });
|
|
77
|
-
return r({
|
|
78
|
-
type: "ADD_TOAST",
|
|
79
|
-
toast: {
|
|
80
|
-
...t,
|
|
81
|
-
id: s,
|
|
82
|
-
open: !0,
|
|
83
|
-
onOpenChange: (n) => {
|
|
84
|
-
n || o();
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}), {
|
|
88
|
-
id: s,
|
|
89
|
-
dismiss: o,
|
|
90
|
-
update: e
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
function I() {
|
|
94
|
-
const [t, s] = S.useState(c);
|
|
95
|
-
return S.useEffect(() => (i.push(s), () => {
|
|
96
|
-
const e = i.indexOf(s);
|
|
97
|
-
e > -1 && i.splice(e, 1);
|
|
98
|
-
}), [t]), {
|
|
99
|
-
...t,
|
|
100
|
-
toast: d,
|
|
101
|
-
dismiss: (e) => r({ type: "DISMISS_TOAST", toastId: e })
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
const M = () => ({
|
|
105
|
-
showSuccess: (e, o, n) => {
|
|
106
|
-
d({ title: e, description: o, action: n });
|
|
107
|
-
},
|
|
108
|
-
showError: (e, o, n) => {
|
|
109
|
-
console.error(o, n), d({ title: e, description: o, variant: "destructive" });
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
15
|
export {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
16
|
+
h as toast,
|
|
17
|
+
c as useMobile,
|
|
18
|
+
m as useNotifications,
|
|
19
|
+
f as useTheme,
|
|
20
|
+
w as useToast
|
|
117
21
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface ThemeOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon: React.ComponentType<{
|
|
6
|
+
className?: string;
|
|
7
|
+
}>;
|
|
8
|
+
message?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function useTheme(themeOptions: readonly ThemeOption[]): {
|
|
11
|
+
theme: string | undefined;
|
|
12
|
+
setTheme: React.Dispatch<React.SetStateAction<string>>;
|
|
13
|
+
handleThemeChange: (newTheme: string) => void;
|
|
14
|
+
themeOptions: readonly ThemeOption[];
|
|
15
|
+
currentThemeOption: ThemeOption | undefined;
|
|
16
|
+
nextThemeOption: ThemeOption;
|
|
17
|
+
isDark: boolean;
|
|
18
|
+
cycleTheme: () => void;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=useTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/ui/useTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,QAAQ,CAAC,YAAY,EAAE,SAAS,WAAW,EAAE;;;kCAItB,MAAM;;;;;;EAyB5C"}
|