ml-uikit 1.1.2 → 1.1.4
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/phone-countries.d.ts +9 -0
- package/dist/components/ui/phone-countries.d.ts.map +1 -0
- package/dist/components/ui/phone-input.d.ts +18 -0
- package/dist/components/ui/phone-input.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +6 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs31.js.map +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs32.js.map +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs33.js.map +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs34.js.map +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs35.js.map +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs36.js.map +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs37.js.map +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs38.js.map +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs39.js.map +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs41.js.map +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs42.js.map +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs43.js.map +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs44.js.map +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs45.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs47.js.map +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs48.js.map +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs50.js.map +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs52.js.map +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs55.js.map +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs56.js.map +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs57.js.map +1 -1
- package/dist/index.cjs58.js +2 -0
- package/dist/index.cjs58.js.map +1 -0
- package/dist/index.cjs59.js +2 -0
- package/dist/index.cjs59.js.map +1 -0
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +243 -239
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +1 -1
- package/dist/index.es11.js +1 -1
- package/dist/index.es12.js +2 -2
- package/dist/index.es13.js +1 -1
- package/dist/index.es14.js +1 -1
- package/dist/index.es15.js +1 -1
- package/dist/index.es16.js +1 -1
- package/dist/index.es17.js +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es25.js +3 -3
- package/dist/index.es26.js +2 -2
- package/dist/index.es27.js +1 -1
- package/dist/index.es28.js +1 -1
- package/dist/index.es29.js +2 -2
- package/dist/index.es3.js +1 -1
- package/dist/index.es30.js +1 -1
- package/dist/index.es31.js +149 -182
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es32.js +253 -29
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.js +183 -14
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +29 -93
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +10 -185
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +92 -96
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +171 -76
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +92 -16
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +92 -19
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es4.js +1 -1
- package/dist/index.es40.js +19 -28
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +16 -26
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +21 -109
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +33 -21
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +163 -80
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +17 -552
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +98 -14
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +543 -34
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +12 -19
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +45 -13
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.es50.js +20 -25
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +14 -205
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +24 -46
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +202 -14
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +44 -29
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +15 -35
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +32 -18
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +38 -6
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +23 -0
- package/dist/index.es58.js.map +1 -0
- package/dist/index.es59.js +9 -0
- package/dist/index.es59.js.map +1 -0
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es9.js +1 -1
- package/dist/style.css +127 -11
- package/package.json +1 -1
package/dist/index.es38.js
CHANGED
|
@@ -1,24 +1,100 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import * as t from "@radix-ui/react-navigation-menu";
|
|
3
|
+
import { cva as s } from "class-variance-authority";
|
|
4
|
+
import { ChevronDown as m } from "lucide-react";
|
|
5
|
+
import { cn as i } from "./index.es59.js";
|
|
6
|
+
const l = e.forwardRef(({ className: a, children: o, ...n }, r) => /* @__PURE__ */ e.createElement(
|
|
7
|
+
t.Root,
|
|
6
8
|
{
|
|
7
|
-
ref:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",
|
|
12
|
-
e
|
|
9
|
+
ref: r,
|
|
10
|
+
className: i(
|
|
11
|
+
"relative z-10 flex max-w-max flex-1 items-center justify-center",
|
|
12
|
+
a
|
|
13
13
|
),
|
|
14
14
|
...n
|
|
15
|
+
},
|
|
16
|
+
o,
|
|
17
|
+
/* @__PURE__ */ e.createElement(d, null)
|
|
18
|
+
));
|
|
19
|
+
l.displayName = t.Root.displayName;
|
|
20
|
+
const c = e.forwardRef(({ className: a, ...o }, n) => /* @__PURE__ */ e.createElement(
|
|
21
|
+
t.List,
|
|
22
|
+
{
|
|
23
|
+
ref: n,
|
|
24
|
+
className: i(
|
|
25
|
+
"group flex flex-1 list-none items-center justify-center space-x-1",
|
|
26
|
+
a
|
|
27
|
+
),
|
|
28
|
+
...o
|
|
29
|
+
}
|
|
30
|
+
));
|
|
31
|
+
c.displayName = t.List.displayName;
|
|
32
|
+
const h = t.Item, f = s(
|
|
33
|
+
"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-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
34
|
+
), u = e.forwardRef(({ className: a, children: o, ...n }, r) => /* @__PURE__ */ e.createElement(
|
|
35
|
+
t.Trigger,
|
|
36
|
+
{
|
|
37
|
+
ref: r,
|
|
38
|
+
className: i(f(), "group", a),
|
|
39
|
+
...n
|
|
40
|
+
},
|
|
41
|
+
o,
|
|
42
|
+
" ",
|
|
43
|
+
/* @__PURE__ */ e.createElement(
|
|
44
|
+
m,
|
|
45
|
+
{
|
|
46
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
47
|
+
"aria-hidden": "true"
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
));
|
|
51
|
+
u.displayName = t.Trigger.displayName;
|
|
52
|
+
const p = e.forwardRef(({ className: a, ...o }, n) => /* @__PURE__ */ e.createElement(
|
|
53
|
+
t.Content,
|
|
54
|
+
{
|
|
55
|
+
ref: n,
|
|
56
|
+
className: i(
|
|
57
|
+
"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 ",
|
|
58
|
+
a
|
|
59
|
+
),
|
|
60
|
+
...o
|
|
61
|
+
}
|
|
62
|
+
));
|
|
63
|
+
p.displayName = t.Content.displayName;
|
|
64
|
+
const x = t.Link, d = e.forwardRef(({ className: a, ...o }, n) => /* @__PURE__ */ e.createElement("div", { className: i("absolute left-0 top-full flex justify-center") }, /* @__PURE__ */ e.createElement(
|
|
65
|
+
t.Viewport,
|
|
66
|
+
{
|
|
67
|
+
className: i(
|
|
68
|
+
"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)]",
|
|
69
|
+
a
|
|
70
|
+
),
|
|
71
|
+
ref: n,
|
|
72
|
+
...o
|
|
15
73
|
}
|
|
16
74
|
)));
|
|
17
|
-
|
|
75
|
+
d.displayName = t.Viewport.displayName;
|
|
76
|
+
const g = e.forwardRef(({ className: a, ...o }, n) => /* @__PURE__ */ e.createElement(
|
|
77
|
+
t.Indicator,
|
|
78
|
+
{
|
|
79
|
+
ref: n,
|
|
80
|
+
className: i(
|
|
81
|
+
"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",
|
|
82
|
+
a
|
|
83
|
+
),
|
|
84
|
+
...o
|
|
85
|
+
},
|
|
86
|
+
/* @__PURE__ */ e.createElement("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
87
|
+
));
|
|
88
|
+
g.displayName = t.Indicator.displayName;
|
|
18
89
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
90
|
+
l as NavigationMenu,
|
|
91
|
+
p as NavigationMenuContent,
|
|
92
|
+
g as NavigationMenuIndicator,
|
|
93
|
+
h as NavigationMenuItem,
|
|
94
|
+
x as NavigationMenuLink,
|
|
95
|
+
c as NavigationMenuList,
|
|
96
|
+
u as NavigationMenuTrigger,
|
|
97
|
+
d as NavigationMenuViewport,
|
|
98
|
+
f as navigationMenuTriggerStyle
|
|
23
99
|
};
|
|
24
100
|
//# sourceMappingURL=index.es38.js.map
|
package/dist/index.es38.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es38.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es38.js","sources":["../src/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 { ChevronDown } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\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\",\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-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent\"\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 <ChevronDown\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\nexport {\n navigationMenuTriggerStyle,\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n}\n"],"names":["NavigationMenu","React","className","children","props","ref","NavigationMenuPrimitive","cn","NavigationMenuViewport","NavigationMenuList","NavigationMenuItem","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","ChevronDown","NavigationMenuContent","NavigationMenuLink","NavigationMenuIndicator"],"mappings":";;;;;AAOA,MAAMA,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,MACpC,gBAAAJ,EAAA;AAAA,EAACK,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AAAA,EAEHD;AAAA,kCACAK,GAAA,IAAuB;AAC1B,CACD;AACDR,EAAe,cAAcM,EAAwB,KAAK;AAE1D,MAAMG,IAAqBR,EAAM,WAG/B,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1B,gBAAAJ,EAAA;AAAA,EAACK,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AACN,CACD;AACDK,EAAmB,cAAcH,EAAwB,KAAK;AAE9D,MAAMI,IAAqBJ,EAAwB,MAE7CK,IAA6BC;AAAA,EACjC;AACF,GAEMC,IAAwBZ,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,MACpC,gBAAAJ,EAAA;AAAA,EAACK,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAGI,KAA8B,SAAST,CAAS;AAAA,IAC7D,GAAGE;AAAA,EAAA;AAAA,EAEHD;AAAA,EAAU;AAAA,EACX,gBAAAF,EAAA;AAAA,IAACa;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAY;AAAA,IAAA;AAAA,EAAA;AAEhB,CACD;AACDD,EAAsB,cAAcP,EAAwB,QAAQ;AAEpE,MAAMS,IAAwBd,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1B,gBAAAJ,EAAA;AAAA,EAACK,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AACN,CACD;AACDW,EAAsB,cAAcT,EAAwB,QAAQ;AAEpE,MAAMU,IAAqBV,EAAwB,MAE7CE,IAAyBP,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1B,gBAAAJ,EAAA,cAAC,OAAA,EAAI,WAAWM,EAAG,8CAA8C,EAAA,GAC/D,gBAAAN,EAAA;AAAA,EAACK,EAAwB;AAAA,EAAxB;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAEF,KAAAG;AAAA,IACC,GAAGD;AAAA,EAAA;AACN,CACF,CACD;AACDI,EAAuB,cACrBF,EAAwB,SAAS;AAEnC,MAAMW,IAA0BhB,EAAM,WAGpC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1B,gBAAAJ,EAAA;AAAA,EAACK,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AAAA,EAEJ,gBAAAH,EAAA,cAAC,OAAA,EAAI,WAAU,yEAAA,CAAyE;AAC1F,CACD;AACDgB,EAAwB,cACtBX,EAAwB,UAAU;"}
|
package/dist/index.es39.js
CHANGED
|
@@ -1,26 +1,99 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { ChevronLeft as s, ChevronRight as r, MoreHorizontal as m } from "lucide-react";
|
|
3
|
+
import { cn as n } from "./index.es59.js";
|
|
4
|
+
import { buttonVariants as c } from "./index.es10.js";
|
|
5
|
+
const p = ({ className: t, ...a }) => /* @__PURE__ */ e.createElement(
|
|
6
|
+
"nav",
|
|
6
7
|
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
role: "navigation",
|
|
9
|
+
"aria-label": "pagination",
|
|
10
|
+
className: n("mx-auto flex w-full justify-center", t),
|
|
11
|
+
...a
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
p.displayName = "Pagination";
|
|
15
|
+
const g = e.forwardRef(({ className: t, ...a }, i) => /* @__PURE__ */ e.createElement(
|
|
16
|
+
"ul",
|
|
17
|
+
{
|
|
18
|
+
ref: i,
|
|
19
|
+
className: n("flex flex-row items-center gap-1", t),
|
|
20
|
+
...a
|
|
21
|
+
}
|
|
22
|
+
));
|
|
23
|
+
g.displayName = "PaginationContent";
|
|
24
|
+
const N = e.forwardRef(({ className: t, ...a }, i) => /* @__PURE__ */ e.createElement("li", { ref: i, className: n("", t), ...a }));
|
|
25
|
+
N.displayName = "PaginationItem";
|
|
26
|
+
const l = ({
|
|
27
|
+
className: t,
|
|
28
|
+
isActive: a,
|
|
29
|
+
size: i = "icon",
|
|
30
|
+
...o
|
|
31
|
+
}) => /* @__PURE__ */ e.createElement(
|
|
32
|
+
"a",
|
|
33
|
+
{
|
|
34
|
+
"aria-current": a ? "page" : void 0,
|
|
35
|
+
className: n(
|
|
36
|
+
c({
|
|
37
|
+
variant: a ? "outline" : "ghost",
|
|
38
|
+
size: i
|
|
39
|
+
}),
|
|
40
|
+
t
|
|
11
41
|
),
|
|
12
42
|
...o
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
l.displayName = "PaginationLink";
|
|
46
|
+
const f = ({
|
|
47
|
+
className: t,
|
|
48
|
+
...a
|
|
49
|
+
}) => /* @__PURE__ */ e.createElement(
|
|
50
|
+
l,
|
|
51
|
+
{
|
|
52
|
+
"aria-label": "Go to previous page",
|
|
53
|
+
size: "default",
|
|
54
|
+
className: n("gap-1 pl-2.5", t),
|
|
55
|
+
...a
|
|
13
56
|
},
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
)
|
|
22
|
-
|
|
57
|
+
/* @__PURE__ */ e.createElement(s, { className: "h-4 w-4" }),
|
|
58
|
+
/* @__PURE__ */ e.createElement("span", null, "Previous")
|
|
59
|
+
);
|
|
60
|
+
f.displayName = "PaginationPrevious";
|
|
61
|
+
const u = ({
|
|
62
|
+
className: t,
|
|
63
|
+
...a
|
|
64
|
+
}) => /* @__PURE__ */ e.createElement(
|
|
65
|
+
l,
|
|
66
|
+
{
|
|
67
|
+
"aria-label": "Go to next page",
|
|
68
|
+
size: "default",
|
|
69
|
+
className: n("gap-1 pr-2.5", t),
|
|
70
|
+
...a
|
|
71
|
+
},
|
|
72
|
+
/* @__PURE__ */ e.createElement("span", null, "Next"),
|
|
73
|
+
/* @__PURE__ */ e.createElement(r, { className: "h-4 w-4" })
|
|
74
|
+
);
|
|
75
|
+
u.displayName = "PaginationNext";
|
|
76
|
+
const P = ({
|
|
77
|
+
className: t,
|
|
78
|
+
...a
|
|
79
|
+
}) => /* @__PURE__ */ e.createElement(
|
|
80
|
+
"span",
|
|
81
|
+
{
|
|
82
|
+
"aria-hidden": !0,
|
|
83
|
+
className: n("flex h-9 w-9 items-center justify-center", t),
|
|
84
|
+
...a
|
|
85
|
+
},
|
|
86
|
+
/* @__PURE__ */ e.createElement(m, { className: "h-4 w-4" }),
|
|
87
|
+
/* @__PURE__ */ e.createElement("span", { className: "sr-only" }, "More pages")
|
|
88
|
+
);
|
|
89
|
+
P.displayName = "PaginationEllipsis";
|
|
23
90
|
export {
|
|
24
|
-
|
|
91
|
+
p as Pagination,
|
|
92
|
+
g as PaginationContent,
|
|
93
|
+
P as PaginationEllipsis,
|
|
94
|
+
N as PaginationItem,
|
|
95
|
+
l as PaginationLink,
|
|
96
|
+
u as PaginationNext,
|
|
97
|
+
f as PaginationPrevious
|
|
25
98
|
};
|
|
26
99
|
//# sourceMappingURL=index.es39.js.map
|
package/dist/index.es39.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es39.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es39.js","sources":["../src/components/ui/pagination.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { ButtonProps, buttonVariants } from \"@/components/ui/button\"\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<\"nav\">) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n />\n)\nPagination.displayName = \"Pagination\"\n\nconst PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<\"ul\">\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn(\"flex flex-row items-center gap-1\", className)}\n {...props}\n />\n))\nPaginationContent.displayName = \"PaginationContent\"\n\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<\"li\">\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn(\"\", className)} {...props} />\n))\nPaginationItem.displayName = \"PaginationItem\"\n\ntype PaginationLinkProps = {\n isActive?: boolean\n} & Pick<ButtonProps, \"size\"> &\n React.ComponentProps<\"a\">\n\nconst PaginationLink = ({\n className,\n isActive,\n size = \"icon\",\n ...props\n}: PaginationLinkProps) => (\n <a\n aria-current={isActive ? \"page\" : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? \"outline\" : \"ghost\",\n size,\n }),\n className\n )}\n {...props}\n />\n)\nPaginationLink.displayName = \"PaginationLink\"\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n className={cn(\"gap-1 pl-2.5\", className)}\n {...props}\n >\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n)\nPaginationPrevious.displayName = \"PaginationPrevious\"\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n className={cn(\"gap-1 pr-2.5\", className)}\n {...props}\n >\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n)\nPaginationNext.displayName = \"PaginationNext\"\n\nconst PaginationEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<\"span\">) => (\n <span\n aria-hidden\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n)\nPaginationEllipsis.displayName = \"PaginationEllipsis\"\n\nexport {\n Pagination,\n PaginationContent,\n PaginationLink,\n PaginationItem,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n}\n"],"names":["Pagination","className","props","React","cn","PaginationContent","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":";;;;AAMA,MAAMA,IAAa,CAAC,EAAE,WAAAC,GAAW,GAAGC,QAClC,gBAAAC,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,cAAW;AAAA,IACX,WAAWC,EAAG,sCAAsCH,CAAS;AAAA,IAC5D,GAAGC;AAAA,EAAA;AACN;AAEFF,EAAW,cAAc;AAEzB,MAAMK,IAAoBF,EAAM,WAG9B,CAAC,EAAE,WAAAF,GAAW,GAAGC,EAAA,GAASI,MAC1B,gBAAAH,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAG;AAAA,IACA,WAAWF,EAAG,oCAAoCH,CAAS;AAAA,IAC1D,GAAGC;AAAA,EAAA;AACN,CACD;AACDG,EAAkB,cAAc;AAEhC,MAAME,IAAiBJ,EAAM,WAG3B,CAAC,EAAE,WAAAF,GAAW,GAAGC,KAASI,sCACzB,MAAA,EAAG,KAAAA,GAAU,WAAWF,EAAG,IAAIH,CAAS,GAAI,GAAGC,GAAO,CACxD;AACDK,EAAe,cAAc;AAO7B,MAAMC,IAAiB,CAAC;AAAA,EACtB,WAAAP;AAAA,EACA,UAAAQ;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGR;AACL,MACE,gBAAAC,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,gBAAcM,IAAW,SAAS;AAAA,IAClC,WAAWL;AAAA,MACTO,EAAe;AAAA,QACb,SAASF,IAAW,YAAY;AAAA,QAChC,MAAAC;AAAA,MAAA,CACD;AAAA,MACDT;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN;AAEFM,EAAe,cAAc;AAE7B,MAAMI,IAAqB,CAAC;AAAA,EAC1B,WAAAX;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC,EAAA;AAAA,EAACK;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,MAAK;AAAA,IACL,WAAWJ,EAAG,gBAAgBH,CAAS;AAAA,IACtC,GAAGC;AAAA,EAAA;AAAA,EAEJ,gBAAAC,EAAA,cAACU,GAAA,EAAY,WAAU,UAAA,CAAU;AAAA,EACjC,gBAAAV,EAAA,cAAC,cAAK,UAAQ;AAChB;AAEFS,EAAmB,cAAc;AAEjC,MAAME,IAAiB,CAAC;AAAA,EACtB,WAAAb;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC,EAAA;AAAA,EAACK;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,MAAK;AAAA,IACL,WAAWJ,EAAG,gBAAgBH,CAAS;AAAA,IACtC,GAAGC;AAAA,EAAA;AAAA,EAEJ,gBAAAC,EAAA,cAAC,cAAK,MAAI;AAAA,EACV,gBAAAA,EAAA,cAACY,GAAA,EAAa,WAAU,UAAA,CAAU;AACpC;AAEFD,EAAe,cAAc;AAE7B,MAAME,IAAqB,CAAC;AAAA,EAC1B,WAAAf;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,eAAW;AAAA,IACX,WAAWC,EAAG,4CAA4CH,CAAS;AAAA,IAClE,GAAGC;AAAA,EAAA;AAAA,EAEJ,gBAAAC,EAAA,cAACc,GAAA,EAAe,WAAU,UAAA,CAAU;AAAA,EACpC,gBAAAd,EAAA,cAAC,QAAA,EAAK,WAAU,UAAA,GAAU,YAAU;AACtC;AAEFa,EAAmB,cAAc;"}
|
package/dist/index.es4.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { Info as p, AlertCircle as v, CircleX as f, CheckCircle2 as w, SquareDashed as N } from "lucide-react";
|
|
3
3
|
import { cva as o } from "class-variance-authority";
|
|
4
|
-
import { cn as l } from "./index.
|
|
4
|
+
import { cn as l } from "./index.es59.js";
|
|
5
5
|
const b = o(
|
|
6
6
|
"flex w-full flex-col items-end gap-3 rounded-[8px] border bg-white px-3 py-3 text-[14px] leading-[20px] shadow-[0px_2px_4px_-2px_rgba(19,25,39,0.12),0px_4px_4px_-2px_rgba(19,25,39,0.08)]",
|
|
7
7
|
{
|
package/dist/index.es40.js
CHANGED
|
@@ -1,33 +1,24 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import { cn as
|
|
4
|
-
const s =
|
|
5
|
-
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import * as o from "@radix-ui/react-popover";
|
|
3
|
+
import { cn as d } from "./index.es59.js";
|
|
4
|
+
const p = o.Root, l = o.Trigger, c = o.Anchor, s = t.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...n }, i) => /* @__PURE__ */ t.createElement(o.Portal, null, /* @__PURE__ */ t.createElement(
|
|
5
|
+
o.Content,
|
|
6
6
|
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const d = e.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ e.createElement(
|
|
14
|
-
r.Item,
|
|
15
|
-
{
|
|
16
|
-
ref: o,
|
|
17
|
-
className: i(
|
|
18
|
-
"relative flex h-4 w-4 items-center justify-center rounded-full border border-[#e6e6e6] bg-white text-[#26453f] transition-colors",
|
|
19
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2",
|
|
20
|
-
"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:border-[#e6e6e6] disabled:text-[#bdbdbd]",
|
|
21
|
-
"data-[state=checked]:border-[#26453f]",
|
|
22
|
-
t
|
|
7
|
+
ref: i,
|
|
8
|
+
align: a,
|
|
9
|
+
sideOffset: r,
|
|
10
|
+
className: d(
|
|
11
|
+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",
|
|
12
|
+
e
|
|
23
13
|
),
|
|
24
|
-
...
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
d.displayName = r.Item.displayName;
|
|
14
|
+
...n
|
|
15
|
+
}
|
|
16
|
+
)));
|
|
17
|
+
s.displayName = o.Content.displayName;
|
|
29
18
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
19
|
+
p as Popover,
|
|
20
|
+
c as PopoverAnchor,
|
|
21
|
+
s as PopoverContent,
|
|
22
|
+
l as PopoverTrigger
|
|
32
23
|
};
|
|
33
24
|
//# sourceMappingURL=index.es40.js.map
|
package/dist/index.es40.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es40.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es40.js","sources":["../src/components/ui/popover.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Popover = PopoverPrimitive.Root\n\nconst PopoverTrigger = PopoverPrimitive.Trigger\n\nconst PopoverAnchor = PopoverPrimitive.Anchor\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]\",\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n))\nPopoverContent.displayName = PopoverPrimitive.Content.displayName\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }\n"],"names":["Popover","PopoverPrimitive","PopoverTrigger","PopoverAnchor","PopoverContent","React","className","align","sideOffset","props","ref","cn"],"mappings":";;;AAKA,MAAMA,IAAUC,EAAiB,MAE3BC,IAAiBD,EAAiB,SAElCE,IAAgBF,EAAiB,QAEjCG,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,OAAAC,IAAQ,UAAU,YAAAC,IAAa,GAAG,GAAGC,KAASC,MAC5D,gBAAAL,EAAA,cAACJ,EAAiB,QAAjB,MACC,gBAAAI,EAAA;AAAA,EAACJ,EAAiB;AAAA,EAAjB;AAAA,IACC,KAAAS;AAAA,IACA,OAAAH;AAAA,IACA,YAAAC;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,EAAA;AACN,CACF,CACD;AACDL,EAAe,cAAcH,EAAiB,QAAQ;"}
|
package/dist/index.es41.js
CHANGED
|
@@ -1,36 +1,26 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import { cn as
|
|
4
|
-
const m =
|
|
5
|
-
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import * as e from "@radix-ui/react-progress";
|
|
3
|
+
import { cn as s } from "./index.es59.js";
|
|
4
|
+
const m = r.forwardRef(({ className: a, value: l, ...o }, t) => /* @__PURE__ */ r.createElement(
|
|
5
|
+
e.Root,
|
|
6
6
|
{
|
|
7
7
|
ref: t,
|
|
8
|
-
className:
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
/* @__PURE__ */ e.createElement(r.Viewport, { className: "h-full w-full rounded-[inherit]" }, l),
|
|
12
|
-
/* @__PURE__ */ e.createElement(n, null),
|
|
13
|
-
/* @__PURE__ */ e.createElement(r.Corner, null)
|
|
14
|
-
));
|
|
15
|
-
m.displayName = r.Root.displayName;
|
|
16
|
-
const n = e.forwardRef(({ className: a, orientation: l = "vertical", ...o }, t) => /* @__PURE__ */ e.createElement(
|
|
17
|
-
r.ScrollAreaScrollbar,
|
|
18
|
-
{
|
|
19
|
-
ref: t,
|
|
20
|
-
orientation: l,
|
|
21
|
-
className: c(
|
|
22
|
-
"flex touch-none select-none transition-colors",
|
|
23
|
-
l === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
24
|
-
l === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
8
|
+
className: s(
|
|
9
|
+
"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
25
10
|
a
|
|
26
11
|
),
|
|
27
12
|
...o
|
|
28
13
|
},
|
|
29
|
-
/* @__PURE__ */
|
|
14
|
+
/* @__PURE__ */ r.createElement(
|
|
15
|
+
e.Indicator,
|
|
16
|
+
{
|
|
17
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
18
|
+
style: { transform: `translateX(-${100 - (l || 0)}%)` }
|
|
19
|
+
}
|
|
20
|
+
)
|
|
30
21
|
));
|
|
31
|
-
|
|
22
|
+
m.displayName = e.Root.displayName;
|
|
32
23
|
export {
|
|
33
|
-
m as
|
|
34
|
-
n as ScrollBar
|
|
24
|
+
m as Progress
|
|
35
25
|
};
|
|
36
26
|
//# sourceMappingURL=index.es41.js.map
|
package/dist/index.es41.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es41.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es41.js","sources":["../src/components/ui/progress.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Progress = React.forwardRef<\n React.ElementRef<typeof ProgressPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>\n>(({ className, value, ...props }, ref) => (\n <ProgressPrimitive.Root\n ref={ref}\n className={cn(\n \"relative h-2 w-full overflow-hidden rounded-full bg-primary/20\",\n className\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n className=\"h-full w-full flex-1 bg-primary transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n))\nProgress.displayName = ProgressPrimitive.Root.displayName\n\nexport { Progress }\n"],"names":["Progress","React","className","value","props","ref","ProgressPrimitive","cn"],"mappings":";;;AAOA,MAAMA,IAAWC,EAAM,WAGrB,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,GAAGC,EAAA,GAASC,MACjC,gBAAAJ,EAAA;AAAA,EAACK,EAAkB;AAAA,EAAlB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AAAA,EAEJ,gBAAAH,EAAA;AAAA,IAACK,EAAkB;AAAA,IAAlB;AAAA,MACC,WAAU;AAAA,MACV,OAAO,EAAE,WAAW,eAAe,OAAOH,KAAS,EAAE,KAAA;AAAA,IAAK;AAAA,EAAA;AAE9D,CACD;AACDH,EAAS,cAAcM,EAAkB,KAAK;"}
|
package/dist/index.es42.js
CHANGED
|
@@ -1,121 +1,33 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
t.Trigger,
|
|
2
|
+
import * as r from "@radix-ui/react-radio-group";
|
|
3
|
+
import { cn as i } from "./index.es59.js";
|
|
4
|
+
const s = e.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ e.createElement(
|
|
5
|
+
r.Root,
|
|
7
6
|
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"data-[placeholder]:text-[#b3b3b3] [&>span]:line-clamp-1",
|
|
12
|
-
"focus-visible:outline-none focus-visible:border-[#1D1C20] data-[state=open]:border-[#1D1C20]",
|
|
13
|
-
"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:text-[#9ca3af] disabled:data-[placeholder]:text-[#b3b3b3]",
|
|
14
|
-
"aria-invalid:border-[#ff3b30] aria-invalid:focus-visible:border-[#ff3b30]",
|
|
15
|
-
l
|
|
16
|
-
),
|
|
17
|
-
...a
|
|
18
|
-
},
|
|
19
|
-
r,
|
|
20
|
-
/* @__PURE__ */ e.createElement(t.Icon, { asChild: !0 }, /* @__PURE__ */ e.createElement(n, { className: "h-4 w-4 text-[#7f7d83]" }))
|
|
21
|
-
));
|
|
22
|
-
f.displayName = t.Trigger.displayName;
|
|
23
|
-
const d = e.forwardRef(({ className: l, ...r }, a) => /* @__PURE__ */ e.createElement(
|
|
24
|
-
t.ScrollUpButton,
|
|
25
|
-
{
|
|
26
|
-
ref: a,
|
|
27
|
-
className: o(
|
|
28
|
-
"flex cursor-default items-center justify-center py-1 text-[#7f7d83]",
|
|
29
|
-
l
|
|
30
|
-
),
|
|
31
|
-
...r
|
|
32
|
-
},
|
|
33
|
-
/* @__PURE__ */ e.createElement(p, { className: "h-4 w-4" })
|
|
34
|
-
));
|
|
35
|
-
d.displayName = t.ScrollUpButton.displayName;
|
|
36
|
-
const i = e.forwardRef(({ className: l, ...r }, a) => /* @__PURE__ */ e.createElement(
|
|
37
|
-
t.ScrollDownButton,
|
|
38
|
-
{
|
|
39
|
-
ref: a,
|
|
40
|
-
className: o(
|
|
41
|
-
"flex cursor-default items-center justify-center py-1 text-[#7f7d83]",
|
|
42
|
-
l
|
|
43
|
-
),
|
|
44
|
-
...r
|
|
45
|
-
},
|
|
46
|
-
/* @__PURE__ */ e.createElement(n, { className: "h-4 w-4" })
|
|
47
|
-
));
|
|
48
|
-
i.displayName = t.ScrollDownButton.displayName;
|
|
49
|
-
const u = e.forwardRef(({ className: l, children: r, position: a = "popper", ...s }, c) => /* @__PURE__ */ e.createElement(t.Portal, null, /* @__PURE__ */ e.createElement(
|
|
50
|
-
t.Content,
|
|
51
|
-
{
|
|
52
|
-
ref: c,
|
|
53
|
-
className: o(
|
|
54
|
-
"relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-[8px] border border-[#e6e6e6] bg-white text-[#111111] shadow-sm",
|
|
55
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",
|
|
56
|
-
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
57
|
-
l
|
|
58
|
-
),
|
|
59
|
-
position: a,
|
|
60
|
-
...s
|
|
61
|
-
},
|
|
62
|
-
/* @__PURE__ */ e.createElement(d, null),
|
|
63
|
-
/* @__PURE__ */ e.createElement(
|
|
64
|
-
t.Viewport,
|
|
65
|
-
{
|
|
66
|
-
className: o(
|
|
67
|
-
"p-1",
|
|
68
|
-
a === "popper" && "w-full min-w-[var(--radix-select-trigger-width)]"
|
|
69
|
-
)
|
|
70
|
-
},
|
|
71
|
-
r
|
|
72
|
-
),
|
|
73
|
-
/* @__PURE__ */ e.createElement(i, null)
|
|
74
|
-
)));
|
|
75
|
-
u.displayName = t.Content.displayName;
|
|
76
|
-
const b = e.forwardRef(({ className: l, ...r }, a) => /* @__PURE__ */ e.createElement(
|
|
77
|
-
t.Label,
|
|
78
|
-
{
|
|
79
|
-
ref: a,
|
|
80
|
-
className: o("px-2 py-1 text-[12px] font-medium text-[#7f7d83]", l),
|
|
81
|
-
...r
|
|
7
|
+
className: i("grid gap-2", t),
|
|
8
|
+
...a,
|
|
9
|
+
ref: o
|
|
82
10
|
}
|
|
83
11
|
));
|
|
84
|
-
|
|
85
|
-
const
|
|
86
|
-
|
|
12
|
+
s.displayName = r.Root.displayName;
|
|
13
|
+
const d = e.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ e.createElement(
|
|
14
|
+
r.Item,
|
|
87
15
|
{
|
|
88
|
-
ref:
|
|
89
|
-
className:
|
|
90
|
-
"relative flex
|
|
91
|
-
"focus:
|
|
92
|
-
|
|
16
|
+
ref: o,
|
|
17
|
+
className: i(
|
|
18
|
+
"relative flex h-4 w-4 items-center justify-center rounded-full border border-[#e6e6e6] bg-white text-[#26453f] transition-colors",
|
|
19
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2",
|
|
20
|
+
"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:border-[#e6e6e6] disabled:text-[#bdbdbd]",
|
|
21
|
+
"data-[state=checked]:border-[#26453f]",
|
|
22
|
+
t
|
|
93
23
|
),
|
|
94
24
|
...a
|
|
95
25
|
},
|
|
96
|
-
/* @__PURE__ */ e.createElement(
|
|
97
|
-
/* @__PURE__ */ e.createElement(t.ItemText, null, r)
|
|
98
|
-
));
|
|
99
|
-
x.displayName = t.Item.displayName;
|
|
100
|
-
const w = e.forwardRef(({ className: l, ...r }, a) => /* @__PURE__ */ e.createElement(
|
|
101
|
-
t.Separator,
|
|
102
|
-
{
|
|
103
|
-
ref: a,
|
|
104
|
-
className: o("-mx-1 my-1 h-px bg-[#e6e6e6]", l),
|
|
105
|
-
...r
|
|
106
|
-
}
|
|
26
|
+
/* @__PURE__ */ e.createElement(r.Indicator, { className: "flex items-center justify-center" }, /* @__PURE__ */ e.createElement("span", { className: "h-2.5 w-2.5 rounded-full bg-current" }))
|
|
107
27
|
));
|
|
108
|
-
|
|
28
|
+
d.displayName = r.Item.displayName;
|
|
109
29
|
export {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
g as SelectGroup,
|
|
113
|
-
x as SelectItem,
|
|
114
|
-
b as SelectLabel,
|
|
115
|
-
i as SelectScrollDownButton,
|
|
116
|
-
d as SelectScrollUpButton,
|
|
117
|
-
w as SelectSeparator,
|
|
118
|
-
f as SelectTrigger,
|
|
119
|
-
S as SelectValue
|
|
30
|
+
s as RadioGroup,
|
|
31
|
+
d as RadioGroupItem
|
|
120
32
|
};
|
|
121
33
|
//# sourceMappingURL=index.es42.js.map
|
package/dist/index.es42.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es42.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es42.js","sources":["../src/components/ui/radio-group.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn(\"grid gap-2\", className)}\n {...props}\n ref={ref}\n />\n )\n})\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex h-4 w-4 items-center justify-center rounded-full border border-[#e6e6e6] bg-white text-[#26453f] transition-colors\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2\",\n \"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:border-[#e6e6e6] disabled:text-[#bdbdbd]\",\n \"data-[state=checked]:border-[#26453f]\",\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <span className=\"h-2.5 w-2.5 rounded-full bg-current\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n )\n})\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\n\nexport { RadioGroup, RadioGroupItem }\n"],"names":["RadioGroup","React","className","props","ref","RadioGroupPrimitive","cn","RadioGroupItem"],"mappings":";;;AAKA,MAAMA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAExB,gBAAAH,EAAA;AAAA,EAACI,EAAoB;AAAA,EAApB;AAAA,IACC,WAAWC,EAAG,cAAcJ,CAAS;AAAA,IACpC,GAAGC;AAAA,IACJ,KAAAC;AAAA,EAAA;AAAA,CAGL;AACDJ,EAAW,cAAcK,EAAoB,KAAK;AAElD,MAAME,IAAiBN,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAExB,gBAAAH,EAAA;AAAA,EAACI,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAJ;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AAAA,EAEJ,gBAAAF,EAAA,cAACI,EAAoB,WAApB,EAA8B,WAAU,sCACvC,gBAAAJ,EAAA,cAAC,QAAA,EAAK,WAAU,sCAAA,CAAsC,CACxD;AAAA,CAGL;AACDM,EAAe,cAAcF,EAAoB,KAAK;"}
|