@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.
Files changed (56) hide show
  1. package/README.md +12 -11
  2. package/accordion/index.mjs +48 -46
  3. package/card/index.mjs +90 -76
  4. package/card/src/BsCard.d.ts +1 -1
  5. package/card/src/BsCardBody.d.ts +1 -1
  6. package/card/src/BsCardFooter.d.ts +1 -1
  7. package/card/src/BsCardLink.d.ts +1 -1
  8. package/card/src/BsCardSubtitle.d.ts +2 -2
  9. package/card/src/BsCardText.d.ts +1 -1
  10. package/card/src/BsCardTitle.d.ts +1 -1
  11. package/carousel/index.mjs +26 -25
  12. package/checkbox/index.mjs +1 -1
  13. package/chunks/BsCheckbox-BZkPJ13E.mjs +66 -0
  14. package/chunks/{BsDatatable.generated-DCwT6fdk.mjs → BsDatatable.generated-DqNW60JA.mjs} +54 -52
  15. package/chunks/{BsDatetimePicker.generated-B4WBEiCo.mjs → BsDatetimePicker.generated-CxaiRt79.mjs} +32 -31
  16. package/chunks/BsRadio-Bw_MhAOq.mjs +57 -0
  17. package/datatable/index.mjs +1 -1
  18. package/datepicker/index.mjs +28 -27
  19. package/datetime-picker/index.mjs +1 -1
  20. package/dropdown-menu/index.mjs +43 -38
  21. package/file-manager/index.mjs +21 -20
  22. package/input-group/index.mjs +17 -15
  23. package/machine/index.mjs +48 -39
  24. package/machine/src/index.d.ts +1 -0
  25. package/machine/src/mark-links.d.ts +8 -0
  26. package/nav/index.mjs +85 -0
  27. package/nav/src/generated/BsNav.generated.d.ts +15 -0
  28. package/nav/src/generated/BsNavItem.generated.d.ts +6 -0
  29. package/nav/src/generated/index.d.ts +2 -0
  30. package/nav/src/generated/nav-item.view.generated.d.ts +14 -0
  31. package/nav/src/generated/nav.view.generated.d.ts +14 -0
  32. package/nav/src/index.d.ts +1 -0
  33. package/nav/src/nav-item.react.d.ts +4 -0
  34. package/navbar/index.mjs +87 -77
  35. package/navbar/src/navbar-item.react.d.ts +4 -0
  36. package/otp-input/index.mjs +24 -23
  37. package/package.json +10 -2
  38. package/pagination/index.mjs +37 -27
  39. package/phone-input/index.mjs +26 -25
  40. package/query-builder/index.mjs +30 -28
  41. package/radio/index.mjs +1 -1
  42. package/radio-group/index.mjs +1 -1
  43. package/scheduler/index.mjs +42 -41
  44. package/select/index.mjs +27 -26
  45. package/signature-pad/index.mjs +23 -22
  46. package/spinner/index.mjs +50 -0
  47. package/spinner/src/generated/BsSpinner.generated.d.ts +11 -0
  48. package/spinner/src/generated/index.d.ts +1 -0
  49. package/spinner/src/generated/spinner.view.generated.d.ts +15 -0
  50. package/spinner/src/index.d.ts +1 -0
  51. package/tab-control/index.mjs +56 -54
  52. package/timepicker/index.mjs +42 -41
  53. package/toggle-button/index.mjs +1 -1
  54. package/typeahead/index.mjs +90 -87
  55. package/chunks/BsCheckbox-BWU2Hrhf.mjs +0 -57
  56. 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 { selectCore as f, selectScopedStyles as p } from "@mintplayer/ui-core/select";
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 m(e, t) {
10
+ function h(e, t) {
10
11
  return typeof e == "function" ? e(t) : e;
11
12
  }
12
- function h({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
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 }) : m(a.option, { option: t.option }) }) : /* @__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 }) : m(a.option, { option: t.option }) }) : /* @__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 g = [], _ = a(function({ size: e = "md", multiple: t = !1, numberVisible: n, disabled: i = !1, required: a = !1, invalid: l = !1, errorText: d, name: m, inputLabel: _, value: v = null, values: y = g, options: b, onValueChange: x, option: S, className: C, children: w, ...T }, E) {
51
- c("select", p);
52
- let D = s(null);
53
- o(E, () => D.current);
54
- let O = r(f, {
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: m,
63
- inputLabel: _,
64
- value: v,
65
- values: y,
66
- options: b
63
+ name: h,
64
+ inputLabel: v,
65
+ value: y,
66
+ values: b,
67
+ options: x
67
68
  }, {
68
69
  idPrefix: "bs-select",
69
- label: T["aria-label"],
70
- rootRef: D,
70
+ label: E["aria-label"],
71
+ rootRef: O,
71
72
  emit: (e, t) => {
72
- e === "valueChange" && x?.(t);
73
+ e === "valueChange" && S?.(t);
73
74
  }
74
75
  });
75
- return /* @__PURE__ */ u(h, {
76
- ...O.props,
77
- slots: { option: S },
78
- className: C,
79
- attrs: T,
80
- rootRef: D,
81
- children: w
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 { _ as BsSelect };
86
+ export { v as BsSelect };
@@ -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 { signaturePadCore as u, signaturePadScopedStyles as d } from "@mintplayer/ui-core/signature-pad";
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 f({ view: n, slots: r = {}, children: i, className: a, attrs: o, rootRef: u }) {
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 p = { strokes: [] }, m = r(function({ signature: e = p, width: t = 500, height: r = 300, showAccessibilityToggle: s = !0, disabled: l = !1, required: m = !1, invalid: h = !1, errorText: g = null, inputLabel: _ = null, labels: v = null, onSignatureChange: y, className: b, children: x, ...S }, C) {
52
- o("signature-pad", d);
53
- let w = a(null);
54
- i(C, () => w.current);
55
- let T = n(u, {
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: m,
62
- invalid: h,
63
- errorText: g,
64
- inputLabel: _,
65
- labels: v
62
+ required: h,
63
+ invalid: g,
64
+ errorText: _,
65
+ inputLabel: v,
66
+ labels: y
66
67
  }, {
67
68
  idPrefix: "bs-signature-pad",
68
- label: S["aria-label"],
69
- rootRef: w,
69
+ label: C["aria-label"],
70
+ rootRef: T,
70
71
  emit: (e, t) => {
71
- e === "signatureChange" && y?.(t);
72
+ e === "signatureChange" && b?.(t);
72
73
  }
73
74
  });
74
- return /* @__PURE__ */ c(f, {
75
- ...T.props,
76
- className: b,
77
- attrs: S,
78
- rootRef: w,
79
- children: x
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 { m as BsSignaturePad };
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';
@@ -1,20 +1,22 @@
1
1
  import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
2
- import * as t from "react";
3
- import { forwardRef as n, useEffect as r, useId as i, useImperativeHandle as a, useRef as o, useState as s } from "react";
4
- import { installLightStyles as c } from "@mintplayer/ui-core/scoped-styles";
5
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
6
- import { TAB_CONTROL_SCOPE as d, connectTabControl as f, resolveActiveTab as p, tabControlChanged as m, tabControlKeydown as h, tabControlScopedStyles as g, tabControlTabClick as _ } from "@mintplayer/ui-core/tab-control";
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 v(e) {
10
+ function b(e) {
9
11
  return null;
10
12
  }
11
- var y = n(function({ activeTab: n, border: y, selectFirstTab: b = !0, tabsPosition: x, onTabActivate: S, className: C, children: w, ...T }, E) {
12
- c(d, g);
13
- let D = `bs-tab-control-${i().replace(/[^a-zA-Z0-9_-]/g, "")}`, O = o(null);
14
- a(E, () => O.current);
15
- let [k, A] = s(!1);
16
- r(() => A(!0), []);
17
- let j = t.Children.toArray(w).filter((e) => t.isValidElement(e) && e.type === v).map((e, t) => {
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
- }), M = j.map((e) => ({ disabled: e.disabled })), [N, P] = s(null), F = n ?? N, I = F === null ? -1 : j.findIndex((e) => e.key === F), L = p(M, I < 0 ? null : I, b), R = (e) => {
27
- let t = j[e];
28
- t && !t.disabled && (P(t.key), S?.(t.key));
29
- }, z = f({
30
- id: D,
31
- tabsPosition: x,
32
- border: y,
33
- enhanced: k
34
- }, M, L), { class: B, ...V } = z.root, H = (e) => {
35
- let t = z.tabs[e].tab, n = j[e].attrs.id;
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
- }, U = (e) => {
41
- let { class: t, ...n } = z.tabs[e].pane;
42
+ }, G = (e) => {
43
+ let { class: t, ...n } = V.tabs[e].pane;
42
44
  return n;
43
- }, W = /* @__PURE__ */ l("div", {
44
- ...e(z.strip),
45
- children: /* @__PURE__ */ l("ul", {
46
- ...e(z.list),
47
- children: j.map((t, n) => /* @__PURE__ */ l("li", {
48
- ...e(z.item),
49
- children: /* @__PURE__ */ l("label", {
50
- ...e(H(n)),
51
- onClick: (e) => k && _(e.nativeEvent, !!t.disabled) && R(n),
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 = O.current && h(O.current, e.nativeEvent, n, M);
54
- t != null && R(t);
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__ */ u("div", {
62
- ref: O,
63
- ...e(V),
64
- ...T,
65
- className: [String(B), C].filter(Boolean).join(" "),
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 = O.current && m(O.current, e.nativeEvent);
68
- t != null && R(t);
69
+ let t = A.current && g(A.current, e.nativeEvent);
70
+ t != null && B(t);
69
71
  },
70
72
  children: [
71
- j.map((t, n) => /* @__PURE__ */ l("input", {
72
- ...e(z.tabs[n].radio),
73
- checked: n === L,
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
- x !== "bottom" && W,
77
- /* @__PURE__ */ l("div", {
78
- ...e(z.content),
79
- children: j.map((t, n) => /* @__PURE__ */ l("div", {
80
- ...e(U(n)),
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(z.tabs[n].pane.class), t.attrs.className].filter(Boolean).join(" "),
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
- x === "bottom" && W
88
+ C === "bottom" && K
87
89
  ]
88
90
  });
89
91
  });
90
92
  //#endregion
91
- export { y as BsTabControl, v as BsTabPage };
93
+ export { x as BsTabControl, b as BsTabPage };
@@ -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 { timeListCore as d, timepickerCore as f, timepickerScopedStyles as p } from "@mintplayer/ui-core/timepicker";
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 m({ view: t, slots: n = {}, children: i, className: a, attrs: o, rootRef: s }) {
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 h = i(function({ selectedTime: e = null, step: t = 15, minMinutes: r = null, maxMinutes: i = null, hour12: c = "auto", locale: u = null, labels: f = null, onSelectedTimeChange: h, className: g, children: _, ...v }, y) {
35
- s("timepicker", p);
36
- let b = o(null);
37
- a(y, () => b.current);
38
- let x = n(d, {
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: f
46
+ labels: p
46
47
  }, {
47
48
  idPrefix: "bs-time-list",
48
- label: v["aria-label"],
49
- rootRef: b,
49
+ label: y["aria-label"],
50
+ rootRef: x,
50
51
  emit: (e, t) => {
51
- e === "selectedTimeChange" && h?.(t);
52
+ e === "selectedTimeChange" && g?.(t);
52
53
  }
53
54
  });
54
- return /* @__PURE__ */ l(m, {
55
- ...x.props,
56
- className: g,
57
- attrs: v,
58
- rootRef: b,
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 g({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRef: d }) {
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 _ = i(function({ selectedTime: e = null, step: t = 15, min: r = null, max: i = null, hour12: c = "auto", locale: u = null, disabled: d = !1, placeholder: m = null, required: h = !1, invalid: _ = !1, errorText: v = null, inputLabel: y = null, name: b = null, labels: x = null, onSelectedTimeChange: S, onOpenChange: C, className: w, children: T, ...E }, D) {
123
- s("timepicker", p);
124
- let O = o(null);
125
- a(D, () => O.current);
126
- let k = n(f, {
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: d,
134
- placeholder: m,
135
- required: h,
136
- invalid: _,
137
- errorText: v,
138
- inputLabel: y,
139
- name: b,
140
- labels: x
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: E["aria-label"],
144
- rootRef: O,
144
+ label: D["aria-label"],
145
+ rootRef: k,
145
146
  emit: (e, t) => {
146
- e === "selectedTimeChange" && S?.(t), e === "openChange" && C?.(t);
147
+ e === "selectedTimeChange" && C?.(t), e === "openChange" && w?.(t);
147
148
  }
148
149
  });
149
- return /* @__PURE__ */ l(g, {
150
- ...k.props,
151
- className: w,
152
- attrs: E,
153
- rootRef: O,
154
- children: T
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 { h as BsTimeList, _ as BsTimepicker };
159
+ export { g as BsTimeList, v as BsTimepicker };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/BsCheckbox-BWU2Hrhf.mjs";
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