@mintplayer/react-bootstrap 19.33.0 → 19.34.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.
@@ -0,0 +1,91 @@
1
+ import { reactProps as e, reactStyle as t, useCore as n } from "../machine/index.mjs";
2
+ import { forwardRef as r, useImperativeHandle as i, useRef as a } from "react";
3
+ import { installLightStyles as o } from "@mintplayer/ui-core/scoped-styles";
4
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
5
+ import { splitterCore as u, splitterPanelCore as d, splitterScopedStyles as f } from "@mintplayer/ui-core/splitter";
6
+ //#region libs/mintplayer-react-bootstrap/splitter/src/generated/splitter.view.generated.tsx
7
+ function p({ view: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: o }) {
8
+ return /* @__PURE__ */ c(s, { children: /* @__PURE__ */ c("div", {
9
+ "data-mps": "splitter",
10
+ ...e(t.root),
11
+ ref: o,
12
+ ...a,
13
+ role: t.root.role ?? a?.role,
14
+ className: [t.root.class, i].filter(Boolean).join(" ") || void 0,
15
+ children: r ?? null
16
+ }) });
17
+ }
18
+ //#endregion
19
+ //#region libs/mintplayer-react-bootstrap/splitter/src/generated/BsSplitter.generated.tsx
20
+ var m = r(function({ orientation: e = "horizontal", minPanelSize: t = 50, touchMode: r = !1, labels: s = null, onResizeStart: l, onResizing: d, onResizeEnd: m, className: h, children: g, ..._ }, v) {
21
+ o("splitter", f);
22
+ let y = a(null);
23
+ i(v, () => y.current);
24
+ let b = n(u, {
25
+ orientation: e,
26
+ minPanelSize: t,
27
+ touchMode: r,
28
+ labels: s
29
+ }, {
30
+ idPrefix: "bs-splitter",
31
+ label: _["aria-label"],
32
+ rootRef: y,
33
+ emit: (e, t) => {
34
+ e === "resizeStart" && l?.(t), e === "resizing" && d?.(t), e === "resizeEnd" && m?.(t);
35
+ }
36
+ });
37
+ return /* @__PURE__ */ c(p, {
38
+ ...b.props,
39
+ className: h,
40
+ attrs: _,
41
+ rootRef: y,
42
+ children: g
43
+ });
44
+ });
45
+ //#endregion
46
+ //#region libs/mintplayer-react-bootstrap/splitter/src/generated/splitter-panel.view.generated.tsx
47
+ function h({ view: n, slots: r = {}, children: i, className: a, attrs: o, rootRef: u }) {
48
+ return /* @__PURE__ */ c(s, { children: /* @__PURE__ */ l("div", {
49
+ "data-mps": "splitter",
50
+ ...e(n.root),
51
+ ref: u,
52
+ ...o,
53
+ role: n.root.role ?? o?.role,
54
+ className: [n.root.class, a].filter(Boolean).join(" ") || void 0,
55
+ children: [/* @__PURE__ */ c("div", {
56
+ "data-mps": "splitter",
57
+ ...e(n.divider)
58
+ }), /* @__PURE__ */ c("div", {
59
+ "data-mps": "splitter",
60
+ ...e(n.pane),
61
+ style: t(n.paneStyle),
62
+ children: i ?? null
63
+ })]
64
+ }) });
65
+ }
66
+ //#endregion
67
+ //#region libs/mintplayer-react-bootstrap/splitter/src/generated/BsSplitterPanel.generated.tsx
68
+ var g = r(function({ size: e = null, minSize: t = null, maxSize: r = null, className: s, children: l, ...u }, p) {
69
+ o("splitter", f);
70
+ let m = a(null);
71
+ i(p, () => m.current);
72
+ let g = n(d, {
73
+ size: e,
74
+ minSize: t,
75
+ maxSize: r
76
+ }, {
77
+ idPrefix: "bs-splitter-panel",
78
+ label: u["aria-label"],
79
+ rootRef: m,
80
+ emit: () => void 0
81
+ });
82
+ return /* @__PURE__ */ c(h, {
83
+ ...g.props,
84
+ className: s,
85
+ attrs: u,
86
+ rootRef: m,
87
+ children: l
88
+ });
89
+ });
90
+ //#endregion
91
+ export { m as n, g as t };
package/dock/index.mjs CHANGED
@@ -1,13 +1,40 @@
1
1
  import { reactProps as e, reactStyle as t, useCore as n } from "../machine/index.mjs";
