@cryptlex/web-components 1.1.0 → 1.2.0

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.
@@ -0,0 +1,47 @@
1
+ import { jsx as a, jsxs as c } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import * as e from "@radix-ui/react-accordion";
4
+ import { cn as s } from "../../utils/index.es.js";
5
+ import { ChevronDownIcon as d } from "@radix-ui/react-icons";
6
+ const g = e.Root, m = i.forwardRef(({ className: o, ...t }, r) => /* @__PURE__ */ a(
7
+ e.Item,
8
+ {
9
+ ref: r,
10
+ className: s("border-b", o),
11
+ ...t
12
+ }
13
+ ));
14
+ m.displayName = "AccordionItem";
15
+ const l = i.forwardRef(({ className: o, children: t, ...r }, n) => /* @__PURE__ */ a(e.Header, { className: "flex", children: /* @__PURE__ */ c(
16
+ e.Trigger,
17
+ {
18
+ ref: n,
19
+ className: s(
20
+ "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",
21
+ o
22
+ ),
23
+ ...r,
24
+ children: [
25
+ t,
26
+ /* @__PURE__ */ a(d, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
27
+ ]
28
+ }
29
+ ) }));
30
+ l.displayName = e.Trigger.displayName;
31
+ const f = i.forwardRef(({ className: o, children: t, ...r }, n) => /* @__PURE__ */ a(
32
+ e.Content,
33
+ {
34
+ ref: n,
35
+ className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
36
+ ...r,
37
+ children: /* @__PURE__ */ a("div", { className: s("pb-4 pt-0", o), children: t })
38
+ }
39
+ ));
40
+ f.displayName = e.Content.displayName;
41
+ export {
42
+ g as Accordion,
43
+ f as AccordionContent,
44
+ m as AccordionItem,
45
+ l as AccordionTrigger
46
+ };
47
+ //# sourceMappingURL=accordion.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion.es.js","sources":["../../../lib/components/ui/accordion.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\"\nimport { cn } from \"@/utils\"\nimport { ChevronDownIcon } from \"@radix-ui/react-icons\"\n\nconst Accordion = AccordionPrimitive.Root\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item\n ref={ref}\n className={cn(\"border-b\", className)}\n {...props}\n />\n))\nAccordionItem.displayName = \"AccordionItem\"\n\nconst AccordionTrigger = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n))\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down\"\n {...props}\n >\n <div className={cn(\"pb-4 pt-0\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n))\nAccordionContent.displayName = AccordionPrimitive.Content.displayName\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n"],"names":["Accordion","AccordionPrimitive","AccordionItem","React","className","props","ref","jsx","cn","AccordionTrigger","children","jsxs","ChevronDownIcon","AccordionContent"],"mappings":";;;;;AAKA,MAAMA,IAAYC,EAAmB,MAE/BC,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAACN,EAAmB;AAAA,EAAnB;AAAA,IACC,KAAAK;AAAA,IACA,WAAWE,EAAG,YAAYJ,CAAS;AAAA,IAClC,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAc,cAAc;AAE5B,MAAMO,IAAmBN,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,UAAAM,GAAU,GAAGL,EAAM,GAAGC,MACnC,gBAAAC,EAAAN,EAAmB,QAAnB,EAA0B,WAAU,QACnC,UAAA,gBAAAU;AAAA,EAACV,EAAmB;AAAA,EAAnB;AAAA,IACC,KAAAK;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,IAEH,UAAA;AAAA,MAAAK;AAAA,MACD,gBAAAH,EAACK,GAAgB,EAAA,WAAU,2EAA2E,CAAA;AAAA,IAAA;AAAA,EAAA;AACxG,GACF,CACD;AACDH,EAAiB,cAAcR,EAAmB,QAAQ;AAEpD,MAAAY,IAAmBV,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,UAAAM,GAAU,GAAGL,KAASC,MACpC,gBAAAC;AAAA,EAACN,EAAmB;AAAA,EAAnB;AAAA,IACC,KAAAK;AAAA,IACA,WAAU;AAAA,IACT,GAAGD;AAAA,IAEJ,4BAAC,OAAI,EAAA,WAAWG,EAAG,aAAaJ,CAAS,GAAI,UAAAM,EAAS,CAAA;AAAA,EAAA;AACxD,CACD;AACDG,EAAiB,cAAcZ,EAAmB,QAAQ;"}
@@ -1,23 +1,22 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import * as n from "react";
3
- import { cn as s } from "../../utils/index.es.js";
4
- const f = n.forwardRef(
5
- ({ className: e, type: r, ...o }, i) => /* @__PURE__ */ t(
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import { cn as d } from "../../utils/index.es.js";
4
+ const s = l.forwardRef(
5
+ ({ className: e, type: r, ...o }, t) => /* @__PURE__ */ i(
6
6
  "input",
7
7
  {
8
8
  type: r,
9
- className: s(
10
- "flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50",
11
- // Change 'ring' class to 'ring-primary'
9
+ className: d(
10
+ "flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-2 focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50",
12
11
  e
13
12
  ),
14
- ref: i,
13
+ ref: t,
15
14
  ...o
16
15
  }
17
16
  )
18
17
  );
19
- f.displayName = "Input";
18
+ s.displayName = "Input";
20
19
  export {
21
- f as Input
20
+ s as Input
22
21
  };
23
22
  //# sourceMappingURL=input.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.es.js","sources":["../../../lib/components/ui/input.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@/utils\"\n\nexport interface InputProps\n extends React.InputHTMLAttributes<HTMLInputElement> {}\n//Input\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50\", // Change 'ring' class to 'ring-primary'\n className\n )}\n ref={ref}\n {...props}\n />\n );\n }\n);\nInput.displayName = \"Input\";\n\nexport { Input };"],"names":["Input","React","className","type","props","ref","jsx","cn"],"mappings":";;;AAOA,MAAMA,IAAQC,EAAM;AAAA,EAClB,CAAC,EAAE,WAAAC,GAAW,MAAAC,GAAM,GAAGC,EAAA,GAASC,MAE5B,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAAH;AAAA,MACA,WAAWI;AAAA,QACT;AAAA;AAAA,QACAL;AAAA,MACF;AAAA,MACA,KAAAG;AAAA,MACC,GAAGD;AAAA,IAAA;AAAA,EACN;AAGN;AACAJ,EAAM,cAAc;"}
1
+ {"version":3,"file":"input.es.js","sources":["../../../lib/components/ui/input.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@/utils\"\n\nexport interface InputProps\n extends React.InputHTMLAttributes<HTMLInputElement> {}\n//Input\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-2 focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n ref={ref}\n {...props}\n />\n );\n }\n);\nInput.displayName = \"Input\";\n\nexport { Input };"],"names":["Input","React","className","type","props","ref","jsx","cn"],"mappings":";;;AAOA,MAAMA,IAAQC,EAAM;AAAA,EAClB,CAAC,EAAE,WAAAC,GAAW,MAAAC,GAAM,GAAGC,EAAA,GAASC,MAE5B,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAAH;AAAA,MACA,WAAWI;AAAA,QACT;AAAA,QACAL;AAAA,MACF;AAAA,MACA,KAAAG;AAAA,MACC,GAAGD;AAAA,IAAA;AAAA,EACN;AAGN;AACAJ,EAAM,cAAc;"}
@@ -0,0 +1,122 @@
1
+ import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
+ import * as r from "react";
3
+ import * as e from "@radix-ui/react-navigation-menu";
4
+ import { cva as c } from "class-variance-authority";
5
+ import { cn as i } from "../../utils/index.es.js";
6
+ import { ChevronDownIcon as f } from "@radix-ui/react-icons";
7
+ const u = r.forwardRef(({ className: t, children: a, ...o }, d) => /* @__PURE__ */ s(
8
+ e.Root,
9
+ {
10
+ ref: d,
11
+ className: i(
12
+ "relative z-10 flex max-w-max flex-1 items-center justify-center",
13
+ t
14
+ ),
15
+ ...o,
16
+ children: [
17
+ a,
18
+ /* @__PURE__ */ n(m, {})
19
+ ]
20
+ }
21
+ ));
22
+ u.displayName = e.Root.displayName;
23
+ const p = r.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ n(
24
+ e.List,
25
+ {
26
+ ref: o,
27
+ className: i(
28
+ "group flex flex-1 list-none items-center justify-center space-x-1 flex-wrap",
29
+ t
30
+ ),
31
+ ...a
32
+ }
33
+ ));
34
+ p.displayName = e.List.displayName;
35
+ const I = e.Item, g = c(
36
+ "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent data-[state=open]:bg-accent data-[state=open]:text-accent-foreground"
37
+ ), v = r.forwardRef(({ className: t, children: a, ...o }, d) => /* @__PURE__ */ s(
38
+ e.Trigger,
39
+ {
40
+ ref: d,
41
+ className: i(g(), "group", t),
42
+ ...o,
43
+ children: [
44
+ a,
45
+ " ",
46
+ /* @__PURE__ */ n(
47
+ f,
48
+ {
49
+ className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
50
+ "aria-hidden": "true"
51
+ }
52
+ )
53
+ ]
54
+ }
55
+ ));
56
+ v.displayName = e.Trigger.displayName;
57
+ const N = r.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ n(
58
+ e.Content,
59
+ {
60
+ ref: o,
61
+ className: i(
62
+ "left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",
63
+ t
64
+ ),
65
+ ...a
66
+ }
67
+ ));
68
+ N.displayName = e.Content.displayName;
69
+ const h = e.Link, m = r.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ n("div", { className: i("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ n(
70
+ e.Viewport,
71
+ {
72
+ className: i(
73
+ "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
74
+ t
75
+ ),
76
+ ref: o,
77
+ ...a
78
+ }
79
+ ) }));
80
+ m.displayName = e.Viewport.displayName;
81
+ const x = r.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ n(
82
+ e.Indicator,
83
+ {
84
+ ref: o,
85
+ className: i(
86
+ "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
87
+ t
88
+ ),
89
+ ...a,
90
+ children: /* @__PURE__ */ n("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
91
+ }
92
+ ));
93
+ x.displayName = e.Indicator.displayName;
94
+ const w = r.forwardRef(({ className: t, title: a, children: o, ...d }, l) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(h, { asChild: !0, children: /* @__PURE__ */ s(
95
+ "a",
96
+ {
97
+ ref: l,
98
+ className: i(
99
+ "block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
100
+ t
101
+ ),
102
+ ...d,
103
+ children: [
104
+ /* @__PURE__ */ n("div", { className: "text-sm font-medium leading-none", children: a }),
105
+ /* @__PURE__ */ n("p", { className: "line-clamp-2 text-sm leading-snug text-muted-foreground", children: o })
106
+ ]
107
+ }
108
+ ) }) }));
109
+ w.displayName = "NavigationItemListItem";
110
+ export {
111
+ u as NavigationMenu,
112
+ N as NavigationMenuContent,
113
+ x as NavigationMenuIndicator,
114
+ I as NavigationMenuItem,
115
+ h as NavigationMenuLink,
116
+ p as NavigationMenuList,
117
+ w as NavigationMenuListItem,
118
+ v as NavigationMenuTrigger,
119
+ m as NavigationMenuViewport,
120
+ g as navigationMenuTriggerStyle
121
+ };
122
+ //# sourceMappingURL=navigation-menu.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation-menu.es.js","sources":["../../../lib/components/ui/navigation-menu.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as NavigationMenuPrimitive from \"@radix-ui/react-navigation-menu\"\nimport { cva } from \"class-variance-authority\"\nimport { cn } from \"@/utils\"\nimport { ChevronDownIcon } from \"@radix-ui/react-icons\"\n\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn(\n \"relative z-10 flex max-w-max flex-1 items-center justify-center\",\n className\n )}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n))\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn(\n \"group flex flex-1 list-none items-center justify-center space-x-1 flex-wrap\",\n className\n )}\n {...props}\n />\n))\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item\n\nconst navigationMenuTriggerStyle = cva(\n \"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent data-[state=open]:bg-accent data-[state=open]:text-accent-foreground\"\n)\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), \"group\", className)}\n {...props}\n >\n {children}{\" \"}\n <ChevronDownIcon\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n))\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n \"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto \",\n className\n )}\n {...props}\n />\n))\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>\n>(({ className, ...props }, ref) => (\n <div className={cn(\"absolute left-0 top-full flex justify-center\")}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n \"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]\",\n className\n )}\n ref={ref}\n {...props}\n />\n </div>\n))\nNavigationMenuViewport.displayName =\n NavigationMenuPrimitive.Viewport.displayName\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n \"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in\",\n className\n )}\n {...props}\n >\n <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n))\nNavigationMenuIndicator.displayName =\n NavigationMenuPrimitive.Indicator.displayName\n\nconst NavigationMenuListItem = React.forwardRef<\n React.ElementRef<\"a\">,\n React.ComponentPropsWithoutRef<\"a\">\n>(({ className, title, children, ...props }, ref) => {\n return (\n <li>\n <NavigationMenuLink asChild>\n <a\n ref={ref}\n className={cn(\n \"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground\",\n className\n )}\n {...props}\n >\n <div className=\"text-sm font-medium leading-none\">{title}</div>\n <p className=\"line-clamp-2 text-sm leading-snug text-muted-foreground\">\n {children}\n </p>\n </a>\n </NavigationMenuLink>\n </li>\n )\n})\nNavigationMenuListItem.displayName = \"NavigationItemListItem\"\n\nexport {\n navigationMenuTriggerStyle,\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n NavigationMenuListItem\n}\n"],"names":["NavigationMenu","React","className","children","props","ref","jsxs","NavigationMenuPrimitive","cn","NavigationMenuViewport","NavigationMenuList","jsx","NavigationMenuItem","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","ChevronDownIcon","NavigationMenuContent","NavigationMenuLink","NavigationMenuIndicator","NavigationMenuListItem","title"],"mappings":"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"}
@@ -1,20 +1,20 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import * as r from "react";
3
- import { EyeIcon as m, EyeOffIcon as d } from "lucide-react";
2
+ import * as o from "react";
3
+ import { EyeIcon as d, EyeOffIcon as m } from "lucide-react";
4
4
  import { Input as i } from "./input.es.js";
