@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.
Files changed (45) hide show
  1. package/dist/DateRangePicker-BAn4LMHi.js +1237 -0
  2. package/dist/KpiCards-Bp6EAsf7.js +40 -0
  3. package/dist/ThemeSelector-DQmkKmzE.js +49 -0
  4. package/dist/Topbar-CFALRIJn.js +168 -0
  5. package/dist/{badge-Cj2EQgcL.js → badge-C4pCH7IL.js} +1 -1
  6. package/dist/calendar-cHag6u-j.js +3942 -0
  7. package/dist/components/core/cards/KpiCards.d.ts.map +1 -1
  8. package/dist/components/core/cards/index.js +1 -1
  9. package/dist/components/core/index.d.ts +1 -0
  10. package/dist/components/core/index.d.ts.map +1 -1
  11. package/dist/components/core/index.js +13 -10
  12. package/dist/components/core/inputs/DateRangePicker.d.ts +10 -0
  13. package/dist/components/core/inputs/DateRangePicker.d.ts.map +1 -0
  14. package/dist/components/core/inputs/index.d.ts +2 -0
  15. package/dist/components/core/inputs/index.d.ts.map +1 -1
  16. package/dist/components/core/inputs/index.js +3 -2
  17. package/dist/components/core/navbar/index.js +1 -1
  18. package/dist/components/core/theme/ThemeSelector.d.ts +8 -0
  19. package/dist/components/core/theme/ThemeSelector.d.ts.map +1 -0
  20. package/dist/components/core/theme/index.d.ts +3 -0
  21. package/dist/components/core/theme/index.d.ts.map +1 -0
  22. package/dist/components/core/theme/index.js +4 -0
  23. package/dist/components/index.js +47 -34
  24. package/dist/components/ui/calendar.d.ts +9 -0
  25. package/dist/components/ui/calendar.d.ts.map +1 -0
  26. package/dist/components/ui/index.d.ts +3 -0
  27. package/dist/components/ui/index.d.ts.map +1 -1
  28. package/dist/components/ui/index.js +29 -19
  29. package/dist/components/ui/select.d.ts +14 -0
  30. package/dist/components/ui/select.d.ts.map +1 -0
  31. package/dist/hooks/index.d.ts +2 -0
  32. package/dist/hooks/index.d.ts.map +1 -1
  33. package/dist/hooks/index.js +16 -112
  34. package/dist/hooks/ui/useTheme.d.ts +20 -0
  35. package/dist/hooks/ui/useTheme.d.ts.map +1 -0
  36. package/dist/index-BQOmHRsD.js +1662 -0
  37. package/dist/select-Dv9bdUCB.js +2023 -0
  38. package/dist/tooltip-Dep8OR3c.js +779 -0
  39. package/dist/useTheme-D__o7mLN.js +122 -0
  40. package/package.json +12 -2
  41. package/dist/KpiCards-D4Cy8CLT.js +0 -38
  42. package/dist/SearchInput-LIey3bo9.js +0 -46
  43. package/dist/Topbar-CtXJ337W.js +0 -2314
  44. package/dist/index-BNCR478R.js +0 -272
  45. 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,OAe7D,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,4 +1,4 @@
1
- import { K as p, a as s } from "../../../KpiCards-D4Cy8CLT.js";
1
+ import { K as p, a as s } from "../../../KpiCards-Bp6EAsf7.js";
2
2
  export {
3
3
  p as KpiCard,
4
4
  s as KpiCards
@@ -2,4 +2,5 @@ export * from "./cards";
2
2
  export * from "./inputs";
3
3
  export * from "./states";
4
4
  export * from "./navbar";
5
+ export * from "./theme";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -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 o, a as t } from "../../KpiCards-D4Cy8CLT.js";
2
- import { S as p } from "../../SearchInput-LIey3bo9.js";
3
- import { E as S, L as d } from "../../LoadingState-C0uS6aGT.js";
4
- import { S as i, T as m } from "../../Topbar-CtXJ337W.js";
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
- S as ErrorState,
7
- o as KpiCard,
8
- t as KpiCards,
9
- d as LoadingState,
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
- i as Sidebar,
12
- m as Topbar
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,2 +1,4 @@
1
1
  export { SearchInput } from "./SearchInput";
