@mintplayer/react-bootstrap 19.30.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-DCwT6fdk.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/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/select/index.mjs
CHANGED
|
@@ -4,12 +4,13 @@ import * as i from "react";
|
|
|
4
4
|
import { forwardRef as a, useImperativeHandle as o, useRef as s } from "react";
|
|
5
5
|
import { installLightStyles as c } from "@mintplayer/ui-core/scoped-styles";
|
|
6
6
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { bootstrapForms as f } from "@mintplayer/ui-core/bootstrap/forms";
|
|
8
|
+
import { selectCore as p, selectScopedStyles as m } from "@mintplayer/ui-core/select";
|
|
8
9
|
//#region libs/mintplayer-react-bootstrap/select/src/generated/select.view.generated.tsx
|
|
9
|
-
function
|
|
10
|
+
function h(e, t) {
|
|
10
11
|
return typeof e == "function" ? e(t) : e;
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
+
function g({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
|
|
13
14
|
return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
|
|
14
15
|
"data-mps": "select",
|
|
15
16
|
...t(r.root),
|
|
@@ -31,12 +32,12 @@ function h({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
|
|
|
31
32
|
children: n.options.map((t, n) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u("option", {
|
|
32
33
|
"data-mps": "select",
|
|
33
34
|
...e(t.bag),
|
|
34
|
-
children: r.rich ? /* @__PURE__ */ u(l, { children: a.option === void 0 ? /* @__PURE__ */ u(l, { children: t.option.label }) :
|
|
35
|
+
children: r.rich ? /* @__PURE__ */ u(l, { children: a.option === void 0 ? /* @__PURE__ */ u(l, { children: t.option.label }) : h(a.option, { option: t.option }) }) : /* @__PURE__ */ u(l, { children: t.option.label })
|
|
35
36
|
}) }, t.key))
|
|
36
37
|
}) }) : /* @__PURE__ */ u(l, { children: n.options.map((t, n) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u("option", {
|
|
37
38
|
"data-mps": "select",
|
|
38
39
|
...e(t.bag),
|
|
39
|
-
children: r.rich ? /* @__PURE__ */ u(l, { children: a.option === void 0 ? /* @__PURE__ */ u(l, { children: t.option.label }) :
|
|
40
|
+
children: r.rich ? /* @__PURE__ */ u(l, { children: a.option === void 0 ? /* @__PURE__ */ u(l, { children: t.option.label }) : h(a.option, { option: t.option }) }) : /* @__PURE__ */ u(l, { children: t.option.label })
|
|
40
41
|
}) }, t.key)) }) }, n.key)) }) : /* @__PURE__ */ u(l, { children: o ?? null })]
|
|
41
42
|
}), r.showFeedback ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("div", {
|
|
42
43
|
"data-mps": "select",
|
|
@@ -47,11 +48,11 @@ function h({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
|
|
|
47
48
|
}
|
|
48
49
|
//#endregion
|
|
49
50
|
//#region libs/mintplayer-react-bootstrap/select/src/generated/BsSelect.generated.tsx
|
|
50
|
-
var
|
|
51
|
-
c("select",
|
|
52
|
-
let
|
|
53
|
-
o(
|
|
54
|
-
let
|
|
51
|
+
var _ = [], v = a(function({ size: e = "md", multiple: t = !1, numberVisible: n, disabled: i = !1, required: a = !1, invalid: l = !1, errorText: d, name: h, inputLabel: v, value: y = null, values: b = _, options: x, onValueChange: S, option: C, className: w, children: T, ...E }, D) {
|
|
52
|
+
c(f.key, f.css, { order: f.order }), c("select", m);
|
|
53
|
+
let O = s(null);
|
|
54
|
+
o(D, () => O.current);
|
|
55
|
+
let k = r(p, {
|
|
55
56
|
size: e,
|
|
56
57
|
multiple: t,
|
|
57
58
|
numberVisible: n,
|
|
@@ -59,27 +60,27 @@ var g = [], _ = a(function({ size: e = "md", multiple: t = !1, numberVisible: n,
|
|
|
59
60
|
required: a,
|
|
60
61
|
invalid: l,
|
|
61
62
|
errorText: d,
|
|
62
|
-
name:
|
|
63
|
-
inputLabel:
|
|
64
|
-
value:
|
|
65
|
-
values:
|
|
66
|
-
options:
|
|
63
|
+
name: h,
|
|
64
|
+
inputLabel: v,
|
|
65
|
+
value: y,
|
|
66
|
+
values: b,
|
|
67
|
+
options: x
|
|
67
68
|
}, {
|
|
68
69
|
idPrefix: "bs-select",
|
|
69
|
-
label:
|
|
70
|
-
rootRef:
|
|
70
|
+
label: E["aria-label"],
|
|
71
|
+
rootRef: O,
|
|
71
72
|
emit: (e, t) => {
|
|
72
|
-
e === "valueChange" &&
|
|
73
|
+
e === "valueChange" && S?.(t);
|
|
73
74
|
}
|
|
74
75
|
});
|
|
75
|
-
return /* @__PURE__ */ u(
|
|
76
|
-
...
|
|
77
|
-
slots: { option:
|
|
78
|
-
className:
|
|
79
|
-
attrs:
|
|
80
|
-
rootRef:
|
|
81
|
-
children:
|
|
76
|
+
return /* @__PURE__ */ u(g, {
|
|
77
|
+
...k.props,
|
|
78
|
+
slots: { option: C },
|
|
79
|
+
className: w,
|
|
80
|
+
attrs: E,
|
|
81
|
+
rootRef: O,
|
|
82
|
+
children: T
|
|
82
83
|
});
|
|
83
84
|
});
|
|
84
85
|
//#endregion
|
|
85
|
-
export {
|
|
86
|
+
export { v as BsSelect };
|
package/signature-pad/index.mjs
CHANGED
|
@@ -3,9 +3,10 @@ import { useCore as n } from "../machine/index.mjs";
|
|
|
3
3
|
import { forwardRef as r, useImperativeHandle as i, useRef as a } from "react";
|
|
4
4
|
import { installLightStyles as o } from "@mintplayer/ui-core/scoped-styles";
|
|
5
5
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
6
|
+
import { bootstrapForms as u } from "@mintplayer/ui-core/bootstrap/forms";
|
|
7
|
+
import { signaturePadCore as d, signaturePadScopedStyles as f } from "@mintplayer/ui-core/signature-pad";
|
|
7
8
|
//#region libs/mintplayer-react-bootstrap/signature-pad/src/generated/signature-pad.view.generated.tsx
|
|
8
|
-
function
|
|
9
|
+
function p({ view: n, slots: r = {}, children: i, className: a, attrs: o, rootRef: u }) {
|
|
9
10
|
return /* @__PURE__ */ c(s, { children: /* @__PURE__ */ l("div", {
|
|
10
11
|
"data-mps": "signature-pad",
|
|
11
12
|
...e(n.root),
|
|
@@ -48,36 +49,36 @@ function f({ view: n, slots: r = {}, children: i, className: a, attrs: o, rootRe
|
|
|
48
49
|
}
|
|
49
50
|
//#endregion
|
|
50
51
|
//#region libs/mintplayer-react-bootstrap/signature-pad/src/generated/BsSignaturePad.generated.tsx
|
|
51
|
-
var
|
|
52
|
-
o("signature-pad",
|
|
53
|
-
let
|
|
54
|
-
i(
|
|
55
|
-
let
|
|
52
|
+
var m = { strokes: [] }, h = r(function({ signature: e = m, width: t = 500, height: r = 300, showAccessibilityToggle: s = !0, disabled: l = !1, required: h = !1, invalid: g = !1, errorText: _ = null, inputLabel: v = null, labels: y = null, onSignatureChange: b, className: x, children: S, ...C }, w) {
|
|
53
|
+
o(u.key, u.css, { order: u.order }), o("signature-pad", f);
|
|
54
|
+
let T = a(null);
|
|
55
|
+
i(w, () => T.current);
|
|
56
|
+
let E = n(d, {
|
|
56
57
|
signature: e,
|
|
57
58
|
width: t,
|
|
58
59
|
height: r,
|
|
59
60
|
showAccessibilityToggle: s,
|
|
60
61
|
disabled: l,
|
|
61
|
-
required:
|
|
62
|
-
invalid:
|
|
63
|
-
errorText:
|
|
64
|
-
inputLabel:
|
|
65
|
-
labels:
|
|
62
|
+
required: h,
|
|
63
|
+
invalid: g,
|
|
64
|
+
errorText: _,
|
|
65
|
+
inputLabel: v,
|
|
66
|
+
labels: y
|
|
66
67
|
}, {
|
|
67
68
|
idPrefix: "bs-signature-pad",
|
|
68
|
-
label:
|
|
69
|
-
rootRef:
|
|
69
|
+
label: C["aria-label"],
|
|
70
|
+
rootRef: T,
|
|
70
71
|
emit: (e, t) => {
|
|
71
|
-
e === "signatureChange" &&
|
|
72
|
+
e === "signatureChange" && b?.(t);
|
|
72
73
|
}
|
|
73
74
|
});
|
|
74
|
-
return /* @__PURE__ */ c(
|
|
75
|
-
...
|
|
76
|
-
className:
|
|
77
|
-
attrs:
|
|
78
|
-
rootRef:
|
|
79
|
-
children:
|
|
75
|
+
return /* @__PURE__ */ c(p, {
|
|
76
|
+
...E.props,
|
|
77
|
+
className: x,
|
|
78
|
+
attrs: C,
|
|
79
|
+
rootRef: T,
|
|
80
|
+
children: S
|
|
80
81
|
});
|
|
81
82
|
});
|
|
82
83
|
//#endregion
|
|
83
|
-
export {
|
|
84
|
+
export { h as BsSignaturePad };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
|
+
import { useCore as t } from "../machine/index.mjs";
|
|
3
|
+
import { forwardRef as n, useImperativeHandle as r, useRef as i } from "react";
|
|
4
|
+
import { installLightStyles as a } from "@mintplayer/ui-core/scoped-styles";
|
|
5
|
+
import { Fragment as o, jsx as s } from "react/jsx-runtime";
|
|
6
|
+
import { spinnerCore as c, spinnerScopedStyles as l } from "@mintplayer/ui-core/spinner";
|
|
7
|
+
import { bootstrapSpinners as u } from "@mintplayer/ui-core/bootstrap/spinners";
|
|
8
|
+
//#region libs/mintplayer-react-bootstrap/spinner/src/generated/spinner.view.generated.tsx
|
|
9
|
+
function d({ root: t, label: n, slots: r = {}, children: i, className: a, attrs: c, rootRef: l }) {
|
|
10
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
11
|
+
"data-mps": "spinner",
|
|
12
|
+
...e(t),
|
|
13
|
+
ref: l,
|
|
14
|
+
...c,
|
|
15
|
+
role: t.role ?? c?.role,
|
|
16
|
+
className: [t.class, a].filter(Boolean).join(" ") || void 0,
|
|
17
|
+
children: /* @__PURE__ */ s("span", {
|
|
18
|
+
"data-mps": "spinner",
|
|
19
|
+
className: "visually-hidden",
|
|
20
|
+
children: n
|
|
21
|
+
})
|
|
22
|
+
}) });
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region libs/mintplayer-react-bootstrap/spinner/src/generated/BsSpinner.generated.tsx
|
|
26
|
+
var f = n(function({ type: e = "border", color: n = null, small: o = !1, label: f = "Loading…", className: p, children: m, ...h }, g) {
|
|
27
|
+
a(u.key, u.css, { order: u.order }), a("spinner", l);
|
|
28
|
+
let _ = i(null);
|
|
29
|
+
r(g, () => _.current);
|
|
30
|
+
let v = t(c, {
|
|
31
|
+
type: e,
|
|
32
|
+
color: n,
|
|
33
|
+
small: o,
|
|
34
|
+
label: f
|
|
35
|
+
}, {
|
|
36
|
+
idPrefix: "bs-spinner",
|
|
37
|
+
label: h["aria-label"],
|
|
38
|
+
rootRef: _,
|
|
39
|
+
emit: () => void 0
|
|
40
|
+
});
|
|
41
|
+
return /* @__PURE__ */ s(d, {
|
|
42
|
+
...v.props,
|
|
43
|
+
className: p,
|
|
44
|
+
attrs: h,
|
|
45
|
+
rootRef: _,
|
|
46
|
+
children: m
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
export { f as BsSpinner };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SpinnerInputs } from '@mintplayer/ui-core/spinner';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsSpinnerProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'type' | 'color' | 'small' | 'label'> {
|
|
4
|
+
type?: SpinnerInputs['type'];
|
|
5
|
+
color?: SpinnerInputs['color'];
|
|
6
|
+
small?: SpinnerInputs['small'];
|
|
7
|
+
label?: SpinnerInputs['label'];
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/** Bootstrap's spinner: a `role="status"` loading indicator whose visually hidden `label` a screen reader announces (#452). */
|
|
11
|
+
export declare const BsSpinner: React.ForwardRefExoticComponent<BsSpinnerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsSpinner, type BsSpinnerProps } from './BsSpinner.generated';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpinnerProps } from '@mintplayer/ui-core/spinner';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type SpinnerTemplateProps = {
|
|
4
|
+
root: SpinnerProps['root'];
|
|
5
|
+
label: SpinnerProps['label'];
|
|
6
|
+
} & {
|
|
7
|
+
slots?: {};
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/** Merged onto the root element after the bag. */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
12
|
+
attrs?: Record<string, unknown>;
|
|
13
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
|
|
14
|
+
};
|
|
15
|
+
export declare function SpinnerTemplate({ root, label, slots, children, className, attrs, rootRef }: SpinnerTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|
package/tab-control/index.mjs
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { installBootstrap as t } from "@mintplayer/ui-core/bootstrap";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { forwardRef as r, useEffect as i, useId as a, useImperativeHandle as o, useRef as s, useState as c } from "react";
|
|
5
|
+
import { installLightStyles as l } from "@mintplayer/ui-core/scoped-styles";
|
|
6
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
+
import { bootstrapNav as f } from "@mintplayer/ui-core/bootstrap/nav";
|
|
8
|
+
import { TAB_CONTROL_SCOPE as p, connectTabControl as m, resolveActiveTab as h, tabControlChanged as g, tabControlKeydown as _, tabControlScopedStyles as v, tabControlTabClick as y } from "@mintplayer/ui-core/tab-control";
|
|
7
9
|
//#region libs/mintplayer-react-bootstrap/tab-control/src/BsTabControl.tsx
|
|
8
|
-
function
|
|
10
|
+
function b(e) {
|
|
9
11
|
return null;
|
|
10
12
|
}
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
let [
|
|
16
|
-
|
|
17
|
-
let
|
|
13
|
+
var x = r(function({ activeTab: r, border: x, selectFirstTab: S = !0, tabsPosition: C, onTabActivate: w, className: T, children: E, ...D }, O) {
|
|
14
|
+
t(f), l(p, v);
|
|
15
|
+
let k = `bs-tab-control-${a().replace(/[^a-zA-Z0-9_-]/g, "")}`, A = s(null);
|
|
16
|
+
o(O, () => A.current);
|
|
17
|
+
let [j, M] = c(!1);
|
|
18
|
+
i(() => M(!0), []);
|
|
19
|
+
let N = n.Children.toArray(E).filter((e) => n.isValidElement(e) && e.type === b).map((e, t) => {
|
|
18
20
|
let { tabId: n, header: r, disabled: i, children: a, role: o, ...s } = e.props;
|
|
19
21
|
return {
|
|
20
22
|
key: n ?? String(t),
|
|
@@ -23,69 +25,69 @@ var y = n(function({ activeTab: n, border: y, selectFirstTab: b = !0, tabsPositi
|
|
|
23
25
|
body: a,
|
|
24
26
|
attrs: s
|
|
25
27
|
};
|
|
26
|
-
}),
|
|
27
|
-
let t =
|
|
28
|
-
t && !t.disabled && (
|
|
29
|
-
},
|
|
30
|
-
id:
|
|
31
|
-
tabsPosition:
|
|
32
|
-
border:
|
|
33
|
-
enhanced:
|
|
34
|
-
},
|
|
35
|
-
let t =
|
|
28
|
+
}), P = N.map((e) => ({ disabled: e.disabled })), [F, I] = c(null), L = r ?? F, R = L === null ? -1 : N.findIndex((e) => e.key === L), z = h(P, R < 0 ? null : R, S), B = (e) => {
|
|
29
|
+
let t = N[e];
|
|
30
|
+
t && !t.disabled && (I(t.key), w?.(t.key));
|
|
31
|
+
}, V = m({
|
|
32
|
+
id: k,
|
|
33
|
+
tabsPosition: C,
|
|
34
|
+
border: x,
|
|
35
|
+
enhanced: j
|
|
36
|
+
}, P, z), { class: H, ...U } = V.root, W = (e) => {
|
|
37
|
+
let t = V.tabs[e].tab, n = N[e].attrs.id;
|
|
36
38
|
return n && t["aria-controls"] ? {
|
|
37
39
|
...t,
|
|
38
40
|
"aria-controls": n
|
|
39
41
|
} : t;
|
|
40
|
-
},
|
|
41
|
-
let { class: t, ...n } =
|
|
42
|
+
}, G = (e) => {
|
|
43
|
+
let { class: t, ...n } = V.tabs[e].pane;
|
|
42
44
|
return n;
|
|
43
|
-
},
|
|
44
|
-
...e(
|
|
45
|
-
children: /* @__PURE__ */
|
|
46
|
-
...e(
|
|
47
|
-
children:
|
|
48
|
-
...e(
|
|
49
|
-
children: /* @__PURE__ */
|
|
50
|
-
...e(
|
|
51
|
-
onClick: (e) =>
|
|
45
|
+
}, K = /* @__PURE__ */ u("div", {
|
|
46
|
+
...e(V.strip),
|
|
47
|
+
children: /* @__PURE__ */ u("ul", {
|
|
48
|
+
...e(V.list),
|
|
49
|
+
children: N.map((t, n) => /* @__PURE__ */ u("li", {
|
|
50
|
+
...e(V.item),
|
|
51
|
+
children: /* @__PURE__ */ u("label", {
|
|
52
|
+
...e(W(n)),
|
|
53
|
+
onClick: (e) => j && y(e.nativeEvent, !!t.disabled) && B(n),
|
|
52
54
|
onKeyDown: (e) => {
|
|
53
|
-
let t =
|
|
54
|
-
t != null &&
|
|
55
|
+
let t = A.current && _(A.current, e.nativeEvent, n, P);
|
|
56
|
+
t != null && B(t);
|
|
55
57
|
},
|
|
56
58
|
children: t.header
|
|
57
59
|
})
|
|
58
60
|
}, t.key))
|
|
59
61
|
})
|
|
60
62
|
});
|
|
61
|
-
return /* @__PURE__ */
|
|
62
|
-
ref:
|
|
63
|
-
...e(
|
|
64
|
-
...
|
|
65
|
-
className: [String(
|
|
63
|
+
return /* @__PURE__ */ d("div", {
|
|
64
|
+
ref: A,
|
|
65
|
+
...e(U),
|
|
66
|
+
...D,
|
|
67
|
+
className: [String(H), T].filter(Boolean).join(" "),
|
|
66
68
|
onChange: (e) => {
|
|
67
|
-
let t =
|
|
68
|
-
t != null &&
|
|
69
|
+
let t = A.current && g(A.current, e.nativeEvent);
|
|
70
|
+
t != null && B(t);
|
|
69
71
|
},
|
|
70
72
|
children: [
|
|
71
|
-
|
|
72
|
-
...e(
|
|
73
|
-
checked: n ===
|
|
73
|
+
N.map((t, n) => /* @__PURE__ */ u("input", {
|
|
74
|
+
...e(V.tabs[n].radio),
|
|
75
|
+
checked: n === z,
|
|
74
76
|
onChange: () => void 0
|
|
75
77
|
}, t.key)),
|
|
76
|
-
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
...e(
|
|
79
|
-
children:
|
|
80
|
-
...e(
|
|
78
|
+
C !== "bottom" && K,
|
|
79
|
+
/* @__PURE__ */ u("div", {
|
|
80
|
+
...e(V.content),
|
|
81
|
+
children: N.map((t, n) => /* @__PURE__ */ u("div", {
|
|
82
|
+
...e(G(n)),
|
|
81
83
|
...t.attrs,
|
|
82
|
-
className: [String(
|
|
84
|
+
className: [String(V.tabs[n].pane.class), t.attrs.className].filter(Boolean).join(" "),
|
|
83
85
|
children: t.body
|
|
84
86
|
}, t.key))
|
|
85
87
|
}),
|
|
86
|
-
|
|
88
|
+
C === "bottom" && K
|
|
87
89
|
]
|
|
88
90
|
});
|
|
89
91
|
});
|
|
90
92
|
//#endregion
|
|
91
|
-
export {
|
|
93
|
+
export { x as BsTabControl, b as BsTabPage };
|
package/timepicker/index.mjs
CHANGED
|
@@ -4,9 +4,10 @@ import * as r from "react";
|
|
|
4
4
|
import { forwardRef as i, useImperativeHandle as a, useRef as o } from "react";
|
|
5
5
|
import { installLightStyles as s } from "@mintplayer/ui-core/scoped-styles";
|
|
6
6
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { bootstrapForms as d } from "@mintplayer/ui-core/bootstrap/forms";
|
|
8
|
+
import { timeListCore as f, timepickerCore as p, timepickerScopedStyles as m } from "@mintplayer/ui-core/timepicker";
|
|
8
9
|
//#region libs/mintplayer-react-bootstrap/timepicker/src/generated/time-list.view.generated.tsx
|
|
9
|
-
function
|
|
10
|
+
function h({ view: t, slots: n = {}, children: i, className: a, attrs: o, rootRef: s }) {
|
|
10
11
|
return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("div", {
|
|
11
12
|
"data-mps": "timepicker",
|
|
12
13
|
...e(t.root),
|
|
@@ -31,37 +32,37 @@ function m({ view: t, slots: n = {}, children: i, className: a, attrs: o, rootRe
|
|
|
31
32
|
}
|
|
32
33
|
//#endregion
|
|
33
34
|
//#region libs/mintplayer-react-bootstrap/timepicker/src/generated/BsTimeList.generated.tsx
|
|
34
|
-
var
|
|
35
|
-
s("timepicker",
|
|
36
|
-
let
|
|
37
|
-
a(
|
|
38
|
-
let
|
|
35
|
+
var g = i(function({ selectedTime: e = null, step: t = 15, minMinutes: r = null, maxMinutes: i = null, hour12: c = "auto", locale: u = null, labels: p = null, onSelectedTimeChange: g, className: _, children: v, ...y }, b) {
|
|
36
|
+
s(d.key, d.css, { order: d.order }), s("timepicker", m);
|
|
37
|
+
let x = o(null);
|
|
38
|
+
a(b, () => x.current);
|
|
39
|
+
let S = n(f, {
|
|
39
40
|
selectedTime: e,
|
|
40
41
|
step: t,
|
|
41
42
|
minMinutes: r,
|
|
42
43
|
maxMinutes: i,
|
|
43
44
|
hour12: c,
|
|
44
45
|
locale: u,
|
|
45
|
-
labels:
|
|
46
|
+
labels: p
|
|
46
47
|
}, {
|
|
47
48
|
idPrefix: "bs-time-list",
|
|
48
|
-
label:
|
|
49
|
-
rootRef:
|
|
49
|
+
label: y["aria-label"],
|
|
50
|
+
rootRef: x,
|
|
50
51
|
emit: (e, t) => {
|
|
51
|
-
e === "selectedTimeChange" &&
|
|
52
|
+
e === "selectedTimeChange" && g?.(t);
|
|
52
53
|
}
|
|
53
54
|
});
|
|
54
|
-
return /* @__PURE__ */ l(
|
|
55
|
-
...
|
|
56
|
-
className:
|
|
57
|
-
attrs:
|
|
58
|
-
rootRef:
|
|
59
|
-
children:
|
|
55
|
+
return /* @__PURE__ */ l(h, {
|
|
56
|
+
...S.props,
|
|
57
|
+
className: _,
|
|
58
|
+
attrs: y,
|
|
59
|
+
rootRef: x,
|
|
60
|
+
children: v
|
|
60
61
|
});
|
|
61
62
|
});
|
|
62
63
|
//#endregion
|
|
63
64
|
//#region libs/mintplayer-react-bootstrap/timepicker/src/generated/timepicker.view.generated.tsx
|
|
64
|
-
function
|
|
65
|
+
function _({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRef: d }) {
|
|
65
66
|
return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("div", {
|
|
66
67
|
"data-mps": "timepicker",
|
|
67
68
|
...e(n.root),
|
|
@@ -119,40 +120,40 @@ function g({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRe
|
|
|
119
120
|
}
|
|
120
121
|
//#endregion
|
|
121
122
|
//#region libs/mintplayer-react-bootstrap/timepicker/src/generated/BsTimepicker.generated.tsx
|
|
122
|
-
var
|
|
123
|
-
s("timepicker",
|
|
124
|
-
let
|
|
125
|
-
a(
|
|
126
|
-
let
|
|
123
|
+
var v = i(function({ selectedTime: e = null, step: t = 15, min: r = null, max: i = null, hour12: c = "auto", locale: u = null, disabled: f = !1, placeholder: h = null, required: g = !1, invalid: v = !1, errorText: y = null, inputLabel: b = null, name: x = null, labels: S = null, onSelectedTimeChange: C, onOpenChange: w, className: T, children: E, ...D }, O) {
|
|
124
|
+
s(d.key, d.css, { order: d.order }), s("timepicker", m);
|
|
125
|
+
let k = o(null);
|
|
126
|
+
a(O, () => k.current);
|
|
127
|
+
let A = n(p, {
|
|
127
128
|
selectedTime: e,
|
|
128
129
|
step: t,
|
|
129
130
|
min: r,
|
|
130
131
|
max: i,
|
|
131
132
|
hour12: c,
|
|
132
133
|
locale: u,
|
|
133
|
-
disabled:
|
|
134
|
-
placeholder:
|
|
135
|
-
required:
|
|
136
|
-
invalid:
|
|
137
|
-
errorText:
|
|
138
|
-
inputLabel:
|
|
139
|
-
name:
|
|
140
|
-
labels:
|
|
134
|
+
disabled: f,
|
|
135
|
+
placeholder: h,
|
|
136
|
+
required: g,
|
|
137
|
+
invalid: v,
|
|
138
|
+
errorText: y,
|
|
139
|
+
inputLabel: b,
|
|
140
|
+
name: x,
|
|
141
|
+
labels: S
|
|
141
142
|
}, {
|
|
142
143
|
idPrefix: "bs-timepicker",
|
|
143
|
-
label:
|
|
144
|
-
rootRef:
|
|
144
|
+
label: D["aria-label"],
|
|
145
|
+
rootRef: k,
|
|
145
146
|
emit: (e, t) => {
|
|
146
|
-
e === "selectedTimeChange" &&
|
|
147
|
+
e === "selectedTimeChange" && C?.(t), e === "openChange" && w?.(t);
|
|
147
148
|
}
|
|
148
149
|
});
|
|
149
|
-
return /* @__PURE__ */ l(
|
|
150
|
-
...
|
|
151
|
-
className:
|
|
152
|
-
attrs:
|
|
153
|
-
rootRef:
|
|
154
|
-
children:
|
|
150
|
+
return /* @__PURE__ */ l(_, {
|
|
151
|
+
...A.props,
|
|
152
|
+
className: T,
|
|
153
|
+
attrs: D,
|
|
154
|
+
rootRef: k,
|
|
155
|
+
children: E
|
|
155
156
|
});
|
|
156
157
|
});
|
|
157
158
|
//#endregion
|
|
158
|
-
export {
|
|
159
|
+
export { g as BsTimeList, v as BsTimepicker };
|
package/toggle-button/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../chunks/BsCheckbox-
|
|
1
|
+
import { t as e } from "../chunks/BsCheckbox-BZkPJ13E.mjs";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region libs/mintplayer-react-bootstrap/toggle-button/src/BsToggleButton.tsx
|