@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
@@ -4,12 +4,14 @@ 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 { DEFAULT_MESSAGES as f, DEFAULT_OPERATOR_CATALOG as p, MaxDepthExceededError as m, addChild as h, addEmptyConditionTo as g, addEmptyGroupTo as _, addEmptySubqueryTo as v, changeConditionField as y, changeConditionOperator as b, cloneTree as x, collectDescendantIds as S, defaultValueFor as C, emptyCondition as w, emptyGroup as T, emptySubquery as E, findNodeById as D, mapTree as O, moveNode as k, newId as A, operatorsForType as j, queryBuilderCore as M, queryBuilderScopedStyles as N, removeNode as P, renderExpression as F, setGroupLogic as I, updateCondition as L, validateOperatorOverrides as R, valueShapeFor as z, visitTree as B } from "@mintplayer/ui-core/query-builder";
7
+ import { bootstrapForms as f } from "@mintplayer/ui-core/bootstrap/forms";
8
+ import { DEFAULT_MESSAGES as p, DEFAULT_OPERATOR_CATALOG as m, MaxDepthExceededError as h, addChild as g, addEmptyConditionTo as _, addEmptyGroupTo as v, addEmptySubqueryTo as y, changeConditionField as b, changeConditionOperator as x, cloneTree as S, collectDescendantIds as C, defaultValueFor as w, emptyCondition as T, emptyGroup as E, emptySubquery as D, findNodeById as O, mapTree as k, moveNode as A, newId as j, operatorsForType as M, queryBuilderCore as N, queryBuilderScopedStyles as P, removeNode as F, renderExpression as I, setGroupLogic as L, updateCondition as R, validateOperatorOverrides as z, valueShapeFor as B, visitTree as V } from "@mintplayer/ui-core/query-builder";
9
+ import { bootstrapButtonGroup as H } from "@mintplayer/ui-core/bootstrap/button-group";
8
10
  //#region libs/mintplayer-react-bootstrap/query-builder/src/generated/query-builder-item.view.generated.tsx