2
- import { n as r, t as i } from "../chunks/BsSplitterPanel.generated-C9jE6reT.mjs";
2
+ import { n as r, t as i } from "../chunks/BsSplitterPanel.generated-lcYJ4WuC.mjs";
3
3
  import * as a from "react";
4
4
  import { forwardRef as o, useImperativeHandle as s, useRef as c } from "react";
5
5
  import { installLightStyles as l } from "@mintplayer/ui-core/scoped-styles";
6
6
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
7
7
  import { createPortal as p } from "react-dom";
8
- import { DOCK_LABELS as m, EMPTY_DOCK_LAYOUT as h, dockCore as g, dockScopedStyles as _, mergeDockLabels as v } from "@mintplayer/ui-core/dock";
8
+ import { DOCK_LABELS as m, EMPTY_DOCK_LAYOUT as h, closeDockPane as g, closeDockPanes as _, dockCore as v, dockOpenPanes as y, dockScopedStyles as b, isDockPaneOpen as x, mergeDockLabels as S, openDockPane as C } from "@mintplayer/ui-core/dock";
9
+ //#region libs/mintplayer-react-bootstrap/dock/src/generated/dock-tray.view.generated.tsx
10
+ function w({ tray: n, slots: r = {}, children: i, className: o, attrs: s }) {
11
+ return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("div", {
12
+ "data-mps": "dock",
13
+ ...e(n.bag),
14
+ ...s,
15
+ role: n.bag.role ?? s?.role,
16
+ className: [n.bag.class, o].filter(Boolean).join(" ") || void 0,
17
+ children: n.rows.map((n, r) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d("div", {
18
+ "data-mps": "dock",
19
+ ...e(n.bag),
20
+ children: n.toolbars.map((n, r) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ f("div", {
21
+ "data-mps": "dock",
22
+ ...e(n.bag),
23
+ style: t(n.style),
24
+ children: [/* @__PURE__ */ d("button", {
25
+ "data-mps": "dock",
26
+ ...e(n.thumb)
27
+ }), /* @__PURE__ */ d("div", {
28
+ "data-mps": "dock",
29
+ ...e(n.body)
30
+ })]
31
+ }) }, n.key))
32
+ }) }, n.key))
33
+ }) });
34
+ }
35
+ //#endregion
9
36
  //#region libs/mintplayer-react-bootstrap/dock/src/generated/dock-node.view.generated.tsx
