@orbit_ui_toolkit/orbitui-kit 0.1.1 → 0.1.2

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.
@@ -1,44 +1,44 @@
1
- import G, { useState as te } from "react";
1
+ import z, { useState as te } from "react";
2
2
  var R = { exports: {} }, C = {};
3
- var F;
3
+ var G;
4
4
  function se() {
5
- if (F) return C;
6
- F = 1;
7
- var s = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.fragment");
8
- function l(t, o, a) {
9
- var d = null;
10
- if (a !== void 0 && (d = "" + a), o.key !== void 0 && (d = "" + o.key), "key" in o) {
11
- a = {};
12
- for (var c in o)
13
- c !== "key" && (a[c] = o[c]);
14
- } else a = o;
15
- return o = a.ref, {
5
+ if (G) return C;
6
+ G = 1;
7
+ var s = /* @__PURE__ */ Symbol.for("react.transitional.element"), o = /* @__PURE__ */ Symbol.for("react.fragment");
8
+ function i(t, l, n) {
9
+ var a = null;
10
+ if (n !== void 0 && (a = "" + n), l.key !== void 0 && (a = "" + l.key), "key" in l) {
11
+ n = {};
12
+ for (var c in l)
13
+ c !== "key" && (n[c] = l[c]);
14
+ } else n = l;
15
+ return l = n.ref, {
16
16
  $$typeof: s,
17
17
  type: t,
18
- key: d,
19
- ref: o !== void 0 ? o : null,
20
- props: a
18
+ key: a,
19
+ ref: l !== void 0 ? l : null,
20
+ props: n
21
21
  };
22
22
  }
23
- return C.Fragment = n, C.jsx = l, C.jsxs = l, C;
23
+ return C.Fragment = o, C.jsx = i, C.jsxs = i, C;
24
24
  }
25
- var _ = {};
26
- var U;
25
+ var $ = {};
26
+ var H;
27
27
  function ne() {
28
- return U || (U = 1, process.env.NODE_ENV !== "production" && (function() {
28
+ return H || (H = 1, process.env.NODE_ENV !== "production" && (function() {
29
29
  function s(r) {
30
30
  if (r == null) return null;
31
31
  if (typeof r == "function")
32
32
  return r.$$typeof === K ? null : r.displayName || r.name || null;
33
33
  if (typeof r == "string") return r;
34
34
  switch (r) {
35
- case k:
35
+ case j:
36
36
  return "Fragment";
37
- case M:
37
+ case _:
38
38
  return "Profiler";
39
- case L:
39
+ case T:
40
40
  return "StrictMode";
41
- case J:
41
+ case q:
42
42
  return "Suspense";
43
43
  case Z:
44
44
  return "SuspenseList";
@@ -51,98 +51,98 @@ function ne() {
51
51
  ), r.$$typeof) {
52
52
  case N:
53
53
  return "Portal";
54
- case H:
54
+ case S:
55
55
  return r.displayName || "Context";
56
- case $:
56
+ case W:
57
57
  return (r._context.displayName || "Context") + ".Consumer";
58
- case q:
59
- var i = r.render;
60
- return r = r.displayName, r || (r = i.displayName || i.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
58
+ case I:
59
+ var d = r.render;
60
+ return r = r.displayName, r || (r = d.displayName || d.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
61
61
  case X:
62
- return i = r.displayName || null, i !== null ? i : s(r.type) || "Memo";
63
- case T:
64
- i = r._payload, r = r._init;
62
+ return d = r.displayName || null, d !== null ? d : s(r.type) || "Memo";
63
+ case A:
64
+ d = r._payload, r = r._init;
65
65
  try {
66
- return s(r(i));
66
+ return s(r(d));
67
67
  } catch {
68
68
  }
69
69
  }
70
70
  return null;
71
71
  }
72
- function n(r) {
72
+ function o(r) {
73
73
  return "" + r;
74
74
  }
75
- function l(r) {
75
+ function i(r) {
76
76
  try {
77
- n(r);
78
- var i = !1;
77
+ o(r);
78
+ var d = !1;
79
79
  } catch {
80
- i = !0;
80
+ d = !0;
81
81
  }
82
- if (i) {
83
- i = console;
84
- var u = i.error, x = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
85
- return u.call(
86
- i,
82
+ if (d) {
83
+ d = console;
84
+ var x = d.error, h = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
85
+ return x.call(
86
+ d,
87
87
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
88
- x
89
- ), n(r);
88
+ h
89
+ ), o(r);
90
90
  }
91
91
  }
92
92
  function t(r) {
93
- if (r === k) return "<>";
94
- if (typeof r == "object" && r !== null && r.$$typeof === T)
93
+ if (r === j) return "<>";
94
+ if (typeof r == "object" && r !== null && r.$$typeof === A)
95
95
  return "<...>";
96
96
  try {
97
- var i = s(r);
98
- return i ? "<" + i + ">" : "<...>";
97
+ var d = s(r);
98
+ return d ? "<" + d + ">" : "<...>";
99
99
  } catch {
100
100
  return "<...>";
101
101
  }
102
102
  }
103
- function o() {
104
- var r = S.A;
103
+ function l() {
104
+ var r = O.A;
105
105
  return r === null ? null : r.getOwner();
106
106
  }
107
- function a() {
107
+ function n() {
108
108
  return Error("react-stack-top-frame");
109
109
  }
110
- function d(r) {
111
- if (z.call(r, "key")) {
112
- var i = Object.getOwnPropertyDescriptor(r, "key").get;
113
- if (i && i.isReactWarning) return !1;
110
+ function a(r) {
111
+ if (B.call(r, "key")) {
112
+ var d = Object.getOwnPropertyDescriptor(r, "key").get;
113
+ if (d && d.isReactWarning) return !1;
114
114
  }
115
115
  return r.key !== void 0;
116
116
  }
117
- function c(r, i) {
118
- function u() {
119
- W || (W = !0, console.error(
117
+ function c(r, d) {
118
+ function x() {
119
+ D || (D = !0, console.error(
120
120
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
121
- i
121
+ d
122
122
  ));
123
123
  }
124
- u.isReactWarning = !0, Object.defineProperty(r, "key", {
125
- get: u,
124
+ x.isReactWarning = !0, Object.defineProperty(r, "key", {
125
+ get: x,
126
126
  configurable: !0
127
127
  });
128
128
  }
129
- function f() {
129
+ function u() {
130
130
  var r = s(this.type);
131
- return I[r] || (I[r] = !0, console.error(
131
+ return Y[r] || (Y[r] = !0, console.error(
132
132
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
133
133
  )), r = this.props.ref, r !== void 0 ? r : null;
134
134
  }
135
- function g(r, i, u, x, E, O) {
136
- var m = u.ref;
135
+ function f(r, d, x, h, E, L) {
136
+ var m = x.ref;
137
137
  return r = {
138
- $$typeof: v,
138
+ $$typeof: y,
139
139
  type: r,
140
- key: i,
141
- props: u,
142
- _owner: x
140
+ key: d,
141
+ props: x,
142
+ _owner: h
143
143
  }, (m !== void 0 ? m : null) !== null ? Object.defineProperty(r, "ref", {
144
144
  enumerable: !1,
145
- get: f
145
+ get: u
146
146
  }) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
147
147
  configurable: !1,
148
148
  enumerable: !1,
@@ -162,117 +162,118 @@ function ne() {
162
162
  configurable: !1,
163
163
  enumerable: !1,
164
164
  writable: !0,
165
- value: O
165
+ value: L
166
166
  }), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
167
167
  }
168
- function p(r, i, u, x, E, O) {
169
- var m = i.children;
168
+ function b(r, d, x, h, E, L) {
169
+ var m = d.children;
170
170
  if (m !== void 0)
171
- if (x)
171
+ if (h)
172
172
  if (ee(m)) {
173
- for (x = 0; x < m.length; x++)
174
- b(m[x]);
173
+ for (h = 0; h < m.length; h++)
174
+ p(m[h]);
175
175
  Object.freeze && Object.freeze(m);
176
176
  } else
177
177
  console.error(
178
178
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
179
179
  );
180
- else b(m);
181
- if (z.call(i, "key")) {
180
+ else p(m);
181
+ if (B.call(d, "key")) {
182
182
  m = s(r);
183
- var y = Object.keys(i).filter(function(re) {
183
+ var w = Object.keys(d).filter(function(re) {
184
184
  return re !== "key";
185
185
  });
186
- x = 0 < y.length ? "{key: someKey, " + y.join(": ..., ") + ": ...}" : "{key: someKey}", Y[m + x] || (y = 0 < y.length ? "{" + y.join(": ..., ") + ": ...}" : "{}", console.error(
186
+ h = 0 < w.length ? "{key: someKey, " + w.join(": ..., ") + ": ...}" : "{key: someKey}", V[m + h] || (w = 0 < w.length ? "{" + w.join(": ..., ") + ": ...}" : "{}", console.error(
187
187
  `A props object containing a "key" prop is being spread into JSX:
188
188
  let props = %s;
189
189
  <%s {...props} />
190
190
  React keys must be passed directly to JSX without using spread:
191
191
  let props = %s;
192
192
  <%s key={someKey} {...props} />`,
193
- x,
193
+ h,
194
194
  m,
195
- y,
195
+ w,
196
196
  m
197
- ), Y[m + x] = !0);
197
+ ), V[m + h] = !0);
198
198
  }
199
- if (m = null, u !== void 0 && (l(u), m = "" + u), d(i) && (l(i.key), m = "" + i.key), "key" in i) {
200
- u = {};
201
- for (var P in i)
202
- P !== "key" && (u[P] = i[P]);
203
- } else u = i;
199
+ if (m = null, x !== void 0 && (i(x), m = "" + x), a(d) && (i(d.key), m = "" + d.key), "key" in d) {
200
+ x = {};
201
+ for (var M in d)
202
+ M !== "key" && (x[M] = d[M]);
203
+ } else x = d;
204
204
  return m && c(
205
- u,
205
+ x,
206
206
  typeof r == "function" ? r.displayName || r.name || "Unknown" : r
207
- ), g(
207
+ ), f(
208
208
  r,
209
209
  m,
210
- u,
211
- o(),
210
+ x,
211
+ l(),
212
212
  E,
213
- O
213
+ L
214
214
  );
215
215
  }
216
- function b(r) {
217
- j(r) ? r._store && (r._store.validated = 1) : typeof r == "object" && r !== null && r.$$typeof === T && (r._payload.status === "fulfilled" ? j(r._payload.value) && r._payload.value._store && (r._payload.value._store.validated = 1) : r._store && (r._store.validated = 1));
216
+ function p(r) {
217
+ v(r) ? r._store && (r._store.validated = 1) : typeof r == "object" && r !== null && r.$$typeof === A && (r._payload.status === "fulfilled" ? v(r._payload.value) && r._payload.value._store && (r._payload.value._store.validated = 1) : r._store && (r._store.validated = 1));
218
218
  }
219
- function j(r) {
220
- return typeof r == "object" && r !== null && r.$$typeof === v;
219
+ function v(r) {
220
+ return typeof r == "object" && r !== null && r.$$typeof === y;
221
221
  }
222
- var h = G, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), N = /* @__PURE__ */ Symbol.for("react.portal"), k = /* @__PURE__ */ Symbol.for("react.fragment"), L = /* @__PURE__ */ Symbol.for("react.strict_mode"), M = /* @__PURE__ */ Symbol.for("react.profiler"), $ = /* @__PURE__ */ Symbol.for("react.consumer"), H = /* @__PURE__ */ Symbol.for("react.context"), q = /* @__PURE__ */ Symbol.for("react.forward_ref"), J = /* @__PURE__ */ Symbol.for("react.suspense"), Z = /* @__PURE__ */ Symbol.for("react.suspense_list"), X = /* @__PURE__ */ Symbol.for("react.memo"), T = /* @__PURE__ */ Symbol.for("react.lazy"), Q = /* @__PURE__ */ Symbol.for("react.activity"), K = /* @__PURE__ */ Symbol.for("react.client.reference"), S = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, z = Object.prototype.hasOwnProperty, ee = Array.isArray, A = console.createTask ? console.createTask : function() {
222
+ var g = z, y = /* @__PURE__ */ Symbol.for("react.transitional.element"), N = /* @__PURE__ */ Symbol.for("react.portal"), j = /* @__PURE__ */ Symbol.for("react.fragment"), T = /* @__PURE__ */ Symbol.for("react.strict_mode"), _ = /* @__PURE__ */ Symbol.for("react.profiler"), W = /* @__PURE__ */ Symbol.for("react.consumer"), S = /* @__PURE__ */ Symbol.for("react.context"), I = /* @__PURE__ */ Symbol.for("react.forward_ref"), q = /* @__PURE__ */ Symbol.for("react.suspense"), Z = /* @__PURE__ */ Symbol.for("react.suspense_list"), X = /* @__PURE__ */ Symbol.for("react.memo"), A = /* @__PURE__ */ Symbol.for("react.lazy"), Q = /* @__PURE__ */ Symbol.for("react.activity"), K = /* @__PURE__ */ Symbol.for("react.client.reference"), O = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, ee = Array.isArray, P = console.createTask ? console.createTask : function() {
223
223
  return null;
224
224
  };
225
- h = {
225
+ g = {
226
226
  react_stack_bottom_frame: function(r) {
227
227
  return r();
228
228
  }
229
229
  };
230
- var W, I = {}, B = h.react_stack_bottom_frame.bind(
231
- h,
232
- a
233
- )(), D = A(t(a)), Y = {};
234
- _.Fragment = k, _.jsx = function(r, i, u) {
235
- var x = 1e4 > S.recentlyCreatedOwnerStacks++;
236
- return p(
230
+ var D, Y = {}, F = g.react_stack_bottom_frame.bind(
231
+ g,
232
+ n
233
+ )(), U = P(t(n)), V = {};
234
+ $.Fragment = j, $.jsx = function(r, d, x) {
235
+ var h = 1e4 > O.recentlyCreatedOwnerStacks++;
236
+ return b(
237
237
  r,
238
- i,
239
- u,
238
+ d,
239
+ x,
240
240
  !1,
241
- x ? Error("react-stack-top-frame") : B,
242
- x ? A(t(r)) : D
241
+ h ? Error("react-stack-top-frame") : F,
242
+ h ? P(t(r)) : U
243
243
  );
244
- }, _.jsxs = function(r, i, u) {
245
- var x = 1e4 > S.recentlyCreatedOwnerStacks++;
246
- return p(
244
+ }, $.jsxs = function(r, d, x) {
245
+ var h = 1e4 > O.recentlyCreatedOwnerStacks++;
246
+ return b(
247
247
  r,
248
- i,
249
- u,
248
+ d,
249
+ x,
250
250
  !0,
251
- x ? Error("react-stack-top-frame") : B,
252
- x ? A(t(r)) : D
251
+ h ? Error("react-stack-top-frame") : F,
252
+ h ? P(t(r)) : U
253
253
  );
254
254
  };
255
- })()), _;
255
+ })()), $;
256
256
  }
257
- var V;
257
+ var J;
258
258
  function oe() {
259
- return V || (V = 1, process.env.NODE_ENV === "production" ? R.exports = se() : R.exports = ne()), R.exports;
259
+ return J || (J = 1, process.env.NODE_ENV === "production" ? R.exports = se() : R.exports = ne()), R.exports;
260
260
  }
261
261
  var e = oe();
262
- const w = ({
262
+ const k = ({
263
263
  variant: s = "primary",
264
- size: n = "md",
265
- rounded: l = "full",
264
+ size: o = "md",
265
+ rounded: i = "full",
266
266
  isLoading: t = !1,
267
- fullWidth: o = !1,
268
- leftIcon: a,
269
- rightIcon: d,
267
+ fullWidth: l = !1,
268
+ leftIcon: n,
269
+ rightIcon: a,
270
270
  className: c = "",
271
- children: f,
272
- disabled: g,
271
+ children: u,
272
+ disabled: f,
273
+ gradient: b,
273
274
  ...p
274
275
  }) => {
275
- const b = "inline-flex items-center justify-center font-medium disabled:opacity-50 disabled:pointer-events-none transition-colors duration-150", j = {
276
+ const v = "inline-flex items-center justify-center font-medium disabled:opacity-50 disabled:pointer-events-none transition-colors duration-150", g = {
276
277
  primary: "bg-[#0070f3] text-white hover:bg-[#0060df] border border-transparent",
277
278
  secondary: "bg-transparent text-[#0070f3] border border-[#0070f3] hover:bg-blue-50",
278
279
  // White with Blue Border
@@ -282,114 +283,134 @@ const w = ({
282
283
  // Burnt Orange/Red
283
284
  link: "bg-transparent text-[#0070f3] hover:underline px-0 py-0 h-auto border-none",
284
285
  // Text only
285
- ghost: "bg-transparent text-gray-700 hover:bg-gray-100 border-transparent"
286
+ ghost: "bg-transparent text-gray-700 hover:bg-gray-100 border-transparent",
286
287
  // Transparent with hover bg
287
- }, h = {
288
+ gradient: `text-white border-none hover:opacity-90 active:scale-95 ${b || "bg-gradient-to-r from-red-500 to-pink-500"}`
289
+ }, y = {
288
290
  sm: "px-4 py-1.5 text-xs gap-1.5 min-w-[80px]",
289
- md: "px-6 py-2 text-sm gap-2 min-w-[100px]",
290
- lg: "px-8 py-3 text-base gap-2 min-w-[120px]",
291
+ md: "px-6 py-2.5 text-sm gap-2 min-w-[100px]",
292
+ lg: "px-8 py-3.5 text-lg gap-2 min-w-[120px]",
291
293
  icon: "w-10 h-10 p-0 min-w-0"
292
- }, v = {
294
+ }, N = {
293
295
  none: "rounded-none",
294
296
  sm: "rounded-sm",
295
297
  md: "rounded-md",
296
298
  lg: "rounded-lg",
297
299
  full: "rounded-full"
298
- }, N = o ? "w-full" : "";
300
+ }, j = l ? "w-full" : "";
299
301
  return /* @__PURE__ */ e.jsxs(
300
302
  "button",
301
303
  {
302
- className: `${b} ${j[s]} ${h[n]} ${v[l]} ${N} ${c}`,
303
- disabled: g || t,
304
+ className: `${v} ${g[s]} ${y[o]} ${N[i]} ${j} ${c}`,
305
+ disabled: f || t,
304
306
  ...p,
305
307
  children: [
306
308
  t && /* @__PURE__ */ e.jsxs("svg", { className: "animate-spin -ml-1 mr-2 h-4 w-4", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [
307
309
  /* @__PURE__ */ e.jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
308
310
  /* @__PURE__ */ e.jsx("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })
309
311
  ] }),
310
- !t && a && /* @__PURE__ */ e.jsx("span", { className: "shrink-0", children: a }),
311
- /* @__PURE__ */ e.jsx("span", { className: "truncate", children: t ? "Loading..." : f }),
312
- !t && d && /* @__PURE__ */ e.jsx("span", { className: "shrink-0", children: d })
312
+ !t && n && /* @__PURE__ */ e.jsx("span", { className: "shrink-0", children: n }),
313
+ /* @__PURE__ */ e.jsx("span", { className: "truncate", children: t ? "Loading..." : u }),
314
+ !t && a && /* @__PURE__ */ e.jsx("span", { className: "shrink-0", children: a })
313
315
  ]
314
316
  }
315
317
  );
316
- }, de = ({
318
+ }, le = z.forwardRef(({
317
319
  label: s,
318
- error: n,
319
- leftIcon: l,
320
+ error: o,
321
+ leftIcon: i,
320
322
  rightIcon: t,
321
- className: o = "",
323
+ variant: l = "default",
324
+ className: n = "",
322
325
  ...a
323
- }) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1.5 w-full", children: [
324
- s && /* @__PURE__ */ e.jsx("label", { className: "text-sm font-medium text-gray-700", children: s }),
325
- /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
326
- l && /* @__PURE__ */ e.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-gray-400", children: l }),
327
- /* @__PURE__ */ e.jsx(
328
- "input",
329
- {
330
- className: `
326
+ }, c) => {
327
+ const u = {
328
+ default: "bg-white border-gray-300 text-gray-900 focus:ring-blue-500",
329
+ glass: "bg-black/30 border-gray-600 text-white placeholder-gray-400 focus:ring-pink-500 focus:border-pink-500",
330
+ dark: "bg-gray-900 border-gray-800 text-white focus:ring-blue-500"
331
+ };
332
+ return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1.5 w-full", children: [
333
+ s && /* @__PURE__ */ e.jsx("label", { className: `text-sm font-medium ${l === "default" ? "text-gray-700" : "text-gray-300"}`, children: s }),
334
+ /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
335
+ i && /* @__PURE__ */ e.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-gray-400", children: i }),
336
+ /* @__PURE__ */ e.jsx(
337
+ "input",
338
+ {
339
+ ref: c,
340
+ className: `
331
341
  w-full
332
- ${l ? "pl-10" : "px-3"}
342
+ ${i ? "pl-10" : "px-3"}
333
343
  ${t ? "pr-10" : "px-3"}
334
- py-2
335
- bg-white
344
+ py-3
336
345
  border
337
- ${n ? "border-red-500" : "border-gray-300"}
338
- rounded-md
346
+ ${o ? "border-red-500" : ""}
347
+ rounded-lg
339
348
  shadow-sm
340
349
  focus:outline-none
341
350
  focus:ring-2
342
- ${n ? "focus:ring-red-500" : "focus:ring-blue-500"}
351
+ ${o ? "focus:ring-red-500" : ""}
343
352
  focus:border-transparent
344
353
  transition-all
345
354
  duration-200
346
- hover:border-gray-400
347
- ${o}
355
+ ${u[l]}
356
+ ${n}
348
357
  `,
349
- ...a
350
- }
351
- ),
352
- t && /* @__PURE__ */ e.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-gray-400", children: t })
353
- ] }),
354
- n && /* @__PURE__ */ e.jsx("span", { className: "text-xs text-red-500", children: n })
355
- ] }), ue = ({
358
+ ...a
359
+ }
360
+ ),
361
+ t && /* @__PURE__ */ e.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-gray-400", children: t })
362
+ ] }),
363
+ o && /* @__PURE__ */ e.jsx("span", { className: "text-xs text-red-500", children: o })
364
+ ] });
365
+ });
366
+ le.displayName = "Input";
367
+ const ue = ({
356
368
  title: s,
357
- subtitle: n,
358
- children: l,
369
+ subtitle: o,
370
+ children: i,
359
371
  footer: t,
360
- className: o = ""
361
- }) => /* @__PURE__ */ e.jsxs("div", { className: `bg-white rounded-xl border border-gray-200 shadow-sm overflow-hidden ${o}`, children: [
362
- (s || n) && /* @__PURE__ */ e.jsxs("div", { className: "px-6 py-4 border-b border-gray-100", children: [
363
- s && /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-gray-900", children: s }),
364
- n && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-gray-500 mt-1", children: n })
365
- ] }),
366
- /* @__PURE__ */ e.jsx("div", { className: "px-6 py-4", children: l }),
367
- t && /* @__PURE__ */ e.jsx("div", { className: "px-6 py-4 bg-gray-50 border-t border-gray-100", children: t })
368
- ] }), xe = ({
372
+ className: l = "",
373
+ variant: n = "default",
374
+ noPadding: a = !1
375
+ }) => {
376
+ const c = {
377
+ default: "bg-white border-gray-200 shadow-sm",
378
+ glass: "bg-black/40 backdrop-blur-lg border-gray-800 shadow-lg",
379
+ transparent: "bg-transparent border-none shadow-none"
380
+ };
381
+ return /* @__PURE__ */ e.jsxs("div", { className: `rounded-xl border overflow-hidden transition-all duration-300 ${c[n]} ${l}`, children: [
382
+ (s || o) && /* @__PURE__ */ e.jsxs("div", { className: `px-6 py-4 border-b ${n === "glass" ? "border-gray-800" : "border-gray-100"}`, children: [
383
+ s && /* @__PURE__ */ e.jsx("h3", { className: `text-lg font-semibold ${n === "glass" ? "text-white" : "text-gray-900"}`, children: s }),
384
+ o && /* @__PURE__ */ e.jsx("p", { className: `text-sm mt-1 ${n === "glass" ? "text-gray-400" : "text-gray-500"}`, children: o })
385
+ ] }),
386
+ /* @__PURE__ */ e.jsx("div", { className: a ? "" : "px-6 py-4", children: i }),
387
+ t && /* @__PURE__ */ e.jsx("div", { className: `px-6 py-4 border-t ${n === "glass" ? "bg-black/20 border-gray-800" : "bg-gray-50 border-gray-100"}`, children: t })
388
+ ] });
389
+ }, xe = ({
369
390
  username: s,
370
- profilePic: n,
371
- postImage: l,
391
+ profilePic: o,
392
+ postImage: i,
372
393
  likesCount: t,
373
- caption: o,
374
- location: a,
375
- isLiked: d = !1,
394
+ caption: l,
395
+ location: n,
396
+ isLiked: a = !1,
376
397
  isBookmarked: c = !1,
377
- onLike: f,
378
- onComment: g,
379
- onShare: p,
380
- onBookmark: b
398
+ onLike: u,
399
+ onComment: f,
400
+ onShare: b,
401
+ onBookmark: p
381
402
  }) => /* @__PURE__ */ e.jsxs("div", { className: "group relative max-w-[420px] mx-auto bg-white rounded-3xl overflow-hidden shadow-sm hover:shadow-xl transition-all duration-300 border border-gray-100/50", children: [
382
403
  /* @__PURE__ */ e.jsxs("div", { className: "relative w-full aspect-4/5 bg-gray-100 overflow-hidden", children: [
383
404
  /* @__PURE__ */ e.jsx(
384
405
  "img",
385
406
  {
386
- src: l,
407
+ src: i,
387
408
  alt: "Post content",
388
409
  className: "w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"
389
410
  }
390
411
  ),
391
412
  /* @__PURE__ */ e.jsx("div", { className: "absolute top-4 right-4 opacity-0 group-hover:opacity-100 transition-opacity", children: /* @__PURE__ */ e.jsx(
392
- w,
413
+ k,
393
414
  {
394
415
  variant: "ghost",
395
416
  size: "icon",
@@ -409,46 +430,46 @@ const w = ({
409
430
  /* @__PURE__ */ e.jsx("div", { className: "relative", children: /* @__PURE__ */ e.jsx(
410
431
  "img",
411
432
  {
412
- src: n,
433
+ src: o,
413
434
  alt: s,
414
435
  className: "w-10 h-10 rounded-full object-cover ring-2 ring-offset-2 ring-indigo-500"
415
436
  }
416
437
  ) }),
417
438
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col", children: [
418
439
  /* @__PURE__ */ e.jsx("span", { className: "font-bold text-gray-900 text-sm leading-tight hover:text-indigo-600 cursor-pointer transition-colors", children: s }),
419
- a && /* @__PURE__ */ e.jsx("span", { className: "text-[11px] font-medium text-gray-400 uppercase tracking-wide", children: a })
440
+ n && /* @__PURE__ */ e.jsx("span", { className: "text-[11px] font-medium text-gray-400 uppercase tracking-wide", children: n })
420
441
  ] })
421
442
  ] }),
422
443
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
423
444
  /* @__PURE__ */ e.jsx(
424
- w,
445
+ k,
425
446
  {
426
447
  variant: "ghost",
427
448
  size: "icon",
428
449
  rounded: "full",
429
- onClick: f,
430
- className: `transition-colors ${d ? "text-rose-500 hover:bg-rose-50" : "text-gray-400 hover:text-rose-500"}`,
431
- children: d ? /* @__PURE__ */ e.jsx("svg", { "aria-label": "Unlike", fill: "currentColor", height: "26", role: "img", viewBox: "0 0 48 48", width: "26", children: /* @__PURE__ */ e.jsx("path", { d: "M34.6 3.1c-4.5 0-7.9 1.8-10.6 5.6-2.7-3.7-6.1-5.5-10.6-5.5C6 3.1 0 9.6 0 17.6c0 14.9 17.8 29.1 23.9 30.2h.2c6.1-1.1 23.9-15.3 23.9-30.2 0-8-6-14.5-13.4-14.5z" }) }) : /* @__PURE__ */ e.jsx("svg", { "aria-label": "Like", fill: "currentColor", height: "26", role: "img", viewBox: "0 0 24 24", width: "26", children: /* @__PURE__ */ e.jsx("path", { d: "M16.792 3.904A4.989 4.989 0 0 1 21.5 9.122c0 3.072-2.652 4.959-5.197 7.222-2.512 2.243-3.865 3.469-4.303 3.752-.477-.309-2.143-1.823-4.303-3.752C5.141 14.072 2.5 12.194 2.5 9.122a4.989 4.989 0 0 1 4.708-5.218 4.21 4.21 0 0 1 3.675 1.941c.252.342.392.545.517.545s.265-.203.517-.545a4.21 4.21 0 0 1 3.675-1.941m0-2a6.21 6.21 0 0 0-5.292 2.768 6.21 6.21 0 0 0-5.292-2.768 6.989 6.989 0 0 0-6.708 7.218c0 4.19 2.923 6.64 5.642 9.066 2.057 1.838 4.19 3.744 5.358 5.485.474-.707 2.112-2.298 5.358-5.188 2.308-2.053 5.358-4.706 5.358-9.363a6.989 6.989 0 0 0-6.708-7.218Z" }) })
450
+ onClick: u,
451
+ className: `transition-colors ${a ? "text-rose-500 hover:bg-rose-50" : "text-gray-400 hover:text-rose-500"}`,
452
+ children: a ? /* @__PURE__ */ e.jsx("svg", { "aria-label": "Unlike", fill: "currentColor", height: "26", role: "img", viewBox: "0 0 48 48", width: "26", children: /* @__PURE__ */ e.jsx("path", { d: "M34.6 3.1c-4.5 0-7.9 1.8-10.6 5.6-2.7-3.7-6.1-5.5-10.6-5.5C6 3.1 0 9.6 0 17.6c0 14.9 17.8 29.1 23.9 30.2h.2c6.1-1.1 23.9-15.3 23.9-30.2 0-8-6-14.5-13.4-14.5z" }) }) : /* @__PURE__ */ e.jsx("svg", { "aria-label": "Like", fill: "currentColor", height: "26", role: "img", viewBox: "0 0 24 24", width: "26", children: /* @__PURE__ */ e.jsx("path", { d: "M16.792 3.904A4.989 4.989 0 0 1 21.5 9.122c0 3.072-2.652 4.959-5.197 7.222-2.512 2.243-3.865 3.469-4.303 3.752-.477-.309-2.143-1.823-4.303-3.752C5.141 14.072 2.5 12.194 2.5 9.122a4.989 4.989 0 0 1 4.708-5.218 4.21 4.21 0 0 1 3.675 1.941c.252.342.392.545.517.545s.265-.203.517-.545a4.21 4.21 0 0 1 3.675-1.941m0-2a6.21 6.21 0 0 0-5.292 2.768 6.21 6.21 0 0 0-5.292-2.768 6.989 6.989 0 0 0-6.708 7.218c0 4.19 2.923 6.64 5.642 9.066 2.057 1.838 4.19 3.744 5.358 5.485.474-.707 2.112-2.298 5.358-5.188 2.308-2.053 5.358-4.706 5.358-9.363a6.989 6.989 0 0 0-6.708-7.218Z" }) })
432
453
  }
433
454
  ),
434
455
  /* @__PURE__ */ e.jsx(
435
- w,
456
+ k,
436
457
  {
437
458
  variant: "ghost",
438
459
  size: "icon",
439
460
  rounded: "full",
440
- onClick: g,
461
+ onClick: f,
441
462
  className: "text-gray-400 hover:text-indigo-500",
442
463
  children: /* @__PURE__ */ e.jsx("svg", { "aria-label": "Comment", fill: "currentColor", height: "26", role: "img", viewBox: "0 0 24 24", width: "26", children: /* @__PURE__ */ e.jsx("path", { d: "M20.656 17.008a9.993 9.993 0 1 0-3.59 3.615L22 22Z", fill: "none", stroke: "currentColor", strokeLinejoin: "round", strokeWidth: "2" }) })
443
464
  }
444
465
  ),
445
466
  /* @__PURE__ */ e.jsx(
446
- w,
467
+ k,
447
468
  {
448
469
  variant: "ghost",
449
470
  size: "icon",
450
471
  rounded: "full",
451
- onClick: p,
472
+ onClick: b,
452
473
  className: "text-gray-400 hover:text-indigo-500",
453
474
  children: /* @__PURE__ */ e.jsxs("svg", { "aria-label": "Share Post", fill: "currentColor", height: "26", role: "img", viewBox: "0 0 24 24", width: "26", children: [
454
475
  /* @__PURE__ */ e.jsx("line", { fill: "none", stroke: "currentColor", strokeLinejoin: "round", strokeWidth: "2", x1: "22", x2: "9.218", y1: "3", y2: "10.083" }),
@@ -459,19 +480,19 @@ const w = ({
459
480
  ] })
460
481
  ] }),
461
482
  /* @__PURE__ */ e.jsxs("div", { className: "space-y-3", children: [
462
- /* @__PURE__ */ e.jsx("p", { className: "text-gray-800 text-sm leading-relaxed", children: o }),
483
+ /* @__PURE__ */ e.jsx("p", { className: "text-gray-800 text-sm leading-relaxed", children: l }),
463
484
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between pt-2 border-t border-gray-50", children: [
464
485
  /* @__PURE__ */ e.jsxs("span", { className: "font-semibold text-xs text-gray-500", children: [
465
486
  t.toLocaleString(),
466
487
  " Likes"
467
488
  ] }),
468
489
  /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ e.jsx(
469
- w,
490
+ k,
470
491
  {
471
492
  variant: "ghost",
472
493
  size: "icon",
473
494
  rounded: "full",
474
- onClick: b,
495
+ onClick: p,
475
496
  className: `transition-colors ${c ? "text-gray-900" : "text-gray-400 hover:text-gray-900"}`,
476
497
  children: c ? /* @__PURE__ */ e.jsx("svg", { "aria-label": "Remove", fill: "currentColor", height: "22", role: "img", viewBox: "0 0 24 24", width: "22", children: /* @__PURE__ */ e.jsx("path", { d: "M20 22a.999.999 0 0 1-.687-.273L12 14.89l-7.313 6.837A1 1 0 0 1 3 21V3a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1Z" }) }) : /* @__PURE__ */ e.jsx("svg", { "aria-label": "Save", fill: "currentColor", height: "22", role: "img", viewBox: "0 0 24 24", width: "22", children: /* @__PURE__ */ e.jsx("path", { d: "M20 22a.999.999 0 0 1-.687-.273L12 14.89l-7.313 6.837A1 1 0 0 1 3 21V3a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1Z", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2" }) })
477
498
  }
@@ -486,66 +507,66 @@ const w = ({
486
507
  className: "w-full text-xs text-gray-600 bg-gray-50 rounded-full px-3 py-2 outline-none focus:ring-1 focus:ring-indigo-200 transition-all"
487
508
  }
488
509
  ),
489
- /* @__PURE__ */ e.jsx("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: /* @__PURE__ */ e.jsx(w, { variant: "ghost", size: "sm", className: "text-indigo-500 font-bold px-2 py-0 h-auto hover:bg-transparent hover:text-indigo-700 min-w-0", children: "Post" }) })
510
+ /* @__PURE__ */ e.jsx("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: /* @__PURE__ */ e.jsx(k, { variant: "ghost", size: "sm", className: "text-indigo-500 font-bold px-2 py-0 h-auto hover:bg-transparent hover:text-indigo-700 min-w-0", children: "Post" }) })
490
511
  ] })
491
512
  ] })
492
513
  ] })
493
- ] }), me = ({
514
+ ] }), he = ({
494
515
  variant: s = "spinner",
495
- size: n = "md",
496
- className: l = "",
516
+ size: o = "md",
517
+ className: i = "",
497
518
  color: t,
498
- colors: o
519
+ colors: l
499
520
  }) => {
500
- const a = {
521
+ const n = {
501
522
  sm: "w-4 h-4",
502
523
  md: "w-8 h-8",
503
524
  lg: "w-12 h-12",
504
525
  xl: "w-16 h-16"
505
- }, d = {
526
+ }, a = {
506
527
  sm: "w-1 h-1",
507
528
  md: "w-2 h-2",
508
529
  lg: "w-3 h-3",
509
530
  xl: "w-4 h-4"
510
- }, c = a[n], f = "bg-gradient-to-tr from-yellow-400 via-red-500 to-purple-600";
531
+ }, c = n[o], u = "bg-gradient-to-tr from-yellow-400 via-red-500 to-purple-600";
511
532
  if (s === "dots") {
512
- const g = d[n], p = !!t || !!o?.length, b = (h) => {
513
- if (!p) return {};
514
- const v = o?.[h] || t;
515
- return v ? { backgroundColor: v } : {};
516
- }, j = () => p ? "" : f;
517
- return /* @__PURE__ */ e.jsx("div", { className: `flex items-center justify-center gap-1 ${l}`, children: [0, 1, 2].map((h) => /* @__PURE__ */ e.jsx(
533
+ const f = a[o], b = !!t || !!l?.length, p = (g) => {
534
+ if (!b) return {};
535
+ const y = l?.[g] || t;
536
+ return y ? { backgroundColor: y } : {};
537
+ }, v = () => b ? "" : u;
538
+ return /* @__PURE__ */ e.jsx("div", { className: `flex items-center justify-center gap-1 ${i}`, children: [0, 1, 2].map((g) => /* @__PURE__ */ e.jsx(
518
539
  "div",
519
540
  {
520
- className: `${g} rounded-full animate-bounce ${j()}`,
541
+ className: `${f} rounded-full animate-bounce ${v()}`,
521
542
  style: {
522
- ...b(h),
523
- animationDelay: h === 0 ? "-0.3s" : h === 1 ? "-0.15s" : "0s"
543
+ ...p(g),
544
+ animationDelay: g === 0 ? "-0.3s" : g === 1 ? "-0.15s" : "0s"
524
545
  }
525
546
  },
526
- h
547
+ g
527
548
  )) });
528
549
  }
529
550
  if (s === "pulse") {
530
- const g = t ? "" : f;
531
- return /* @__PURE__ */ e.jsxs("div", { className: `relative flex items-center justify-center ${c} ${l}`, children: [
551
+ const f = t ? "" : u;
552
+ return /* @__PURE__ */ e.jsxs("div", { className: `relative flex items-center justify-center ${c} ${i}`, children: [
532
553
  /* @__PURE__ */ e.jsx(
533
554
  "span",
534
555
  {
535
- className: `absolute inline-flex h-full w-full rounded-full opacity-75 animate-ping ${g}`,
556
+ className: `absolute inline-flex h-full w-full rounded-full opacity-75 animate-ping ${f}`,
536
557
  style: t ? { backgroundColor: t } : {}
537
558
  }
538
559
  ),
539
560
  /* @__PURE__ */ e.jsx(
540
561
  "span",
541
562
  {
542
- className: `relative inline-flex rounded-full h-3/4 w-3/4 ${g}`,
563
+ className: `relative inline-flex rounded-full h-3/4 w-3/4 ${f}`,
543
564
  style: t ? { backgroundColor: t } : {}
544
565
  }
545
566
  )
546
567
  ] });
547
568
  }
548
- return s === "multicolor" ? /* @__PURE__ */ e.jsx("div", { className: `${c} relative ${l}`, children: /* @__PURE__ */ e.jsx("div", { className: `absolute inset-0 rounded-full ${f} animate-spin`, children: /* @__PURE__ */ e.jsx("div", { className: "absolute inset-[3px] bg-white rounded-full" }) }) }) : s === "orbit" ? t ? /* @__PURE__ */ e.jsxs("div", { className: `relative ${c} ${l}`, children: [
569
+ return s === "multicolor" ? /* @__PURE__ */ e.jsx("div", { className: `${c} relative ${i}`, children: /* @__PURE__ */ e.jsx("div", { className: `absolute inset-0 rounded-full ${u} animate-spin`, children: /* @__PURE__ */ e.jsx("div", { className: "absolute inset-[3px] bg-white rounded-full" }) }) }) : s === "orbit" ? t ? /* @__PURE__ */ e.jsxs("div", { className: `relative ${c} ${i}`, children: [
549
570
  /* @__PURE__ */ e.jsx(
550
571
  "div",
551
572
  {
@@ -560,18 +581,18 @@ const w = ({
560
581
  style: { borderColor: t, borderLeftColor: "transparent", borderRightColor: "transparent", animationDirection: "reverse", animationDuration: "1.5s" }
561
582
  }
562
583
  )
563
- ] }) : /* @__PURE__ */ e.jsxs("div", { className: `relative ${c} ${l}`, children: [
564
- /* @__PURE__ */ e.jsx("div", { className: `absolute inset-0 rounded-full ${f} animate-spin`, children: /* @__PURE__ */ e.jsx("div", { className: "absolute inset-[2px] bg-white rounded-full" }) }),
565
- /* @__PURE__ */ e.jsx("div", { className: `absolute inset-1 rounded-full ${f} animate-spin-reverse opacity-75`, style: { animationDirection: "reverse", animationDuration: "1.5s" }, children: /* @__PURE__ */ e.jsx("div", { className: "absolute inset-[2px] bg-white rounded-full" }) })
584
+ ] }) : /* @__PURE__ */ e.jsxs("div", { className: `relative ${c} ${i}`, children: [
585
+ /* @__PURE__ */ e.jsx("div", { className: `absolute inset-0 rounded-full ${u} animate-spin`, children: /* @__PURE__ */ e.jsx("div", { className: "absolute inset-[2px] bg-white rounded-full" }) }),
586
+ /* @__PURE__ */ e.jsx("div", { className: `absolute inset-1 rounded-full ${u} animate-spin-reverse opacity-75`, style: { animationDirection: "reverse", animationDuration: "1.5s" }, children: /* @__PURE__ */ e.jsx("div", { className: "absolute inset-[2px] bg-white rounded-full" }) })
566
587
  ] }) : null;
567
- }, he = ({
588
+ }, me = ({
568
589
  variant: s = "info",
569
- title: n,
570
- children: l,
590
+ title: o,
591
+ children: i,
571
592
  onClose: t,
572
- className: o = ""
593
+ className: l = ""
573
594
  }) => {
574
- const d = {
595
+ const a = {
575
596
  success: {
576
597
  container: "bg-green-50 text-green-900 border-green-200",
577
598
  iconColor: "text-green-600",
@@ -596,23 +617,23 @@ const w = ({
596
617
  closeHover: "hover:bg-blue-100 text-blue-600",
597
618
  Icon: () => /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }) })
598
619
  }
599
- }[s], c = d.Icon;
620
+ }[s], c = a.Icon;
600
621
  return /* @__PURE__ */ e.jsxs(
601
622
  "div",
602
623
  {
603
624
  role: "alert",
604
- className: `flex p-4 rounded-lg border ${d.container} ${o}`,
625
+ className: `flex p-4 rounded-lg border ${a.container} ${l}`,
605
626
  children: [
606
- /* @__PURE__ */ e.jsx("div", { className: `shrink-0 ${d.iconColor}`, children: /* @__PURE__ */ e.jsx(c, {}) }),
627
+ /* @__PURE__ */ e.jsx("div", { className: `shrink-0 ${a.iconColor}`, children: /* @__PURE__ */ e.jsx(c, {}) }),
607
628
  /* @__PURE__ */ e.jsxs("div", { className: "ml-3 text-sm flex-1", children: [
608
- n && /* @__PURE__ */ e.jsx("span", { className: "font-semibold block mb-1", children: n }),
609
- /* @__PURE__ */ e.jsx("div", { className: "leading-relaxed", children: l })
629
+ o && /* @__PURE__ */ e.jsx("span", { className: "font-semibold block mb-1", children: o }),
630
+ /* @__PURE__ */ e.jsx("div", { className: "leading-relaxed", children: i })
610
631
  ] }),
611
632
  t && /* @__PURE__ */ e.jsx(
612
633
  "button",
613
634
  {
614
635
  onClick: t,
615
- className: `ml-auto -mx-1.5 -my-1.5 rounded-lg p-1.5 inline-flex h-8 w-8 items-center justify-center transition-colors ${d.closeHover}`,
636
+ className: `ml-auto -mx-1.5 -my-1.5 rounded-lg p-1.5 inline-flex h-8 w-8 items-center justify-center transition-colors ${a.closeHover}`,
616
637
  "aria-label": "Close",
617
638
  children: /* @__PURE__ */ e.jsx("svg", { className: "w-4 h-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
618
639
  }
@@ -622,12 +643,12 @@ const w = ({
622
643
  );
623
644
  }, ae = ({
624
645
  children: s,
625
- colSpan: n,
626
- rowSpan: l,
646
+ colSpan: o,
647
+ rowSpan: i,
627
648
  colStart: t,
628
- className: o = ""
649
+ className: l = ""
629
650
  }) => {
630
- const a = {
651
+ const n = {
631
652
  1: "col-span-1",
632
653
  2: "col-span-2",
633
654
  3: "col-span-3",
@@ -641,7 +662,7 @@ const w = ({
641
662
  11: "col-span-11",
642
663
  12: "col-span-12",
643
664
  full: "col-span-full"
644
- }, d = {
665
+ }, a = {
645
666
  1: "row-span-1",
646
667
  2: "row-span-2",
647
668
  3: "row-span-3",
@@ -649,24 +670,24 @@ const w = ({
649
670
  5: "row-span-5",
650
671
  6: "row-span-6"
651
672
  }, c = [
652
- n ? a[n] : "",
653
- l ? d[l] : "",
673
+ o ? n[o] : "",
674
+ i ? a[i] : "",
654
675
  t ? `col-start-${t}` : "",
655
- o
676
+ l
656
677
  ].filter(Boolean).join(" ");
657
678
  return /* @__PURE__ */ e.jsx("div", { className: c, children: s });
658
- }, le = ({
679
+ }, ie = ({
659
680
  children: s,
660
- cols: n = 1,
661
- gap: l = 4,
681
+ cols: o = 1,
682
+ gap: i = 4,
662
683
  gapX: t,
663
- gapY: o,
664
- flow: a = "row",
665
- align: d,
684
+ gapY: l,
685
+ flow: n = "row",
686
+ align: a,
666
687
  justify: c,
667
- className: f = ""
688
+ className: u = ""
668
689
  }) => {
669
- const g = {
690
+ const f = {
670
691
  1: "grid-cols-1",
671
692
  2: "grid-cols-2",
672
693
  3: "grid-cols-3",
@@ -676,7 +697,7 @@ const w = ({
676
697
  8: "grid-cols-8",
677
698
  10: "grid-cols-10",
678
699
  12: "grid-cols-12"
679
- }, p = {
700
+ }, b = {
680
701
  0: "gap-0",
681
702
  1: "gap-1",
682
703
  2: "gap-2",
@@ -687,32 +708,33 @@ const w = ({
687
708
  8: "gap-8",
688
709
  10: "gap-10",
689
710
  12: "gap-12"
690
- }, b = [
711
+ }, p = [
691
712
  "grid",
692
- g[n],
693
- t === void 0 && o === void 0 ? p[l] : "",
713
+ f[o],
714
+ t === void 0 && l === void 0 ? b[i] : "",
694
715
  // Use standard gap if no X/Y overrides
695
716
  t ? `gap-x-${t}` : "",
696
- o ? `gap-y-${o}` : "",
697
- a ? `grid-flow-${a}` : "",
698
- d ? `items-${d}` : "",
717
+ l ? `gap-y-${l}` : "",
718
+ n ? `grid-flow-${n}` : "",
719
+ a ? `items-${a}` : "",
699
720
  c ? `justify-${c}` : "",
700
- f
721
+ u
701
722
  ].filter(Boolean).join(" ");
702
- return /* @__PURE__ */ e.jsx("div", { className: b, children: s });
723
+ return /* @__PURE__ */ e.jsx("div", { className: p, children: s });
703
724
  };
704
- le.Item = ae;
725
+ ie.Item = ae;
705
726
  const fe = ({
706
727
  variant: s = "body1",
707
- component: n,
708
- children: l,
728
+ component: o,
729
+ children: i,
709
730
  weight: t,
710
- align: o = "left",
711
- color: a,
712
- className: d = "",
713
- noWrap: c = !1
731
+ align: l = "left",
732
+ color: n,
733
+ className: a = "",
734
+ noWrap: c = !1,
735
+ gradient: u
714
736
  }) => {
715
- const g = n || {
737
+ const b = o || {
716
738
  h1: "h1",
717
739
  h2: "h2",
718
740
  h3: "h3",
@@ -734,7 +756,7 @@ const fe = ({
734
756
  body2: "text-sm md:text-base leading-relaxed",
735
757
  caption: "text-xs md:text-sm text-gray-500",
736
758
  overline: "text-xs uppercase tracking-widest font-semibold"
737
- }, b = {
759
+ }, v = {
738
760
  h1: "font-extrabold",
739
761
  h2: "font-bold",
740
762
  h3: "font-bold",
@@ -745,41 +767,77 @@ const fe = ({
745
767
  body2: "font-normal",
746
768
  caption: "font-normal",
747
769
  overline: "font-bold"
748
- }, j = {
770
+ }, g = {
749
771
  normal: "font-normal",
750
772
  medium: "font-medium",
751
773
  semibold: "font-semibold",
752
774
  bold: "font-bold",
753
775
  extrabold: "font-extrabold"
754
- }, h = {
776
+ }, y = {
755
777
  left: "text-left",
756
778
  center: "text-center",
757
779
  right: "text-right",
758
780
  justify: "text-justify"
759
- }, v = p[s], N = t ? j[t] : b[s], k = h[o], $ = [
760
- v,
781
+ }, N = p[s], j = t ? g[t] : v[s], T = y[l];
782
+ let _ = n || (s === "caption" ? "text-gray-500" : "text-gray-900");
783
+ u && (_ = `${typeof u == "string" ? u : "bg-gradient-to-r from-pink-500 via-red-500 to-yellow-500"} text-transparent bg-clip-text`);
784
+ const S = [
761
785
  N,
762
- k,
763
- a || "text-gray-900",
786
+ j,
787
+ T,
788
+ _,
764
789
  c ? "truncate" : "",
765
- d
790
+ a
766
791
  ].filter(Boolean).join(" ");
767
- return /* @__PURE__ */ e.jsx(g, { className: $, children: l });
768
- }, ie = G.forwardRef(({ as: s, className: n = "", children: l, ...t }, o) => {
769
- const a = s || "div";
770
- return /* @__PURE__ */ e.jsx(a, { ref: o, className: n, ...t, children: l });
792
+ return /* @__PURE__ */ e.jsx(b, { className: S, children: i });
793
+ }, ce = z.forwardRef(({
794
+ as: s,
795
+ className: o = "",
796
+ children: i,
797
+ center: t,
798
+ fullScreen: l,
799
+ bgImage: n,
800
+ overlay: a,
801
+ glass: c,
802
+ style: u,
803
+ ...f
804
+ }, b) => {
805
+ const p = s || "div", v = [
806
+ t ? "flex items-center justify-center" : "",
807
+ l ? "min-h-screen w-full" : "",
808
+ c ? "backdrop-blur-lg bg-black/40" : "",
809
+ o
810
+ ].filter(Boolean).join(" "), g = {
811
+ ...n ? {
812
+ backgroundImage: `url(${n})`,
813
+ backgroundSize: "cover",
814
+ backgroundPosition: "center",
815
+ backgroundRepeat: "no-repeat"
816
+ } : {},
817
+ ...u
818
+ };
819
+ return /* @__PURE__ */ e.jsxs(p, { ref: b, className: `relative ${v}`, style: g, ...f, children: [
820
+ a && /* @__PURE__ */ e.jsx(
821
+ "div",
822
+ {
823
+ className: `absolute inset-0 z-0 ${typeof a == "string" ? "" : "bg-black/70"}`,
824
+ style: typeof a == "string" ? { backgroundColor: a } : {}
825
+ }
826
+ ),
827
+ /* @__PURE__ */ e.jsx("div", { className: "relative z-10 w-full h-full flex flex-col items-center justify-center", children: i })
828
+ ] });
771
829
  });
772
- ie.displayName = "Box";
830
+ ce.displayName = "Box";
773
831
  const ge = ({
774
832
  label: s,
775
- error: n,
776
- autoResize: l,
833
+ error: o,
834
+ autoResize: i,
777
835
  className: t = "",
778
- rows: o = 4,
779
- ...a
836
+ rows: l = 4,
837
+ ...n
780
838
  }) => {
781
- const d = (c) => {
782
- l && (c.target.style.height = "auto", c.target.style.height = `${c.target.scrollHeight}px`), a.onChange?.(c);
839
+ const a = (c) => {
840
+ i && (c.target.style.height = "auto", c.target.style.height = `${c.target.scrollHeight}px`), n.onChange?.(c);
783
841
  };
784
842
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1.5 w-full", children: [
785
843
  s && /* @__PURE__ */ e.jsx("label", { className: "text-sm font-medium text-gray-700", children: s }),
@@ -792,12 +850,12 @@ const ge = ({
792
850
  py-2
793
851
  bg-white
794
852
  border
795
- ${n ? "border-red-500" : "border-gray-300"}
853
+ ${o ? "border-red-500" : "border-gray-300"}
796
854
  rounded-md
797
855
  shadow-sm
798
856
  focus:outline-none
799
857
  focus:ring-2
800
- ${n ? "focus:ring-red-500" : "focus:ring-blue-500"}
858
+ ${o ? "focus:ring-red-500" : "focus:ring-blue-500"}
801
859
  focus:border-transparent
802
860
  transition-all
803
861
  duration-200
@@ -806,32 +864,32 @@ const ge = ({
806
864
  resize-y
807
865
  ${t}
808
866
  `,
809
- rows: o,
810
- onInput: d,
811
- ...a
867
+ rows: l,
868
+ onInput: a,
869
+ ...n
812
870
  }
813
871
  ),
814
- n && /* @__PURE__ */ e.jsx("span", { className: "text-xs text-red-500", children: n })
872
+ o && /* @__PURE__ */ e.jsx("span", { className: "text-xs text-red-500", children: o })
815
873
  ] });
816
- }, pe = ({
874
+ }, be = ({
817
875
  sidebar: s,
818
- header: n,
819
- children: l,
876
+ header: o,
877
+ children: i,
820
878
  footer: t,
821
- sidebarWidth: o = "260px",
822
- className: a = ""
879
+ sidebarWidth: l = "260px",
880
+ className: n = ""
823
881
  }) => {
824
- const [d, c] = te(!1);
825
- return /* @__PURE__ */ e.jsxs("div", { className: `flex h-screen bg-gray-50 overflow-hidden ${a}`, children: [
882
+ const [a, c] = te(!1);
883
+ return /* @__PURE__ */ e.jsxs("div", { className: `flex h-screen bg-gray-50 overflow-hidden ${n}`, children: [
826
884
  s && /* @__PURE__ */ e.jsx(
827
885
  "div",
828
886
  {
829
887
  className: "hidden md:flex flex-col h-full bg-white border-r border-gray-200",
830
- style: { width: o },
888
+ style: { width: l },
831
889
  children: s
832
890
  }
833
891
  ),
834
- s && d && /* @__PURE__ */ e.jsx(
892
+ s && a && /* @__PURE__ */ e.jsx(
835
893
  "div",
836
894
  {
837
895
  className: "fixed inset-0 z-40 bg-black/50 md:hidden",
@@ -843,7 +901,7 @@ const ge = ({
843
901
  {
844
902
  className: `
845
903
  fixed inset-y-0 left-0 z-50 w-64 bg-white shadow-xl transition-transform duration-300 md:hidden
846
- ${d ? "translate-x-0" : "-translate-x-full"}
904
+ ${a ? "translate-x-0" : "-translate-x-full"}
847
905
  `,
848
906
  children: s
849
907
  }
@@ -858,20 +916,20 @@ const ge = ({
858
916
  children: /* @__PURE__ */ e.jsx("svg", { className: "h-6 w-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 6h16M4 12h16m-7 6h7" }) })
859
917
  }
860
918
  ),
861
- /* @__PURE__ */ e.jsx("div", { className: "flex-1 flex items-center justify-between", children: n || /* @__PURE__ */ e.jsx("div", { className: "font-bold text-xl text-indigo-600", children: "OrbitUI" }) })
919
+ /* @__PURE__ */ e.jsx("div", { className: "flex-1 flex items-center justify-between", children: o || /* @__PURE__ */ e.jsx("div", { className: "font-bold text-xl text-indigo-600", children: "OrbitUI" }) })
862
920
  ] }),
863
- /* @__PURE__ */ e.jsx("main", { className: "flex-1 overflow-y-auto p-4 md:p-6 lg:p-8", children: l }),
921
+ /* @__PURE__ */ e.jsx("main", { className: "flex-1 overflow-y-auto p-4 md:p-6 lg:p-8", children: i }),
864
922
  t && /* @__PURE__ */ e.jsx("footer", { className: "h-14 border-t border-gray-200 bg-white px-4 flex items-center shrink-0", children: t })
865
923
  ] })
866
924
  ] });
867
- }, be = ({
925
+ }, pe = ({
868
926
  sidebar: s,
869
- header: n,
870
- children: l,
927
+ header: o,
928
+ children: i,
871
929
  footer: t,
872
- maxWidth: o = "935px",
873
- className: a = ""
874
- }) => /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col md:flex-row h-screen bg-white ${a}`, children: [
930
+ maxWidth: l = "935px",
931
+ className: n = ""
932
+ }) => /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col md:flex-row h-screen bg-white ${n}`, children: [
875
933
  s && /* @__PURE__ */ e.jsx("aside", { className: "hidden md:flex flex-col fixed left-0 h-screen border-r border-gray-200 transition-all duration-300 xl:w-64 w-20 z-50 bg-white", children: s }),
876
934
  /* @__PURE__ */ e.jsxs(
877
935
  "main",
@@ -881,20 +939,20 @@ const ge = ({
881
939
  ${s ? "md:ml-20 xl:ml-64" : ""}
882
940
  `,
883
941
  children: [
884
- n && /* @__PURE__ */ e.jsx("header", { className: "sticky top-0 z-40 bg-white/80 backdrop-blur-md border-b border-gray-100 md:hidden", children: n }),
885
- /* @__PURE__ */ e.jsx("div", { className: "mx-auto px-4 md:px-8 py-8", style: { maxWidth: o }, children: l })
942
+ o && /* @__PURE__ */ e.jsx("header", { className: "sticky top-0 z-40 bg-white/80 backdrop-blur-md border-b border-gray-100 md:hidden", children: o }),
943
+ /* @__PURE__ */ e.jsx("div", { className: "mx-auto px-4 md:px-8 py-8", style: { maxWidth: l }, children: i })
886
944
  ]
887
945
  }
888
946
  ),
889
947
  t && /* @__PURE__ */ e.jsx("nav", { className: "md:hidden fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 z-50", children: t })
890
948
  ] }), ve = ({
891
949
  list: s,
892
- header: n,
893
- children: l,
950
+ header: o,
951
+ children: i,
894
952
  footer: t,
895
- isChatActive: o = !1,
896
- onBack: a,
897
- listWidth: d = "350px",
953
+ isChatActive: l = !1,
954
+ onBack: n,
955
+ listWidth: a = "350px",
898
956
  className: c = ""
899
957
  }) => /* @__PURE__ */ e.jsxs("div", { className: `flex h-screen bg-white overflow-hidden ${c}`, children: [
900
958
  /* @__PURE__ */ e.jsx(
@@ -902,9 +960,9 @@ const ge = ({
902
960
  {
903
961
  className: `
904
962
  flex-shrink-0 border-r border-gray-200 bg-white transition-all duration-300
905
- ${o ? "hidden md:flex" : "flex w-full md:w-auto"}
963
+ ${l ? "hidden md:flex" : "flex w-full md:w-auto"}
906
964
  `,
907
- style: { width: o ? d : window.innerWidth < 768 ? "100%" : d },
965
+ style: { width: l ? a : window.innerWidth < 768 ? "100%" : a },
908
966
  children: /* @__PURE__ */ e.jsx("div", { className: "flex flex-col w-full h-full", children: s })
909
967
  }
910
968
  ),
@@ -913,39 +971,106 @@ const ge = ({
913
971
  {
914
972
  className: `
915
973
  flex-1 flex flex-col min-w-0 bg-white transition-all duration-300
916
- ${o ? "flex w-full" : "hidden md:flex"}
974
+ ${l ? "flex w-full" : "hidden md:flex"}
917
975
  `,
918
976
  children: [
919
- (n || a) && /* @__PURE__ */ e.jsxs("header", { className: "flex h-16 items-center px-4 border-b border-gray-100 shrink-0 bg-white/80 backdrop-blur-md sticky top-0 z-10", children: [
920
- a && /* @__PURE__ */ e.jsx(
977
+ (o || n) && /* @__PURE__ */ e.jsxs("header", { className: "flex h-16 items-center px-4 border-b border-gray-100 shrink-0 bg-white/80 backdrop-blur-md sticky top-0 z-10", children: [
978
+ n && /* @__PURE__ */ e.jsx(
921
979
  "button",
922
980
  {
923
- onClick: a,
981
+ onClick: n,
924
982
  className: "mr-3 p-2 md:hidden text-gray-500 hover:bg-gray-100 rounded-full transition-colors",
925
983
  "aria-label": "Go back",
926
984
  children: /* @__PURE__ */ e.jsx("svg", { className: "w-6 h-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 19l-7-7 7-7" }) })
927
985
  }
928
986
  ),
929
- /* @__PURE__ */ e.jsx("div", { className: "flex-1 min-w-0", children: n })
987
+ /* @__PURE__ */ e.jsx("div", { className: "flex-1 min-w-0", children: o })
930
988
  ] }),
931
- /* @__PURE__ */ e.jsx("div", { className: "flex-1 overflow-y-auto bg-gray-50", children: l }),
989
+ /* @__PURE__ */ e.jsx("div", { className: "flex-1 overflow-y-auto bg-gray-50", children: i }),
932
990
  t && /* @__PURE__ */ e.jsx("footer", { className: "p-4 bg-white border-t border-gray-100 shrink-0", children: t })
933
991
  ]
934
992
  }
935
993
  )
936
- ] });
994
+ ] }), ye = ({
995
+ src: s,
996
+ alt: o = "User",
997
+ initials: i,
998
+ size: t = "md",
999
+ status: l,
1000
+ className: n = "",
1001
+ isBordered: a = !1
1002
+ }) => {
1003
+ const c = {
1004
+ xs: "w-6 h-6 text-xs",
1005
+ sm: "w-8 h-8 text-xs",
1006
+ md: "w-10 h-10 text-sm",
1007
+ lg: "w-12 h-12 text-base",
1008
+ xl: "w-16 h-16 text-lg",
1009
+ "2xl": "w-24 h-24 text-xl"
1010
+ }, u = {
1011
+ online: "bg-green-500",
1012
+ offline: "bg-gray-400",
1013
+ busy: "bg-red-500",
1014
+ away: "bg-yellow-500"
1015
+ }, f = {
1016
+ xs: "w-1.5 h-1.5",
1017
+ sm: "w-2 h-2",
1018
+ md: "w-2.5 h-2.5",
1019
+ lg: "w-3 h-3",
1020
+ xl: "w-4 h-4",
1021
+ "2xl": "w-5 h-5"
1022
+ };
1023
+ return /* @__PURE__ */ e.jsxs("div", { className: `relative inline-block ${n}`, children: [
1024
+ /* @__PURE__ */ e.jsx(
1025
+ "div",
1026
+ {
1027
+ className: `
1028
+ ${c[t]}
1029
+ rounded-full
1030
+ flex items-center justify-center
1031
+ overflow-hidden
1032
+ bg-gray-100
1033
+ text-gray-600
1034
+ font-bold
1035
+ ${a ? "ring-2 ring-white" : ""}
1036
+ `,
1037
+ children: s ? /* @__PURE__ */ e.jsx(
1038
+ "img",
1039
+ {
1040
+ src: s,
1041
+ alt: o,
1042
+ className: "w-full h-full object-cover"
1043
+ }
1044
+ ) : /* @__PURE__ */ e.jsx("span", { children: i || o.charAt(0).toUpperCase() })
1045
+ }
1046
+ ),
1047
+ l && /* @__PURE__ */ e.jsx(
1048
+ "span",
1049
+ {
1050
+ className: `
1051
+ absolute bottom-0 right-0
1052
+ block rounded-full
1053
+ ring-2 ring-white
1054
+ ${u[l]}
1055
+ ${f[t]}
1056
+ `
1057
+ }
1058
+ )
1059
+ ] });
1060
+ };
937
1061
  export {
938
- he as Alert,
939
- pe as AppLayout,
940
- ie as Box,
941
- w as Button,
1062
+ me as Alert,
1063
+ be as AppLayout,
1064
+ ye as Avatar,
1065
+ ce as Box,
1066
+ k as Button,
942
1067
  ue as Card,
943
- le as Grid,
1068
+ ie as Grid,
944
1069
  ve as InboxLayout,
945
- de as Input,
946
- me as Loader,
1070
+ le as Input,
1071
+ he as Loader,
947
1072
  xe as Post,
948
- be as SocialLayout,
1073
+ pe as SocialLayout,
949
1074
  ge as TextArea,
950
1075
  fe as Typography
951
1076
  };