5
5
  import { Button as p } from "./button.es.js";
6
- const u = r.forwardRef(
7
- ({ className: c, ...o }, s) => {
8
- const [t, a] = r.useState(!1);
6
+ const u = o.forwardRef(
7
+ ({ className: c, ...r }, s) => {
8
+ const [t, a] = o.useState(!1);
9
9
  return /* @__PURE__ */ n("div", { className: "flex flex-row items-center relative", children: [
10
- /* @__PURE__ */ e(i, { type: t ? "text" : "password", ref: s, ...o }),
10
+ /* @__PURE__ */ e(i, { type: t ? "text" : "password", ref: s, ...r }),
11
11
  /* @__PURE__ */ e(
12
12
  p,
13
13
  {
14
14
  type: "button",
15
- className: "absolute right-0 top-0 mr-2 rounded-md bg-transparent p-2 text-muted-foreground hover:bg-muted/5 focus:outline-none",
15
+ className: "absolute right-0 top-0 rounded-md bg-transparent p-2 text-muted-foreground hover:bg-muted/5 focus:outline-none",
16
16
  onClick: () => a(!t),
17
- children: t ? /* @__PURE__ */ e(d, { className: "h-4 w-4", "aria-hidden": "true" }) : /* @__PURE__ */ e(m, { className: "h-4 w-4", "aria-hidden": "true" })
17
+ children: t ? /* @__PURE__ */ e(m, { className: "h-4 w-4", "aria-hidden": "true" }) : /* @__PURE__ */ e(d, { className: "h-4 w-4", "aria-hidden": "true" })
18
18
  }
19
19
  )
20
20
  ] });
@@ -1 +1 @@
1
- {"version":3,"file":"password-input.es.js","sources":["../../../lib/components/ui/password-input.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { EyeIcon, EyeOffIcon } from \"lucide-react\";\nimport { Input, InputProps } from \"./input\";\nimport { Button } from \"./button\";\n\nconst PasswordInput = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, ...props }, ref) => {\n const [showPassword, setShowPassword] = React.useState<boolean>(false);\n return (\n <div className=\"flex flex-row items-center relative\">\n <Input type={showPassword ? \"text\" : \"password\"} ref={ref} {...props} />\n <Button\n type=\"button\"\n className=\"absolute right-0 top-0 mr-2 rounded-md bg-transparent p-2 text-muted-foreground hover:bg-muted/5 focus:outline-none\"\n onClick={() => setShowPassword(!showPassword)}\n >\n {!showPassword ? (\n <EyeIcon className=\"h-4 w-4\" aria-hidden=\"true\" />\n ) : (\n <EyeOffIcon className=\"h-4 w-4\" aria-hidden=\"true\" />\n )}\n </Button>\n </div>\n );\n }\n);\nPasswordInput.displayName = \"PasswordInput\";\n\nexport { PasswordInput };\n"],"names":["PasswordInput","React","className","props","ref","showPassword","setShowPassword","jsxs","jsx","Input","Button","EyeOffIcon","EyeIcon"],"mappings":";;;;;AAMA,MAAMA,IAAgBC,EAAM;AAAA,EAC1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAAQ;AAChC,UAAM,CAACC,GAAcC,CAAe,IAAIL,EAAM,SAAkB,EAAK;AAEnE,WAAA,gBAAAM,EAAC,OAAI,EAAA,WAAU,uCACb,UAAA;AAAA,MAAA,gBAAAC,EAACC,KAAM,MAAMJ,IAAe,SAAS,YAAY,KAAAD,GAAW,GAAGD,GAAO;AAAA,MACtE,gBAAAK;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,WAAU;AAAA,UACV,SAAS,MAAMJ,EAAgB,CAACD,CAAY;AAAA,UAE3C,UAACA,IAGC,gBAAAG,EAAAG,GAAA,EAAW,WAAU,WAAU,eAAY,OAAO,CAAA,IAFlD,gBAAAH,EAAAI,GAAA,EAAQ,WAAU,WAAU,eAAY,OAAO,CAAA;AAAA,QAEG;AAAA,MAAA;AAAA,IAEvD,GACF;AAAA,EAAA;AAGN;AACAZ,EAAc,cAAc;"}
1
+ {"version":3,"file":"password-input.es.js","sources":["../../../lib/components/ui/password-input.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { EyeIcon, EyeOffIcon } from \"lucide-react\";\nimport { Input, InputProps } from \"./input\";\nimport { Button } from \"./button\";\n\nconst PasswordInput = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, ...props }, ref) => {\n const [showPassword, setShowPassword] = React.useState<boolean>(false);\n return (\n <div className=\"flex flex-row items-center relative\">\n <Input type={showPassword ? \"text\" : \"password\"} ref={ref} {...props} />\n <Button\n type=\"button\"\n className=\"absolute right-0 top-0 rounded-md bg-transparent p-2 text-muted-foreground hover:bg-muted/5 focus:outline-none\"\n onClick={() => setShowPassword(!showPassword)}\n >\n {!showPassword ? (\n <EyeIcon className=\"h-4 w-4\" aria-hidden=\"true\" />\n ) : (\n <EyeOffIcon className=\"h-4 w-4\" aria-hidden=\"true\" />\n )}\n </Button>\n </div>\n );\n }\n);\nPasswordInput.displayName = \"PasswordInput\";\n\nexport { PasswordInput };\n"],"names":["PasswordInput","React","className","props","ref","showPassword","setShowPassword","jsxs","jsx","Input","Button","EyeOffIcon","EyeIcon"],"mappings":";;;;;AAMA,MAAMA,IAAgBC,EAAM;AAAA,EAC1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAAQ;AAChC,UAAM,CAACC,GAAcC,CAAe,IAAIL,EAAM,SAAkB,EAAK;AAEnE,WAAA,gBAAAM,EAAC,OAAI,EAAA,WAAU,uCACb,UAAA;AAAA,MAAA,gBAAAC,EAACC,KAAM,MAAMJ,IAAe,SAAS,YAAY,KAAAD,GAAW,GAAGD,GAAO;AAAA,MACtE,gBAAAK;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,WAAU;AAAA,UACV,SAAS,MAAMJ,EAAgB,CAACD,CAAY;AAAA,UAE3C,UAACA,IAGC,gBAAAG,EAAAG,GAAA,EAAW,WAAU,WAAU,eAAY,OAAO,CAAA,IAFlD,gBAAAH,EAAAI,GAAA,EAAQ,WAAU,WAAU,eAAY,OAAO,CAAA;AAAA,QAEG;AAAA,MAAA;AAAA,IAEvD,GACF;AAAA,EAAA;AAGN;AACAZ,EAAc,cAAc;"}
@@ -1,3 +1,4 @@
1
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
1
2
  import { AllowInDimension } from 'recharts/types/util/types';
2
3
  import { AnimationDuration } from 'recharts/types/util/types';
3
4
  import { AnimationTiming } from 'recharts/types/util/types';
@@ -22,6 +23,7 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
22
23
  import * as LabelPrimitive from '@radix-ui/react-label';
23
24
  import { LucideIcon } from 'lucide-react';
24
25
  import { NameType } from 'recharts/types/component/DefaultTooltipContent';
26
+ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
25
27
  import { Payload } from 'recharts/types/component/DefaultTooltipContent';
26
28
  import * as PopoverPrimitive from '@radix-ui/react-popover';
27
29
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
@@ -37,6 +39,14 @@ import { UniqueOption } from 'recharts/types/util/payload/getUniqPayload';
37
39
  import { ValueType } from 'recharts/types/component/DefaultTooltipContent';
38
40
  import { VariantProps } from 'class-variance-authority';
39
41
 
42
+ export declare const Accordion: React_2.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React_2.RefAttributes<HTMLDivElement>>;
43
+
44
+ export declare const AccordionContent: React_2.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
45
+
46
+ export declare const AccordionItem: React_2.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
47
+
48
+ export declare const AccordionTrigger: React_2.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
49
+
40
50
  export declare function Badge({ className, variant, ...props }: BadgeProps): JSX_2.Element;
41
51
 
42
52
  export declare interface BadgeProps extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
@@ -356,6 +366,26 @@ declare interface LoaderProps {
356
366
  className?: string;
357
367
  }
358
368
 
369
+ export declare const NavigationMenu: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React_2.RefAttributes<HTMLElement>, "ref"> & React_2.RefAttributes<HTMLElement>>;
370
+
371
+ export declare const NavigationMenuContent: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
372
+
373
+ export declare const NavigationMenuIndicator: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
374
+
375
+ export declare const NavigationMenuItem: React_2.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React_2.RefAttributes<HTMLLIElement>>;
376
+
377
+ export declare const NavigationMenuLink: React_2.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React_2.RefAttributes<HTMLAnchorElement>>;
378
+
379
+ export declare const NavigationMenuList: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React_2.RefAttributes<HTMLUListElement>, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
380
+
381
+ export declare const NavigationMenuListItem: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & React_2.RefAttributes<HTMLAnchorElement>>;
382
+
383
+ export declare const NavigationMenuTrigger: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
384
+
385
+ export declare const navigationMenuTriggerStyle: (props?: ClassProp | undefined) => string;
386
+
387
+ export declare const NavigationMenuViewport: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
388
+
359
389
  export declare const Pagination: {
360
390
  ({ className, ...props }: React_2.ComponentProps<"nav">): JSX_2.Element;
361
391
  displayName: string;
package/dist/index.es.js CHANGED
@@ -1,61 +1,67 @@
1
1
  import { Badge as r, badgeVariants as t } from "./components/ui/badge.es.js";
2
- import { Breadcrumb as n, BreadcrumbEllipsis as i, BreadcrumbItem as p, BreadcrumbLink as d, BreadcrumbList as l, BreadcrumbPage as m, BreadcrumbSeparator as u } from "./components/ui/breadcrumb.es.js";
3
- import { Button as b, buttonVariants as C } from "./components/ui/button.es.js";
2
+ import { Breadcrumb as n, BreadcrumbEllipsis as i, BreadcrumbItem as d, BreadcrumbLink as p, BreadcrumbList as l, BreadcrumbPage as m, BreadcrumbSeparator as u } from "./components/ui/breadcrumb.es.js";
3
+ import { Button as g, buttonVariants as b } from "./components/ui/button.es.js";
4
4
  import { Calendar as c } from "./components/ui/calendar.es.js";
5
- import { Card as D, CardContent as f, CardDescription as s, CardFooter as M, CardHeader as T, CardTitle as h } from "./components/ui/card.es.js";
6
- import { ChartContainer as w, ChartLegend as I, ChartLegendContent as B, ChartStyle as F, ChartTooltip as L, ChartTooltipContent as G } from "./components/ui/chart.es.js";
7
- import { Checkbox as k } from "./components/ui/checkbox.es.js";
8
- import { Collapsible as R, CollapsibleContent as y, CollapsibleTrigger as A } from "./components/ui/collapsible.es.js";
9
- import { Command as V, CommandDialog as O, CommandEmpty as N, CommandGroup as U, CommandInput as j, CommandItem as q, CommandList as z, CommandSeparator as J, CommandShortcut as K } from "./components/ui/command.es.js";
5
+ import { Card as x, CardContent as D, CardDescription as f, CardFooter as s, CardHeader as T, CardTitle as h } from "./components/ui/card.es.js";
6
+ import { ChartContainer as v, ChartLegend as w, ChartLegendContent as P, ChartStyle as B, ChartTooltip as F, ChartTooltipContent as L } from "./components/ui/chart.es.js";
7
+ import { Checkbox as N } from "./components/ui/checkbox.es.js";
8
+ import { Collapsible as A, CollapsibleContent as y, CollapsibleTrigger as H } from "./components/ui/collapsible.es.js";
9
+ import { Command as V, CommandDialog as E, CommandEmpty as O, CommandGroup as U, CommandInput as j, CommandItem as q, CommandList as z, CommandSeparator as J, CommandShortcut as K } from "./components/ui/command.es.js";
10
10
  import { Dialog as W, DialogClose as X, DialogContent as Y, DialogDescription as Z, DialogFooter as _, DialogHeader as $, DialogOverlay as ee, DialogPortal as oe, DialogTitle as re, DialogTrigger as te } from "./components/ui/dialog.es.js";
11
- import { DropdownMenu as ne, DropdownMenuCheckboxItem as ie, DropdownMenuContent as pe, DropdownMenuGroup as de, DropdownMenuItem as le, DropdownMenuLabel as me, DropdownMenuPortal as ue, DropdownMenuRadioGroup as Se, DropdownMenuRadioItem as be, DropdownMenuSeparator as Ce, DropdownMenuShortcut as ge, DropdownMenuSub as ce, DropdownMenuSubContent as xe, DropdownMenuSubTrigger as De, DropdownMenuTrigger as fe } from "./components/ui/dropdown-menu.es.js";
12
- import { Form as Me, FormControl as Te, FormDescription as he, FormField as Pe, FormItem as we, FormLabel as Ie, FormMessage as Be, useFormField as Fe } from "./components/ui/form.es.js";
13
- import { Input as Ge } from "./components/ui/input.es.js";
14
- import { Label as ke } from "./components/ui/label.es.js";
15
- import { Loader as Re } from "./components/ui/loader.es.js";
16
- import { Pagination as Ae, PaginationContent as Ee, PaginationEllipsis as Ve, PaginationItem as Oe, PaginationLink as Ne, PaginationNext as Ue, PaginationPrevious as je } from "./components/ui/pagination.es.js";
11
+ import { DropdownMenu as ne, DropdownMenuCheckboxItem as ie, DropdownMenuContent as de, DropdownMenuGroup as pe, DropdownMenuItem as le, DropdownMenuLabel as me, DropdownMenuPortal as ue, DropdownMenuRadioGroup as Se, DropdownMenuRadioItem as ge, DropdownMenuSeparator as be, DropdownMenuShortcut as Ce, DropdownMenuSub as ce, DropdownMenuSubContent as Me, DropdownMenuSubTrigger as xe, DropdownMenuTrigger as De } from "./components/ui/dropdown-menu.es.js";
12
+ import { Form as se, FormControl as Te, FormDescription as he, FormField as Ie, FormItem as ve, FormLabel as we, FormMessage as Pe, useFormField as Be } from "./components/ui/form.es.js";
13
+ import { Input as Le } from "./components/ui/input.es.js";
14
+ import { Label as Ne } from "./components/ui/label.es.js";
15
+ import { Loader as Ae } from "./components/ui/loader.es.js";
16
+ import { Pagination as He, PaginationContent as Re, PaginationEllipsis as Ve, PaginationItem as Ee, PaginationLink as Oe, PaginationNext as Ue, PaginationPrevious as je } from "./components/ui/pagination.es.js";
17
17
  import { PasswordInput as ze } from "./components/ui/password-input.es.js";
18
18
  import { Popover as Ke, PopoverAnchor as Qe, PopoverContent as We, PopoverTrigger as Xe } from "./components/ui/popover.es.js";
19
19
  import { RadioGroup as Ze, RadioGroupItem as _e } from "./components/ui/radio-group.es.js";
20
20
  import { Select as eo, SelectContent as oo, SelectGroup as ro, SelectItem as to, SelectLabel as ao, SelectScrollDownButton as no, SelectScrollUpButton as io, SelectSeparator as po, SelectTrigger as lo, SelectValue as mo } from "./components/ui/select.es.js";
21
21
  import { Separator as So } from "./components/ui/separator.es.js";
22
- import { Sheet as Co, SheetClose as go, SheetContent as co, SheetDescription as xo, SheetFooter as Do, SheetHeader as fo, SheetOverlay as so, SheetPortal as Mo, SheetTitle as To, SheetTrigger as ho } from "./components/ui/sheet.es.js";
23
- import { Sidebar as wo, SidebarContent as Io, SidebarFooter as Bo, SidebarGroup as Fo, SidebarGroupAction as Lo, SidebarGroupContent as Go, SidebarGroupLabel as vo, SidebarHeader as ko, SidebarInput as Ho, SidebarInset as Ro, SidebarMenu as yo, SidebarMenuAction as Ao, SidebarMenuBadge as Eo, SidebarMenuButton as Vo, SidebarMenuItem as Oo, SidebarMenuSkeleton as No, SidebarMenuSub as Uo, SidebarMenuSubButton as jo, SidebarMenuSubItem as qo, SidebarProvider as zo, SidebarRail as Jo, SidebarSeparator as Ko, SidebarTrigger as Qo, useSidebar as Wo } from "./components/ui/sidebar.es.js";
22
+ import { Sheet as bo, SheetClose as Co, SheetContent as co, SheetDescription as Mo, SheetFooter as xo, SheetHeader as Do, SheetOverlay as fo, SheetPortal as so, SheetTitle as To, SheetTrigger as ho } from "./components/ui/sheet.es.js";
23
+ import { Sidebar as vo, SidebarContent as wo, SidebarFooter as Po, SidebarGroup as Bo, SidebarGroupAction as Fo, SidebarGroupContent as Lo, SidebarGroupLabel as Go, SidebarHeader as No, SidebarInput as ko, SidebarInset as Ao, SidebarMenu as yo, SidebarMenuAction as Ho, SidebarMenuBadge as Ro, SidebarMenuButton as Vo, SidebarMenuItem as Eo, SidebarMenuSkeleton as Oo, SidebarMenuSub as Uo, SidebarMenuSubButton as jo, SidebarMenuSubItem as qo, SidebarProvider as zo, SidebarRail as Jo, SidebarSeparator as Ko, SidebarTrigger as Qo, useSidebar as Wo } from "./components/ui/sidebar.es.js";
24
24
  import { Skeleton as Yo } from "./components/ui/skeleton.es.js";
25
25
  import { Table as _o, TableBody as $o, TableCaption as er, TableCell as or, TableFooter as rr, TableHead as tr, TableHeader as ar, TableRow as nr } from "./components/ui/table.es.js";
26
- import { Tooltip as pr, TooltipContent as dr, TooltipProvider as lr, TooltipTrigger as mr } from "./components/ui/tooltip.es.js";
27
- import { useIsMobile as Sr } from "./hooks/use-mobile.es.js";
28
- import { cn as Cr } from "./utils/index.es.js";
26
+ import { Tooltip as dr, TooltipContent as pr, TooltipProvider as lr, TooltipTrigger as mr } from "./components/ui/tooltip.es.js";
27
+ import { Accordion as Sr, AccordionContent as gr, AccordionItem as br, AccordionTrigger as Cr } from "./components/ui/accordion.es.js";
28
+ import { NavigationMenu as Mr, NavigationMenuContent as xr, NavigationMenuIndicator as Dr, NavigationMenuItem as fr, NavigationMenuLink as sr, NavigationMenuList as Tr, NavigationMenuListItem as hr, NavigationMenuTrigger as Ir, NavigationMenuViewport as vr, navigationMenuTriggerStyle as wr } from "./components/ui/navigation-menu.es.js";
29
+ import { useIsMobile as Br } from "./hooks/use-mobile.es.js";
30
+ import { cn as Lr } from "./utils/index.es.js";
29
31
  export {
32
+ Sr as Accordion,
33
+ gr as AccordionContent,
34
+ br as AccordionItem,
35
+ Cr as AccordionTrigger,
30
36
  r as Badge,
31
37
  n as Breadcrumb,
32
38
  i as BreadcrumbEllipsis,
33
- p as BreadcrumbItem,
34
- d as BreadcrumbLink,
39
+ d as BreadcrumbItem,
40
+ p as BreadcrumbLink,
35
41
  l as BreadcrumbList,
36
42
  m as BreadcrumbPage,
37
43
  u as BreadcrumbSeparator,
38
- b as Button,
44
+ g as Button,
39
45
  c as Calendar,
40
- D as Card,
41
- f as CardContent,
42
- s as CardDescription,
43
- M as CardFooter,
46
+ x as Card,
47
+ D as CardContent,
48
+ f as CardDescription,
49
+ s as CardFooter,
44
50
  T as CardHeader,
45
51
  h as CardTitle,
46
- w as ChartContainer,
47
- I as ChartLegend,
48
- B as ChartLegendContent,
49
- F as ChartStyle,
50
- L as ChartTooltip,
51
- G as ChartTooltipContent,
52
- k as Checkbox,
53
- R as Collapsible,
52
+ v as ChartContainer,
53
+ w as ChartLegend,
54
+ P as ChartLegendContent,
55
+ B as ChartStyle,
56
+ F as ChartTooltip,
57
+ L as ChartTooltipContent,
58
+ N as Checkbox,
59
+ A as Collapsible,
54
60
  y as CollapsibleContent,
55
- A as CollapsibleTrigger,
61
+ H as CollapsibleTrigger,
56
62
  V as Command,
57
- O as CommandDialog,
58
- N as CommandEmpty,
63
+ E as CommandDialog,
64
+ O as CommandEmpty,
59
65
  U as CommandGroup,
60
66
  j as CommandInput,
61
67
  q as CommandItem,
@@ -74,34 +80,43 @@ export {
74
80
  te as DialogTrigger,
75
81
  ne as DropdownMenu,
76
82
  ie as DropdownMenuCheckboxItem,
77
- pe as DropdownMenuContent,
78
- de as DropdownMenuGroup,
83
+ de as DropdownMenuContent,
84
+ pe as DropdownMenuGroup,
79
85
  le as DropdownMenuItem,
80
86
  me as DropdownMenuLabel,
81
87
  ue as DropdownMenuPortal,
82
88
  Se as DropdownMenuRadioGroup,
83
- be as DropdownMenuRadioItem,
84
- Ce as DropdownMenuSeparator,
85
- ge as DropdownMenuShortcut,
89
+ ge as DropdownMenuRadioItem,
90
+ be as DropdownMenuSeparator,
91
+ Ce as DropdownMenuShortcut,
86
92
  ce as DropdownMenuSub,
87
- xe as DropdownMenuSubContent,
88
- De as DropdownMenuSubTrigger,
89
- fe as DropdownMenuTrigger,
90
- Me as Form,
93
+ Me as DropdownMenuSubContent,
94
+ xe as DropdownMenuSubTrigger,
95
+ De as DropdownMenuTrigger,
96
+ se as Form,
91
97
  Te as FormControl,
92
98
  he as FormDescription,
93
- Pe as FormField,
94
- we as FormItem,
95
- Ie as FormLabel,
96
- Be as FormMessage,
97
- Ge as Input,
98
- ke as Label,
99
- Re as Loader,
100
- Ae as Pagination,
101
- Ee as PaginationContent,
99
+ Ie as FormField,
100
+ ve as FormItem,
101
+ we as FormLabel,
102
+ Pe as FormMessage,
103
+ Le as Input,
104
+ Ne as Label,
105
+ Ae as Loader,
106
+ Mr as NavigationMenu,
107
+ xr as NavigationMenuContent,
108
+ Dr as NavigationMenuIndicator,
109
+ fr as NavigationMenuItem,
110
+ sr as NavigationMenuLink,
111
+ Tr as NavigationMenuList,
112
+ hr as NavigationMenuListItem,
113
+ Ir as NavigationMenuTrigger,
114
+ vr as NavigationMenuViewport,
115
+ He as Pagination,
116
+ Re as PaginationContent,
102
117
  Ve as PaginationEllipsis,
103
- Oe as PaginationItem,
104
- Ne as PaginationLink,
118
+ Ee as PaginationItem,
119
+ Oe as PaginationLink,
105
120
  Ue as PaginationNext,
106
121
  je as PaginationPrevious,
107
122
  ze as PasswordInput,
@@ -122,32 +137,32 @@ export {
122
137
  lo as SelectTrigger,
123
138
  mo as SelectValue,
124
139
  So as Separator,
125
- Co as Sheet,
126
- go as SheetClose,
140
+ bo as Sheet,
141
+ Co as SheetClose,
127
142
  co as SheetContent,
128
- xo as SheetDescription,
129
- Do as SheetFooter,
130
- fo as SheetHeader,
131
- so as SheetOverlay,
132
- Mo as SheetPortal,
143
+ Mo as SheetDescription,
144
+ xo as SheetFooter,
145
+ Do as SheetHeader,
146
+ fo as SheetOverlay,
147
+ so as SheetPortal,
133
148
  To as SheetTitle,
134
149
  ho as SheetTrigger,
135
- wo as Sidebar,
136
- Io as SidebarContent,
137
- Bo as SidebarFooter,
138
- Fo as SidebarGroup,
139
- Lo as SidebarGroupAction,
140
- Go as SidebarGroupContent,
141
- vo as SidebarGroupLabel,
142
- ko as SidebarHeader,
143
- Ho as SidebarInput,
144
- Ro as SidebarInset,
150
+ vo as Sidebar,
151
+ wo as SidebarContent,
152
+ Po as SidebarFooter,
153
+ Bo as SidebarGroup,
154
+ Fo as SidebarGroupAction,
155
+ Lo as SidebarGroupContent,
156
+ Go as SidebarGroupLabel,
157
+ No as SidebarHeader,
158
+ ko as SidebarInput,
159
+ Ao as SidebarInset,
145
160
  yo as SidebarMenu,
146
- Ao as SidebarMenuAction,
147
- Eo as SidebarMenuBadge,
161
+ Ho as SidebarMenuAction,
162
+ Ro as SidebarMenuBadge,
148
163
  Vo as SidebarMenuButton,
149
- Oo as SidebarMenuItem,
150
- No as SidebarMenuSkeleton,
164
+ Eo as SidebarMenuItem,
165
+ Oo as SidebarMenuSkeleton,
151
166
  Uo as SidebarMenuSub,
152
167
  jo as SidebarMenuSubButton,
153
168
  qo as SidebarMenuSubItem,
@@ -164,15 +179,16 @@ export {
164
179
  tr as TableHead,
165
180
  ar as TableHeader,
166
181
  nr as TableRow,
167
- pr as Tooltip,
168
- dr as TooltipContent,
182
+ dr as Tooltip,
183
+ pr as TooltipContent,
169
184
  lr as TooltipProvider,
170
185
  mr as TooltipTrigger,
171
186
  t as badgeVariants,
172
- C as buttonVariants,
173
- Cr as cn,
174
- Fe as useFormField,
175
- Sr as useIsMobile,
187
+ b as buttonVariants,
188
+ Lr as cn,
189
+ wr as navigationMenuTriggerStyle,
190
+ Be as useFormField,
191
+ Br as useIsMobile,
176
192
  Wo as useSidebar
177
193
  };
178
194
  //# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/index.css CHANGED
@@ -20,10 +20,10 @@
20
20
  --secondary-foreground: var(--secondary-2);
21
21
 
22
22
  --muted: var(--neutral-7);
23
- --muted-foreground: var(--neutral-3);
23
+ --muted-foreground: var(--neutral-4);
24
24
 
25
- --accent: var(--neutral-8);
26
- --accent-foreground: var(--neutral-2);
25
+ --accent: var(--neutral-7);
26
+ --accent-foreground: var(--neutral-4);
27
27
 
28
28
  --destructive: var(--destructive-8);
29
29
  --destructive-foreground: var(--destructive-2);
@@ -31,9 +31,9 @@
31
31
  --success: var(--success-8);
32
32
  --succcess-foreground: var(--success-2);
33
33
 
34
- --border: var(--muted);
35
- --input: var(--muted);
36
- --ring: var(--muted-foreground);
34
+ --border: var(--neutral-3);
35
+ --input: var(--border);
36
+ --ring: var(--neutral-5);
37
37
 
38
38
  --chart-1: var(--primary-5);
39
39
  --chart-2: var(--primary-4);
@@ -41,7 +41,7 @@
41
41
  --chart-4: var(--secondary-4);
42
42
  --chart-5: var(--secondary-2);
43
43
 
44
- --radius: 0rem;
44
+ --radius: 0.25rem;
45
45
 
46
46
  --sidebar-background: var(--background);
47
47
  --sidebar-foreground: var(--foreground);
@@ -61,6 +61,34 @@
61
61
  @apply border-border;
62
62
  }
63
63
 
64
+ h1 {
65
+ @apply text-heading-1 my-v3;
66
+ }
67
+
68
+ h2 {
69
+ @apply text-heading-2 mt-v4 mb-v5;
70
+ }
71
+
72
+ h3 {
73
+ @apply text-heading-3 mt-v3 mb-v5;
74
+ }
75
+
76
+ h4 {
77
+ @apply text-heading-4 mt-v4 mb-v5;
78
+ }
79
+
80
+ h5 {
81
+ @apply text-heading-5 mt-v4 mb-v5;
82
+ }
83
+
84
+ h6 {
85
+ @apply text-heading-6 mt-v4 mb-v5;
86
+ }
87
+
88
+ p {
89
+ @apply text-body my-v1;
90
+ }
91
+
64
92
  body {
65
93
  @apply bg-background text-foreground;
66
94
  }
package/lib/tokens.css CHANGED
@@ -109,6 +109,15 @@
109
109
  --neutral-8: var(--xneutral-8);
110
110
  --neutral-9: var(--xneutral-9);
111
111
  --neutral-10: var(--xneutral-10);
112
+ /* Increase or decrease the number to change the vertical spacing globally*/
113
+ /* Base Vertical Spacing */
114
+ --space: 1.2;
115
+ /* Vertical Spacing - multiplier */
116
+ --vspace-1: calc(var(--space) * 1rem);
117
+ --vspace-2: calc(3 * var(--space) * 1rem);
118
+ --vspace-3: calc(2 * var(--space) * 1rem);
119
+ --vspace-4: calc(1.5 * var(--space) * 1rem);
120
+ --vspace-5: calc(0.5 * var(--space) * 1rem);
112
121
  }
113
122
 
114
123
  .dark {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptlex/web-components",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "React component library for Cryptlex web applications",
5
5
  "author": "Cryptlex",
6
6
  "type": "module",
@@ -42,6 +42,7 @@
42
42
  "access": "public"
43
43
  },
44
44
  "peerDependencies": {
45
+ "@radix-ui/react-accordion": "^1.2.1",
45
46
  "@radix-ui/react-checkbox": "^1.1.2",
46
47
  "@radix-ui/react-collapsible": "^1.1.1",
47
48
  "@radix-ui/react-dialog": "^1.1.2",
@@ -54,6 +55,7 @@
54
55
  "@radix-ui/react-separator": "^1.1.0",
55
56
  "@radix-ui/react-slot": "^1.1.0",
56
57
  "@radix-ui/react-tooltip": "^1.1.3",
58
+ "@radix-ui/react-navigation-menu": "^1.2.1",
57
59
  "@tanstack/react-table": "^8.20.5",
58
60
  "class-variance-authority": "^0.7.0",
59
61
  "clsx": "^2.1.1",
@@ -71,15 +73,15 @@
71
73
  },
72
74
  "devDependencies": {
73
75
  "@eslint/js": "^9.11.1",
74
- "@storybook/addon-docs": "^8.3.6",
75
- "@storybook/addon-essentials": "^8.3.6",
76
- "@storybook/addon-interactions": "^8.3.6",
77
- "@storybook/addon-links": "^8.3.6",
78
- "@storybook/addon-onboarding": "^8.3.6",
79
- "@storybook/blocks": "^8.3.6",
80
- "@storybook/react": "^8.3.6",
81
- "@storybook/react-vite": "^8.3.6",
82
- "@storybook/test": "^8.3.6",
76
+ "@storybook/addon-docs": "^8.4.2",
77
+ "@storybook/addon-essentials": "^8.4.2",
78
+ "@storybook/addon-interactions": "^8.4.2",
79
+ "@storybook/addon-links": "^8.4.2",
80
+ "@storybook/addon-onboarding": "^8.4.2",
81
+ "@storybook/blocks": "^8.4.2",
82
+ "@storybook/react": "^8.4.2",
83
+ "@storybook/react-vite": "^8.4.2",
84
+ "@storybook/test": "^8.4.2",
83
85
  "@types/node": "^22.7.8",
84
86
  "@types/react": "^18.3.10",
85
87
  "@types/react-dom": "^18.3.0",
@@ -88,11 +90,11 @@
88
90
  "eslint": "^9.11.1",
89
91
  "eslint-plugin-react-hooks": "^5.1.0-rc.0",
90
92
  "eslint-plugin-react-refresh": "^0.4.12",
91
- "eslint-plugin-storybook": "^0.10.1",
93
+ "eslint-plugin-storybook": "^0.11.0",
92
94
  "globals": "^15.9.0",
93
95
  "postcss": "^8.4.47",
94
96
  "sass": "^1.80.6",
95
- "storybook": "^8.3.6",
97
+ "storybook": "^8.4.2",
96
98
  "typescript": "^5.5.3",
97
99
  "typescript-eslint": "^8.7.0",
98
100
  "vite": "^5.4.8",
@@ -12,6 +12,10 @@ export default {
12
12
  sm: 'calc(var(--radius) - 4px)',
13
13
  },
14
14
  colors: {
15
+ transparent: 'transparent',
16
+ current: 'currentColor',
17
+ white: '#ffffff',
18
+ black: '#000000',
15
19
  background: 'oklch(var(--background) / <alpha-value>)',
16
20
  foreground: 'oklch(var(--foreground) / <alpha-value>)',
17
21
  card: {
@@ -69,6 +73,103 @@ export default {
69
73
  ring: 'oklch(var(--sidebar-ring) / <alpha-value>)',
70
74
  },
71
75
  },
76
+ extend: {
77
+ keyframes: {
78
+ 'accordion-down': {
79
+ from: {
80
+ height: '0'
81
+ },
82
+ to: {
83
+ height: 'var(--radix-accordion-content-height)'
84
+ }
85
+ },
86
+ 'accordion-up': {
87
+ from: {
88
+ height: 'var(--radix-accordion-content-height)'
89
+ },
90
+ to: {
91
+ height: '0'
92
+ }
93
+ }
94
+ },
95
+ animation: {
96
+ 'accordion-down': 'accordion-down 0.2s ease-out',
97
+ 'accordion-up': 'accordion-up 0.2s ease-out'
98
+ },
99
+ spacing: {
100
+ 'v1': 'var(--vspace-1)',
101
+ 'v2': 'var(--vspace-2)',
102
+ 'v3': 'var(--vspace-3)',
103
+ 'v4': 'var(--vspace-4)',
104
+ 'v5': 'var(--vspace-5)',
105
+ },
106
+ fontSize: {
107
+ // text-caption
108
+ caption: [
109
+ "0.7708em",
110
+ {
111
+ lineHeight: "16px",
112
+ fontWeight: "400",
113
+ },
114
+ ],
115
+ // text-body
116
+ body: [
117
+ "14px",
118
+ {
119
+ lineHeight: "20px",
120
+ fontWeight: "400",
121
+ },
122
+ ],
123
+ // text-heading-6
124
+ "heading-6": [
125
+ "1em",
126
+ {
127
+ lineHeight: "var(--vspace-1)",
128
+ letterSpacing: "0em"
129
+ },
130
+ ],
131
+ // text-heading-5
132
+ "heading-5": [
133
+ "1.1667em",
134
+ {
135
+ lineHeight: "var(--vspace-1)"
136
+ },
137
+ ],
138
+ // text-heading-4
139
+ "heading-4": [
140
+ "1.3333em",
141
+ {
142
+ lineHeight: "var(--vspace-1)"
143
+ },
144
+ ],
145
+ // text-heading-3
146
+ "heading-3": [
147
+ "1.75em",
148
+ {
149
+ lineHeight: "1em",
150
+ fontWeight: "500",
151
+ },
152
+ ],
153
+
154
+ // text-heading-2
155
+ "heading-2": [
156
+ "2.6458em",
157
+ {
158
+ lineHeight: "1em",
159
+ fontWeight: "300",
160
+ },
161
+ ],
162
+
163
+ // text-heading-1
164
+ "heading-1": [
165
+ "5.2917em",
166
+ {
167
+ lineHeight: "calc(5.2917/var(--space) * var(--vspace-1))",
168
+ fontWeight: "400",
169
+ },
170
+ ],
171
+ },
172
+ }
72
173
  },
73
174
  plugins: [require('tailwindcss-animate')], // Include any plugins you need
74
175
  } satisfies Config;