@mintplayer/react-bootstrap 19.29.0 → 19.31.0
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 +12 -11
- package/accordion/index.mjs +48 -46
- package/card/index.mjs +90 -76
- package/card/src/BsCard.d.ts +1 -1
- package/card/src/BsCardBody.d.ts +1 -1
- package/card/src/BsCardFooter.d.ts +1 -1
- package/card/src/BsCardLink.d.ts +1 -1
- package/card/src/BsCardSubtitle.d.ts +2 -2
- package/card/src/BsCardText.d.ts +1 -1
- package/card/src/BsCardTitle.d.ts +1 -1
- package/carousel/index.mjs +26 -25
- package/checkbox/index.mjs +1 -1
- package/chunks/BsCheckbox-BZkPJ13E.mjs +66 -0
- package/chunks/{BsDatatable.generated-am6uNreO.mjs → BsDatatable.generated-DqNW60JA.mjs} +54 -52
- package/chunks/{BsDatetimePicker.generated-B4WBEiCo.mjs → BsDatetimePicker.generated-CxaiRt79.mjs} +32 -31
- package/chunks/BsRadio-Bw_MhAOq.mjs +57 -0
- package/datatable/index.mjs +1 -1
- package/datatable/src/generated/BsDatatable.generated.d.ts +4 -2
- package/datepicker/index.mjs +28 -27
- package/datetime-picker/index.mjs +1 -1
- package/dropdown-menu/index.mjs +43 -38
- package/file-manager/index.mjs +21 -20
- package/input-group/index.mjs +17 -15
- package/machine/index.mjs +48 -39
- package/machine/src/index.d.ts +1 -0
- package/machine/src/mark-links.d.ts +8 -0
- package/nav/index.mjs +85 -0
- package/nav/src/generated/BsNav.generated.d.ts +15 -0
- package/nav/src/generated/BsNavItem.generated.d.ts +6 -0
- package/nav/src/generated/index.d.ts +2 -0
- package/nav/src/generated/nav-item.view.generated.d.ts +14 -0
- package/nav/src/generated/nav.view.generated.d.ts +14 -0
- package/nav/src/index.d.ts +1 -0
- package/nav/src/nav-item.react.d.ts +4 -0
- package/navbar/index.mjs +87 -77
- package/navbar/src/navbar-item.react.d.ts +4 -0
- package/otp-input/index.mjs +24 -23
- package/package.json +10 -2
- package/pagination/index.mjs +37 -27
- package/phone-input/index.mjs +26 -25
- package/query-builder/index.mjs +30 -28
- package/radio/index.mjs +1 -1
- package/radio-group/index.mjs +1 -1
- package/scheduler/index.mjs +42 -41
- package/select/index.mjs +27 -26
- package/signature-pad/index.mjs +23 -22
- package/spinner/index.mjs +50 -0
- package/spinner/src/generated/BsSpinner.generated.d.ts +11 -0
- package/spinner/src/generated/index.d.ts +1 -0
- package/spinner/src/generated/spinner.view.generated.d.ts +15 -0
- package/spinner/src/index.d.ts +1 -0
- package/tab-control/index.mjs +56 -54
- package/timepicker/index.mjs +42 -41
- package/toggle-button/index.mjs +1 -1
- package/typeahead/index.mjs +90 -87
- package/chunks/BsCheckbox-BWU2Hrhf.mjs +0 -57
- package/chunks/BsRadio-D1C6Aqjv.mjs +0 -48
package/file-manager/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e, r as t, t as n } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
2
|
import { useCore as r } from "../machine/index.mjs";
|
|
3
|
-
import { t as i } from "../chunks/BsDatatable.generated-
|
|
3
|
+
import { t as i } from "../chunks/BsDatatable.generated-DqNW60JA.mjs";
|
|
4
4
|
import { n as a, t as o } from "../chunks/BsSplitterPanel.generated-C7r4Nedd.mjs";
|
|
5
5
|
import { t as s } from "../chunks/BsTreeview.generated-djXBc8bl.mjs";
|
|
6
6
|
import * as c from "react";
|
|
@@ -8,8 +8,9 @@ import { forwardRef as l, useImperativeHandle as u, useRef as d } from "react";
|
|
|
8
8
|
import { installLightStyles as f } from "@mintplayer/ui-core/scoped-styles";
|
|
9
9
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
10
10
|
import { DEFAULT_FILE_MANAGER_MESSAGES as g, fileManagerCore as _, fileManagerScopedStyles as v, mergeMessages as y } from "@mintplayer/ui-core/file-manager";
|
|
11
|
+
import { bootstrapBreadcrumb as b } from "@mintplayer/ui-core/bootstrap/breadcrumb";
|
|
11
12
|
//#region libs/mintplayer-react-bootstrap/file-manager/src/generated/file-manager.view.generated.tsx
|
|
12
|
-
function
|
|
13
|
+
function x({ view: r, slots: l = {}, children: u, className: d, attrs: f, rootRef: g }) {
|
|
13
14
|
return /* @__PURE__ */ m(p, { children: /* @__PURE__ */ h("div", {
|
|
14
15
|
"data-mps": "file-manager",
|
|
15
16
|
...t(r.root),
|
|
@@ -199,11 +200,11 @@ function b({ view: r, slots: l = {}, children: u, className: d, attrs: f, rootRe
|
|
|
199
200
|
}
|
|
200
201
|
//#endregion
|
|
201
202
|
//#region libs/mintplayer-react-bootstrap/file-manager/src/generated/BsFileManager.generated.tsx
|
|
202
|
-
var
|
|
203
|
-
f("file-manager", v);
|
|
204
|
-
let
|
|
205
|
-
u(
|
|
206
|
-
let
|
|
203
|
+
var S = [], C = [], w = [], T = {}, E = l(function({ nodes: e = S, rootFolderId: t = null, currentFolderId: n = null, allowUpload: i = !1, allowOperations: a = !0, viewMode: o = "list", selectionMode: s = "multiple", selectedIds: c = C, searchPlaceholder: l = null, iconResolver: p = null, messages: h = null, dialogResolver: g = null, conflictResolver: y = null, loadChildren: E = null, uploads: D = w, pending: O = T, onNavigate: k, onNodeOpen: A, onSelectionChanged: j, onUploadRequest: M, onOperation: N, onErrorReported: P, onChildrenLoaded: F, onCurrentFolderIdChange: I, onSelectedIdsChange: L, onViewModeChange: R, onUploadsChange: z, onPendingChange: B, className: V, children: H, ...U }, W) {
|
|
204
|
+
f(b.key, b.css, { order: b.order }), f("file-manager", v);
|
|
205
|
+
let G = d(null);
|
|
206
|
+
u(W, () => G.current);
|
|
207
|
+
let K = r(_, {
|
|
207
208
|
nodes: e,
|
|
208
209
|
rootFolderId: t,
|
|
209
210
|
currentFolderId: n,
|
|
@@ -217,24 +218,24 @@ var x = [], S = [], C = [], w = {}, T = l(function({ nodes: e = x, rootFolderId:
|
|
|
217
218
|
messages: h,
|
|
218
219
|
dialogResolver: g,
|
|
219
220
|
conflictResolver: y,
|
|
220
|
-
loadChildren:
|
|
221
|
-
uploads:
|
|
222
|
-
pending:
|
|
221
|
+
loadChildren: E,
|
|
222
|
+
uploads: D,
|
|
223
|
+
pending: O
|
|
223
224
|
}, {
|
|
224
225
|
idPrefix: "bs-file-manager",
|
|
225
|
-
label:
|
|
226
|
-
rootRef:
|
|
226
|
+
label: U["aria-label"],
|
|
227
|
+
rootRef: G,
|
|
227
228
|
emit: (e, t) => {
|
|
228
|
-
e === "navigate" &&
|
|
229
|
+
e === "navigate" && k?.(t), e === "nodeOpen" && A?.(t), e === "selectionChanged" && j?.(t), e === "uploadRequest" && M?.(t), e === "operation" && N?.(t), e === "errorReported" && P?.(t), e === "childrenLoaded" && F?.(t), e === "currentFolderIdChange" && I?.(t), e === "selectedIdsChange" && L?.(t), e === "viewModeChange" && R?.(t), e === "uploadsChange" && z?.(t), e === "pendingChange" && B?.(t);
|
|
229
230
|
}
|
|
230
231
|
});
|
|
231
|
-
return /* @__PURE__ */ m(
|
|
232
|
-
...
|
|
233
|
-
className:
|
|
234
|
-
attrs:
|
|
235
|
-
rootRef:
|
|
236
|
-
children:
|
|
232
|
+
return /* @__PURE__ */ m(x, {
|
|
233
|
+
...K.props,
|
|
234
|
+
className: V,
|
|
235
|
+
attrs: U,
|
|
236
|
+
rootRef: G,
|
|
237
|
+
children: H
|
|
237
238
|
});
|
|
238
239
|
});
|
|
239
240
|
//#endregion
|
|
240
|
-
export {
|
|
241
|
+
export { E as BsFileManager, g as DEFAULT_FILE_MANAGER_MESSAGES, y as mergeMessages };
|
package/input-group/index.mjs
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { installBootstrap as e } from "@mintplayer/ui-core/bootstrap";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { installLightStyles as n } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import { bootstrapForms as i } from "@mintplayer/ui-core/bootstrap/forms";
|
|
6
|
+
import { INPUT_GROUP_SCOPE as a, inputGroupClasses as o, inputGroupRole as s, inputGroupScopedStyles as c } from "@mintplayer/ui-core/input-group";
|
|
5
7
|
//#region libs/mintplayer-react-bootstrap/input-group/src/BsInputGroup.tsx
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
let
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
ref:
|
|
11
|
-
className:
|
|
12
|
-
"data-mps":
|
|
13
|
-
role:
|
|
14
|
-
...
|
|
8
|
+
var l = (...e) => e.filter(Boolean).join(" "), u = t(({ className: t, size: u = "md", role: d, ...f }, p) => {
|
|
9
|
+
e(i), n(a, c);
|
|
10
|
+
let m = f["aria-label"] != null || f["aria-labelledby"] != null;
|
|
11
|
+
return /* @__PURE__ */ r("div", {
|
|
12
|
+
ref: p,
|
|
13
|
+
className: l(...o(u), t),
|
|
14
|
+
"data-mps": a,
|
|
15
|
+
role: d ?? s(m) ?? void 0,
|
|
16
|
+
...f
|
|
15
17
|
});
|
|
16
18
|
});
|
|
17
|
-
|
|
19
|
+
u.displayName = "BsInputGroup";
|
|
18
20
|
//#endregion
|
|
19
|
-
export {
|
|
21
|
+
export { u as BsInputGroup };
|
package/machine/index.mjs
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import { i as e, n as t, r as n, t as r } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
2
|
import { n as i, t as a } from "../chunks/useMachine-CpK1VckL.mjs";
|
|
3
|
-
import { Children as o,
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { coreRuntime as
|
|
6
|
-
import { DEFAULT_PREFETCH_TIMEOUT as
|
|
3
|
+
import { Children as o, cloneElement as s, createContext as c, isValidElement as l, use as u, useContext as d, useEffect as f, useId as p, useRef as m, useState as h } from "react";
|
|
4
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
5
|
+
import { coreRuntime as _, sameContent as v } from "@mintplayer/ui-core/component";
|
|
6
|
+
import { DEFAULT_PREFETCH_TIMEOUT as y, readTransferState as b, runPrefetch as x } from "@mintplayer/ui-core/transfer-state";
|
|
7
7
|
//#region libs/mintplayer-react-bootstrap/machine/src/transfer-state.tsx
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
let [i] =
|
|
11
|
-
store: e ??
|
|
8
|
+
var S = c(null);
|
|
9
|
+
function C({ store: e, server: t, prefetchTimeout: n, children: r }) {
|
|
10
|
+
let [i] = h(() => ({
|
|
11
|
+
store: e ?? b(),
|
|
12
12
|
server: t ?? typeof window > "u",
|
|
13
|
-
prefetchTimeout: n ??
|
|
13
|
+
prefetchTimeout: n ?? y,
|
|
14
14
|
pending: /* @__PURE__ */ new Map()
|
|
15
15
|
}));
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ g(S.Provider, {
|
|
17
17
|
value: i,
|
|
18
18
|
children: r
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region libs/mintplayer-react-bootstrap/machine/src/core.ts
|
|
23
|
-
var
|
|
24
|
-
function
|
|
25
|
-
let t =
|
|
26
|
-
return t || (t =
|
|
23
|
+
var w = /* @__PURE__ */ new WeakMap(), T = c(void 0);
|
|
24
|
+
function E(e) {
|
|
25
|
+
let t = w.get(e);
|
|
26
|
+
return t || (t = c(e.defaultValue), t.displayName = e.name, w.set(e, t)), t;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
let r = `${n.idPrefix}-${
|
|
28
|
+
function D(e, t, n) {
|
|
29
|
+
let r = `${n.idPrefix}-${p().replace(/[^a-zA-Z0-9_-]/g, "")}`, i = d(e.consume ? E(e.consume) : T), [a, o] = h(!1), s = d(S), [c] = h(() => s && e.transferKey ? e.transferKey(t) : void 0), l;
|
|
30
30
|
if (s && c) {
|
|
31
|
-
if (!s.server)
|
|
31
|
+
if (!s.server) l = s.store.get(c);
|
|
32
32
|
else if (e.prefetch) {
|
|
33
33
|
let n = s.pending.get(c);
|
|
34
|
-
n || (n =
|
|
34
|
+
n || (n = x(e, t, { timeout: s.prefetchTimeout }).then((e) => (e && s.store.set(e.key, e.seed), e)), s.pending.set(c, n)), l = u(n)?.seed;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
let [
|
|
38
|
-
|
|
37
|
+
let [g, v] = h(() => e.state ? e.state(t, l) : {});
|
|
38
|
+
f(() => {
|
|
39
39
|
s && c && !s.server && s.store.remove(c);
|
|
40
40
|
}, [s, c]);
|
|
41
|
-
let y =
|
|
41
|
+
let y = m({
|
|
42
42
|
inputs: t,
|
|
43
|
-
state:
|
|
43
|
+
state: g,
|
|
44
44
|
emit: n.emit
|
|
45
45
|
});
|
|
46
46
|
y.current = {
|
|
47
47
|
inputs: t,
|
|
48
|
-
state:
|
|
48
|
+
state: g,
|
|
49
49
|
emit: n.emit
|
|
50
50
|
};
|
|
51
|
-
let [
|
|
51
|
+
let [b] = h(() => _(e, {
|
|
52
52
|
inputs: () => y.current.inputs,
|
|
53
53
|
state: () => y.current.state,
|
|
54
54
|
setState: (e) => {
|
|
@@ -56,39 +56,48 @@ function E(e, t, n) {
|
|
|
56
56
|
},
|
|
57
57
|
emit: (e, t) => y.current.emit(e, t)
|
|
58
58
|
})), C = n.rootRef;
|
|
59
|
-
|
|
60
|
-
let
|
|
59
|
+
f(() => (o(!0), C.current && b.attachTo(C.current), () => b.dispose()), [b, C]), f(() => b.inputs(t));
|
|
60
|
+
let w = {
|
|
61
61
|
inputs: t,
|
|
62
|
-
state:
|
|
62
|
+
state: g,
|
|
63
63
|
id: r,
|
|
64
64
|
hydrated: a,
|
|
65
65
|
context: i ?? e.consume?.defaultValue,
|
|
66
66
|
label: n.label ?? null,
|
|
67
|
-
api: () =>
|
|
67
|
+
api: () => b.api
|
|
68
68
|
};
|
|
69
69
|
return {
|
|
70
|
-
props: e.view(
|
|
71
|
-
provided: e.provide?.(
|
|
72
|
-
call: (e, t) =>
|
|
70
|
+
props: e.view(w),
|
|
71
|
+
provided: e.provide?.(w),
|
|
72
|
+
call: (e, t) => b.call(e, t)
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region libs/mintplayer-react-bootstrap/machine/src/content.ts
|
|
77
|
-
function
|
|
77
|
+
function O(e, t, n, r) {
|
|
78
78
|
o.forEach(e, (e) => {
|
|
79
|
-
if (!
|
|
79
|
+
if (!l(e)) return;
|
|
80
80
|
let { children: i, ref: a, ...o } = e.props;
|
|
81
81
|
e.type === t.type ? r.push({
|
|
82
82
|
inputs: o,
|
|
83
83
|
within: n
|
|
84
|
-
}) :
|
|
84
|
+
}) : O(i, t, t.within !== void 0 && e.type === t.within ? o : n, r);
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function k(e, t) {
|
|
88
88
|
let n = [];
|
|
89
|
-
|
|
90
|
-
let r =
|
|
91
|
-
return
|
|
89
|
+
O(e, t, null, n);
|
|
90
|
+
let r = m(n);
|
|
91
|
+
return v(r.current, n) || (r.current = n), r.current;
|
|
92
92
|
}
|
|
93
93
|
//#endregion
|
|
94
|
-
|
|
94
|
+
//#region libs/mintplayer-react-bootstrap/machine/src/mark-links.ts
|
|
95
|
+
var A = (e, t) => typeof e == "function" ? (...n) => [e(...n), t].filter(Boolean).join(" ") : [e, t].filter(Boolean).join(" ");
|
|
96
|
+
function j(e, t, n) {
|
|
97
|
+
return o.map(e, (e) => l(e) ? s(e, {
|
|
98
|
+
className: A(e.props.className, t),
|
|
99
|
+
"data-mps": n
|
|
100
|
+
}) : e);
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
export { S as MpSsr, C as MpTransferStateProvider, j as markLinks, E as reactCoreContext, r as reactFormProps, t as reactOptionProps, n as reactProps, e as reactStyle, k as useContent, D as useCore, a as useMachine, i as useSnapshot };
|
package/machine/src/index.d.ts
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A component's consumer links (its direct child elements), marked with a
|
|
4
|
+
* Bootstrap class and the component's scope, so the scoped Bootstrap part
|
|
5
|
+
* (`.nav-link:where([data-mps])`) styles them. A router `Link`/`NavLink` passes
|
|
6
|
+
* both on to its `<a>`; a `className` function is kept and extended.
|
|
7
|
+
*/
|
|
8
|
+
export declare function markLinks(children: ReactNode, className: string, scope: string): ReactNode;
|
package/nav/index.mjs
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
|
+
import { markLinks as t, useCore as n } from "../machine/index.mjs";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { forwardRef as i, useImperativeHandle as a, useRef as o } from "react";
|
|
5
|
+
import { installLightStyles as s } from "@mintplayer/ui-core/scoped-styles";
|
|
6
|
+
import { Fragment as c, jsx as l } from "react/jsx-runtime";
|
|
7
|
+
import { NAV_LINK_CLASS as u, navCore as d, navItemCore as f, navScopedStyles as p } from "@mintplayer/ui-core/nav";
|
|
8
|
+
import { bootstrapNav as m } from "@mintplayer/ui-core/bootstrap/nav";
|
|
9
|
+
//#region libs/mintplayer-react-bootstrap/nav/src/generated/nav.view.generated.tsx
|
|
10
|
+
function h({ root: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: o }) {
|
|
11
|
+
return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("ul", {
|
|
12
|
+
"data-mps": "nav",
|
|
13
|
+
...e(t),
|
|
14
|
+
ref: o,
|
|
15
|
+
...a,
|
|
16
|
+
role: t.role ?? a?.role,
|
|
17
|
+
className: [t.class, i].filter(Boolean).join(" ") || void 0,
|
|
18
|
+
children: r ?? null
|
|
19
|
+
}) });
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region libs/mintplayer-react-bootstrap/nav/src/generated/BsNav.generated.tsx
|
|
23
|
+
var g = i(function({ variant: e = null, fill: t = !1, justified: r = !1, cardHeader: i = !1, className: c, children: u, ...f }, g) {
|
|
24
|
+
s(m.key, m.css, { order: m.order }), s("nav", p);
|
|
25
|
+
let _ = o(null);
|
|
26
|
+
a(g, () => _.current);
|
|
27
|
+
let v = n(d, {
|
|
28
|
+
variant: e,
|
|
29
|
+
fill: t,
|
|
30
|
+
justified: r,
|
|
31
|
+
cardHeader: i
|
|
32
|
+
}, {
|
|
33
|
+
idPrefix: "bs-nav",
|
|
34
|
+
label: f["aria-label"],
|
|
35
|
+
rootRef: _,
|
|
36
|
+
emit: () => void 0
|
|
37
|
+
});
|
|
38
|
+
return /* @__PURE__ */ l(h, {
|
|
39
|
+
...v.props,
|
|
40
|
+
className: c,
|
|
41
|
+
attrs: f,
|
|
42
|
+
rootRef: _,
|
|
43
|
+
children: u
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region libs/mintplayer-react-bootstrap/nav/src/generated/nav-item.view.generated.tsx
|
|
48
|
+
function _({ root: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: o }) {
|
|
49
|
+
return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("li", {
|
|
50
|
+
"data-mps": "nav",
|
|
51
|
+
...e(t),
|
|
52
|
+
ref: o,
|
|
53
|
+
...a,
|
|
54
|
+
role: t.role ?? a?.role,
|
|
55
|
+
className: [t.class, i].filter(Boolean).join(" ") || void 0,
|
|
56
|
+
children: r ?? null
|
|
57
|
+
}) });
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region libs/mintplayer-react-bootstrap/nav/src/nav-item.react.ts
|
|
61
|
+
function v({ children: e }) {
|
|
62
|
+
return t(e, u, "nav");
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region libs/mintplayer-react-bootstrap/nav/src/generated/BsNavItem.generated.tsx
|
|
66
|
+
var y = i(function({ className: e, children: t, ...i }, c) {
|
|
67
|
+
s(m.key, m.css, { order: m.order }), s("nav", p);
|
|
68
|
+
let u = o(null);
|
|
69
|
+
a(c, () => u.current);
|
|
70
|
+
let d = n(f, {}, {
|
|
71
|
+
idPrefix: "bs-nav-item",
|
|
72
|
+
label: i["aria-label"],
|
|
73
|
+
rootRef: u,
|
|
74
|
+
emit: () => void 0
|
|
75
|
+
});
|
|
76
|
+
return /* @__PURE__ */ l(_, {
|
|
77
|
+
...d.props,
|
|
78
|
+
className: e,
|
|
79
|
+
attrs: i,
|
|
80
|
+
rootRef: u,
|
|
81
|
+
children: r.createElement(v, null, t)
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
//#endregion
|
|
85
|
+
export { g as BsNav, y as BsNavItem };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NavInputs } from '@mintplayer/ui-core/nav';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsNavProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['ul']>, 'variant' | 'fill' | 'justified' | 'cardHeader'> {
|
|
4
|
+
variant?: NavInputs['variant'];
|
|
5
|
+
fill?: NavInputs['fill'];
|
|
6
|
+
justified?: NavInputs['justified'];
|
|
7
|
+
cardHeader?: NavInputs['cardHeader'];
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Bootstrap's nav: a list of `bs-nav-item`s, plain or as tabs, pills or underline (#452).
|
|
12
|
+
*
|
|
13
|
+
* It ships the nav part, so a page that renders one needs no install of its own.
|
|
14
|
+
*/
|
|
15
|
+
export declare const BsNav: React.ForwardRefExoticComponent<BsNavProps & React.RefAttributes<HTMLUListElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface BsNavItemProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['li']>, never> {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/** One nav entry around a consumer link, which becomes its `.nav-link`; `class="active"` marks the current one. */
|
|
6
|
+
export declare const BsNavItem: React.ForwardRefExoticComponent<BsNavItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NavProps } from '@mintplayer/ui-core/nav';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type NavItemTemplateProps = {
|
|
4
|
+
root: NavProps['root'];
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {};
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Merged onto the root element after the bag. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
11
|
+
attrs?: Record<string, unknown>;
|
|
12
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['li']>;
|
|
13
|
+
};
|
|
14
|
+
export declare function NavItemTemplate({ root, slots, children, className, attrs, rootRef }: NavItemTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NavProps } from '@mintplayer/ui-core/nav';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type NavTemplateProps = {
|
|
4
|
+
root: NavProps['root'];
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {};
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Merged onto the root element after the bag. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
11
|
+
attrs?: Record<string, unknown>;
|
|
12
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['ul']>;
|
|
13
|
+
};
|
|
14
|
+
export declare function NavTemplate({ root, slots, children, className, attrs, rootRef }: NavTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|