@cryptlex/web-components 1.1.0 → 1.2.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.
- package/dist/components/ui/accordion.es.js +47 -0
- package/dist/components/ui/accordion.es.js.map +1 -0
- package/dist/components/ui/input.es.js +10 -11
- package/dist/components/ui/input.es.js.map +1 -1
- package/dist/components/ui/navigation-menu.es.js +122 -0
- package/dist/components/ui/navigation-menu.es.js.map +1 -0
- package/dist/components/ui/password-input.es.js +8 -8
- package/dist/components/ui/password-input.es.js.map +1 -1
- package/dist/components/ui/sonner.es.js +21 -0
- package/dist/components/ui/sonner.es.js.map +1 -0
- package/dist/index.es.d.ts +35 -0
- package/dist/index.es.js +98 -80
- package/dist/index.es.js.map +1 -1
- package/lib/index.css +45 -7
- package/lib/tokens.css +17 -8
- package/package.json +15 -12
- package/tailwind.preset.ts +115 -0
|
@@ -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
|
|
2
|
-
import * as
|
|
3
|
-
import { cn as
|
|
4
|
-
const
|
|
5
|
-
({ className: e, type: r, ...o },
|
|
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:
|
|
10
|
-
"flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm
|
|
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:
|
|
13
|
+
ref: t,
|
|
15
14
|
...o
|
|
16
15
|
}
|
|
17
16
|
)
|
|
18
17
|
);
|
|
19
|
-
|
|
18
|
+
s.displayName = "Input";
|
|
20
19
|
export {
|
|
21
|
-
|
|
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
|
|
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":";;;;;;AAMM,MAAAA,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpC,gBAAAC;AAAA,EAACC,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IACF;AAAA,IACC,GAAGE;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,wBACAM,GAAuB,CAAA,CAAA;AAAA,IAAA;AAAA,EAAA;AAC1B,CACD;AACDT,EAAe,cAAcO,EAAwB,KAAK;AAEpD,MAAAG,IAAqBT,EAAM,WAG/B,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAM,GAAGC,MAC1B,gBAAAM;AAAA,EAACJ,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IACF;AAAA,IACC,GAAGE;AAAA,EAAA;AACN,CACD;AACDM,EAAmB,cAAcH,EAAwB,KAAK;AAE9D,MAAMK,IAAqBL,EAAwB,MAE7CM,IAA6BC;AAAA,EACjC;AACF,GAEMC,IAAwBd,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpC,gBAAAC;AAAA,EAACC,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAGK,KAA8B,SAASX,CAAS;AAAA,IAC7D,GAAGE;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,MAAU;AAAA,MACX,gBAAAQ;AAAA,QAACK;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAY;AAAA,QAAA;AAAA,MAAA;AAAA,IACd;AAAA,EAAA;AACF,CACD;AACDD,EAAsB,cAAcR,EAAwB,QAAQ;AAE9D,MAAAU,IAAwBhB,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAM,GAAGC,MAC1B,gBAAAM;AAAA,EAACJ,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IACF;AAAA,IACC,GAAGE;AAAA,EAAA;AACN,CACD;AACDa,EAAsB,cAAcV,EAAwB,QAAQ;AAEpE,MAAMW,IAAqBX,EAAwB,MAE7CE,IAAyBR,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,GAAGE,KAASC,MACzB,gBAAAM,EAAA,OAAA,EAAI,WAAWH,EAAG,8CAA8C,GAC/D,UAAA,gBAAAG;AAAA,EAACJ,EAAwB;AAAA,EAAxB;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACAN;AAAA,IACF;AAAA,IACA,KAAAG;AAAA,IACC,GAAGD;AAAA,EAAA;AACN,GACF,CACD;AACDK,EAAuB,cACrBF,EAAwB,SAAS;AAE7B,MAAAY,IAA0BlB,EAAM,WAGpC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAM,GAAGC,MAC1B,gBAAAM;AAAA,EAACJ,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IACF;AAAA,IACC,GAAGE;AAAA,IAEJ,UAAA,gBAAAO,EAAC,OAAI,EAAA,WAAU,yEAAyE,CAAA;AAAA,EAAA;AAC1F,CACD;AACDQ,EAAwB,cACtBZ,EAAwB,UAAU;AAE9B,MAAAa,IAAyBnB,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,OAAAmB,GAAO,UAAAlB,GAAU,GAAGC,EAAM,GAAGC,MAExC,gBAAAM,EAAA,MAAA,EACC,UAAC,gBAAAA,EAAAO,GAAA,EAAmB,SAAO,IACzB,UAAA,gBAAAZ;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IACF;AAAA,IACC,GAAGE;AAAA,IAEJ,UAAA;AAAA,MAAC,gBAAAO,EAAA,OAAA,EAAI,WAAU,oCAAoC,UAAMU,GAAA;AAAA,MACxD,gBAAAV,EAAA,KAAA,EAAE,WAAU,2DACV,UAAAR,EACH,CAAA;AAAA,IAAA;AAAA,EAAA;GAEJ,EACF,CAAA,CAEH;AACDiB,EAAuB,cAAc;"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { EyeIcon as
|
|
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 =
|
|
7
|
-
({ className: c, ...
|
|
8
|
-
const [t, a] =
|
|
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, ...
|
|
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
|
|
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(
|
|
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
|
|
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;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Toaster as r } from "sonner";
|
|
3
|
+
const s = ({ ...t }) => /* @__PURE__ */ o(
|
|
4
|
+
r,
|
|
5
|
+
{
|
|
6
|
+
className: "toaster group",
|
|
7
|
+
toastOptions: {
|
|
8
|
+
classNames: {
|
|
9
|
+
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
10
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
11
|
+
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
12
|
+
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
...t
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
export {
|
|
19
|
+
s as Toaster
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=sonner.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sonner.es.js","sources":["../../../lib/components/ui/sonner.tsx"],"sourcesContent":["import { Toaster as Sonner } from \"sonner\"\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>\n\nconst Toaster = ({ ...props }: ToasterProps) => {\n\n\n return (\n <Sonner\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast:\n \"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg\",\n description: \"group-[.toast]:text-muted-foreground\",\n actionButton:\n \"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground\",\n cancelButton:\n \"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground\",\n },\n }}\n {...props}\n />\n )\n}\n\nexport { Toaster }\n"],"names":["Toaster","props","jsx","Sonner"],"mappings":";;AAIA,MAAMA,IAAU,CAAC,EAAE,GAAGC,QAIlB,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,WAAU;AAAA,IACV,cAAc;AAAA,MACZ,YAAY;AAAA,QACV,OACE;AAAA,QACF,aAAa;AAAA,QACb,cACE;AAAA,QACF,cACE;AAAA,MAAA;AAAA,IAEN;AAAA,IACC,GAAGF;AAAA,EAAA;AACN;"}
|
package/dist/index.es.d.ts
CHANGED
|
@@ -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';
|
|
@@ -32,11 +34,20 @@ import * as SelectPrimitive from '@radix-ui/react-select';
|
|
|
32
34
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
33
35
|
import { SeparatorProps } from '@radix-ui/react-separator';
|
|
34
36
|
import { SlotProps } from '@radix-ui/react-slot';
|
|
37
|
+
import { Toaster as Toaster_2 } from 'sonner';
|
|
35
38
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
36
39
|
import { UniqueOption } from 'recharts/types/util/payload/getUniqPayload';
|
|
37
40
|
import { ValueType } from 'recharts/types/component/DefaultTooltipContent';
|
|
38
41
|
import { VariantProps } from 'class-variance-authority';
|
|
39
42
|
|
|
43
|
+
export declare const Accordion: React_2.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React_2.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
|
|
45
|
+
export declare const AccordionContent: React_2.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
|
|
47
|
+
export declare const AccordionItem: React_2.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
|
|
49
|
+
export declare const AccordionTrigger: React_2.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
50
|
+
|
|
40
51
|
export declare function Badge({ className, variant, ...props }: BadgeProps): JSX_2.Element;
|
|
41
52
|
|
|
42
53
|
export declare interface BadgeProps extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
@@ -356,6 +367,26 @@ declare interface LoaderProps {
|
|
|
356
367
|
className?: string;
|
|
357
368
|
}
|
|
358
369
|
|
|
370
|
+
export declare const NavigationMenu: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React_2.RefAttributes<HTMLElement>, "ref"> & React_2.RefAttributes<HTMLElement>>;
|
|
371
|
+
|
|
372
|
+
export declare const NavigationMenuContent: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
373
|
+
|
|
374
|
+
export declare const NavigationMenuIndicator: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
375
|
+
|
|
376
|
+
export declare const NavigationMenuItem: React_2.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React_2.RefAttributes<HTMLLIElement>>;
|
|
377
|
+
|
|
378
|
+
export declare const NavigationMenuLink: React_2.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
379
|
+
|
|
380
|
+
export declare const NavigationMenuList: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React_2.RefAttributes<HTMLUListElement>, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
|
|
381
|
+
|
|
382
|
+
export declare const NavigationMenuListItem: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
383
|
+
|
|
384
|
+
export declare const NavigationMenuTrigger: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
385
|
+
|
|
386
|
+
export declare const navigationMenuTriggerStyle: (props?: ClassProp | undefined) => string;
|
|
387
|
+
|
|
388
|
+
export declare const NavigationMenuViewport: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
389
|
+
|
|
359
390
|
export declare const Pagination: {
|
|
360
391
|
({ className, ...props }: React_2.ComponentProps<"nav">): JSX_2.Element;
|
|
361
392
|
displayName: string;
|
|
@@ -567,6 +598,10 @@ declare const THEMES: {
|
|
|
567
598
|
readonly dark: ".dark";
|
|
568
599
|
};
|
|
569
600
|
|
|
601
|
+
export declare const Toaster: ({ ...props }: ToasterProps) => JSX_2.Element;
|
|
602
|
+
|
|
603
|
+
declare type ToasterProps = React.ComponentProps<typeof Toaster_2>;
|
|
604
|
+
|
|
570
605
|
export declare const Tooltip: React_2.FC<TooltipPrimitive.TooltipProps>;
|
|
571
606
|
|
|
572
607
|
export declare const TooltipContent: React_2.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
package/dist/index.es.js
CHANGED
|
@@ -1,61 +1,68 @@
|
|
|
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
|
|
3
|
-
import { Button as
|
|
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
|
|
6
|
-
import { ChartContainer as
|
|
7
|
-
import { Checkbox as
|
|
8
|
-
import { Collapsible as
|
|
9
|
-
import { Command as V, CommandDialog as
|
|
5
|
+
import { Card as x, CardContent as f, CardDescription as D, 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
|
|
12
|
-
import { Form as
|
|
13
|
-
import { Input as
|
|
14
|
-
import { Label as
|
|
15
|
-
import { Loader as
|
|
16
|
-
import { Pagination as
|
|
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 fe } 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
|
|
23
|
-
import { Sidebar as
|
|
22
|
+
import { Sheet as bo, SheetClose as Co, SheetContent as co, SheetDescription as Mo, SheetFooter as xo, SheetHeader as fo, SheetOverlay as Do, 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
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
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 fr, NavigationMenuItem as Dr, 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 { Toaster as Br } from "./components/ui/sonner.es.js";
|
|
30
|
+
import { useIsMobile as Lr } from "./hooks/use-mobile.es.js";
|
|
31
|
+
import { cn as Nr } from "./utils/index.es.js";
|
|
29
32
|
export {
|
|
33
|
+
Sr as Accordion,
|
|
34
|
+
gr as AccordionContent,
|
|
35
|
+
br as AccordionItem,
|
|
36
|
+
Cr as AccordionTrigger,
|
|
30
37
|
r as Badge,
|
|
31
38
|
n as Breadcrumb,
|
|
32
39
|
i as BreadcrumbEllipsis,
|
|
33
|
-
|
|
34
|
-
|
|
40
|
+
d as BreadcrumbItem,
|
|
41
|
+
p as BreadcrumbLink,
|
|
35
42
|
l as BreadcrumbList,
|
|
36
43
|
m as BreadcrumbPage,
|
|
37
44
|
u as BreadcrumbSeparator,
|
|
38
|
-
|
|
45
|
+
g as Button,
|
|
39
46
|
c as Calendar,
|
|
40
|
-
|
|
47
|
+
x as Card,
|
|
41
48
|
f as CardContent,
|
|
42
|
-
|
|
43
|
-
|
|
49
|
+
D as CardDescription,
|
|
50
|
+
s as CardFooter,
|
|
44
51
|
T as CardHeader,
|
|
45
52
|
h as CardTitle,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
v as ChartContainer,
|
|
54
|
+
w as ChartLegend,
|
|
55
|
+
P as ChartLegendContent,
|
|
56
|
+
B as ChartStyle,
|
|
57
|
+
F as ChartTooltip,
|
|
58
|
+
L as ChartTooltipContent,
|
|
59
|
+
N as Checkbox,
|
|
60
|
+
A as Collapsible,
|
|
54
61
|
y as CollapsibleContent,
|
|
55
|
-
|
|
62
|
+
H as CollapsibleTrigger,
|
|
56
63
|
V as Command,
|
|
57
|
-
|
|
58
|
-
|
|
64
|
+
E as CommandDialog,
|
|
65
|
+
O as CommandEmpty,
|
|
59
66
|
U as CommandGroup,
|
|
60
67
|
j as CommandInput,
|
|
61
68
|
q as CommandItem,
|
|
@@ -74,34 +81,43 @@ export {
|
|
|
74
81
|
te as DialogTrigger,
|
|
75
82
|
ne as DropdownMenu,
|
|
76
83
|
ie as DropdownMenuCheckboxItem,
|
|
77
|
-
|
|
78
|
-
|
|
84
|
+
de as DropdownMenuContent,
|
|
85
|
+
pe as DropdownMenuGroup,
|
|
79
86
|
le as DropdownMenuItem,
|
|
80
87
|
me as DropdownMenuLabel,
|
|
81
88
|
ue as DropdownMenuPortal,
|
|
82
89
|
Se as DropdownMenuRadioGroup,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
90
|
+
ge as DropdownMenuRadioItem,
|
|
91
|
+
be as DropdownMenuSeparator,
|
|
92
|
+
Ce as DropdownMenuShortcut,
|
|
86
93
|
ce as DropdownMenuSub,
|
|
87
|
-
|
|
88
|
-
|
|
94
|
+
Me as DropdownMenuSubContent,
|
|
95
|
+
xe as DropdownMenuSubTrigger,
|
|
89
96
|
fe as DropdownMenuTrigger,
|
|
90
|
-
|
|
97
|
+
se as Form,
|
|
91
98
|
Te as FormControl,
|
|
92
99
|
he as FormDescription,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
Ie as FormField,
|
|
101
|
+
ve as FormItem,
|
|
102
|
+
we as FormLabel,
|
|
103
|
+
Pe as FormMessage,
|
|
104
|
+
Le as Input,
|
|
105
|
+
Ne as Label,
|
|
106
|
+
Ae as Loader,
|
|
107
|
+
Mr as NavigationMenu,
|
|
108
|
+
xr as NavigationMenuContent,
|
|
109
|
+
fr as NavigationMenuIndicator,
|
|
110
|
+
Dr as NavigationMenuItem,
|
|
111
|
+
sr as NavigationMenuLink,
|
|
112
|
+
Tr as NavigationMenuList,
|
|
113
|
+
hr as NavigationMenuListItem,
|
|
114
|
+
Ir as NavigationMenuTrigger,
|
|
115
|
+
vr as NavigationMenuViewport,
|
|
116
|
+
He as Pagination,
|
|
117
|
+
Re as PaginationContent,
|
|
102
118
|
Ve as PaginationEllipsis,
|
|
103
|
-
|
|
104
|
-
|
|
119
|
+
Ee as PaginationItem,
|
|
120
|
+
Oe as PaginationLink,
|
|
105
121
|
Ue as PaginationNext,
|
|
106
122
|
je as PaginationPrevious,
|
|
107
123
|
ze as PasswordInput,
|
|
@@ -122,32 +138,32 @@ export {
|
|
|
122
138
|
lo as SelectTrigger,
|
|
123
139
|
mo as SelectValue,
|
|
124
140
|
So as Separator,
|
|
125
|
-
|
|
126
|
-
|
|
141
|
+
bo as Sheet,
|
|
142
|
+
Co as SheetClose,
|
|
127
143
|
co as SheetContent,
|
|
128
|
-
|
|
129
|
-
|
|
144
|
+
Mo as SheetDescription,
|
|
145
|
+
xo as SheetFooter,
|
|
130
146
|
fo as SheetHeader,
|
|
131
|
-
|
|
132
|
-
|
|
147
|
+
Do as SheetOverlay,
|
|
148
|
+
so as SheetPortal,
|
|
133
149
|
To as SheetTitle,
|
|
134
150
|
ho as SheetTrigger,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
151
|
+
vo as Sidebar,
|
|
152
|
+
wo as SidebarContent,
|
|
153
|
+
Po as SidebarFooter,
|
|
154
|
+
Bo as SidebarGroup,
|
|
155
|
+
Fo as SidebarGroupAction,
|
|
156
|
+
Lo as SidebarGroupContent,
|
|
157
|
+
Go as SidebarGroupLabel,
|
|
158
|
+
No as SidebarHeader,
|
|
159
|
+
ko as SidebarInput,
|
|
160
|
+
Ao as SidebarInset,
|
|
145
161
|
yo as SidebarMenu,
|
|
146
|
-
|
|
147
|
-
|
|
162
|
+
Ho as SidebarMenuAction,
|
|
163
|
+
Ro as SidebarMenuBadge,
|
|
148
164
|
Vo as SidebarMenuButton,
|
|
149
|
-
|
|
150
|
-
|
|
165
|
+
Eo as SidebarMenuItem,
|
|
166
|
+
Oo as SidebarMenuSkeleton,
|
|
151
167
|
Uo as SidebarMenuSub,
|
|
152
168
|
jo as SidebarMenuSubButton,
|
|
153
169
|
qo as SidebarMenuSubItem,
|
|
@@ -164,15 +180,17 @@ export {
|
|
|
164
180
|
tr as TableHead,
|
|
165
181
|
ar as TableHeader,
|
|
166
182
|
nr as TableRow,
|
|
167
|
-
|
|
168
|
-
dr as
|
|
183
|
+
Br as Toaster,
|
|
184
|
+
dr as Tooltip,
|
|
185
|
+
pr as TooltipContent,
|
|
169
186
|
lr as TooltipProvider,
|
|
170
187
|
mr as TooltipTrigger,
|
|
171
188
|
t as badgeVariants,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
189
|
+
b as buttonVariants,
|
|
190
|
+
Nr as cn,
|
|
191
|
+
wr as navigationMenuTriggerStyle,
|
|
192
|
+
Be as useFormField,
|
|
193
|
+
Lr as useIsMobile,
|
|
176
194
|
Wo as useSidebar
|
|
177
195
|
};
|
|
178
196
|
//# sourceMappingURL=index.es.js.map
|
package/dist/index.es.js.map
CHANGED
|
@@ -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-
|
|
23
|
+
--muted-foreground: var(--neutral-4);
|
|
24
24
|
|
|
25
|
-
--accent: var(--neutral-
|
|
26
|
-
--accent-foreground: var(--neutral-
|
|
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(--
|
|
35
|
-
--input: var(--
|
|
36
|
-
--ring: var(--
|
|
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:
|
|
44
|
+
--radius: 0.25rem;
|
|
45
45
|
|
|
46
46
|
--sidebar-background: var(--background);
|
|
47
47
|
--sidebar-foreground: var(--foreground);
|
|
@@ -61,8 +61,46 @@
|
|
|
61
61
|
@apply border-border;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
a {
|
|
65
|
+
@apply link;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
h1 {
|
|
69
|
+
@apply text-heading-1 my-v3;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
h2 {
|
|
73
|
+
@apply text-heading-2 mt-v4 mb-v5;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
h3 {
|
|
77
|
+
@apply text-heading-3 mt-v3 mb-v5;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
h4 {
|
|
81
|
+
@apply text-heading-4 mt-v4 mb-v5;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
h5 {
|
|
85
|
+
@apply text-heading-5 mt-v4 mb-v5;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
h6 {
|
|
89
|
+
@apply text-heading-6 mt-v4 mb-v5;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
p {
|
|
93
|
+
@apply text-body my-v1;
|
|
94
|
+
}
|
|
95
|
+
|
|
64
96
|
body {
|
|
65
97
|
@apply bg-background text-foreground;
|
|
66
98
|
}
|
|
67
99
|
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@layer components {
|
|
103
|
+
.link {
|
|
104
|
+
@apply text-primary underline hover:underline-offset-2 hover:text-primary/70;
|
|
105
|
+
}
|
|
68
106
|
}
|
package/lib/tokens.css
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
--xprimary-6: 0.5 0.13 var(--primary-hue);
|
|
13
13
|
--xprimary-7: 0.35 0.13 var(--primary-hue);
|
|
14
14
|
--xprimary-8: 0.25 0.13 var(--primary-hue);
|
|
15
|
-
--xprimary-9: 0.
|
|
16
|
-
--xprimary-10: 0.
|
|
15
|
+
--xprimary-9: 0.20 0.09 var(--primary-hue);
|
|
16
|
+
--xprimary-10: 0.10 0.03 var(--primary-hue);
|
|
17
17
|
--primary-1: var(--xprimary-1);
|
|
18
18
|
--primary-2: var(--xprimary-2);
|
|
19
19
|
--primary-3: var(--xprimary-3);
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
--xsecondary-6: 0.5 0.13 var(--secondary-hue);
|
|
34
34
|
--xsecondary-7: 0.35 0.13 var(--secondary-hue);
|
|
35
35
|
--xsecondary-8: 0.25 0.13 var(--secondary-hue);
|
|
36
|
-
--xsecondary-9: 0.
|
|
37
|
-
--xsecondary-10: 0.
|
|
36
|
+
--xsecondary-9: 0.20 0.09 var(--secondary-hue);
|
|
37
|
+
--xsecondary-10: 0.10 0.03 var(--secondary-hue);
|
|
38
38
|
--secondary-1: var(--xsecondary-1);
|
|
39
39
|
--secondary-2: var(--xsecondary-2);
|
|
40
40
|
--secondary-3: var(--xsecondary-3);
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
--xdestructive-6: 0.5 0.13 var(--destructive-hue);
|
|
55
55
|
--xdestructive-7: 0.35 0.13 var(--destructive-hue);
|
|
56
56
|
--xdestructive-8: 0.25 0.13 var(--destructive-hue);
|
|
57
|
-
--xdestructive-9: 0.
|
|
58
|
-
--xdestructive-10: 0.
|
|
57
|
+
--xdestructive-9: 0.20 0.09 var(--destructive-hue);
|
|
58
|
+
--xdestructive-10: 0.10 0.03 var(--destructive-hue);
|
|
59
59
|
--destructive-1: var(--xdestructive-1);
|
|
60
60
|
--destructive-2: var(--xdestructive-2);
|
|
61
61
|
--destructive-3: var(--xdestructive-3);
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
--xsuccess-6: 0.5 0.13 var(--success-hue);
|
|
76
76
|
--xsuccess-7: 0.35 0.13 var(--success-hue);
|
|
77
77
|
--xsuccess-8: 0.25 0.13 var(--success-hue);
|
|
78
|
-
--xsuccess-9: 0.
|
|
79
|
-
--xsuccess-10: 0.
|
|
78
|
+
--xsuccess-9: 0.20 0.09 var(--success-hue);
|
|
79
|
+
--xsuccess-10: 0.10 0.03 var(--success-hue);
|
|
80
80
|
--success-1: var(--xsuccess-1);
|
|
81
81
|
--success-2: var(--xsuccess-2);
|
|
82
82
|
--success-3: var(--xsuccess-3);
|
|
@@ -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
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "React component library for Cryptlex web applications",
|
|
5
5
|
"author": "Cryptlex",
|
|
6
6
|
"type": "module",
|
|
@@ -42,18 +42,21 @@
|
|
|
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",
|
|
48
49
|
"@radix-ui/react-dropdown-menu": "^2.1.2",
|
|
49
50
|
"@radix-ui/react-icons": "^1.3.0",
|
|
50
51
|
"@radix-ui/react-label": "^2.1.0",
|
|
52
|
+
"@radix-ui/react-navigation-menu": "^1.2.1",
|
|
51
53
|
"@radix-ui/react-popover": "^1.1.2",
|
|
52
54
|
"@radix-ui/react-radio-group": "^1.2.1",
|
|
53
55
|
"@radix-ui/react-select": "^2.1.2",
|
|
54
56
|
"@radix-ui/react-separator": "^1.1.0",
|
|
55
57
|
"@radix-ui/react-slot": "^1.1.0",
|
|
56
58
|
"@radix-ui/react-tooltip": "^1.1.3",
|
|
59
|
+
"sonner": "^1.7.0",
|
|
57
60
|
"@tanstack/react-table": "^8.20.5",
|
|
58
61
|
"class-variance-authority": "^0.7.0",
|
|
59
62
|
"clsx": "^2.1.1",
|
|
@@ -71,15 +74,15 @@
|
|
|
71
74
|
},
|
|
72
75
|
"devDependencies": {
|
|
73
76
|
"@eslint/js": "^9.11.1",
|
|
74
|
-
"@storybook/addon-docs": "^8.
|
|
75
|
-
"@storybook/addon-essentials": "^8.
|
|
76
|
-
"@storybook/addon-interactions": "^8.
|
|
77
|
-
"@storybook/addon-links": "^8.
|
|
78
|
-
"@storybook/addon-onboarding": "^8.
|
|
79
|
-
"@storybook/blocks": "^8.
|
|
80
|
-
"@storybook/react": "^8.
|
|
81
|
-
"@storybook/react-vite": "^8.
|
|
82
|
-
"@storybook/test": "^8.
|
|
77
|
+
"@storybook/addon-docs": "^8.4.2",
|
|
78
|
+
"@storybook/addon-essentials": "^8.4.2",
|
|
79
|
+
"@storybook/addon-interactions": "^8.4.2",
|
|
80
|
+
"@storybook/addon-links": "^8.4.2",
|
|
81
|
+
"@storybook/addon-onboarding": "^8.4.2",
|
|
82
|
+
"@storybook/blocks": "^8.4.2",
|
|
83
|
+
"@storybook/react": "^8.4.2",
|
|
84
|
+
"@storybook/react-vite": "^8.4.2",
|
|
85
|
+
"@storybook/test": "^8.4.2",
|
|
83
86
|
"@types/node": "^22.7.8",
|
|
84
87
|
"@types/react": "^18.3.10",
|
|
85
88
|
"@types/react-dom": "^18.3.0",
|
|
@@ -88,11 +91,11 @@
|
|
|
88
91
|
"eslint": "^9.11.1",
|
|
89
92
|
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
90
93
|
"eslint-plugin-react-refresh": "^0.4.12",
|
|
91
|
-
"eslint-plugin-storybook": "^0.
|
|
94
|
+
"eslint-plugin-storybook": "^0.11.0",
|
|
92
95
|
"globals": "^15.9.0",
|
|
93
96
|
"postcss": "^8.4.47",
|
|
94
97
|
"sass": "^1.80.6",
|
|
95
|
-
"storybook": "^8.
|
|
98
|
+
"storybook": "^8.4.2",
|
|
96
99
|
"typescript": "^5.5.3",
|
|
97
100
|
"typescript-eslint": "^8.7.0",
|
|
98
101
|
"vite": "^5.4.8",
|
package/tailwind.preset.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { Config } from 'tailwindcss';
|
|
2
2
|
|
|
3
|
+
const tokenRamps = (paletteName: string) => {
|
|
4
|
+
const ramps = {};
|
|
5
|
+
for (let i = 1; i <= 10; i++) {
|
|
6
|
+
ramps[i] = `oklch(var(--${paletteName}-${i}) / <alpha-value>)`
|
|
7
|
+
}
|
|
8
|
+
return ramps;
|
|
9
|
+
}
|
|
3
10
|
export default {
|
|
4
11
|
// Enable dark mode based on class.
|
|
5
12
|
darkMode: ['class'],
|
|
@@ -12,6 +19,10 @@ export default {
|
|
|
12
19
|
sm: 'calc(var(--radius) - 4px)',
|
|
13
20
|
},
|
|
14
21
|
colors: {
|
|
22
|
+
transparent: 'transparent',
|
|
23
|
+
current: 'currentColor',
|
|
24
|
+
white: '#ffffff',
|
|
25
|
+
black: '#000000',
|
|
15
26
|
background: 'oklch(var(--background) / <alpha-value>)',
|
|
16
27
|
foreground: 'oklch(var(--foreground) / <alpha-value>)',
|
|
17
28
|
card: {
|
|
@@ -25,10 +36,15 @@ export default {
|
|
|
25
36
|
primary: {
|
|
26
37
|
DEFAULT: 'oklch(var(--primary) / <alpha-value>)',
|
|
27
38
|
foreground: 'oklch(var(--primary-foreground) / <alpha-value>)',
|
|
39
|
+
...tokenRamps('primary')
|
|
28
40
|
},
|
|
29
41
|
secondary: {
|
|
30
42
|
DEFAULT: 'oklch(var(--secondary) / <alpha-value>)',
|
|
31
43
|
foreground: 'oklch(var(--secondary-foreground) / <alpha-value>)',
|
|
44
|
+
...tokenRamps('secondary')
|
|
45
|
+
},
|
|
46
|
+
neutral: {
|
|
47
|
+
...tokenRamps('neutral')
|
|
32
48
|
},
|
|
33
49
|
muted: {
|
|
34
50
|
DEFAULT: 'oklch(var(--muted) / <alpha-value>)',
|
|
@@ -41,10 +57,12 @@ export default {
|
|
|
41
57
|
destructive: {
|
|
42
58
|
DEFAULT: 'oklch(var(--destructive) / <alpha-value>)',
|
|
43
59
|
foreground: 'oklch(var(--destructive-foreground) / <alpha-value>)',
|
|
60
|
+
...tokenRamps('destructive')
|
|
44
61
|
},
|
|
45
62
|
success: {
|
|
46
63
|
DEFAULT: 'oklch(var(--success) / <alpha-value>)',
|
|
47
64
|
foreground: 'oklch(var(--success-foreground) / <alpha-value>)',
|
|
65
|
+
...tokenRamps('success')
|
|
48
66
|
},
|
|
49
67
|
border: 'oklch(var(--border) / <alpha-value>)',
|
|
50
68
|
input: 'oklch(var(--input) / <alpha-value>)',
|
|
@@ -69,6 +87,103 @@ export default {
|
|
|
69
87
|
ring: 'oklch(var(--sidebar-ring) / <alpha-value>)',
|
|
70
88
|
},
|
|
71
89
|
},
|
|
90
|
+
extend: {
|
|
91
|
+
keyframes: {
|
|
92
|
+
'accordion-down': {
|
|
93
|
+
from: {
|
|
94
|
+
height: '0'
|
|
95
|
+
},
|
|
96
|
+
to: {
|
|
97
|
+
height: 'var(--radix-accordion-content-height)'
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
'accordion-up': {
|
|
101
|
+
from: {
|
|
102
|
+
height: 'var(--radix-accordion-content-height)'
|
|
103
|
+
},
|
|
104
|
+
to: {
|
|
105
|
+
height: '0'
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
animation: {
|
|
110
|
+
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
111
|
+
'accordion-up': 'accordion-up 0.2s ease-out'
|
|
112
|
+
},
|
|
113
|
+
spacing: {
|
|
114
|
+
'v1': 'var(--vspace-1)',
|
|
115
|
+
'v2': 'var(--vspace-2)',
|
|
116
|
+
'v3': 'var(--vspace-3)',
|
|
117
|
+
'v4': 'var(--vspace-4)',
|
|
118
|
+
'v5': 'var(--vspace-5)',
|
|
119
|
+
},
|
|
120
|
+
fontSize: {
|
|
121
|
+
// text-caption
|
|
122
|
+
caption: [
|
|
123
|
+
"0.7708em",
|
|
124
|
+
{
|
|
125
|
+
lineHeight: "16px",
|
|
126
|
+
fontWeight: "400",
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
// text-body
|
|
130
|
+
body: [
|
|
131
|
+
"14px",
|
|
132
|
+
{
|
|
133
|
+
lineHeight: "20px",
|
|
134
|
+
fontWeight: "400",
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
// text-heading-6
|
|
138
|
+
"heading-6": [
|
|
139
|
+
"1em",
|
|
140
|
+
{
|
|
141
|
+
lineHeight: "var(--vspace-1)",
|
|
142
|
+
letterSpacing: "0em"
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
// text-heading-5
|
|
146
|
+
"heading-5": [
|
|
147
|
+
"1.1667em",
|
|
148
|
+
{
|
|
149
|
+
lineHeight: "var(--vspace-1)"
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
// text-heading-4
|
|
153
|
+
"heading-4": [
|
|
154
|
+
"1.3333em",
|
|
155
|
+
{
|
|
156
|
+
lineHeight: "var(--vspace-1)"
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
// text-heading-3
|
|
160
|
+
"heading-3": [
|
|
161
|
+
"1.75em",
|
|
162
|
+
{
|
|
163
|
+
lineHeight: "1em",
|
|
164
|
+
fontWeight: "500",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
|
|
168
|
+
// text-heading-2
|
|
169
|
+
"heading-2": [
|
|
170
|
+
"2.6458em",
|
|
171
|
+
{
|
|
172
|
+
lineHeight: "1em",
|
|
173
|
+
fontWeight: "300",
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
|
|
177
|
+
// text-heading-1
|
|
178
|
+
"heading-1": [
|
|
179
|
+
"5.2917em",
|
|
180
|
+
{
|
|
181
|
+
lineHeight: "calc(5.2917/var(--space) * var(--vspace-1))",
|
|
182
|
+
fontWeight: "400",
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
},
|
|
186
|
+
}
|
|
72
187
|
},
|
|
73
188
|
plugins: [require('tailwindcss-animate')], // Include any plugins you need
|
|
74
189
|
} satisfies Config;
|