@gv-tech/design-system 2.15.2 → 2.16.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/accordion.cjs +1 -1
- package/dist/accordion.cjs.map +1 -1
- package/dist/accordion.mjs +11 -11
- package/dist/accordion.mjs.map +1 -1
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.cjs.map +1 -1
- package/dist/alert-dialog.mjs +21 -21
- package/dist/alert-dialog.mjs.map +1 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.cjs.map +1 -1
- package/dist/avatar.mjs +12 -12
- package/dist/avatar.mjs.map +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +1 -1
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/chart.cjs +1 -1
- package/dist/chart.mjs +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.cjs.map +1 -1
- package/dist/checkbox.mjs +2 -2
- package/dist/checkbox.mjs.map +1 -1
- package/dist/command.cjs +1 -1
- package/dist/command.cjs.map +1 -1
- package/dist/command.mjs +24 -24
- package/dist/command.mjs.map +1 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.cjs.map +1 -1
- package/dist/context-menu.mjs +42 -42
- package/dist/context-menu.mjs.map +1 -1
- package/dist/design-system.css +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.cjs.map +1 -1
- package/dist/dialog.mjs +18 -18
- package/dist/dialog.mjs.map +1 -1
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.cjs.map +1 -1
- package/dist/drawer.mjs +19 -19
- package/dist/drawer.mjs.map +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.cjs.map +1 -1
- package/dist/dropdown-menu.mjs +58 -58
- package/dist/dropdown-menu.mjs.map +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.cjs.map +1 -1
- package/dist/hover-card.mjs +4 -4
- package/dist/hover-card.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +64 -0
- package/dist/index.mjs +37 -35
- package/dist/index.mjs.map +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.cjs.map +1 -1
- package/dist/label.mjs +3 -3
- package/dist/label.mjs.map +1 -1
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.cjs.map +1 -1
- package/dist/menubar.mjs +44 -44
- package/dist/menubar.mjs.map +1 -1
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.cjs.map +1 -1
- package/dist/navigation-menu.mjs +21 -21
- package/dist/navigation-menu.mjs.map +1 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +1 -1
- package/dist/popover.cjs +1 -1
- package/dist/popover.cjs.map +1 -1
- package/dist/popover.mjs +8 -8
- package/dist/popover.mjs.map +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.cjs.map +1 -1
- package/dist/progress.mjs +9 -9
- package/dist/progress.mjs.map +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.cjs.map +1 -1
- package/dist/radio-group.mjs +8 -8
- package/dist/radio-group.mjs.map +1 -1
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.cjs.map +1 -1
- package/dist/scroll-area.mjs +11 -11
- package/dist/scroll-area.mjs.map +1 -1
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.cjs.map +1 -1
- package/dist/select.mjs +38 -38
- package/dist/select.mjs.map +1 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.cjs.map +1 -1
- package/dist/separator.mjs +7 -7
- package/dist/separator.mjs.map +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.cjs.map +1 -1
- package/dist/sheet.mjs +17 -17
- package/dist/sheet.mjs.map +1 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.cjs.map +1 -1
- package/dist/slider.mjs +2 -2
- package/dist/slider.mjs.map +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.cjs.map +1 -1
- package/dist/switch.mjs +7 -7
- package/dist/switch.mjs.map +1 -1
- package/dist/table-of-contents.cjs +2 -0
- package/dist/table-of-contents.cjs.map +1 -0
- package/dist/table-of-contents.d.ts +68 -0
- package/dist/table-of-contents.mjs +161 -0
- package/dist/table-of-contents.mjs.map +1 -0
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.cjs.map +1 -1
- package/dist/tabs.mjs +13 -13
- package/dist/tabs.mjs.map +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/{theme-toggle-CEOvAx_E.js → theme-toggle-B3z50t2s.js} +2 -2
- package/dist/{theme-toggle-CEOvAx_E.js.map → theme-toggle-B3z50t2s.js.map} +1 -1
- package/dist/{theme-toggle-B1DHy3Aq.mjs → theme-toggle-BUU8zhDg.mjs} +2 -2
- package/dist/{theme-toggle-B1DHy3Aq.mjs.map → theme-toggle-BUU8zhDg.mjs.map} +1 -1
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -2
- package/dist/toast.cjs +1 -1
- package/dist/toast.cjs.map +1 -1
- package/dist/toast.mjs +17 -17
- package/dist/toast.mjs.map +1 -1
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.cjs.map +1 -1
- package/dist/toggle-group.mjs +18 -18
- package/dist/toggle-group.mjs.map +1 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.cjs.map +1 -1
- package/dist/toggle.mjs +6 -6
- package/dist/toggle.mjs.map +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.cjs.map +1 -1
- package/dist/tooltip.mjs +11 -11
- package/dist/tooltip.mjs.map +1 -1
- package/dist/utils--qajXu5A.js +2 -0
- package/dist/utils--qajXu5A.js.map +1 -0
- package/dist/utils-CgPEtJt0.mjs +12 -0
- package/dist/utils-CgPEtJt0.mjs.map +1 -0
- package/package.json +15 -14
- package/dist/utils-DKStzUzN.js +0 -2
- package/dist/utils-DKStzUzN.js.map +0 -1
- package/dist/utils-Dk-Gx69q.mjs +0 -8
- package/dist/utils-Dk-Gx69q.mjs.map +0 -1
package/dist/toast.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.cjs","sources":["../packages/ui-web/src/toast.tsx"],"sourcesContent":["'use client';\nimport * as ToastPrimitives from '@radix-ui/react-toast';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { X } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nconst ToastProvider = ToastPrimitives.Provider;\n\nconst ToastViewport = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Viewport>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Viewport\n ref={ref}\n className={cn(\n 'fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]',\n className,\n )}\n {...props}\n />\n));\nToastViewport.displayName = ToastPrimitives.Viewport
|
|
1
|
+
{"version":3,"file":"toast.cjs","sources":["../packages/ui-web/src/toast.tsx"],"sourcesContent":["'use client';\nimport * as ToastPrimitives from '@radix-ui/react-toast';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { X } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nconst ToastProvider = ToastPrimitives.Provider;\n\nconst ToastViewport = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Viewport>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Viewport\n ref={ref}\n className={cn(\n 'fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]',\n className,\n )}\n {...props}\n />\n));\nToastViewport.displayName = ToastPrimitives.Viewport?.displayName || 'ToastViewport';\n\nconst toastVariants = cva(\n 'group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg 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-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full',\n {\n variants: {\n variant: {\n default: 'border bg-background text-foreground',\n destructive: 'destructive group border-destructive bg-destructive text-destructive-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nconst Toast = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> & VariantProps<typeof toastVariants>\n>(({ className, variant, ...props }, ref) => {\n return <ToastPrimitives.Root ref={ref} className={cn(toastVariants({ variant }), className)} {...props} />;\n});\nToast.displayName = ToastPrimitives.Root?.displayName || 'Toast';\n\nconst ToastAction = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Action>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Action\n ref={ref}\n className={cn(\n 'hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors focus:ring-1 focus:outline-none disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n />\n));\nToastAction.displayName = ToastPrimitives.Action?.displayName || 'ToastAction';\n\nconst ToastClose = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Close>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Close\n ref={ref}\n className={cn(\n 'text-foreground/50 hover:text-foreground absolute top-1 right-1 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-1 focus:outline-none group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600',\n className,\n )}\n toast-close=\"\"\n {...props}\n >\n <X className=\"h-4 w-4\" />\n </ToastPrimitives.Close>\n));\nToastClose.displayName = ToastPrimitives.Close?.displayName || 'ToastClose';\n\nconst ToastTitle = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Title>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Title ref={ref} className={cn('text-sm font-semibold [&+div]:text-xs', className)} {...props} />\n));\nToastTitle.displayName = ToastPrimitives.Title?.displayName || 'ToastTitle';\n\nconst ToastDescription = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Description>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Description ref={ref} className={cn('text-sm opacity-90', className)} {...props} />\n));\nToastDescription.displayName = ToastPrimitives.Description?.displayName || 'ToastDescription';\n\ntype ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;\n\ntype ToastActionElement = React.ReactElement<typeof ToastAction>;\n\nexport {\n Toast,\n ToastAction,\n ToastClose,\n ToastDescription,\n ToastProvider,\n ToastTitle,\n ToastViewport,\n type ToastActionElement,\n type ToastProps,\n};\n"],"names":["ToastProvider","ToastPrimitives.Provider","ToastViewport","React","className","props","ref","jsx","ToastPrimitives.Viewport","cn","toastVariants","cva","Toast","variant","ToastPrimitives.Root","ToastAction","ToastPrimitives.Action","ToastClose","ToastPrimitives.Close","X","ToastTitle","ToastPrimitives.Title","ToastDescription","ToastPrimitives.Description"],"mappings":"mdAQMA,EAAgBC,EAAAA,WAEhBC,EAAgBC,EAAM,WAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,WAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,oIACAL,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EACDH,EAAc,YAAcM,cAA0B,aAAe,gBAErE,MAAME,EAAgBC,EAAAA,IACpB,4lBACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,uCACT,YAAa,iFAAA,CACf,EAEF,gBAAiB,CACf,QAAS,SAAA,CACX,CAEJ,EAEMC,EAAQT,EAAM,WAGlB,CAAC,CAAE,UAAAC,EAAW,QAAAS,EAAS,GAAGR,CAAA,EAASC,IAC5BC,EAAAA,kBAAAA,IAACO,EAAAA,SAAA,CAAqB,IAAAR,EAAU,UAAWG,EAAAA,GAAGC,EAAc,CAAE,QAAAG,EAAS,EAAGT,CAAS,EAAI,GAAGC,CAAA,CAAO,CACzG,EACDO,EAAM,YAAcE,YAAsB,aAAe,QAEzD,MAAMC,EAAcZ,EAAM,WAGxB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACS,EAAAA,SAAA,CACC,IAAAV,EACA,UAAWG,EAAAA,GACT,0dACAL,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EACDU,EAAY,YAAcC,YAAwB,aAAe,cAEjE,MAAMC,EAAad,EAAM,WAGvB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACW,EAAAA,QAAA,CACC,IAAAZ,EACA,UAAWG,EAAAA,GACT,wVACAL,CAAA,EAEF,cAAY,GACX,GAAGC,EAEJ,SAAAE,EAAAA,kBAAAA,IAACY,EAAAA,EAAA,CAAE,UAAU,SAAA,CAAU,CAAA,CACzB,CACD,EACDF,EAAW,YAAcC,WAAuB,aAAe,aAE/D,MAAME,EAAajB,EAAM,WAGvB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACc,EAAAA,QAAA,CAAsB,IAAAf,EAAU,UAAWG,EAAAA,GAAG,wCAAyCL,CAAS,EAAI,GAAGC,EAAO,CAChH,EACDe,EAAW,YAAcC,WAAuB,aAAe,aAE/D,MAAMC,EAAmBnB,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACgB,EAAAA,cAAA,CAA4B,IAAAjB,EAAU,UAAWG,EAAAA,GAAG,qBAAsBL,CAAS,EAAI,GAAGC,EAAO,CACnG,EACDiB,EAAiB,YAAcC,iBAA6B,aAAe"}
|
package/dist/toast.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as
|
|
3
|
-
import * as
|
|
4
|
-
import { c as r } from "./utils-
|
|
5
|
-
const
|
|
2
|
+
import { j as o, bP as i, bQ as d, bR as n, bS as c, aY as m, bT as u, bU as l, g as f, bV as v } from "./vendor-DxBXMLEx.mjs";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { c as r } from "./utils-CgPEtJt0.mjs";
|
|
5
|
+
const R = v, x = a.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o.jsx(
|
|
6
6
|
i,
|
|
7
7
|
{
|
|
8
8
|
ref: s,
|
|
@@ -13,7 +13,7 @@ const T = v, x = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.j
|
|
|
13
13
|
...t
|
|
14
14
|
}
|
|
15
15
|
));
|
|
16
|
-
x.displayName = i
|
|
16
|
+
x.displayName = i?.displayName || "ToastViewport";
|
|
17
17
|
const g = f(
|
|
18
18
|
"group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg 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-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
19
19
|
{
|
|
@@ -27,9 +27,9 @@ const g = f(
|
|
|
27
27
|
variant: "default"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
), b =
|
|
31
|
-
b.displayName = d
|
|
32
|
-
const w =
|
|
30
|
+
), b = a.forwardRef(({ className: e, variant: t, ...s }, p) => /* @__PURE__ */ o.jsx(d, { ref: p, className: r(g({ variant: t }), e), ...s }));
|
|
31
|
+
b.displayName = d?.displayName || "Toast";
|
|
32
|
+
const w = a.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o.jsx(
|
|
33
33
|
n,
|
|
34
34
|
{
|
|
35
35
|
ref: s,
|
|
@@ -40,8 +40,8 @@ const w = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
40
40
|
...t
|
|
41
41
|
}
|
|
42
42
|
));
|
|
43
|
-
w.displayName = n
|
|
44
|
-
const y =
|
|
43
|
+
w.displayName = n?.displayName || "ToastAction";
|
|
44
|
+
const y = a.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o.jsx(
|
|
45
45
|
c,
|
|
46
46
|
{
|
|
47
47
|
ref: s,
|
|
@@ -51,20 +51,20 @@ const y = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
51
51
|
),
|
|
52
52
|
"toast-close": "",
|
|
53
53
|
...t,
|
|
54
|
-
children: /* @__PURE__ */
|
|
54
|
+
children: /* @__PURE__ */ o.jsx(m, { className: "h-4 w-4" })
|
|
55
55
|
}
|
|
56
56
|
));
|
|
57
|
-
y.displayName = c
|
|
58
|
-
const N =
|
|
59
|
-
N.displayName = u
|
|
60
|
-
const h =
|
|
61
|
-
h.displayName = l
|
|
57
|
+
y.displayName = c?.displayName || "ToastClose";
|
|
58
|
+
const N = a.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o.jsx(u, { ref: s, className: r("text-sm font-semibold [&+div]:text-xs", e), ...t }));
|
|
59
|
+
N.displayName = u?.displayName || "ToastTitle";
|
|
60
|
+
const h = a.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o.jsx(l, { ref: s, className: r("text-sm opacity-90", e), ...t }));
|
|
61
|
+
h.displayName = l?.displayName || "ToastDescription";
|
|
62
62
|
export {
|
|
63
63
|
b as Toast,
|
|
64
64
|
w as ToastAction,
|
|
65
65
|
y as ToastClose,
|
|
66
66
|
h as ToastDescription,
|
|
67
|
-
|
|
67
|
+
R as ToastProvider,
|
|
68
68
|
N as ToastTitle,
|
|
69
69
|
x as ToastViewport
|
|
70
70
|
};
|
package/dist/toast.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.mjs","sources":["../packages/ui-web/src/toast.tsx"],"sourcesContent":["'use client';\nimport * as ToastPrimitives from '@radix-ui/react-toast';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { X } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nconst ToastProvider = ToastPrimitives.Provider;\n\nconst ToastViewport = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Viewport>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Viewport\n ref={ref}\n className={cn(\n 'fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]',\n className,\n )}\n {...props}\n />\n));\nToastViewport.displayName = ToastPrimitives.Viewport
|
|
1
|
+
{"version":3,"file":"toast.mjs","sources":["../packages/ui-web/src/toast.tsx"],"sourcesContent":["'use client';\nimport * as ToastPrimitives from '@radix-ui/react-toast';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { X } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nconst ToastProvider = ToastPrimitives.Provider;\n\nconst ToastViewport = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Viewport>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Viewport\n ref={ref}\n className={cn(\n 'fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]',\n className,\n )}\n {...props}\n />\n));\nToastViewport.displayName = ToastPrimitives.Viewport?.displayName || 'ToastViewport';\n\nconst toastVariants = cva(\n 'group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg 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-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full',\n {\n variants: {\n variant: {\n default: 'border bg-background text-foreground',\n destructive: 'destructive group border-destructive bg-destructive text-destructive-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nconst Toast = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> & VariantProps<typeof toastVariants>\n>(({ className, variant, ...props }, ref) => {\n return <ToastPrimitives.Root ref={ref} className={cn(toastVariants({ variant }), className)} {...props} />;\n});\nToast.displayName = ToastPrimitives.Root?.displayName || 'Toast';\n\nconst ToastAction = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Action>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Action\n ref={ref}\n className={cn(\n 'hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors focus:ring-1 focus:outline-none disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n />\n));\nToastAction.displayName = ToastPrimitives.Action?.displayName || 'ToastAction';\n\nconst ToastClose = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Close>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Close\n ref={ref}\n className={cn(\n 'text-foreground/50 hover:text-foreground absolute top-1 right-1 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-1 focus:outline-none group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600',\n className,\n )}\n toast-close=\"\"\n {...props}\n >\n <X className=\"h-4 w-4\" />\n </ToastPrimitives.Close>\n));\nToastClose.displayName = ToastPrimitives.Close?.displayName || 'ToastClose';\n\nconst ToastTitle = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Title>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Title ref={ref} className={cn('text-sm font-semibold [&+div]:text-xs', className)} {...props} />\n));\nToastTitle.displayName = ToastPrimitives.Title?.displayName || 'ToastTitle';\n\nconst ToastDescription = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Description>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Description ref={ref} className={cn('text-sm opacity-90', className)} {...props} />\n));\nToastDescription.displayName = ToastPrimitives.Description?.displayName || 'ToastDescription';\n\ntype ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;\n\ntype ToastActionElement = React.ReactElement<typeof ToastAction>;\n\nexport {\n Toast,\n ToastAction,\n ToastClose,\n ToastDescription,\n ToastProvider,\n ToastTitle,\n ToastViewport,\n type ToastActionElement,\n type ToastProps,\n};\n"],"names":["ToastProvider","ToastPrimitives.Provider","ToastViewport","React","className","props","ref","jsx","ToastPrimitives.Viewport","cn","toastVariants","cva","Toast","variant","ToastPrimitives.Root","ToastAction","ToastPrimitives.Action","ToastClose","ToastPrimitives.Close","X","ToastTitle","ToastPrimitives.Title","ToastDescription","ToastPrimitives.Description"],"mappings":";;;;AAQA,MAAMA,IAAgBC,GAEhBC,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAc,cAAcM,GAA0B,eAAe;AAErE,MAAME,IAAgBC;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,aAAa;AAAA,MAAA;AAAA,IACf;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ,GAEMC,IAAQT,EAAM,WAGlB,CAAC,EAAE,WAAAC,GAAW,SAAAS,GAAS,GAAGR,EAAA,GAASC,MAC5BC,gBAAAA,EAAAA,IAACO,GAAA,EAAqB,KAAAR,GAAU,WAAWG,EAAGC,EAAc,EAAE,SAAAG,GAAS,GAAGT,CAAS,GAAI,GAAGC,EAAA,CAAO,CACzG;AACDO,EAAM,cAAcE,GAAsB,eAAe;AAEzD,MAAMC,IAAcZ,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACS;AAAAA,EAAA;AAAA,IACC,KAAAV;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDU,EAAY,cAAcC,GAAwB,eAAe;AAEjE,MAAMC,IAAad,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACW;AAAAA,EAAA;AAAA,IACC,KAAAZ;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAEF,eAAY;AAAA,IACX,GAAGC;AAAA,IAEJ,UAAAE,gBAAAA,EAAAA,IAACY,GAAA,EAAE,WAAU,UAAA,CAAU;AAAA,EAAA;AACzB,CACD;AACDF,EAAW,cAAcC,GAAuB,eAAe;AAE/D,MAAME,IAAajB,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACc,GAAA,EAAsB,KAAAf,GAAU,WAAWG,EAAG,yCAAyCL,CAAS,GAAI,GAAGC,GAAO,CAChH;AACDe,EAAW,cAAcC,GAAuB,eAAe;AAE/D,MAAMC,IAAmBnB,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACgB,GAAA,EAA4B,KAAAjB,GAAU,WAAWG,EAAG,sBAAsBL,CAAS,GAAI,GAAGC,GAAO,CACnG;AACDiB,EAAiB,cAAcC,GAA6B,eAAe;"}
|
package/dist/toggle-group.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-DQFuDa7q.js"),m=require("react"),d=require("./toggle-BAzsZDaN.js"),u=require("./utils
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-DQFuDa7q.js"),m=require("react"),d=require("./toggle-BAzsZDaN.js"),u=require("./utils--qajXu5A.js");function f(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=f(m),l=s.createContext({size:"default",variant:"default"}),g=s.forwardRef(({className:e,variant:o,size:t,children:n,...a},c)=>r.jsxRuntimeExports.jsx(r.Root2$10,{ref:c,className:u.cn("flex items-center justify-center gap-1",e),...a,children:r.jsxRuntimeExports.jsx(l.Provider,{value:{variant:o,size:t},children:n})}));g.displayName=r.Root2$10?.displayName||"ToggleGroup";const p=s.forwardRef(({className:e,children:o,variant:t,size:n,...a},c)=>{const i=s.useContext(l);return r.jsxRuntimeExports.jsx(r.Item2$3,{ref:c,className:u.cn(d.toggleVariants({variant:i.variant||t,size:i.size||n}),e),...a,children:o})});p.displayName=r.Item2$3?.displayName||"ToggleGroupItem";exports.ToggleGroup=g;exports.ToggleGroupItem=p;
|
|
2
2
|
//# sourceMappingURL=toggle-group.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.cjs","sources":["../packages/ui-web/src/toggle-group.tsx"],"sourcesContent":["'use client';\n\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { toggleVariants } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst ToggleGroupContext = React.createContext<VariantProps<typeof toggleVariants>>({\n size: 'default',\n variant: 'default',\n});\n\nexport type ToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants>;\n\nconst ToggleGroup = React.forwardRef<React.ElementRef<typeof ToggleGroupPrimitive.Root>, ToggleGroupProps>(\n ({ className, variant, size, children, ...props }, ref) => (\n <ToggleGroupPrimitive.Root ref={ref} className={cn('flex items-center justify-center gap-1', className)} {...props}>\n <ToggleGroupContext.Provider value={{ variant, size }}>{children}</ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n ),\n);\n\nToggleGroup.displayName = ToggleGroupPrimitive.Root
|
|
1
|
+
{"version":3,"file":"toggle-group.cjs","sources":["../packages/ui-web/src/toggle-group.tsx"],"sourcesContent":["'use client';\n\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { toggleVariants } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst ToggleGroupContext = React.createContext<VariantProps<typeof toggleVariants>>({\n size: 'default',\n variant: 'default',\n});\n\nexport type ToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants>;\n\nconst ToggleGroup = React.forwardRef<React.ElementRef<typeof ToggleGroupPrimitive.Root>, ToggleGroupProps>(\n ({ className, variant, size, children, ...props }, ref) => (\n <ToggleGroupPrimitive.Root ref={ref} className={cn('flex items-center justify-center gap-1', className)} {...props}>\n <ToggleGroupContext.Provider value={{ variant, size }}>{children}</ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n ),\n);\n\nToggleGroup.displayName = ToggleGroupPrimitive.Root?.displayName || 'ToggleGroup';\n\nexport type ToggleGroupItemProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> &\n VariantProps<typeof toggleVariants>;\n\nconst ToggleGroupItem = React.forwardRef<React.ElementRef<typeof ToggleGroupPrimitive.Item>, ToggleGroupItemProps>(\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);\n\nToggleGroupItem.displayName = ToggleGroupPrimitive.Item?.displayName || 'ToggleGroupItem';\n\nexport { ToggleGroup, ToggleGroupItem };\n"],"names":["ToggleGroupContext","React","ToggleGroup","className","variant","size","children","props","ref","jsx","ToggleGroupPrimitive.Root","cn","ToggleGroupItem","context","ToggleGroupPrimitive.Item","toggleVariants"],"mappings":"qfASMA,EAAqBC,EAAM,cAAmD,CAClF,KAAM,UACN,QAAS,SACX,CAAC,EAKKC,EAAcD,EAAM,WACxB,CAAC,CAAE,UAAAE,EAAW,QAAAC,EAAS,KAAAC,EAAM,SAAAC,EAAU,GAAGC,GAASC,IACjDC,EAAAA,kBAAAA,IAACC,EAAAA,SAAA,CAA0B,IAAAF,EAAU,UAAWG,EAAAA,GAAG,yCAA0CR,CAAS,EAAI,GAAGI,EAC3G,iCAACP,EAAmB,SAAnB,CAA4B,MAAO,CAAE,QAAAI,EAAS,KAAAC,CAAA,EAAS,SAAAC,EAAS,CAAA,CACnE,CAEJ,EAEAJ,EAAY,YAAcQ,YAA2B,aAAe,cAKpE,MAAME,EAAkBX,EAAM,WAC5B,CAAC,CAAE,UAAAE,EAAW,SAAAG,EAAU,QAAAF,EAAS,KAAAC,EAAM,GAAGE,CAAA,EAASC,IAAQ,CACzD,MAAMK,EAAUZ,EAAM,WAAWD,CAAkB,EAEnD,OACES,EAAAA,kBAAAA,IAACK,EAAAA,QAAA,CACC,IAAAN,EACA,UAAWG,EAAAA,GACTI,iBAAe,CACb,QAASF,EAAQ,SAAWT,EAC5B,KAAMS,EAAQ,MAAQR,CAAA,CACvB,EACDF,CAAA,EAED,GAAGI,EAEH,SAAAD,CAAA,CAAA,CAGP,CACF,EAEAM,EAAgB,YAAcE,WAA2B,aAAe"}
|
package/dist/toggle-group.mjs
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as
|
|
2
|
+
import { j as m, bJ as l, bK as p } from "./vendor-DxBXMLEx.mjs";
|
|
3
3
|
import * as e from "react";
|
|
4
4
|
import { t as u } from "./toggle-Dmzr60z6.mjs";
|
|
5
|
-
import { c
|
|
6
|
-
const
|
|
5
|
+
import { c } from "./utils-CgPEtJt0.mjs";
|
|
6
|
+
const g = e.createContext({
|
|
7
7
|
size: "default",
|
|
8
8
|
variant: "default"
|
|
9
|
-
}),
|
|
10
|
-
({ className: t, variant: a, size:
|
|
9
|
+
}), f = e.forwardRef(
|
|
10
|
+
({ className: t, variant: a, size: o, children: r, ...s }, i) => /* @__PURE__ */ m.jsx(l, { ref: i, className: c("flex items-center justify-center gap-1", t), ...s, children: /* @__PURE__ */ m.jsx(g.Provider, { value: { variant: a, size: o }, children: r }) })
|
|
11
11
|
);
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
({ className: t, children: a, variant:
|
|
15
|
-
const
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
|
|
12
|
+
f.displayName = l?.displayName || "ToggleGroup";
|
|
13
|
+
const x = e.forwardRef(
|
|
14
|
+
({ className: t, children: a, variant: o, size: r, ...s }, i) => {
|
|
15
|
+
const n = e.useContext(g);
|
|
16
|
+
return /* @__PURE__ */ m.jsx(
|
|
17
|
+
p,
|
|
18
18
|
{
|
|
19
19
|
ref: i,
|
|
20
|
-
className:
|
|
20
|
+
className: c(
|
|
21
21
|
u({
|
|
22
|
-
variant:
|
|
23
|
-
size:
|
|
22
|
+
variant: n.variant || o,
|
|
23
|
+
size: n.size || r
|
|
24
24
|
}),
|
|
25
25
|
t
|
|
26
26
|
),
|
|
27
|
-
...
|
|
27
|
+
...s,
|
|
28
28
|
children: a
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
|
-
|
|
33
|
+
x.displayName = p?.displayName || "ToggleGroupItem";
|
|
34
34
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
f as ToggleGroup,
|
|
36
|
+
x as ToggleGroupItem
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=toggle-group.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.mjs","sources":["../packages/ui-web/src/toggle-group.tsx"],"sourcesContent":["'use client';\n\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { toggleVariants } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst ToggleGroupContext = React.createContext<VariantProps<typeof toggleVariants>>({\n size: 'default',\n variant: 'default',\n});\n\nexport type ToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants>;\n\nconst ToggleGroup = React.forwardRef<React.ElementRef<typeof ToggleGroupPrimitive.Root>, ToggleGroupProps>(\n ({ className, variant, size, children, ...props }, ref) => (\n <ToggleGroupPrimitive.Root ref={ref} className={cn('flex items-center justify-center gap-1', className)} {...props}>\n <ToggleGroupContext.Provider value={{ variant, size }}>{children}</ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n ),\n);\n\nToggleGroup.displayName = ToggleGroupPrimitive.Root
|
|
1
|
+
{"version":3,"file":"toggle-group.mjs","sources":["../packages/ui-web/src/toggle-group.tsx"],"sourcesContent":["'use client';\n\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { toggleVariants } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst ToggleGroupContext = React.createContext<VariantProps<typeof toggleVariants>>({\n size: 'default',\n variant: 'default',\n});\n\nexport type ToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants>;\n\nconst ToggleGroup = React.forwardRef<React.ElementRef<typeof ToggleGroupPrimitive.Root>, ToggleGroupProps>(\n ({ className, variant, size, children, ...props }, ref) => (\n <ToggleGroupPrimitive.Root ref={ref} className={cn('flex items-center justify-center gap-1', className)} {...props}>\n <ToggleGroupContext.Provider value={{ variant, size }}>{children}</ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n ),\n);\n\nToggleGroup.displayName = ToggleGroupPrimitive.Root?.displayName || 'ToggleGroup';\n\nexport type ToggleGroupItemProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> &\n VariantProps<typeof toggleVariants>;\n\nconst ToggleGroupItem = React.forwardRef<React.ElementRef<typeof ToggleGroupPrimitive.Item>, ToggleGroupItemProps>(\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);\n\nToggleGroupItem.displayName = ToggleGroupPrimitive.Item?.displayName || 'ToggleGroupItem';\n\nexport { ToggleGroup, ToggleGroupItem };\n"],"names":["ToggleGroupContext","React","ToggleGroup","className","variant","size","children","props","ref","jsx","ToggleGroupPrimitive.Root","cn","ToggleGroupItem","context","ToggleGroupPrimitive.Item","toggleVariants"],"mappings":";;;;;AASA,MAAMA,IAAqBC,EAAM,cAAmD;AAAA,EAClF,MAAM;AAAA,EACN,SAAS;AACX,CAAC,GAKKC,IAAcD,EAAM;AAAA,EACxB,CAAC,EAAE,WAAAE,GAAW,SAAAC,GAAS,MAAAC,GAAM,UAAAC,GAAU,GAAGC,KAASC,MACjDC,gBAAAA,EAAAA,IAACC,GAAA,EAA0B,KAAAF,GAAU,WAAWG,EAAG,0CAA0CR,CAAS,GAAI,GAAGI,GAC3G,gCAACP,EAAmB,UAAnB,EAA4B,OAAO,EAAE,SAAAI,GAAS,MAAAC,EAAA,GAAS,UAAAC,GAAS,EAAA,CACnE;AAEJ;AAEAJ,EAAY,cAAcQ,GAA2B,eAAe;AAKpE,MAAME,IAAkBX,EAAM;AAAA,EAC5B,CAAC,EAAE,WAAAE,GAAW,UAAAG,GAAU,SAAAF,GAAS,MAAAC,GAAM,GAAGE,EAAA,GAASC,MAAQ;AACzD,UAAMK,IAAUZ,EAAM,WAAWD,CAAkB;AAEnD,WACES,gBAAAA,EAAAA;AAAAA,MAACK;AAAAA,MAAA;AAAA,QACC,KAAAN;AAAA,QACA,WAAWG;AAAA,UACTI,EAAe;AAAA,YACb,SAASF,EAAQ,WAAWT;AAAA,YAC5B,MAAMS,EAAQ,QAAQR;AAAA,UAAA,CACvB;AAAA,UACDF;AAAA,QAAA;AAAA,QAED,GAAGI;AAAA,QAEH,UAAAD;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AAEAM,EAAgB,cAAcE,GAA2B,eAAe;"}
|
package/dist/toggle.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./vendor-DQFuDa7q.js"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./vendor-DQFuDa7q.js"),l=require("react"),a=require("./toggle-BAzsZDaN.js"),i=require("./utils--qajXu5A.js");function g(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const u=g(l),s=u.forwardRef(({className:e,variant:o,size:t,...r},c)=>n.jsxRuntimeExports.jsx(n.Root$10,{ref:c,className:i.cn(a.toggleVariants({variant:o,size:t,className:e})),...r}));s.displayName=n.Root$10?.displayName||"Toggle";exports.toggleVariants=a.toggleVariants;exports.Toggle=s;
|
|
2
2
|
//# sourceMappingURL=toggle.cjs.map
|
package/dist/toggle.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.cjs","sources":["../packages/ui-web/src/toggle.tsx"],"sourcesContent":["'use client';\n\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { ToggleBaseProps, toggleVariants } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface ToggleProps\n extends\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>,\n Omit<VariantProps<typeof toggleVariants>, 'size' | 'variant'>,\n ToggleBaseProps {}\n\nconst Toggle = React.forwardRef<React.ElementRef<typeof TogglePrimitive.Root>, ToggleProps>(\n ({ className, variant, size, ...props }, ref) => (\n <TogglePrimitive.Root ref={ref} className={cn(toggleVariants({ variant, size, className }))} {...props} />\n ),\n);\n\nToggle.displayName = TogglePrimitive.Root
|
|
1
|
+
{"version":3,"file":"toggle.cjs","sources":["../packages/ui-web/src/toggle.tsx"],"sourcesContent":["'use client';\n\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { ToggleBaseProps, toggleVariants } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface ToggleProps\n extends\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>,\n Omit<VariantProps<typeof toggleVariants>, 'size' | 'variant'>,\n ToggleBaseProps {}\n\nconst Toggle = React.forwardRef<React.ElementRef<typeof TogglePrimitive.Root>, ToggleProps>(\n ({ className, variant, size, ...props }, ref) => (\n <TogglePrimitive.Root ref={ref} className={cn(toggleVariants({ variant, size, className }))} {...props} />\n ),\n);\n\nToggle.displayName = TogglePrimitive.Root?.displayName || 'Toggle';\n\nexport { Toggle, toggleVariants };\n"],"names":["Toggle","React","className","variant","size","props","ref","jsx","TogglePrimitive.Root","cn","toggleVariants"],"mappings":"qfAeMA,EAASC,EAAM,WACnB,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,KAAAC,EAAM,GAAGC,GAASC,IACvCC,EAAAA,kBAAAA,IAACC,UAAA,CAAqB,IAAAF,EAAU,UAAWG,EAAAA,GAAGC,EAAAA,eAAe,CAAE,QAAAP,EAAS,KAAAC,EAAM,UAAAF,CAAA,CAAW,CAAC,EAAI,GAAGG,CAAA,CAAO,CAE5G,EAEAL,EAAO,YAAcQ,WAAsB,aAAe"}
|
package/dist/toggle.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as
|
|
2
|
+
import { j as m, bI as o } from "./vendor-DxBXMLEx.mjs";
|
|
3
3
|
import * as i from "react";
|
|
4
4
|
import { t as p } from "./toggle-Dmzr60z6.mjs";
|
|
5
|
-
import { c } from "./utils-
|
|
6
|
-
const
|
|
7
|
-
({ className: a, variant: s, size: t, ...r },
|
|
5
|
+
import { c as l } from "./utils-CgPEtJt0.mjs";
|
|
6
|
+
const c = i.forwardRef(
|
|
7
|
+
({ className: a, variant: s, size: t, ...r }, e) => /* @__PURE__ */ m.jsx(o, { ref: e, className: l(p({ variant: s, size: t, className: a })), ...r })
|
|
8
8
|
);
|
|
9
|
-
|
|
9
|
+
c.displayName = o?.displayName || "Toggle";
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
c as Toggle,
|
|
12
12
|
p as toggleVariants
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=toggle.mjs.map
|
package/dist/toggle.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.mjs","sources":["../packages/ui-web/src/toggle.tsx"],"sourcesContent":["'use client';\n\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { ToggleBaseProps, toggleVariants } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface ToggleProps\n extends\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>,\n Omit<VariantProps<typeof toggleVariants>, 'size' | 'variant'>,\n ToggleBaseProps {}\n\nconst Toggle = React.forwardRef<React.ElementRef<typeof TogglePrimitive.Root>, ToggleProps>(\n ({ className, variant, size, ...props }, ref) => (\n <TogglePrimitive.Root ref={ref} className={cn(toggleVariants({ variant, size, className }))} {...props} />\n ),\n);\n\nToggle.displayName = TogglePrimitive.Root
|
|
1
|
+
{"version":3,"file":"toggle.mjs","sources":["../packages/ui-web/src/toggle.tsx"],"sourcesContent":["'use client';\n\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { ToggleBaseProps, toggleVariants } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface ToggleProps\n extends\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>,\n Omit<VariantProps<typeof toggleVariants>, 'size' | 'variant'>,\n ToggleBaseProps {}\n\nconst Toggle = React.forwardRef<React.ElementRef<typeof TogglePrimitive.Root>, ToggleProps>(\n ({ className, variant, size, ...props }, ref) => (\n <TogglePrimitive.Root ref={ref} className={cn(toggleVariants({ variant, size, className }))} {...props} />\n ),\n);\n\nToggle.displayName = TogglePrimitive.Root?.displayName || 'Toggle';\n\nexport { Toggle, toggleVariants };\n"],"names":["Toggle","React","className","variant","size","props","ref","jsx","TogglePrimitive.Root","cn","toggleVariants"],"mappings":";;;;;AAeA,MAAMA,IAASC,EAAM;AAAA,EACnB,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,MAAAC,GAAM,GAAGC,KAASC,MACvCC,gBAAAA,EAAAA,IAACC,GAAA,EAAqB,KAAAF,GAAU,WAAWG,EAAGC,EAAe,EAAE,SAAAP,GAAS,MAAAC,GAAM,WAAAF,EAAA,CAAW,CAAC,GAAI,GAAGG,EAAA,CAAO;AAE5G;AAEAL,EAAO,cAAcQ,GAAsB,eAAe;"}
|
package/dist/tooltip.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),d=require("react"),l=require("./utils
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),d=require("react"),l=require("./utils--qajXu5A.js");function p(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}return o.default=t,Object.freeze(o)}const n=p(d),c=({delayDuration:t=0,...o})=>e.jsxRuntimeExports.jsx(e.Provider,{delayDuration:t,...o}),m=({...t})=>e.jsxRuntimeExports.jsx(e.Root3$1,{...t}),s=n.forwardRef(({className:t,...o},r)=>e.jsxRuntimeExports.jsx(e.Trigger$9,{ref:r,className:t,...o}));s.displayName=e.Trigger$9?.displayName||"TooltipTrigger";const a=n.forwardRef(({className:t,sideOffset:o=4,...r},i)=>e.jsxRuntimeExports.jsx(e.Content2$8,{ref:i,sideOffset:o,className:l.cn("bg-popover text-popover-foreground 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 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md",t),...r}));a.displayName=e.Content2$8?.displayName||"TooltipContent";exports.Tooltip=m;exports.TooltipContent=a;exports.TooltipProvider=c;exports.TooltipTrigger=s;
|
|
2
2
|
//# sourceMappingURL=tooltip.cjs.map
|
package/dist/tooltip.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.cjs","sources":["../packages/ui-web/src/tooltip.tsx"],"sourcesContent":["'use client';\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport * as React from 'react';\n\nimport {\n TooltipBaseProps,\n TooltipContentBaseProps,\n TooltipProviderBaseProps,\n TooltipTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport type TooltipProviderProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider> &\n TooltipProviderBaseProps;\n\nconst TooltipProvider = ({ delayDuration = 0, ...props }: TooltipProviderProps) => (\n <TooltipPrimitive.Provider delayDuration={delayDuration} {...props} />\n);\n\nexport type TooltipProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root> & TooltipBaseProps;\n\nconst Tooltip = ({ ...props }: TooltipProps) => <TooltipPrimitive.Root {...props} />;\n\nexport type TooltipTriggerProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger> &\n TooltipTriggerBaseProps;\n\nconst TooltipTrigger = React.forwardRef<React.ElementRef<typeof TooltipPrimitive.Trigger>, TooltipTriggerProps>(\n ({ className, ...props }, ref) => <TooltipPrimitive.Trigger ref={ref} className={className} {...props} />,\n);\nTooltipTrigger.displayName = TooltipPrimitive.Trigger
|
|
1
|
+
{"version":3,"file":"tooltip.cjs","sources":["../packages/ui-web/src/tooltip.tsx"],"sourcesContent":["'use client';\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport * as React from 'react';\n\nimport {\n TooltipBaseProps,\n TooltipContentBaseProps,\n TooltipProviderBaseProps,\n TooltipTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport type TooltipProviderProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider> &\n TooltipProviderBaseProps;\n\nconst TooltipProvider = ({ delayDuration = 0, ...props }: TooltipProviderProps) => (\n <TooltipPrimitive.Provider delayDuration={delayDuration} {...props} />\n);\n\nexport type TooltipProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root> & TooltipBaseProps;\n\nconst Tooltip = ({ ...props }: TooltipProps) => <TooltipPrimitive.Root {...props} />;\n\nexport type TooltipTriggerProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger> &\n TooltipTriggerBaseProps;\n\nconst TooltipTrigger = React.forwardRef<React.ElementRef<typeof TooltipPrimitive.Trigger>, TooltipTriggerProps>(\n ({ className, ...props }, ref) => <TooltipPrimitive.Trigger ref={ref} className={className} {...props} />,\n);\nTooltipTrigger.displayName = TooltipPrimitive.Trigger?.displayName || 'TooltipTrigger';\n\nexport type TooltipContentProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> &\n TooltipContentBaseProps;\n\nconst TooltipContent = React.forwardRef<React.ElementRef<typeof TooltipPrimitive.Content>, TooltipContentProps>(\n ({ className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground 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 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md',\n className,\n )}\n {...props}\n />\n ),\n);\nTooltipContent.displayName = TooltipPrimitive.Content?.displayName || 'TooltipContent';\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };\n"],"names":["TooltipProvider","delayDuration","props","jsx","TooltipPrimitive.Provider","Tooltip","TooltipPrimitive.Root","TooltipTrigger","React","className","ref","TooltipPrimitive.Trigger","TooltipContent","sideOffset","TooltipPrimitive.Content","cn"],"mappings":"mdAgBMA,EAAkB,CAAC,CAAE,cAAAC,EAAgB,EAAG,GAAGC,KAC/CC,EAAAA,kBAAAA,IAACC,EAAAA,SAAA,CAA0B,cAAAH,EAA+B,GAAGC,CAAA,CAAO,EAKhEG,EAAU,CAAC,CAAE,GAAGH,CAAA,IAA0BC,EAAAA,kBAAAA,IAACG,EAAAA,QAAA,CAAuB,GAAGJ,CAAA,CAAO,EAK5EK,EAAiBC,EAAM,WAC3B,CAAC,CAAE,UAAAC,EAAW,GAAGP,GAASQ,IAAQP,wBAACQ,EAAAA,UAAA,CAAyB,IAAAD,EAAU,UAAAD,EAAuB,GAAGP,CAAA,CAAO,CACzG,EACAK,EAAe,YAAcI,aAA0B,aAAe,iBAKtE,MAAMC,EAAiBJ,EAAM,WAC3B,CAAC,CAAE,UAAAC,EAAW,WAAAI,EAAa,EAAG,GAAGX,CAAA,EAASQ,IACxCP,EAAAA,kBAAAA,IAACW,EAAAA,WAAA,CACC,IAAAJ,EACA,WAAAG,EACA,UAAWE,EAAAA,GACT,qYACAN,CAAA,EAED,GAAGP,CAAA,CAAA,CAGV,EACAU,EAAe,YAAcE,cAA0B,aAAe"}
|
package/dist/tooltip.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as e, bL as
|
|
3
|
-
import * as
|
|
4
|
-
import { c as p } from "./utils-
|
|
5
|
-
const
|
|
6
|
-
({ className: o, ...t }, a) => /* @__PURE__ */ e.jsx(
|
|
2
|
+
import { j as e, bL as i, bM as s, bN as m, bO as n } from "./vendor-DxBXMLEx.mjs";
|
|
3
|
+
import * as d from "react";
|
|
4
|
+
import { c as p } from "./utils-CgPEtJt0.mjs";
|
|
5
|
+
const x = ({ delayDuration: o = 0, ...t }) => /* @__PURE__ */ e.jsx(n, { delayDuration: o, ...t }), T = ({ ...o }) => /* @__PURE__ */ e.jsx(m, { ...o }), l = d.forwardRef(
|
|
6
|
+
({ className: o, ...t }, a) => /* @__PURE__ */ e.jsx(i, { ref: a, className: o, ...t })
|
|
7
7
|
);
|
|
8
|
-
l.displayName =
|
|
9
|
-
const f =
|
|
8
|
+
l.displayName = i?.displayName || "TooltipTrigger";
|
|
9
|
+
const f = d.forwardRef(
|
|
10
10
|
({ className: o, sideOffset: t = 4, ...a }, r) => /* @__PURE__ */ e.jsx(
|
|
11
|
-
|
|
11
|
+
s,
|
|
12
12
|
{
|
|
13
13
|
ref: r,
|
|
14
14
|
sideOffset: t,
|
|
@@ -20,11 +20,11 @@ const f = i.forwardRef(
|
|
|
20
20
|
}
|
|
21
21
|
)
|
|
22
22
|
);
|
|
23
|
-
f.displayName =
|
|
23
|
+
f.displayName = s?.displayName || "TooltipContent";
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
T as Tooltip,
|
|
26
26
|
f as TooltipContent,
|
|
27
|
-
|
|
27
|
+
x as TooltipProvider,
|
|
28
28
|
l as TooltipTrigger
|
|
29
29
|
};
|
|
30
30
|
//# sourceMappingURL=tooltip.mjs.map
|
package/dist/tooltip.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.mjs","sources":["../packages/ui-web/src/tooltip.tsx"],"sourcesContent":["'use client';\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport * as React from 'react';\n\nimport {\n TooltipBaseProps,\n TooltipContentBaseProps,\n TooltipProviderBaseProps,\n TooltipTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport type TooltipProviderProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider> &\n TooltipProviderBaseProps;\n\nconst TooltipProvider = ({ delayDuration = 0, ...props }: TooltipProviderProps) => (\n <TooltipPrimitive.Provider delayDuration={delayDuration} {...props} />\n);\n\nexport type TooltipProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root> & TooltipBaseProps;\n\nconst Tooltip = ({ ...props }: TooltipProps) => <TooltipPrimitive.Root {...props} />;\n\nexport type TooltipTriggerProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger> &\n TooltipTriggerBaseProps;\n\nconst TooltipTrigger = React.forwardRef<React.ElementRef<typeof TooltipPrimitive.Trigger>, TooltipTriggerProps>(\n ({ className, ...props }, ref) => <TooltipPrimitive.Trigger ref={ref} className={className} {...props} />,\n);\nTooltipTrigger.displayName = TooltipPrimitive.Trigger
|
|
1
|
+
{"version":3,"file":"tooltip.mjs","sources":["../packages/ui-web/src/tooltip.tsx"],"sourcesContent":["'use client';\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport * as React from 'react';\n\nimport {\n TooltipBaseProps,\n TooltipContentBaseProps,\n TooltipProviderBaseProps,\n TooltipTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport type TooltipProviderProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider> &\n TooltipProviderBaseProps;\n\nconst TooltipProvider = ({ delayDuration = 0, ...props }: TooltipProviderProps) => (\n <TooltipPrimitive.Provider delayDuration={delayDuration} {...props} />\n);\n\nexport type TooltipProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root> & TooltipBaseProps;\n\nconst Tooltip = ({ ...props }: TooltipProps) => <TooltipPrimitive.Root {...props} />;\n\nexport type TooltipTriggerProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger> &\n TooltipTriggerBaseProps;\n\nconst TooltipTrigger = React.forwardRef<React.ElementRef<typeof TooltipPrimitive.Trigger>, TooltipTriggerProps>(\n ({ className, ...props }, ref) => <TooltipPrimitive.Trigger ref={ref} className={className} {...props} />,\n);\nTooltipTrigger.displayName = TooltipPrimitive.Trigger?.displayName || 'TooltipTrigger';\n\nexport type TooltipContentProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> &\n TooltipContentBaseProps;\n\nconst TooltipContent = React.forwardRef<React.ElementRef<typeof TooltipPrimitive.Content>, TooltipContentProps>(\n ({ className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground 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 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md',\n className,\n )}\n {...props}\n />\n ),\n);\nTooltipContent.displayName = TooltipPrimitive.Content?.displayName || 'TooltipContent';\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };\n"],"names":["TooltipProvider","delayDuration","props","jsx","TooltipPrimitive.Provider","Tooltip","TooltipPrimitive.Root","TooltipTrigger","React","className","ref","TooltipPrimitive.Trigger","TooltipContent","sideOffset","TooltipPrimitive.Content","cn"],"mappings":";;;;AAgBA,MAAMA,IAAkB,CAAC,EAAE,eAAAC,IAAgB,GAAG,GAAGC,QAC/CC,gBAAAA,EAAAA,IAACC,GAAA,EAA0B,eAAAH,GAA+B,GAAGC,EAAA,CAAO,GAKhEG,IAAU,CAAC,EAAE,GAAGH,EAAA,MAA0BC,gBAAAA,EAAAA,IAACG,GAAA,EAAuB,GAAGJ,EAAA,CAAO,GAK5EK,IAAiBC,EAAM;AAAA,EAC3B,CAAC,EAAE,WAAAC,GAAW,GAAGP,KAASQ,MAAQP,gBAAAA,MAACQ,GAAA,EAAyB,KAAAD,GAAU,WAAAD,GAAuB,GAAGP,EAAA,CAAO;AACzG;AACAK,EAAe,cAAcI,GAA0B,eAAe;AAKtE,MAAMC,IAAiBJ,EAAM;AAAA,EAC3B,CAAC,EAAE,WAAAC,GAAW,YAAAI,IAAa,GAAG,GAAGX,EAAA,GAASQ,MACxCP,gBAAAA,EAAAA;AAAAA,IAACW;AAAAA,IAAA;AAAA,MACC,KAAAJ;AAAA,MACA,YAAAG;AAAA,MACA,WAAWE;AAAA,QACT;AAAA,QACAN;AAAA,MAAA;AAAA,MAED,GAAGP;AAAA,IAAA;AAAA,EAAA;AAGV;AACAU,EAAe,cAAcE,GAA0B,eAAe;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const r=require("./vendor-DQFuDa7q.js");function t(...e){return r.twMerge(r.clsx(e))}function n(e){return e.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-")}exports.cn=t;exports.slugify=n;
|
|
2
|
+
//# sourceMappingURL=utils--qajXu5A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils--qajXu5A.js","sources":["../packages/ui-web/src/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function slugify(text: string): string {\n return text\n .toString()\n .toLowerCase()\n .trim()\n .replace(/\\s+/g, '-') // Replace spaces with -\n .replace(/[^\\w-]+/g, '') // Remove all non-word chars\n .replace(/--+/g, '-'); // Replace multiple - with single -\n}\n"],"names":["cn","inputs","twMerge","clsx","slugify","text"],"mappings":"qDAGO,SAASA,KAAMC,EAAsB,CAC1C,OAAOC,EAAAA,QAAQC,OAAKF,CAAM,CAAC,CAC7B,CAEO,SAASG,EAAQC,EAAsB,CAC5C,OAAOA,EACJ,SAAA,EACA,YAAA,EACA,OACA,QAAQ,OAAQ,GAAG,EACnB,QAAQ,WAAY,EAAE,EACtB,QAAQ,OAAQ,GAAG,CACxB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { aQ as e, aR as t } from "./vendor-DxBXMLEx.mjs";
|
|
2
|
+
function s(...r) {
|
|
3
|
+
return e(t(r));
|
|
4
|
+
}
|
|
5
|
+
function c(r) {
|
|
6
|
+
return r.toString().toLowerCase().trim().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-");
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
s as c,
|
|
10
|
+
c as s
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=utils-CgPEtJt0.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-CgPEtJt0.mjs","sources":["../packages/ui-web/src/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function slugify(text: string): string {\n return text\n .toString()\n .toLowerCase()\n .trim()\n .replace(/\\s+/g, '-') // Replace spaces with -\n .replace(/[^\\w-]+/g, '') // Remove all non-word chars\n .replace(/--+/g, '-'); // Replace multiple - with single -\n}\n"],"names":["cn","inputs","twMerge","clsx","slugify","text"],"mappings":";AAGO,SAASA,KAAMC,GAAsB;AAC1C,SAAOC,EAAQC,EAAKF,CAAM,CAAC;AAC7B;AAEO,SAASG,EAAQC,GAAsB;AAC5C,SAAOA,EACJ,SAAA,EACA,YAAA,EACA,OACA,QAAQ,QAAQ,GAAG,EACnB,QAAQ,YAAY,EAAE,EACtB,QAAQ,QAAQ,GAAG;AACxB;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gv-tech/design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "Garcia Ventures react design system",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"apps/*"
|
|
41
41
|
],
|
|
42
42
|
"scripts": {
|
|
43
|
+
"clean": "rm -rf .nx .next .expo .turbo dist dist-site *.tsbuildinfo .eslintcache",
|
|
43
44
|
"build": "rm -f tsconfig.tsbuildinfo && bun build:registry && VITE_LIB=true vite build",
|
|
44
45
|
"build:registry": "tsx scripts/build-registry.ts",
|
|
45
46
|
"build:site": "bun --filter playground-web build",
|
|
@@ -91,25 +92,25 @@
|
|
|
91
92
|
"react-dom": "^19.2.4"
|
|
92
93
|
},
|
|
93
94
|
"dependencies": {
|
|
94
|
-
"@expo/metro-config": "~54.0.
|
|
95
|
+
"@expo/metro-config": "~54.0.14",
|
|
95
96
|
"@expo/metro-runtime": "~6.1.2",
|
|
96
97
|
"@rn-primitives/types": "^1.2.0",
|
|
97
98
|
"class-variance-authority": "^0.7.1",
|
|
98
|
-
"expo": "~54.0.
|
|
99
|
-
"expo-splash-screen": "~31.0.
|
|
100
|
-
"expo-status-bar": "~3.0.
|
|
101
|
-
"expo-system-ui": "~6.0.
|
|
99
|
+
"expo": "~54.0.33",
|
|
100
|
+
"expo-splash-screen": "~31.0.13",
|
|
101
|
+
"expo-status-bar": "~3.0.9",
|
|
102
|
+
"expo-system-ui": "~6.0.9",
|
|
102
103
|
"lucide-react-native": "^0.574.0",
|
|
103
104
|
"react": "^19.2.4",
|
|
104
105
|
"react-dom": "^19.2.4",
|
|
105
106
|
"react-native": "0.81.5",
|
|
106
107
|
"react-native-svg": "^15.15.3",
|
|
107
|
-
"react-native-svg-transformer": "~1.5.
|
|
108
|
-
"tslib": "^2.
|
|
108
|
+
"react-native-svg-transformer": "~1.5.3",
|
|
109
|
+
"tslib": "^2.8.1"
|
|
109
110
|
},
|
|
110
111
|
"devDependencies": {
|
|
111
112
|
"@eng618/prettier-config": "^2.9.1",
|
|
112
|
-
"@expo/cli": "~54.0.
|
|
113
|
+
"@expo/cli": "~54.0.23",
|
|
113
114
|
"@gv-tech/eslint-config": "^0.1.8",
|
|
114
115
|
"@nx/expo": "22.5.3",
|
|
115
116
|
"@nx/jest": "22.5.3",
|
|
@@ -140,8 +141,8 @@
|
|
|
140
141
|
"husky": "^9.1.7",
|
|
141
142
|
"jsdom": "^27.4.0",
|
|
142
143
|
"lint-staged": "^16.2.7",
|
|
143
|
-
"metro-config": "~0.83.
|
|
144
|
-
"metro-resolver": "~0.83.
|
|
144
|
+
"metro-config": "~0.83.4",
|
|
145
|
+
"metro-resolver": "~0.83.4",
|
|
145
146
|
"next-themes": "^0.4.6",
|
|
146
147
|
"nx": "^22.5.3",
|
|
147
148
|
"postcss": "^8.5.6",
|
|
@@ -151,7 +152,7 @@
|
|
|
151
152
|
"prettier-plugin-packagejson": "^3.0.0",
|
|
152
153
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
153
154
|
"react-icons": "^5.5.0",
|
|
154
|
-
"react-native-reanimated": "~3.16.
|
|
155
|
+
"react-native-reanimated": "~3.16.7",
|
|
155
156
|
"react-native-web": "^0.21.2",
|
|
156
157
|
"react-router-dom": "^7.13.1",
|
|
157
158
|
"recharts": "2.15.4",
|
|
@@ -166,9 +167,9 @@
|
|
|
166
167
|
},
|
|
167
168
|
"peerDependencies": {
|
|
168
169
|
"lucide-react-native": "^0.475.0",
|
|
169
|
-
"nativewind": "^4.
|
|
170
|
+
"nativewind": "^4.2.2",
|
|
170
171
|
"next-themes": "^0.4.0",
|
|
171
|
-
"prop-types": "^15.8.
|
|
172
|
+
"prop-types": "^15.8.1",
|
|
172
173
|
"react": "^18 || ^19",
|
|
173
174
|
"react-dom": "^18 || ^19",
|
|
174
175
|
"react-is": "^16 || ^17 || ^18 || ^19",
|
package/dist/utils-DKStzUzN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-DKStzUzN.js","sources":["../packages/ui-web/src/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"names":["cn","inputs","twMerge","clsx"],"mappings":"qDAGO,SAASA,KAAMC,EAAsB,CAC1C,OAAOC,EAAAA,QAAQC,OAAKF,CAAM,CAAC,CAC7B"}
|
package/dist/utils-Dk-Gx69q.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-Dk-Gx69q.mjs","sources":["../packages/ui-web/src/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"names":["cn","inputs","twMerge","clsx"],"mappings":";AAGO,SAASA,KAAMC,GAAsB;AAC1C,SAAOC,EAAQC,EAAKF,CAAM,CAAC;AAC7B;"}
|