@gv-tech/design-system 2.15.2 → 2.17.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/README.md +13 -13
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.cjs.map +1 -1
- package/dist/accordion.mjs +12 -12
- 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 +2 -2
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.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 +2 -2
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +2 -2
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +2 -2
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +2 -2
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +2 -2
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +2 -2
- package/dist/chart.cjs +1 -1
- package/dist/chart.mjs +2 -2
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.cjs.map +1 -1
- package/dist/checkbox.mjs +3 -3
- package/dist/checkbox.mjs.map +1 -1
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +1 -1
- package/dist/command.cjs +1 -1
- package/dist/command.cjs.map +1 -1
- package/dist/command.mjs +25 -25
- 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 +2 -2
- 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 +113 -0
- package/dist/index.mjs +119 -113
- package/dist/index.mjs.map +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +2 -2
- package/dist/label.cjs +1 -1
- package/dist/label.cjs.map +1 -1
- package/dist/label.mjs +4 -4
- 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 +17 -17
- package/dist/navigation-menu.mjs.map +1 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +2 -2
- 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 +2 -2
- 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/scroll-to-top.cjs +2 -0
- package/dist/scroll-to-top.cjs.map +1 -0
- package/dist/scroll-to-top.d.ts +37 -0
- package/dist/scroll-to-top.mjs +86 -0
- package/dist/scroll-to-top.mjs.map +1 -0
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +4 -4
- package/dist/select.cjs +1 -1
- package/dist/select.cjs.map +1 -1
- package/dist/select.mjs +37 -37
- 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 +20 -20
- package/dist/sheet.mjs.map +1 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +2 -2
- package/dist/slider.cjs +1 -1
- package/dist/slider.cjs.map +1 -1
- package/dist/slider.mjs +3 -3
- package/dist/slider.mjs.map +1 -1
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.mjs +1 -1
- package/dist/support-fab.cjs +2 -0
- package/dist/support-fab.cjs.map +1 -0
- package/dist/support-fab.d.ts +20 -0
- package/dist/support-fab.mjs +120 -0
- package/dist/support-fab.mjs.map +1 -0
- 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 +2 -2
- 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 +2 -2
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +2 -2
- package/dist/theme-provider.cjs +1 -1
- package/dist/theme-provider.mjs +1 -1
- package/dist/{theme-toggle-B1DHy3Aq.mjs → theme-toggle-BNtYv2Jv.mjs} +5 -5
- package/dist/{theme-toggle-B1DHy3Aq.mjs.map → theme-toggle-BNtYv2Jv.mjs.map} +1 -1
- package/dist/{theme-toggle-CEOvAx_E.js → theme-toggle-DK_OhDRf.js} +2 -2
- package/dist/{theme-toggle-CEOvAx_E.js.map → theme-toggle-DK_OhDRf.js.map} +1 -1
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +3 -3
- 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/{toaster-BqX0t2H6.mjs → toaster-Cj_SryBI.mjs} +2 -2
- package/dist/{toaster-BqX0t2H6.mjs.map → toaster-Cj_SryBI.mjs.map} +1 -1
- package/dist/{toaster-CKwNMV1Z.js → toaster-Q_hzVonm.js} +2 -2
- package/dist/{toaster-CKwNMV1Z.js.map → toaster-Q_hzVonm.js.map} +1 -1
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -2
- package/dist/{toggle-Dmzr60z6.mjs → toggle-DPMTgo47.mjs} +2 -2
- package/dist/{toggle-Dmzr60z6.mjs.map → toggle-DPMTgo47.mjs.map} +1 -1
- package/dist/{toggle-BAzsZDaN.js → toggle-_F_yB_Dj.js} +2 -2
- package/dist/{toggle-BAzsZDaN.js.map → toggle-_F_yB_Dj.js.map} +1 -1
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.cjs.map +1 -1
- package/dist/toggle-group.mjs +19 -19
- 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 +7 -7
- 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-Bgpn0CK0.mjs +12 -0
- package/dist/utils-Bgpn0CK0.mjs.map +1 -0
- package/dist/utils-CBWPs0D7.js +2 -0
- package/dist/utils-CBWPs0D7.js.map +1 -0
- package/dist/{vendor-DxBXMLEx.mjs → vendor-BQwS7aJt.mjs} +1953 -1929
- package/dist/vendor-BQwS7aJt.mjs.map +1 -0
- package/dist/{vendor-DQFuDa7q.js → vendor-B_07FHqh.js} +14 -14
- package/dist/vendor-B_07FHqh.js.map +1 -0
- package/package.json +73 -78
- 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/vendor-DQFuDa7q.js.map +0 -1
- package/dist/vendor-DxBXMLEx.mjs.map +0 -1
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;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as T } from "./vendor-
|
|
1
|
+
import { j as T } from "./vendor-BQwS7aJt.mjs";
|
|
2
2
|
import * as A from "react";
|
|
3
3
|
import { ToastProvider as E, Toast as _, ToastTitle as f, ToastDescription as m, ToastClose as D, ToastViewport as l } from "./toast.mjs";
|
|
4
4
|
const I = 1, M = 1e6, a = {
|
|
@@ -116,4 +116,4 @@ export {
|
|
|
116
116
|
j as t,
|
|
117
117
|
R as u
|
|
118
118
|
};
|
|
119
|
-
//# sourceMappingURL=toaster-
|
|
119
|
+
//# sourceMappingURL=toaster-Cj_SryBI.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toaster-
|
|
1
|
+
{"version":3,"file":"toaster-Cj_SryBI.mjs","sources":["../packages/ui-web/src/hooks/use-toast.ts","../packages/ui-web/src/toaster.tsx"],"sourcesContent":["'use client';\n\n// Inspired by react-hot-toast library\nimport * as React from 'react';\n\nimport type { ToastActionElement, ToastProps } from '../index';\n\nconst TOAST_LIMIT = 1;\nconst TOAST_REMOVE_DELAY = 1000000;\n\ntype ToasterToast = ToastProps & {\n id: string;\n title?: React.ReactNode;\n description?: React.ReactNode;\n action?: ToastActionElement;\n};\n\nconst actionTypes = {\n ADD_TOAST: 'ADD_TOAST',\n UPDATE_TOAST: 'UPDATE_TOAST',\n DISMISS_TOAST: 'DISMISS_TOAST',\n REMOVE_TOAST: 'REMOVE_TOAST',\n} as const;\n\nlet count = 0;\n\nfunction genId() {\n count = (count + 1) % Number.MAX_SAFE_INTEGER;\n return count.toString();\n}\n\ntype ActionType = typeof actionTypes;\n\ntype Action =\n | {\n type: ActionType['ADD_TOAST'];\n toast: ToasterToast;\n }\n | {\n type: ActionType['UPDATE_TOAST'];\n toast: Partial<ToasterToast>;\n }\n | {\n type: ActionType['DISMISS_TOAST'];\n toastId?: ToasterToast['id'];\n }\n | {\n type: ActionType['REMOVE_TOAST'];\n toastId?: ToasterToast['id'];\n };\n\ninterface State {\n toasts: ToasterToast[];\n}\n\nconst toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>();\n\nconst addToRemoveQueue = (toastId: string) => {\n if (toastTimeouts.has(toastId)) {\n return;\n }\n\n const timeout = setTimeout(() => {\n toastTimeouts.delete(toastId);\n dispatch({\n type: 'REMOVE_TOAST',\n toastId: toastId,\n });\n }, TOAST_REMOVE_DELAY);\n\n toastTimeouts.set(toastId, timeout);\n};\n\nexport const reducer = (state: State, action: Action): State => {\n switch (action.type) {\n case actionTypes.ADD_TOAST:\n return {\n ...state,\n toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),\n };\n\n case actionTypes.UPDATE_TOAST:\n return {\n ...state,\n toasts: state.toasts.map((t) => (t.id === action.toast.id ? { ...t, ...action.toast } : t)),\n };\n\n case actionTypes.DISMISS_TOAST: {\n const { toastId } = action;\n\n // ! Side effects ! - This could be extracted into a dismissToast() action,\n // but I'll keep it here for simplicity\n if (toastId) {\n addToRemoveQueue(toastId);\n } else {\n state.toasts.forEach((toast) => {\n addToRemoveQueue(toast.id);\n });\n }\n\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === toastId || toastId === undefined\n ? {\n ...t,\n open: false,\n }\n : t,\n ),\n };\n }\n case actionTypes.REMOVE_TOAST:\n if (action.toastId === undefined) {\n return {\n ...state,\n toasts: [],\n };\n }\n return {\n ...state,\n toasts: state.toasts.filter((t) => t.id !== action.toastId),\n };\n }\n};\n\nconst listeners: Array<(state: State) => void> = [];\n\nlet memoryState: State = { toasts: [] };\n\nfunction dispatch(action: Action) {\n memoryState = reducer(memoryState, action);\n listeners.forEach((listener) => {\n listener(memoryState);\n });\n}\n\ntype Toast = Omit<ToasterToast, 'id'>;\n\nfunction toast({ ...props }: Toast) {\n const id = genId();\n\n const update = (props: ToasterToast) =>\n dispatch({\n type: 'UPDATE_TOAST',\n toast: { ...props, id },\n });\n const dismiss = () => dispatch({ type: 'DISMISS_TOAST', toastId: id });\n\n dispatch({\n type: 'ADD_TOAST',\n toast: {\n ...props,\n id,\n open: true,\n onOpenChange: (open) => {\n if (!open) {\n dismiss();\n }\n },\n },\n });\n\n return {\n id: id,\n dismiss,\n update,\n };\n}\n\nfunction useToast() {\n const [state, setState] = React.useState<State>(memoryState);\n\n React.useEffect(() => {\n listeners.push(setState);\n return () => {\n const index = listeners.indexOf(setState);\n if (index > -1) {\n listeners.splice(index, 1);\n }\n };\n }, [state]);\n\n return {\n ...state,\n toast,\n dismiss: (toastId?: string) => dispatch({ type: 'DISMISS_TOAST', toastId }),\n };\n}\n\nexport { toast, useToast };\n","'use client';\n\nimport { ToasterBaseProps } from '@gv-tech/ui-core';\nimport { useToast } from './hooks/use-toast';\nimport { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from './toast';\n\nexport function Toaster({ ...props }: ToasterBaseProps) {\n const { toasts } = useToast();\n\n return (\n <ToastProvider {...props}>\n {toasts.map(function ({ id, title, description, action, ...props }) {\n return (\n <Toast key={id} {...props}>\n <div className=\"grid gap-1\">\n {title && <ToastTitle>{title}</ToastTitle>}\n {description && <ToastDescription>{description}</ToastDescription>}\n </div>\n {action}\n <ToastClose />\n </Toast>\n );\n })}\n <ToastViewport />\n </ToastProvider>\n );\n}\n"],"names":["TOAST_LIMIT","TOAST_REMOVE_DELAY","actionTypes","count","genId","toastTimeouts","addToRemoveQueue","toastId","timeout","dispatch","reducer","state","action","t","toast","listeners","memoryState","listener","props","id","update","dismiss","open","useToast","setState","React","index","Toaster","toasts","jsxs","ToastProvider","title","description","Toast","jsx","ToastTitle","ToastDescription","ToastClose","ToastViewport"],"mappings":";;;AAOA,MAAMA,IAAc,GACdC,IAAqB,KASrBC,IAAc;AAAA,EAClB,WAAW;AAAA,EACX,cAAc;AAAA,EACd,eAAe;AAAA,EACf,cAAc;AAChB;AAEA,IAAIC,IAAQ;AAEZ,SAASC,IAAQ;AACf,SAAAD,KAASA,IAAQ,KAAK,OAAO,kBACtBA,EAAM,SAAA;AACf;AA0BA,MAAME,wBAAoB,IAAA,GAEpBC,IAAmB,CAACC,MAAoB;AAC5C,MAAIF,EAAc,IAAIE,CAAO;AAC3B;AAGF,QAAMC,IAAU,WAAW,MAAM;AAC/B,IAAAH,EAAc,OAAOE,CAAO,GAC5BE,EAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAAF;AAAA,IAAA,CACD;AAAA,EACH,GAAGN,CAAkB;AAErB,EAAAI,EAAc,IAAIE,GAASC,CAAO;AACpC,GAEaE,IAAU,CAACC,GAAcC,MAA0B;AAC9D,UAAQA,EAAO,MAAA;AAAA,IACb,KAAKV,EAAY;AACf,aAAO;AAAA,QACL,GAAGS;AAAA,QACH,QAAQ,CAACC,EAAO,OAAO,GAAGD,EAAM,MAAM,EAAE,MAAM,GAAGX,CAAW;AAAA,MAAA;AAAA,IAGhE,KAAKE,EAAY;AACf,aAAO;AAAA,QACL,GAAGS;AAAA,QACH,QAAQA,EAAM,OAAO,IAAI,CAACE,MAAOA,EAAE,OAAOD,EAAO,MAAM,KAAK,EAAE,GAAGC,GAAG,GAAGD,EAAO,MAAA,IAAUC,CAAE;AAAA,MAAA;AAAA,IAG9F,KAAKX,EAAY,eAAe;AAC9B,YAAM,EAAE,SAAAK,MAAYK;AAIpB,aAAIL,IACFD,EAAiBC,CAAO,IAExBI,EAAM,OAAO,QAAQ,CAACG,MAAU;AAC9B,QAAAR,EAAiBQ,EAAM,EAAE;AAAA,MAC3B,CAAC,GAGI;AAAA,QACL,GAAGH;AAAA,QACH,QAAQA,EAAM,OAAO;AAAA,UAAI,CAACE,MACxBA,EAAE,OAAON,KAAWA,MAAY,SAC5B;AAAA,YACE,GAAGM;AAAA,YACH,MAAM;AAAA,UAAA,IAERA;AAAA,QAAA;AAAA,MACN;AAAA,IAEJ;AAAA,IACA,KAAKX,EAAY;AACf,aAAIU,EAAO,YAAY,SACd;AAAA,QACL,GAAGD;AAAA,QACH,QAAQ,CAAA;AAAA,MAAC,IAGN;AAAA,QACL,GAAGA;AAAA,QACH,QAAQA,EAAM,OAAO,OAAO,CAACE,MAAMA,EAAE,OAAOD,EAAO,OAAO;AAAA,MAAA;AAAA,EAC5D;AAEN,GAEMG,IAA2C,CAAA;AAEjD,IAAIC,IAAqB,EAAE,QAAQ,GAAC;AAEpC,SAASP,EAASG,GAAgB;AAChC,EAAAI,IAAcN,EAAQM,GAAaJ,CAAM,GACzCG,EAAU,QAAQ,CAACE,MAAa;AAC9B,IAAAA,EAASD,CAAW;AAAA,EACtB,CAAC;AACH;AAIA,SAASF,EAAM,EAAE,GAAGI,KAAgB;AAClC,QAAMC,IAAKf,EAAA,GAELgB,IAAS,CAACF,MACdT,EAAS;AAAA,IACP,MAAM;AAAA,IACN,OAAO,EAAE,GAAGS,GAAO,IAAAC,EAAA;AAAA,EAAG,CACvB,GACGE,IAAU,MAAMZ,EAAS,EAAE,MAAM,iBAAiB,SAASU,GAAI;AAErE,SAAAV,EAAS;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,MACL,GAAGS;AAAA,MACH,IAAAC;AAAA,MACA,MAAM;AAAA,MACN,cAAc,CAACG,MAAS;AACtB,QAAKA,KACHD,EAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF,CACD,GAEM;AAAA,IACL,IAAAF;AAAA,IACA,SAAAE;AAAA,IACA,QAAAD;AAAA,EAAA;AAEJ;AAEA,SAASG,IAAW;AAClB,QAAM,CAACZ,GAAOa,CAAQ,IAAIC,EAAM,SAAgBT,CAAW;AAE3D,SAAAS,EAAM,UAAU,OACdV,EAAU,KAAKS,CAAQ,GAChB,MAAM;AACX,UAAME,IAAQX,EAAU,QAAQS,CAAQ;AACxC,IAAIE,IAAQ,MACVX,EAAU,OAAOW,GAAO,CAAC;AAAA,EAE7B,IACC,CAACf,CAAK,CAAC,GAEH;AAAA,IACL,GAAGA;AAAA,IACH,OAAAG;AAAA,IACA,SAAS,CAACP,MAAqBE,EAAS,EAAE,MAAM,iBAAiB,SAAAF,GAAS;AAAA,EAAA;AAE9E;ACtLO,SAASoB,EAAQ,EAAE,GAAGT,KAA2B;AACtD,QAAM,EAAE,QAAAU,EAAA,IAAWL,EAAA;AAEnB,SACEM,gBAAAA,EAAAA,KAACC,GAAA,EAAe,GAAGZ,GAChB,UAAA;AAAA,IAAAU,EAAO,IAAI,SAAU,EAAE,IAAAT,GAAI,OAAAY,GAAO,aAAAC,GAAa,QAAApB,GAAQ,GAAGM,KAAS;AAClE,aACEW,gBAAAA,EAAAA,KAACI,GAAA,EAAgB,GAAGf,GAClB,UAAA;AAAA,QAAAW,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,cACZ,UAAA;AAAA,UAAAE,KAASG,gBAAAA,EAAAA,IAACC,KAAY,UAAAJ,EAAA,CAAM;AAAA,UAC5BC,KAAeE,gBAAAA,EAAAA,IAACE,GAAA,EAAkB,UAAAJ,EAAA,CAAY;AAAA,QAAA,GACjD;AAAA,QACCpB;AAAA,8BACAyB,GAAA,CAAA,CAAW;AAAA,MAAA,EAAA,GANFlB,CAOZ;AAAA,IAEJ,CAAC;AAAA,0BACAmB,GAAA,CAAA,CAAc;AAAA,EAAA,GACjB;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const n=require("./vendor-
|
|
2
|
-
//# sourceMappingURL=toaster-
|
|
1
|
+
"use strict";const n=require("./vendor-B_07FHqh.js"),_=require("react"),T=require("./toast.cjs");function m(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(s,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return s.default=t,Object.freeze(s)}const p=m(_),x=1,D=1e6,a={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let S=0;function j(){return S=(S+1)%Number.MAX_SAFE_INTEGER,S.toString()}const d=new Map,O=t=>{if(d.has(t))return;const s=setTimeout(()=>{d.delete(t),i({type:"REMOVE_TOAST",toastId:t})},D);d.set(t,s)},R=(t,s)=>{switch(s.type){case a.ADD_TOAST:return{...t,toasts:[s.toast,...t.toasts].slice(0,x)};case a.UPDATE_TOAST:return{...t,toasts:t.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case a.DISMISS_TOAST:{const{toastId:e}=s;return e?O(e):t.toasts.forEach(o=>{O(o.id)}),{...t,toasts:t.toasts.map(o=>o.id===e||e===void 0?{...o,open:!1}:o)}}case a.REMOVE_TOAST:return s.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(e=>e.id!==s.toastId)}}},c=[];let u={toasts:[]};function i(t){u=R(u,t),c.forEach(s=>{s(u)})}function A({...t}){const s=j(),e=r=>i({type:"UPDATE_TOAST",toast:{...r,id:s}}),o=()=>i({type:"DISMISS_TOAST",toastId:s});return i({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:r=>{r||o()}}}),{id:s,dismiss:o,update:e}}function E(){const[t,s]=p.useState(u);return p.useEffect(()=>(c.push(s),()=>{const e=c.indexOf(s);e>-1&&c.splice(e,1)}),[t]),{...t,toast:A,dismiss:e=>i({type:"DISMISS_TOAST",toastId:e})}}function I({...t}){const{toasts:s}=E();return n.jsxRuntimeExports.jsxs(T.ToastProvider,{...t,children:[s.map(function({id:e,title:o,description:r,action:f,...l}){return n.jsxRuntimeExports.jsxs(T.Toast,{...l,children:[n.jsxRuntimeExports.jsxs("div",{className:"grid gap-1",children:[o&&n.jsxRuntimeExports.jsx(T.ToastTitle,{children:o}),r&&n.jsxRuntimeExports.jsx(T.ToastDescription,{children:r})]}),f,n.jsxRuntimeExports.jsx(T.ToastClose,{})]},e)}),n.jsxRuntimeExports.jsx(T.ToastViewport,{})]})}exports.Toaster=I;exports.toast=A;exports.useToast=E;
|
|
2
|
+
//# sourceMappingURL=toaster-Q_hzVonm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toaster-
|
|
1
|
+
{"version":3,"file":"toaster-Q_hzVonm.js","sources":["../packages/ui-web/src/hooks/use-toast.ts","../packages/ui-web/src/toaster.tsx"],"sourcesContent":["'use client';\n\n// Inspired by react-hot-toast library\nimport * as React from 'react';\n\nimport type { ToastActionElement, ToastProps } from '../index';\n\nconst TOAST_LIMIT = 1;\nconst TOAST_REMOVE_DELAY = 1000000;\n\ntype ToasterToast = ToastProps & {\n id: string;\n title?: React.ReactNode;\n description?: React.ReactNode;\n action?: ToastActionElement;\n};\n\nconst actionTypes = {\n ADD_TOAST: 'ADD_TOAST',\n UPDATE_TOAST: 'UPDATE_TOAST',\n DISMISS_TOAST: 'DISMISS_TOAST',\n REMOVE_TOAST: 'REMOVE_TOAST',\n} as const;\n\nlet count = 0;\n\nfunction genId() {\n count = (count + 1) % Number.MAX_SAFE_INTEGER;\n return count.toString();\n}\n\ntype ActionType = typeof actionTypes;\n\ntype Action =\n | {\n type: ActionType['ADD_TOAST'];\n toast: ToasterToast;\n }\n | {\n type: ActionType['UPDATE_TOAST'];\n toast: Partial<ToasterToast>;\n }\n | {\n type: ActionType['DISMISS_TOAST'];\n toastId?: ToasterToast['id'];\n }\n | {\n type: ActionType['REMOVE_TOAST'];\n toastId?: ToasterToast['id'];\n };\n\ninterface State {\n toasts: ToasterToast[];\n}\n\nconst toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>();\n\nconst addToRemoveQueue = (toastId: string) => {\n if (toastTimeouts.has(toastId)) {\n return;\n }\n\n const timeout = setTimeout(() => {\n toastTimeouts.delete(toastId);\n dispatch({\n type: 'REMOVE_TOAST',\n toastId: toastId,\n });\n }, TOAST_REMOVE_DELAY);\n\n toastTimeouts.set(toastId, timeout);\n};\n\nexport const reducer = (state: State, action: Action): State => {\n switch (action.type) {\n case actionTypes.ADD_TOAST:\n return {\n ...state,\n toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),\n };\n\n case actionTypes.UPDATE_TOAST:\n return {\n ...state,\n toasts: state.toasts.map((t) => (t.id === action.toast.id ? { ...t, ...action.toast } : t)),\n };\n\n case actionTypes.DISMISS_TOAST: {\n const { toastId } = action;\n\n // ! Side effects ! - This could be extracted into a dismissToast() action,\n // but I'll keep it here for simplicity\n if (toastId) {\n addToRemoveQueue(toastId);\n } else {\n state.toasts.forEach((toast) => {\n addToRemoveQueue(toast.id);\n });\n }\n\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === toastId || toastId === undefined\n ? {\n ...t,\n open: false,\n }\n : t,\n ),\n };\n }\n case actionTypes.REMOVE_TOAST:\n if (action.toastId === undefined) {\n return {\n ...state,\n toasts: [],\n };\n }\n return {\n ...state,\n toasts: state.toasts.filter((t) => t.id !== action.toastId),\n };\n }\n};\n\nconst listeners: Array<(state: State) => void> = [];\n\nlet memoryState: State = { toasts: [] };\n\nfunction dispatch(action: Action) {\n memoryState = reducer(memoryState, action);\n listeners.forEach((listener) => {\n listener(memoryState);\n });\n}\n\ntype Toast = Omit<ToasterToast, 'id'>;\n\nfunction toast({ ...props }: Toast) {\n const id = genId();\n\n const update = (props: ToasterToast) =>\n dispatch({\n type: 'UPDATE_TOAST',\n toast: { ...props, id },\n });\n const dismiss = () => dispatch({ type: 'DISMISS_TOAST', toastId: id });\n\n dispatch({\n type: 'ADD_TOAST',\n toast: {\n ...props,\n id,\n open: true,\n onOpenChange: (open) => {\n if (!open) {\n dismiss();\n }\n },\n },\n });\n\n return {\n id: id,\n dismiss,\n update,\n };\n}\n\nfunction useToast() {\n const [state, setState] = React.useState<State>(memoryState);\n\n React.useEffect(() => {\n listeners.push(setState);\n return () => {\n const index = listeners.indexOf(setState);\n if (index > -1) {\n listeners.splice(index, 1);\n }\n };\n }, [state]);\n\n return {\n ...state,\n toast,\n dismiss: (toastId?: string) => dispatch({ type: 'DISMISS_TOAST', toastId }),\n };\n}\n\nexport { toast, useToast };\n","'use client';\n\nimport { ToasterBaseProps } from '@gv-tech/ui-core';\nimport { useToast } from './hooks/use-toast';\nimport { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from './toast';\n\nexport function Toaster({ ...props }: ToasterBaseProps) {\n const { toasts } = useToast();\n\n return (\n <ToastProvider {...props}>\n {toasts.map(function ({ id, title, description, action, ...props }) {\n return (\n <Toast key={id} {...props}>\n <div className=\"grid gap-1\">\n {title && <ToastTitle>{title}</ToastTitle>}\n {description && <ToastDescription>{description}</ToastDescription>}\n </div>\n {action}\n <ToastClose />\n </Toast>\n );\n })}\n <ToastViewport />\n </ToastProvider>\n );\n}\n"],"names":["TOAST_LIMIT","TOAST_REMOVE_DELAY","actionTypes","count","genId","toastTimeouts","addToRemoveQueue","toastId","timeout","dispatch","reducer","state","action","t","toast","listeners","memoryState","listener","props","id","update","dismiss","open","useToast","setState","React","index","Toaster","toasts","jsxs","ToastProvider","title","description","Toast","jsx","ToastTitle","ToastDescription","ToastClose","ToastViewport"],"mappings":"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"}
|
package/dist/toaster.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./vendor-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./vendor-B_07FHqh.js");const e=require("./toaster-Q_hzVonm.js");require("./toast.cjs");exports.Toaster=e.Toaster;
|
|
2
2
|
//# sourceMappingURL=toaster.cjs.map
|
package/dist/toaster.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as e } from "./vendor-
|
|
1
|
+
import { g as e } from "./vendor-BQwS7aJt.mjs";
|
|
2
2
|
const n = e(
|
|
3
3
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
4
4
|
{
|
|
@@ -22,4 +22,4 @@ const n = e(
|
|
|
22
22
|
export {
|
|
23
23
|
n as t
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=toggle-
|
|
25
|
+
//# sourceMappingURL=toggle-DPMTgo47.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-
|
|
1
|
+
{"version":3,"file":"toggle-DPMTgo47.mjs","sources":["../packages/ui-core/src/contracts/toggle.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport * as React from 'react';\n\nexport const toggleVariants = cva(\n 'inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n outline: 'border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground',\n },\n size: {\n default: 'h-9 px-2 min-w-9',\n sm: 'h-8 px-1.5 min-w-8',\n lg: 'h-10 px-2.5 min-w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nexport const toggleVariantValues = {\n variant: {\n default: 'default',\n outline: 'outline',\n },\n size: {\n default: 'default',\n sm: 'sm',\n lg: 'lg',\n },\n} as const;\n\nexport type ToggleVariant = keyof typeof toggleVariantValues.variant;\nexport type ToggleSize = keyof typeof toggleVariantValues.size;\n\nexport interface ToggleBaseProps {\n children?: React.ReactNode;\n className?: string;\n variant?: ToggleVariant;\n size?: ToggleSize;\n pressed?: boolean;\n defaultPressed?: boolean;\n onPressedChange?: (pressed: boolean) => void;\n disabled?: boolean;\n}\n"],"names":["toggleVariants","cva"],"mappings":";AAGO,MAAMA,IAAiBC;AAAA,EAC5B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,SAAS;AAAA,MAAA;AAAA,MAEX,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA;AAAA,IACN;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IAAA;AAAA,EACR;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./vendor-
|
|
2
|
-
//# sourceMappingURL=toggle-
|
|
1
|
+
"use strict";const e=require("./vendor-B_07FHqh.js"),t=e.cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});exports.toggleVariants=t;
|
|
2
|
+
//# sourceMappingURL=toggle-_F_yB_Dj.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-
|
|
1
|
+
{"version":3,"file":"toggle-_F_yB_Dj.js","sources":["../packages/ui-core/src/contracts/toggle.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport * as React from 'react';\n\nexport const toggleVariants = cva(\n 'inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n outline: 'border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground',\n },\n size: {\n default: 'h-9 px-2 min-w-9',\n sm: 'h-8 px-1.5 min-w-8',\n lg: 'h-10 px-2.5 min-w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nexport const toggleVariantValues = {\n variant: {\n default: 'default',\n outline: 'outline',\n },\n size: {\n default: 'default',\n sm: 'sm',\n lg: 'lg',\n },\n} as const;\n\nexport type ToggleVariant = keyof typeof toggleVariantValues.variant;\nexport type ToggleSize = keyof typeof toggleVariantValues.size;\n\nexport interface ToggleBaseProps {\n children?: React.ReactNode;\n className?: string;\n variant?: ToggleVariant;\n size?: ToggleSize;\n pressed?: boolean;\n defaultPressed?: boolean;\n onPressedChange?: (pressed: boolean) => void;\n disabled?: boolean;\n}\n"],"names":["toggleVariants","cva"],"mappings":"qDAGaA,EAAiBC,EAAAA,IAC5B,kYACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,iBACT,QAAS,2FAAA,EAEX,KAAM,CACJ,QAAS,mBACT,GAAI,qBACJ,GAAI,sBAAA,CACN,EAEF,gBAAiB,CACf,QAAS,UACT,KAAM,SAAA,CACR,CAEJ"}
|
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-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-B_07FHqh.js"),m=require("react"),d=require("./toggle-_F_yB_Dj.js"),u=require("./utils-CBWPs0D7.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, bM as l, bN as p } from "./vendor-BQwS7aJt.mjs";
|
|
3
3
|
import * as e from "react";
|
|
4
|
-
import { t as u } from "./toggle-
|
|
5
|
-
import { c
|
|
6
|
-
const
|
|
4
|
+
import { t as u } from "./toggle-DPMTgo47.mjs";
|
|
5
|
+
import { c } from "./utils-Bgpn0CK0.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-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./vendor-B_07FHqh.js"),l=require("react"),a=require("./toggle-_F_yB_Dj.js"),i=require("./utils-CBWPs0D7.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, bL as o } from "./vendor-BQwS7aJt.mjs";
|
|
3
3
|
import * as i from "react";
|
|
4
|
-
import { t as p } from "./toggle-
|
|
5
|
-
import { c } from "./utils-
|
|
6
|
-
const
|
|
7
|
-
({ className: a, variant: s, size: t, ...r },
|
|
4
|
+
import { t as p } from "./toggle-DPMTgo47.mjs";
|
|
5
|
+
import { c as l } from "./utils-Bgpn0CK0.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-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-B_07FHqh.js"),d=require("react"),l=require("./utils-CBWPs0D7.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,
|
|
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, bO as i, bP as s, bQ as m, bR as n } from "./vendor-BQwS7aJt.mjs";
|
|
3
|
+
import * as d from "react";
|
|
4
|
+
import { c as p } from "./utils-Bgpn0CK0.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,12 @@
|
|
|
1
|
+
import { aP as e, aQ as t } from "./vendor-BQwS7aJt.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-Bgpn0CK0.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-Bgpn0CK0.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;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const r=require("./vendor-B_07FHqh.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-CBWPs0D7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-CBWPs0D7.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"}
|