2
+ export { DateRangePicker } from "./DateRangePicker";
3
+ export type { DateRange } from "react-day-picker";
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -1,4 +1,5 @@
1
- import { S as e } from "../../../SearchInput-LIey3bo9.js";
1
+ import { D as r, S as t } from "../../../DateRangePicker-BAn4LMHi.js";
2
2
  export {
3
- e as SearchInput
3
+ r as DateRangePicker,
4
+ t as SearchInput
4
5
  };
@@ -1,4 +1,4 @@
1
- import { S as o, T as b } from "../../../Topbar-CtXJ337W.js";
1
+ import { S as o, T as b } from "../../../Topbar-CFALRIJn.js";
2
2
  export {
3
3
  o as Sidebar,
4
4
  b as Topbar
@@ -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,3 @@
1
+ export { ThemeSelector } from "./ThemeSelector";
2
+ export type { ThemeOption } from "@/hooks/ui/useTheme";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -0,0 +1,4 @@
1
+ import { T as r } from "../../../ThemeSelector-DQmkKmzE.js";
2
+ export {
3
+ r as ThemeSelector
4
+ };
@@ -1,37 +1,50 @@
1
- import { K as r, a as t } from "../KpiCards-D4Cy8CLT.js";
2
- import { S as e } from "../SearchInput-LIey3bo9.js";
3
- import { E as p, L as d } from "../LoadingState-C0uS6aGT.js";
4
- import { S as T, T as C } from "../Topbar-CtXJ337W.js";
5
- import { A as l, a as m, b, C as x, c, d as S, e as A, f as g, g as u, I as B, T as D, h as I, i as K, j as V, k as h, l as E, m as L } from "../toast-B6CC_ory.js";
6
- import { B as k, b as v } from "../index-BNCR478R.js";
7
- import { B as F, b as H } from "../badge-Cj2EQgcL.js";
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
- l as Alert,
10
- m as AlertDescription,
11
- b as AlertTitle,
12
- F as Badge,
13
- k as Button,
14
- x as Card,
15
- c as CardContent,
16
- S as CardDescription,
17
- A as CardFooter,
18
- g as CardHeader,
19
- u as CardTitle,
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
- B as Input,
22
- r as KpiCard,
23
- t as KpiCards,
24
- d as LoadingState,
25
- e as SearchInput,
26
- T as Sidebar,
27
- D as Toast,
28
- I as ToastAction,
29
- K as ToastClose,
30
- V as ToastDescription,
31
- h as ToastProvider,
32
- E as ToastTitle,
33
- L as ToastViewport,
34
- C as Topbar,
35
- H as badgeVariants,
36
- v as buttonVariants
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 o, b as r, C as e, c as i, d, e as n, f as T, g as C, I as l, T as p, h as b, i as c, j as A, k as f, l as m, m as B } from "../../toast-B6CC_ory.js";
2
- import { B as u, b as x } from "../../index-BNCR478R.js";
3
- import { B as V, b as I } from "../../badge-Cj2EQgcL.js";
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
- o as AlertDescription,
7
+ s as AlertDescription,
7
8
  r as AlertTitle,
8
- V as Badge,
9
- u as Button,
10
- e as Card,
9
+ D as Badge,
10
+ x as Button,
11
+ o as Calendar,
12
+ l as Card,
11
13
  i as CardContent,
12
- d as CardDescription,
13
- n as CardFooter,
14
- T as CardHeader,
15
- C as CardTitle,
16
- l as Input,
17
- p as Toast,
18
- b as ToastAction,
19
- c as ToastClose,
20
- A as ToastDescription,
21
- f as ToastProvider,
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
- B as ToastViewport,
33
+ u as ToastViewport,
24
34
  I as badgeVariants,
25
- x as buttonVariants
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"}
@@ -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"}
@@ -1,117 +1,21 @@
1
- import * as S from "react";
2
- import { useState as E, useEffect as m } from "react";
3
- const u = 768;
4
- function _() {
5
- const [t, s] = E(!1);
6
- return m(() => {
7
- const e = window.matchMedia(`(max-width: ${String(u - 1)}px)`), o = () => {
8
- s(window.innerWidth < u);
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 e.addEventListener("change", o), s(window.innerWidth < u), () => {
11
- e.removeEventListener("change", o);
10
+ return n.addEventListener("change", s), t(window.innerWidth < e), () => {
11
+ n.removeEventListener("change", s);
12
12
  };
13
- }, []), t;
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
- d as toast,
114
- _ as useMobile,
115
- M as useNotifications,
116
- I as useToast
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"}