@iit/precision-ui 0.8.0 → 0.8.1

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 (67) hide show
  1. package/dist/hooks/useFetch.d.ts +2 -0
  2. package/dist/hooks/useFetch.d.ts.map +1 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.es.js +8 -6
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/index.es10.js +1 -1
  8. package/dist/index.es11.js +1 -1
  9. package/dist/index.es14.js +1 -1
  10. package/dist/index.es15.js +1 -1
  11. package/dist/index.es17.js +1 -1
  12. package/dist/index.es18.js +2 -2
  13. package/dist/index.es2.js +1 -1
  14. package/dist/index.es20.js +1 -1
  15. package/dist/index.es21.js +1 -1
  16. package/dist/index.es22.js +1 -1
  17. package/dist/index.es24.js +1 -1
  18. package/dist/index.es25.js +1 -1
  19. package/dist/index.es26.js +1 -1
  20. package/dist/index.es29.js +1 -1
  21. package/dist/index.es3.js +2 -2
  22. package/dist/index.es30.js +1 -1
  23. package/dist/index.es31.js +1 -1
  24. package/dist/index.es32.js +1 -1
  25. package/dist/index.es33.js +1 -1
  26. package/dist/index.es34.js +1 -1
  27. package/dist/index.es36.js +1 -1
  28. package/dist/index.es4.js +1 -1
  29. package/dist/index.es40.js +2 -2
  30. package/dist/index.es42.js +1 -1
  31. package/dist/index.es44.js +2 -2
  32. package/dist/index.es45.js +7 -7
  33. package/dist/index.es45.js.map +1 -1
  34. package/dist/index.es46.js +1 -1
  35. package/dist/index.es47.js +1 -1
  36. package/dist/index.es48.js +1 -1
  37. package/dist/index.es49.js +1 -1
  38. package/dist/index.es5.js +1 -1
  39. package/dist/index.es50.js +1 -1
  40. package/dist/index.es51.js +1 -1
  41. package/dist/index.es52.js +1 -1
  42. package/dist/index.es53.js +18 -11
  43. package/dist/index.es53.js.map +1 -1
  44. package/dist/index.es54.js +11 -6
  45. package/dist/index.es54.js.map +1 -1
  46. package/dist/index.es55.js +6 -22
  47. package/dist/index.es55.js.map +1 -1
  48. package/dist/index.es56.js +21 -19
  49. package/dist/index.es56.js.map +1 -1
  50. package/dist/index.es57.js +17 -17
  51. package/dist/index.es57.js.map +1 -1
  52. package/dist/index.es58.js +20 -4
  53. package/dist/index.es58.js.map +1 -1
  54. package/dist/index.es59.js +3 -249
  55. package/dist/index.es59.js.map +1 -1
  56. package/dist/index.es6.js +1 -1
  57. package/dist/index.es60.js +246 -82
  58. package/dist/index.es60.js.map +1 -1
  59. package/dist/index.es61.js +85 -26
  60. package/dist/index.es61.js.map +1 -1
  61. package/dist/index.es62.js +27 -16
  62. package/dist/index.es62.js.map +1 -1
  63. package/dist/index.es63.js +19 -0
  64. package/dist/index.es63.js.map +1 -0
  65. package/dist/index.es7.js +1 -1
  66. package/dist/index.es8.js +1 -1
  67. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ export declare const useFetch: (applyDataFn: Function, loadingByDefault?: boolean) => readonly [boolean, string | null, (...args: unknown[]) => Promise<void>];
2
+ //# sourceMappingURL=useFetch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFetch.d.ts","sourceRoot":"","sources":["../../src/hooks/useFetch.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ,gBAAiB,QAAQ,qBAAqB,OAAO,iDAKtD,OAAO,EAAE,mBAe5B,CAAA"}
package/dist/index.d.ts CHANGED
@@ -76,4 +76,5 @@ export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, Dialog
76
76
  export { ScrollArea, ScrollBar } from './components/ui/scroll-area';
77
77
  export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from './components/ui/accordion';
78
78
  export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/ui/tabs';
79
+ export { useFetch } from './hooks/useFetch';
79
80
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts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AAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;AAGxB,OAAO,EACL,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,GACV,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAa,EAEb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAEnE,OAAO,EACL,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,2BAA2B,CAAA;AAElC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAE/E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA"}
package/dist/index.es.js CHANGED
@@ -7,7 +7,7 @@ import { default as u } from "./index.es7.js";
7
7
  import { default as n } from "./index.es8.js";
8
8
  import { registerAdapter as g } from "./index.es9.js";
9
9
  import { Alert as T, AlertDescription as C, AlertTitle as b } from "./index.es10.js";
10
- import { Input as F } from "./index.es11.js";
10
+ import { Input as D } from "./index.es11.js";
11
11
  import { InputWithLabel as B } from "./index.es12.js";
12
12
  import { default as L } from "./index.es13.js";
13
13
  import { default as P } from "./index.es14.js";
@@ -34,7 +34,7 @@ import { default as nr } from "./index.es34.js";
34
34
  import { default as gr } from "./index.es35.js";
35
35
  import { TagLink as Tr } from "./index.es36.js";
36
36
  import { default as br } from "./index.es37.js";
37
- import { default as Fr } from "./index.es38.js";
37
+ import { default as Dr } from "./index.es38.js";
38
38
  import { default as Br } from "./index.es39.js";
39
39
  import { default as Lr, HeroButton as Sr } from "./index.es40.js";
40
40
  import { default as Wr } from "./index.es41.js";
