@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.
Files changed (57) 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-am6uNreO.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/datatable/src/generated/BsDatatable.generated.d.ts +4 -2
  19. package/datepicker/index.mjs +28 -27
  20. package/datetime-picker/index.mjs +1 -1
  21. package/dropdown-menu/index.mjs +43 -38
  22. package/file-manager/index.mjs +21 -20
  23. package/input-group/index.mjs +17 -15
  24. package/machine/index.mjs +48 -39
  25. package/machine/src/index.d.ts +1 -0
  26. package/machine/src/mark-links.d.ts +8 -0
  27. package/nav/index.mjs +85 -0
  28. package/nav/src/generated/BsNav.generated.d.ts +15 -0
  29. package/nav/src/generated/BsNavItem.generated.d.ts +6 -0
  30. package/nav/src/generated/index.d.ts +2 -0
  31. package/nav/src/generated/nav-item.view.generated.d.ts +14 -0
  32. package/nav/src/generated/nav.view.generated.d.ts +14 -0
  33. package/nav/src/index.d.ts +1 -0
  34. package/nav/src/nav-item.react.d.ts +4 -0
  35. package/navbar/index.mjs +87 -77
  36. package/navbar/src/navbar-item.react.d.ts +4 -0
  37. package/otp-input/index.mjs +24 -23
  38. package/package.json +10 -2
  39. package/pagination/index.mjs +37 -27
  40. package/phone-input/index.mjs +26 -25
  41. package/query-builder/index.mjs +30 -28
  42. package/radio/index.mjs +1 -1
  43. package/radio-group/index.mjs +1 -1
  44. package/scheduler/index.mjs +42 -41
  45. package/select/index.mjs +27 -26
  46. package/signature-pad/index.mjs +23 -22
  47. package/spinner/index.mjs +50 -0
  48. package/spinner/src/generated/BsSpinner.generated.d.ts +11 -0
  49. package/spinner/src/generated/index.d.ts +1 -0
  50. package/spinner/src/generated/spinner.view.generated.d.ts +15 -0
  51. package/spinner/src/index.d.ts +1 -0
  52. package/tab-control/index.mjs +56 -54
  53. package/timepicker/index.mjs +42 -41
  54. package/toggle-button/index.mjs +1 -1
  55. package/typeahead/index.mjs +90 -87
  56. package/chunks/BsCheckbox-BWU2Hrhf.mjs +0 -57
  57. package/chunks/BsRadio-D1C6Aqjv.mjs +0 -48
package/navbar/index.mjs CHANGED
@@ -1,50 +1,54 @@
1
1
  import { r as e, t } from "../chunks/react-props-C2O2_2V2.mjs";
2
- import { reactCoreContext as n, useCore as r } from "../machine/index.mjs";
3
- import { forwardRef as i, useImperativeHandle as a, useRef as o } from "react";
4
- import { installLightStyles as s } from "@mintplayer/ui-core/scoped-styles";
5
- import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
6
- import { NAVBAR_NESTING as d, navbarCore as f, navbarDropdownCore as p, navbarItemCore as m, navbarNavCore as h, navbarScopedStyles as g } from "@mintplayer/ui-core/navbar";
2
+ import { markLinks as n, reactCoreContext as r, useCore as i } from "../machine/index.mjs";
3
+ import * as a from "react";
4
+ import { forwardRef as o, useContext as s, useImperativeHandle as c, useRef as l } from "react";
5
+ import { installLightStyles as u } from "@mintplayer/ui-core/scoped-styles";
6
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
7
+ import { bootstrapDropdown as m } from "@mintplayer/ui-core/bootstrap/dropdown";
8
+ import { bootstrapNav as h } from "@mintplayer/ui-core/bootstrap/nav";
9
+ import { NAVBAR_NESTING as g, navbarCore as _, navbarDropdownCore as v, navbarItemCore as y, navbarNavCore as b, navbarScopedStyles as x } from "@mintplayer/ui-core/navbar";
10
+ import { bootstrapNavbar as S } from "@mintplayer/ui-core/bootstrap/navbar";
7
11
  //#region libs/mintplayer-react-bootstrap/navbar/src/generated/navbar.view.generated.tsx
