@orbit_ui_toolkit/orbitui-kit 0.1.0 → 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,278 +1,279 @@
1
- import G from "react";
1
+ import z, { useState as te } from "react";
2
2
  var R = { exports: {} }, C = {};
3
- var F;
4
- function te() {
5
- if (F) return C;
6
- F = 1;
7
- var n = /* @__PURE__ */ Symbol.for("react.transitional.element"), a = /* @__PURE__ */ Symbol.for("react.fragment");
8
- function l(t, o, i) {
9
- var c = null;
10
- if (i !== void 0 && (c = "" + i), o.key !== void 0 && (c = "" + o.key), "key" in o) {
11
- i = {};
12
- for (var d in o)
13
- d !== "key" && (i[d] = o[d]);
14
- } else i = o;
15
- return o = i.ref, {
16
- $$typeof: n,
3
+ var G;
4
+ function se() {
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
+ $$typeof: s,
17
17
  type: t,
18
- key: c,
19
- ref: o !== void 0 ? o : null,
20
- props: i
18
+ key: a,
19
+ ref: l !== void 0 ? l : null,
20
+ props: n
21
21
  };
22
22
  }
23
- return C.Fragment = a, 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;
27
- function se() {
28
- return U || (U = 1, process.env.NODE_ENV !== "production" && (function() {
29
- function n(e) {
30
- if (e == null) return null;
31
- if (typeof e == "function")
32
- return e.$$typeof === K ? null : e.displayName || e.name || null;
33
- if (typeof e == "string") return e;
34
- switch (e) {
35
- case N:
25
+ var $ = {};
26
+ var H;
27
+ function ne() {
28
+ return H || (H = 1, process.env.NODE_ENV !== "production" && (function() {
29
+ function s(r) {
30
+ if (r == null) return null;
31
+ if (typeof r == "function")
32
+ return r.$$typeof === K ? null : r.displayName || r.name || null;
33
+ if (typeof r == "string") return r;
34
+ switch (r) {
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";
45
45
  case Q:
46
46
  return "Activity";
47
47
  }
48
- if (typeof e == "object")
49
- switch (typeof e.tag == "number" && console.error(
48
+ if (typeof r == "object")
49
+ switch (typeof r.tag == "number" && console.error(
50
50
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
51
- ), e.$$typeof) {
52
- case k:
51
+ ), r.$$typeof) {
52
+ case N:
53
53
  return "Portal";
54
- case q:
55
- return e.displayName || "Context";
56
- case T:
57
- return (e._context.displayName || "Context") + ".Consumer";
58
- case H:
59
- var s = e.render;
60
- return e = e.displayName, e || (e = s.displayName || s.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
54
+ case S:
55
+ return r.displayName || "Context";
56
+ case W:
57
+ return (r._context.displayName || "Context") + ".Consumer";
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 s = e.displayName || null, s !== null ? s : n(e.type) || "Memo";
63
- case $:
64
- s = e._payload, e = e._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 n(e(s));
66
+ return s(r(d));
67
67
  } catch {
68
68
  }
69
69
  }
70
70
  return null;
71
71
  }
72
- function a(e) {
73
- return "" + e;
72
+ function o(r) {
73
+ return "" + r;
74
74
  }
75
- function l(e) {
75
+ function i(r) {
76
76
  try {
77
- a(e);
78
- var s = !1;
77
+ o(r);
78
+ var d = !1;
79
79
  } catch {
80
- s = !0;
80
+ d = !0;
81
81
  }
82
- if (s) {
83
- s = console;
84
- var u = s.error, x = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
85
- return u.call(
86
- s,
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
- ), a(e);
88
+ h
89
+ ), o(r);
90
90
  }
91
91
  }
92
- function t(e) {
93
- if (e === N) return "<>";
94
- if (typeof e == "object" && e !== null && e.$$typeof === $)
92
+ function t(r) {
93
+ if (r === j) return "<>";
94
+ if (typeof r == "object" && r !== null && r.$$typeof === A)
95
95
  return "<...>";
96
96
  try {
97
- var s = n(e);
98
- return s ? "<" + s + ">" : "<...>";
97
+ var d = s(r);
98
+ return d ? "<" + d + ">" : "<...>";
99
99
  } catch {
100
100
  return "<...>";
101
101
  }
102
102
  }
103
- function o() {
104
- var e = S.A;
105
- return e === null ? null : e.getOwner();
103
+ function l() {
104
+ var r = O.A;
105
+ return r === null ? null : r.getOwner();
106
106
  }
107
- function i() {
107
+ function n() {
108
108
  return Error("react-stack-top-frame");
109
109
  }
110
- function c(e) {
111
- if (z.call(e, "key")) {
112
- var s = Object.getOwnPropertyDescriptor(e, "key").get;
113
- if (s && s.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
- return e.key !== void 0;
115
+ return r.key !== void 0;
116
116
  }
117
- function d(e, s) {
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
- s
121
+ d
122
122
  ));
123
123
  }
124
- u.isReactWarning = !0, Object.defineProperty(e, "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 h() {
130
- var e = n(this.type);
131
- return B[e] || (B[e] = !0, console.error(
129
+ function u() {
130
+ var r = s(this.type);
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
- )), e = this.props.ref, e !== void 0 ? e : null;
133
+ )), r = this.props.ref, r !== void 0 ? r : null;
134
134
  }
135
- function p(e, s, u, x, E, O) {
136
- var m = u.ref;
137
- return e = {
138
- $$typeof: v,
139
- type: e,
140
- key: s,
141
- props: u,
142
- _owner: x
143
- }, (m !== void 0 ? m : null) !== null ? Object.defineProperty(e, "ref", {
135
+ function f(r, d, x, h, E, L) {
136
+ var m = x.ref;
137
+ return r = {
138
+ $$typeof: y,
139
+ type: r,
140
+ key: d,
141
+ props: x,
142
+ _owner: h
143
+ }, (m !== void 0 ? m : null) !== null ? Object.defineProperty(r, "ref", {
144
144
  enumerable: !1,
145
- get: h
146
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
145
+ get: u
146
+ }) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
147
147
  configurable: !1,
148
148
  enumerable: !1,
149
149
  writable: !0,
150
150
  value: 0
151
- }), Object.defineProperty(e, "_debugInfo", {
151
+ }), Object.defineProperty(r, "_debugInfo", {
152
152
  configurable: !1,
153
153
  enumerable: !1,
154
154
  writable: !0,
155
155
  value: null
156
- }), Object.defineProperty(e, "_debugStack", {
156
+ }), Object.defineProperty(r, "_debugStack", {
157
157
  configurable: !1,
158
158
  enumerable: !1,
159
159
  writable: !0,
160
160
  value: E
161
- }), Object.defineProperty(e, "_debugTask", {
161
+ }), Object.defineProperty(r, "_debugTask", {
162
162
  configurable: !1,
163
163
  enumerable: !1,
164
164
  writable: !0,
165
- value: O
166
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
165
+ value: L
166
+ }), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
167
167
  }
168
- function g(e, s, u, x, E, O) {
169
- var m = s.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(s, "key")) {
182
- m = n(e);
183
- var y = Object.keys(s).filter(function(re) {
180
+ else p(m);
181
+ if (B.call(d, "key")) {
182
+ m = s(r);
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), c(s) && (l(s.key), m = "" + s.key), "key" in s) {
200
- u = {};
201
- for (var P in s)
202
- P !== "key" && (u[P] = s[P]);
203
- } else u = s;
204
- return m && d(
205
- u,
206
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
207
- ), p(
208
- e,
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
+ return m && c(
205
+ x,
206
+ typeof r == "function" ? r.displayName || r.name || "Unknown" : r
207
+ ), f(
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(e) {
217
- j(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === $ && (e._payload.status === "fulfilled" ? j(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._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(e) {
220
- return typeof e == "object" && e !== null && e.$$typeof === v;
219
+ function v(r) {
220
+ return typeof r == "object" && r !== null && r.$$typeof === y;
221
221
  }
222
- var f = G, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), k = /* @__PURE__ */ Symbol.for("react.portal"), N = /* @__PURE__ */ Symbol.for("react.fragment"), L = /* @__PURE__ */ Symbol.for("react.strict_mode"), M = /* @__PURE__ */ Symbol.for("react.profiler"), T = /* @__PURE__ */ Symbol.for("react.consumer"), q = /* @__PURE__ */ Symbol.for("react.context"), H = /* @__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"), $ = /* @__PURE__ */ Symbol.for("react.lazy"), Q = /* @__PURE__ */ Symbol.for("react.activity"), K = /* @__PURE__ */ Symbol.for("react.client.reference"), S = f.__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
- f = {
226
- react_stack_bottom_frame: function(e) {
227
- return e();
225
+ g = {
226
+ react_stack_bottom_frame: function(r) {
227
+ return r();
228
228
  }
229
229
  };
230
- var W, B = {}, D = f.react_stack_bottom_frame.bind(
231
- f,
232
- i
233
- )(), I = A(t(i)), Y = {};
234
- _.Fragment = N, _.jsx = function(e, s, u) {
235
- var x = 1e4 > S.recentlyCreatedOwnerStacks++;
236
- return g(
237
- e,
238
- s,
239
- u,
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
+ r,
238
+ d,
239
+ x,
240
240
  !1,
241
- x ? Error("react-stack-top-frame") : D,
242
- x ? A(t(e)) : I
241
+ h ? Error("react-stack-top-frame") : F,
242
+ h ? P(t(r)) : U
243
243
  );
244
- }, _.jsxs = function(e, s, u) {
245
- var x = 1e4 > S.recentlyCreatedOwnerStacks++;
246
- return g(
247
- e,
248
- s,
249
- u,
244
+ }, $.jsxs = function(r, d, x) {
245
+ var h = 1e4 > O.recentlyCreatedOwnerStacks++;
246
+ return b(
247
+ r,
248
+ d,
249
+ x,
250
250
  !0,
251
- x ? Error("react-stack-top-frame") : D,
252
- x ? A(t(e)) : I
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;
258
- function ne() {
259
- return V || (V = 1, process.env.NODE_ENV === "production" ? R.exports = te() : R.exports = se()), R.exports;
257
+ var J;
258
+ function oe() {
259
+ return J || (J = 1, process.env.NODE_ENV === "production" ? R.exports = se() : R.exports = ne()), R.exports;
260
260
  }
261
- var r = ne();
262
- const w = ({
263
- variant: n = "primary",
264
- size: a = "md",
265
- rounded: l = "full",
261
+ var e = oe();
262
+ const k = ({
263
+ variant: s = "primary",
264
+ size: o = "md",
265
+ rounded: i = "full",
266
266
  isLoading: t = !1,
267
- fullWidth: o = !1,
268
- leftIcon: i,
269
- rightIcon: c,
270
- className: d = "",
271
- children: h,
272
- disabled: p,
273
- ...g
267
+ fullWidth: l = !1,
268
+ leftIcon: n,
269
+ rightIcon: a,
270
+ className: c = "",
271
+ children: u,
272
+ disabled: f,
273
+ gradient: b,
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,203 +283,223 @@ 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
- }, f = {
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
- }, k = o ? "w-full" : "";
299
- return /* @__PURE__ */ r.jsxs(
300
+ }, j = l ? "w-full" : "";
301
+ return /* @__PURE__ */ e.jsxs(
300
302
  "button",
301
303
  {
302
- className: `${b} ${j[n]} ${f[a]} ${v[l]} ${k} ${d}`,
303
- disabled: p || t,
304
- ...g,
304
+ className: `${v} ${g[s]} ${y[o]} ${N[i]} ${j} ${c}`,
305
+ disabled: f || t,
306
+ ...p,
305
307
  children: [
306
- t && /* @__PURE__ */ r.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
- /* @__PURE__ */ r.jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
308
- /* @__PURE__ */ r.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" })
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: [
309
+ /* @__PURE__ */ e.jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
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 && i && /* @__PURE__ */ r.jsx("span", { className: "shrink-0", children: i }),
311
- /* @__PURE__ */ r.jsx("span", { className: "truncate", children: t ? "Loading..." : h }),
312
- !t && c && /* @__PURE__ */ r.jsx("span", { className: "shrink-0", children: c })
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
- }, ce = ({
317
- label: n,
318
- error: a,
319
- leftIcon: l,
318
+ }, le = z.forwardRef(({
319
+ label: s,
320
+ error: o,
321
+ leftIcon: i,
320
322
  rightIcon: t,
321
- className: o = "",
322
- ...i
323
- }) => /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-1.5 w-full", children: [
324
- n && /* @__PURE__ */ r.jsx("label", { className: "text-sm font-medium text-gray-700", children: n }),
325
- /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
326
- l && /* @__PURE__ */ r.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-gray-400", children: l }),
327
- /* @__PURE__ */ r.jsx(
328
- "input",
329
- {
330
- className: `
323
+ variant: l = "default",
324
+ className: n = "",
325
+ ...a
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
- ${a ? "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
- ${a ? "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
- ...i
350
- }
351
- ),
352
- t && /* @__PURE__ */ r.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-gray-400", children: t })
353
- ] }),
354
- a && /* @__PURE__ */ r.jsx("span", { className: "text-xs text-red-500", children: a })
355
- ] }), de = ({
356
- title: n,
357
- subtitle: a,
358
- children: l,
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 = ({
368
+ title: s,
369
+ subtitle: o,
370
+ children: i,
359
371
  footer: t,
360
- className: o = ""
361
- }) => /* @__PURE__ */ r.jsxs("div", { className: `bg-white rounded-xl border border-gray-200 shadow-sm overflow-hidden ${o}`, children: [
362
- (n || a) && /* @__PURE__ */ r.jsxs("div", { className: "px-6 py-4 border-b border-gray-100", children: [
363
- n && /* @__PURE__ */ r.jsx("h3", { className: "text-lg font-semibold text-gray-900", children: n }),
364
- a && /* @__PURE__ */ r.jsx("p", { className: "text-sm text-gray-500 mt-1", children: a })
365
- ] }),
366
- /* @__PURE__ */ r.jsx("div", { className: "px-6 py-4", children: l }),
367
- t && /* @__PURE__ */ r.jsx("div", { className: "px-6 py-4 bg-gray-50 border-t border-gray-100", children: t })
368
- ] }), ue = ({
369
- username: n,
370
- profilePic: a,
371
- postImage: l,
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 = ({
390
+ username: s,
391
+ profilePic: o,
392
+ postImage: i,
372
393
  likesCount: t,
373
- caption: o,
374
- location: i,
375
- isLiked: c = !1,
376
- isBookmarked: d = !1,
377
- onLike: h,
378
- onComment: p,
379
- onShare: g,
380
- onBookmark: b
381
- }) => /* @__PURE__ */ r.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
- /* @__PURE__ */ r.jsxs("div", { className: "relative w-full aspect-4/5 bg-gray-100 overflow-hidden", children: [
383
- /* @__PURE__ */ r.jsx(
394
+ caption: l,
395
+ location: n,
396
+ isLiked: a = !1,
397
+ isBookmarked: c = !1,
398
+ onLike: u,
399
+ onComment: f,
400
+ onShare: b,
401
+ onBookmark: p
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: [
403
+ /* @__PURE__ */ e.jsxs("div", { className: "relative w-full aspect-4/5 bg-gray-100 overflow-hidden", children: [
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
- /* @__PURE__ */ r.jsx("div", { className: "absolute top-4 right-4 opacity-0 group-hover:opacity-100 transition-opacity", children: /* @__PURE__ */ r.jsx(
392
- w,
412
+ /* @__PURE__ */ e.jsx("div", { className: "absolute top-4 right-4 opacity-0 group-hover:opacity-100 transition-opacity", children: /* @__PURE__ */ e.jsx(
413
+ k,
393
414
  {
394
415
  variant: "ghost",
395
416
  size: "icon",
396
417
  rounded: "full",
397
418
  className: "bg-black/20 backdrop-blur-md text-white hover:bg-black/40 border-none",
398
- children: /* @__PURE__ */ r.jsxs("svg", { "aria-label": "More options", fill: "currentColor", height: "24", role: "img", viewBox: "0 0 24 24", width: "24", children: [
399
- /* @__PURE__ */ r.jsx("circle", { cx: "12", cy: "12", r: "1.5" }),
400
- /* @__PURE__ */ r.jsx("circle", { cx: "6", cy: "12", r: "1.5" }),
401
- /* @__PURE__ */ r.jsx("circle", { cx: "18", cy: "12", r: "1.5" })
419
+ children: /* @__PURE__ */ e.jsxs("svg", { "aria-label": "More options", fill: "currentColor", height: "24", role: "img", viewBox: "0 0 24 24", width: "24", children: [
420
+ /* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "1.5" }),
421
+ /* @__PURE__ */ e.jsx("circle", { cx: "6", cy: "12", r: "1.5" }),
422
+ /* @__PURE__ */ e.jsx("circle", { cx: "18", cy: "12", r: "1.5" })
402
423
  ] })
403
424
  }
404
425
  ) })
405
426
  ] }),
406
- /* @__PURE__ */ r.jsxs("div", { className: "p-5", children: [
407
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
408
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
409
- /* @__PURE__ */ r.jsx("div", { className: "relative", children: /* @__PURE__ */ r.jsx(
427
+ /* @__PURE__ */ e.jsxs("div", { className: "p-5", children: [
428
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
429
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
430
+ /* @__PURE__ */ e.jsx("div", { className: "relative", children: /* @__PURE__ */ e.jsx(
410
431
  "img",
411
432
  {
412
- src: a,
413
- alt: n,
433
+ src: o,
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
- /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col", children: [
418
- /* @__PURE__ */ r.jsx("span", { className: "font-bold text-gray-900 text-sm leading-tight hover:text-indigo-600 cursor-pointer transition-colors", children: n }),
419
- i && /* @__PURE__ */ r.jsx("span", { className: "text-[11px] font-medium text-gray-400 uppercase tracking-wide", children: i })
438
+ /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col", children: [
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 }),
440
+ n && /* @__PURE__ */ e.jsx("span", { className: "text-[11px] font-medium text-gray-400 uppercase tracking-wide", children: n })
420
441
  ] })
421
442
  ] }),
422
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
423
- /* @__PURE__ */ r.jsx(
424
- w,
443
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
444
+ /* @__PURE__ */ e.jsx(
445
+ k,
425
446
  {
426
447
  variant: "ghost",
427
448
  size: "icon",
428
449
  rounded: "full",
429
- onClick: h,
430
- className: `transition-colors ${c ? "text-rose-500 hover:bg-rose-50" : "text-gray-400 hover:text-rose-500"}`,
431
- children: c ? /* @__PURE__ */ r.jsx("svg", { "aria-label": "Unlike", fill: "currentColor", height: "26", role: "img", viewBox: "0 0 48 48", width: "26", children: /* @__PURE__ */ r.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__ */ r.jsx("svg", { "aria-label": "Like", fill: "currentColor", height: "26", role: "img", viewBox: "0 0 24 24", width: "26", children: /* @__PURE__ */ r.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
- /* @__PURE__ */ r.jsx(
435
- w,
455
+ /* @__PURE__ */ e.jsx(
456
+ k,
436
457
  {
437
458
  variant: "ghost",
438
459
  size: "icon",
439
460
  rounded: "full",
440
- onClick: p,
461
+ onClick: f,
441
462
  className: "text-gray-400 hover:text-indigo-500",
442
- children: /* @__PURE__ */ r.jsx("svg", { "aria-label": "Comment", fill: "currentColor", height: "26", role: "img", viewBox: "0 0 24 24", width: "26", children: /* @__PURE__ */ r.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" }) })
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
- /* @__PURE__ */ r.jsx(
446
- w,
466
+ /* @__PURE__ */ e.jsx(
467
+ k,
447
468
  {
448
469
  variant: "ghost",
449
470
  size: "icon",
450
471
  rounded: "full",
451
- onClick: g,
472
+ onClick: b,
452
473
  className: "text-gray-400 hover:text-indigo-500",
453
- children: /* @__PURE__ */ r.jsxs("svg", { "aria-label": "Share Post", fill: "currentColor", height: "26", role: "img", viewBox: "0 0 24 24", width: "26", children: [
454
- /* @__PURE__ */ r.jsx("line", { fill: "none", stroke: "currentColor", strokeLinejoin: "round", strokeWidth: "2", x1: "22", x2: "9.218", y1: "3", y2: "10.083" }),
455
- /* @__PURE__ */ r.jsx("polygon", { fill: "none", points: "11.698 20.334 22 3.001 2 3.001 9.218 10.084 11.698 20.334", stroke: "currentColor", strokeLinejoin: "round", strokeWidth: "2" })
474
+ children: /* @__PURE__ */ e.jsxs("svg", { "aria-label": "Share Post", fill: "currentColor", height: "26", role: "img", viewBox: "0 0 24 24", width: "26", children: [
475
+ /* @__PURE__ */ e.jsx("line", { fill: "none", stroke: "currentColor", strokeLinejoin: "round", strokeWidth: "2", x1: "22", x2: "9.218", y1: "3", y2: "10.083" }),
476
+ /* @__PURE__ */ e.jsx("polygon", { fill: "none", points: "11.698 20.334 22 3.001 2 3.001 9.218 10.084 11.698 20.334", stroke: "currentColor", strokeLinejoin: "round", strokeWidth: "2" })
456
477
  ] })
457
478
  }
458
479
  )
459
480
  ] })
460
481
  ] }),
461
- /* @__PURE__ */ r.jsxs("div", { className: "space-y-3", children: [
462
- /* @__PURE__ */ r.jsx("p", { className: "text-gray-800 text-sm leading-relaxed", children: o }),
463
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between pt-2 border-t border-gray-50", children: [
464
- /* @__PURE__ */ r.jsxs("span", { className: "font-semibold text-xs text-gray-500", children: [
482
+ /* @__PURE__ */ e.jsxs("div", { className: "space-y-3", children: [
483
+ /* @__PURE__ */ e.jsx("p", { className: "text-gray-800 text-sm leading-relaxed", children: l }),
484
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between pt-2 border-t border-gray-50", children: [
485
+ /* @__PURE__ */ e.jsxs("span", { className: "font-semibold text-xs text-gray-500", children: [
465
486
  t.toLocaleString(),
466
487
  " Likes"
467
488
  ] }),
468
- /* @__PURE__ */ r.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ r.jsx(
469
- w,
489
+ /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ e.jsx(
490
+ k,
470
491
  {
471
492
  variant: "ghost",
472
493
  size: "icon",
473
494
  rounded: "full",
474
- onClick: b,
475
- className: `transition-colors ${d ? "text-gray-900" : "text-gray-400 hover:text-gray-900"}`,
476
- children: d ? /* @__PURE__ */ r.jsx("svg", { "aria-label": "Remove", fill: "currentColor", height: "22", role: "img", viewBox: "0 0 24 24", width: "22", children: /* @__PURE__ */ r.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__ */ r.jsx("svg", { "aria-label": "Save", fill: "currentColor", height: "22", role: "img", viewBox: "0 0 24 24", width: "22", children: /* @__PURE__ */ r.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" }) })
495
+ onClick: p,
496
+ className: `transition-colors ${c ? "text-gray-900" : "text-gray-400 hover:text-gray-900"}`,
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
  }
478
499
  ) })
479
500
  ] }),
480
- /* @__PURE__ */ r.jsxs("div", { className: "relative mt-2", children: [
481
- /* @__PURE__ */ r.jsx(
501
+ /* @__PURE__ */ e.jsxs("div", { className: "relative mt-2", children: [
502
+ /* @__PURE__ */ e.jsx(
482
503
  "input",
483
504
  {
484
505
  type: "text",
@@ -486,148 +507,148 @@ 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__ */ r.jsx("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: /* @__PURE__ */ r.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
- ] }), xe = ({
494
- variant: n = "spinner",
495
- size: a = "md",
496
- className: l = "",
514
+ ] }), he = ({
515
+ variant: s = "spinner",
516
+ size: o = "md",
517
+ className: i = "",
497
518
  color: t,
498
- colors: o
519
+ colors: l
499
520
  }) => {
500
- const i = {
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
- }, c = {
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
- }, d = i[a], h = "bg-gradient-to-tr from-yellow-400 via-red-500 to-purple-600";
511
- if (n === "dots") {
512
- const p = c[a], g = !!t || !!o?.length, b = (f) => {
513
- if (!g) return {};
514
- const v = o?.[f] || t;
515
- return v ? { backgroundColor: v } : {};
516
- }, j = () => g ? "" : h;
517
- return /* @__PURE__ */ r.jsx("div", { className: `flex items-center justify-center gap-1 ${l}`, children: [0, 1, 2].map((f) => /* @__PURE__ */ r.jsx(
531
+ }, c = n[o], u = "bg-gradient-to-tr from-yellow-400 via-red-500 to-purple-600";
532
+ if (s === "dots") {
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: `${p} rounded-full animate-bounce ${j()}`,
541
+ className: `${f} rounded-full animate-bounce ${v()}`,
521
542
  style: {
522
- ...b(f),
523
- animationDelay: f === 0 ? "-0.3s" : f === 1 ? "-0.15s" : "0s"
543
+ ...p(g),
544
+ animationDelay: g === 0 ? "-0.3s" : g === 1 ? "-0.15s" : "0s"
524
545
  }
525
546
  },
526
- f
547
+ g
527
548
  )) });
528
549
  }
529
- if (n === "pulse") {
530
- const p = t ? "" : h;
531
- return /* @__PURE__ */ r.jsxs("div", { className: `relative flex items-center justify-center ${d} ${l}`, children: [
532
- /* @__PURE__ */ r.jsx(
550
+ if (s === "pulse") {
551
+ const f = t ? "" : u;
552
+ return /* @__PURE__ */ e.jsxs("div", { className: `relative flex items-center justify-center ${c} ${i}`, children: [
553
+ /* @__PURE__ */ e.jsx(
533
554
  "span",
534
555
  {
535
- className: `absolute inline-flex h-full w-full rounded-full opacity-75 animate-ping ${p}`,
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
- /* @__PURE__ */ r.jsx(
560
+ /* @__PURE__ */ e.jsx(
540
561
  "span",
541
562
  {
542
- className: `relative inline-flex rounded-full h-3/4 w-3/4 ${p}`,
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 n === "multicolor" ? /* @__PURE__ */ r.jsx("div", { className: `${d} relative ${l}`, children: /* @__PURE__ */ r.jsx("div", { className: `absolute inset-0 rounded-full ${h} animate-spin`, children: /* @__PURE__ */ r.jsx("div", { className: "absolute inset-[3px] bg-white rounded-full" }) }) }) : n === "orbit" ? t ? /* @__PURE__ */ r.jsxs("div", { className: `relative ${d} ${l}`, children: [
549
- /* @__PURE__ */ r.jsx(
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: [
570
+ /* @__PURE__ */ e.jsx(
550
571
  "div",
551
572
  {
552
573
  className: "absolute inset-0 rounded-full border-2 border-t-transparent border-b-transparent animate-spin",
553
574
  style: { borderColor: t, borderTopColor: "transparent", borderBottomColor: "transparent" }
554
575
  }
555
576
  ),
556
- /* @__PURE__ */ r.jsx(
577
+ /* @__PURE__ */ e.jsx(
557
578
  "div",
558
579
  {
559
580
  className: "absolute inset-1 rounded-full border-2 border-l-transparent border-r-transparent animate-spin-reverse opacity-75",
560
581
  style: { borderColor: t, borderLeftColor: "transparent", borderRightColor: "transparent", animationDirection: "reverse", animationDuration: "1.5s" }
561
582
  }
562
583
  )
563
- ] }) : /* @__PURE__ */ r.jsxs("div", { className: `relative ${d} ${l}`, children: [
564
- /* @__PURE__ */ r.jsx("div", { className: `absolute inset-0 rounded-full ${h} animate-spin`, children: /* @__PURE__ */ r.jsx("div", { className: "absolute inset-[2px] bg-white rounded-full" }) }),
565
- /* @__PURE__ */ r.jsx("div", { className: `absolute inset-1 rounded-full ${h} animate-spin-reverse opacity-75`, style: { animationDirection: "reverse", animationDuration: "1.5s" }, children: /* @__PURE__ */ r.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
588
  }, me = ({
568
- variant: n = "info",
569
- title: a,
570
- children: l,
589
+ variant: s = "info",
590
+ title: o,
591
+ children: i,
571
592
  onClose: t,
572
- className: o = ""
593
+ className: l = ""
573
594
  }) => {
574
- const c = {
595
+ const a = {
575
596
  success: {
576
597
  container: "bg-green-50 text-green-900 border-green-200",
577
598
  iconColor: "text-green-600",
578
599
  closeHover: "hover:bg-green-100 text-green-600",
579
- Icon: () => /* @__PURE__ */ r.jsx("svg", { className: "w-5 h-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ r.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) })
600
+ 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: "M5 13l4 4L19 7" }) })
580
601
  },
581
602
  error: {
582
603
  container: "bg-red-50 text-red-900 border-red-200",
583
604
  iconColor: "text-red-600",
584
605
  closeHover: "hover:bg-red-100 text-red-600",
585
- Icon: () => /* @__PURE__ */ r.jsx("svg", { className: "w-5 h-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ r.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }) })
606
+ 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: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }) })
586
607
  },
587
608
  warning: {
588
609
  container: "bg-yellow-50 text-yellow-900 border-yellow-200",
589
610
  iconColor: "text-yellow-600",
590
611
  closeHover: "hover:bg-yellow-100 text-yellow-600",
591
- Icon: () => /* @__PURE__ */ r.jsx("svg", { className: "w-5 h-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ r.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" }) })
612
+ 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: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" }) })
592
613
  },
593
614
  info: {
594
615
  container: "bg-blue-50 text-blue-900 border-blue-200",
595
616
  iconColor: "text-blue-600",
596
617
  closeHover: "hover:bg-blue-100 text-blue-600",
597
- Icon: () => /* @__PURE__ */ r.jsx("svg", { className: "w-5 h-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ r.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" }) })
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
- }[n], d = c.Icon;
600
- return /* @__PURE__ */ r.jsxs(
620
+ }[s], c = a.Icon;
621
+ return /* @__PURE__ */ e.jsxs(
601
622
  "div",
602
623
  {
603
624
  role: "alert",
604
- className: `flex p-4 rounded-lg border ${c.container} ${o}`,
625
+ className: `flex p-4 rounded-lg border ${a.container} ${l}`,
605
626
  children: [
606
- /* @__PURE__ */ r.jsx("div", { className: `shrink-0 ${c.iconColor}`, children: /* @__PURE__ */ r.jsx(d, {}) }),
607
- /* @__PURE__ */ r.jsxs("div", { className: "ml-3 text-sm flex-1", children: [
608
- a && /* @__PURE__ */ r.jsx("span", { className: "font-semibold block mb-1", children: a }),
609
- /* @__PURE__ */ r.jsx("div", { className: "leading-relaxed", children: l })
627
+ /* @__PURE__ */ e.jsx("div", { className: `shrink-0 ${a.iconColor}`, children: /* @__PURE__ */ e.jsx(c, {}) }),
628
+ /* @__PURE__ */ e.jsxs("div", { className: "ml-3 text-sm flex-1", children: [
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
- t && /* @__PURE__ */ r.jsx(
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 ${c.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
- children: /* @__PURE__ */ r.jsx("svg", { className: "w-4 h-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ r.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
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
  }
619
640
  )
620
641
  ]
621
642
  }
622
643
  );
623
- }, oe = ({
624
- children: n,
625
- colSpan: a,
626
- rowSpan: l,
644
+ }, ae = ({
645
+ children: s,
646
+ colSpan: o,
647
+ rowSpan: i,
627
648
  colStart: t,
628
- className: o = ""
649
+ className: l = ""
629
650
  }) => {
630
- const i = {
651
+ const n = {
631
652
  1: "col-span-1",
632
653
  2: "col-span-2",
633
654
  3: "col-span-3",
@@ -641,32 +662,32 @@ const w = ({
641
662
  11: "col-span-11",
642
663
  12: "col-span-12",
643
664
  full: "col-span-full"
644
- }, c = {
665
+ }, a = {
645
666
  1: "row-span-1",
646
667
  2: "row-span-2",
647
668
  3: "row-span-3",
648
669
  4: "row-span-4",
649
670
  5: "row-span-5",
650
671
  6: "row-span-6"
651
- }, d = [
652
- a ? i[a] : "",
653
- l ? c[l] : "",
672
+ }, c = [
673
+ o ? n[o] : "",
674
+ i ? a[i] : "",
654
675
  t ? `col-start-${t}` : "",
655
- o
676
+ l
656
677
  ].filter(Boolean).join(" ");
657
- return /* @__PURE__ */ r.jsx("div", { className: d, children: n });
658
- }, ae = ({
659
- children: n,
660
- cols: a = 1,
661
- gap: l = 4,
678
+ return /* @__PURE__ */ e.jsx("div", { className: c, children: s });
679
+ }, ie = ({
680
+ children: s,
681
+ cols: o = 1,
682
+ gap: i = 4,
662
683
  gapX: t,
663
- gapY: o,
664
- flow: i = "row",
665
- align: c,
666
- justify: d,
667
- className: h = ""
684
+ gapY: l,
685
+ flow: n = "row",
686
+ align: a,
687
+ justify: c,
688
+ className: u = ""
668
689
  }) => {
669
- const p = {
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
- }, g = {
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
- p[a],
693
- t === void 0 && o === void 0 ? g[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
- i ? `grid-flow-${i}` : "",
698
- c ? `items-${c}` : "",
699
- d ? `justify-${d}` : "",
700
- h
717
+ l ? `gap-y-${l}` : "",
718
+ n ? `grid-flow-${n}` : "",
719
+ a ? `items-${a}` : "",
720
+ c ? `justify-${c}` : "",
721
+ u
701
722
  ].filter(Boolean).join(" ");
702
- return /* @__PURE__ */ r.jsx("div", { className: b, children: n });
723
+ return /* @__PURE__ */ e.jsx("div", { className: p, children: s });
703
724
  };
704
- ae.Item = oe;
725
+ ie.Item = ae;
705
726
  const fe = ({
706
- variant: n = "body1",
707
- component: a,
708
- children: l,
727
+ variant: s = "body1",
728
+ component: o,
729
+ children: i,
709
730
  weight: t,
710
- align: o = "left",
711
- color: i,
712
- className: c = "",
713
- noWrap: d = !1
731
+ align: l = "left",
732
+ color: n,
733
+ className: a = "",
734
+ noWrap: c = !1,
735
+ gradient: u
714
736
  }) => {
715
- const p = a || {
737
+ const b = o || {
716
738
  h1: "h1",
717
739
  h2: "h2",
718
740
  h3: "h3",
@@ -723,7 +745,7 @@ const fe = ({
723
745
  body2: "p",
724
746
  caption: "span",
725
747
  overline: "span"
726
- }[n] || "p", g = {
748
+ }[s] || "p", p = {
727
749
  h1: "text-5xl md:text-6xl tracking-tight leading-tight",
728
750
  h2: "text-4xl md:text-5xl tracking-tight leading-tight",
729
751
  h3: "text-3xl md:text-4xl tracking-tight",
@@ -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,39 +767,310 @@ 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
- }, f = {
776
+ }, y = {
755
777
  left: "text-left",
756
778
  center: "text-center",
757
779
  right: "text-right",
758
780
  justify: "text-justify"
759
- }, v = g[n], k = t ? j[t] : b[n], N = f[o], T = [
760
- v,
761
- k,
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 = [
762
785
  N,
763
- i || "text-gray-900",
764
- d ? "truncate" : "",
765
- c
786
+ j,
787
+ T,
788
+ _,
789
+ c ? "truncate" : "",
790
+ a
766
791
  ].filter(Boolean).join(" ");
767
- return /* @__PURE__ */ r.jsx(p, { className: T, children: l });
768
- }, le = G.forwardRef(({ as: n, className: a = "", children: l, ...t }, o) => {
769
- const i = n || "div";
770
- return /* @__PURE__ */ r.jsx(i, { ref: o, className: a, ...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
- le.displayName = "Box";
830
+ ce.displayName = "Box";
831
+ const ge = ({
832
+ label: s,
833
+ error: o,
834
+ autoResize: i,
835
+ className: t = "",
836
+ rows: l = 4,
837
+ ...n
838
+ }) => {
839
+ const a = (c) => {
840
+ i && (c.target.style.height = "auto", c.target.style.height = `${c.target.scrollHeight}px`), n.onChange?.(c);
841
+ };
842
+ return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1.5 w-full", children: [
843
+ s && /* @__PURE__ */ e.jsx("label", { className: "text-sm font-medium text-gray-700", children: s }),
844
+ /* @__PURE__ */ e.jsx(
845
+ "textarea",
846
+ {
847
+ className: `
848
+ w-full
849
+ px-3
850
+ py-2
851
+ bg-white
852
+ border
853
+ ${o ? "border-red-500" : "border-gray-300"}
854
+ rounded-md
855
+ shadow-sm
856
+ focus:outline-none
857
+ focus:ring-2
858
+ ${o ? "focus:ring-red-500" : "focus:ring-blue-500"}
859
+ focus:border-transparent
860
+ transition-all
861
+ duration-200
862
+ hover:border-gray-400
863
+ min-h-[100px]
864
+ resize-y
865
+ ${t}
866
+ `,
867
+ rows: l,
868
+ onInput: a,
869
+ ...n
870
+ }
871
+ ),
872
+ o && /* @__PURE__ */ e.jsx("span", { className: "text-xs text-red-500", children: o })
873
+ ] });
874
+ }, be = ({
875
+ sidebar: s,
876
+ header: o,
877
+ children: i,
878
+ footer: t,
879
+ sidebarWidth: l = "260px",
880
+ className: n = ""
881
+ }) => {
882
+ const [a, c] = te(!1);
883
+ return /* @__PURE__ */ e.jsxs("div", { className: `flex h-screen bg-gray-50 overflow-hidden ${n}`, children: [
884
+ s && /* @__PURE__ */ e.jsx(
885
+ "div",
886
+ {
887
+ className: "hidden md:flex flex-col h-full bg-white border-r border-gray-200",
888
+ style: { width: l },
889
+ children: s
890
+ }
891
+ ),
892
+ s && a && /* @__PURE__ */ e.jsx(
893
+ "div",
894
+ {
895
+ className: "fixed inset-0 z-40 bg-black/50 md:hidden",
896
+ onClick: () => c(!1)
897
+ }
898
+ ),
899
+ s && /* @__PURE__ */ e.jsx(
900
+ "div",
901
+ {
902
+ className: `
903
+ fixed inset-y-0 left-0 z-50 w-64 bg-white shadow-xl transition-transform duration-300 md:hidden
904
+ ${a ? "translate-x-0" : "-translate-x-full"}
905
+ `,
906
+ children: s
907
+ }
908
+ ),
909
+ /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col flex-1 min-w-0 overflow-hidden", children: [
910
+ /* @__PURE__ */ e.jsxs("header", { className: "flex h-16 items-center border-b border-gray-200 bg-white px-4 shrink-0", children: [
911
+ s && /* @__PURE__ */ e.jsx(
912
+ "button",
913
+ {
914
+ className: "mr-4 p-2 md:hidden text-gray-500 hover:bg-gray-100 rounded-md",
915
+ onClick: () => c(!0),
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" }) })
917
+ }
918
+ ),
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" }) })
920
+ ] }),
921
+ /* @__PURE__ */ e.jsx("main", { className: "flex-1 overflow-y-auto p-4 md:p-6 lg:p-8", children: i }),
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 })
923
+ ] })
924
+ ] });
925
+ }, pe = ({
926
+ sidebar: s,
927
+ header: o,
928
+ children: i,
929
+ footer: t,
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: [
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 }),
934
+ /* @__PURE__ */ e.jsxs(
935
+ "main",
936
+ {
937
+ className: `
938
+ flex-1 bg-white overflow-y-auto min-w-0
939
+ ${s ? "md:ml-20 xl:ml-64" : ""}
940
+ `,
941
+ children: [
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 })
944
+ ]
945
+ }
946
+ ),
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 })
948
+ ] }), ve = ({
949
+ list: s,
950
+ header: o,
951
+ children: i,
952
+ footer: t,
953
+ isChatActive: l = !1,
954
+ onBack: n,
955
+ listWidth: a = "350px",
956
+ className: c = ""
957
+ }) => /* @__PURE__ */ e.jsxs("div", { className: `flex h-screen bg-white overflow-hidden ${c}`, children: [
958
+ /* @__PURE__ */ e.jsx(
959
+ "aside",
960
+ {
961
+ className: `
962
+ flex-shrink-0 border-r border-gray-200 bg-white transition-all duration-300
963
+ ${l ? "hidden md:flex" : "flex w-full md:w-auto"}
964
+ `,
965
+ style: { width: l ? a : window.innerWidth < 768 ? "100%" : a },
966
+ children: /* @__PURE__ */ e.jsx("div", { className: "flex flex-col w-full h-full", children: s })
967
+ }
968
+ ),
969
+ /* @__PURE__ */ e.jsxs(
970
+ "main",
971
+ {
972
+ className: `
973
+ flex-1 flex flex-col min-w-0 bg-white transition-all duration-300
974
+ ${l ? "flex w-full" : "hidden md:flex"}
975
+ `,
976
+ children: [
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(
979
+ "button",
980
+ {
981
+ onClick: n,
982
+ className: "mr-3 p-2 md:hidden text-gray-500 hover:bg-gray-100 rounded-full transition-colors",
983
+ "aria-label": "Go back",
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" }) })
985
+ }
986
+ ),
987
+ /* @__PURE__ */ e.jsx("div", { className: "flex-1 min-w-0", children: o })
988
+ ] }),
989
+ /* @__PURE__ */ e.jsx("div", { className: "flex-1 overflow-y-auto bg-gray-50", children: i }),
990
+ t && /* @__PURE__ */ e.jsx("footer", { className: "p-4 bg-white border-t border-gray-100 shrink-0", children: t })
991
+ ]
992
+ }
993
+ )
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
+ };
773
1061
  export {
774
1062
  me as Alert,
775
- le as Box,
776
- w as Button,
777
- de as Card,
778
- ae as Grid,
779
- ce as Input,
780
- xe as Loader,
781
- ue as Post,
1063
+ be as AppLayout,
1064
+ ye as Avatar,
1065
+ ce as Box,
1066
+ k as Button,
1067
+ ue as Card,
1068
+ ie as Grid,
1069
+ ve as InboxLayout,
1070
+ le as Input,
1071
+ he as Loader,
1072
+ xe as Post,
1073
+ pe as SocialLayout,
1074
+ ge as TextArea,
782
1075
  fe as Typography
783
1076
  };