10
- function y({ node: n, slots: o = {}, children: s, className: c, attrs: l }) {
37
+ function T({ node: n, slots: o = {}, children: s, className: c, attrs: l }) {
11
38
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
12
39
  "data-mps": "dock",
13
40
  ...e(n.bag),
@@ -16,39 +43,60 @@ function y({ node: n, slots: o = {}, children: s, className: c, attrs: l }) {
16
43
  className: [n.bag.class, c].filter(Boolean).join(" ") || void 0,
17
44
  children: [n.split ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(r, {
18
45
  orientation: n.direction,
19
- minPanelSize: 48,
46
+ minPanelSize: n.minPaneSize,
20
47
  onResizeEnd: n.onResizeEnd,
21
48
  onResizing: n.onResizing,
22
- children: n.children.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(i, { children: /* @__PURE__ */ d(y, {
23
- node: e.node,
24
- slots: o
25
- }) }) }, e.key))
26
- }) }) : null, n.stack ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("div", {
27
- "data-mps": "dock",
28
- ...e(n.stack.strip),
29
- children: n.stack.tabs.map((n, r) => /* @__PURE__ */ d(a.Fragment, { children: n.placeholder ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("span", {
49
+ children: n.children.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(i, {
50
+ size: e.size,
51
+ minSize: e.minSize,
52
+ maxSize: e.maxSize,
53
+ children: /* @__PURE__ */ d(T, {
54
+ node: e.node,
55
+ slots: o
56
+ })
57
+ }) }, e.key))
58
+ }) }) : null, n.stack ? /* @__PURE__ */ f(u, { children: [
59
+ n.stack.caption ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
30
60
  "data-mps": "dock",
31
- ...e(n.bag),
32
- style: t(n.style),
33
- children: n.title
34
- }) }) : /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("button", {
61
+ ...e(n.stack.caption.bag),
62
+ children: [/* @__PURE__ */ d("button", {
63
+ "data-mps": "dock",
64
+ ...e(n.stack.caption.title),
65
+ children: n.stack.caption.titleText
66
+ }), n.stack.caption.close ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("button", {
67
+ "data-mps": "dock",
68
+ ...e(n.stack.caption.close),
69
+ children: "×"
70
+ }) }) : null]
71
+ }) }) : null,
72
+ n.stack.tabbed ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("div", {
35
73
  "data-mps": "dock",
36
- ...e(n.bag),
37
- children: n.title
38
- }) }) }, n.key))
39
- }), /* @__PURE__ */ d("div", {
40
- "data-mps": "dock",
41
- ...e(n.stack.body),
42
- children: n.stack.empty
43
- })] }) : null]
74
+ ...e(n.stack.strip),
75
+ children: n.stack.tabs.map((n, r) => /* @__PURE__ */ d(a.Fragment, { children: n.placeholder ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("span", {
76
+ "data-mps": "dock",
77
+ ...e(n.bag),
78
+ style: t(n.style),
79
+ children: n.title
80
+ }) }) : /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("button", {
81
+ "data-mps": "dock",
82
+ ...e(n.bag),
83
+ children: n.title
84
+ }) }) }, n.key))
85
+ }) }) : null,
86
+ /* @__PURE__ */ d("div", {
87
+ "data-mps": "dock",
88
+ ...e(n.stack.body),
89
+ children: n.stack.empty
90
+ })
91
+ ] }) : null]
44
92
  }) });
45
93
  }
46
94
  //#endregion
47
95
  //#region libs/mintplayer-react-bootstrap/dock/src/generated/dock-manager.view.generated.tsx
48
- function b(e, t) {
96
+ function E(e, t) {
49
97
  return typeof e == "function" ? e(t) : e;
50
98
  }
51
- function x({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRef: c }) {
99
+ function D({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRef: c }) {
52
100
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
53
101
  "data-mps": "dock",
54
102
  ...e(n.root),
@@ -57,14 +105,22 @@ function x({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
57
105
  role: n.root.role ?? s?.role,
58
106
  className: [n.root.class, o].filter(Boolean).join(" ") || void 0,
59
107
  children: [
108
+ n.traysBefore.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(w, {
109
+ tray: e,
110
+ slots: r
111
+ }) }, e.key)),
60
112
  /* @__PURE__ */ d("div", {
61
113
  "data-mps": "dock",
62
114
  ...e(n.docked),
63
- children: n.dockedNode ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(y, {
115
+ children: n.dockedNode ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(T, {
64
116
  node: n.dockedNode,
65
117
  slots: r
66
118
  }) }) : null
67
119
  }),
120
+ n.traysAfter.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(w, {
121
+ tray: e,
122
+ slots: r
123
+ }) }, e.key)),
68
124
  /* @__PURE__ */ d("div", {
69
125
  "data-mps": "dock",
70
126
  ...e(n.floatingLayer),
@@ -76,23 +132,38 @@ function x({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
76
132
  /* @__PURE__ */ f("div", {
77
133
  "data-mps": "dock",
78
134
  ...e(n.chrome),
79
- children: [/* @__PURE__ */ d("div", {
135
+ children: [n.titleButton ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("button", {
136
+ "data-mps": "dock",
137
+ ...e(n.title),
138
+ children: n.titleText
139
+ }) }) : /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("div", {
80
140
  "data-mps": "dock",
81
141
  ...e(n.title),
82
142
  children: n.titleText
83
- }), /* @__PURE__ */ d("button", {
143
+ }) }), n.close ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("button", {
84
144
  "data-mps": "dock",
85
145
  ...e(n.close),
86
146
  children: "×"
87
- })]
147
+ }) }) : null]
88
148
  }),