8
- function _({ view: n, brand: r, slots: i = {}, children: a, className: o, attrs: s, rootRef: d }) {
9
- return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("nav", {
12
+ function C({ view: n, brand: r, slots: i = {}, children: a, className: o, attrs: s, rootRef: c }) {
13
+ return /* @__PURE__ */ f(d, { children: /* @__PURE__ */ p("nav", {
10
14
  "data-mps": "navbar",
11
15
  ...e(n.root),
12
- ref: d,
16
+ ref: c,
13
17
  ...s,
14
18
  role: n.root.role ?? s?.role,
15
19
  className: [n.root.class, o].filter(Boolean).join(" ") || void 0,
16
20
  children: [
17
- i.brand ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("div", {
21
+ i.brand ? /* @__PURE__ */ f(d, { children: /* @__PURE__ */ f("div", {
18
22
  "data-mps": "navbar",
19
23
  ...e(r),
20
24
  children: i.brand === void 0 ? null : i.brand
21
25
  }) }) : null,
22
- /* @__PURE__ */ l("input", {
26
+ /* @__PURE__ */ f("input", {
23
27
  "data-mps": "navbar",
24
28
  ...t(n.toggle)
25
29
  }),
26
- /* @__PURE__ */ l("label", {
30
+ /* @__PURE__ */ f("label", {
27
31
  "data-mps": "navbar",
28
32
  ...e(n.toggler),
29
- children: i.toggler === void 0 ? /* @__PURE__ */ u(c, { children: [
30
- /* @__PURE__ */ l("span", {
33
+ children: i.toggler === void 0 ? /* @__PURE__ */ p(d, { children: [
34
+ /* @__PURE__ */ f("span", {
31
35
  "data-mps": "navbar",
32
36
  ...e(n.bar)
33
37
  }),
34
- /* @__PURE__ */ l("span", {
38
+ /* @__PURE__ */ f("span", {
35
39
  "data-mps": "navbar",
36
40
  ...e(n.bar)
37
41
  }),
38
- /* @__PURE__ */ l("span", {
42
+ /* @__PURE__ */ f("span", {
39
43
  "data-mps": "navbar",
40
44
  ...e(n.bar)
41
45
  })
42
46
  ] }) : i.toggler
43
47
  }),
44
- /* @__PURE__ */ l("div", {
48
+ /* @__PURE__ */ f("div", {
45
49
  "data-mps": "navbar",
46
50
  ...e(n.collapse),
47
- children: /* @__PURE__ */ l("div", {
51
+ children: /* @__PURE__ */ f("div", {
48
52
  "data-mps": "navbar",
49
53
  ...e(n.inner),
50
54
  children: a ?? null
@@ -55,40 +59,40 @@ function _({ view: n, brand: r, slots: i = {}, children: a, className: o, attrs:
55
59
  }
56
60
  //#endregion
57
61
  //#region libs/mintplayer-react-bootstrap/navbar/src/generated/BsNavbar.generated.tsx
58
- var v = i(function({ breakpoint: e = "md", color: t, expanded: n = !1, positioning: i, labels: c, onExpandedChange: u, brand: d, toggler: p, className: m, children: h, ...v }, y) {
59
- s("navbar", g);
60
- let b = o(null);
61
- a(y, () => b.current);
62
- let x = r(f, {
62
+ var w = o(function({ breakpoint: e = "md", color: t, expanded: n = !1, positioning: r, labels: a, onExpandedChange: o, brand: s, toggler: d, className: p, children: g, ...v }, y) {
63
+ u(m.key, m.css, { order: m.order }), u(h.key, h.css, { order: h.order }), u(S.key, S.css, { order: S.order }), u("navbar", x);
64
+ let b = l(null);
65
+ c(y, () => b.current);
66
+ let w = i(_, {
63
67
  breakpoint: e,
64
68
  color: t,
65
69
  expanded: n,
66
- positioning: i,
67
- labels: c
70
+ positioning: r,
71
+ labels: a
68
72
  }, {
69
73
  idPrefix: "bs-navbar",
70
74
  label: v["aria-label"],
71
75
  rootRef: b,
72
76
  emit: (e, t) => {
73
- e === "expandedChange" && u?.(t);
77
+ e === "expandedChange" && o?.(t);
74
78
  }
75
79
  });
76
- return /* @__PURE__ */ l(_, {
77
- ...x.props,
80
+ return /* @__PURE__ */ f(C, {
81
+ ...w.props,
78
82
  slots: {
79
- brand: d,
80
- toggler: p
83
+ brand: s,
84
+ toggler: d
81
85
  },
82
- className: m,
86
+ className: p,
83
87
  attrs: v,
84
88
  rootRef: b,
85
- children: h
89
+ children: g
86
90
  });
87
91
  });
88
92
  //#endregion
89
93
  //#region libs/mintplayer-react-bootstrap/navbar/src/generated/navbar-nav.view.generated.tsx
90
- function y({ bag: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: o }) {
91
- return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("div", {
94
+ function T({ bag: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: o }) {
95
+ return /* @__PURE__ */ f(d, { children: /* @__PURE__ */ f("div", {
92
96
  "data-mps": "navbar",
93
97
  ...e(t),
94
98
  ref: o,
@@ -100,28 +104,28 @@ function y({ bag: t, slots: n = {}, children: r, className: i, attrs: a, rootRef
100
104
  }
101
105
  //#endregion
102
106
  //#region libs/mintplayer-react-bootstrap/navbar/src/generated/BsNavbarNav.generated.tsx
103
- var b = i(function({ align: e = "start", className: t, children: n, ...i }, c) {
104
- s("navbar", g);
105
- let u = o(null);
106
- a(c, () => u.current);
107
- let d = r(h, { align: e }, {
107
+ var E = o(function({ align: e = "start", className: t, children: n, ...r }, a) {
108
+ u(m.key, m.css, { order: m.order }), u(h.key, h.css, { order: h.order }), u(S.key, S.css, { order: S.order }), u("navbar", x);
109
+ let o = l(null);
110
+ c(a, () => o.current);
111
+ let s = i(b, { align: e }, {
108
112
  idPrefix: "bs-navbar-nav",
109
- label: i["aria-label"],
110
- rootRef: u,
113
+ label: r["aria-label"],
114
+ rootRef: o,
111
115
  emit: () => void 0
112
116
  });
113
- return /* @__PURE__ */ l(y, {
114
- ...d.props,
117
+ return /* @__PURE__ */ f(T, {
118
+ ...s.props,
115
119
  className: t,
116
- attrs: i,
117
- rootRef: u,
120
+ attrs: r,
121
+ rootRef: o,
118
122
  children: n
119
123
  });
120
124
  });
121
125
  //#endregion
122
126
  //#region libs/mintplayer-react-bootstrap/navbar/src/generated/navbar-item.view.generated.tsx
123
- function x({ bag: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: o }) {
124
- return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("div", {
127
+ function D({ bag: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: o }) {
128
+ return /* @__PURE__ */ f(d, { children: /* @__PURE__ */ f("div", {
125
129
  "data-mps": "navbar",
126
130
  ...e(t),
127
131
  ref: o,
@@ -132,43 +136,49 @@ function x({ bag: t, slots: n = {}, children: r, className: i, attrs: a, rootRef
132
136
  }) });
133
137
  }
134
138
  //#endregion
139
+ //#region libs/mintplayer-react-bootstrap/navbar/src/navbar-item.react.ts
140
+ function O({ children: e }) {
141
+ let { depth: t } = s(r(g));
142
+ return t >= 0 ? e : n(e, "nav-link", "navbar");
143
+ }
144
+ //#endregion
135
145
  //#region libs/mintplayer-react-bootstrap/navbar/src/generated/BsNavbarItem.generated.tsx
136
- var S = i(function({ active: e = !1, disabled: t = !1, className: n, children: i, ...c }, u) {
137
- s("navbar", g);
138
- let d = o(null);
139
- a(u, () => d.current);
140
- let f = r(m, {
146
+ var k = o(function({ active: e = !1, disabled: t = !1, className: n, children: r, ...o }, s) {
147
+ u(m.key, m.css, { order: m.order }), u(h.key, h.css, { order: h.order }), u(S.key, S.css, { order: S.order }), u("navbar", x);
148
+ let d = l(null);
149
+ c(s, () => d.current);
150
+ let p = i(y, {
141
151
  active: e,
142
152
  disabled: t
143
153
  }, {
144
154
  idPrefix: "bs-navbar-item",
145
- label: c["aria-label"],
155
+ label: o["aria-label"],
146
156
  rootRef: d,
147
157
  emit: () => void 0
148
158
  });
149
- return /* @__PURE__ */ l(x, {
150
- ...f.props,
159
+ return /* @__PURE__ */ f(D, {
160
+ ...p.props,
151
161
  className: n,
152
- attrs: c,
162
+ attrs: o,
153
163
  rootRef: d,
154
- children: i
164
+ children: a.createElement(O, null, r)
155
165
  });
156
166
  });
157
167
  //#endregion
158
168
  //#region libs/mintplayer-react-bootstrap/navbar/src/generated/navbar-dropdown.view.generated.tsx
159
- function C({ view: t, label: n, slots: r = {}, children: i, className: a, attrs: o, rootRef: s }) {
160
- return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("details", {
169
+ function A({ view: t, label: n, slots: r = {}, children: i, className: a, attrs: o, rootRef: s }) {
170
+ return /* @__PURE__ */ f(d, { children: /* @__PURE__ */ p("details", {
161
171
  "data-mps": "navbar",
162
172
  ...e(t.details),
163
173
  ref: s,
164
174
  ...o,
165
175
  role: t.details.role ?? o?.role,
166
176
  className: [t.details.class, a].filter(Boolean).join(" ") || void 0,
167
- children: [/* @__PURE__ */ l("summary", {
177
+ children: [/* @__PURE__ */ f("summary", {
168
178
  "data-mps": "navbar",
169
179
  ...e(t.summary),
170
- children: r.labelTemplate === void 0 ? /* @__PURE__ */ l(c, { children: n }) : r.labelTemplate
171
- }), /* @__PURE__ */ l("div", {
180
+ children: r.labelTemplate === void 0 ? /* @__PURE__ */ f(d, { children: n }) : r.labelTemplate
181
+ }), /* @__PURE__ */ f("div", {
172
182
  "data-mps": "navbar",
173
183
  ...e(t.panel),
174
184
  children: i ?? null
@@ -177,30 +187,30 @@ function C({ view: t, label: n, slots: r = {}, children: i, className: a, attrs:
177
187
  }
178
188
  //#endregion
179
189
  //#region libs/mintplayer-react-bootstrap/navbar/src/generated/BsNavbarDropdown.generated.tsx
180
- var w = n(d), T = i(function({ label: e, active: t = !1, labelTemplate: n, className: i, children: c, ...u }, d) {
181
- s("navbar", g);
182
- let f = o(null);
183
- a(d, () => f.current);
184
- let m = r(p, {
190
+ var j = r(g), M = o(function({ label: e, active: t = !1, labelTemplate: n, className: r, children: a, ...o }, s) {
191
+ u(m.key, m.css, { order: m.order }), u(h.key, h.css, { order: h.order }), u(S.key, S.css, { order: S.order }), u("navbar", x);
192
+ let d = l(null);
193
+ c(s, () => d.current);
194
+ let p = i(v, {
185
195
  label: e,
186
196
  active: t
187
197
  }, {
188
198
  idPrefix: "bs-navbar-dropdown",
189
- label: u["aria-label"],
190
- rootRef: f,
199
+ label: o["aria-label"],
200
+ rootRef: d,
191
201
  emit: () => void 0
192
202
  });
193
- return /* @__PURE__ */ l(w.Provider, {
194
- value: m.provided,
195
- children: /* @__PURE__ */ l(C, {
196
- ...m.props,
203
+ return /* @__PURE__ */ f(j.Provider, {
204
+ value: p.provided,
205
+ children: /* @__PURE__ */ f(A, {
206
+ ...p.props,
197
207
  slots: { labelTemplate: n },
198
- className: i,
199
- attrs: u,
200
- rootRef: f,
201
- children: c
208
+ className: r,
209
+ attrs: o,
210
+ rootRef: d,
211
+ children: a
202
212
  })
203
213
  });
204
214
  });
205
215
  //#endregion
206
- export { v as BsNavbar, T as BsNavbarDropdown, S as BsNavbarItem, b as BsNavbarNav };
216
+ export { w as BsNavbar, M as BsNavbarDropdown, k as BsNavbarItem, E as BsNavbarNav };
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ export declare function Children({ children }: {
3
+ children?: ReactNode;
4
+ }): ReactNode;
@@ -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 { otpInputCore as d, otpInputScopedStyles as f } from "@mintplayer/ui-core/otp-input";
7
+ import { bootstrapForms as d } from "@mintplayer/ui-core/bootstrap/forms";
8
+ import { otpInputCore as f, otpInputScopedStyles as p } from "@mintplayer/ui-core/otp-input";
8
9
  //#region libs/mintplayer-react-bootstrap/otp-input/src/generated/otp-input.view.generated.tsx
9
- function p({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRef: d }) {
10
+ function m({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRef: d }) {
10
11
  return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("div", {
11
12
  "data-mps": "otp-input",
12
13
  ...e(n.root),
@@ -42,44 +43,44 @@ function p({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRe
42
43
  }
43
44
  //#endregion
44
45
  //#region libs/mintplayer-react-bootstrap/otp-input/src/generated/BsOtpInput.generated.tsx
45
- var m = [
46
+ var h = [
46
47
  1,
47
48
  1,
48
49
  1,
49
50
  1,
50
51
  1,
51
52
  1
52
- ], h = i(function({ groups: e = m, type: t = "numeric", letterCase: r = "upper", size: i = "md", disabled: c = !1, required: u = !1, invalid: h = !1, errorText: g, name: _, inputLabel: v, value: y = "", onValueChange: b, onComplete: x, className: S, children: C, ...w }, T) {
53
- s("otp-input", f);
54
- let E = o(null);
55
- a(T, () => E.current);
56
- let D = n(d, {
53
+ ], g = i(function({ groups: e = h, type: t = "numeric", letterCase: r = "upper", size: i = "md", disabled: c = !1, required: u = !1, invalid: g = !1, errorText: _, name: v, inputLabel: y, value: b = "", onValueChange: x, onComplete: S, className: C, children: w, ...T }, E) {
54
+ s(d.key, d.css, { order: d.order }), s("otp-input", p);
55
+ let D = o(null);
56
+ a(E, () => D.current);
57
+ let O = n(f, {
57
58
  groups: e,
58
59
  type: t,
59
60
  letterCase: r,
60
61
  size: i,
61
62
  disabled: c,
62
63
  required: u,
63
- invalid: h,
64
- errorText: g,
65
- name: _,
66
- inputLabel: v,
67
- value: y
64
+ invalid: g,
65
+ errorText: _,
66
+ name: v,
67
+ inputLabel: y,
68
+ value: b
68
69
  }, {
69
70
  idPrefix: "bs-otp-input",
70
- label: w["aria-label"],
71
- rootRef: E,
71
+ label: T["aria-label"],
72
+ rootRef: D,
72
73
  emit: (e, t) => {
73
- e === "valueChange" && b?.(t), e === "complete" && x?.(t);
74
+ e === "valueChange" && x?.(t), e === "complete" && S?.(t);
74
75
  }
75
76
  });
76
- return /* @__PURE__ */ l(p, {
77
- ...D.props,
78
- className: S,
79
- attrs: w,
80
- rootRef: E,
81
- children: C
77
+ return /* @__PURE__ */ l(m, {
78
+ ...O.props,
79
+ className: C,
80
+ attrs: T,
81
+ rootRef: D,
82
+ children: w
82
83
  });
83
84
  });
84
85
  //#endregion
85
- export { h as BsOtpInput };
86
+ export { g as BsOtpInput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/react-bootstrap",
3
- "version": "19.29.0",
3
+ "version": "19.31.0",
4
4
  "description": "React 19 Bootstrap components. Each sub-entry renders its own JSX over a framework-neutral core from @mintplayer/ui-core, so it server-renders real HTML and defines no custom elements.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -98,6 +98,10 @@
98
98
  "types": "./multi-range/src/index.d.ts",
99
99
  "import": "./multi-range/index.mjs"
100
100
  },
101
+ "./nav": {
102
+ "types": "./nav/src/index.d.ts",
103
+ "import": "./nav/index.mjs"
104
+ },
101
105
  "./navbar": {
102
106
  "types": "./navbar/src/index.d.ts",
103
107
  "import": "./navbar/index.mjs"
@@ -146,6 +150,10 @@
146
150
  "types": "./signature-pad/src/index.d.ts",
147
151
  "import": "./signature-pad/index.mjs"
148
152
  },
153
+ "./spinner": {
154
+ "types": "./spinner/src/index.d.ts",
155
+ "import": "./spinner/index.mjs"
156
+ },
149
157
  "./splitter": {
150
158
  "types": "./splitter/src/index.d.ts",
151
159
  "import": "./splitter/index.mjs"
@@ -188,7 +196,7 @@
188
196
  }
189
197
  },
190
198
  "peerDependencies": {
191
- "@mintplayer/ui-core": "^1.3.0",
199
+ "@mintplayer/ui-core": "^1.5.0",
192
200
  "react": "^19.0.0",
193
201
  "react-dom": "^19.0.0"
194
202
  },
@@ -1,41 +1,51 @@
1
1
  import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
2
- import { forwardRef as t, useState as n } from "react";
3
- import { jsx as r } from "react/jsx-runtime";
4
- import { connectPagination as i, isPlainClick as a } from "@mintplayer/ui-core/pagination";
2
+ import { installBootstrap as t } from "@mintplayer/ui-core/bootstrap";
3
+ import { forwardRef as n, useState as r } from "react";
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ import { bootstrapPagination as a } from "@mintplayer/ui-core/bootstrap/pagination";
6
+ import { connectPagination as o, isPlainClick as s } from "@mintplayer/ui-core/pagination";
5
7
  //#region libs/mintplayer-react-bootstrap/pagination/src/BsPagination.tsx
6
- var o = t(function(t, o) {
7
- let { pageNumbers: s = [], selectedPageNumber: c, defaultSelectedPageNumber: l = 1, numberOfBoxes: u = 0, showArrows: d = !0, size: f = "medium", labels: p = null, hrefFor: m = null, onPageChange: h, ...g } = t, [_, v] = n(l), y = c ?? _, b = i({
8
- pageNumbers: s,
9
- selectedPageNumber: y,
10
- numberOfBoxes: u,
11
- showArrows: d,
12
- size: f,
13
- labels: p,
14
- hrefFor: m
15
- }), x = (e) => {
16
- e !== null && e !== y && (v(e), h?.(e));
8
+ var c = n(function(n, c) {
9
+ let { pageNumbers: l = [], selectedPageNumber: u, defaultSelectedPageNumber: d = 1, numberOfBoxes: f = 0, showArrows: p = !0, size: m = "medium", labels: h = null, hrefFor: g = null, onPageChange: _, ...v } = n;
10
+ t(a);
11
+ let [y, b] = r(d), x = u ?? y, S = o({
12
+ pageNumbers: l,
13
+ selectedPageNumber: x,
14
+ numberOfBoxes: f,
15
+ showArrows: p,
16
+ size: m,
17
+ labels: h,
18
+ hrefFor: g
19
+ }), C = (e) => {
20
+ e !== null && e !== x && (b(e), _?.(e));
17
21
  };
18
- return /* @__PURE__ */ r("nav", {
19
- ...e(b.nav),
20
- ...g,
21
- ref: o,
22
- children: /* @__PURE__ */ r("ul", {
23
- className: b.listClass,
24
- children: b.entries.map((t) => /* @__PURE__ */ r("li", {
22
+ return /* @__PURE__ */ i("nav", {
23
+ "data-mps": "pagination",
24
+ ...e(S.nav),
25
+ ...v,
26
+ ref: c,
27
+ children: /* @__PURE__ */ i("ul", {
28
+ "data-mps": "pagination",
29
+ className: S.listClass,
30
+ children: S.entries.map((t) => /* @__PURE__ */ i("li", {
31
+ "data-mps": "pagination",
25
32
  className: t.itemClass,
26
- children: t.kind === "gap" ? /* @__PURE__ */ r("span", {
33
+ children: t.kind === "gap" ? /* @__PURE__ */ i("span", {
34
+ "data-mps": "pagination",
27
35
  ...e(t.attrs),
28
36
  children: t.text
29
- }) : b.tag === "a" ? /* @__PURE__ */ r("a", {
37
+ }) : S.tag === "a" ? /* @__PURE__ */ i("a", {
38
+ "data-mps": "pagination",
30
39
  ...e(t.attrs),
31
40
  href: t.href ?? void 0,
32
41
  onClick: (e) => {
33
- a(e.nativeEvent) && (e.preventDefault(), x(t.target));
42
+ s(e.nativeEvent) && (e.preventDefault(), C(t.target));
34
43
  },
35
44
  children: t.text
36
- }) : /* @__PURE__ */ r("button", {
45
+ }) : /* @__PURE__ */ i("button", {
46
+ "data-mps": "pagination",
37
47
  ...e(t.attrs),
38
- onClick: () => x(t.target),
48
+ onClick: () => C(t.target),
39
49
  children: t.text
40
50
  })
41
51
  }, t.key))
@@ -43,4 +53,4 @@ var o = t(function(t, o) {
43
53
  });
44
54
  });
45
55
  //#endregion
46
- export { o as BsPagination };
56
+ export { c as BsPagination };
@@ -4,9 +4,10 @@ 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 { phoneInputCore as f, phoneInputScopedStyles as p } from "@mintplayer/ui-core/phone-input";
7
+ import { bootstrapForms as f } from "@mintplayer/ui-core/bootstrap/forms";
8
+ import { phoneInputCore as p, phoneInputScopedStyles as m } from "@mintplayer/ui-core/phone-input";
8
9
  //#region libs/mintplayer-react-bootstrap/phone-input/src/generated/phone-input.view.generated.tsx
9
- function m({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
10
+ function h({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
10
11
  return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
11
12
  "data-mps": "phone-input",
12
13
  ...t(r.root),
@@ -86,11 +87,11 @@ function m({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
86
87
  }
87
88
  //#endregion
88
89
  //#region libs/mintplayer-react-bootstrap/phone-input/src/generated/BsPhoneInput.generated.tsx
89
- var h = a(function({ value: e = null, country: t = null, defaultCountry: n, locale: i, preferredCountries: a = null, allowedCountries: l = null, disabled: d = !1, required: h = !1, invalid: g = !1, errorText: _, placeholder: v, autocomplete: y = "tel-national", name: b, inputLabel: x, countryLabel: S, onValueChange: C, onCountryChange: w, onPhoneChange: T, className: E, children: D, ...O }, k) {
90
- c("phone-input", p);
91
- let A = s(null);
92
- o(k, () => A.current);
93
- let j = r(f, {
90
+ var g = a(function({ value: e = null, country: t = null, defaultCountry: n, locale: i, preferredCountries: a = null, allowedCountries: l = null, disabled: d = !1, required: g = !1, invalid: _ = !1, errorText: v, placeholder: y, autocomplete: b = "tel-national", name: x, inputLabel: S, countryLabel: C, onValueChange: w, onCountryChange: T, onPhoneChange: E, className: D, children: O, ...k }, A) {
91
+ c(f.key, f.css, { order: f.order }), c("phone-input", m);
92
+ let j = s(null);
93
+ o(A, () => j.current);
94
+ let M = r(p, {
94
95
  value: e,
95
96
  country: t,
96
97
  defaultCountry: n,
@@ -98,29 +99,29 @@ var h = a(function({ value: e = null, country: t = null, defaultCountry: n, loca
98
99
  preferredCountries: a,
99
100
  allowedCountries: l,
100
101
  disabled: d,
101
- required: h,
102
- invalid: g,
103
- errorText: _,
104
- placeholder: v,
105
- autocomplete: y,
106
- name: b,
107
- inputLabel: x,
108
- countryLabel: S
102
+ required: g,
103
+ invalid: _,
104
+ errorText: v,
105
+ placeholder: y,
106
+ autocomplete: b,
107
+ name: x,
108
+ inputLabel: S,
109
+ countryLabel: C
109
110
  }, {
110
111
  idPrefix: "bs-phone-input",
111
- label: O["aria-label"],
112
- rootRef: A,
112
+ label: k["aria-label"],
113
+ rootRef: j,
113
114
  emit: (e, t) => {
114
- e === "valueChange" && C?.(t), e === "countryChange" && w?.(t), e === "phoneChange" && T?.(t);
115
+ e === "valueChange" && w?.(t), e === "countryChange" && T?.(t), e === "phoneChange" && E?.(t);
115
116
  }
116
117
  });
117
- return /* @__PURE__ */ u(m, {
118
- ...j.props,
119
- className: E,
120
- attrs: O,
121
- rootRef: A,
122
- children: D
118
+ return /* @__PURE__ */ u(h, {
119
+ ...M.props,
120
+ className: D,
121
+ attrs: k,
122
+ rootRef: j,
123
+ children: O
123
124
  });
124
125
  });
125
126
  //#endregion
126
- export { h as BsPhoneInput };
127
+ export { g as BsPhoneInput };