@sachin-tosa/tosa 1.0.2 → 1.0.4
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/dist/tosa.es.js +346 -91
- package/dist/tosa.umd.js +216 -2
- package/package.json +3 -1
- package/dist/tosa.css +0 -1
package/dist/tosa.es.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import re, { useState as te } from "react";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
2
|
+
var E = { exports: {} }, v = {};
|
|
3
|
+
var Y;
|
|
4
4
|
function ne() {
|
|
5
|
-
if (
|
|
6
|
-
|
|
5
|
+
if (Y) return v;
|
|
6
|
+
Y = 1;
|
|
7
7
|
var l = /* @__PURE__ */ Symbol.for("react.transitional.element"), f = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
8
|
-
function u(
|
|
9
|
-
var
|
|
10
|
-
if (s !== void 0 && (
|
|
8
|
+
function u(d, o, s) {
|
|
9
|
+
var p = null;
|
|
10
|
+
if (s !== void 0 && (p = "" + s), o.key !== void 0 && (p = "" + o.key), "key" in o) {
|
|
11
11
|
s = {};
|
|
12
|
-
for (var
|
|
13
|
-
|
|
12
|
+
for (var b in o)
|
|
13
|
+
b !== "key" && (s[b] = o[b]);
|
|
14
14
|
} else s = o;
|
|
15
15
|
return o = s.ref, {
|
|
16
16
|
$$typeof: l,
|
|
17
|
-
type:
|
|
18
|
-
key:
|
|
17
|
+
type: d,
|
|
18
|
+
key: p,
|
|
19
19
|
ref: o !== void 0 ? o : null,
|
|
20
20
|
props: s
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
return
|
|
23
|
+
return v.Fragment = f, v.jsx = u, v.jsxs = u, v;
|
|
24
24
|
}
|
|
25
|
-
var
|
|
26
|
-
var
|
|
25
|
+
var h = {};
|
|
26
|
+
var I;
|
|
27
27
|
function ae() {
|
|
28
|
-
return
|
|
28
|
+
return I || (I = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
29
29
|
function l(e) {
|
|
30
30
|
if (e == null) return null;
|
|
31
31
|
if (typeof e == "function")
|
|
32
32
|
return e.$$typeof === Q ? null : e.displayName || e.name || null;
|
|
33
33
|
if (typeof e == "string") return e;
|
|
34
34
|
switch (e) {
|
|
35
|
-
case
|
|
35
|
+
case _:
|
|
36
36
|
return "Fragment";
|
|
37
|
-
case
|
|
37
|
+
case X:
|
|
38
38
|
return "Profiler";
|
|
39
|
-
case
|
|
39
|
+
case W:
|
|
40
40
|
return "StrictMode";
|
|
41
|
-
case
|
|
41
|
+
case G:
|
|
42
42
|
return "Suspense";
|
|
43
43
|
case H:
|
|
44
44
|
return "SuspenseList";
|
|
@@ -49,18 +49,18 @@ function ae() {
|
|
|
49
49
|
switch (typeof e.tag == "number" && console.error(
|
|
50
50
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
51
51
|
), e.$$typeof) {
|
|
52
|
-
case
|
|
52
|
+
case U:
|
|
53
53
|
return "Portal";
|
|
54
|
-
case
|
|
54
|
+
case J:
|
|
55
55
|
return e.displayName || "Context";
|
|
56
|
-
case
|
|
56
|
+
case q:
|
|
57
57
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
58
|
-
case
|
|
58
|
+
case V:
|
|
59
59
|
var r = e.render;
|
|
60
60
|
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
61
61
|
case B:
|
|
62
62
|
return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
|
|
63
|
-
case
|
|
63
|
+
case k:
|
|
64
64
|
r = e._payload, e = e._init;
|
|
65
65
|
try {
|
|
66
66
|
return l(e(r));
|
|
@@ -89,9 +89,9 @@ function ae() {
|
|
|
89
89
|
), f(e);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
if (e ===
|
|
94
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
92
|
+
function d(e) {
|
|
93
|
+
if (e === _) return "<>";
|
|
94
|
+
if (typeof e == "object" && e !== null && e.$$typeof === k)
|
|
95
95
|
return "<...>";
|
|
96
96
|
try {
|
|
97
97
|
var r = l(e);
|
|
@@ -101,22 +101,22 @@ function ae() {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
function o() {
|
|
104
|
-
var e =
|
|
104
|
+
var e = y.A;
|
|
105
105
|
return e === null ? null : e.getOwner();
|
|
106
106
|
}
|
|
107
107
|
function s() {
|
|
108
108
|
return Error("react-stack-top-frame");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
if (
|
|
110
|
+
function p(e) {
|
|
111
|
+
if (N.call(e, "key")) {
|
|
112
112
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
113
113
|
if (r && r.isReactWarning) return !1;
|
|
114
114
|
}
|
|
115
115
|
return e.key !== void 0;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function b(e, r) {
|
|
118
118
|
function t() {
|
|
119
|
-
|
|
119
|
+
C || (C = !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
|
r
|
|
122
122
|
));
|
|
@@ -126,23 +126,23 @@ function ae() {
|
|
|
126
126
|
configurable: !0
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function F() {
|
|
130
130
|
var e = l(this.type);
|
|
131
|
-
return
|
|
131
|
+
return P[e] || (P[e] = !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
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function D(e, r, t, n, x, T) {
|
|
136
136
|
var a = t.ref;
|
|
137
137
|
return e = {
|
|
138
|
-
$$typeof:
|
|
138
|
+
$$typeof: A,
|
|
139
139
|
type: e,
|
|
140
140
|
key: r,
|
|
141
141
|
props: t,
|
|
142
142
|
_owner: n
|
|
143
143
|
}, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
|
|
144
144
|
enumerable: !1,
|
|
145
|
-
get:
|
|
145
|
+
get: F
|
|
146
146
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
147
147
|
configurable: !1,
|
|
148
148
|
enumerable: !1,
|
|
@@ -157,33 +157,33 @@ function ae() {
|
|
|
157
157
|
configurable: !1,
|
|
158
158
|
enumerable: !1,
|
|
159
159
|
writable: !0,
|
|
160
|
-
value:
|
|
160
|
+
value: x
|
|
161
161
|
}), Object.defineProperty(e, "_debugTask", {
|
|
162
162
|
configurable: !1,
|
|
163
163
|
enumerable: !1,
|
|
164
164
|
writable: !0,
|
|
165
|
-
value:
|
|
165
|
+
value: T
|
|
166
166
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function j(e, r, t, n, x, T) {
|
|
169
169
|
var a = r.children;
|
|
170
170
|
if (a !== void 0)
|
|
171
171
|
if (n)
|
|
172
172
|
if (K(a)) {
|
|
173
173
|
for (n = 0; n < a.length; n++)
|
|
174
|
-
|
|
174
|
+
S(a[n]);
|
|
175
175
|
Object.freeze && Object.freeze(a);
|
|
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 (
|
|
180
|
+
else S(a);
|
|
181
|
+
if (N.call(r, "key")) {
|
|
182
182
|
a = l(e);
|
|
183
|
-
var
|
|
183
|
+
var m = Object.keys(r).filter(function(ee) {
|
|
184
184
|
return ee !== "key";
|
|
185
185
|
});
|
|
186
|
-
n = 0 <
|
|
186
|
+
n = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", $[a + n] || (m = 0 < m.length ? "{" + m.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} />
|
|
@@ -192,91 +192,346 @@ React keys must be passed directly to JSX without using spread:
|
|
|
192
192
|
<%s key={someKey} {...props} />`,
|
|
193
193
|
n,
|
|
194
194
|
a,
|
|
195
|
-
|
|
195
|
+
m,
|
|
196
196
|
a
|
|
197
|
-
),
|
|
197
|
+
), $[a + n] = !0);
|
|
198
198
|
}
|
|
199
|
-
if (a = null, t !== void 0 && (u(t), a = "" + t),
|
|
199
|
+
if (a = null, t !== void 0 && (u(t), a = "" + t), p(r) && (u(r.key), a = "" + r.key), "key" in r) {
|
|
200
200
|
t = {};
|
|
201
|
-
for (var
|
|
202
|
-
|
|
201
|
+
for (var w in r)
|
|
202
|
+
w !== "key" && (t[w] = r[w]);
|
|
203
203
|
} else t = r;
|
|
204
|
-
return a &&
|
|
204
|
+
return a && b(
|
|
205
205
|
t,
|
|
206
206
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
207
|
-
),
|
|
207
|
+
), D(
|
|
208
208
|
e,
|
|
209
209
|
a,
|
|
210
210
|
t,
|
|
211
211
|
o(),
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
x,
|
|
213
|
+
T
|
|
214
214
|
);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
216
|
+
function S(e) {
|
|
217
|
+
O(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === k && (e._payload.status === "fulfilled" ? O(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
219
|
+
function O(e) {
|
|
220
|
+
return typeof e == "object" && e !== null && e.$$typeof === A;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
222
|
+
var g = re, A = /* @__PURE__ */ Symbol.for("react.transitional.element"), U = /* @__PURE__ */ Symbol.for("react.portal"), _ = /* @__PURE__ */ Symbol.for("react.fragment"), W = /* @__PURE__ */ Symbol.for("react.strict_mode"), X = /* @__PURE__ */ Symbol.for("react.profiler"), q = /* @__PURE__ */ Symbol.for("react.consumer"), J = /* @__PURE__ */ Symbol.for("react.context"), V = /* @__PURE__ */ Symbol.for("react.forward_ref"), G = /* @__PURE__ */ Symbol.for("react.suspense"), H = /* @__PURE__ */ Symbol.for("react.suspense_list"), B = /* @__PURE__ */ Symbol.for("react.memo"), k = /* @__PURE__ */ Symbol.for("react.lazy"), Z = /* @__PURE__ */ Symbol.for("react.activity"), Q = /* @__PURE__ */ Symbol.for("react.client.reference"), y = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, N = Object.prototype.hasOwnProperty, K = Array.isArray, R = console.createTask ? console.createTask : function() {
|
|
223
223
|
return null;
|
|
224
224
|
};
|
|
225
|
-
|
|
225
|
+
g = {
|
|
226
226
|
react_stack_bottom_frame: function(e) {
|
|
227
227
|
return e();
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
|
-
var
|
|
231
|
-
|
|
230
|
+
var C, P = {}, M = g.react_stack_bottom_frame.bind(
|
|
231
|
+
g,
|
|
232
232
|
s
|
|
233
|
-
)(),
|
|
234
|
-
|
|
235
|
-
var n = 1e4 >
|
|
236
|
-
return
|
|
233
|
+
)(), L = R(d(s)), $ = {};
|
|
234
|
+
h.Fragment = _, h.jsx = function(e, r, t) {
|
|
235
|
+
var n = 1e4 > y.recentlyCreatedOwnerStacks++;
|
|
236
|
+
return j(
|
|
237
237
|
e,
|
|
238
238
|
r,
|
|
239
239
|
t,
|
|
240
240
|
!1,
|
|
241
|
-
n ? Error("react-stack-top-frame") :
|
|
242
|
-
n ?
|
|
241
|
+
n ? Error("react-stack-top-frame") : M,
|
|
242
|
+
n ? R(d(e)) : L
|
|
243
243
|
);
|
|
244
|
-
},
|
|
245
|
-
var n = 1e4 >
|
|
246
|
-
return
|
|
244
|
+
}, h.jsxs = function(e, r, t) {
|
|
245
|
+
var n = 1e4 > y.recentlyCreatedOwnerStacks++;
|
|
246
|
+
return j(
|
|
247
247
|
e,
|
|
248
248
|
r,
|
|
249
249
|
t,
|
|
250
250
|
!0,
|
|
251
|
-
n ? Error("react-stack-top-frame") :
|
|
252
|
-
n ?
|
|
251
|
+
n ? Error("react-stack-top-frame") : M,
|
|
252
|
+
n ? R(d(e)) : L
|
|
253
253
|
);
|
|
254
254
|
};
|
|
255
|
-
})()),
|
|
255
|
+
})()), h;
|
|
256
256
|
}
|
|
257
|
-
var
|
|
257
|
+
var z;
|
|
258
258
|
function oe() {
|
|
259
|
-
return
|
|
259
|
+
return z || (z = 1, process.env.NODE_ENV === "production" ? E.exports = ne() : E.exports = ae()), E.exports;
|
|
260
260
|
}
|
|
261
261
|
var i = oe();
|
|
262
|
-
const
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
262
|
+
const c = (() => {
|
|
263
|
+
const l = document.createElement("style");
|
|
264
|
+
return l.textContent = `
|
|
265
|
+
* {
|
|
266
|
+
margin: 0;
|
|
267
|
+
padding: 0;
|
|
268
|
+
box-sizing: border-box;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.navbar {
|
|
272
|
+
position: sticky;
|
|
273
|
+
top: 0;
|
|
274
|
+
z-index: 1000;
|
|
275
|
+
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
|
276
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
277
|
+
backdrop-filter: blur(10px);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.navContainer {
|
|
281
|
+
max-width: 1200px;
|
|
282
|
+
margin: 0 auto;
|
|
283
|
+
display: flex;
|
|
284
|
+
justify-content: space-between;
|
|
285
|
+
align-items: center;
|
|
286
|
+
padding: 1rem 2rem;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.logo {
|
|
290
|
+
font-size: 1.8rem;
|
|
291
|
+
font-weight: 700;
|
|
292
|
+
letter-spacing: 2px;
|
|
293
|
+
background: linear-gradient(135deg, #00d8ff 0%, #0099cc 100%);
|
|
294
|
+
-webkit-background-clip: text;
|
|
295
|
+
-webkit-text-fill-color: transparent;
|
|
296
|
+
background-clip: text;
|
|
297
|
+
cursor: pointer;
|
|
298
|
+
transition: transform 0.3s ease;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.logo:hover {
|
|
302
|
+
transform: scale(1.05);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.navMenu {
|
|
306
|
+
display: flex;
|
|
307
|
+
list-style: none;
|
|
308
|
+
gap: 2.5rem;
|
|
309
|
+
align-items: center;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.navLink {
|
|
313
|
+
position: relative;
|
|
314
|
+
text-decoration: none;
|
|
315
|
+
color: #e0e0e0;
|
|
316
|
+
font-weight: 500;
|
|
317
|
+
font-size: 1rem;
|
|
318
|
+
padding: 0.5rem 0;
|
|
319
|
+
transition: color 0.3s ease;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.navLink::after {
|
|
323
|
+
content: '';
|
|
324
|
+
position: absolute;
|
|
325
|
+
bottom: 0;
|
|
326
|
+
left: 0;
|
|
327
|
+
width: 0;
|
|
328
|
+
height: 2px;
|
|
329
|
+
background: linear-gradient(90deg, #00d8ff, #0099cc);
|
|
330
|
+
transition: width 0.3s ease;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.navLink:hover {
|
|
334
|
+
color: #00d8ff;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.navLink:hover::after {
|
|
338
|
+
width: 100%;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.hamburger {
|
|
342
|
+
display: none;
|
|
343
|
+
flex-direction: column;
|
|
344
|
+
justify-content: space-between;
|
|
345
|
+
width: 28px;
|
|
346
|
+
height: 22px;
|
|
347
|
+
background: none;
|
|
348
|
+
border: none;
|
|
349
|
+
cursor: pointer;
|
|
350
|
+
padding: 0;
|
|
351
|
+
z-index: 1001;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.bar {
|
|
355
|
+
width: 100%;
|
|
356
|
+
height: 3px;
|
|
357
|
+
background: #00d8ff;
|
|
358
|
+
border-radius: 3px;
|
|
359
|
+
transition: all 0.3s ease;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.hamburger.active .bar:nth-child(1) {
|
|
363
|
+
transform: translateY(9.5px) rotate(45deg);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.hamburger.active .bar:nth-child(2) {
|
|
367
|
+
opacity: 0;
|
|
368
|
+
transform: translateX(-20px);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.hamburger.active .bar:nth-child(3) {
|
|
372
|
+
transform: translateY(-9.5px) rotate(-45deg);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.demoContent {
|
|
376
|
+
padding: 4rem 2rem;
|
|
377
|
+
max-width: 1200px;
|
|
378
|
+
margin: 0 auto;
|
|
379
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.demoSection {
|
|
383
|
+
margin-bottom: 3rem;
|
|
384
|
+
padding: 3rem 2rem;
|
|
385
|
+
background: #f8f9fa;
|
|
386
|
+
border-radius: 12px;
|
|
387
|
+
scroll-margin-top: 80px;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.demoSection h2 {
|
|
391
|
+
color: #1a1a2e;
|
|
392
|
+
margin-bottom: 1rem;
|
|
393
|
+
font-size: 2rem;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.demoSection p {
|
|
397
|
+
color: #666;
|
|
398
|
+
line-height: 1.8;
|
|
399
|
+
font-size: 1.1rem;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
@media (max-width: 768px) {
|
|
403
|
+
.hamburger {
|
|
404
|
+
display: flex;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.navMenu {
|
|
408
|
+
position: fixed;
|
|
409
|
+
top: 0;
|
|
410
|
+
right: 0;
|
|
411
|
+
height: 100vh;
|
|
412
|
+
width: 280px;
|
|
413
|
+
flex-direction: column;
|
|
414
|
+
justify-content: flex-start;
|
|
415
|
+
padding-top: 5rem;
|
|
416
|
+
gap: 0;
|
|
417
|
+
background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
|
|
418
|
+
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
|
|
419
|
+
transform: translateX(100%);
|
|
420
|
+
transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.navMenu.open {
|
|
424
|
+
transform: translateX(0);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.navMenu li {
|
|
428
|
+
width: 100%;
|
|
429
|
+
opacity: 0;
|
|
430
|
+
transform: translateX(50px);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.navMenu.open li {
|
|
434
|
+
animation: slideIn 0.4s forwards;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.navMenu.open li:nth-child(1) { animation-delay: 0.1s; }
|
|
438
|
+
.navMenu.open li:nth-child(2) { animation-delay: 0.2s; }
|
|
439
|
+
.navMenu.open li:nth-child(3) { animation-delay: 0.3s; }
|
|
440
|
+
.navMenu.open li:nth-child(4) { animation-delay: 0.4s; }
|
|
441
|
+
|
|
442
|
+
@keyframes slideIn {
|
|
443
|
+
to {
|
|
444
|
+
opacity: 1;
|
|
445
|
+
transform: translateX(0);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.navLink {
|
|
450
|
+
display: block;
|
|
451
|
+
padding: 1.2rem 2rem;
|
|
452
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
453
|
+
font-size: 1.1rem;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.navLink::after {
|
|
457
|
+
display: none;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.navLink:hover {
|
|
461
|
+
background: rgba(0, 216, 255, 0.1);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
@media (max-width: 480px) {
|
|
466
|
+
.navContainer {
|
|
467
|
+
padding: 1rem 1.5rem;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.logo {
|
|
471
|
+
font-size: 1.5rem;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.navMenu {
|
|
475
|
+
width: 100%;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
`, document.head.querySelector("[data-navbar-styles]") || (l.setAttribute("data-navbar-styles", ""), document.head.appendChild(l)), {
|
|
479
|
+
navbar: "navbar",
|
|
480
|
+
navContainer: "navContainer",
|
|
481
|
+
logo: "logo",
|
|
482
|
+
navMenu: "navMenu",
|
|
483
|
+
navLink: "navLink",
|
|
484
|
+
hamburger: "hamburger",
|
|
485
|
+
bar: "bar",
|
|
486
|
+
active: "active",
|
|
487
|
+
open: "open",
|
|
488
|
+
demoContent: "demoContent",
|
|
489
|
+
demoSection: "demoSection"
|
|
490
|
+
};
|
|
491
|
+
})();
|
|
492
|
+
function se({ brand: l = "TOSA", links: f = ["Home", "About", "Services", "Contact"] }) {
|
|
493
|
+
const [u, d] = te(!1);
|
|
494
|
+
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
495
|
+
/* @__PURE__ */ i.jsx("nav", { className: c.navbar, children: /* @__PURE__ */ i.jsxs("div", { className: c.navContainer, children: [
|
|
496
|
+
/* @__PURE__ */ i.jsx("div", { className: c.logo, children: l }),
|
|
497
|
+
/* @__PURE__ */ i.jsxs(
|
|
498
|
+
"button",
|
|
499
|
+
{
|
|
500
|
+
className: `${c.hamburger} ${u ? c.active : ""}`,
|
|
501
|
+
onClick: () => d(!u),
|
|
502
|
+
"aria-label": "Toggle menu",
|
|
503
|
+
"aria-expanded": u,
|
|
504
|
+
children: [
|
|
505
|
+
/* @__PURE__ */ i.jsx("span", { className: c.bar }),
|
|
506
|
+
/* @__PURE__ */ i.jsx("span", { className: c.bar }),
|
|
507
|
+
/* @__PURE__ */ i.jsx("span", { className: c.bar })
|
|
508
|
+
]
|
|
509
|
+
}
|
|
510
|
+
),
|
|
511
|
+
/* @__PURE__ */ i.jsx("ul", { className: `${c.navMenu} ${u ? c.open : ""}`, children: f.map((o, s) => /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx(
|
|
512
|
+
"a",
|
|
513
|
+
{
|
|
514
|
+
href: `#${o.toLowerCase()}`,
|
|
515
|
+
className: c.navLink,
|
|
516
|
+
onClick: () => d(!1),
|
|
517
|
+
children: o
|
|
518
|
+
}
|
|
519
|
+
) }, s)) })
|
|
520
|
+
] }) }),
|
|
521
|
+
/* @__PURE__ */ i.jsx("div", { className: c.demoContent, children: f.map((o, s) => /* @__PURE__ */ i.jsxs("section", { id: o.toLowerCase(), className: c.demoSection, children: [
|
|
522
|
+
/* @__PURE__ */ i.jsx("h2", { children: o }),
|
|
523
|
+
/* @__PURE__ */ i.jsxs("p", { children: [
|
|
524
|
+
"This is the ",
|
|
525
|
+
o,
|
|
526
|
+
" section. The navbar stays fixed at the top and smoothly transitions on mobile devices. Scroll down to see the sticky behavior in action. The navigation links will smoothly scroll to each section."
|
|
527
|
+
] })
|
|
528
|
+
] }, s)) })
|
|
274
529
|
] });
|
|
275
530
|
}
|
|
276
|
-
function
|
|
531
|
+
function le() {
|
|
277
532
|
return /* @__PURE__ */ i.jsx("nav", { children: /* @__PURE__ */ i.jsx("h1", { children: "Hello cards" }) });
|
|
278
533
|
}
|
|
279
534
|
export {
|
|
280
|
-
|
|
281
|
-
|
|
535
|
+
le as Card,
|
|
536
|
+
se as Navbar
|
|
282
537
|
};
|
package/dist/tosa.umd.js
CHANGED
|
@@ -1,6 +1,220 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(d,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],p):(d=typeof globalThis<"u"?globalThis:d||self,p(d.Tosa={},d.React))})(this,(function(d,p){"use strict";var E={exports:{}},v={};var O;function U(){if(O)return v;O=1;var c=Symbol.for("react.transitional.element"),m=Symbol.for("react.fragment");function u(f,i,s){var g=null;if(s!==void 0&&(g=""+s),i.key!==void 0&&(g=""+i.key),"key"in i){s={};for(var x in i)x!=="key"&&(s[x]=i[x])}else s=i;return i=s.ref,{$$typeof:c,type:f,key:g,ref:i!==void 0?i:null,props:s}}return v.Fragment=m,v.jsx=u,v.jsxs=u,v}var h={};var A;function W(){return A||(A=1,process.env.NODE_ENV!=="production"&&(function(){function c(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case y:return"Fragment";case Z:return"Profiler";case B:return"StrictMode";case re:return"Suspense";case te:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case H:return"Portal";case K:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case ee:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return r=e.displayName||null,r!==null?r:c(e.type)||"Memo";case R:r=e._payload,e=e._init;try{return c(e(r))}catch{}}return null}function m(e){return""+e}function u(e){try{m(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),m(e)}}function f(e){if(e===y)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===R)return"<...>";try{var r=c(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=T.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function g(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function x(e,r){function t(){$||($=!0,console.error("%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)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function V(){var e=c(this.type);return I[e]||(I[e]=!0,console.error("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.")),e=this.props.ref,e!==void 0?e:null}function G(e,r,t,n,k,j){var a=t.ref;return e={$$typeof:L,type:e,key:r,props:t,_owner:n},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:V}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:k}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function C(e,r,t,n,k,j){var a=r.children;if(a!==void 0)if(n)if(ie(a)){for(n=0;n<a.length;n++)P(a[n]);Object.freeze&&Object.freeze(a)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else P(a);if(Y.call(r,"key")){a=c(e);var b=Object.keys(r).filter(function(se){return se!=="key"});n=0<b.length?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}",D[a+n]||(b=0<b.length?"{"+b.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,n,a,
|
|
6
|
+
<%s key={someKey} {...props} />`,n,a,b,a),D[a+n]=!0)}if(a=null,t!==void 0&&(u(t),a=""+t),g(r)&&(u(r.key),a=""+r.key),"key"in r){t={};for(var S in r)S!=="key"&&(t[S]=r[S])}else t=r;return a&&x(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),G(e,a,t,i(),k,j)}function P(e){M(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===R&&(e._payload.status==="fulfilled"?M(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function M(e){return typeof e=="object"&&e!==null&&e.$$typeof===L}var _=p,L=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),K=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),oe=Symbol.for("react.client.reference"),T=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,ie=Array.isArray,w=console.createTask?console.createTask:function(){return null};_={react_stack_bottom_frame:function(e){return e()}};var $,I={},z=_.react_stack_bottom_frame.bind(_,s)(),F=w(f(s)),D={};h.Fragment=y,h.jsx=function(e,r,t){var n=1e4>T.recentlyCreatedOwnerStacks++;return C(e,r,t,!1,n?Error("react-stack-top-frame"):z,n?w(f(e)):F)},h.jsxs=function(e,r,t){var n=1e4>T.recentlyCreatedOwnerStacks++;return C(e,r,t,!0,n?Error("react-stack-top-frame"):z,n?w(f(e)):F)}})()),h}var N;function X(){return N||(N=1,process.env.NODE_ENV==="production"?E.exports=U():E.exports=W()),E.exports}var o=X();const l=(()=>{const c=document.createElement("style");return c.textContent=`
|
|
7
|
+
* {
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.navbar {
|
|
14
|
+
position: sticky;
|
|
15
|
+
top: 0;
|
|
16
|
+
z-index: 1000;
|
|
17
|
+
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
|
18
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
19
|
+
backdrop-filter: blur(10px);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.navContainer {
|
|
23
|
+
max-width: 1200px;
|
|
24
|
+
margin: 0 auto;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
align-items: center;
|
|
28
|
+
padding: 1rem 2rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.logo {
|
|
32
|
+
font-size: 1.8rem;
|
|
33
|
+
font-weight: 700;
|
|
34
|
+
letter-spacing: 2px;
|
|
35
|
+
background: linear-gradient(135deg, #00d8ff 0%, #0099cc 100%);
|
|
36
|
+
-webkit-background-clip: text;
|
|
37
|
+
-webkit-text-fill-color: transparent;
|
|
38
|
+
background-clip: text;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
transition: transform 0.3s ease;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.logo:hover {
|
|
44
|
+
transform: scale(1.05);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.navMenu {
|
|
48
|
+
display: flex;
|
|
49
|
+
list-style: none;
|
|
50
|
+
gap: 2.5rem;
|
|
51
|
+
align-items: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.navLink {
|
|
55
|
+
position: relative;
|
|
56
|
+
text-decoration: none;
|
|
57
|
+
color: #e0e0e0;
|
|
58
|
+
font-weight: 500;
|
|
59
|
+
font-size: 1rem;
|
|
60
|
+
padding: 0.5rem 0;
|
|
61
|
+
transition: color 0.3s ease;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.navLink::after {
|
|
65
|
+
content: '';
|
|
66
|
+
position: absolute;
|
|
67
|
+
bottom: 0;
|
|
68
|
+
left: 0;
|
|
69
|
+
width: 0;
|
|
70
|
+
height: 2px;
|
|
71
|
+
background: linear-gradient(90deg, #00d8ff, #0099cc);
|
|
72
|
+
transition: width 0.3s ease;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.navLink:hover {
|
|
76
|
+
color: #00d8ff;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.navLink:hover::after {
|
|
80
|
+
width: 100%;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.hamburger {
|
|
84
|
+
display: none;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
justify-content: space-between;
|
|
87
|
+
width: 28px;
|
|
88
|
+
height: 22px;
|
|
89
|
+
background: none;
|
|
90
|
+
border: none;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
padding: 0;
|
|
93
|
+
z-index: 1001;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.bar {
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 3px;
|
|
99
|
+
background: #00d8ff;
|
|
100
|
+
border-radius: 3px;
|
|
101
|
+
transition: all 0.3s ease;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.hamburger.active .bar:nth-child(1) {
|
|
105
|
+
transform: translateY(9.5px) rotate(45deg);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.hamburger.active .bar:nth-child(2) {
|
|
109
|
+
opacity: 0;
|
|
110
|
+
transform: translateX(-20px);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.hamburger.active .bar:nth-child(3) {
|
|
114
|
+
transform: translateY(-9.5px) rotate(-45deg);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.demoContent {
|
|
118
|
+
padding: 4rem 2rem;
|
|
119
|
+
max-width: 1200px;
|
|
120
|
+
margin: 0 auto;
|
|
121
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.demoSection {
|
|
125
|
+
margin-bottom: 3rem;
|
|
126
|
+
padding: 3rem 2rem;
|
|
127
|
+
background: #f8f9fa;
|
|
128
|
+
border-radius: 12px;
|
|
129
|
+
scroll-margin-top: 80px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.demoSection h2 {
|
|
133
|
+
color: #1a1a2e;
|
|
134
|
+
margin-bottom: 1rem;
|
|
135
|
+
font-size: 2rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.demoSection p {
|
|
139
|
+
color: #666;
|
|
140
|
+
line-height: 1.8;
|
|
141
|
+
font-size: 1.1rem;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@media (max-width: 768px) {
|
|
145
|
+
.hamburger {
|
|
146
|
+
display: flex;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.navMenu {
|
|
150
|
+
position: fixed;
|
|
151
|
+
top: 0;
|
|
152
|
+
right: 0;
|
|
153
|
+
height: 100vh;
|
|
154
|
+
width: 280px;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
justify-content: flex-start;
|
|
157
|
+
padding-top: 5rem;
|
|
158
|
+
gap: 0;
|
|
159
|
+
background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
|
|
160
|
+
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
|
|
161
|
+
transform: translateX(100%);
|
|
162
|
+
transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.navMenu.open {
|
|
166
|
+
transform: translateX(0);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.navMenu li {
|
|
170
|
+
width: 100%;
|
|
171
|
+
opacity: 0;
|
|
172
|
+
transform: translateX(50px);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.navMenu.open li {
|
|
176
|
+
animation: slideIn 0.4s forwards;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.navMenu.open li:nth-child(1) { animation-delay: 0.1s; }
|
|
180
|
+
.navMenu.open li:nth-child(2) { animation-delay: 0.2s; }
|
|
181
|
+
.navMenu.open li:nth-child(3) { animation-delay: 0.3s; }
|
|
182
|
+
.navMenu.open li:nth-child(4) { animation-delay: 0.4s; }
|
|
183
|
+
|
|
184
|
+
@keyframes slideIn {
|
|
185
|
+
to {
|
|
186
|
+
opacity: 1;
|
|
187
|
+
transform: translateX(0);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.navLink {
|
|
192
|
+
display: block;
|
|
193
|
+
padding: 1.2rem 2rem;
|
|
194
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
195
|
+
font-size: 1.1rem;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.navLink::after {
|
|
199
|
+
display: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.navLink:hover {
|
|
203
|
+
background: rgba(0, 216, 255, 0.1);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@media (max-width: 480px) {
|
|
208
|
+
.navContainer {
|
|
209
|
+
padding: 1rem 1.5rem;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.logo {
|
|
213
|
+
font-size: 1.5rem;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.navMenu {
|
|
217
|
+
width: 100%;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
`,document.head.querySelector("[data-navbar-styles]")||(c.setAttribute("data-navbar-styles",""),document.head.appendChild(c)),{navbar:"navbar",navContainer:"navContainer",logo:"logo",navMenu:"navMenu",navLink:"navLink",hamburger:"hamburger",bar:"bar",active:"active",open:"open",demoContent:"demoContent",demoSection:"demoSection"}})();function q({brand:c="TOSA",links:m=["Home","About","Services","Contact"]}){const[u,f]=p.useState(!1);return o.jsxs(o.Fragment,{children:[o.jsx("nav",{className:l.navbar,children:o.jsxs("div",{className:l.navContainer,children:[o.jsx("div",{className:l.logo,children:c}),o.jsxs("button",{className:`${l.hamburger} ${u?l.active:""}`,onClick:()=>f(!u),"aria-label":"Toggle menu","aria-expanded":u,children:[o.jsx("span",{className:l.bar}),o.jsx("span",{className:l.bar}),o.jsx("span",{className:l.bar})]}),o.jsx("ul",{className:`${l.navMenu} ${u?l.open:""}`,children:m.map((i,s)=>o.jsx("li",{children:o.jsx("a",{href:`#${i.toLowerCase()}`,className:l.navLink,onClick:()=>f(!1),children:i})},s))})]})}),o.jsx("div",{className:l.demoContent,children:m.map((i,s)=>o.jsxs("section",{id:i.toLowerCase(),className:l.demoSection,children:[o.jsx("h2",{children:i}),o.jsxs("p",{children:["This is the ",i," section. The navbar stays fixed at the top and smoothly transitions on mobile devices. Scroll down to see the sticky behavior in action. The navigation links will smoothly scroll to each section."]})]},s))})]})}function J(){return o.jsx("nav",{children:o.jsx("h1",{children:"Hello cards"})})}d.Card=J,d.Navbar=q,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sachin-tosa/tosa",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "TOSA is a reusable React UI component library with responsive components like Navbar, Cards, Carousel, etc.",
|
|
5
5
|
"author": "Sachin Ruhela",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
"react-dom": ">=18"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
+
"react": "^18.2.0",
|
|
32
|
+
"react-dom": "^18.2.0",
|
|
31
33
|
"@vitejs/plugin-react": "^5.1.2",
|
|
32
34
|
"vite": "^7.3.1"
|
|
33
35
|
}
|
package/dist/tosa.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._nav_10qgk_1{display:flex;justify-content:space-between;padding:1rem;background:#111;color:#fff}._menu_10qgk_17{display:flex;gap:1rem}._toggle_10qgk_27{display:none}@media(max-width:768px){._toggle_10qgk_27{display:block}._menu_10qgk_17{display:none;flex-direction:column}._open_10qgk_55{display:flex}}
|