89
- /* @__PURE__ */ d("div", {
149
+ /* @__PURE__ */ f("div", {
90
150
  "data-mps": "dock",
91
151
  ...e(n.content),
92
- children: n.node ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(y, {
152
+ children: [n.node ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(T, {
93
153
  node: n.node,
94
154
  slots: r
95
- }) }) : null
155
+ }) }) : null, n.toolbar ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
156
+ "data-mps": "dock",
157
+ ...e(n.toolbar.bag),
158
+ style: t(n.toolbar.style),
159
+ children: [/* @__PURE__ */ d("button", {
160
+ "data-mps": "dock",
161
+ ...e(n.toolbar.thumb)
162
+ }), /* @__PURE__ */ d("div", {
163
+ "data-mps": "dock",
164
+ ...e(n.toolbar.body)
165
+ })]
166
+ }) }) : null]
96
167
  }),
97
168
  n.resizers.map((t, n) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d("div", {
98
169
  "data-mps": "dock",
@@ -101,6 +172,15 @@ function x({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
101
172
  ]
102
173
  }) }, n.key))
103
174
  }),
175
+ /* @__PURE__ */ d("div", {
176
+ "data-mps": "dock",
177
+ ...e(n.edgeLayer),
178
+ children: n.edgeGuides.map((t, n) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d("button", {
179
+ "data-mps": "dock",
180
+ ...e(t.bag),
181
+ children: t.glyph
182
+ }) }, t.key))
183
+ }),
104
184
  /* @__PURE__ */ d("div", {
105
185
  "data-mps": "dock",
106
186
  ...e(n.intersectionLayer),
@@ -137,40 +217,49 @@ function x({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
137
217
  "data-mps": "dock",
138
218
  ...e(n.parking)
139
219
  }),
140
- n.panes.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: e.host ? p(/* @__PURE__ */ d(u, { children: r.pane === void 0 ? null : b(r.pane, { pane: e.name }) }), e.host) : null }, e.name))
220
+ n.panes.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: e.host ? p(/* @__PURE__ */ d(u, { children: r.pane === void 0 ? null : E(r.pane, {
221
+ pane: e.name,
222
+ kind: e.kind,
223
+ floating: e.floating,
224
+ active: e.active,
225
+ orientation: e.orientation,
226
+ overflowing: e.overflowing
227
+ }) }), e.host) : null }, e.name))
141
228
  ]
142
229
  }) });
143
230
  }
144
231
  //#endregion
145
232
  //#region libs/mintplayer-react-bootstrap/dock/src/generated/BsDockManager.generated.tsx