@@ -49,7 +49,8 @@ import { Dialog as _r, DialogClose as $r, DialogDescription as ro, DialogFooter
49
49
  import { ScrollArea as po, ScrollBar as xo } from "./index.es50.js";
50
50
  import { Accordion as uo, AccordionContent as io, AccordionItem as no, AccordionTrigger as co } from "./index.es51.js";
51
51
  import { Tabs as Ao, TabsContent as To, TabsList as Co, TabsTrigger as bo } from "./index.es52.js";
52
- import { default as Fo } from "./index.es53.js";
52
+ import { useFetch as Do } from "./index.es53.js";
53
+ import { default as Bo } from "./index.es54.js";
53
54
  export {
54
55
  uo as Accordion,
55
56
  io as AccordionContent,
@@ -63,7 +64,7 @@ export {
63
64
  b as AlertTitle,
64
65
  n as AppLink,
65
66
  br as ArticlePreviewTag,
66
- Fo as Breadcrumbs,
67
+ Bo as Breadcrumbs,
67
68
  e as Button,
68
69
  a as ButtonIcon,
69
70
  m as ButtonPrimary,
@@ -96,12 +97,12 @@ export {
96
97
  Nr as FormItem,
97
98
  Vr as FormLabel,
98
99
  Xr as FormMessage,
99
- Fr as GridIterator,
100
+ Dr as GridIterator,
100
101
  Or as Heading,
101
102
  Lr as Hero,
102
103
  Sr as HeroButton,
103
104
  M as Informer,
104
- F as Input,
105
+ D as Input,
105
106
  B as InputWithLabel,
106
107
  w as Label,
107
108
  mr as LicenseCard,
@@ -127,6 +128,7 @@ export {
127
128
  k as Textarea,
128
129
  H as TextareaWithLabel,
129
130
  g as registerAdapter,
131
+ Do as useFetch,
130
132
  Yr as useFormField
131
133
  };
132
134
  //# sourceMappingURL=index.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import e from "react";
2
2
  import { cva as d } from "class-variance-authority";
3
- import { cn as l } from "./index.es54.js";
3
+ import { cn as l } from "./index.es55.js";
4
4
  const i = d(
5
5
  "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",
6
6
  {
@@ -1,6 +1,6 @@
1
1
  import * as r from "react";
2
2
  import { cva as n } from "class-variance-authority";
3
- import { cn as d } from "./index.es54.js";
3
+ import { cn as d } from "./index.es55.js";
4
4
  const l = n(
5
5
  "flex h-11 w-full rounded-lg border border-transparent border-b bg-background px-3 pt-[14px] pb-[11px] typo_variant_small-body ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 duration-200 transition-colors aria-invalid:border-red-500",
6
6
  {
@@ -3,7 +3,7 @@ import { Button as m } from "./index.es2.js";
3
3
  import { Close16X16 as S } from "@iit/precision-ui-icons";
4
4
  import { Input as k } from "./index.es11.js";
5
5
  import { SearchIcon as R } from "lucide-react";
6
- import { cn as a } from "./index.es54.js";
6
+ import { cn as a } from "./index.es55.js";
7
7
  const B = ({
8
8
  id: h,
9
9
  placeholder: f,
@@ -1,6 +1,6 @@
1
1
  import * as e from "react";
2
2
  import { cva as i } from "class-variance-authority";
3
- import { cn as n } from "./index.es54.js";
3
+ import { cn as n } from "./index.es55.js";
4
4
  const s = i(
5
5
  "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible0:ring-2 focus-visible0:ring-ring focus-visible0:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
6
6
  {
@@ -1,7 +1,7 @@
1
1
  import * as a from "react";
2
2
  import * as t from "@radix-ui/react-label";
3
3
  import { cva as l } from "class-variance-authority";
4
- import { cn as n } from "./index.es54.js";
4
+ import { cn as n } from "./index.es55.js";
5
5
  const s = l(
6
6
  "typo_variant_h6 leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 duration-200",
7
7
  {
@@ -1,5 +1,5 @@
1
- import { Popover as n, PopoverTrigger as a, PopoverContent as l } from "./index.es56.js";
2
- import { TooltipProvider as m, Tooltip as i, TooltipTrigger as c, TooltipContent as s } from "./index.es57.js";
1
+ import { Popover as n, PopoverTrigger as a, PopoverContent as l } from "./index.es57.js";
2
+ import { TooltipProvider as m, Tooltip as i, TooltipTrigger as c, TooltipContent as s } from "./index.es58.js";
3
3
  import { Button as r } from "./index.es2.js";
4
4
  import { Info as o } from "lucide-react";
5
5
  import e from "react";
package/dist/index.es2.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import e from "react";
2
2
  import { Slot as d } from "@radix-ui/react-slot";
3
3
  import { cva as c } from "class-variance-authority";
4
- import { cn as u } from "./index.es54.js";
4
+ import { cn as u } from "./index.es55.js";
5
5
  const l = c(
6
6
  "inline-flex items-center justify-center whitespace-nowrap rounded-full typo_variant_button 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 disabled:cursor-not-allowed border-none",
7
7
  {
@@ -2,7 +2,7 @@ import * as t from "@radix-ui/react-checkbox";
2
2
  import * as e from "react";
3
3
  import { Check16X16 as c } from "@iit/precision-ui-icons";
4
4
  import { cva as d } from "class-variance-authority";
5
- import { cn as a } from "./index.es54.js";
5
+ import { cn as a } from "./index.es55.js";
6
6
  const n = d(
7
7
  "peer h-[18px] w-[18px] shrink-0 rounded-sm border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 duration-200 aria-invalid:border-red-500",
8
8
  {
@@ -1,6 +1,6 @@
1
1
  import e, { useId as l } from "react";
2
2
  import { cva as c } from "class-variance-authority";
3
- import { cn as s } from "./index.es54.js";
3
+ import { cn as s } from "./index.es55.js";
4
4
  import { Checkbox as m } from "./index.es20.js";
5
5
  const d = c("items-top flex space-x-2", {
6
6
  variants: {
@@ -1,6 +1,6 @@
1
1
  import t from "react";
2
2
  import { cva as n } from "class-variance-authority";
3
- import { cn as o } from "./index.es54.js";
3
+ import { cn as o } from "./index.es55.js";
4
4
  const p = n(
5
5
  "inline-flex items-center rounded-sm pt-[9px] pb-[4px] px-[13px] typo_variant_caption",
6
6
  {
@@ -4,7 +4,7 @@ import E from "./index.es6.js";
4
4
  import g from "./index.es46.js";
5
5
  import h from "./index.es19.js";
6
6
  import x from "./index.es47.js";
7
- import { cn as N } from "./index.es54.js";
7
+ import { cn as N } from "./index.es55.js";
8
8
  import { getAdapter as o } from "./index.es9.js";
9
9
  const y = ({
10
10
  title: t,
@@ -2,7 +2,7 @@ import { Accordion as m, AccordionItem as s, AccordionContent as p, AccordionTri
2
2
  import e, { useId as g } from "react";
3
3
  import f from "./index.es46.js";
4
4
  import u from "./index.es19.js";
5
- import { cn as h } from "./index.es54.js";
5
+ import { cn as h } from "./index.es55.js";
6
6
  import { getAdapter as v } from "./index.es9.js";
7
7
  const b = ({
8
8
  title: t,
@@ -2,7 +2,7 @@ import m from "./index.es5.js";
2
2
  import i from "./index.es46.js";
3
3
  import e from "react";
4
4
  import n from "./index.es47.js";
5
- import { cn as E } from "./index.es54.js";
5
+ import { cn as E } from "./index.es55.js";
6
6
  import { getAdapter as y } from "./index.es9.js";
7
7
  const g = ({
8
8
  topContent: c,
@@ -3,7 +3,7 @@ import b from "./index.es6.js";
3
3
  import s from "./index.es46.js";
4
4
  import e from "react";
5
5
  import m from "./index.es47.js";
6
- import { cn as h } from "./index.es54.js";
6
+ import { cn as h } from "./index.es55.js";
7
7
  import { cva as y } from "class-variance-authority";
8
8
  import { getAdapter as N } from "./index.es9.js";
9
9
  const g = ({
package/dist/index.es3.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import e, { Fragment as c } from "react";
2
2
  import { Button as h } from "./index.es2.js";
3
3
  import { cva as l } from "class-variance-authority";
4
- import { cn as u } from "./index.es54.js";
5
- import { iconDefiner as d } from "./index.es55.js";
4
+ import { cn as u } from "./index.es55.js";
5
+ import { iconDefiner as d } from "./index.es56.js";
6
6
  const m = l(
7
7
  "rounded-lg p-[10px] transition-all hover:rounded-[24px]",
8
8
  {
@@ -2,7 +2,7 @@ import { Dialog as r, DialogTrigger as m, DialogContent as c, DialogTitle as s }
2
2
  import i from "./index.es37.js";
3
3
  import e from "react";
4
4
  import n from "./index.es47.js";
5
- import o from "./index.es58.js";
5
+ import o from "./index.es59.js";
6
6
  const d = ({ title: a, date: t, img: l }) => /* @__PURE__ */ e.createElement("div", { "data-test-id": "license-card", className: "bg-whitish rounded-lg" }, t && /* @__PURE__ */ e.createElement(
7
7
  i,
8
8
  {
@@ -7,7 +7,7 @@ import w from "./index.es18.js";
7
7
  import e from "react";
8
8
  import f from "./index.es19.js";
9
9
  import l from "./index.es47.js";
10
- import { cn as r } from "./index.es54.js";
10
+ import { cn as r } from "./index.es55.js";
11
11
  const V = i(
12
12
  "group p-6 rounded-lg min-h-[360px] flex flex-col justify-between",
13
13
  {
@@ -4,7 +4,7 @@ import f from "./index.es46.js";
4
4
  import e from "react";
5
5
  import d from "./index.es19.js";
6
6
  import h from "./index.es47.js";
7
- import { cn as a } from "./index.es54.js";
7
+ import { cn as a } from "./index.es55.js";
8
8
  import { getAdapter as u } from "./index.es9.js";
9
9
  const l = n("rounded-lg p-6 min-h-[190px] h-full", {
10
10
  variants: {
@@ -3,7 +3,7 @@ import s from "./index.es6.js";
3
3
  import y from "./index.es46.js";
4
4
  import e from "react";
5
5
  import g from "./index.es47.js";
6
- import { cn as o } from "./index.es54.js";
6
+ import { cn as o } from "./index.es55.js";
7
7
  import { getAdapter as m } from "./index.es9.js";
8
8
  const x = d(
9
9
  "group p-6 rounded-lg min-h-[300px] flex flex-col justify-between gap-12 items-start relative hover:scale1-[1.005] h-full",
@@ -1,6 +1,6 @@
1
1
  import e from "react";
2
2
  import { cva as o } from "class-variance-authority";
3
- import { cn as s } from "./index.es54.js";
3
+ import { cn as s } from "./index.es55.js";
4
4
  import f from "./index.es46.js";
5
5
  import d from "./index.es47.js";
6
6
  import E from "./index.es5.js";
@@ -1,6 +1,6 @@
1
1
  import t from "react";
2
2
  import { cva as s } from "class-variance-authority";
3
- import { cn as o } from "./index.es54.js";
3
+ import { cn as o } from "./index.es55.js";
4
4
  import { getAdapter as u } from "./index.es9.js";
5
5
  const n = s(
6
6
  "inline-flex items-center rounded-sm pt-[9px] pb-[4px] px-[13px] typo_variant_caption cursor-pointer duration-200 backdrop-blur-[8px]",
package/dist/index.es4.js CHANGED
@@ -2,7 +2,7 @@ import t from "react";
2
2
  import { Button as c } from "./index.es2.js";
3
3
  import { ArrowRight16X16 as u } from "@iit/precision-ui-icons";
4
4
  import { cva as h } from "class-variance-authority";
5
- import { cn as a } from "./index.es54.js";
5
+ import { cn as a } from "./index.es55.js";
6
6
  const p = h(
7
7
  "bg-white text-navy hover:bg-whitish-opacity-80 cursor-pointer",
8
8
  {
@@ -1,11 +1,11 @@
1
- import C from "./index.es53.js";
1
+ import C from "./index.es54.js";
2
2
  import u from "./index.es4.js";
3
3
  import w from "./index.es46.js";
4
4
  import e from "react";
5
5
  import V from "./index.es19.js";
6
6
  import k from "./index.es14.js";
7
7
  import N from "./index.es47.js";
8
- import { cn as p } from "./index.es54.js";
8
+ import { cn as p } from "./index.es55.js";
9
9
  import { cva as f } from "class-variance-authority";
10
10
  import { getAdapter as H } from "./index.es9.js";
11
11
  const j = f("", {
@@ -1,6 +1,6 @@
1
1
  import e from "react";
2
2
  import { cva as y } from "class-variance-authority";
3
- import { cn as v } from "./index.es54.js";
3
+ import { cn as v } from "./index.es55.js";
4
4
  import E from "./index.es46.js";
5
5
  import N from "./index.es47.js";
6
6
  import b from "./index.es4.js";
@@ -1,6 +1,6 @@
1
- import { Carousel as i, CarouselContent as p, CarouselItem as b } from "./index.es59.js";
1
+ import { Carousel as i, CarouselContent as p, CarouselItem as b } from "./index.es60.js";
2
2
  import e from "react";
3
- import { cn as C } from "./index.es54.js";
3
+ import { cn as C } from "./index.es55.js";
4
4
  const E = ({
5
5
  items: r,
6
6
  renderItem: t,
@@ -1,10 +1,10 @@
1
- import { Command as C, CommandInput as b, CommandList as x, CommandEmpty as y, CommandGroup as N, CommandItem as S } from "./index.es60.js";
2
- import { Popover as w, PopoverTrigger as g, PopoverContent as P } from "./index.es56.js";
1
+ import { Command as C, CommandInput as b, CommandList as x, CommandEmpty as y, CommandGroup as N, CommandItem as S } from "./index.es61.js";
2
+ import { Popover as w, PopoverTrigger as g, PopoverContent as P } from "./index.es57.js";
3
3
  import { Button as j } from "./index.es2.js";
4
4
  import { Check as k } from "lucide-react";
5
5
  import e from "react";
6
6
  import { ScrollArea as I } from "./index.es50.js";
7
- import { cn as t } from "./index.es54.js";
7
+ import { cn as t } from "./index.es55.js";
8
8
  const T = ({
9
9
  options: m,
10
10
  defaultValue: c = "",
@@ -16,16 +16,16 @@ const T = ({
16
16
  onSelect: E,
17
17
  iconComponent: f
18
18
  }) => {
19
- const [n, r] = e.useState(!1), [l, v] = e.useState(c), h = (a) => {
19
+ const [r, n] = e.useState(!1), [l, v] = e.useState(c), h = (a) => {
20
20
  const o = a === l ? "" : a;
21
- v(o), E(o), r(!1);
21
+ v(o), E(o), n(!1);
22
22
  };
23
- return /* @__PURE__ */ e.createElement(w, { open: n, onOpenChange: r }, /* @__PURE__ */ e.createElement(g, { asChild: !0 }, /* @__PURE__ */ e.createElement(
23
+ return /* @__PURE__ */ e.createElement(w, { open: r, onOpenChange: n, modal: !0 }, /* @__PURE__ */ e.createElement(g, { asChild: !0 }, /* @__PURE__ */ e.createElement(
24
24
  j,
25
25
  {
26
26
  variant: "outline",
27
27
  role: "combobox",
28
- "aria-expanded": n,
28
+ "aria-expanded": r,
29
29
  className: t("justify-between px-4 py-2", u)
30
30
  },
31
31
  l ? m.find((a) => a.value === l)?.label : s,
@@ -1 +1 @@
1
- {"version":3,"file":"index.es45.js","sources":["../src/components/ui/combobox.tsx"],"sourcesContent":["import {\r\n Command,\r\n CommandEmpty,\r\n CommandGroup,\r\n CommandInput,\r\n CommandItem,\r\n CommandList,\r\n} from '@/components/ui/command'\r\nimport {\r\n Popover,\r\n PopoverContent,\r\n PopoverTrigger,\r\n} from '@/components/ui/popover'\r\n\r\nimport { Button } from '@/components/ui/button'\r\nimport { Check } from 'lucide-react'\r\nimport React from 'react'\r\nimport { ScrollArea } from './scroll-area'\r\nimport { cn } from '@/lib/utils/cn'\r\n\r\nexport interface ComboboxOption {\r\n value: string\r\n label: string\r\n}\r\n\r\nexport interface ComboboxProps {\r\n options: ComboboxOption[]\r\n defaultValue?: string\r\n placeholder?: string\r\n searchPlaceholder?: string\r\n buttonClassName?: string\r\n popoverContentClassName?: string\r\n commandClassName?: string\r\n onSelect: (value: string) => void\r\n iconComponent?: React.ReactNode\r\n}\r\n\r\nexport const Combobox: React.FC<ComboboxProps> = ({\r\n options,\r\n defaultValue = '',\r\n placeholder = 'Select an option...',\r\n searchPlaceholder = 'Search...',\r\n buttonClassName = 'w-[200px] justify-between',\r\n popoverContentClassName = 'w-[200px] p-0',\r\n commandClassName = '',\r\n onSelect,\r\n iconComponent,\r\n}) => {\r\n const [open, setOpen] = React.useState(false)\r\n const [value, setValue] = React.useState(defaultValue)\r\n\r\n const handleSelect = (currentValue: string) => {\r\n const newValue = currentValue === value ? '' : currentValue\r\n setValue(newValue)\r\n onSelect(newValue)\r\n setOpen(false)\r\n }\r\n\r\n return (\r\n <Popover open={open} onOpenChange={setOpen}>\r\n <PopoverTrigger asChild>\r\n <Button\r\n variant=\"outline\"\r\n role=\"combobox\"\r\n aria-expanded={open}\r\n className={cn('justify-between px-4 py-2', buttonClassName)}\r\n >\r\n {value\r\n ? options.find((option) => option.value === value)?.label\r\n : placeholder}\r\n {iconComponent}\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className={cn(popoverContentClassName)}>\r\n <Command className={cn(commandClassName)}>\r\n <CommandInput placeholder={searchPlaceholder} className=\"h-9\" />\r\n <CommandList>\r\n <ScrollArea\r\n className={cn(\r\n 'max-h-[calc(100dvh-1rem)]',\r\n options.length > 12 ? 'h-96' : ''\r\n )}\r\n >\r\n <div className=\"p-0\">\r\n <CommandEmpty>Результаты не найдены.</CommandEmpty>\r\n <CommandGroup>\r\n {options.map((option) => (\r\n <CommandItem\r\n key={option.value}\r\n value={option.value}\r\n onSelect={() => handleSelect(option.value)}\r\n >\r\n {option.label}\r\n <Check\r\n className={cn(\r\n 'ml-auto',\r\n value === option.value ? 'opacity-100' : 'opacity-0'\r\n )}\r\n />\r\n </CommandItem>\r\n ))}\r\n </CommandGroup>\r\n </div>\r\n </ScrollArea>\r\n </CommandList>\r\n </Command>\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n"],"names":["Combobox","options","defaultValue","placeholder","searchPlaceholder","buttonClassName","popoverContentClassName","commandClassName","onSelect","iconComponent","open","setOpen","React","value","setValue","handleSelect","currentValue","newValue","Popover","PopoverTrigger","Button","cn","option","PopoverContent","Command","CommandInput","CommandList","ScrollArea","CommandEmpty","CommandGroup","CommandItem","Check"],"mappings":";;;;;;;AAqCO,MAAMA,IAAoC,CAAC;AAAA,EAChD,SAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,aAAAC,IAAc;AAAA,EACd,mBAAAC,IAAoB;AAAA,EACpB,iBAAAC,IAAkB;AAAA,EAClB,yBAAAC,IAA0B;AAAA,EAC1B,kBAAAC,IAAmB;AAAA,EACnB,UAAAC;AAAA,EACA,eAAAC;AACF,MAAM;AACJ,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAAM,SAAS,EAAK,GACtC,CAACC,GAAOC,CAAQ,IAAIF,EAAM,SAASV,CAAY,GAE/Ca,IAAe,CAACC,MAAyB;AACvC,UAAAC,IAAWD,MAAiBH,IAAQ,KAAKG;AAC/C,IAAAF,EAASG,CAAQ,GACjBT,EAASS,CAAQ,GACjBN,EAAQ,EAAK;AAAA,EAAA;AAIb,SAAAC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,IAEH,CAAA,CACH,CACF;AAAA,EAAA,CAEJ,CACF,CACF,CACF;AAEJ;"}
1
+ {"version":3,"file":"index.es45.js","sources":["../src/components/ui/combobox.tsx"],"sourcesContent":["import {\r\n Command,\r\n CommandEmpty,\r\n CommandGroup,\r\n CommandInput,\r\n CommandItem,\r\n CommandList,\r\n} from '@/components/ui/command'\r\nimport {\r\n Popover,\r\n PopoverContent,\r\n PopoverTrigger,\r\n} from '@/components/ui/popover'\r\n\r\nimport { Button } from '@/components/ui/button'\r\nimport { Check } from 'lucide-react'\r\nimport React from 'react'\r\nimport { ScrollArea } from './scroll-area'\r\nimport { cn } from '@/lib/utils/cn'\r\n\r\nexport interface ComboboxOption {\r\n value: string\r\n label: string\r\n}\r\n\r\nexport interface ComboboxProps {\r\n options: ComboboxOption[]\r\n defaultValue?: string\r\n placeholder?: string\r\n searchPlaceholder?: string\r\n buttonClassName?: string\r\n popoverContentClassName?: string\r\n commandClassName?: string\r\n onSelect: (value: string) => void\r\n iconComponent?: React.ReactNode\r\n}\r\n\r\nexport const Combobox: React.FC<ComboboxProps> = ({\r\n options,\r\n defaultValue = '',\r\n placeholder = 'Select an option...',\r\n searchPlaceholder = 'Search...',\r\n buttonClassName = 'w-[200px] justify-between',\r\n popoverContentClassName = 'w-[200px] p-0',\r\n commandClassName = '',\r\n onSelect,\r\n iconComponent,\r\n}) => {\r\n const [open, setOpen] = React.useState(false)\r\n const [value, setValue] = React.useState(defaultValue)\r\n\r\n const handleSelect = (currentValue: string) => {\r\n const newValue = currentValue === value ? '' : currentValue\r\n setValue(newValue)\r\n onSelect(newValue)\r\n setOpen(false)\r\n }\r\n\r\n return (\r\n <Popover open={open} onOpenChange={setOpen} modal={true}>\r\n <PopoverTrigger asChild>\r\n <Button\r\n variant=\"outline\"\r\n role=\"combobox\"\r\n aria-expanded={open}\r\n className={cn('justify-between px-4 py-2', buttonClassName)}\r\n >\r\n {value\r\n ? options.find((option) => option.value === value)?.label\r\n : placeholder}\r\n {iconComponent}\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className={cn(popoverContentClassName)}>\r\n <Command className={cn(commandClassName)}>\r\n <CommandInput placeholder={searchPlaceholder} className=\"h-9\" />\r\n <CommandList>\r\n <ScrollArea\r\n className={cn(\r\n 'max-h-[calc(100dvh-1rem)]',\r\n options.length > 12 ? 'h-96' : ''\r\n )}\r\n >\r\n <div className=\"p-0\">\r\n <CommandEmpty>Результаты не найдены.</CommandEmpty>\r\n <CommandGroup>\r\n {options.map((option) => (\r\n <CommandItem\r\n key={option.value}\r\n value={option.value}\r\n onSelect={() => handleSelect(option.value)}\r\n >\r\n {option.label}\r\n <Check\r\n className={cn(\r\n 'ml-auto',\r\n value === option.value ? 'opacity-100' : 'opacity-0'\r\n )}\r\n />\r\n </CommandItem>\r\n ))}\r\n </CommandGroup>\r\n </div>\r\n </ScrollArea>\r\n </CommandList>\r\n </Command>\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n"],"names":["Combobox","options","defaultValue","placeholder","searchPlaceholder","buttonClassName","popoverContentClassName","commandClassName","onSelect","iconComponent","open","setOpen","React","value","setValue","handleSelect","currentValue","newValue","Popover","PopoverTrigger","Button","cn","option","PopoverContent","Command","CommandInput","CommandList","ScrollArea","CommandEmpty","CommandGroup","CommandItem","Check"],"mappings":";;;;;;;AAqCO,MAAMA,IAAoC,CAAC;AAAA,EAChD,SAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,aAAAC,IAAc;AAAA,EACd,mBAAAC,IAAoB;AAAA,EACpB,iBAAAC,IAAkB;AAAA,EAClB,yBAAAC,IAA0B;AAAA,EAC1B,kBAAAC,IAAmB;AAAA,EACnB,UAAAC;AAAA,EACA,eAAAC;AACF,MAAM;AACJ,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAAM,SAAS,EAAK,GACtC,CAACC,GAAOC,CAAQ,IAAIF,EAAM,SAASV,CAAY,GAE/Ca,IAAe,CAACC,MAAyB;AACvC,UAAAC,IAAWD,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A;AAAA,QAACmB;AAAA,QAAA;AAAA,UACC,WAAWV;AAAA,YACT;AAAA,YACAR,MAAUS,EAAO,QAAQ,gBAAgB;AAAA,UAC3C;AAAA,QAAA;AAAA,MACF;AAAA,IAEH,CAAA,CACH,CACF;AAAA,EAAA,CAEJ,CACF,CACF,CACF;AAEJ;"}
@@ -1,5 +1,5 @@
1
1
  import c, { forwardRef as f } from "react";
2
- import { typeVariants as p } from "./index.es61.js";
2
+ import { typeVariants as p } from "./index.es62.js";
3
3
  const e = f(
4
4
  ({ level: a, as: n, className: t = "", children: r, id: o, ...i }, s) => {
5
5
  const d = n || `h${a}`, m = p({ variant: `h${a}` });
@@ -1,5 +1,5 @@
1
1
  import c, { forwardRef as f } from "react";
2
- import { typeVariants as d } from "./index.es61.js";
2
+ import { typeVariants as d } from "./index.es62.js";
3
3
  const e = f(
4
4
  ({ variant: a = "body", as: o, className: t = "", children: r, ...n }, s) => {
5
5
  const m = o || "p", p = d({ variant: a });
@@ -2,7 +2,7 @@ import * as e from "react";
2
2
  import { FormProvider as f, Controller as F, useFormContext as u } from "react-hook-form";
3
3
  import { Label as p } from "./index.es17.js";
4
4
  import { Slot as I } from "@radix-ui/react-slot";
5
- import { cn as a } from "./index.es54.js";
5
+ import { cn as a } from "./index.es55.js";
6
6
  const R = f, c = e.createContext(
7
7
  {}
8
8
  ), $ = ({
@@ -2,7 +2,7 @@ import * as a from "@radix-ui/react-dialog";
2
2
  import * as e from "react";
3
3
  import { ScrollArea as i } from "./index.es50.js";
4
4
  import { X as d } from "lucide-react";
5
- import { cn as l } from "./index.es54.js";
5
+ import { cn as l } from "./index.es55.js";
6
6
  const D = a.Root, v = a.Trigger, c = a.Portal, E = a.Close, n = e.forwardRef(({ className: t, ...o }, s) => /* @__PURE__ */ e.createElement(
7
7
  a.Overlay,
8
8
  {
package/dist/index.es5.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import t from "react";
2
2
  import { Button as p } from "./index.es2.js";
3
3
  import { cva as l } from "class-variance-authority";
4
- import { cn as u } from "./index.es54.js";
4
+ import { cn as u } from "./index.es55.js";
5
5
  const f = l(
6
6
  "transition-all rounded-lg hover:rounded-[24px] border",
7
7
  {
@@ -1,6 +1,6 @@
1
1
  import * as e from "react";
2
2
  import * as r from "@radix-ui/react-scroll-area";
3
- import { cn as c } from "./index.es54.js";
3
+ import { cn as c } from "./index.es55.js";
4
4
  const m = e.forwardRef(({ className: a, children: l, ...o }, t) => /* @__PURE__ */ e.createElement(
5
5
  r.Root,
6
6
  {
@@ -1,7 +1,7 @@
1
1
  import * as a from "@radix-ui/react-accordion";
2
2
  import * as e from "react";
3
3
  import { Plus as d, Minus as p, ArrowDown as m, ArrowUp as y } from "lucide-react";
4
- import { cn as l } from "./index.es54.js";
4
+ import { cn as l } from "./index.es55.js";
5
5
  const w = a.Root, u = e.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ e.createElement(
6
6
  a.Item,
7
7
  {
@@ -1,6 +1,6 @@
1
1
  import * as t from "react";
2
2
  import * as e from "@radix-ui/react-tabs";
3
- import { cn as n } from "./index.es54.js";
3
+ import { cn as n } from "./index.es55.js";
4
4
  const f = e.Root, o = t.forwardRef(({ className: i, ...a }, s) => /* @__PURE__ */ t.createElement(
5
5
  e.List,
6
6
  {
@@ -1,14 +1,21 @@
1
- import c from "./index.es62.js";
2
- import e from "react";
3
- const m = ({ list: t }) => /* @__PURE__ */ e.createElement("ul", { className: "breadcrumbs space-y-2" }, t.map((a, r) => /* @__PURE__ */ e.createElement(
4
- "li",
5
- {
6
- key: r,
7
- style: { "--counter": r + 1 }
8
- },
9
- /* @__PURE__ */ e.createElement(c, { ...a })
10
- ))), u = m;
1
+ import { useState as s, useCallback as i } from "react";
2
+ const f = (e, n) => {
3
+ const [o, t] = s(!!n), [a, r] = s(null), c = i(
4
+ async (...l) => {
5
+ t(!0), r(null);
6
+ try {
7
+ await e(...l);
8
+ } catch (u) {
9
+ r(u.message || "Something went wrong!");
10
+ } finally {
11
+ t(!1);
12
+ }
13
+ },
14
+ [e]
15
+ );
16
+ return [o, a, c];
17
+ };
11
18
  export {
12
- u as default
19
+ f as useFetch
13
20
  };
14
21
  //# sourceMappingURL=index.es53.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es53.js","sources":["../src/components/breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import Breadcrumb, { BreadcrumbProps } from \"./Breadcrumb\";\r\n\r\nimport React from \"react\";\r\n\r\ninterface BreadcrumbsProps {\r\n list: BreadcrumbProps[];\r\n}\r\n\r\ninterface CustomInlineStyles extends React.CSSProperties {\r\n \"--counter\"?: number;\r\n}\r\n\r\nconst Breadcrumbs: React.FC<BreadcrumbsProps> = ({ list }) => {\r\n return (\r\n <ul className=\"breadcrumbs space-y-2\">\r\n {list.map((item, index) => (\r\n <li\r\n key={index}\r\n style={{ \"--counter\": index + 1 } as CustomInlineStyles}\r\n >\r\n <Breadcrumb {...item} />\r\n </li>\r\n ))}\r\n </ul>\r\n );\r\n};\r\n\r\nexport default Breadcrumbs;\r\n"],"names":["Breadcrumbs","list","React","item","index","Breadcrumb","Breadcrumbs$1"],"mappings":";;AAYA,MAAMA,IAA0C,CAAC,EAAE,MAAAC,QAE/CC,gBAAAA,EAAA,cAAC,QAAG,WAAU,wBAAA,GACXD,EAAK,IAAI,CAACE,GAAMC,MACfF,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAKE;AAAA,IACL,OAAO,EAAE,aAAaA,IAAQ,EAAE;AAAA,EAAA;AAAA,EAEhCF,gBAAAA,EAAA,cAACG,GAAY,EAAA,GAAGF,EAAM,CAAA;AAEzB,CAAA,CACH,GAIJG,IAAeN;"}
1
+ {"version":3,"file":"index.es53.js","sources":["../src/hooks/useFetch.ts"],"sourcesContent":["import { useCallback, useState } from 'react'\r\n\r\ninterface Error {\r\n message?: string\r\n}\r\n\r\n// eslint-disable-next-line @typescript-eslint/ban-types\r\nexport const useFetch = (applyDataFn: Function, loadingByDefault?: boolean) => {\r\n const [isLoading, setIsLoading] = useState(loadingByDefault ? true : false)\r\n const [error, setError] = useState<string | null>(null)\r\n\r\n const sendRequest = useCallback(\r\n async (...args: unknown[]) => {\r\n setIsLoading(true)\r\n setError(null)\r\n try {\r\n await applyDataFn(...args)\r\n } catch (error) {\r\n setError((error as Error).message || 'Something went wrong!')\r\n } finally {\r\n setIsLoading(false)\r\n }\r\n },\r\n [applyDataFn]\r\n )\r\n\r\n return [isLoading, error, sendRequest] as const\r\n}\r\n"],"names":["useFetch","applyDataFn","loadingByDefault","isLoading","setIsLoading","useState","error","setError","sendRequest","useCallback","args"],"mappings":";AAOa,MAAAA,IAAW,CAACC,GAAuBC,MAA+B;AAC7E,QAAM,CAACC,GAAWC,CAAY,IAAIC,EAAS,EAAAH,CAA+B,GACpE,CAACI,GAAOC,CAAQ,IAAIF,EAAwB,IAAI,GAEhDG,IAAcC;AAAA,IAClB,UAAUC,MAAoB;AAC5B,MAAAN,EAAa,EAAI,GACjBG,EAAS,IAAI;AACT,UAAA;AACI,cAAAN,EAAY,GAAGS,CAAI;AAAA,eAClBJ,GAAO;AACJA,QAAAA,EAAAA,EAAgB,WAAW,uBAAuB;AAAA,MAAA,UAC5D;AACA,QAAAF,EAAa,EAAK;AAAA,MACpB;AAAA,IACF;AAAA,IACA,CAACH,CAAW;AAAA,EAAA;AAGP,SAAA,CAACE,GAAWG,GAAOE,CAAW;AACvC;"}
@@ -1,9 +1,14 @@
1
- import { clsx as o } from "clsx";
2
- import { twMerge as t } from "tailwind-merge";
3
- function n(...r) {
4
- return t(o(r));
5
- }
1
+ import c from "./index.es63.js";
2
+ import e from "react";
3
+ const m = ({ list: t }) => /* @__PURE__ */ e.createElement("ul", { className: "breadcrumbs space-y-2" }, t.map((a, r) => /* @__PURE__ */ e.createElement(
4
+ "li",
5
+ {
6
+ key: r,
7
+ style: { "--counter": r + 1 }
8
+ },
9
+ /* @__PURE__ */ e.createElement(c, { ...a })
10
+ ))), u = m;
6
11
  export {
7
- n as cn
12
+ u as default
8
13
  };
9
14
  //# sourceMappingURL=index.es54.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es54.js","sources":["../src/lib/utils/cn.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx'\r\nimport { twMerge } from 'tailwind-merge'\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n return twMerge(clsx(inputs))\r\n}\r\n"],"names":["cn","inputs","twMerge","clsx"],"mappings":";;AAGO,SAASA,KAAMC,GAAsB;AACnC,SAAAC,EAAQC,EAAKF,CAAM,CAAC;AAC7B;"}
1
+ {"version":3,"file":"index.es54.js","sources":["../src/components/breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import Breadcrumb, { BreadcrumbProps } from \"./Breadcrumb\";\r\n\r\nimport React from \"react\";\r\n\r\ninterface BreadcrumbsProps {\r\n list: BreadcrumbProps[];\r\n}\r\n\r\ninterface CustomInlineStyles extends React.CSSProperties {\r\n \"--counter\"?: number;\r\n}\r\n\r\nconst Breadcrumbs: React.FC<BreadcrumbsProps> = ({ list }) => {\r\n return (\r\n <ul className=\"breadcrumbs space-y-2\">\r\n {list.map((item, index) => (\r\n <li\r\n key={index}\r\n style={{ \"--counter\": index + 1 } as CustomInlineStyles}\r\n >\r\n <Breadcrumb {...item} />\r\n </li>\r\n ))}\r\n </ul>\r\n );\r\n};\r\n\r\nexport default Breadcrumbs;\r\n"],"names":["Breadcrumbs","list","React","item","index","Breadcrumb","Breadcrumbs$1"],"mappings":";;AAYA,MAAMA,IAA0C,CAAC,EAAE,MAAAC,QAE/CC,gBAAAA,EAAA,cAAC,QAAG,WAAU,wBAAA,GACXD,EAAK,IAAI,CAACE,GAAMC,MACfF,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAKE;AAAA,IACL,OAAO,EAAE,aAAaA,IAAQ,EAAE;AAAA,EAAA;AAAA,EAEhCF,gBAAAA,EAAA,cAACG,GAAY,EAAA,GAAGF,EAAM,CAAA;AAEzB,CAAA,CACH,GAIJG,IAAeN;"}
@@ -1,25 +1,9 @@
1
- import { ArrowSliderPrev16X16 as s, ArrowSliderNext16X16 as m, MoreLink16X16 as l, LessLink16X16 as u } from "@iit/precision-ui-icons";
2
- import { ThumbsUp as f, ThumbsDown as p } from "lucide-react";
3
- import o from "react";
4
- const i = "1em", a = (e) => Object.keys(e).reduce((r, t) => (r[t] = ({
5
- width: n = i,
6
- height: c = i
7
- }) => o.createElement(e[t], { width: n, height: c }), r), {}), d = {
8
- chevronLeft: s,
9
- chevronRight: m,
10
- plus: l,
11
- minus: u,
12
- like: f,
13
- dislike: p
14
- }, h = a(d), I = (e, r, t) => {
15
- if (e) {
16
- const n = h[e];
17
- if (n)
18
- return n({ width: r, height: t });
19
- }
20
- return /* @__PURE__ */ o.createElement(o.Fragment, null);
21
- };
1
+ import { clsx as o } from "clsx";
2
+ import { twMerge as t } from "tailwind-merge";
3
+ function n(...r) {
4
+ return t(o(r));
5
+ }
22
6
  export {
23
- I as iconDefiner
7
+ n as cn
24
8
  };
25
9
  //# sourceMappingURL=index.es55.js.map