ikoncomponents 1.0.2 → 1.0.8

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.
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cn = cn;
4
+ const clsx_1 = require("clsx");
5
+ const tailwind_merge_1 = require("tailwind-merge");
6
+ function cn(...inputs) {
7
+ return (0, tailwind_merge_1.twMerge)((0, clsx_1.clsx)(inputs));
8
+ }
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ import { ThemeProvider as NextThemesProvider } from "next-themes";
3
+ export declare function ThemeProvider({ children, ...props }: React.ComponentProps<typeof NextThemesProvider>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ "use client";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ThemeProvider = ThemeProvider;
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const next_themes_1 = require("next-themes");
7
+ function ThemeProvider({ children, ...props }) {
8
+ return (0, jsx_runtime_1.jsx)(next_themes_1.ThemeProvider, { ...props, children: children });
9
+ }
package/package.json CHANGED
@@ -1,66 +1,44 @@
1
- {
2
- "name": "ikoncomponents",
3
- "version": "1.0.2",
4
- "description": "A sharable component library built with shadcn/ui and React.",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
8
- "files": [
9
- "dist",
10
- "styles.css"
11
- ],
12
- "scripts": {
13
- "build": "tsup src/index.ts --format cjs,esm --dts --external react,react-dom,framer-motion",
14
- "prepublishOnly": "npm run build"
15
- },
16
- "dependencies": {
17
- "@radix-ui/react-alert-dialog": "^1.1.15",
18
- "@radix-ui/react-avatar": "^1.1.10",
19
- "@radix-ui/react-checkbox": "^1.3.3",
20
- "@radix-ui/react-collapsible": "^1.1.12",
21
- "@radix-ui/react-dialog": "^1.1.15",
22
- "@radix-ui/react-dropdown-menu": "^2.1.16",
23
- "@radix-ui/react-label": "^2.1.7",
24
- "@radix-ui/react-popover": "^1.1.15",
25
- "@radix-ui/react-progress": "^1.1.7",
26
- "@radix-ui/react-select": "^2.2.6",
27
- "@radix-ui/react-separator": "^1.1.7",
28
- "@radix-ui/react-slot": "^1.2.3",
29
- "@radix-ui/react-tabs": "^1.1.13",
30
- "@radix-ui/react-tooltip": "^1.2.8",
31
- "@tanstack/react-table": "^8.21.3",
32
- "class-variance-authority": "^0.7.0",
33
- "clsx": "^2.1.1",
34
- "cmdk": "^1.1.1",
35
- "countries-list": "^3.1.1",
36
- "country-flag-icons": "^1.5.21",
37
- "date-fns": "^4.1.0",
38
- "echarts": "^6.0.0",
39
- "framer-motion": "^12.23.24",
40
- "input-otp": "^1.4.2",
41
- "lucide-react": "^0.546.0",
42
- "next-themes": "^0.4.6",
43
- "react-day-picker": "^9.11.1",
44
- "react-hook-form": "^7.65.0",
45
- "tailwind-merge": "^2.3.0",
46
- "tailwindcss-animate": "^1.0.7",
47
- "vaul": "^1.1.2",
48
- "zxcvbn": "^4.4.2"
49
- },
50
- "devDependencies": {
51
- "@types/next": "^9.0.0",
52
- "@types/node": "^20.12.12",
53
- "@types/react": "^18.3.26",
54
- "@types/react-dom": "^18.3.7",
55
- "react": "^18.3.1",
56
- "react-dom": "^18.3.1",
57
- "tailwindcss": "^3.4.3",
58
- "tsup": "^8.5.0",
59
- "typescript": "^5.9.3"
60
- },
61
- "peerDependencies": {
62
- "framer-motion": "^12.23.24",
63
- "react": ">=18.0.0",
64
- "react-dom": ">=18.0.0"
65
- }
66
- }
1
+ {
2
+ "name": "ikoncomponents",
3
+ "version": "1.0.8",
4
+ "main": "dist/index.js",
5
+ "types": "dist/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "scripts": {
10
+ "next:dev": "next dev --turbopack",
11
+ "next:build": "next build",
12
+ "next:start": "next start",
13
+ "next:lint": "next lint",
14
+ "build": "tsc -p tsconfig.json",
15
+ "prepublishOnly": "npm run build"
16
+ },
17
+ "dependencies": {
18
+ "clsx": "^2.1.1",
19
+ "next": "16.0.0",
20
+ "next-themes": "^0.4.6",
21
+ "react": ">=19.2.0",
22
+ "react-dom": ">=19.2.0",
23
+ "tailwind-merge": "^3.3.1"
24
+ },
25
+ "devDependencies": {
26
+ "@tailwindcss/postcss": "^4",
27
+ "@types/node": "^20",
28
+ "@types/react": "^19",
29
+ "@types/react-dom": "^19",
30
+ "eslint": "^9",
31
+ "eslint-config-next": "16.0.0",
32
+ "rimraf": "^6.0.1",
33
+ "tailwindcss": "^4",
34
+ "typescript": "^5"
35
+ },
36
+ "peerDependencies": {
37
+ "clsx": "^2.1.1",
38
+ "next": "16.0.0",
39
+ "next-themes": "^0.4.6",
40
+ "react": ">=19.2.0",
41
+ "react-dom": ">=19.2.0",
42
+ "tailwind-merge": "^3.3.1"
43
+ }
44
+ }
package/dist/index.d.mts DELETED
@@ -1,165 +0,0 @@
1
- import * as React$1 from 'react';
2
- import React__default from 'react';
3
- import * as class_variance_authority_types from 'class-variance-authority/types';
4
- import { VariantProps } from 'class-variance-authority';
5
- import { Control } from 'react-hook-form';
6
- import { LucideIcon } from 'lucide-react';
7
-
8
- interface BreadcrumbItemProps {
9
- title: string;
10
- href?: string;
11
- level: number;
12
- }
13
-
14
- declare function RenderAppBreadcrumb({ breadcrumb, }: {
15
- breadcrumb: BreadcrumbItemProps;
16
- }): React$1.JSX.Element;
17
-
18
- declare const buttonVariants: (props?: {
19
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "dashed";
20
- size?: "default" | "sm" | "lg" | "icon" | "smIcon" | "circular" | "lgIcon";
21
- } & class_variance_authority_types.ClassProp) => string;
22
-
23
- interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
24
- children: React__default.ReactNode;
25
- asChild?: boolean;
26
- }
27
- interface ButtonWithTooltipProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
28
- children: React__default.ReactNode;
29
- asChild?: boolean;
30
- tooltipContent: string | React__default.ReactNode;
31
- }
32
- declare function TextButton({ children, variant, asChild, size, ...props }: ButtonProps): React__default.JSX.Element;
33
- declare function TextButtonWithTooltip({ children, variant, asChild, size, tooltipContent, ...props }: ButtonWithTooltipProps): React__default.JSX.Element;
34
- declare function IconTextButton({ children, variant, asChild, size, ...props }: ButtonProps): React__default.JSX.Element;
35
- declare function IconTextButtonWithTooltip({ children, variant, size, asChild, tooltipContent, ...props }: ButtonWithTooltipProps): React__default.JSX.Element;
36
- declare function IconButton({ children, variant, size, asChild, ...props }: ButtonProps): React__default.JSX.Element;
37
- declare function IconButtonWithTooltip({ children, tooltipContent, asChild, variant, size, ...props }: ButtonWithTooltipProps): React__default.JSX.Element;
38
-
39
- interface FormComboboxInputProps {
40
- formControl: Control<any>;
41
- name: string;
42
- label?: string;
43
- placeholder?: string;
44
- formDescription?: string;
45
- items: {
46
- value: string;
47
- label: string;
48
- disabled?: boolean | ((item: any) => boolean);
49
- }[];
50
- disabled?: boolean | ((...args: any[]) => boolean);
51
- onSelect?: (value: any) => void;
52
- value?: string;
53
- onChange?: (value: any) => void;
54
- }
55
-
56
- interface GlowingEffectProps {
57
- blur?: number;
58
- inactiveZone?: number;
59
- proximity?: number;
60
- spread?: number;
61
- variant?: "default" | "white";
62
- glow?: boolean;
63
- className?: string;
64
- disabled?: boolean;
65
- movementDuration?: number;
66
- borderWidth?: number;
67
- }
68
- declare const GlowingEffect: React$1.MemoExoticComponent<({ blur, inactiveZone, proximity, spread, variant, glow, className, movementDuration, borderWidth, disabled, }: GlowingEffectProps) => React$1.JSX.Element>;
69
-
70
- interface ISVGProps extends React.SVGProps<SVGSVGElement> {
71
- size?: number;
72
- className?: string;
73
- }
74
- interface LoadingSpinnerProps extends ISVGProps {
75
- visible?: boolean;
76
- }
77
- declare const LoadingSpinner: ({ size, className, visible, ...props }: LoadingSpinnerProps) => React$1.JSX.Element;
78
-
79
- declare function SheetComponent({ buttonText, buttonIcon, buttonStyle, sheetContent, sheetDescription, sheetTitle, closeButton }: {
80
- buttonText?: React.ReactNode;
81
- buttonIcon?: React.ReactNode;
82
- buttonStyle?: string;
83
- sheetTitle?: React.ReactNode;
84
- sheetDescription?: React.ReactNode;
85
- sheetContent?: React.ReactNode;
86
- closeButton?: boolean;
87
- }): React$1.JSX.Element;
88
-
89
- declare function SkeletonWidget({ count }: {
90
- count: number;
91
- }): React$1.JSX.Element;
92
-
93
- interface Props {
94
- title: string;
95
- value: number;
96
- valueText?: string;
97
- isPercent?: boolean;
98
- className?: string;
99
- titleClassName?: string;
100
- valueClassName?: string;
101
- progressClassName?: string;
102
- }
103
- declare function TitleProgress({ title, value, valueText, isPercent, className, titleClassName, valueClassName, progressClassName }: Props): React$1.JSX.Element;
104
-
105
- declare function Tooltip({ tooltipContent, children }: {
106
- tooltipContent: string | React.ReactNode;
107
- children: React.ReactNode;
108
- }): React$1.JSX.Element;
109
-
110
- interface FrameworkEntry {
111
- id: string;
112
- index: string;
113
- title: string;
114
- description: string;
115
- parentId: string | null;
116
- treatAsParent: boolean;
117
- }
118
- interface TreeNode extends FrameworkEntry {
119
- level: number;
120
- }
121
- interface ParentEntry extends FrameworkEntry {
122
- childrenArray: string[];
123
- }
124
- interface ProcessedFrameworkData {
125
- flatTree: TreeNode[];
126
- itemMap: Record<string, {
127
- parentId: string | null;
128
- childrenIds: string[];
129
- }>;
130
- }
131
- interface FrameworkItemDropdownProps {
132
- processedData: ProcessedFrameworkData;
133
- value: string[];
134
- onChange: (newSelection: string[]) => void;
135
- placeholder?: string;
136
- searchPlaceholder?: string;
137
- className?: string;
138
- }
139
- declare function FrameworkItemDropdown({ processedData, value, onChange, placeholder, searchPlaceholder, className, }: FrameworkItemDropdownProps): React$1.JSX.Element;
140
-
141
- declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<"div"> & {
142
- side?: "left" | "right";
143
- variant?: "sidebar" | "floating" | "inset";
144
- collapsible?: "offcanvas" | "icon" | "none";
145
- }): React$1.JSX.Element;
146
-
147
- declare function AppSidebar({ ...props }: React$1.ComponentProps<typeof Sidebar>): React$1.JSX.Element;
148
-
149
- declare function NavMain({ items, }: {
150
- items: {
151
- title: string;
152
- url: string;
153
- icon?: LucideIcon;
154
- isActive?: boolean;
155
- default?: boolean;
156
- items?: {
157
- title: string;
158
- url: string;
159
- }[];
160
- }[];
161
- }): React$1.JSX.Element;
162
-
163
- declare function ThemeSwitcher(): React$1.JSX.Element;
164
-
165
- export { AppSidebar, type ButtonProps, type ButtonWithTooltipProps, type FormComboboxInputProps, type FrameworkEntry, FrameworkItemDropdown, GlowingEffect, type ISVGProps, IconButton, IconButtonWithTooltip, IconTextButton, IconTextButtonWithTooltip, LoadingSpinner, type LoadingSpinnerProps, NavMain, type ParentEntry, type ProcessedFrameworkData, RenderAppBreadcrumb, SheetComponent, SkeletonWidget, TextButton, TextButtonWithTooltip, ThemeSwitcher, TitleProgress, Tooltip, type TreeNode };