@pactor-app/ui 0.1.0 → 1.0.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.
@@ -0,0 +1,236 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-RQHJBTEU.js";
4
+
5
+ // src/components/components/Icon/index.tsx
6
+ import {
7
+ ArrowDown,
8
+ ArrowLeft,
9
+ ArrowRight,
10
+ ArrowUp,
11
+ Bell,
12
+ Bookmark,
13
+ Briefcase,
14
+ Building2,
15
+ Calendar,
16
+ Camera,
17
+ ChartColumn,
18
+ Check,
19
+ ChevronDown,
20
+ ChevronLeft,
21
+ ChevronRight,
22
+ ChevronUp,
23
+ CircleAlert,
24
+ CircleCheck,
25
+ CircleQuestionMark,
26
+ CircleX,
27
+ Clock,
28
+ Cloud,
29
+ Code,
30
+ Copy,
31
+ CreditCard,
32
+ Database,
33
+ Download,
34
+ Ellipsis,
35
+ EllipsisVertical,
36
+ ExternalLink,
37
+ Eye,
38
+ File,
39
+ Flag,
40
+ Folder,
41
+ Funnel,
42
+ Globe,
43
+ Heart,
44
+ House,
45
+ Image,
46
+ Info,
47
+ Key,
48
+ Languages,
49
+ LayoutGrid,
50
+ Link,
51
+ List,
52
+ ListFilter,
53
+ LoaderCircle,
54
+ Lock,
55
+ LockOpen,
56
+ LogIn,
57
+ LogOut,
58
+ Mail,
59
+ MapPin,
60
+ Menu,
61
+ MessageCircle,
62
+ MessageSquare,
63
+ Minus,
64
+ Moon,
65
+ Package,
66
+ Paperclip,
67
+ Pencil,
68
+ Phone,
69
+ Plus,
70
+ RefreshCcw,
71
+ Save,
72
+ Search,
73
+ Send,
74
+ Settings,
75
+ Share2,
76
+ Shield,
77
+ ShoppingCart,
78
+ SquarePen,
79
+ Star,
80
+ Sun,
81
+ Table,
82
+ Tag,
83
+ Terminal,
84
+ ThumbsDown,
85
+ ThumbsUp,
86
+ Trash2,
87
+ TriangleAlert,
88
+ Upload,
89
+ User,
90
+ Users,
91
+ X,
92
+ Zap
93
+ } from "lucide-react";
94
+ import { jsx } from "react/jsx-runtime";
95
+ var ICONS = {
96
+ "arrow-left": ArrowLeft,
97
+ "arrow-right": ArrowRight,
98
+ "arrow-up": ArrowUp,
99
+ "arrow-down": ArrowDown,
100
+ "chevron-left": ChevronLeft,
101
+ "chevron-right": ChevronRight,
102
+ "chevron-up": ChevronUp,
103
+ "chevron-down": ChevronDown,
104
+ check: Check,
105
+ x: X,
106
+ plus: Plus,
107
+ minus: Minus,
108
+ search: Search,
109
+ settings: Settings,
110
+ user: User,
111
+ users: Users,
112
+ home: House,
113
+ menu: Menu,
114
+ bell: Bell,
115
+ calendar: Calendar,
116
+ clock: Clock,
117
+ download: Download,
118
+ upload: Upload,
119
+ pencil: Pencil,
120
+ edit: SquarePen,
121
+ trash: Trash2,
122
+ eye: Eye,
123
+ info: Info,
124
+ warning: TriangleAlert,
125
+ error: CircleAlert,
126
+ "check-circle": CircleCheck,
127
+ "x-circle": CircleX,
128
+ "help-circle": CircleQuestionMark,
129
+ loading: LoaderCircle,
130
+ spinner: LoaderCircle,
131
+ star: Star,
132
+ heart: Heart,
133
+ bookmark: Bookmark,
134
+ share: Share2,
135
+ copy: Copy,
136
+ "external-link": ExternalLink,
137
+ link: Link,
138
+ mail: Mail,
139
+ phone: Phone,
140
+ lock: Lock,
141
+ unlock: LockOpen,
142
+ "log-in": LogIn,
143
+ "log-out": LogOut,
144
+ sun: Sun,
145
+ moon: Moon,
146
+ globe: Globe,
147
+ filter: Funnel,
148
+ "list-filter": ListFilter,
149
+ "more-horizontal": Ellipsis,
150
+ "more-vertical": EllipsisVertical,
151
+ refresh: RefreshCcw,
152
+ save: Save,
153
+ file: File,
154
+ folder: Folder,
155
+ image: Image,
156
+ camera: Camera,
157
+ chart: ChartColumn,
158
+ table: Table,
159
+ list: List,
160
+ grid: LayoutGrid,
161
+ tag: Tag,
162
+ "shopping-cart": ShoppingCart,
163
+ "credit-card": CreditCard,
164
+ package: Package,
165
+ "map-pin": MapPin,
166
+ building: Building2,
167
+ briefcase: Briefcase,
168
+ send: Send,
169
+ message: MessageCircle,
170
+ "message-square": MessageSquare,
171
+ paperclip: Paperclip,
172
+ "thumbs-up": ThumbsUp,
173
+ "thumbs-down": ThumbsDown,
174
+ zap: Zap,
175
+ flag: Flag,
176
+ key: Key,
177
+ shield: Shield,
178
+ terminal: Terminal,
179
+ code: Code,
180
+ database: Database,
181
+ cloud: Cloud,
182
+ languages: Languages
183
+ };
184
+ function normalizeIconName(name) {
185
+ return name.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[_\s]+/g, "-").toLowerCase();
186
+ }
187
+ var sizePx = {
188
+ sm: 16,
189
+ default: 20,
190
+ lg: 24
191
+ };
192
+ function Icon({
193
+ name,
194
+ size = "default",
195
+ color,
196
+ strokeWidth,
197
+ className,
198
+ style
199
+ }) {
200
+ const key = name ? normalizeIconName(name) : "";
201
+ const Lucide = ICONS[key];
202
+ const px = typeof size === "number" ? size : sizePx[size];
203
+ if (!Lucide) {
204
+ return /* @__PURE__ */ jsx(
205
+ CircleQuestionMark,
206
+ {
207
+ "data-slot": "icon",
208
+ "data-unknown": name,
209
+ size: px,
210
+ color,
211
+ strokeWidth,
212
+ className: cn("shrink-0 text-muted-foreground", className),
213
+ style,
214
+ "aria-hidden": "true"
215
+ }
216
+ );
217
+ }
218
+ return /* @__PURE__ */ jsx(
219
+ Lucide,
220
+ {
221
+ "data-slot": "icon",
222
+ size: px,
223
+ color,
224
+ strokeWidth,
225
+ className: cn("shrink-0", className),
226
+ style,
227
+ "aria-hidden": "true"
228
+ }
229
+ );
230
+ }
231
+
232
+ export {
233
+ ICONS,
234
+ normalizeIconName,
235
+ Icon
236
+ };