@incognia/cosmik 0.36.1 → 0.37.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DropdownMenu/index.d.ts.map +1 -1
- package/dist/Filter/index.d.ts.map +1 -1
- package/dist/cosmik.css +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.cjs11.js.map +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs12.js.map +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs14.js.map +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs15.js.map +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs19.js.map +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs21.js.map +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.cjs25.js.map +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs27.js.map +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +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.cjs34.js +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.cjs4.js.map +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 +9 -1
- package/dist/index.cjs45.js.map +1 -1
- package/dist/index.cjs46.js +19 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs51.js +1 -9
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +1 -19
- 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 +1 -1
- package/dist/index.cjs58.js.map +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs6.js.map +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +55 -69
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +2 -2
- package/dist/index.es11.js +3 -3
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es12.js +51 -52
- package/dist/index.es12.js.map +1 -1
- package/dist/index.es13.js +2 -2
- package/dist/index.es14.js +23 -19
- package/dist/index.es14.js.map +1 -1
- package/dist/index.es15.js +18 -15
- package/dist/index.es15.js.map +1 -1
- package/dist/index.es16.js +3 -3
- package/dist/index.es17.js +2 -2
- package/dist/index.es18.js +2 -2
- package/dist/index.es19.js +13 -13
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es20.js +3 -3
- package/dist/index.es21.js +3 -3
- package/dist/index.es21.js.map +1 -1
- package/dist/index.es22.js +2 -2
- package/dist/index.es23.js +2 -2
- package/dist/index.es24.js +2 -2
- package/dist/index.es25.js +9 -9
- package/dist/index.es25.js.map +1 -1
- package/dist/index.es26.js +2 -2
- package/dist/index.es27.js +9 -9
- package/dist/index.es27.js.map +1 -1
- package/dist/index.es28.js +2 -2
- package/dist/index.es29.js +2 -2
- package/dist/index.es30.js +2 -2
- package/dist/index.es31.js +2 -2
- package/dist/index.es32.js +20 -20
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.js +2 -2
- package/dist/index.es34.js +2 -2
- package/dist/index.es35.js +29 -98
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +39 -41
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +31 -93
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +59 -34
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +261 -37
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es4.js +2 -3
- package/dist/index.es4.js.map +1 -1
- package/dist/index.es40.js +6 -33
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +11 -63
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +113 -257
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +14 -6
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +2 -13
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +28 -117
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +596 -11
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es48.js +3 -3
- package/dist/index.es49.js +2 -2
- package/dist/index.es5.js +2 -2
- package/dist/index.es50.js +2 -2
- package/dist/index.es51.js +2 -30
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +2 -599
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +151 -2
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +15 -150
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +339 -13
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +40 -337
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +2 -45
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +4 -2
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es6.js +3 -3
- package/dist/index.es6.js.map +1 -1
- package/dist/index.es7.js +2 -2
- package/dist/index.es8.js +3 -3
- package/dist/index.es8.js.map +1 -1
- package/dist/index.es9.js +2 -2
- package/dist/tailwind-theme-config.d.ts +0 -1
- package/dist/tailwind-theme-config.d.ts.map +1 -1
- package/package.json +1 -2
- package/dist/Toast/Toast.d.ts +0 -20
- package/dist/Toast/Toast.d.ts.map +0 -1
- package/dist/Toast/Toaster.d.ts +0 -2
- package/dist/Toast/Toaster.d.ts.map +0 -1
- package/dist/Toast/hooks.d.ts +0 -46
- package/dist/Toast/hooks.d.ts.map +0 -1
- package/dist/Toast/index.d.ts +0 -5
- package/dist/Toast/index.d.ts.map +0 -1
- package/dist/index.cjs59.js +0 -2
- package/dist/index.cjs59.js.map +0 -1
- package/dist/index.cjs60.js +0 -2
- package/dist/index.cjs60.js.map +0 -1
- package/dist/index.cjs61.js +0 -2
- package/dist/index.cjs61.js.map +0 -1
- package/dist/index.es59.js +0 -5
- package/dist/index.es59.js.map +0 -1
- package/dist/index.es60.js +0 -5
- package/dist/index.es60.js.map +0 -1
- package/dist/index.es61.js +0 -7
- package/dist/index.es61.js.map +0 -1
package/dist/index.es30.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as t } from "./index.
|
|
1
|
+
import { j as t } from "./index.es40.js";
|
|
2
2
|
import * as e from "@radix-ui/react-switch";
|
|
3
3
|
import * as c from "react";
|
|
4
|
-
import { cn as a } from "./index.
|
|
4
|
+
import { cn as a } from "./index.es41.js";
|
|
5
5
|
const d = c.forwardRef(({ className: r, ...o }, s) => /* @__PURE__ */ t.jsx(
|
|
6
6
|
e.Root,
|
|
7
7
|
{
|
package/dist/index.es31.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as s } from "./index.
|
|
1
|
+
import { j as s } from "./index.es40.js";
|
|
2
2
|
import { LucideChevronUp as n, LucideChevronDown as c } from "lucide-react";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import { cn as t } from "./index.
|
|
4
|
+
import { cn as t } from "./index.es41.js";
|
|
5
5
|
const p = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
6
6
|
"table",
|
|
7
7
|
{
|
package/dist/index.es32.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as s } from "./index.es40.js";
|
|
2
2
|
import * as t from "@radix-ui/react-tabs";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import { cn as
|
|
5
|
-
const m = t.Root,
|
|
4
|
+
import { cn as o } from "./index.es41.js";
|
|
5
|
+
const m = t.Root, n = r.forwardRef(({ className: e, ...a }, i) => /* @__PURE__ */ s.jsx(
|
|
6
6
|
t.List,
|
|
7
7
|
{
|
|
8
|
-
ref:
|
|
9
|
-
className:
|
|
10
|
-
"inline-flex h-[
|
|
8
|
+
ref: i,
|
|
9
|
+
className: o(
|
|
10
|
+
"inline-flex h-[36px] p-4 items-center justify-center rounded bg-gray-200 text-base font-normal text-gray-900 [&_svg]:text-gray-700 [&_i]:text-gray-700 gap-x-4",
|
|
11
11
|
e
|
|
12
12
|
),
|
|
13
13
|
...a
|
|
14
14
|
}
|
|
15
15
|
));
|
|
16
|
-
|
|
17
|
-
const
|
|
16
|
+
n.displayName = t.List.displayName;
|
|
17
|
+
const p = r.forwardRef(({ className: e, ...a }, i) => /* @__PURE__ */ s.jsx(
|
|
18
18
|
t.Trigger,
|
|
19
19
|
{
|
|
20
|
-
ref:
|
|
21
|
-
className:
|
|
22
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded
|
|
23
|
-
"hover:bg-gray-900-8 active:bg-gray-900-12 data-[state=active]:bg-purple-
|
|
20
|
+
ref: i,
|
|
21
|
+
className: o(
|
|
22
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded px-8 py-4 transition-all focus-visible:outline-none disabled:pointer-events-none disabled:opacity-64",
|
|
23
|
+
"hover:bg-gray-900-8 active:bg-gray-900-12 data-[state=active]:bg-purple-800 data-[state=active]:hover:bg-purple-800 data-[state=active]:active:bg-purple-800 data-[state=active]:text-white [&_svg]:data-[state=active]:text-white [&_i]:data-[state=active]:text-white",
|
|
24
24
|
e
|
|
25
25
|
),
|
|
26
26
|
...a
|
|
27
27
|
}
|
|
28
28
|
));
|
|
29
|
-
|
|
30
|
-
const
|
|
29
|
+
p.displayName = t.Trigger.displayName;
|
|
30
|
+
const c = r.forwardRef(({ className: e, ...a }, i) => /* @__PURE__ */ s.jsx(
|
|
31
31
|
t.Content,
|
|
32
32
|
{
|
|
33
|
-
ref:
|
|
34
|
-
className:
|
|
33
|
+
ref: i,
|
|
34
|
+
className: o("mt-8 focus-visible:outline-none", e),
|
|
35
35
|
...a
|
|
36
36
|
}
|
|
37
37
|
));
|
|
38
|
-
|
|
38
|
+
c.displayName = t.Content.displayName;
|
|
39
39
|
export {
|
|
40
40
|
m as Tabs,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
c as TabsContent,
|
|
42
|
+
n as TabsList,
|
|
43
|
+
p as TabsTrigger
|
|
44
44
|
};
|
|
45
45
|
//# sourceMappingURL=index.es32.js.map
|
package/dist/index.es32.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es32.js","sources":["../src/Tabs/index.tsx"],"sourcesContent":["'use client'\n\nimport * as TabsPrimitive from '@radix-ui/react-tabs'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst Tabs = TabsPrimitive.Root\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n 'inline-flex h-[
|
|
1
|
+
{"version":3,"file":"index.es32.js","sources":["../src/Tabs/index.tsx"],"sourcesContent":["'use client'\n\nimport * as TabsPrimitive from '@radix-ui/react-tabs'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst Tabs = TabsPrimitive.Root\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n 'inline-flex h-[36px] p-4 items-center justify-center rounded bg-gray-200 text-base font-normal text-gray-900 [&_svg]:text-gray-700 [&_i]:text-gray-700 gap-x-4',\n className\n )}\n {...props}\n />\n))\nTabsList.displayName = TabsPrimitive.List.displayName\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n 'inline-flex items-center justify-center whitespace-nowrap rounded px-8 py-4 transition-all focus-visible:outline-none disabled:pointer-events-none disabled:opacity-64',\n 'hover:bg-gray-900-8 active:bg-gray-900-12 data-[state=active]:bg-purple-800 data-[state=active]:hover:bg-purple-800 data-[state=active]:active:bg-purple-800 data-[state=active]:text-white [&_svg]:data-[state=active]:text-white [&_i]:data-[state=active]:text-white',\n className\n )}\n {...props}\n />\n))\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn('mt-8 focus-visible:outline-none', className)}\n {...props}\n />\n))\nTabsContent.displayName = TabsPrimitive.Content.displayName\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent }\n"],"names":["Tabs","TabsPrimitive","TabsList","React","className","props","ref","jsx","cn","TabsTrigger","TabsContent"],"mappings":";;;;AAMA,MAAMA,IAAOC,EAAc,MAErBC,IAAWC,EAAM,WAGrB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1BC,gBAAAA,EAAA;AAAA,EAACN,EAAc;AAAA,EAAd;AAAA,IACC,KAAAK;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAS,cAAcD,EAAc,KAAK;AAEpC,MAAAQ,IAAcN,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1BC,gBAAAA,EAAA;AAAA,EAACN,EAAc;AAAA,EAAd;AAAA,IACC,KAAAK;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACA;AAAA,MACAJ;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDI,EAAY,cAAcR,EAAc,QAAQ;AAE1C,MAAAS,IAAcP,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1BC,gBAAAA,EAAA;AAAA,EAACN,EAAc;AAAA,EAAd;AAAA,IACC,KAAAK;AAAA,IACA,WAAWE,EAAG,mCAAmCJ,CAAS;AAAA,IACzD,GAAGC;AAAA,EAAA;AACN,CACD;AACDK,EAAY,cAAcT,EAAc,QAAQ;"}
|
package/dist/index.es33.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as e } from "./index.
|
|
1
|
+
import { j as e } from "./index.es40.js";
|
|
2
2
|
import { LucideX as g } from "lucide-react";
|
|
3
3
|
import * as f from "react";
|
|
4
4
|
import { Badge as j } from "./index.es7.js";
|
|
5
5
|
import { Button as N } from "./index.es8.js";
|
|
6
|
-
import { cn as b } from "./index.
|
|
6
|
+
import { cn as b } from "./index.es41.js";
|
|
7
7
|
const k = f.forwardRef(
|
|
8
8
|
({ className: s, value: t, placeholder: a, onValueChange: r, ...d }, l) => {
|
|
9
9
|
const [n, o] = f.useState(""), p = f.useRef(null);
|
package/dist/index.es34.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as r } from "./index.
|
|
1
|
+
import { j as r } from "./index.es40.js";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
import { cn as d } from "./index.
|
|
3
|
+
import { cn as d } from "./index.es41.js";
|
|
4
4
|
const s = t.forwardRef(
|
|
5
5
|
({ className: e, ...a }, o) => /* @__PURE__ */ r.jsx(
|
|
6
6
|
"textarea",
|
package/dist/index.es35.js
CHANGED
|
@@ -1,112 +1,43 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import { cva as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
s.Viewport,
|
|
9
|
-
{
|
|
10
|
-
ref: e,
|
|
11
|
-
className: o(
|
|
12
|
-
"fixed top-0 left-[50%] -translate-x-1/2 z-[100] flex max-h-screen w-full flex-col p-16 md:max-w-[520px]",
|
|
13
|
-
t
|
|
14
|
-
),
|
|
15
|
-
...a
|
|
16
|
-
}
|
|
17
|
-
));
|
|
18
|
-
x.displayName = s.Viewport.displayName;
|
|
19
|
-
const f = l(
|
|
20
|
-
"group pointer-events-auto relative flex w-full items-center justify-between space-x-8 overflow-hidden rounded border border-gray-900-8 p-16 pr-24 shadow-200 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right data-[state=closed]:md:slide-out-to-top data-[state=closed]:md:slide-out-to-right-0 data-[state=open]:slide-in-from-top",
|
|
1
|
+
import { j as n } from "./index.es40.js";
|
|
2
|
+
import * as t from "@radix-ui/react-toggle";
|
|
3
|
+
import { cva as s } from "class-variance-authority";
|
|
4
|
+
import * as b from "react";
|
|
5
|
+
import { cn as i } from "./index.es41.js";
|
|
6
|
+
const d = s(
|
|
7
|
+
"inline-flex items-center justify-center rounded font-small transition-colors disabled:pointer-events-none disabled:opacity-40",
|
|
21
8
|
{
|
|
22
9
|
variants: {
|
|
23
10
|
variant: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
11
|
+
default: "bg-transparent text-gray-700 hover:bg-gray-900-8 hover:text-purple-900 data-[state=on]:bg-purple-800 data-[state=on]:text-white",
|
|
12
|
+
"badge-green": "bg-gray-100 text-gray-900/48 hover:bg-gray-200 data-[state=on]:bg-green-50 data-[state=on]:text-green-800",
|
|
13
|
+
"badge-yellow": "bg-gray-100 text-gray-900/48 hover:bg-gray-200 data-[state=on]:bg-yellow-50 data-[state=on]:text-yellow-700",
|
|
14
|
+
"badge-magenta": "bg-gray-100 text-gray-900/48 hover:bg-gray-200 data-[state=on]:bg-magenta-50 data-[state=on]:text-magenta-700",
|
|
15
|
+
"badge-gray": "bg-gray-100 text-gray-900/48 hover:bg-gray-200 data-[state=on]:bg-gray-200 data-[state=on]:text-gray-900",
|
|
16
|
+
"badge-purple": "bg-gray-100 text-gray-900/48 hover:bg-gray-200 data-[state=on]:bg-purple-100 data-[state=on]:text-purple-900",
|
|
17
|
+
"badge-robinblue": "bg-gray-100 text-gray-900/48 hover:bg-gray-200 data-[state=on]:bg-robinblue-100 data-[state=on]:text-robinblue-900"
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
icon: "w-32 h-32",
|
|
21
|
+
sm: "px-8 h-[26px] text-sm",
|
|
22
|
+
md: "px-12 h-32 text-base"
|
|
27
23
|
}
|
|
28
24
|
},
|
|
29
25
|
defaultVariants: {
|
|
30
|
-
variant: "
|
|
26
|
+
variant: "default",
|
|
27
|
+
size: "icon"
|
|
31
28
|
}
|
|
32
29
|
}
|
|
33
|
-
),
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
ref: n,
|
|
37
|
-
className: o(f({ variant: a }), t),
|
|
38
|
-
...e
|
|
39
|
-
}
|
|
40
|
-
));
|
|
41
|
-
u.displayName = s.Root.displayName;
|
|
42
|
-
const w = i.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ r.jsx(
|
|
43
|
-
s.Action,
|
|
44
|
-
{
|
|
45
|
-
ref: e,
|
|
46
|
-
className: o(
|
|
47
|
-
"inline-flex h-32 shrink-0 items-center text-gray-900 justify-center rounded-md px-12 text-sm font-medium transition-colors hover:bg-gray-900-4 active:bg-gray-900-8 rounded focus:outline-none disabled:pointer-events-none disabled:opacity-64",
|
|
48
|
-
t
|
|
49
|
-
),
|
|
50
|
-
...a
|
|
51
|
-
}
|
|
52
|
-
));
|
|
53
|
-
w.displayName = s.Action.displayName;
|
|
54
|
-
const g = i.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ r.jsx(
|
|
55
|
-
s.Close,
|
|
30
|
+
), l = b.forwardRef(({ className: a, variant: e, size: r, ...g }, o) => /* @__PURE__ */ n.jsx(
|
|
31
|
+
t.Root,
|
|
56
32
|
{
|
|
57
|
-
ref:
|
|
58
|
-
className:
|
|
59
|
-
|
|
60
|
-
...a,
|
|
61
|
-
children: /* @__PURE__ */ r.jsx(d, { className: "h-16 w-16" })
|
|
33
|
+
ref: o,
|
|
34
|
+
className: i(d({ variant: e, size: r, className: a })),
|
|
35
|
+
...g
|
|
62
36
|
}
|
|
63
37
|
));
|
|
64
|
-
|
|
65
|
-
const y = i.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ r.jsx(
|
|
66
|
-
s.Title,
|
|
67
|
-
{
|
|
68
|
-
ref: e,
|
|
69
|
-
className: o(
|
|
70
|
-
"text-sm text-gray-900 font-medium [&+div]:text-xs",
|
|
71
|
-
t
|
|
72
|
-
),
|
|
73
|
-
...a
|
|
74
|
-
}
|
|
75
|
-
));
|
|
76
|
-
y.displayName = s.Title.displayName;
|
|
77
|
-
const N = i.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ r.jsx(
|
|
78
|
-
s.Description,
|
|
79
|
-
{
|
|
80
|
-
ref: e,
|
|
81
|
-
className: o("text-sm text-gray-800 opacity-100", t),
|
|
82
|
-
...a
|
|
83
|
-
}
|
|
84
|
-
));
|
|
85
|
-
N.displayName = s.Description.displayName;
|
|
86
|
-
const R = ({
|
|
87
|
-
className: t,
|
|
88
|
-
variant: a
|
|
89
|
-
}) => {
|
|
90
|
-
const e = o("w-[20px] h-[20px]", t);
|
|
91
|
-
switch (a) {
|
|
92
|
-
case "success":
|
|
93
|
-
return /* @__PURE__ */ r.jsx(p, { className: o(e, "text-green-800") });
|
|
94
|
-
case "warning":
|
|
95
|
-
return /* @__PURE__ */ r.jsx(m, { className: o(e, "text-yellow-600") });
|
|
96
|
-
case "error":
|
|
97
|
-
return /* @__PURE__ */ r.jsx(c, { className: o(e, "text-magenta-600") });
|
|
98
|
-
default:
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
};
|
|
38
|
+
l.displayName = t.Root.displayName;
|
|
102
39
|
export {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
g as ToastClose,
|
|
106
|
-
N as ToastDescription,
|
|
107
|
-
R as ToastIcon,
|
|
108
|
-
b as ToastProvider,
|
|
109
|
-
y as ToastTitle,
|
|
110
|
-
x as ToastViewport
|
|
40
|
+
l as Toggle,
|
|
41
|
+
d as toggleVariants
|
|
111
42
|
};
|
|
112
43
|
//# sourceMappingURL=index.es35.js.map
|
package/dist/index.es35.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es35.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.es35.js","sources":["../src/Toggle/index.tsx"],"sourcesContent":["'use client'\n\nimport * as TogglePrimitive from '@radix-ui/react-toggle'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst toggleVariants = cva(\n 'inline-flex items-center justify-center rounded font-small transition-colors disabled:pointer-events-none disabled:opacity-40',\n {\n variants: {\n variant: {\n default:\n 'bg-transparent text-gray-700 hover:bg-gray-900-8 hover:text-purple-900 data-[state=on]:bg-purple-800 data-[state=on]:text-white',\n 'badge-green':\n 'bg-gray-100 text-gray-900/48 hover:bg-gray-200 data-[state=on]:bg-green-50 data-[state=on]:text-green-800',\n 'badge-yellow':\n 'bg-gray-100 text-gray-900/48 hover:bg-gray-200 data-[state=on]:bg-yellow-50 data-[state=on]:text-yellow-700',\n 'badge-magenta':\n 'bg-gray-100 text-gray-900/48 hover:bg-gray-200 data-[state=on]:bg-magenta-50 data-[state=on]:text-magenta-700',\n 'badge-gray':\n 'bg-gray-100 text-gray-900/48 hover:bg-gray-200 data-[state=on]:bg-gray-200 data-[state=on]:text-gray-900',\n 'badge-purple':\n 'bg-gray-100 text-gray-900/48 hover:bg-gray-200 data-[state=on]:bg-purple-100 data-[state=on]:text-purple-900',\n 'badge-robinblue':\n 'bg-gray-100 text-gray-900/48 hover:bg-gray-200 data-[state=on]:bg-robinblue-100 data-[state=on]:text-robinblue-900'\n },\n size: {\n icon: 'w-32 h-32',\n sm: 'px-8 h-[26px] text-sm',\n md: 'px-12 h-32 text-base'\n }\n },\n defaultVariants: {\n variant: 'default',\n size: 'icon'\n }\n }\n)\n\nconst Toggle = React.forwardRef<\n React.ElementRef<typeof TogglePrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> &\n VariantProps<typeof toggleVariants>\n>(({ className, variant, size, ...props }, ref) => (\n <TogglePrimitive.Root\n ref={ref}\n className={cn(toggleVariants({ variant, size, className }))}\n {...props}\n />\n))\n\nToggle.displayName = TogglePrimitive.Root.displayName\n\nexport { Toggle, toggleVariants }\n"],"names":["toggleVariants","cva","Toggle","React","className","variant","size","props","ref","jsx","TogglePrimitive","cn"],"mappings":";;;;;AAOA,MAAMA,IAAiBC;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,eACE;AAAA,QACF,gBACE;AAAA,QACF,iBACE;AAAA,QACF,cACE;AAAA,QACF,gBACE;AAAA,QACF,mBACE;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,QACJ,MAAM;AAAA,QACN,IAAI;AAAA,QACJ,IAAI;AAAA,MACN;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF,GAEMC,IAASC,EAAM,WAInB,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,MAAAC,GAAM,GAAGC,KAASC,MACzCC,gBAAAA,EAAA;AAAA,EAACC,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAGX,EAAe,EAAE,SAAAK,GAAS,MAAAC,GAAM,WAAAF,EAAA,CAAW,CAAC;AAAA,IACzD,GAAGG;AAAA,EAAA;AACN,CACD;AAEDL,EAAO,cAAcQ,EAAgB,KAAK;"}
|
package/dist/index.es36.js
CHANGED
|
@@ -1,44 +1,42 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/* @__PURE__ */ s.jsx(f, {})
|
|
39
|
-
] });
|
|
40
|
-
}
|
|
1
|
+
import { j as n } from "./index.es40.js";
|
|
2
|
+
import * as t from "@radix-ui/react-toggle-group";
|
|
3
|
+
import * as e from "react";
|
|
4
|
+
import { toggleVariants as f } from "./index.es35.js";
|
|
5
|
+
import { cn as l } from "./index.es41.js";
|
|
6
|
+
const c = e.createContext({
|
|
7
|
+
variant: "default",
|
|
8
|
+
size: "icon"
|
|
9
|
+
}), g = e.forwardRef(({ className: o, variant: r, size: a, children: s, ...i }, m) => /* @__PURE__ */ n.jsx(
|
|
10
|
+
t.Root,
|
|
11
|
+
{
|
|
12
|
+
ref: m,
|
|
13
|
+
className: l("flex items-center justify-center gap-8", o),
|
|
14
|
+
...i,
|
|
15
|
+
children: /* @__PURE__ */ n.jsx(c.Provider, { value: { variant: r, size: a }, children: s })
|
|
16
|
+
}
|
|
17
|
+
));
|
|
18
|
+
g.displayName = t.Root.displayName;
|
|
19
|
+
const x = e.forwardRef(({ className: o, children: r, variant: a, size: s, ...i }, m) => {
|
|
20
|
+
const p = e.useContext(c);
|
|
21
|
+
return /* @__PURE__ */ n.jsx(
|
|
22
|
+
t.Item,
|
|
23
|
+
{
|
|
24
|
+
ref: m,
|
|
25
|
+
className: l(
|
|
26
|
+
f({
|
|
27
|
+
variant: p.variant || a,
|
|
28
|
+
size: p.size || s
|
|
29
|
+
}),
|
|
30
|
+
o
|
|
31
|
+
),
|
|
32
|
+
...i,
|
|
33
|
+
children: r
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
});
|
|
37
|
+
x.displayName = t.Item.displayName;
|
|
41
38
|
export {
|
|
42
|
-
|
|
39
|
+
g as ToggleGroup,
|
|
40
|
+
x as ToggleGroupItem
|
|
43
41
|
};
|
|
44
42
|
//# sourceMappingURL=index.es36.js.map
|
package/dist/index.es36.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es36.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.es36.js","sources":["../src/ToggleGroup/index.tsx"],"sourcesContent":["'use client'\n\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group'\nimport { VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\nimport { toggleVariants } from '../Toggle'\nimport { cn } from '../lib/utils'\n\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants>\n>({\n variant: 'default',\n size: 'icon'\n})\n\nconst ToggleGroup = React.forwardRef<\n React.ElementRef<typeof ToggleGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants>\n>(({ className, variant, size, children, ...props }, ref) => (\n <ToggleGroupPrimitive.Root\n ref={ref}\n className={cn('flex items-center justify-center gap-8', className)}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n))\n\nToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName\n\nconst ToggleGroupItem = React.forwardRef<\n React.ElementRef<typeof ToggleGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> &\n VariantProps<typeof toggleVariants>\n>(({ className, children, variant, size, ...props }, ref) => {\n const context = React.useContext(ToggleGroupContext)\n\n return (\n <ToggleGroupPrimitive.Item\n ref={ref}\n className={cn(\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size\n }),\n className\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n )\n})\n\nToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName\n\nexport { ToggleGroup, ToggleGroupItem }\n"],"names":["ToggleGroupContext","React","ToggleGroup","className","variant","size","children","props","ref","jsx","ToggleGroupPrimitive","cn","ToggleGroupItem","context","toggleVariants"],"mappings":";;;;;AAQA,MAAMA,IAAqBC,EAAM,cAE/B;AAAA,EACA,SAAS;AAAA,EACT,MAAM;AACR,CAAC,GAEKC,IAAcD,EAAM,WAIxB,CAAC,EAAE,WAAAE,GAAW,SAAAC,GAAS,MAAAC,GAAM,UAAAC,GAAU,GAAGC,EAAM,GAAGC,MACnDC,gBAAAA,EAAA;AAAA,EAACC,EAAqB;AAAA,EAArB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,0CAA0CR,CAAS;AAAA,IAChE,GAAGI;AAAA,IAEJ,UAAAE,gBAAAA,EAAAA,IAACT,EAAmB,UAAnB,EAA4B,OAAO,EAAE,SAAAI,GAAS,MAAAC,KAC5C,UAAAC,GACH;AAAA,EAAA;AACF,CACD;AAEDJ,EAAY,cAAcQ,EAAqB,KAAK;AAEpD,MAAME,IAAkBX,EAAM,WAI5B,CAAC,EAAE,WAAAE,GAAW,UAAAG,GAAU,SAAAF,GAAS,MAAAC,GAAM,GAAGE,EAAM,GAAGC,MAAQ;AACrD,QAAAK,IAAUZ,EAAM,WAAWD,CAAkB;AAGjD,SAAAS,gBAAAA,EAAA;AAAA,IAACC,EAAqB;AAAA,IAArB;AAAA,MACC,KAAAF;AAAA,MACA,WAAWG;AAAA,QACTG,EAAe;AAAA,UACb,SAASD,EAAQ,WAAWT;AAAA,UAC5B,MAAMS,EAAQ,QAAQR;AAAA,QAAA,CACvB;AAAA,QACDF;AAAA,MACF;AAAA,MACC,GAAGI;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;AAEDM,EAAgB,cAAcF,EAAqB,KAAK;"}
|
package/dist/index.es37.js
CHANGED
|
@@ -1,98 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
toastId: t
|
|
14
|
-
});
|
|
15
|
-
}, p);
|
|
16
|
-
a.set(t, s);
|
|
17
|
-
}, f = (t, s) => {
|
|
18
|
-
switch (s.type) {
|
|
19
|
-
case "ADD_TOAST":
|
|
20
|
-
return {
|
|
21
|
-
...t,
|
|
22
|
-
toasts: [s.toast, ...t.toasts].slice(0, d)
|
|
23
|
-
};
|
|
24
|
-
case "UPDATE_TOAST":
|
|
25
|
-
return {
|
|
26
|
-
...t,
|
|
27
|
-
toasts: t.toasts.map(
|
|
28
|
-
(e) => e.id === s.toast.id ? { ...e, ...s.toast } : e
|
|
29
|
-
)
|
|
30
|
-
};
|
|
31
|
-
case "DISMISS_TOAST": {
|
|
32
|
-
const { toastId: e } = s;
|
|
33
|
-
return e ? S(e) : t.toasts.forEach((o) => {
|
|
34
|
-
S(o.id);
|
|
35
|
-
}), {
|
|
36
|
-
...t,
|
|
37
|
-
toasts: t.toasts.map(
|
|
38
|
-
(o) => o.id === e || e === void 0 ? {
|
|
39
|
-
...o,
|
|
40
|
-
open: !1
|
|
41
|
-
} : o
|
|
42
|
-
)
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
case "REMOVE_TOAST":
|
|
46
|
-
return s.toastId === void 0 ? {
|
|
47
|
-
...t,
|
|
48
|
-
toasts: []
|
|
49
|
-
} : {
|
|
50
|
-
...t,
|
|
51
|
-
toasts: t.toasts.filter((e) => e.id !== s.toastId)
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
}, r = [];
|
|
55
|
-
let T = { toasts: [] };
|
|
56
|
-
function n(t) {
|
|
57
|
-
T = f(T, t), r.forEach((s) => {
|
|
58
|
-
s(T);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
function O({ ...t }) {
|
|
62
|
-
const s = A(), e = (i) => n({
|
|
63
|
-
type: "UPDATE_TOAST",
|
|
64
|
-
toast: { ...i, id: s }
|
|
65
|
-
}), o = () => n({ type: "DISMISS_TOAST", toastId: s });
|
|
66
|
-
return n({
|
|
67
|
-
type: "ADD_TOAST",
|
|
68
|
-
toast: {
|
|
69
|
-
...t,
|
|
70
|
-
id: s,
|
|
71
|
-
open: !0,
|
|
72
|
-
onOpenChange: (i) => {
|
|
73
|
-
i || o();
|
|
1
|
+
import { j as d } from "./index.es40.js";
|
|
2
|
+
import * as t from "@radix-ui/react-tooltip";
|
|
3
|
+
import { cva as s } from "class-variance-authority";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import { cn as m } from "./index.es41.js";
|
|
6
|
+
const l = s(
|
|
7
|
+
"z-50 overflow-hidden rounded px-12 py-8 text-sm shadow-200 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-gray-800 text-white text-sm",
|
|
12
|
+
inverted: "bg-white text-gray-800 border border-gray-900-8"
|
|
74
13
|
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: "default"
|
|
75
17
|
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}), [t]), {
|
|
88
|
-
...t,
|
|
89
|
-
toast: O,
|
|
90
|
-
dismiss: (e) => n({ type: "DISMISS_TOAST", toastId: e })
|
|
91
|
-
};
|
|
92
|
-
}
|
|
18
|
+
}
|
|
19
|
+
), v = t.Provider, x = t.Root, u = t.Portal, T = t.Trigger, p = n.forwardRef(({ variant: o, className: a, sideOffset: e = 4, ...i }, r) => /* @__PURE__ */ d.jsx(
|
|
20
|
+
t.Content,
|
|
21
|
+
{
|
|
22
|
+
ref: r,
|
|
23
|
+
sideOffset: e,
|
|
24
|
+
className: m(l({ variant: o, className: a })),
|
|
25
|
+
...i
|
|
26
|
+
}
|
|
27
|
+
));
|
|
28
|
+
p.displayName = t.Content.displayName;
|
|
93
29
|
export {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
30
|
+
x as Tooltip,
|
|
31
|
+
p as TooltipContent,
|
|
32
|
+
u as TooltipPortal,
|
|
33
|
+
v as TooltipProvider,
|
|
34
|
+
T as TooltipTrigger
|
|
97
35
|
};
|
|
98
36
|
//# sourceMappingURL=index.es37.js.map
|
package/dist/index.es37.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es37.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.es37.js","sources":["../src/Tooltip/index.tsx"],"sourcesContent":["'use client'\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\nimport { VariantProps, cva } from 'class-variance-authority'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst tooltipContentVariants = cva(\n 'z-50 overflow-hidden rounded px-12 py-8 text-sm shadow-200 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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',\n {\n variants: {\n variant: {\n default: 'bg-gray-800 text-white text-sm',\n inverted: 'bg-white text-gray-800 border border-gray-900-8'\n }\n },\n defaultVariants: {\n variant: 'default'\n }\n }\n)\n\nconst TooltipProvider = TooltipPrimitive.Provider\n\nconst Tooltip = TooltipPrimitive.Root\n\nconst TooltipPortal = TooltipPrimitive.Portal\n\nconst TooltipTrigger = TooltipPrimitive.Trigger\n\ninterface TooltipContentProps\n extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>,\n VariantProps<typeof tooltipContentVariants> {\n asChild?: boolean\n}\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n TooltipContentProps\n>(({ variant, className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(tooltipContentVariants({ variant, className }))}\n {...props}\n />\n))\nTooltipContent.displayName = TooltipPrimitive.Content.displayName\n\nexport {\n Tooltip,\n TooltipContent,\n TooltipPortal,\n TooltipProvider,\n TooltipTrigger\n}\n"],"names":["tooltipContentVariants","cva","TooltipProvider","TooltipPrimitive","Tooltip","TooltipPortal","TooltipTrigger","TooltipContent","React","variant","className","sideOffset","props","ref","jsx","cn"],"mappings":";;;;;AAOA,MAAMA,IAAyBC;AAAA,EAC7B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF,GAEMC,IAAkBC,EAAiB,UAEnCC,IAAUD,EAAiB,MAE3BE,IAAgBF,EAAiB,QAEjCG,IAAiBH,EAAiB,SAQlCI,IAAiBC,EAAM,WAG3B,CAAC,EAAE,SAAAC,GAAS,WAAAC,GAAW,YAAAC,IAAa,GAAG,GAAGC,EAAM,GAAGC,MACnDC,gBAAAA,EAAA;AAAA,EAACX,EAAiB;AAAA,EAAjB;AAAA,IACC,KAAAU;AAAA,IACA,YAAAF;AAAA,IACA,WAAWI,EAAGf,EAAuB,EAAE,SAAAS,GAAS,WAAAC,EAAW,CAAA,CAAC;AAAA,IAC3D,GAAGE;AAAA,EAAA;AACN,CACD;AACDL,EAAe,cAAcJ,EAAiB,QAAQ;"}
|