146
- var S = o(function({ layout: e = null, debugLayoutIntegrity: t = !1, labels: r = null, onPaneActivated: i, onLayoutChange: a, pane: o, className: u, children: f, ...p }, m) {
147
- l("dock", _);
148
- let h = c(null);
149
- s(m, () => h.current);
150
- let v = n(g, {
233
+ var O = o(function({ layout: e = null, panes: t = null, minPaneSize: r = 48, debugLayoutIntegrity: i = !1, labels: a = null, onPaneActivated: o, onPanesClosed: u, onLayoutChange: f, pane: p, className: m, children: h, ...g }, _) {
234
+ l("dock", b);
235
+ let y = c(null);
236
+ s(_, () => y.current);
237
+ let x = n(v, {
151
238
  layout: e,
152
- debugLayoutIntegrity: t,
153
- labels: r
239
+ panes: t,
240
+ minPaneSize: r,
241
+ debugLayoutIntegrity: i,
242
+ labels: a
154
243
  }, {
155
244
  idPrefix: "bs-dock-manager",
156
- label: p["aria-label"],
157
- rootRef: h,
245
+ label: g["aria-label"],
246
+ rootRef: y,
158
247
  emit: (e, t) => {
159
- e === "paneActivated" && i?.(t);
248
+ e === "paneActivated" && o?.(t), e === "panesClosed" && u?.(t);
160
249
  },
161
250
  models: ["layout"],
162
251
  writeModel: (e, t) => {
163
- e === "layout" && a?.(t);
252
+ e === "layout" && f?.(t);
164
253
  }
165
254
  });
166
- return /* @__PURE__ */ d(x, {
167
- ...v.props,
168
- slots: { pane: o },
169
- className: u,
170
- attrs: p,
171
- rootRef: h,
172
- children: f
255
+ return /* @__PURE__ */ d(D, {
256
+ ...x.props,
257
+ slots: { pane: p },
258
+ className: m,
259
+ attrs: g,
260
+ rootRef: y,
261
+ children: h
173
262
  });
174
263
  });
175
264
  //#endregion
176
- export { S as BsDockManager, m as DOCK_LABELS, h as EMPTY_DOCK_LAYOUT, v as mergeDockLabels };
265
+ export { O as BsDockManager, m as DOCK_LABELS, h as EMPTY_DOCK_LAYOUT, g as closeDockPane, _ as closeDockPanes, y as dockOpenPanes, x as isDockPaneOpen, S as mergeDockLabels, C as openDockPane };
@@ -1,20 +1,26 @@
1
- import { dockCore, DockInputs, DockPaneActivatedEventDetail } from '@mintplayer/ui-core/dock';
1
+ import { dockCore, DockInputs, DockPaneActivatedEventDetail, DockPanesClosedEventDetail } from '@mintplayer/ui-core/dock';
2
2
  import { DockManagerTemplateProps } from './dock-manager.view.generated';
3
3
  import * as React from 'react';
4
- export interface BsDockManagerProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'layout' | 'debugLayoutIntegrity' | 'labels' | 'onPaneActivated' | 'onLayoutChange' | 'pane'> {
4
+ export interface BsDockManagerProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'layout' | 'panes' | 'minPaneSize' | 'debugLayoutIntegrity' | 'labels' | 'onPaneActivated' | 'onPanesClosed' | 'onLayoutChange' | 'pane'> {
5
5
  layout?: DockInputs['layout'];
6
+ panes?: DockInputs['panes'];
7
+ minPaneSize?: DockInputs['minPaneSize'];
6
8
  debugLayoutIntegrity?: DockInputs['debugLayoutIntegrity'];
7
9
  labels?: DockInputs['labels'];
8
10
  /** A tab was activated. */
9
11
  onPaneActivated?: (detail: DockPaneActivatedEventDetail) => void;
12
+ /** The user closed panes: every pane name one close removed. */
13
+ onPanesClosed?: (detail: DockPanesClosedEventDetail) => void;
10
14
  /** `layout` changed from inside (two-way: pass the value back as `layout`). */
11
15
  onLayoutChange?: (value: ReturnType<NonNullable<(typeof dockCore)['state']>>['layout']) => void;
12
16
  pane?: NonNullable<DockManagerTemplateProps['slots']>['pane'];
13
17
  children?: React.ReactNode;
14
18
  }
15
19
  /**
16
- * A docking layout (#437): panes in tabbed stacks, split side by side and torn off into floating
17
- * windows, by pointer, touch long-press or the keyboard (M on a tab, then T/R/B/L/F or the arrows).
18
- * `layout` is two-way; the `pane` slot renders each pane by name. Strings come from `labels`.
20
+ * A docking layout (#437, #474): panes in tabbed stacks, split side by side, torn off into floating
21
+ * windows and docked along the outer edges; toolbars in trays along the four edges. By pointer, touch
22
+ * long-press or the keyboard (M on a tab, a caption or a toolbar thumb). `layout` is two-way; `panes`
23
+ * gives each pane its title, kind and options; the `pane` slot renders each pane by name. Strings come
24
+ * from `labels`.
19
25
  */
20
26
  export declare const BsDockManager: React.ForwardRefExoticComponent<BsDockManagerProps & React.RefAttributes<HTMLDivElement>>;
@@ -6,6 +6,11 @@ export type DockManagerTemplateProps = {
6
6
  slots?: {
7
7
  pane?: React.ReactNode | ((args: {
8
8
  pane: string;
9
+ kind: 'document' | 'tool' | 'toolbar';
10
+ floating: boolean;
11
+ active: boolean;
12
+ orientation: 'horizontal' | 'vertical';
13
+ overflowing: boolean;
9
14
  }) => React.ReactNode);
10
15
  };
11
16
  children?: React.ReactNode;
@@ -0,0 +1,13 @@
1
+ import { DockTrayView } from '@mintplayer/ui-core/dock';
2
+ import * as React from 'react';
3
+ export type DockTrayTemplateProps = {
4
+ tray: DockTrayView;
5
+ } & {
6
+ slots?: {};
7
+ children?: React.ReactNode;
8
+ /** Merged onto the root element after the bag. */
9
+ className?: string;
10
+ /** The consumer's remaining attributes, spread onto the root element. */
11
+ attrs?: Record<string, unknown>;
12
+ };
13
+ export declare function DockTrayTemplate({ tray, slots, children, className, attrs }: DockTrayTemplateProps): React.ReactElement;
@@ -1,3 +1,3 @@
1
1
  export * from './generated';
2
- export { DOCK_LABELS, EMPTY_DOCK_LAYOUT, mergeDockLabels } from '@mintplayer/ui-core/dock';
3
- export type { DockFloatingPaneBounds, DockFloatingStackLayout, DockLabels, DockLayout, DockLayoutInput, DockLayoutNode, DockLayoutSnapshot, DockPaneActivatedEventDetail, DockSplitNode, DockStackNode, } from '@mintplayer/ui-core/dock';
2
+ export { DOCK_LABELS, EMPTY_DOCK_LAYOUT, closeDockPane, closeDockPanes, dockOpenPanes, isDockPaneOpen, mergeDockLabels, openDockPane, } from '@mintplayer/ui-core/dock';
3
+ export type { DockClosedPane, DockFloatingPaneBounds, DockFloatingStackLayout, DockLabels, DockLayout, DockLayoutInput, DockLayoutNode, DockLayoutSnapshot, DockPaneActivatedEventDetail, DockPaneAnchor, DockPaneKind, DockPaneOptions, DockPanesClosedEventDetail, DockPanesOptions, DockSplitNode, DockStackNode, DockToolbarRow, DockToolbarTrays, DockTraySide, DockTraySlot, } from '@mintplayer/ui-core/dock';
@@ -1,6 +1,6 @@
1
1
  import { reactFormProps as e, reactProps as t, reactStyle as n, useCore as r } from "../machine/index.mjs";
2
2
  import { t as i } from "../chunks/BsDatatable.generated-D1zmdG4J.mjs";
3
- import { n as a, t as o } from "../chunks/BsSplitterPanel.generated-C9jE6reT.mjs";
3
+ import { n as a, t as o } from "../chunks/BsSplitterPanel.generated-lcYJ4WuC.mjs";
4
4
  import { t as s } from "../chunks/BsTreeview.generated-GSdEEc7k.mjs";
5
5
  import * as c from "react";
6
6
  import { forwardRef as l, useImperativeHandle as u, useRef as d } from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/react-bootstrap",
3
- "version": "19.33.0",
3
+ "version": "19.34.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": {
@@ -308,14 +308,11 @@
308
308
  }
309
309
  },
310
310
  "peerDependencies": {
311
- "@mintplayer/ui-core": "^1.9.0",
311
+ "@mintplayer/ui-core": "^1.11.0",
312
312
  "react": "^19.0.0",
313
313
  "react-dom": "^19.0.0"
314
314
  },
315
315
  "dependencies": {
316
316
  "tslib": "^2.3.0"
317
- },
318
- "publishConfig": {
319
- "tag": "latest"
320
317
  }
321
318
  }
@@ -1 +1 @@
1
- export { n as BsSplitter, t as BsSplitterPanel } from "../chunks/BsSplitterPanel.generated-C9jE6reT.mjs";
1
+ export { n as BsSplitter, t as BsSplitterPanel } from "../chunks/BsSplitterPanel.generated-lcYJ4WuC.mjs";
@@ -1,6 +1,13 @@
1
+ import { SplitterPanelInputs } from '@mintplayer/ui-core/splitter';
1
2
  import * as React from 'react';
2
- export interface BsSplitterPanelProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, never> {
3
+ export interface BsSplitterPanelProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'size' | 'minSize' | 'maxSize'> {
4
+ size?: SplitterPanelInputs['size'];
5
+ minSize?: SplitterPanelInputs['minSize'];
6
+ maxSize?: SplitterPanelInputs['maxSize'];
3
7
  children?: React.ReactNode;
4
8
  }
5
- /** One panel of a splitter. Its content fills the panel. */
9
+ /**
10
+ * One panel of a splitter. Its content fills the panel. `size` makes it its content's size (`auto`) or
11
+ * fixed px, so the dividers beside it do not move; `minSize` and `maxSize` bound what a divider can do.
12
+ */
6
13
  export declare const BsSplitterPanel: React.ForwardRefExoticComponent<BsSplitterPanelProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,86 +0,0 @@
1
- import { reactProps as e, useCore as t } from "../machine/index.mjs";
2
- import { forwardRef as n, useImperativeHandle as r, useRef as i } from "react";
3
- import { installLightStyles as a } from "@mintplayer/ui-core/scoped-styles";
4
- import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
5
- import { splitterCore as l, splitterPanelCore as u, splitterScopedStyles as d } from "@mintplayer/ui-core/splitter";
6
- //#region libs/mintplayer-react-bootstrap/splitter/src/generated/splitter.view.generated.tsx
7
- function f({ view: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: c }) {
8
- return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
9
- "data-mps": "splitter",
10
- ...e(t.root),
11
- ref: c,
12
- ...a,
13
- role: t.root.role ?? a?.role,
14
- className: [t.root.class, i].filter(Boolean).join(" ") || void 0,
15
- children: r ?? null
16
- }) });
17
- }
18
- //#endregion
19
- //#region libs/mintplayer-react-bootstrap/splitter/src/generated/BsSplitter.generated.tsx
20
- var p = n(function({ orientation: e = "horizontal", minPanelSize: n = 50, touchMode: o = !1, labels: c = null, onResizeStart: u, onResizing: p, onResizeEnd: m, className: h, children: g, ..._ }, v) {
21
- a("splitter", d);
22
- let y = i(null);
23
- r(v, () => y.current);
24
- let b = t(l, {
25
- orientation: e,
26
- minPanelSize: n,
27
- touchMode: o,
28
- labels: c
29
- }, {
30
- idPrefix: "bs-splitter",
31
- label: _["aria-label"],
32
- rootRef: y,
33
- emit: (e, t) => {
34
- e === "resizeStart" && u?.(t), e === "resizing" && p?.(t), e === "resizeEnd" && m?.(t);
35
- }
36
- });
37
- return /* @__PURE__ */ s(f, {
38
- ...b.props,
39
- className: h,
40
- attrs: _,
41
- rootRef: y,
42
- children: g
43
- });
44
- });
45
- //#endregion
46
- //#region libs/mintplayer-react-bootstrap/splitter/src/generated/splitter-panel.view.generated.tsx
47
- function m({ view: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: l }) {
48
- return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ c("div", {
49
- "data-mps": "splitter",
50
- ...e(t.root),
51
- ref: l,
52
- ...a,
53
- role: t.root.role ?? a?.role,
54
- className: [t.root.class, i].filter(Boolean).join(" ") || void 0,
55
- children: [/* @__PURE__ */ s("div", {
56
- "data-mps": "splitter",
57
- ...e(t.divider)
58
- }), /* @__PURE__ */ s("div", {
59
- "data-mps": "splitter",
60
- ...e(t.pane),
61
- children: r ?? null
62
- })]
63
- }) });
64
- }
65
- //#endregion
66
- //#region libs/mintplayer-react-bootstrap/splitter/src/generated/BsSplitterPanel.generated.tsx
67
- var h = n(function({ className: e, children: n, ...o }, c) {
68
- a("splitter", d);
69
- let l = i(null);
70
- r(c, () => l.current);
71
- let f = t(u, {}, {
72
- idPrefix: "bs-splitter-panel",
73
- label: o["aria-label"],
74
- rootRef: l,
75
- emit: () => void 0
76
- });
77
- return /* @__PURE__ */ s(m, {
78
- ...f.props,
79
- className: e,
80
- attrs: o,
81
- rootRef: l,
82
- children: n
83
- });
84
- });
85
- //#endregion
86
- export { p as n, h as t };