@mintplayer/react-bootstrap 19.23.0 → 19.25.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/accordion/index.mjs +38 -58
- package/calendar/index.mjs +9 -9
- package/card/index.mjs +102 -67
- package/card/src/BsCardBody.d.ts +2 -2
- package/card/src/BsCardFooter.d.ts +2 -2
- package/card/src/BsCardGroup.d.ts +4 -3
- package/card/src/BsCardHeader.d.ts +2 -2
- package/card/src/BsCardImg.d.ts +1 -1
- package/card/src/BsCardLink.d.ts +2 -2
- package/card/src/BsCardSubtitle.d.ts +2 -2
- package/card/src/BsCardText.d.ts +2 -2
- package/card/src/BsCardTitle.d.ts +2 -2
- package/carousel/index.mjs +27 -30
- package/charts/hierarchy/index.mjs +16 -16
- package/charts/sparkline/index.mjs +9 -9
- package/charts/trend/index.mjs +12 -12
- package/checkbox/index.mjs +10 -12
- package/chunks/react-props-CKk_Kufi.mjs +24 -0
- package/code-snippet/index.mjs +12 -12
- package/datatable/index.mjs +35 -34
- package/datepicker/index.mjs +13 -13
- package/datetime-picker/index.mjs +13 -13
- package/dock/index.mjs +10 -12
- package/dropdown-menu/index.mjs +53 -46
- package/dropdown-menu/src/BsDropdownItem.d.ts +1 -1
- package/dropdown-menu/src/BsDropdownMenu.d.ts +2 -5
- package/dropdown-menu/src/index.d.ts +1 -1
- package/file-manager/index.mjs +17 -17
- package/index.mjs +0 -1
- package/input-group/index.mjs +11 -11
- package/machine/index.mjs +1 -0
- package/machine/src/index.d.ts +2 -0
- package/machine/src/react-props.d.ts +9 -0
- package/machine/src/useMachine.d.ts +16 -0
- package/multi-range/index.mjs +12 -12
- package/navbar/index.mjs +37 -48
- package/otp-input/index.mjs +12 -12
- package/package.json +11 -2
- package/pagination/index.mjs +11 -13
- package/phone-input/index.mjs +13 -13
- package/query-builder/index.mjs +18 -18
- package/radio/index.mjs +10 -12
- package/radio-group/index.mjs +11 -13
- package/react-bootstrap.css +2 -1
- package/ribbon/index.mjs +90 -129
- package/scheduler/index.mjs +21 -27
- package/select/index.mjs +9 -11
- package/shell/index.mjs +18 -23
- package/signature-pad/index.mjs +9 -11
- package/splitter/index.mjs +13 -13
- package/tab-control/index.mjs +15 -18
- package/theming/index.mjs +39 -46
- package/tile-manager/index.mjs +13 -13
- package/timeline/index.mjs +82 -97
- package/timepicker/index.mjs +14 -19
- package/toggle-button/index.mjs +11 -13
- package/tree-select/index.mjs +17 -19
- package/treeview/index.mjs +14 -14
- package/typeahead/index.mjs +107 -0
- package/typeahead/src/BsTypeahead.d.ts +48 -0
- package/typeahead/src/index.d.ts +4 -0
package/datatable/index.mjs
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { MpDatatable as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { MpDatatable as r } from "@mintplayer/web-components/datatable";
|
|
5
|
+
//#region libs/mintplayer-react-bootstrap/datatable/src/BsDatatable.tsx
|
|
6
|
+
var i = t({
|
|
7
|
+
react: e,
|
|
8
|
+
tagName: "mp-datatable",
|
|
9
|
+
elementClass: r,
|
|
10
|
+
events: {
|
|
11
|
+
onPageChange: "mp-datatable-page-change",
|
|
12
|
+
onPerPageChange: "mp-datatable-per-page-change",
|
|
13
|
+
onSortChange: "mp-datatable-sort-change",
|
|
14
|
+
onRowClick: "mp-datatable-row-click",
|
|
15
|
+
onRowDblClick: "mp-datatable-row-dblclick",
|
|
16
|
+
onRowContextMenu: "mp-datatable-row-contextmenu",
|
|
17
|
+
onSelectionChange: "mp-datatable-selection-change",
|
|
18
|
+
onRowExpand: "mp-datatable-row-expand",
|
|
19
|
+
onRowCollapse: "mp-datatable-row-collapse",
|
|
20
|
+
onExpandedIdsChange: "mp-datatable-expanded-ids-change",
|
|
21
|
+
onFilterOpen: "mp-datatable-filter-open",
|
|
22
|
+
onFilterClose: "mp-datatable-filter-close",
|
|
23
|
+
onFilterChange: "mp-datatable-filter-change"
|
|
24
|
+
}
|
|
25
|
+
}), a = e.forwardRef(function({ selectedRows: t, ...r }, a) {
|
|
26
|
+
let o = e.useRef(null);
|
|
27
|
+
return e.useImperativeHandle(a, () => o.current), e.useLayoutEffect(() => {
|
|
28
|
+
o.current && t !== void 0 && (o.current.selectedRows = t);
|
|
29
|
+
}, [t]), /* @__PURE__ */ n(i, {
|
|
30
|
+
ref: o,
|
|
31
|
+
...r
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { a as BsDatatable };
|
package/datepicker/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { createComponent as t } from "@lit/react";
|
|
3
3
|
import { MpDatepickerElement as n } from "@mintplayer/web-components/datepicker";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/datepicker/src/BsDatepicker.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-datepicker",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: {
|
|
10
|
+
onSelectedDateChange: "selected-date-change",
|
|
11
|
+
onCurrentMonthChange: "current-month-change",
|
|
12
|
+
onOpened: "opened",
|
|
13
|
+
onClosed: "closed"
|
|
14
|
+
}
|
|
14
15
|
});
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { r as BsDatepicker };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { createComponent as t } from "@lit/react";
|
|
3
|
-
import { MpDatetimePickerElement as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
import { MpDatetimePickerElement as n } from "@mintplayer/web-components/datetime-picker";
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/datetime-picker/src/BsDatetimePicker.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-datetime-picker",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: {
|
|
10
|
+
onValueChange: "value-change",
|
|
11
|
+
onOpened: "opened",
|
|
12
|
+
onClosed: "closed"
|
|
13
|
+
}
|
|
13
14
|
});
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { r as BsDatetimePicker };
|
package/dock/index.mjs
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import { createComponent as
|
|
3
|
-
import { MintDockManagerElement as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MintDockManagerElement as n } from "@mintplayer/web-components/dock";
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/dock/src/BsDockManager.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mint-dock-manager",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: { onLayoutChanged: "dock-layout-changed" }
|
|
11
10
|
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { r as BsDockManager };
|
package/dropdown-menu/index.mjs
CHANGED
|
@@ -1,46 +1,53 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { MpDropdownMenu as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { MpDropdownMenu as r } from "@mintplayer/web-components/dropdown-menu";
|
|
5
|
+
//#region libs/mintplayer-react-bootstrap/dropdown-menu/src/BsDropdownMenu.tsx
|
|
6
|
+
var i = t({
|
|
7
|
+
react: e,
|
|
8
|
+
tagName: "mp-dropdown-menu",
|
|
9
|
+
elementClass: r,
|
|
10
|
+
events: { onSelect: "select" }
|
|
11
|
+
}), a = e.forwardRef(function({ maxHeight: e, ...t }, r) {
|
|
12
|
+
return /* @__PURE__ */ n(i, {
|
|
13
|
+
ref: r,
|
|
14
|
+
...e == null ? {} : { "max-height": e },
|
|
15
|
+
...t
|
|
16
|
+
});
|
|
17
|
+
}), o = e.forwardRef(function({ active: t, disabled: r, value: i, className: a, children: o, ...s }, c) {
|
|
18
|
+
let l = e.useRef(null);
|
|
19
|
+
e.useImperativeHandle(c, () => l.current), e.useEffect(() => {
|
|
20
|
+
l.current && (l.current.dropdownValue = i);
|
|
21
|
+
}, [i]);
|
|
22
|
+
let u = [
|
|
23
|
+
"dropdown-item",
|
|
24
|
+
t ? "active" : "",
|
|
25
|
+
r ? "disabled" : "",
|
|
26
|
+
a ?? ""
|
|
27
|
+
].filter(Boolean).join(" ");
|
|
28
|
+
return /* @__PURE__ */ n("li", {
|
|
29
|
+
ref: l,
|
|
30
|
+
className: u,
|
|
31
|
+
"aria-disabled": r ? !0 : void 0,
|
|
32
|
+
...s,
|
|
33
|
+
children: o
|
|
34
|
+
});
|
|
35
|
+
}), s = e.forwardRef(function({ className: e, ...t }, r) {
|
|
36
|
+
let i = ["dropdown-divider", e ?? ""].filter(Boolean).join(" ");
|
|
37
|
+
return /* @__PURE__ */ n("li", {
|
|
38
|
+
ref: r,
|
|
39
|
+
role: "separator",
|
|
40
|
+
className: i,
|
|
41
|
+
...t
|
|
42
|
+
});
|
|
43
|
+
}), c = e.forwardRef(function({ className: e, children: t, ...r }, i) {
|
|
44
|
+
let a = ["dropdown-header", e ?? ""].filter(Boolean).join(" ");
|
|
45
|
+
return /* @__PURE__ */ n("li", {
|
|
46
|
+
ref: i,
|
|
47
|
+
className: a,
|
|
48
|
+
...r,
|
|
49
|
+
children: t
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
export { s as BsDropdownDivider, c as BsDropdownHeader, o as BsDropdownItem, a as BsDropdownMenu };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface BsDropdownItemProps extends Omit<React.LiHTMLAttributes<HTMLLIElement>, 'value'> {
|
|
3
|
-
/** Bootstrap `.active` appearance
|
|
3
|
+
/** Bootstrap `.active` appearance. */
|
|
4
4
|
active?: boolean;
|
|
5
5
|
/** Non-interactive; removed from the menu's roving order. */
|
|
6
6
|
disabled?: boolean;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { MpDropdownMenu,
|
|
1
|
+
import { MpDropdownMenu, DropdownSelectEventDetail } from '@mintplayer/web-components/dropdown-menu';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export interface BsDropdownMenuProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onSelect'> {
|
|
4
|
-
/** `menu` (default, roving-tabindex keyboard nav) | `listbox`. */
|
|
5
|
-
mode?: DropdownMode;
|
|
6
4
|
/** px cap on the menu height; scrolls beyond. Maps to the `max-height` attribute. */
|
|
7
5
|
maxHeight?: number;
|
|
8
6
|
/** Fires when an enabled item is activated; `detail.value` carries the item's value. */
|
|
@@ -17,8 +15,7 @@ export interface BsDropdownMenuProps extends Omit<React.HTMLAttributes<HTMLEleme
|
|
|
17
15
|
* The menu chrome is server-rendered as Declarative Shadow DOM (see
|
|
18
16
|
* `injectMpDropdownDsd` in `@mintplayer/web-components/dropdown-menu/ssr`), so it
|
|
19
17
|
* renders styled with JavaScript disabled. Slot `<BsDropdownItem>` /
|
|
20
|
-
* `<BsDropdownDivider>` / `<BsDropdownHeader>` children.
|
|
21
|
-
* the menu provides roving-tabindex keyboard navigation over the enabled items.
|
|
18
|
+
* `<BsDropdownDivider>` / `<BsDropdownHeader>` children. The menu provides roving-tabindex keyboard navigation over the enabled items.
|
|
22
19
|
*
|
|
23
20
|
* <BsDropdownMenu onSelect={(e) => console.log(e.detail.value)}>
|
|
24
21
|
* <BsDropdownHeader>Section</BsDropdownHeader>
|
|
@@ -4,4 +4,4 @@ export { BsDropdownItem } from './BsDropdownItem';
|
|
|
4
4
|
export type { BsDropdownItemProps } from './BsDropdownItem';
|
|
5
5
|
export { BsDropdownDivider } from './BsDropdownDivider';
|
|
6
6
|
export { BsDropdownHeader } from './BsDropdownHeader';
|
|
7
|
-
export type {
|
|
7
|
+
export type { DropdownSelectEventDetail } from '@mintplayer/web-components/dropdown-menu';
|
package/file-manager/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import { createComponent as
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
3
|
import { MpFileManager as n } from "@mintplayer/web-components/file-manager";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/file-manager/src/BsFileManager.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-file-manager",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: {
|
|
10
|
+
onNavigate: "mp-navigate",
|
|
11
|
+
onNodeOpen: "mp-node-open",
|
|
12
|
+
onSelectionChange: "mp-selection-change",
|
|
13
|
+
onUploadRequest: "mp-upload-request",
|
|
14
|
+
onOperation: "mp-operation",
|
|
15
|
+
onChildrenLoaded: "mp-children-loaded",
|
|
16
|
+
onError: "mp-error"
|
|
17
|
+
}
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { r as BsFileManager };
|
package/index.mjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/input-group/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { createComponent as
|
|
3
|
-
import { MpInputGroup as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MpInputGroup as n } from "@mintplayer/web-components/input-group";
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/input-group/src/BsInputGroup.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-input-group",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: {}
|
|
9
10
|
});
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { r as BsInputGroup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as reactProps, n as useMachine, r as useSnapshot } from "../chunks/react-props-CKk_Kufi.mjs";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** An attribute bag as a `@mintplayer/ui-core` `connect()` returns it. */
|
|
2
|
+
export type AttrBag = Record<string, string | boolean | null>;
|
|
3
|
+
/**
|
|
4
|
+
* Turn a core's attribute bag into JSX props: `null` (attribute absent) is
|
|
5
|
+
* dropped and DOM names are mapped to React's. The React counterpart of the
|
|
6
|
+
* Angular `[mpProps]` directive and Lit's attribute bindings — every front
|
|
7
|
+
* applies the same bag, so ARIA cannot drift between them.
|
|
8
|
+
*/
|
|
9
|
+
export declare function reactProps(bag: AttrBag): Record<string, string | boolean>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SnapshotOf, Store } from '@mintplayer/ui-core/store';
|
|
2
|
+
/**
|
|
3
|
+
* Read a `@mintplayer/ui-core` store from a React component. Backed by
|
|
4
|
+
* `useSyncExternalStore`, so a committed snapshot re-renders the component
|
|
5
|
+
* once and never tears under concurrent rendering (spike S1,
|
|
6
|
+
* `_conformance/behaviour/useMachine.spec.tsx`). The server snapshot is the
|
|
7
|
+
* same object, which keeps SSR output and the first client render identical.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useSnapshot<S extends object>(store: Store<S>): S;
|
|
10
|
+
/**
|
|
11
|
+
* Own a machine for the lifetime of the component: created once, destroyed on
|
|
12
|
+
* unmount. Returns the machine and its live snapshot.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useMachine<M extends Store<object> & {
|
|
15
|
+
destroy(): void;
|
|
16
|
+
}>(create: () => M): [M, SnapshotOf<M>];
|
package/multi-range/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { createComponent as t } from "@lit/react";
|
|
3
|
-
import { MintMultiRangeElement as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
import { MintMultiRangeElement as n } from "@mintplayer/web-components/multi-range";
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/multi-range/src/BsMultiRange.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-multi-range",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: {
|
|
10
|
+
onValueInput: "value-input",
|
|
11
|
+
onValueChange: "value-change"
|
|
12
|
+
}
|
|
12
13
|
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as BsMultiRange };
|
package/navbar/index.mjs
CHANGED
|
@@ -1,49 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { MpNavbar as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
react: a,
|
|
37
|
-
tagName: "mp-navbar-brand",
|
|
38
|
-
elementClass: v
|
|
39
|
-
}), M = e({
|
|
40
|
-
react: a,
|
|
41
|
-
tagName: "mp-navbar-dropdown",
|
|
42
|
-
elementClass: d
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { MpNavbar as r, MpNavbarBrand as i, MpNavbarDropdown as a, MpNavbarItem as o } from "@mintplayer/web-components/navbar";
|
|
5
|
+
//#region libs/mintplayer-react-bootstrap/navbar/src/BsNavbar.tsx
|
|
6
|
+
var s = t({
|
|
7
|
+
react: e,
|
|
8
|
+
tagName: "mp-navbar",
|
|
9
|
+
elementClass: r,
|
|
10
|
+
events: { onExpandedChange: "expandedchange" }
|
|
11
|
+
}), c = e.forwardRef(function({ expanded: e, ...t }, r) {
|
|
12
|
+
return /* @__PURE__ */ n(s, {
|
|
13
|
+
ref: r,
|
|
14
|
+
...e ? { expanded: "" } : {},
|
|
15
|
+
...t
|
|
16
|
+
});
|
|
17
|
+
}), l = t({
|
|
18
|
+
react: e,
|
|
19
|
+
tagName: "mp-navbar-item",
|
|
20
|
+
elementClass: o
|
|
21
|
+
}), u = e.forwardRef(function({ active: e, disabled: t, ...r }, i) {
|
|
22
|
+
return /* @__PURE__ */ n(l, {
|
|
23
|
+
ref: i,
|
|
24
|
+
...e ? { active: "" } : {},
|
|
25
|
+
...t ? { disabled: "" } : {},
|
|
26
|
+
...r
|
|
27
|
+
});
|
|
28
|
+
}), d = t({
|
|
29
|
+
react: e,
|
|
30
|
+
tagName: "mp-navbar-brand",
|
|
31
|
+
elementClass: i
|
|
32
|
+
}), f = t({
|
|
33
|
+
react: e,
|
|
34
|
+
tagName: "mp-navbar-dropdown",
|
|
35
|
+
elementClass: a
|
|
43
36
|
});
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
g as BsNavbarBrand,
|
|
47
|
-
M as BsNavbarDropdown,
|
|
48
|
-
C as BsNavbarItem
|
|
49
|
-
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { c as BsNavbar, d as BsNavbarBrand, f as BsNavbarDropdown, u as BsNavbarItem };
|
package/otp-input/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { createComponent as t } from "@lit/react";
|
|
3
|
-
import { MintOtpInputElement as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
import { MintOtpInputElement as n } from "@mintplayer/web-components/otp-input";
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/otp-input/src/BsOtpInput.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-otp-input",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: {
|
|
10
|
+
onValueChange: "value-change",
|
|
11
|
+
onComplete: "complete"
|
|
12
|
+
}
|
|
12
13
|
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as BsOtpInput };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/react-bootstrap",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.25.0",
|
|
4
4
|
"description": "React 19 wrappers around @mintplayer/web-components. Each sub-entry maps one-to-one with a WC sub-entry and exposes typed React components via @lit/react's createComponent.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -90,6 +90,10 @@
|
|
|
90
90
|
"types": "./input-group/src/index.d.ts",
|
|
91
91
|
"import": "./input-group/index.mjs"
|
|
92
92
|
},
|
|
93
|
+
"./machine": {
|
|
94
|
+
"types": "./machine/src/index.d.ts",
|
|
95
|
+
"import": "./machine/index.mjs"
|
|
96
|
+
},
|
|
93
97
|
"./multi-range": {
|
|
94
98
|
"types": "./multi-range/src/index.d.ts",
|
|
95
99
|
"import": "./multi-range/index.mjs"
|
|
@@ -177,13 +181,18 @@
|
|
|
177
181
|
"./treeview": {
|
|
178
182
|
"types": "./treeview/src/index.d.ts",
|
|
179
183
|
"import": "./treeview/index.mjs"
|
|
184
|
+
},
|
|
185
|
+
"./typeahead": {
|
|
186
|
+
"types": "./typeahead/src/index.d.ts",
|
|
187
|
+
"import": "./typeahead/index.mjs"
|
|
180
188
|
}
|
|
181
189
|
},
|
|
182
190
|
"peerDependencies": {
|
|
191
|
+
"@mintplayer/ui-core": "^1.0.0",
|
|
183
192
|
"react": "^19.0.0",
|
|
184
193
|
"react-dom": "^19.0.0",
|
|
185
194
|
"@lit/react": "^1.0.0",
|
|
186
|
-
"@mintplayer/web-components": "^2.
|
|
195
|
+
"@mintplayer/web-components": "^2.21.0"
|
|
187
196
|
},
|
|
188
197
|
"dependencies": {
|
|
189
198
|
"tslib": "^2.3.0"
|
package/pagination/index.mjs
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { createComponent as
|
|
3
|
-
import { MpPagination as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MpPagination as n } from "@mintplayer/web-components/pagination";
|
|
4
|
+
//#region libs/mintplayer-react-bootstrap/pagination/src/BsPagination.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
react: e,
|
|
7
|
+
tagName: "mp-pagination",
|
|
8
|
+
elementClass: n,
|
|
9
|
+
events: { onMpPaginationPageChange: "mp-pagination-page-change" }
|
|
11
10
|
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { r as BsPagination };
|