@adit_firdaus/onecn 0.1.0 → 0.2.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/LICENSE +21 -0
- package/README.md +63 -22
- package/dist/components/ui/accordion.d.ts +1 -1
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +2 -3
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert.d.ts +1 -1
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/avatar.d.ts +1 -1
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js +1 -1
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.d.ts +1 -1
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/carousel.d.ts +1 -1
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +1 -1
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/chart.js +5 -19
- package/dist/components/ui/chart.js.map +1 -1
- package/dist/components/ui/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/collapsible.d.ts +1 -1
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible.js.map +1 -1
- package/dist/components/ui/command.d.ts +1 -1
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +1 -1
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +1 -1
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +2 -3
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +1 -1
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +4 -7
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/form.d.ts +1 -1
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/components/ui/form.js +2 -4
- package/dist/components/ui/form.js.map +1 -1
- package/dist/components/ui/hover-card.d.ts +1 -1
- package/dist/components/ui/hover-card.d.ts.map +1 -1
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +1 -1
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/label.d.ts +1 -1
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/menubar.d.ts +1 -1
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +1 -1
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/navigation-menu.d.ts +1 -1
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +3 -5
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.d.ts +1 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/radio-group.d.ts +1 -1
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +2 -2
- package/dist/components/ui/radio-group.js.map +1 -1
- package/dist/components/ui/resizable.d.ts +1 -1
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable.js +1 -1
- package/dist/components/ui/resizable.js.map +1 -1
- package/dist/components/ui/scroll-area.d.ts +1 -1
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.js +2 -4
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/select.d.ts +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +2 -3
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/separator.d.ts +1 -1
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/skeleton.js.map +1 -1
- package/dist/components/ui/slider.d.ts +1 -1
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/sonner.d.ts +1 -1
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/components/ui/sonner.js.map +1 -1
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/table.d.ts +1 -1
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +1 -1
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/toast.d.ts +1 -1
- package/dist/components/ui/toast.d.ts.map +1 -1
- package/dist/components/ui/toast.js +1 -1
- package/dist/components/ui/toast.js.map +1 -1
- package/dist/components/ui/toaster.d.ts.map +1 -1
- package/dist/components/ui/toaster.js +1 -3
- package/dist/components/ui/toaster.js.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +2 -2
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +1 -1
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +1 -1
- package/dist/components/ui/toggle.js.map +1 -1
- package/dist/components/ui/tooltip.d.ts +1 -1
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/hooks/use-toast.d.ts.map +1 -1
- package/dist/hooks/use-toast.js +6 -6
- package/dist/hooks/use-toast.js.map +1 -1
- package/package.json +232 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC;AAEhC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAG/B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,aAAa,CAAC,IAAI,IACjB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,2FAA2F,EAC3F,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAC;AACH,QAAQ,CAAC,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC;AAEtD,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAGlC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,aAAa,CAAC,OAAO,IACpB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,gYAAgY,EAChY,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAC;AACH,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC;AAE5D,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAGlC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,aAAa,CAAC,OAAO,IACpB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,iIAAiI,EACjI,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAC;AACH,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC;AAE5D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../src/components/ui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../src/components/ui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;CAAG;AAE3F,QAAA,MAAM,QAAQ,2FAab,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../src/components/ui/textarea.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../src/components/ui/textarea.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAIrC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC/B,OAAO,CACL,mBACE,SAAS,EAAE,EAAE,CACX,8PAA8P,EAC9P,SAAS,CACV,EACD,GAAG,EAAE,GAAG,KACJ,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AACF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
3
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
5
5
|
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
6
6
|
declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,aAAa,8CAA2B,CAAC;AAE/C,QAAA,MAAM,aAAa,kKAYjB,CAAC;AAmBH,QAAA,MAAM,KAAK;;qHAWT,CAAC;AAGH,QAAA,MAAM,WAAW,kKAYf,CAAC;AAGH,QAAA,MAAM,UAAU,iKAed,CAAC;AAGH,QAAA,MAAM,UAAU,2JAKd,CAAC;AAGH,QAAA,MAAM,gBAAgB,iKASpB,CAAC;AAGH,KAAK,UAAU,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AAC/D,KAAK,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,OAAO,EACL,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,WAAW,GACZ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
2
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
4
3
|
import { cva } from "class-variance-authority";
|
|
5
4
|
import { X } from "lucide-react";
|
|
5
|
+
import * as React from "react";
|
|
6
6
|
import { cn } from "../../lib/utils";
|
|
7
7
|
const ToastProvider = ToastPrimitives.Provider;
|
|
8
8
|
const ToastViewport = React.forwardRef(({ className, ...props }, ref) => (_jsx(ToastPrimitives.Viewport, { ref: ref, className: cn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]", className), ...props })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../src/components/ui/toast.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../src/components/ui/toast.tsx"],"names":[],"mappings":";AAAA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AAE,EAAE,CAAC,oBAAoB,EAAE,SAAS,CAAC,KAC1C,KAAK,GACT,CACH,CAAC,CAAC;AACH,gBAAgB,CAAC,WAAW,GAAG,eAAe,CAAC,WAAW,CAAC,WAAW,CAAC;AAKvE,OAAO,EAGL,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,WAAW,GACZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toaster.tsx"],"names":[],"mappings":"AAUA,wBAAgB,OAAO,
|
|
1
|
+
{"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toaster.tsx"],"names":[],"mappings":"AAUA,wBAAgB,OAAO,4CAkBtB"}
|
|
@@ -3,8 +3,6 @@ import { useToast } from "../../hooks/use-toast";
|
|
|
3
3
|
import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, } from "./toast";
|
|
4
4
|
export function Toaster() {
|
|
5
5
|
const { toasts } = useToast();
|
|
6
|
-
return (_jsxs(ToastProvider, { children: [toasts.map(
|
|
7
|
-
return (_jsxs(Toast, { ...props, children: [_jsxs("div", { className: "grid gap-1", children: [title && _jsx(ToastTitle, { children: title }), description && (_jsx(ToastDescription, { children: description }))] }), action, _jsx(ToastClose, {})] }, id));
|
|
8
|
-
}), _jsx(ToastViewport, {})] }));
|
|
6
|
+
return (_jsxs(ToastProvider, { children: [toasts.map(({ id, title, description, action, ...props }) => (_jsxs(Toast, { ...props, children: [_jsxs("div", { className: "grid gap-1", children: [title && _jsx(ToastTitle, { children: title }), description && _jsx(ToastDescription, { children: description })] }), action, _jsx(ToastClose, {})] }, id))), _jsx(ToastViewport, {})] }));
|
|
9
7
|
}
|
|
10
8
|
//# sourceMappingURL=toaster.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toaster.js","sourceRoot":"","sources":["../../../src/components/ui/toaster.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EACL,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,aAAa,GACd,MAAM,SAAS,CAAC;AAEjB,MAAM,UAAU,OAAO;IACrB,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAE9B,OAAO,CACL,MAAC,aAAa,eACX,MAAM,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"toaster.js","sourceRoot":"","sources":["../../../src/components/ui/toaster.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EACL,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,aAAa,GACd,MAAM,SAAS,CAAC;AAEjB,MAAM,UAAU,OAAO;IACrB,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAE9B,OAAO,CACL,MAAC,aAAa,eACX,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CAC5D,MAAC,KAAK,OAAc,KAAK,aACvB,eAAK,SAAS,EAAC,YAAY,aACxB,KAAK,IAAI,KAAC,UAAU,cAAE,KAAK,GAAc,EACzC,WAAW,IAAI,KAAC,gBAAgB,cAAE,WAAW,GAAoB,IAC9D,EACL,MAAM,EACP,KAAC,UAAU,KAAG,KANJ,EAAE,CAON,CACT,CAAC,EACF,KAAC,aAAa,KAAG,IACH,CACjB,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
3
|
-
import {
|
|
2
|
+
import type { VariantProps } from "class-variance-authority";
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
5
5
|
variant?: "default" | "outline" | null | undefined;
|
|
6
6
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,QAAA,MAAM,WAAW;;;uHAYf,CAAC;AAGH,QAAA,MAAM,eAAe;;;yHAqBnB,CAAC;AAGH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
2
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { cn } from "../../lib/utils";
|
|
5
5
|
import { toggleVariants } from "./toggle";
|
|
6
6
|
const ToggleGroupContext = React.createContext({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.js","sourceRoot":"","sources":["../../../src/components/ui/toggle-group.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"toggle-group.js","sourceRoot":"","s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C,IAAI,IAAI,IAAI;SAC3B,CAAC,EACF,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACiB,CAC7B,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,eAAe,CAAC,WAAW,GAAG,oBAAoB,CAAC,IAAI,CAAC,WAAW,CAAC;AAEpE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
declare const toggleVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "outline" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,cAAc;;;8EAoBnB,CAAC;AAEF,QAAA,MAAM,MAAM;;;yHAKV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
2
|
import { cva } from "class-variance-authority";
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { cn } from "../../lib/utils";
|
|
5
5
|
const toggleVariants = cva("inline-flex items-center justify-center 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", {
|
|
6
6
|
variants: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,MAAM,cAAc,GAAG,GAAG,CACxB,+TAA+T,EAC/T;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,gBAAgB;YACzB,OAAO,EACL,2FAA2F;SAC9F;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,UAAU;YACnB,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,WAAW;SAChB;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,SAAS;KAChB;CACF,CACF,CAAC;AAEF,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAG7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACjD,iBAAQ,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,KAAM,KAAK,GAAI,CAC7F,CAAC,CAAC;AAEH,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
4
|
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
5
5
|
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,eAAe,iDAA4B,CAAC;AAClD,QAAA,MAAM,OAAO,yCAAwB,CAAC;AACtC,QAAA,MAAM,cAAc,gHAA2B,CAAC;AAEhD,QAAA,MAAM,cAAc,gKAalB,CAAC;AAGH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
2
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { cn } from "../../lib/utils";
|
|
5
5
|
const TooltipProvider = TooltipPrimitive.Provider;
|
|
6
6
|
const Tooltip = TooltipPrimitive.Root;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,MAAM,eAAe,GAAG,gBAAgB,CAAC,QAAQ,CAAC;AAClD,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAC;AACtC,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,CAAC;AAEhD,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAGrC,CAAC,EAAE,SAAS,EAAE,UAAU,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClD,KAAC,gBAAgB,CAAC,OAAO,IACvB,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,EAAE,CACX,mXAAmX,EACnX,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAC;AACH,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC,OAAO,CAAC,WAAW,CAAC;AAElE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-toast.d.ts","sourceRoot":"","sources":["../../src/hooks/use-toast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"use-toast.d.ts","sourceRoot":"","sources":["../../src/hooks/use-toast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAK7E,KAAK,YAAY,GAAG,UAAU,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B,CAAC;AAEF,QAAA,MAAM,WAAW;;;;;CAKP,CAAC;AASX,KAAK,UAAU,GAAG,OAAO,WAAW,CAAC;AAErC,KAAK,MAAM,GACP;IACE,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC;CACrB,GACD;IACE,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IACjC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAC9B,GACD;IACE,IAAI,EAAE,UAAU,CAAC,eAAe,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAC9B,GACD;IACE,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAC9B,CAAC;AAEN,UAAU,KAAK;IACb,MAAM,EAAE,YAAY,EAAE,CAAC;CACxB;AAkBD,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK,EAAE,QAAQ,MAAM,KAAG,KAiDtD,CAAC;AAaF,KAAK,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AAEtC,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK;;;oBAGT,YAAY;EAwBpC;AAED,iBAAS,QAAQ;;wBAgBO,MAAM;YAhIpB,YAAY,EAAE;EAkIvB;AAED,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/hooks/use-toast.js
CHANGED
|
@@ -35,7 +35,7 @@ export const reducer = (state, action) => {
|
|
|
35
35
|
case "UPDATE_TOAST":
|
|
36
36
|
return {
|
|
37
37
|
...state,
|
|
38
|
-
toasts: state.toasts.map((t) => t.id === action.toast.id ? { ...t, ...action.toast } : t),
|
|
38
|
+
toasts: state.toasts.map((t) => (t.id === action.toast.id ? { ...t, ...action.toast } : t)),
|
|
39
39
|
};
|
|
40
40
|
case "DISMISS_TOAST": {
|
|
41
41
|
const { toastId } = action;
|
|
@@ -43,9 +43,9 @@ export const reducer = (state, action) => {
|
|
|
43
43
|
addToRemoveQueue(toastId);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
|
-
state.toasts
|
|
46
|
+
for (const toast of state.toasts) {
|
|
47
47
|
addToRemoveQueue(toast.id);
|
|
48
|
-
}
|
|
48
|
+
}
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
51
|
...state,
|
|
@@ -74,9 +74,9 @@ const listeners = [];
|
|
|
74
74
|
let memoryState = { toasts: [] };
|
|
75
75
|
function dispatch(action) {
|
|
76
76
|
memoryState = reducer(memoryState, action);
|
|
77
|
-
|
|
77
|
+
for (const listener of listeners) {
|
|
78
78
|
listener(memoryState);
|
|
79
|
-
}
|
|
79
|
+
}
|
|
80
80
|
}
|
|
81
81
|
function toast({ ...props }) {
|
|
82
82
|
const id = genId();
|
|
@@ -113,7 +113,7 @@ function useToast() {
|
|
|
113
113
|
listeners.splice(index, 1);
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
|
-
}, [
|
|
116
|
+
}, []);
|
|
117
117
|
return {
|
|
118
118
|
...state,
|
|
119
119
|
toast,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-toast.js","sourceRoot":"","sources":["../../src/hooks/use-toast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"use-toast.js","sourceRoot":"","sources":["../../src/hooks/use-toast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,kBAAkB,GAAG,OAAO,CAAC;AASnC,MAAM,WAAW,GAAG;IAClB,SAAS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,KAAK,EAAE,CAAC,CAAC,CAAC;YAC7B,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACL,GAAG,KAAK;QACR,KAAK;QACL,OAAO,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC;KAC5E,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adit_firdaus/onecn",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "All shadcn/ui components in one package. Easy install for new projects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -11,6 +11,202 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.js"
|
|
13
13
|
},
|
|
14
|
+
"./aspect-ratio": {
|
|
15
|
+
"types": "./dist/components/ui/aspect-ratio.d.ts",
|
|
16
|
+
"import": "./dist/components/ui/aspect-ratio.js"
|
|
17
|
+
},
|
|
18
|
+
"./alert-dialog": {
|
|
19
|
+
"types": "./dist/components/ui/alert-dialog.d.ts",
|
|
20
|
+
"import": "./dist/components/ui/alert-dialog.js"
|
|
21
|
+
},
|
|
22
|
+
"./pagination": {
|
|
23
|
+
"types": "./dist/components/ui/pagination.d.ts",
|
|
24
|
+
"import": "./dist/components/ui/pagination.js"
|
|
25
|
+
},
|
|
26
|
+
"./tabs": {
|
|
27
|
+
"types": "./dist/components/ui/tabs.d.ts",
|
|
28
|
+
"import": "./dist/components/ui/tabs.js"
|
|
29
|
+
},
|
|
30
|
+
"./card": {
|
|
31
|
+
"types": "./dist/components/ui/card.d.ts",
|
|
32
|
+
"import": "./dist/components/ui/card.js"
|
|
33
|
+
},
|
|
34
|
+
"./slider": {
|
|
35
|
+
"types": "./dist/components/ui/slider.d.ts",
|
|
36
|
+
"import": "./dist/components/ui/slider.js"
|
|
37
|
+
},
|
|
38
|
+
"./popover": {
|
|
39
|
+
"types": "./dist/components/ui/popover.d.ts",
|
|
40
|
+
"import": "./dist/components/ui/popover.js"
|
|
41
|
+
},
|
|
42
|
+
"./progress": {
|
|
43
|
+
"types": "./dist/components/ui/progress.d.ts",
|
|
44
|
+
"import": "./dist/components/ui/progress.js"
|
|
45
|
+
},
|
|
46
|
+
"./toaster": {
|
|
47
|
+
"types": "./dist/components/ui/toaster.d.ts",
|
|
48
|
+
"import": "./dist/components/ui/toaster.js"
|
|
49
|
+
},
|
|
50
|
+
"./input-otp": {
|
|
51
|
+
"types": "./dist/components/ui/input-otp.d.ts",
|
|
52
|
+
"import": "./dist/components/ui/input-otp.js"
|
|
53
|
+
},
|
|
54
|
+
"./chart": {
|
|
55
|
+
"types": "./dist/components/ui/chart.d.ts",
|
|
56
|
+
"import": "./dist/components/ui/chart.js"
|
|
57
|
+
},
|
|
58
|
+
"./hover-card": {
|
|
59
|
+
"types": "./dist/components/ui/hover-card.d.ts",
|
|
60
|
+
"import": "./dist/components/ui/hover-card.js"
|
|
61
|
+
},
|
|
62
|
+
"./sheet": {
|
|
63
|
+
"types": "./dist/components/ui/sheet.d.ts",
|
|
64
|
+
"import": "./dist/components/ui/sheet.js"
|
|
65
|
+
},
|
|
66
|
+
"./scroll-area": {
|
|
67
|
+
"types": "./dist/components/ui/scroll-area.d.ts",
|
|
68
|
+
"import": "./dist/components/ui/scroll-area.js"
|
|
69
|
+
},
|
|
70
|
+
"./resizable": {
|
|
71
|
+
"types": "./dist/components/ui/resizable.d.ts",
|
|
72
|
+
"import": "./dist/components/ui/resizable.js"
|
|
73
|
+
},
|
|
74
|
+
"./label": {
|
|
75
|
+
"types": "./dist/components/ui/label.d.ts",
|
|
76
|
+
"import": "./dist/components/ui/label.js"
|
|
77
|
+
},
|
|
78
|
+
"./sonner": {
|
|
79
|
+
"types": "./dist/components/ui/sonner.d.ts",
|
|
80
|
+
"import": "./dist/components/ui/sonner.js"
|
|
81
|
+
},
|
|
82
|
+
"./navigation-menu": {
|
|
83
|
+
"types": "./dist/components/ui/navigation-menu.d.ts",
|
|
84
|
+
"import": "./dist/components/ui/navigation-menu.js"
|
|
85
|
+
},
|
|
86
|
+
"./accordion": {
|
|
87
|
+
"types": "./dist/components/ui/accordion.d.ts",
|
|
88
|
+
"import": "./dist/components/ui/accordion.js"
|
|
89
|
+
},
|
|
90
|
+
"./drawer": {
|
|
91
|
+
"types": "./dist/components/ui/drawer.d.ts",
|
|
92
|
+
"import": "./dist/components/ui/drawer.js"
|
|
93
|
+
},
|
|
94
|
+
"./tooltip": {
|
|
95
|
+
"types": "./dist/components/ui/tooltip.d.ts",
|
|
96
|
+
"import": "./dist/components/ui/tooltip.js"
|
|
97
|
+
},
|
|
98
|
+
"./alert": {
|
|
99
|
+
"types": "./dist/components/ui/alert.d.ts",
|
|
100
|
+
"import": "./dist/components/ui/alert.js"
|
|
101
|
+
},
|
|
102
|
+
"./switch": {
|
|
103
|
+
"types": "./dist/components/ui/switch.d.ts",
|
|
104
|
+
"import": "./dist/components/ui/switch.js"
|
|
105
|
+
},
|
|
106
|
+
"./calendar": {
|
|
107
|
+
"types": "./dist/components/ui/calendar.d.ts",
|
|
108
|
+
"import": "./dist/components/ui/calendar.js"
|
|
109
|
+
},
|
|
110
|
+
"./breadcrumb": {
|
|
111
|
+
"types": "./dist/components/ui/breadcrumb.d.ts",
|
|
112
|
+
"import": "./dist/components/ui/breadcrumb.js"
|
|
113
|
+
},
|
|
114
|
+
"./radio-group": {
|
|
115
|
+
"types": "./dist/components/ui/radio-group.d.ts",
|
|
116
|
+
"import": "./dist/components/ui/radio-group.js"
|
|
117
|
+
},
|
|
118
|
+
"./command": {
|
|
119
|
+
"types": "./dist/components/ui/command.d.ts",
|
|
120
|
+
"import": "./dist/components/ui/command.js"
|
|
121
|
+
},
|
|
122
|
+
"./toggle-group": {
|
|
123
|
+
"types": "./dist/components/ui/toggle-group.d.ts",
|
|
124
|
+
"import": "./dist/components/ui/toggle-group.js"
|
|
125
|
+
},
|
|
126
|
+
"./avatar": {
|
|
127
|
+
"types": "./dist/components/ui/avatar.d.ts",
|
|
128
|
+
"import": "./dist/components/ui/avatar.js"
|
|
129
|
+
},
|
|
130
|
+
"./menubar": {
|
|
131
|
+
"types": "./dist/components/ui/menubar.d.ts",
|
|
132
|
+
"import": "./dist/components/ui/menubar.js"
|
|
133
|
+
},
|
|
134
|
+
"./dialog": {
|
|
135
|
+
"types": "./dist/components/ui/dialog.d.ts",
|
|
136
|
+
"import": "./dist/components/ui/dialog.js"
|
|
137
|
+
},
|
|
138
|
+
"./badge": {
|
|
139
|
+
"types": "./dist/components/ui/badge.d.ts",
|
|
140
|
+
"import": "./dist/components/ui/badge.js"
|
|
141
|
+
},
|
|
142
|
+
"./table": {
|
|
143
|
+
"types": "./dist/components/ui/table.d.ts",
|
|
144
|
+
"import": "./dist/components/ui/table.js"
|
|
145
|
+
},
|
|
146
|
+
"./separator": {
|
|
147
|
+
"types": "./dist/components/ui/separator.d.ts",
|
|
148
|
+
"import": "./dist/components/ui/separator.js"
|
|
149
|
+
},
|
|
150
|
+
"./button": {
|
|
151
|
+
"types": "./dist/components/ui/button.d.ts",
|
|
152
|
+
"import": "./dist/components/ui/button.js"
|
|
153
|
+
},
|
|
154
|
+
"./toggle": {
|
|
155
|
+
"types": "./dist/components/ui/toggle.d.ts",
|
|
156
|
+
"import": "./dist/components/ui/toggle.js"
|
|
157
|
+
},
|
|
158
|
+
"./toast": {
|
|
159
|
+
"types": "./dist/components/ui/toast.d.ts",
|
|
160
|
+
"import": "./dist/components/ui/toast.js"
|
|
161
|
+
},
|
|
162
|
+
"./checkbox": {
|
|
163
|
+
"types": "./dist/components/ui/checkbox.d.ts",
|
|
164
|
+
"import": "./dist/components/ui/checkbox.js"
|
|
165
|
+
},
|
|
166
|
+
"./collapsible": {
|
|
167
|
+
"types": "./dist/components/ui/collapsible.d.ts",
|
|
168
|
+
"import": "./dist/components/ui/collapsible.js"
|
|
169
|
+
},
|
|
170
|
+
"./dropdown-menu": {
|
|
171
|
+
"types": "./dist/components/ui/dropdown-menu.d.ts",
|
|
172
|
+
"import": "./dist/components/ui/dropdown-menu.js"
|
|
173
|
+
},
|
|
174
|
+
"./select": {
|
|
175
|
+
"types": "./dist/components/ui/select.d.ts",
|
|
176
|
+
"import": "./dist/components/ui/select.js"
|
|
177
|
+
},
|
|
178
|
+
"./textarea": {
|
|
179
|
+
"types": "./dist/components/ui/textarea.d.ts",
|
|
180
|
+
"import": "./dist/components/ui/textarea.js"
|
|
181
|
+
},
|
|
182
|
+
"./input": {
|
|
183
|
+
"types": "./dist/components/ui/input.d.ts",
|
|
184
|
+
"import": "./dist/components/ui/input.js"
|
|
185
|
+
},
|
|
186
|
+
"./skeleton": {
|
|
187
|
+
"types": "./dist/components/ui/skeleton.d.ts",
|
|
188
|
+
"import": "./dist/components/ui/skeleton.js"
|
|
189
|
+
},
|
|
190
|
+
"./context-menu": {
|
|
191
|
+
"types": "./dist/components/ui/context-menu.d.ts",
|
|
192
|
+
"import": "./dist/components/ui/context-menu.js"
|
|
193
|
+
},
|
|
194
|
+
"./form": {
|
|
195
|
+
"types": "./dist/components/ui/form.d.ts",
|
|
196
|
+
"import": "./dist/components/ui/form.js"
|
|
197
|
+
},
|
|
198
|
+
"./carousel": {
|
|
199
|
+
"types": "./dist/components/ui/carousel.d.ts",
|
|
200
|
+
"import": "./dist/components/ui/carousel.js"
|
|
201
|
+
},
|
|
202
|
+
"./utils": {
|
|
203
|
+
"types": "./dist/lib/utils.d.ts",
|
|
204
|
+
"import": "./dist/lib/utils.js"
|
|
205
|
+
},
|
|
206
|
+
"./use-toast": {
|
|
207
|
+
"types": "./dist/hooks/use-toast.d.ts",
|
|
208
|
+
"import": "./dist/hooks/use-toast.js"
|
|
209
|
+
},
|
|
14
210
|
"./styles": "./dist/index.css",
|
|
15
211
|
"./package.json": "./package.json"
|
|
16
212
|
},
|
|
@@ -19,16 +215,21 @@
|
|
|
19
215
|
"dist"
|
|
20
216
|
],
|
|
21
217
|
"scripts": {
|
|
22
|
-
"build": "bun run clean && tsc -p tsconfig.build.json && cp src/styles.css dist/index.css",
|
|
218
|
+
"build": "bun run clean && tsc -p tsconfig.build.json && cp src/styles.css dist/index.css && bun run scripts/build-subpaths.ts",
|
|
23
219
|
"clean": "rm -rf dist",
|
|
24
220
|
"prepublishOnly": "bun run build",
|
|
25
|
-
"dev": "
|
|
26
|
-
"test": "bun test"
|
|
221
|
+
"dev": "tsc -p tsconfig.build.json --watch",
|
|
222
|
+
"test": "bun test",
|
|
223
|
+
"lint": "biome check .",
|
|
224
|
+
"lint:fix": "biome check . --write",
|
|
225
|
+
"format": "biome format . --write",
|
|
226
|
+
"storybook": "storybook dev -p 6006",
|
|
227
|
+
"build-storybook": "storybook build",
|
|
228
|
+
"prepare": "lefthook install || true"
|
|
27
229
|
},
|
|
28
230
|
"peerDependencies": {
|
|
29
231
|
"react": ">=18",
|
|
30
|
-
"react-dom": ">=18"
|
|
31
|
-
"tailwindcss": ">=3"
|
|
232
|
+
"react-dom": ">=18"
|
|
32
233
|
},
|
|
33
234
|
"dependencies": {
|
|
34
235
|
"@radix-ui/react-accordion": "^1.2.0",
|
|
@@ -74,10 +275,24 @@
|
|
|
74
275
|
"vaul": "^0.9.0"
|
|
75
276
|
},
|
|
76
277
|
"devDependencies": {
|
|
278
|
+
"@biomejs/biome": "^1.8.3",
|
|
279
|
+
"@hookform/resolvers": "^5.2.2",
|
|
280
|
+
"@storybook/addon-essentials": "^8",
|
|
281
|
+
"@storybook/addon-interactions": "^8",
|
|
282
|
+
"@storybook/addon-themes": "^8",
|
|
283
|
+
"@storybook/blocks": "^8",
|
|
284
|
+
"@storybook/react-vite": "^8",
|
|
285
|
+
"@storybook/test": "^8",
|
|
77
286
|
"@types/bun": "latest",
|
|
78
287
|
"@types/react": "^18",
|
|
79
288
|
"@types/react-dom": "^18",
|
|
80
|
-
"
|
|
289
|
+
"autoprefixer": "^10.5.0",
|
|
290
|
+
"lefthook": "^2.1.6",
|
|
291
|
+
"storybook": "^8",
|
|
292
|
+
"tailwindcss": "3.4.17",
|
|
293
|
+
"tailwindcss-animate": "^1.0.7",
|
|
294
|
+
"typescript": "^5",
|
|
295
|
+
"zod": "^4.4.3"
|
|
81
296
|
},
|
|
82
297
|
"keywords": [
|
|
83
298
|
"shadcn",
|
|
@@ -88,6 +303,14 @@
|
|
|
88
303
|
"radix-ui",
|
|
89
304
|
"onecn"
|
|
90
305
|
],
|
|
91
|
-
"author": "",
|
|
92
|
-
"license": "MIT"
|
|
306
|
+
"author": "Adit Firdaus <aditfirdaus@gmail.com>",
|
|
307
|
+
"license": "MIT",
|
|
308
|
+
"repository": {
|
|
309
|
+
"type": "git",
|
|
310
|
+
"url": "git+https://github.com/aditfirdaus/onecn.git"
|
|
311
|
+
},
|
|
312
|
+
"homepage": "https://github.com/aditfirdaus/onecn#readme",
|
|
313
|
+
"bugs": {
|
|
314
|
+
"url": "https://github.com/aditfirdaus/onecn/issues"
|
|
315
|
+
}
|
|
93
316
|
}
|