@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/navbar/index.mjs
CHANGED
|
@@ -1,50 +1,54 @@
|
|
|
1
1
|
import { r as e, t } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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
|
|
9
|
-
return /* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
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__ */
|
|
26
|
+
/* @__PURE__ */ f("input", {
|
|
23
27
|
"data-mps": "navbar",
|
|
24
28
|
...t(n.toggle)
|
|
25
29
|
}),
|
|
26
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ f("label", {
|
|
27
31
|
"data-mps": "navbar",
|
|
28
32
|
...e(n.toggler),
|
|
29
|
-
children: i.toggler === void 0 ? /* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
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__ */
|
|
38
|
+
/* @__PURE__ */ f("span", {
|
|
35
39
|
"data-mps": "navbar",
|
|
36
40
|
...e(n.bar)
|
|
37
41
|
}),
|
|
38
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ f("span", {
|
|
39
43
|
"data-mps": "navbar",
|
|
40
44
|
...e(n.bar)
|
|
41
45
|
})
|
|
42
46
|
] }) : i.toggler
|
|
43
47
|
}),
|
|
44
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ f("div", {
|
|
45
49
|
"data-mps": "navbar",
|
|
46
50
|
...e(n.collapse),
|
|
47
|
-
children: /* @__PURE__ */
|
|
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
|
|
59
|
-
|
|
60
|
-
let b =
|
|
61
|
-
|
|
62
|
-
let
|
|
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:
|
|
67
|
-
labels:
|
|
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" &&
|
|
77
|
+
e === "expandedChange" && o?.(t);
|
|
74
78
|
}
|
|
75
79
|
});
|
|
76
|
-
return /* @__PURE__ */
|
|
77
|
-
...
|
|
80
|
+
return /* @__PURE__ */ f(C, {
|
|
81
|
+
...w.props,
|
|
78
82
|
slots: {
|
|
79
|
-
brand:
|
|
80
|
-
toggler:
|
|
83
|
+
brand: s,
|
|
84
|
+
toggler: d
|
|
81
85
|
},
|
|
82
|
-
className:
|
|
86
|
+
className: p,
|
|
83
87
|
attrs: v,
|
|
84
88
|
rootRef: b,
|
|
85
|
-
children:
|
|
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
|
|
91
|
-
return /* @__PURE__ */
|
|
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
|
|
104
|
-
|
|
105
|
-
let
|
|
106
|
-
a
|
|
107
|
-
let
|
|
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:
|
|
110
|
-
rootRef:
|
|
113
|
+
label: r["aria-label"],
|
|
114
|
+
rootRef: o,
|
|
111
115
|
emit: () => void 0
|
|
112
116
|
});
|
|
113
|
-
return /* @__PURE__ */
|
|
114
|
-
...
|
|
117
|
+
return /* @__PURE__ */ f(T, {
|
|
118
|
+
...s.props,
|
|
115
119
|
className: t,
|
|
116
|
-
attrs:
|
|
117
|
-
rootRef:
|
|
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
|
|
124
|
-
return /* @__PURE__ */
|
|
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
|
|
137
|
-
|
|
138
|
-
let d =
|
|
139
|
-
|
|
140
|
-
let
|
|
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:
|
|
155
|
+
label: o["aria-label"],
|
|
146
156
|
rootRef: d,
|
|
147
157
|
emit: () => void 0
|
|
148
158
|
});
|
|
149
|
-
return /* @__PURE__ */
|
|
150
|
-
...
|
|
159
|
+
return /* @__PURE__ */ f(D, {
|
|
160
|
+
...p.props,
|
|
151
161
|
className: n,
|
|
152
|
-
attrs:
|
|
162
|
+
attrs: o,
|
|
153
163
|
rootRef: d,
|
|
154
|
-
children:
|
|
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
|
|
160
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
177
|
+
children: [/* @__PURE__ */ f("summary", {
|
|
168
178
|
"data-mps": "navbar",
|
|
169
179
|
...e(t.summary),
|
|
170
|
-
children: r.labelTemplate === void 0 ? /* @__PURE__ */
|
|
171
|
-
}), /* @__PURE__ */
|
|
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
|
|
181
|
-
|
|
182
|
-
let
|
|
183
|
-
|
|
184
|
-
let
|
|
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:
|
|
190
|
-
rootRef:
|
|
199
|
+
label: o["aria-label"],
|
|
200
|
+
rootRef: d,
|
|
191
201
|
emit: () => void 0
|
|
192
202
|
});
|
|
193
|
-
return /* @__PURE__ */
|
|
194
|
-
value:
|
|
195
|
-
children: /* @__PURE__ */
|
|
196
|
-
...
|
|
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:
|
|
199
|
-
attrs:
|
|
200
|
-
rootRef:
|
|
201
|
-
children:
|
|
208
|
+
className: r,
|
|
209
|
+
attrs: o,
|
|
210
|
+
rootRef: d,
|
|
211
|
+
children: a
|
|
202
212
|
})
|
|
203
213
|
});
|
|
204
214
|
});
|
|
205
215
|
//#endregion
|
|
206
|
-
export {
|
|
216
|
+
export { w as BsNavbar, M as BsNavbarDropdown, k as BsNavbarItem, E as BsNavbarNav };
|
package/otp-input/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 { 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
|
|
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
|
|
46
|
+
var h = [
|
|
46
47
|
1,
|
|
47
48
|
1,
|
|
48
49
|
1,
|
|
49
50
|
1,
|
|
50
51
|
1,
|
|
51
52
|
1
|
|
52
|
-
],
|
|
53
|
-
s("otp-input",
|
|
54
|
-
let
|
|
55
|
-
a(
|
|
56
|
-
let
|
|
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:
|
|
64
|
-
errorText:
|
|
65
|
-
name:
|
|
66
|
-
inputLabel:
|
|
67
|
-
value:
|
|
64
|
+
invalid: g,
|
|
65
|
+
errorText: _,
|
|
66
|
+
name: v,
|
|
67
|
+
inputLabel: y,
|
|
68
|
+
value: b
|
|
68
69
|
}, {
|
|
69
70
|
idPrefix: "bs-otp-input",
|
|
70
|
-
label:
|
|
71
|
-
rootRef:
|
|
71
|
+
label: T["aria-label"],
|
|
72
|
+
rootRef: D,
|
|
72
73
|
emit: (e, t) => {
|
|
73
|
-
e === "valueChange" &&
|
|
74
|
+
e === "valueChange" && x?.(t), e === "complete" && S?.(t);
|
|
74
75
|
}
|
|
75
76
|
});
|
|
76
|
-
return /* @__PURE__ */ l(
|
|
77
|
-
...
|
|
78
|
-
className:
|
|
79
|
-
attrs:
|
|
80
|
-
rootRef:
|
|
81
|
-
children:
|
|
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 {
|
|
86
|
+
export { g as BsOtpInput };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/react-bootstrap",
|
|
3
|
-
"version": "19.
|
|
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.
|
|
199
|
+
"@mintplayer/ui-core": "^1.5.0",
|
|
192
200
|
"react": "^19.0.0",
|
|
193
201
|
"react-dom": "^19.0.0"
|
|
194
202
|
},
|
package/pagination/index.mjs
CHANGED
|
@@ -1,41 +1,51 @@
|
|
|
1
1
|
import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
|
|
7
|
-
let { pageNumbers:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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__ */
|
|
19
|
-
|
|
20
|
-
...
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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__ */
|
|
33
|
+
children: t.kind === "gap" ? /* @__PURE__ */ i("span", {
|
|
34
|
+
"data-mps": "pagination",
|
|
27
35
|
...e(t.attrs),
|
|
28
36
|
children: t.text
|
|
29
|
-
}) :
|
|
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
|
-
|
|
42
|
+
s(e.nativeEvent) && (e.preventDefault(), C(t.target));
|
|
34
43
|
},
|
|
35
44
|
children: t.text
|
|
36
|
-
}) : /* @__PURE__ */
|
|
45
|
+
}) : /* @__PURE__ */ i("button", {
|
|
46
|
+
"data-mps": "pagination",
|
|
37
47
|
...e(t.attrs),
|
|
38
|
-
onClick: () =>
|
|
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 {
|
|
56
|
+
export { c as BsPagination };
|
package/phone-input/index.mjs
CHANGED
|
@@ -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 {
|
|
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
|
|
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
|
|
90
|
-
c("phone-input",
|
|
91
|
-
let
|
|
92
|
-
o(
|
|
93
|
-
let
|
|
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:
|
|
102
|
-
invalid:
|
|
103
|
-
errorText:
|
|
104
|
-
placeholder:
|
|
105
|
-
autocomplete:
|
|
106
|
-
name:
|
|
107
|
-
inputLabel:
|
|
108
|
-
countryLabel:
|
|
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:
|
|
112
|
-
rootRef:
|
|
112
|
+
label: k["aria-label"],
|
|
113
|
+
rootRef: j,
|
|
113
114
|
emit: (e, t) => {
|
|
114
|
-
e === "valueChange" &&
|
|
115
|
+
e === "valueChange" && w?.(t), e === "countryChange" && T?.(t), e === "phoneChange" && E?.(t);
|
|
115
116
|
}
|
|
116
117
|
});
|
|
117
|
-
return /* @__PURE__ */ u(
|
|
118
|
-
...
|
|
119
|
-
className:
|
|
120
|
-
attrs:
|
|
121
|
-
rootRef:
|
|
122
|
-
children:
|
|
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 {
|
|
127
|
+
export { g as BsPhoneInput };
|