9
- function V(e, t) {
11
+ function U(e, t) {
10
12
  return typeof e == "function" ? e(t) : e;
11
13
  }
12
- function H({ node: r, view: a, slots: o = {}, children: s, className: c, attrs: f }) {
14
+ function W({ node: r, view: a, slots: o = {}, children: s, className: c, attrs: f }) {
13
15
  return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("li", {
14
16
  "data-mps": "query-builder",
15
17
  ...t(r.item),
@@ -89,7 +91,7 @@ function H({ node: r, view: a, slots: o = {}, children: s, className: c, attrs:
89
91
  r.condition.hasEditor ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("span", {
90
92
  "data-mps": "query-builder",
91
93
  ...t(r.condition.editor.wrap),
92
- children: r.condition.editor.custom ? /* @__PURE__ */ u(l, { children: o.editor === void 0 ? null : V(o.editor, { ctx: r.condition.editor.ctx }) }) : r.condition.editor.isSelect ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("select", {
94
+ children: r.condition.editor.custom ? /* @__PURE__ */ u(l, { children: o.editor === void 0 ? null : U(o.editor, { ctx: r.condition.editor.ctx }) }) : r.condition.editor.isSelect ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("select", {
93
95
  "data-mps": "query-builder",
94
96
  ...n(r.condition.editor.select),
95
97
  defaultValue: r.condition.editor.selectValue,
@@ -168,7 +170,7 @@ function H({ node: r, view: a, slots: o = {}, children: s, className: c, attrs:
168
170
  }) }), r.children.length ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("ul", {
169
171
  "data-mps": "query-builder",
170
172
  ...t(r.list),
171
- children: r.children.map((e, t) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u(H, {
173
+ children: r.children.map((e, t) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u(W, {
172
174
  node: e,
173
175
  view: a,
174
176
  slots: o
@@ -178,7 +180,7 @@ function H({ node: r, view: a, slots: o = {}, children: s, className: c, attrs:
178
180
  }
179
181
  //#endregion
180
182
  //#region libs/mintplayer-react-bootstrap/query-builder/src/generated/query-builder.view.generated.tsx
181
- function U({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
183
+ function G({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
182
184
  return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
183
185
  "data-mps": "query-builder",
184
186
  ...t(r.root),
@@ -318,7 +320,7 @@ function U({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
318
320
  /* @__PURE__ */ u("ul", {
319
321
  "data-mps": "query-builder",
320
322
  ...t(r.list),
321
- children: /* @__PURE__ */ u(H, {
323
+ children: /* @__PURE__ */ u(W, {
322
324
  node: r.tree,
323
325
  view: r,
324
326
  slots: a
@@ -329,11 +331,11 @@ function U({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
329
331
  }
330
332
  //#endregion
331
333
  //#region libs/mintplayer-react-bootstrap/query-builder/src/generated/BsQueryBuilder.generated.tsx
332
- var W = [], G = [], K = [], q = [], J = a(function({ query: e = null, schema: t = W, rootEntity: n = "", multiEntityPickerEnabled: i = !1, selectedFields: a = G, sortBy: l = K, disabled: d = !1, messages: f, maxDepth: p = 32, showPreview: m = !1, showSavedQueries: h = !1, savedQueries: g = q, onQueryChange: _, onRootEntityChange: v, onSelectedFieldsChange: y, onSortByChange: b, onSaveQuery: x, onLoadQuery: S, onDeleteQuery: C, editor: w, className: T, children: E, ...D }, O) {
333
- c("query-builder", N);
334
- let k = s(null);
335
- o(O, () => k.current);
336
- let A = r(M, {
334
+ var K = [], q = [], J = [], Y = [], X = a(function({ query: e = null, schema: t = K, rootEntity: n = "", multiEntityPickerEnabled: i = !1, selectedFields: a = q, sortBy: l = J, disabled: d = !1, messages: p, maxDepth: m = 32, showPreview: h = !1, showSavedQueries: g = !1, savedQueries: _ = Y, onQueryChange: v, onRootEntityChange: y, onSelectedFieldsChange: b, onSortByChange: x, onSaveQuery: S, onLoadQuery: C, onDeleteQuery: w, editor: T, className: E, children: D, ...O }, k) {
335
+ c(f.key, f.css, { order: f.order }), c(H.key, H.css, { order: H.order }), c("query-builder", P);
336
+ let A = s(null);
337
+ o(k, () => A.current);
338
+ let j = r(N, {
337
339
  query: e,
338
340
  schema: t,
339
341
  rootEntity: n,
@@ -341,27 +343,27 @@ var W = [], G = [], K = [], q = [], J = a(function({ query: e = null, schema: t
341
343
  selectedFields: a,
342
344
  sortBy: l,
343
345
  disabled: d,
344
- messages: f,
345
- maxDepth: p,
346
- showPreview: m,
347
- showSavedQueries: h,
348
- savedQueries: g
346
+ messages: p,
347
+ maxDepth: m,
348
+ showPreview: h,
349
+ showSavedQueries: g,
350
+ savedQueries: _
349
351
  }, {
350
352
  idPrefix: "bs-query-builder",
351
- label: D["aria-label"],
352
- rootRef: k,
353
+ label: O["aria-label"],
354
+ rootRef: A,
353
355
  emit: (e, t) => {
354
- e === "queryChange" && _?.(t), e === "rootEntityChange" && v?.(t), e === "selectedFieldsChange" && y?.(t), e === "sortByChange" && b?.(t), e === "saveQuery" && x?.(t), e === "loadQuery" && S?.(t), e === "deleteQuery" && C?.(t);
356
+ e === "queryChange" && v?.(t), e === "rootEntityChange" && y?.(t), e === "selectedFieldsChange" && b?.(t), e === "sortByChange" && x?.(t), e === "saveQuery" && S?.(t), e === "loadQuery" && C?.(t), e === "deleteQuery" && w?.(t);
355
357
  }
356
358
  });
357
- return /* @__PURE__ */ u(U, {
358
- ...A.props,
359
- slots: { editor: w },
360
- className: T,
361
- attrs: D,
362
- rootRef: k,
363
- children: E
359
+ return /* @__PURE__ */ u(G, {
360
+ ...j.props,
361
+ slots: { editor: T },
362
+ className: E,
363
+ attrs: O,
364
+ rootRef: A,
365
+ children: D
364
366
  });
365
367
  });
366
368
  //#endregion
367
- export { J as BsQueryBuilder, f as DEFAULT_MESSAGES, p as DEFAULT_OPERATOR_CATALOG, m as MaxDepthExceededError, h as addChild, g as addEmptyConditionTo, _ as addEmptyGroupTo, v as addEmptySubqueryTo, y as changeConditionField, b as changeConditionOperator, x as cloneTree, S as collectDescendantIds, C as defaultValueFor, w as emptyCondition, T as emptyGroup, E as emptySubquery, D as findNodeById, O as mapTree, k as moveNode, A as newId, j as operatorsForType, P as removeNode, F as renderExpression, I as setGroupLogic, L as updateCondition, R as validateOperatorOverrides, z as valueShapeFor, B as visitTree };
369
+ export { X as BsQueryBuilder, p as DEFAULT_MESSAGES, m as DEFAULT_OPERATOR_CATALOG, h as MaxDepthExceededError, g as addChild, _ as addEmptyConditionTo, v as addEmptyGroupTo, y as addEmptySubqueryTo, b as changeConditionField, x as changeConditionOperator, S as cloneTree, C as collectDescendantIds, w as defaultValueFor, T as emptyCondition, E as emptyGroup, D as emptySubquery, O as findNodeById, k as mapTree, A as moveNode, j as newId, M as operatorsForType, F as removeNode, I as renderExpression, L as setGroupLogic, R as updateCondition, z as validateOperatorOverrides, B as valueShapeFor, V as visitTree };
package/radio/index.mjs CHANGED
@@ -1 +1 @@
1
- export { t as BsRadio } from "../chunks/BsRadio-D1C6Aqjv.mjs";
1
+ export { t as BsRadio } from "../chunks/BsRadio-Bw_MhAOq.mjs";
@@ -1,5 +1,5 @@
1
1
  import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
2
- import { n as t } from "../chunks/BsRadio-D1C6Aqjv.mjs";
2
+ import { n as t } from "../chunks/BsRadio-Bw_MhAOq.mjs";
3
3
  import { forwardRef as n, useId as r, useMemo as i } from "react";
4
4
  import { jsx as a } from "react/jsx-runtime";
5
5
  import { connectRadioGroup as o, radioGroupName as s } from "@mintplayer/ui-core/radio";
@@ -1,14 +1,15 @@
1
1
  import { i as e, r as t, t as n } from "../chunks/react-props-C2O2_2V2.mjs";
2
2
  import { useCore as r } from "../machine/index.mjs";
3
- import { t as i } from "../chunks/BsDatetimePicker.generated-B4WBEiCo.mjs";
3
+ import { t as i } from "../chunks/BsDatetimePicker.generated-CxaiRt79.mjs";
4
4
  import * as a from "react";
5
5
  import { forwardRef as o, useImperativeHandle as s, useRef as c } from "react";
6
6
  import { installLightStyles as l } from "@mintplayer/ui-core/scoped-styles";
7
7
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
8
- import { SchedulerStateManager as p, createInitialState as m, schedulerCore as h, schedulerScopedStyles as g } from "@mintplayer/ui-core/scheduler";
9
- import { generateEventId as _, generateGroupId as v, generateResourceId as y } from "@mintplayer/ui-core/scheduler-core";
8
+ import { bootstrapForms as p } from "@mintplayer/ui-core/bootstrap/forms";
9
+ import { SchedulerStateManager as m, createInitialState as h, schedulerCore as g, schedulerScopedStyles as _ } from "@mintplayer/ui-core/scheduler";
10
+ import { generateEventId as v, generateGroupId as y, generateResourceId as b } from "@mintplayer/ui-core/scheduler-core";
10
11
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-time-grid.view.generated.tsx
11
- function b({ grid: n, slots: r = {}, children: i, className: o, attrs: s }) {
12
+ function x({ grid: n, slots: r = {}, children: i, className: o, attrs: s }) {
12
13
  return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", {
13
14
  "data-mps": "scheduler",
14
15
  ...t(n.headerRow),
@@ -103,7 +104,7 @@ function b({ grid: n, slots: r = {}, children: i, className: o, attrs: s }) {
103
104
  }
104
105
  //#endregion
105
106
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-month.view.generated.tsx
106
- function x({ month: n, slots: r = {}, children: i, className: o, attrs: s }) {
107
+ function S({ month: n, slots: r = {}, children: i, className: o, attrs: s }) {
107
108
  return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("div", {
108
109
  "data-mps": "scheduler",
109
110
  ...t(n.headerRow),
@@ -145,7 +146,7 @@ function x({ month: n, slots: r = {}, children: i, className: o, attrs: s }) {
145
146
  }
146
147
  //#endregion
147
148
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-year.view.generated.tsx
148
- function S({ year: e, slots: n = {}, children: r, className: i, attrs: o }) {
149
+ function C({ year: e, slots: n = {}, children: r, className: i, attrs: o }) {
149
150
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("div", {
150
151
  "data-mps": "scheduler",
151
152
  ...t(e.grid),
@@ -177,7 +178,7 @@ function S({ year: e, slots: n = {}, children: r, className: i, attrs: o }) {
177
178
  }
178
179
  //#endregion
179
180
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-timeline.view.generated.tsx
180
- function C({ timeline: r, slots: i = {}, children: o, className: s, attrs: c }) {
181
+ function w({ timeline: r, slots: i = {}, children: o, className: s, attrs: c }) {
181
182
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
182
183
  "data-mps": "scheduler",
183
184
  ...t(r.timeline),
@@ -314,7 +315,7 @@ function C({ timeline: r, slots: i = {}, children: o, className: s, attrs: c })
314
315
  }
315
316
  //#endregion
316
317
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-popover-event.view.generated.tsx
317
- function w({ event: n, slots: r = {}, children: i, className: a, attrs: o }) {
318
+ function T({ event: n, slots: r = {}, children: i, className: a, attrs: o }) {
318
319
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("li", {
319
320
  "data-mps": "scheduler",
320
321
  ...t(n.row),
@@ -346,7 +347,7 @@ function w({ event: n, slots: r = {}, children: i, className: a, attrs: o }) {
346
347
  }
347
348
  //#endregion
348
349
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-popover.view.generated.tsx
349
- function T({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
350
+ function E({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
350
351
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
351
352
  "data-mps": "scheduler",
352
353
  ...t(e.bag),
@@ -386,7 +387,7 @@ function T({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
386
387
  e.list ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("ul", {
387
388
  "data-mps": "scheduler",
388
389
  ...t(e.list),
389
- children: e.events.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(w, {
390
+ children: e.events.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(T, {
390
391
  event: e,
391
392
  slots: r
392
393
  }) }, e.key))
@@ -401,7 +402,7 @@ function T({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
401
402
  }), /* @__PURE__ */ d("ul", {
402
403
  "data-mps": "scheduler",
403
404
  ...t(e.list),
404
- children: e.events.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(w, {
405
+ children: e.events.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(T, {
405
406
  event: e,
406
407
  slots: r
407
408
  }) }, e.key))
@@ -442,7 +443,7 @@ function T({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
442
443
  }
443
444
  //#endregion
444
445
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-row-panel.view.generated.tsx
445
- function E({ panel: e, slots: r = {}, children: i, className: o, attrs: s }) {
446
+ function D({ panel: e, slots: r = {}, children: i, className: o, attrs: s }) {
446
447
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("div", {
447
448
  "data-mps": "scheduler",
448
449
  ...t(e.bag),
@@ -469,7 +470,7 @@ function E({ panel: e, slots: r = {}, children: i, className: o, attrs: s }) {
469
470
  }
470
471
  //#endregion
471
472
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-editor.view.generated.tsx
472
- function D({ editor: e, slots: r = {}, children: a, className: o, attrs: s }) {
473
+ function O({ editor: e, slots: r = {}, children: a, className: o, attrs: s }) {
473
474
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
474
475
  "data-mps": "scheduler",
475
476
  ...t(e.bag),
@@ -598,7 +599,7 @@ function D({ editor: e, slots: r = {}, children: a, className: o, attrs: s }) {
598
599
  }
599
600
  //#endregion
600
601
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/scheduler.view.generated.tsx
601
- function O({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRef: c }) {
602
+ function k({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRef: c }) {
602
603
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
603
604
  "data-mps": "scheduler",
604
605
  ...t(n.root),
@@ -655,19 +656,19 @@ function O({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
655
656
  ...t(n.content),
656
657
  style: e(n.contentStyle),
657
658
  children: [
658
- n.timeGrid ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(b, {
659
+ n.timeGrid ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(x, {
659
660
  grid: n.timeGrid,
660
661
  slots: r
661
662
  }) }) : null,
662
- n.month ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(x, {
663
+ n.month ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(S, {
663
664
  month: n.month,
664
665
  slots: r
665
666
  }) }) : null,
666
- n.year ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(S, {
667
+ n.year ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(C, {
667
668
  year: n.year,
668
669
  slots: r
669
670
  }) }) : null,
670
- n.timeline ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(C, {
671
+ n.timeline ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(w, {
671
672
  timeline: n.timeline,
672
673
  slots: r
673
674
  }) }) : null,
@@ -693,15 +694,15 @@ function O({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
693
694
  ...t(n.kbdEvent),
694
695
  children: n.kbdEventText
695
696
  }),
696
- n.popover ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(T, {
697
+ n.popover ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(E, {
697
698
  popover: n.popover,
698
699
  slots: r
699
700
  }) }) : null,
700
- n.rowPanel ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(E, {
701
+ n.rowPanel ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(D, {
701
702
  panel: n.rowPanel,
702
703
  slots: r
703
704
  }) }) : null,
704
- n.editor ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(D, {
705
+ n.editor ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(O, {
705
706
  editor: n.editor,
706
707
  slots: r
707
708
  }) }) : null,
@@ -715,11 +716,11 @@ function O({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
715
716
  }
716
717
  //#endregion
717
718
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/BsScheduler.generated.tsx
718
- var k = [], A = [], j = o(function({ events: e = k, resources: t = A, options: n = null, readonly: i = !1, eventEditor: a = !0, locale: o = null, firstDayOfWeek: u = null, slotDuration: f = null, timeFormat: p = null, view: m = null, date: _ = null, selectedEvent: v = null, selectedRange: y = null, onEventSelected: b, onEventDblClick: x, onEventCreate: S, onEventUpdate: C, onEventDelete: w, onDateClick: T, onSelectionChanged: E, onResourceCreate: D, onGroupCreate: j, onResourceUpdate: M, onResourceDelete: N, onViewChange: P, onDateChange: F, onSelectedEventChange: I, onSelectedRangeChange: L, className: R, children: z, ...B }, V) {
719
- l("scheduler", g);
720
- let H = c(null);
721
- s(V, () => H.current);
722
- let U = r(h, {
719
+ var A = [], j = [], M = o(function({ events: e = A, resources: t = j, options: n = null, readonly: i = !1, eventEditor: a = !0, locale: o = null, firstDayOfWeek: u = null, slotDuration: f = null, timeFormat: m = null, view: h = null, date: v = null, selectedEvent: y = null, selectedRange: b = null, onEventSelected: x, onEventDblClick: S, onEventCreate: C, onEventUpdate: w, onEventDelete: T, onDateClick: E, onSelectionChanged: D, onResourceCreate: O, onGroupCreate: M, onResourceUpdate: N, onResourceDelete: P, onViewChange: F, onDateChange: I, onSelectedEventChange: L, onSelectedRangeChange: R, className: z, children: B, ...V }, H) {
720
+ l(p.key, p.css, { order: p.order }), l("scheduler", _);
721
+ let U = c(null);
722
+ s(H, () => U.current);
723
+ let W = r(g, {
723
724
  events: e,
724
725
  resources: t,
725
726
  options: n,
@@ -728,26 +729,26 @@ var k = [], A = [], j = o(function({ events: e = k, resources: t = A, options: n
728
729
  locale: o,
729
730
  firstDayOfWeek: u,
730
731
  slotDuration: f,
731
- timeFormat: p,
732
- view: m,
733
- date: _,
734
- selectedEvent: v,
735
- selectedRange: y
732
+ timeFormat: m,
733
+ view: h,
734
+ date: v,
735
+ selectedEvent: y,
736
+ selectedRange: b
736
737
  }, {
737
738
  idPrefix: "bs-scheduler",
738
- label: B["aria-label"],
739
- rootRef: H,
739
+ label: V["aria-label"],
740
+ rootRef: U,
740
741
  emit: (e, t) => {
741
- e === "eventSelected" && b?.(t), e === "eventDblClick" && x?.(t), e === "eventCreate" && S?.(t), e === "eventUpdate" && C?.(t), e === "eventDelete" && w?.(t), e === "dateClick" && T?.(t), e === "selectionChanged" && E?.(t), e === "resourceCreate" && D?.(t), e === "groupCreate" && j?.(t), e === "resourceUpdate" && M?.(t), e === "resourceDelete" && N?.(t), e === "viewChange" && P?.(t), e === "dateChange" && F?.(t), e === "selectedEventChange" && I?.(t), e === "selectedRangeChange" && L?.(t);
742
+ e === "eventSelected" && x?.(t), e === "eventDblClick" && S?.(t), e === "eventCreate" && C?.(t), e === "eventUpdate" && w?.(t), e === "eventDelete" && T?.(t), e === "dateClick" && E?.(t), e === "selectionChanged" && D?.(t), e === "resourceCreate" && O?.(t), e === "groupCreate" && M?.(t), e === "resourceUpdate" && N?.(t), e === "resourceDelete" && P?.(t), e === "viewChange" && F?.(t), e === "dateChange" && I?.(t), e === "selectedEventChange" && L?.(t), e === "selectedRangeChange" && R?.(t);
742
743
  }
743
744
  });
744
- return /* @__PURE__ */ d(O, {
745
- ...U.props,
746
- className: R,
747
- attrs: B,
748
- rootRef: H,
749
- children: z
745
+ return /* @__PURE__ */ d(k, {
746
+ ...W.props,
747
+ className: z,
748
+ attrs: V,
749
+ rootRef: U,
750
+ children: B
750
751
  });
751
752
  });
752
753
  //#endregion
753
- export { j as BsScheduler, p as SchedulerStateManager, m as createInitialState, _ as generateEventId, v as generateGroupId, y as generateResourceId };
754
+ export { M as BsScheduler, m as SchedulerStateManager, h as createInitialState, v as generateEventId, y as generateGroupId, b as generateResourceId };
package/select/index.mjs CHANGED
@@ -4,12 +4,13 @@ import * as i from "react";
4
4
  import { forwardRef as a, useImperativeHandle as o, useRef as s } from "react";
5
5
  import { installLightStyles as c } from "@mintplayer/ui-core/scoped-styles";
6
6
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
7
- import { selectCore as f, selectScopedStyles as p } from "@mintplayer/ui-core/select";
7
+ import { bootstrapForms as f } from "@mintplayer/ui-core/bootstrap/forms";
8
+ import { selectCore as p, selectScopedStyles as m } from "@mintplayer/ui-core/select";
8
9
  //#region libs/mintplayer-react-bootstrap/select/src/generated/select.view.generated.tsx
9
- function m(e, t) {
10
+ function h(e, t) {
10
11
  return typeof e == "function" ? e(t) : e;
11
12
  }
12
- function h({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
13
+ function g({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
13
14
  return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
14
15
  "data-mps": "select",
15
16
  ...t(r.root),
@@ -31,12 +32,12 @@ function h({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
31
32
  children: n.options.map((t, n) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u("option", {
32
33
  "data-mps": "select",
33
34
  ...e(t.bag),
34
- children: r.rich ? /* @__PURE__ */ u(l, { children: a.option === void 0 ? /* @__PURE__ */ u(l, { children: t.option.label }) : m(a.option, { option: t.option }) }) : /* @__PURE__ */ u(l, { children: t.option.label })
35
+ children: r.rich ? /* @__PURE__ */ u(l, { children: a.option === void 0 ? /* @__PURE__ */ u(l, { children: t.option.label }) : h(a.option, { option: t.option }) }) : /* @__PURE__ */ u(l, { children: t.option.label })
35
36
  }) }, t.key))
36
37
  }) }) : /* @__PURE__ */ u(l, { children: n.options.map((t, n) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u("option", {
37
38
  "data-mps": "select",
38
39
  ...e(t.bag),
39
- children: r.rich ? /* @__PURE__ */ u(l, { children: a.option === void 0 ? /* @__PURE__ */ u(l, { children: t.option.label }) : m(a.option, { option: t.option }) }) : /* @__PURE__ */ u(l, { children: t.option.label })
40
+ children: r.rich ? /* @__PURE__ */ u(l, { children: a.option === void 0 ? /* @__PURE__ */ u(l, { children: t.option.label }) : h(a.option, { option: t.option }) }) : /* @__PURE__ */ u(l, { children: t.option.label })
40
41
  }) }, t.key)) }) }, n.key)) }) : /* @__PURE__ */ u(l, { children: o ?? null })]
41
42
  }), r.showFeedback ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("div", {
42
43
  "data-mps": "select",
@@ -47,11 +48,11 @@ function h({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
47
48
  }
48
49
  //#endregion
49
50
  //#region libs/mintplayer-react-bootstrap/select/src/generated/BsSelect.generated.tsx
50
- var g = [], _ = a(function({ size: e = "md", multiple: t = !1, numberVisible: n, disabled: i = !1, required: a = !1, invalid: l = !1, errorText: d, name: m, inputLabel: _, value: v = null, values: y = g, options: b, onValueChange: x, option: S, className: C, children: w, ...T }, E) {
51
- c("select", p);
52
- let D = s(null);
53
- o(E, () => D.current);
54
- let O = r(f, {
51
+ var _ = [], v = a(function({ size: e = "md", multiple: t = !1, numberVisible: n, disabled: i = !1, required: a = !1, invalid: l = !1, errorText: d, name: h, inputLabel: v, value: y = null, values: b = _, options: x, onValueChange: S, option: C, className: w, children: T, ...E }, D) {
52
+ c(f.key, f.css, { order: f.order }), c("select", m);
53
+ let O = s(null);
54
+ o(D, () => O.current);
55
+ let k = r(p, {
55
56
  size: e,
56
57
  multiple: t,
57
58
  numberVisible: n,
@@ -59,27 +60,27 @@ var g = [], _ = a(function({ size: e = "md", multiple: t = !1, numberVisible: n,
59
60
  required: a,
60
61
  invalid: l,
61
62
  errorText: d,
62
- name: m,
63
- inputLabel: _,
64
- value: v,
65
- values: y,
66
- options: b
63
+ name: h,
64
+ inputLabel: v,
65
+ value: y,
66
+ values: b,
67
+ options: x
67
68
  }, {
68
69
  idPrefix: "bs-select",
69
- label: T["aria-label"],
70
- rootRef: D,
70
+ label: E["aria-label"],
71
+ rootRef: O,
71
72
  emit: (e, t) => {
72
- e === "valueChange" && x?.(t);
73
+ e === "valueChange" && S?.(t);
73
74
  }
74
75
  });
75
- return /* @__PURE__ */ u(h, {
76
- ...O.props,
77
- slots: { option: S },
78
- className: C,
79
- attrs: T,
80
- rootRef: D,
81
- children: w
76
+ return /* @__PURE__ */ u(g, {
77
+ ...k.props,
78
+ slots: { option: C },
79
+ className: w,
80
+ attrs: E,
81
+ rootRef: O,
82
+ children: T
82
83
  });
83
84
  });
84
85
  //#endregion
85
- export { _ as BsSelect };
86
+ export { v as BsSelect };
@@ -3,9 +3,10 @@ import { useCore as n } from "../machine/index.mjs";
3
3
  import { forwardRef as r, useImperativeHandle as i, useRef as a } from "react";
4
4
  import { installLightStyles as o } from "@mintplayer/ui-core/scoped-styles";
5
5
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
6
- import { signaturePadCore as u, signaturePadScopedStyles as d } from "@mintplayer/ui-core/signature-pad";
6
+ import { bootstrapForms as u } from "@mintplayer/ui-core/bootstrap/forms";
7
+ import { signaturePadCore as d, signaturePadScopedStyles as f } from "@mintplayer/ui-core/signature-pad";
7
8
  //#region libs/mintplayer-react-bootstrap/signature-pad/src/generated/signature-pad.view.generated.tsx
8
- function f({ view: n, slots: r = {}, children: i, className: a, attrs: o, rootRef: u }) {
9
+ function p({ view: n, slots: r = {}, children: i, className: a, attrs: o, rootRef: u }) {
9
10
  return /* @__PURE__ */ c(s, { children: /* @__PURE__ */ l("div", {
10
11
  "data-mps": "signature-pad",
11
12
  ...e(n.root),
@@ -48,36 +49,36 @@ function f({ view: n, slots: r = {}, children: i, className: a, attrs: o, rootRe
48
49
  }
49
50
  //#endregion
50
51
  //#region libs/mintplayer-react-bootstrap/signature-pad/src/generated/BsSignaturePad.generated.tsx
51
- var p = { strokes: [] }, m = r(function({ signature: e = p, width: t = 500, height: r = 300, showAccessibilityToggle: s = !0, disabled: l = !1, required: m = !1, invalid: h = !1, errorText: g = null, inputLabel: _ = null, labels: v = null, onSignatureChange: y, className: b, children: x, ...S }, C) {
52
- o("signature-pad", d);
53
- let w = a(null);
54
- i(C, () => w.current);
55
- let T = n(u, {
52
+ var m = { strokes: [] }, h = r(function({ signature: e = m, width: t = 500, height: r = 300, showAccessibilityToggle: s = !0, disabled: l = !1, required: h = !1, invalid: g = !1, errorText: _ = null, inputLabel: v = null, labels: y = null, onSignatureChange: b, className: x, children: S, ...C }, w) {
53
+ o(u.key, u.css, { order: u.order }), o("signature-pad", f);
54
+ let T = a(null);
55
+ i(w, () => T.current);
56
+ let E = n(d, {
56
57
  signature: e,
57
58
  width: t,
58
59
  height: r,
59
60
  showAccessibilityToggle: s,
60
61
  disabled: l,
61
- required: m,
62
- invalid: h,
63
- errorText: g,
64
- inputLabel: _,
65
- labels: v
62
+ required: h,
63
+ invalid: g,
64
+ errorText: _,
65
+ inputLabel: v,
66
+ labels: y
66
67
  }, {
67
68
  idPrefix: "bs-signature-pad",
68
- label: S["aria-label"],
69
- rootRef: w,
69
+ label: C["aria-label"],
70
+ rootRef: T,
70
71
  emit: (e, t) => {
71
- e === "signatureChange" && y?.(t);
72
+ e === "signatureChange" && b?.(t);
72
73
  }
73
74
  });
74
- return /* @__PURE__ */ c(f, {
75
- ...T.props,
76
- className: b,
77
- attrs: S,
78
- rootRef: w,
79
- children: x
75
+ return /* @__PURE__ */ c(p, {
76
+ ...E.props,
77
+ className: x,
78
+ attrs: C,
79
+ rootRef: T,
80
+ children: S
80
81
  });
81
82
  });
82
83
  //#endregion
83
- export { m as BsSignaturePad };
84
+ export { h as BsSignaturePad };
@@ -0,0 +1,50 @@
1
+ import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
2
+ import { useCore as t } from "../machine/index.mjs";
3
+ import { forwardRef as n, useImperativeHandle as r, useRef as i } from "react";
4
+ import { installLightStyles as a } from "@mintplayer/ui-core/scoped-styles";
5
+ import { Fragment as o, jsx as s } from "react/jsx-runtime";
6
+ import { spinnerCore as c, spinnerScopedStyles as l } from "@mintplayer/ui-core/spinner";
7
+ import { bootstrapSpinners as u } from "@mintplayer/ui-core/bootstrap/spinners";
8
+ //#region libs/mintplayer-react-bootstrap/spinner/src/generated/spinner.view.generated.tsx
9
+ function d({ root: t, label: n, slots: r = {}, children: i, className: a, attrs: c, rootRef: l }) {
10
+ return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
11
+ "data-mps": "spinner",
12
+ ...e(t),
13
+ ref: l,
14
+ ...c,
15
+ role: t.role ?? c?.role,
16
+ className: [t.class, a].filter(Boolean).join(" ") || void 0,
17
+ children: /* @__PURE__ */ s("span", {
18
+ "data-mps": "spinner",
19
+ className: "visually-hidden",
20
+ children: n
21
+ })
22
+ }) });
23
+ }
24
+ //#endregion
25
+ //#region libs/mintplayer-react-bootstrap/spinner/src/generated/BsSpinner.generated.tsx
26
+ var f = n(function({ type: e = "border", color: n = null, small: o = !1, label: f = "Loading…", className: p, children: m, ...h }, g) {
27
+ a(u.key, u.css, { order: u.order }), a("spinner", l);
28
+ let _ = i(null);
29
+ r(g, () => _.current);
30
+ let v = t(c, {
31
+ type: e,
32
+ color: n,
33
+ small: o,
34
+ label: f
35
+ }, {
36
+ idPrefix: "bs-spinner",
37
+ label: h["aria-label"],
38
+ rootRef: _,
39
+ emit: () => void 0
40
+ });
41
+ return /* @__PURE__ */ s(d, {
42
+ ...v.props,
43
+ className: p,
44
+ attrs: h,
45
+ rootRef: _,
46
+ children: m
47
+ });
48
+ });
49
+ //#endregion
50
+ export { f as BsSpinner };
@@ -0,0 +1,11 @@
1
+ import { SpinnerInputs } from '@mintplayer/ui-core/spinner';
2
+ import * as React from 'react';
3
+ export interface BsSpinnerProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'type' | 'color' | 'small' | 'label'> {
4
+ type?: SpinnerInputs['type'];
5
+ color?: SpinnerInputs['color'];
6
+ small?: SpinnerInputs['small'];
7
+ label?: SpinnerInputs['label'];
8
+ children?: React.ReactNode;
9
+ }
10
+ /** Bootstrap's spinner: a `role="status"` loading indicator whose visually hidden `label` a screen reader announces (#452). */
11
+ export declare const BsSpinner: React.ForwardRefExoticComponent<BsSpinnerProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export { BsSpinner, type BsSpinnerProps } from './BsSpinner.generated';
@@ -0,0 +1,15 @@
1
+ import { SpinnerProps } from '@mintplayer/ui-core/spinner';
2
+ import * as React from 'react';
3
+ export type SpinnerTemplateProps = {
4
+ root: SpinnerProps['root'];
5
+ label: SpinnerProps['label'];
6
+ } & {
7
+ slots?: {};
8
+ children?: React.ReactNode;
9
+ /** Merged onto the root element after the bag. */
10
+ className?: string;
11
+ /** The consumer's remaining attributes, spread onto the root element. */
12
+ attrs?: Record<string, unknown>;
13
+ rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
14
+ };
15
+ export declare function SpinnerTemplate({ root, label, slots, children, className, attrs, rootRef }: SpinnerTemplateProps): React.ReactElement;
@@ -0,0 +1 @@
1
+ export * from './generated';