@weing-dev/ui-kit-primitive 0.3.2 → 0.4.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/dist/Divider-m-B4TrPH.js +29 -0
- package/dist/Divider.css +1 -0
- package/dist/Icon-DExqF865.js +1166 -0
- package/dist/bind-D3ZJ5k4I.js +47 -0
- package/dist/calendar.css +1 -0
- package/dist/calendar.d.ts +10 -0
- package/dist/calendar.js +4075 -0
- package/dist/chart.d.ts +2 -0
- package/dist/chart.js +94 -0
- package/dist/color-B71xRiyK.js +384 -0
- package/dist/compiler-runtime-BFrE5JtX.js +326 -0
- package/dist/components/LNB/LNB.context.d.ts +14 -14
- package/dist/components/LNB/LNB.d.ts +8 -6
- package/dist/components/LNB/makeNavigation.d.ts +11 -6
- package/dist/display.css +1 -0
- package/dist/display.d.ts +15 -0
- package/dist/display.js +5280 -0
- package/dist/editor-style.css +7 -0
- package/dist/editor-style.d.ts +0 -0
- package/dist/editor-style.js +1 -0
- package/dist/editor.css +1 -0
- package/dist/editor.d.ts +5 -0
- package/dist/editor.js +338 -0
- package/dist/entry/calendar.d.ts +10 -0
- package/dist/entry/chart.d.ts +2 -0
- package/dist/entry/display.d.ts +15 -0
- package/dist/entry/editor-style.d.ts +0 -0
- package/dist/entry/editor.d.ts +5 -0
- package/dist/entry/feedback.d.ts +6 -0
- package/dist/entry/form.d.ts +17 -0
- package/dist/entry/icon.d.ts +5 -0
- package/dist/entry/navigation.d.ts +9 -0
- package/dist/entry/table.d.ts +3 -0
- package/dist/entry/types.d.ts +1 -1
- package/dist/entry/video-player-style.d.ts +0 -0
- package/dist/entry/video-player.d.ts +3 -0
- package/dist/feedback.css +1 -0
- package/dist/feedback.d.ts +6 -0
- package/dist/feedback.js +385 -0
- package/dist/form.css +1 -0
- package/dist/form.d.ts +17 -0
- package/dist/form.js +3548 -0
- package/dist/icon.d.ts +5 -0
- package/dist/icon.js +18 -0
- package/dist/index.css +1 -7
- package/dist/index.js +4083 -4069
- package/dist/index.umd.cjs +26 -26
- package/dist/navigation.css +1 -0
- package/dist/navigation.d.ts +9 -0
- package/dist/navigation.js +1036 -0
- package/dist/table.css +1 -0
- package/dist/table.d.ts +3 -0
- package/dist/table.js +184 -0
- package/dist/usePopper-DvYrGFkh.js +1038 -0
- package/dist/video-player-style.css +1 -0
- package/dist/video-player-style.d.ts +0 -0
- package/dist/video-player-style.js +1 -0
- package/dist/video-player.css +1 -0
- package/dist/video-player.d.ts +3 -0
- package/dist/video-player.js +1751 -0
- package/package.json +44 -2
- package/dist/components/GlobalStyle/GlobalStyle.d.ts +0 -2
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import P from "react";
|
|
2
|
+
var N = { exports: {} }, d = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var $;
|
|
13
|
+
function oe() {
|
|
14
|
+
if ($) return d;
|
|
15
|
+
$ = 1;
|
|
16
|
+
var a = Symbol.for("react.transitional.element"), u = Symbol.for("react.fragment");
|
|
17
|
+
function i(f, c, s) {
|
|
18
|
+
var _ = null;
|
|
19
|
+
if (s !== void 0 && (_ = "" + s), c.key !== void 0 && (_ = "" + c.key), "key" in c) {
|
|
20
|
+
s = {};
|
|
21
|
+
for (var m in c)
|
|
22
|
+
m !== "key" && (s[m] = c[m]);
|
|
23
|
+
} else s = c;
|
|
24
|
+
return c = s.ref, {
|
|
25
|
+
$$typeof: a,
|
|
26
|
+
type: f,
|
|
27
|
+
key: _,
|
|
28
|
+
ref: c !== void 0 ? c : null,
|
|
29
|
+
props: s
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return d.Fragment = u, d.jsx = i, d.jsxs = i, d;
|
|
33
|
+
}
|
|
34
|
+
var R = {};
|
|
35
|
+
/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-jsx-runtime.development.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
var F;
|
|
45
|
+
function ae() {
|
|
46
|
+
return F || (F = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function a(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === re ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
52
|
+
switch (e) {
|
|
53
|
+
case v:
|
|
54
|
+
return "Fragment";
|
|
55
|
+
case z:
|
|
56
|
+
return "Profiler";
|
|
57
|
+
case H:
|
|
58
|
+
return "StrictMode";
|
|
59
|
+
case Z:
|
|
60
|
+
return "Suspense";
|
|
61
|
+
case Q:
|
|
62
|
+
return "SuspenseList";
|
|
63
|
+
case ee:
|
|
64
|
+
return "Activity";
|
|
65
|
+
}
|
|
66
|
+
if (typeof e == "object")
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case G:
|
|
71
|
+
return "Portal";
|
|
72
|
+
case X:
|
|
73
|
+
return e.displayName || "Context";
|
|
74
|
+
case J:
|
|
75
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
76
|
+
case B:
|
|
77
|
+
var r = e.render;
|
|
78
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
79
|
+
case K:
|
|
80
|
+
return r = e.displayName || null, r !== null ? r : a(e.type) || "Memo";
|
|
81
|
+
case b:
|
|
82
|
+
r = e._payload, e = e._init;
|
|
83
|
+
try {
|
|
84
|
+
return a(e(r));
|
|
85
|
+
} catch {
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
function u(e) {
|
|
91
|
+
return "" + e;
|
|
92
|
+
}
|
|
93
|
+
function i(e) {
|
|
94
|
+
try {
|
|
95
|
+
u(e);
|
|
96
|
+
var r = !1;
|
|
97
|
+
} catch {
|
|
98
|
+
r = !0;
|
|
99
|
+
}
|
|
100
|
+
if (r) {
|
|
101
|
+
r = console;
|
|
102
|
+
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
103
|
+
return t.call(
|
|
104
|
+
r,
|
|
105
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
+
n
|
|
107
|
+
), u(e);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function f(e) {
|
|
111
|
+
if (e === v) return "<>";
|
|
112
|
+
if (typeof e == "object" && e !== null && e.$$typeof === b)
|
|
113
|
+
return "<...>";
|
|
114
|
+
try {
|
|
115
|
+
var r = a(e);
|
|
116
|
+
return r ? "<" + r + ">" : "<...>";
|
|
117
|
+
} catch {
|
|
118
|
+
return "<...>";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function c() {
|
|
122
|
+
var e = T.A;
|
|
123
|
+
return e === null ? null : e.getOwner();
|
|
124
|
+
}
|
|
125
|
+
function s() {
|
|
126
|
+
return Error("react-stack-top-frame");
|
|
127
|
+
}
|
|
128
|
+
function _(e) {
|
|
129
|
+
if (C.call(e, "key")) {
|
|
130
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
131
|
+
if (r && r.isReactWarning) return !1;
|
|
132
|
+
}
|
|
133
|
+
return e.key !== void 0;
|
|
134
|
+
}
|
|
135
|
+
function m(e, r) {
|
|
136
|
+
function t() {
|
|
137
|
+
Y || (Y = !0, console.error(
|
|
138
|
+
"%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)",
|
|
139
|
+
r
|
|
140
|
+
));
|
|
141
|
+
}
|
|
142
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
143
|
+
get: t,
|
|
144
|
+
configurable: !0
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function V() {
|
|
148
|
+
var e = a(this.type);
|
|
149
|
+
return I[e] || (I[e] = !0, console.error(
|
|
150
|
+
"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."
|
|
151
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
152
|
+
}
|
|
153
|
+
function q(e, r, t, n, E, O) {
|
|
154
|
+
var o = t.ref;
|
|
155
|
+
return e = {
|
|
156
|
+
$$typeof: j,
|
|
157
|
+
type: e,
|
|
158
|
+
key: r,
|
|
159
|
+
props: t,
|
|
160
|
+
_owner: n
|
|
161
|
+
}, (o !== void 0 ? o : null) !== null ? Object.defineProperty(e, "ref", {
|
|
162
|
+
enumerable: !1,
|
|
163
|
+
get: V
|
|
164
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
165
|
+
configurable: !1,
|
|
166
|
+
enumerable: !1,
|
|
167
|
+
writable: !0,
|
|
168
|
+
value: 0
|
|
169
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
170
|
+
configurable: !1,
|
|
171
|
+
enumerable: !1,
|
|
172
|
+
writable: !0,
|
|
173
|
+
value: null
|
|
174
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
175
|
+
configurable: !1,
|
|
176
|
+
enumerable: !1,
|
|
177
|
+
writable: !0,
|
|
178
|
+
value: E
|
|
179
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
180
|
+
configurable: !1,
|
|
181
|
+
enumerable: !1,
|
|
182
|
+
writable: !0,
|
|
183
|
+
value: O
|
|
184
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
185
|
+
}
|
|
186
|
+
function y(e, r, t, n, E, O) {
|
|
187
|
+
var o = r.children;
|
|
188
|
+
if (o !== void 0)
|
|
189
|
+
if (n)
|
|
190
|
+
if (te(o)) {
|
|
191
|
+
for (n = 0; n < o.length; n++)
|
|
192
|
+
w(o[n]);
|
|
193
|
+
Object.freeze && Object.freeze(o);
|
|
194
|
+
} else
|
|
195
|
+
console.error(
|
|
196
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
|
+
);
|
|
198
|
+
else w(o);
|
|
199
|
+
if (C.call(r, "key")) {
|
|
200
|
+
o = a(e);
|
|
201
|
+
var l = Object.keys(r).filter(function(ne) {
|
|
202
|
+
return ne !== "key";
|
|
203
|
+
});
|
|
204
|
+
n = 0 < l.length ? "{key: someKey, " + l.join(": ..., ") + ": ...}" : "{key: someKey}", L[o + n] || (l = 0 < l.length ? "{" + l.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
206
|
+
let props = %s;
|
|
207
|
+
<%s {...props} />
|
|
208
|
+
React keys must be passed directly to JSX without using spread:
|
|
209
|
+
let props = %s;
|
|
210
|
+
<%s key={someKey} {...props} />`,
|
|
211
|
+
n,
|
|
212
|
+
o,
|
|
213
|
+
l,
|
|
214
|
+
o
|
|
215
|
+
), L[o + n] = !0);
|
|
216
|
+
}
|
|
217
|
+
if (o = null, t !== void 0 && (i(t), o = "" + t), _(r) && (i(r.key), o = "" + r.key), "key" in r) {
|
|
218
|
+
t = {};
|
|
219
|
+
for (var k in r)
|
|
220
|
+
k !== "key" && (t[k] = r[k]);
|
|
221
|
+
} else t = r;
|
|
222
|
+
return o && m(
|
|
223
|
+
t,
|
|
224
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
225
|
+
), q(
|
|
226
|
+
e,
|
|
227
|
+
o,
|
|
228
|
+
t,
|
|
229
|
+
c(),
|
|
230
|
+
E,
|
|
231
|
+
O
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
function w(e) {
|
|
235
|
+
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === b && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
236
|
+
}
|
|
237
|
+
function x(e) {
|
|
238
|
+
return typeof e == "object" && e !== null && e.$$typeof === j;
|
|
239
|
+
}
|
|
240
|
+
var p = P, j = Symbol.for("react.transitional.element"), G = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), X = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), Z = Symbol.for("react.suspense"), Q = Symbol.for("react.suspense_list"), K = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), ee = Symbol.for("react.activity"), re = Symbol.for("react.client.reference"), T = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, te = Array.isArray, h = console.createTask ? console.createTask : function() {
|
|
241
|
+
return null;
|
|
242
|
+
};
|
|
243
|
+
p = {
|
|
244
|
+
react_stack_bottom_frame: function(e) {
|
|
245
|
+
return e();
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
var Y, I = {}, D = p.react_stack_bottom_frame.bind(
|
|
249
|
+
p,
|
|
250
|
+
s
|
|
251
|
+
)(), U = h(f(s)), L = {};
|
|
252
|
+
R.Fragment = v, R.jsx = function(e, r, t) {
|
|
253
|
+
var n = 1e4 > T.recentlyCreatedOwnerStacks++;
|
|
254
|
+
return y(
|
|
255
|
+
e,
|
|
256
|
+
r,
|
|
257
|
+
t,
|
|
258
|
+
!1,
|
|
259
|
+
n ? Error("react-stack-top-frame") : D,
|
|
260
|
+
n ? h(f(e)) : U
|
|
261
|
+
);
|
|
262
|
+
}, R.jsxs = function(e, r, t) {
|
|
263
|
+
var n = 1e4 > T.recentlyCreatedOwnerStacks++;
|
|
264
|
+
return y(
|
|
265
|
+
e,
|
|
266
|
+
r,
|
|
267
|
+
t,
|
|
268
|
+
!0,
|
|
269
|
+
n ? Error("react-stack-top-frame") : D,
|
|
270
|
+
n ? h(f(e)) : U
|
|
271
|
+
);
|
|
272
|
+
};
|
|
273
|
+
}()), R;
|
|
274
|
+
}
|
|
275
|
+
process.env.NODE_ENV === "production" ? N.exports = oe() : N.exports = ae();
|
|
276
|
+
var ie = N.exports, g = { exports: {} }, S = {};
|
|
277
|
+
/**
|
|
278
|
+
* @license React
|
|
279
|
+
* react-compiler-runtime.production.js
|
|
280
|
+
*
|
|
281
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
282
|
+
*
|
|
283
|
+
* This source code is licensed under the MIT license found in the
|
|
284
|
+
* LICENSE file in the root directory of this source tree.
|
|
285
|
+
*/
|
|
286
|
+
var M;
|
|
287
|
+
function ce() {
|
|
288
|
+
if (M) return S;
|
|
289
|
+
M = 1;
|
|
290
|
+
var a = P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
291
|
+
return S.c = function(u) {
|
|
292
|
+
return a.H.useMemoCache(u);
|
|
293
|
+
}, S;
|
|
294
|
+
}
|
|
295
|
+
var A = {};
|
|
296
|
+
/**
|
|
297
|
+
* @license React
|
|
298
|
+
* react-compiler-runtime.development.js
|
|
299
|
+
*
|
|
300
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
301
|
+
*
|
|
302
|
+
* This source code is licensed under the MIT license found in the
|
|
303
|
+
* LICENSE file in the root directory of this source tree.
|
|
304
|
+
*/
|
|
305
|
+
var W;
|
|
306
|
+
function se() {
|
|
307
|
+
return W || (W = 1, process.env.NODE_ENV !== "production" && function() {
|
|
308
|
+
var a = P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
309
|
+
A.c = function(u) {
|
|
310
|
+
var i = a.H;
|
|
311
|
+
return i === null && console.error(
|
|
312
|
+
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
313
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
314
|
+
2. You might be breaking the Rules of Hooks
|
|
315
|
+
3. You might have more than one copy of React in the same app
|
|
316
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
317
|
+
), i.useMemoCache(u);
|
|
318
|
+
};
|
|
319
|
+
}()), A;
|
|
320
|
+
}
|
|
321
|
+
process.env.NODE_ENV === "production" ? g.exports = ce() : g.exports = se();
|
|
322
|
+
var le = g.exports;
|
|
323
|
+
export {
|
|
324
|
+
le as c,
|
|
325
|
+
ie as j
|
|
326
|
+
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { Icon } from '../Icon/Icon';
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
export type LNBListItem = {
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: React.ComponentProps<typeof Icon>["name"] | null;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
type: "full" | "secondary" | "list" | "title";
|
|
8
|
+
href: string;
|
|
9
|
+
isPreparing: boolean;
|
|
10
|
+
children?: LNBListItem[];
|
|
11
|
+
isOpen?: boolean;
|
|
12
|
+
isActive?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type LNBContextType = {
|
|
15
15
|
onClick?: (href: string) => void;
|
|
16
16
|
};
|
|
17
17
|
export declare const initialState: LNBContextType;
|
|
18
18
|
export declare const LNBContext: React.Context<LNBContextType>;
|
|
19
|
-
export type LNBProviderProps = React.PropsWithChildren<
|
|
19
|
+
export type LNBProviderProps = React.PropsWithChildren<{
|
|
20
|
+
onClick?: (href: string) => void;
|
|
20
21
|
className?: string;
|
|
21
22
|
}>;
|
|
22
|
-
export {};
|
|
@@ -9,7 +9,7 @@ declare const Logo: (props: LNBLogoProps) => import("react/jsx-runtime").JSX.Ele
|
|
|
9
9
|
type LNBItemProps = React.PropsWithChildren<{
|
|
10
10
|
className?: string;
|
|
11
11
|
label: string;
|
|
12
|
-
icon?: React.ComponentProps<typeof Icon>["name"];
|
|
12
|
+
icon?: React.ComponentProps<typeof Icon>["name"] | null;
|
|
13
13
|
subtitle?: string;
|
|
14
14
|
type: "full" | "secondary" | "list" | "title";
|
|
15
15
|
href: string;
|
|
@@ -19,9 +19,10 @@ type LNBItemProps = React.PropsWithChildren<{
|
|
|
19
19
|
isActive?: boolean;
|
|
20
20
|
}>;
|
|
21
21
|
declare const Item: (props: LNBItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
type LNBListProps =
|
|
22
|
+
type LNBListProps = {
|
|
23
23
|
className?: string;
|
|
24
|
-
|
|
24
|
+
children: React.ReactNode;
|
|
25
|
+
};
|
|
25
26
|
declare const List: (props: LNBListProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
27
|
declare const Root: (props: LNBProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
28
|
export type Navigation<T = never> = {
|
|
@@ -33,11 +34,11 @@ export type Navigation<T = never> = {
|
|
|
33
34
|
isPreparing: boolean;
|
|
34
35
|
type: "full" | "secondary" | "list" | "title";
|
|
35
36
|
status?: string;
|
|
36
|
-
icon?: React.ComponentProps<typeof Icon>["name"];
|
|
37
|
+
icon?: React.ComponentProps<typeof Icon>["name"] | null;
|
|
37
38
|
isOpen?: boolean;
|
|
38
39
|
isActive?: boolean;
|
|
39
|
-
|
|
40
|
-
};
|
|
40
|
+
depth?: number;
|
|
41
|
+
} & ([T] extends [never] ? object : T);
|
|
41
42
|
interface ILNB {
|
|
42
43
|
Logo: typeof Logo;
|
|
43
44
|
List: typeof List;
|
|
@@ -45,4 +46,5 @@ interface ILNB {
|
|
|
45
46
|
Root: typeof Root;
|
|
46
47
|
}
|
|
47
48
|
declare const LNB: ILNB;
|
|
49
|
+
export type { LNBContextType, LNBListItem } from './LNB.context';
|
|
48
50
|
export default LNB;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Navigation } from './LNB';
|
|
1
2
|
/** 네비게이션 생성 */
|
|
2
3
|
export declare function makeNavigation<T = never>({ list, depth, isCommerce, maxDepth, pathName, }: {
|
|
3
4
|
list: Navigation<T>[];
|
|
@@ -5,17 +6,21 @@ export declare function makeNavigation<T = never>({ list, depth, isCommerce, max
|
|
|
5
6
|
isCommerce?: boolean;
|
|
6
7
|
maxDepth?: number;
|
|
7
8
|
pathName: string;
|
|
8
|
-
}): {
|
|
9
|
-
href: string;
|
|
10
|
-
children: any;
|
|
11
|
-
depth: number;
|
|
9
|
+
}): ({
|
|
12
10
|
label: string;
|
|
13
11
|
subtitle?: string;
|
|
14
12
|
key: string;
|
|
13
|
+
href: string;
|
|
14
|
+
children?: Navigation<T>[] | undefined;
|
|
15
15
|
isPreparing: boolean;
|
|
16
16
|
type: "full" | "secondary" | "list" | "title";
|
|
17
17
|
status?: string;
|
|
18
|
-
icon?: React.ComponentProps<typeof Icon>["name"];
|
|
18
|
+
icon?: React.ComponentProps<typeof import('../../index.ts').Icon>["name"] | null;
|
|
19
19
|
isOpen?: boolean;
|
|
20
20
|
isActive?: boolean;
|
|
21
|
-
|
|
21
|
+
depth?: number;
|
|
22
|
+
} & ([T] extends [never] ? object : T) & {
|
|
23
|
+
href: string;
|
|
24
|
+
children: Navigation<T>[];
|
|
25
|
+
depth: number;
|
|
26
|
+
})[];
|
package/dist/display.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer{._Group_e8604_2{display:flex}._GroupItem_e8604_5{margin-inline:-4px}._Item_e8604_8{--bg-color: white;--size: 40px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;overflow:hidden;-webkit-user-select:none;user-select:none;border:2px solid var(--backgroundDefault, #fff);background-color:var(--bgColor);width:var(--size);height:var(--size)}._Item_e8604_8._rounded_e8604_22{border-radius:10px}._Item_e8604_8._circle_e8604_25{border-radius:50%}._Text_e8604_28{width:inherit;height:inherit;font-size:100%;display:flex;align-items:center;justify-content:center;white-space:nowrap}._AvatarImage_e8604_37{width:inherit;height:inherit;object-fit:cover}}@layer Badge{._Wrap_r1qra_2{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px;position:relative;min-width:36px;min-height:fit-content}._Wrap_r1qra_2._square_r1qra_13{background-color:#688dee}._Wrap_r1qra_2._circle_r1qra_16{background-color:#688dee;border-radius:50%}._Badge_r1qra_20{position:absolute;top:0;right:0;box-sizing:border-box;padding:4px 6px;border-radius:50px;font-size:14px;color:#fff;transform:translate(50%,-25%);height:fit-content}._Badge_r1qra_20._dot_r1qra_32{width:12px;height:12px;border-radius:50%;padding:unset}._Badge_r1qra_20._hidden_r1qra_38{display:none}._Standalone_r1qra_41{position:relative;transform:unset}}@layer Chips{._ChipsWrapper_5cgrc_2{padding:0 12px;display:flex;flex-direction:row;align-items:center;gap:4px;background-color:var(--default-background-color, #edeff2);color:var(--default-tint-color, #000000);border:1px solid var(--default-border-color, #d9d9d9);max-width:100%}._ChipsWrapper_5cgrc_2._large_5cgrc_13{height:48px;font-weight:500;font-size:16px;line-height:26px}[data-typography=senior] ._ChipsWrapper_5cgrc_2._large_5cgrc_13{font-size:18px}[data-typography=mobile] ._ChipsWrapper_5cgrc_2._large_5cgrc_13{font-size:12px}[data-typography=senior] ._ChipsWrapper_5cgrc_2._large_5cgrc_13{line-height:30px}[data-typography=mobile] ._ChipsWrapper_5cgrc_2._large_5cgrc_13{line-height:26px}._ChipsWrapper_5cgrc_2._medium_5cgrc_31{height:40px;font-weight:500;font-size:14px;line-height:24px}[data-typography=senior] ._ChipsWrapper_5cgrc_2._medium_5cgrc_31{font-size:16px}[data-typography=mobile] ._ChipsWrapper_5cgrc_2._medium_5cgrc_31{font-size:10px}[data-typography=senior] ._ChipsWrapper_5cgrc_2._medium_5cgrc_31{line-height:26px}[data-typography=mobile] ._ChipsWrapper_5cgrc_2._medium_5cgrc_31{line-height:24px}._ChipsWrapper_5cgrc_2._small_5cgrc_49{height:32px;font-weight:500;font-size:14px;line-height:24px}[data-typography=senior] ._ChipsWrapper_5cgrc_2._small_5cgrc_49{font-size:16px}[data-typography=mobile] ._ChipsWrapper_5cgrc_2._small_5cgrc_49{font-size:10px}[data-typography=senior] ._ChipsWrapper_5cgrc_2._small_5cgrc_49{line-height:26px}[data-typography=mobile] ._ChipsWrapper_5cgrc_2._small_5cgrc_49{line-height:24px}._ChipsWrapper_5cgrc_2._outlined_5cgrc_67{border-radius:16px}._ChipsWrapper_5cgrc_2._round_5cgrc_70{border-radius:22px}._ChipsWrapper_5cgrc_2._round_5cgrc_70._small_5cgrc_49{border-radius:16px}._ChipsWrapper_5cgrc_2._square_5cgrc_76{border-radius:8px}._ChipsWrapper_5cgrc_2._square_5cgrc_76._small_5cgrc_49{border-radius:4px}._ChipsText_5cgrc_82{line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;width:100%}}._CommentWrapper_9wn1d_1{padding:8px;background:var(--Gray-Gray99, #f6f8fb);border-radius:4px;display:flex;flex-direction:row;align-items:flex-start;gap:8px}._CommentWrapper_9wn1d_1 ._Caption_9wn1d_10{vertical-align:top;font-weight:400;font-size:10px;line-height:14px}[data-typography=senior] ._CommentWrapper_9wn1d_1 ._Caption_9wn1d_10{font-size:12px}[data-typography=mobile] ._CommentWrapper_9wn1d_1 ._Caption_9wn1d_10{font-size:6px}[data-typography=senior] ._CommentWrapper_9wn1d_1 ._Caption_9wn1d_10{line-height:12px}[data-typography=mobile] ._CommentWrapper_9wn1d_1 ._Caption_9wn1d_10{line-height:14px}@layer Label{._Label_1xhzp_2{display:inline-flex;align-items:center;justify-content:center;width:max-content;padding-inline:6px;border-radius:6px;gap:4px;background-color:var(--background-color, rgba(255, 171, 0, .1215686275));color:var(--color, #b76e00);border:1px solid var(--border-color, transparent)}._Label_1xhzp_2._cursor_1xhzp_14{cursor:pointer}._Label_1xhzp_2._medium_1xhzp_17{height:32px;font-weight:700;font-size:14px;line-height:24px}[data-typography=senior] ._Label_1xhzp_2._medium_1xhzp_17{font-size:18px}[data-typography=mobile] ._Label_1xhzp_2._medium_1xhzp_17{font-size:10px}[data-typography=senior] ._Label_1xhzp_2._medium_1xhzp_17{line-height:30px}[data-typography=mobile] ._Label_1xhzp_2._medium_1xhzp_17{line-height:24px}._Label_1xhzp_2._small_1xhzp_35{height:24px;font-weight:700;font-size:12px;line-height:18px}[data-typography=senior] ._Label_1xhzp_2._small_1xhzp_35{font-size:14px}[data-typography=mobile] ._Label_1xhzp_2._small_1xhzp_35{font-size:8px}[data-typography=senior] ._Label_1xhzp_2._small_1xhzp_35{line-height:24px}[data-typography=mobile] ._Label_1xhzp_2._small_1xhzp_35{line-height:18px}._Label_1xhzp_2._xSmall_1xhzp_53{height:16px;font-weight:700;font-size:10px;line-height:14px}[data-typography=senior] ._Label_1xhzp_2._xSmall_1xhzp_53{font-size:12px}[data-typography=mobile] ._Label_1xhzp_2._xSmall_1xhzp_53{font-size:6px}[data-typography=senior] ._Label_1xhzp_2._xSmall_1xhzp_53{line-height:12px}[data-typography=mobile] ._Label_1xhzp_2._xSmall_1xhzp_53{line-height:14px}}._LazyImage_b5s08_1{background-repeat:no-repeat;background-size:50% 50%;background-color:#222;background-position:center center}@layer Thumbnail{._Wrapper_1ayjm_2{display:flex;align-items:center;justify-content:flex-start;height:auto;position:relative;gap:8px;-webkit-user-select:none;user-select:none}._ImageWrapper_1ayjm_11{position:relative}._Image_1ayjm_11{aspect-ratio:var(--aspectRatio);background-color:#fff;position:relative;display:block}._Image_1ayjm_11._isLoading_1ayjm_20{animation:_skeleton-loading_1ayjm_1 1s infinite alternate}._Image_1ayjm_11._square_1ayjm_23{border-radius:8px}._Image_1ayjm_11._circle_1ayjm_26{border-radius:50%}._Image_1ayjm_11._cover_1ayjm_29{object-fit:cover}._Image_1ayjm_11._contain_1ayjm_32{object-fit:contain}._UploadInput_1ayjm_35{display:none}._EmptyImage_1ayjm_38{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex-shrink:0;aspect-ratio:var(--aspectRatio);background-color:var(--greyGrey3, #f4f6f8);cursor:pointer}._EmptyImage_1ayjm_38._square_1ayjm_23{border-radius:8px}._EmptyImage_1ayjm_38._circle_1ayjm_26{border-radius:50%}._EmptyImage_1ayjm_38 ._Text_1ayjm_55{color:var(--textTertiary, #919eab);font-weight:400;font-size:10px;line-height:14px}[data-typography=senior] ._EmptyImage_1ayjm_38 ._Text_1ayjm_55{font-size:12px}[data-typography=mobile] ._EmptyImage_1ayjm_38 ._Text_1ayjm_55{font-size:6px}[data-typography=senior] ._EmptyImage_1ayjm_38 ._Text_1ayjm_55{line-height:12px}[data-typography=mobile] ._EmptyImage_1ayjm_38 ._Text_1ayjm_55{line-height:14px}._ErrorImage_1ayjm_73{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex-shrink:0;aspect-ratio:var(--aspectRatio);background-color:var(--greyGrey3, #f4f6f8);position:relative}._ErrorImage_1ayjm_73._square_1ayjm_23{border-radius:8px}._ErrorImage_1ayjm_73._circle_1ayjm_26{border-radius:50%}._EditButton_1ayjm_90{width:var(--exactSize);height:var(--exactSize);position:absolute;bottom:0;right:0;border-radius:50%;background-color:var(--greyGrey7, #637381);display:flex;align-items:center;justify-content:center;border:var(--borderWidth) solid #fff;cursor:pointer}._EditButton_1ayjm_90._square_1ayjm_23{transform:translate(var(--translate),var(--translate))}._EditButton_1ayjm_90._circle_1ayjm_26{transform:translate(4px)}._FileInput_1ayjm_110{display:none}._RemoveButton_1ayjm_113{width:var(--exactSize);height:var(--exactSize);position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;cursor:pointer}._RemoveButton_1ayjm_113._square_1ayjm_23{border-radius:0 8px 0 0;background:var(--black32, rgba(0, 0, 0, .3215686275));box-shadow:var(--z8x, 0) var(--z8y, 8px) var(--z8blur, 16px) var(--z8spread, 0px) var(--shadow12, #919eab)}._RemoveButton_1ayjm_113._circle_1ayjm_26{border-radius:50%;background-color:var(--greyGrey7, #637381);border:var(--borderWidth) solid #fff;transform:translate(4px)}}@keyframes _skeleton-loading_1ayjm_1{0%{background-color:#dcdcdc99}to{background-color:#f4f6f899}}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as Avatar } from '../components/Avatar/Avatar';
|
|
2
|
+
export { default as Badge } from '../components/Badge/Badge';
|
|
3
|
+
export { default as BarCode } from '../components/BarCode/BarCode';
|
|
4
|
+
export { default as Chips } from '../components/Chips/Chips';
|
|
5
|
+
export { default as Comment } from '../components/Comment/Comment';
|
|
6
|
+
export { default as Divider } from '../components/Divider/Divider';
|
|
7
|
+
export { default as Label } from '../components/Label/Label';
|
|
8
|
+
export { default as LazyImage } from '../components/LazyImage/LazyImage';
|
|
9
|
+
export { default as QRCode } from '../components/QRCode/QRCode';
|
|
10
|
+
export { default as Thumbnail } from '../components/Thumbnail/Thumbnail';
|
|
11
|
+
export type { BadgeRootProps, BadgeRenderProps, } from '../components/Badge/Badge';
|
|
12
|
+
export type { BarcodeActions } from '../components/BarCode/BarCode';
|
|
13
|
+
export type { QRCodeRef } from '../components/QRCode/QRCode';
|
|
14
|
+
export type { ThumbnailRootProps } from '../components/Thumbnail/Thumbnail';
|
|
15
|
+
export {};
|