@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.
- package/README.md +31 -73
- package/dist/components/AppLayout/AppLayout.d.ts +10 -0
- package/dist/components/AppLayout/AppLayout.stories.d.ts +8 -0
- package/dist/components/Box/Box.d.ts +5 -0
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Card/Card.d.ts +2 -0
- package/dist/components/InboxLayout/InboxLayout.d.ts +12 -0
- package/dist/components/InboxLayout/InboxLayout.stories.d.ts +6 -0
- package/dist/components/Input/Input.d.ts +2 -1
- package/dist/components/SocialLayout/SocialLayout.d.ts +10 -0
- package/dist/components/SocialLayout/SocialLayout.stories.d.ts +7 -0
- package/dist/components/TextArea/TextArea.d.ts +7 -0
- package/dist/components/TextArea/TextArea.stories.d.ts +10 -0
- package/dist/components/Typography/Typography.d.ts +2 -0
- package/dist/index.d.ts +5 -0
- package/dist/orbitui.cjs.js +56 -11
- package/dist/orbitui.es.js +694 -401
- package/package.json +2 -2
package/dist/orbitui.es.js
CHANGED
|
@@ -1,278 +1,279 @@
|
|
|
1
|
-
import
|
|
1
|
+
import z, { useState as te } from "react";
|
|
2
2
|
var R = { exports: {} }, C = {};
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
if (
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
var
|
|
10
|
-
if (
|
|
11
|
-
|
|
12
|
-
for (var
|
|
13
|
-
|
|
14
|
-
} else
|
|
15
|
-
return
|
|
16
|
-
$$typeof:
|
|
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:
|
|
19
|
-
ref:
|
|
20
|
-
props:
|
|
18
|
+
key: a,
|
|
19
|
+
ref: l !== void 0 ? l : null,
|
|
20
|
+
props: n
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
return C.Fragment =
|
|
23
|
+
return C.Fragment = o, C.jsx = i, C.jsxs = i, C;
|
|
24
24
|
}
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
function
|
|
28
|
-
return
|
|
29
|
-
function
|
|
30
|
-
if (
|
|
31
|
-
if (typeof
|
|
32
|
-
return
|
|
33
|
-
if (typeof
|
|
34
|
-
switch (
|
|
35
|
-
case
|
|
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
|
|
37
|
+
case _:
|
|
38
38
|
return "Profiler";
|
|
39
|
-
case
|
|
39
|
+
case T:
|
|
40
40
|
return "StrictMode";
|
|
41
|
-
case
|
|
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
|
|
49
|
-
switch (typeof
|
|
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
|
-
),
|
|
52
|
-
case
|
|
51
|
+
), r.$$typeof) {
|
|
52
|
+
case N:
|
|
53
53
|
return "Portal";
|
|
54
|
-
case
|
|
55
|
-
return
|
|
56
|
-
case
|
|
57
|
-
return (
|
|
58
|
-
case
|
|
59
|
-
var
|
|
60
|
-
return
|
|
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
|
|
63
|
-
case
|
|
64
|
-
|
|
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
|
|
66
|
+
return s(r(d));
|
|
67
67
|
} catch {
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
return null;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return "" +
|
|
72
|
+
function o(r) {
|
|
73
|
+
return "" + r;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function i(r) {
|
|
76
76
|
try {
|
|
77
|
-
|
|
78
|
-
var
|
|
77
|
+
o(r);
|
|
78
|
+
var d = !1;
|
|
79
79
|
} catch {
|
|
80
|
-
|
|
80
|
+
d = !0;
|
|
81
81
|
}
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
var
|
|
85
|
-
return
|
|
86
|
-
|
|
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
|
-
|
|
89
|
-
),
|
|
88
|
+
h
|
|
89
|
+
), o(r);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function t(
|
|
93
|
-
if (
|
|
94
|
-
if (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
|
|
98
|
-
return
|
|
97
|
+
var d = s(r);
|
|
98
|
+
return d ? "<" + d + ">" : "<...>";
|
|
99
99
|
} catch {
|
|
100
100
|
return "<...>";
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
var
|
|
105
|
-
return
|
|
103
|
+
function l() {
|
|
104
|
+
var r = O.A;
|
|
105
|
+
return r === null ? null : r.getOwner();
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function n() {
|
|
108
108
|
return Error("react-stack-top-frame");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
if (
|
|
112
|
-
var
|
|
113
|
-
if (
|
|
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
|
|
115
|
+
return r.key !== void 0;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
function
|
|
119
|
-
|
|
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
|
-
|
|
121
|
+
d
|
|
122
122
|
));
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
get:
|
|
124
|
+
x.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
125
|
+
get: x,
|
|
126
126
|
configurable: !0
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
var
|
|
131
|
-
return
|
|
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
|
-
)),
|
|
133
|
+
)), r = this.props.ref, r !== void 0 ? r : null;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
var m =
|
|
137
|
-
return
|
|
138
|
-
$$typeof:
|
|
139
|
-
type:
|
|
140
|
-
key:
|
|
141
|
-
props:
|
|
142
|
-
_owner:
|
|
143
|
-
}, (m !== void 0 ? m : null) !== null ? Object.defineProperty(
|
|
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:
|
|
146
|
-
}) : Object.defineProperty(
|
|
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(
|
|
151
|
+
}), Object.defineProperty(r, "_debugInfo", {
|
|
152
152
|
configurable: !1,
|
|
153
153
|
enumerable: !1,
|
|
154
154
|
writable: !0,
|
|
155
155
|
value: null
|
|
156
|
-
}), Object.defineProperty(
|
|
156
|
+
}), Object.defineProperty(r, "_debugStack", {
|
|
157
157
|
configurable: !1,
|
|
158
158
|
enumerable: !1,
|
|
159
159
|
writable: !0,
|
|
160
160
|
value: E
|
|
161
|
-
}), Object.defineProperty(
|
|
161
|
+
}), Object.defineProperty(r, "_debugTask", {
|
|
162
162
|
configurable: !1,
|
|
163
163
|
enumerable: !1,
|
|
164
164
|
writable: !0,
|
|
165
|
-
value:
|
|
166
|
-
}), Object.freeze && (Object.freeze(
|
|
165
|
+
value: L
|
|
166
|
+
}), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
var m =
|
|
168
|
+
function b(r, d, x, h, E, L) {
|
|
169
|
+
var m = d.children;
|
|
170
170
|
if (m !== void 0)
|
|
171
|
-
if (
|
|
171
|
+
if (h)
|
|
172
172
|
if (ee(m)) {
|
|
173
|
-
for (
|
|
174
|
-
|
|
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
|
|
181
|
-
if (
|
|
182
|
-
m =
|
|
183
|
-
var
|
|
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
|
-
|
|
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
|
-
|
|
193
|
+
h,
|
|
194
194
|
m,
|
|
195
|
-
|
|
195
|
+
w,
|
|
196
196
|
m
|
|
197
|
-
),
|
|
197
|
+
), V[m + h] = !0);
|
|
198
198
|
}
|
|
199
|
-
if (m = null,
|
|
200
|
-
|
|
201
|
-
for (var
|
|
202
|
-
|
|
203
|
-
} else
|
|
204
|
-
return m &&
|
|
205
|
-
|
|
206
|
-
typeof
|
|
207
|
-
),
|
|
208
|
-
|
|
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
|
-
|
|
211
|
-
|
|
210
|
+
x,
|
|
211
|
+
l(),
|
|
212
212
|
E,
|
|
213
|
-
|
|
213
|
+
L
|
|
214
214
|
);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
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
|
|
220
|
-
return typeof
|
|
219
|
+
function v(r) {
|
|
220
|
+
return typeof r == "object" && r !== null && r.$$typeof === y;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
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
|
-
|
|
226
|
-
react_stack_bottom_frame: function(
|
|
227
|
-
return
|
|
225
|
+
g = {
|
|
226
|
+
react_stack_bottom_frame: function(r) {
|
|
227
|
+
return r();
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
|
-
var
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
)(),
|
|
234
|
-
|
|
235
|
-
var
|
|
236
|
-
return
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
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
|
-
|
|
242
|
-
|
|
241
|
+
h ? Error("react-stack-top-frame") : F,
|
|
242
|
+
h ? P(t(r)) : U
|
|
243
243
|
);
|
|
244
|
-
},
|
|
245
|
-
var
|
|
246
|
-
return
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
-
|
|
252
|
-
|
|
251
|
+
h ? Error("react-stack-top-frame") : F,
|
|
252
|
+
h ? P(t(r)) : U
|
|
253
253
|
);
|
|
254
254
|
};
|
|
255
|
-
})()),
|
|
255
|
+
})()), $;
|
|
256
256
|
}
|
|
257
|
-
var
|
|
258
|
-
function
|
|
259
|
-
return
|
|
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
|
|
262
|
-
const
|
|
263
|
-
variant:
|
|
264
|
-
size:
|
|
265
|
-
rounded:
|
|
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:
|
|
268
|
-
leftIcon:
|
|
269
|
-
rightIcon:
|
|
270
|
-
className:
|
|
271
|
-
children:
|
|
272
|
-
disabled:
|
|
273
|
-
|
|
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
|
|
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
|
-
|
|
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-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
299
|
-
return /* @__PURE__ */
|
|
300
|
+
}, j = l ? "w-full" : "";
|
|
301
|
+
return /* @__PURE__ */ e.jsxs(
|
|
300
302
|
"button",
|
|
301
303
|
{
|
|
302
|
-
className: `${
|
|
303
|
-
disabled:
|
|
304
|
-
...
|
|
304
|
+
className: `${v} ${g[s]} ${y[o]} ${N[i]} ${j} ${c}`,
|
|
305
|
+
disabled: f || t,
|
|
306
|
+
...p,
|
|
305
307
|
children: [
|
|
306
|
-
t && /* @__PURE__ */
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
-
/* @__PURE__ */
|
|
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 &&
|
|
311
|
-
/* @__PURE__ */
|
|
312
|
-
!t &&
|
|
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
|
-
},
|
|
317
|
-
label:
|
|
318
|
-
error:
|
|
319
|
-
leftIcon:
|
|
318
|
+
}, le = z.forwardRef(({
|
|
319
|
+
label: s,
|
|
320
|
+
error: o,
|
|
321
|
+
leftIcon: i,
|
|
320
322
|
rightIcon: t,
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
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
|
-
${
|
|
342
|
+
${i ? "pl-10" : "px-3"}
|
|
333
343
|
${t ? "pr-10" : "px-3"}
|
|
334
|
-
py-
|
|
335
|
-
bg-white
|
|
344
|
+
py-3
|
|
336
345
|
border
|
|
337
|
-
${
|
|
338
|
-
rounded-
|
|
346
|
+
${o ? "border-red-500" : ""}
|
|
347
|
+
rounded-lg
|
|
339
348
|
shadow-sm
|
|
340
349
|
focus:outline-none
|
|
341
350
|
focus:ring-2
|
|
342
|
-
${
|
|
351
|
+
${o ? "focus:ring-red-500" : ""}
|
|
343
352
|
focus:border-transparent
|
|
344
353
|
transition-all
|
|
345
354
|
duration-200
|
|
346
|
-
|
|
347
|
-
${
|
|
355
|
+
${u[l]}
|
|
356
|
+
${n}
|
|
348
357
|
`,
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
] })
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
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:
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
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:
|
|
374
|
-
location:
|
|
375
|
-
isLiked:
|
|
376
|
-
isBookmarked:
|
|
377
|
-
onLike:
|
|
378
|
-
onComment:
|
|
379
|
-
onShare:
|
|
380
|
-
onBookmark:
|
|
381
|
-
}) => /* @__PURE__ */
|
|
382
|
-
/* @__PURE__ */
|
|
383
|
-
/* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
392
|
-
|
|
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__ */
|
|
399
|
-
/* @__PURE__ */
|
|
400
|
-
/* @__PURE__ */
|
|
401
|
-
/* @__PURE__ */
|
|
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__ */
|
|
407
|
-
/* @__PURE__ */
|
|
408
|
-
/* @__PURE__ */
|
|
409
|
-
/* @__PURE__ */
|
|
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:
|
|
413
|
-
alt:
|
|
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__ */
|
|
418
|
-
/* @__PURE__ */
|
|
419
|
-
|
|
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__ */
|
|
423
|
-
/* @__PURE__ */
|
|
424
|
-
|
|
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:
|
|
430
|
-
className: `transition-colors ${
|
|
431
|
-
children:
|
|
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__ */
|
|
435
|
-
|
|
455
|
+
/* @__PURE__ */ e.jsx(
|
|
456
|
+
k,
|
|
436
457
|
{
|
|
437
458
|
variant: "ghost",
|
|
438
459
|
size: "icon",
|
|
439
460
|
rounded: "full",
|
|
440
|
-
onClick:
|
|
461
|
+
onClick: f,
|
|
441
462
|
className: "text-gray-400 hover:text-indigo-500",
|
|
442
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
446
|
-
|
|
466
|
+
/* @__PURE__ */ e.jsx(
|
|
467
|
+
k,
|
|
447
468
|
{
|
|
448
469
|
variant: "ghost",
|
|
449
470
|
size: "icon",
|
|
450
471
|
rounded: "full",
|
|
451
|
-
onClick:
|
|
472
|
+
onClick: b,
|
|
452
473
|
className: "text-gray-400 hover:text-indigo-500",
|
|
453
|
-
children: /* @__PURE__ */
|
|
454
|
-
/* @__PURE__ */
|
|
455
|
-
/* @__PURE__ */
|
|
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__ */
|
|
462
|
-
/* @__PURE__ */
|
|
463
|
-
/* @__PURE__ */
|
|
464
|
-
/* @__PURE__ */
|
|
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__ */
|
|
469
|
-
|
|
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:
|
|
475
|
-
className: `transition-colors ${
|
|
476
|
-
children:
|
|
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__ */
|
|
481
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
-
] }),
|
|
494
|
-
variant:
|
|
495
|
-
size:
|
|
496
|
-
className:
|
|
514
|
+
] }), he = ({
|
|
515
|
+
variant: s = "spinner",
|
|
516
|
+
size: o = "md",
|
|
517
|
+
className: i = "",
|
|
497
518
|
color: t,
|
|
498
|
-
colors:
|
|
519
|
+
colors: l
|
|
499
520
|
}) => {
|
|
500
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
511
|
-
if (
|
|
512
|
-
const
|
|
513
|
-
if (!
|
|
514
|
-
const
|
|
515
|
-
return
|
|
516
|
-
},
|
|
517
|
-
return /* @__PURE__ */
|
|
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: `${
|
|
541
|
+
className: `${f} rounded-full animate-bounce ${v()}`,
|
|
521
542
|
style: {
|
|
522
|
-
...
|
|
523
|
-
animationDelay:
|
|
543
|
+
...p(g),
|
|
544
|
+
animationDelay: g === 0 ? "-0.3s" : g === 1 ? "-0.15s" : "0s"
|
|
524
545
|
}
|
|
525
546
|
},
|
|
526
|
-
|
|
547
|
+
g
|
|
527
548
|
)) });
|
|
528
549
|
}
|
|
529
|
-
if (
|
|
530
|
-
const
|
|
531
|
-
return /* @__PURE__ */
|
|
532
|
-
/* @__PURE__ */
|
|
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 ${
|
|
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__ */
|
|
560
|
+
/* @__PURE__ */ e.jsx(
|
|
540
561
|
"span",
|
|
541
562
|
{
|
|
542
|
-
className: `relative inline-flex rounded-full h-3/4 w-3/4 ${
|
|
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
|
|
549
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
564
|
-
/* @__PURE__ */
|
|
565
|
-
/* @__PURE__ */
|
|
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:
|
|
569
|
-
title:
|
|
570
|
-
children:
|
|
589
|
+
variant: s = "info",
|
|
590
|
+
title: o,
|
|
591
|
+
children: i,
|
|
571
592
|
onClose: t,
|
|
572
|
-
className:
|
|
593
|
+
className: l = ""
|
|
573
594
|
}) => {
|
|
574
|
-
const
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
-
}[
|
|
600
|
-
return /* @__PURE__ */
|
|
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 ${
|
|
625
|
+
className: `flex p-4 rounded-lg border ${a.container} ${l}`,
|
|
605
626
|
children: [
|
|
606
|
-
/* @__PURE__ */
|
|
607
|
-
/* @__PURE__ */
|
|
608
|
-
|
|
609
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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 ${
|
|
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__ */
|
|
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
|
-
},
|
|
624
|
-
children:
|
|
625
|
-
colSpan:
|
|
626
|
-
rowSpan:
|
|
644
|
+
}, ae = ({
|
|
645
|
+
children: s,
|
|
646
|
+
colSpan: o,
|
|
647
|
+
rowSpan: i,
|
|
627
648
|
colStart: t,
|
|
628
|
-
className:
|
|
649
|
+
className: l = ""
|
|
629
650
|
}) => {
|
|
630
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
652
|
-
|
|
653
|
-
|
|
672
|
+
}, c = [
|
|
673
|
+
o ? n[o] : "",
|
|
674
|
+
i ? a[i] : "",
|
|
654
675
|
t ? `col-start-${t}` : "",
|
|
655
|
-
|
|
676
|
+
l
|
|
656
677
|
].filter(Boolean).join(" ");
|
|
657
|
-
return /* @__PURE__ */
|
|
658
|
-
},
|
|
659
|
-
children:
|
|
660
|
-
cols:
|
|
661
|
-
gap:
|
|
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:
|
|
664
|
-
flow:
|
|
665
|
-
align:
|
|
666
|
-
justify:
|
|
667
|
-
className:
|
|
684
|
+
gapY: l,
|
|
685
|
+
flow: n = "row",
|
|
686
|
+
align: a,
|
|
687
|
+
justify: c,
|
|
688
|
+
className: u = ""
|
|
668
689
|
}) => {
|
|
669
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
711
|
+
}, p = [
|
|
691
712
|
"grid",
|
|
692
|
-
|
|
693
|
-
t === void 0 &&
|
|
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
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
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__ */
|
|
723
|
+
return /* @__PURE__ */ e.jsx("div", { className: p, children: s });
|
|
703
724
|
};
|
|
704
|
-
|
|
725
|
+
ie.Item = ae;
|
|
705
726
|
const fe = ({
|
|
706
|
-
variant:
|
|
707
|
-
component:
|
|
708
|
-
children:
|
|
727
|
+
variant: s = "body1",
|
|
728
|
+
component: o,
|
|
729
|
+
children: i,
|
|
709
730
|
weight: t,
|
|
710
|
-
align:
|
|
711
|
-
color:
|
|
712
|
-
className:
|
|
713
|
-
noWrap:
|
|
731
|
+
align: l = "left",
|
|
732
|
+
color: n,
|
|
733
|
+
className: a = "",
|
|
734
|
+
noWrap: c = !1,
|
|
735
|
+
gradient: u
|
|
714
736
|
}) => {
|
|
715
|
-
const
|
|
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
|
-
}[
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
776
|
+
}, y = {
|
|
755
777
|
left: "text-left",
|
|
756
778
|
center: "text-center",
|
|
757
779
|
right: "text-right",
|
|
758
780
|
justify: "text-justify"
|
|
759
|
-
},
|
|
760
|
-
|
|
761
|
-
|
|
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
|
-
|
|
764
|
-
|
|
765
|
-
|
|
786
|
+
j,
|
|
787
|
+
T,
|
|
788
|
+
_,
|
|
789
|
+
c ? "truncate" : "",
|
|
790
|
+
a
|
|
766
791
|
].filter(Boolean).join(" ");
|
|
767
|
-
return /* @__PURE__ */
|
|
768
|
-
},
|
|
769
|
-
|
|
770
|
-
|
|
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
|
-
|
|
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
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
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
|
};
|