@mintplayer/react-bootstrap 19.27.0 → 19.29.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 (276) hide show
  1. package/accordion/index.mjs +64 -35
  2. package/accordion/src/BsAccordion.d.ts +19 -19
  3. package/accordion/src/index.d.ts +1 -0
  4. package/calendar/index.mjs +107 -9
  5. package/calendar/src/generated/BsCalendar.generated.d.ts +24 -0
  6. package/calendar/src/generated/calendar.view.generated.d.ts +14 -0
  7. package/calendar/src/generated/index.d.ts +1 -0
  8. package/calendar/src/index.d.ts +2 -1
  9. package/card/index.mjs +69 -71
  10. package/card/src/BsCard.d.ts +15 -6
  11. package/card/src/BsCardBody.d.ts +1 -3
  12. package/card/src/BsCardFooter.d.ts +4 -5
  13. package/card/src/BsCardGroup.d.ts +1 -2
  14. package/card/src/BsCardHeader.d.ts +5 -9
  15. package/card/src/BsCardImg.d.ts +2 -3
  16. package/card/src/BsCardLink.d.ts +1 -3
  17. package/card/src/BsCardSubtitle.d.ts +2 -3
  18. package/card/src/BsCardText.d.ts +1 -3
  19. package/card/src/BsCardTitle.d.ts +1 -3
  20. package/carousel/index.mjs +150 -24
  21. package/carousel/src/carousel.react.d.ts +5 -0
  22. package/carousel/src/generated/BsCarousel.generated.d.ts +30 -0
  23. package/carousel/src/generated/BsCarouselItem.generated.d.ts +6 -0
  24. package/carousel/src/generated/carousel-item.view.generated.d.ts +14 -0
  25. package/carousel/src/generated/carousel.view.generated.d.ts +14 -0
  26. package/carousel/src/generated/index.d.ts +2 -0
  27. package/carousel/src/index.d.ts +2 -3
  28. package/charts/hierarchy/index.mjs +178 -15
  29. package/charts/hierarchy/src/generated/BsHierarchyChart.generated.d.ts +52 -0
  30. package/charts/hierarchy/src/generated/hierarchy-chart.view.generated.d.ts +14 -0
  31. package/charts/hierarchy/src/generated/index.d.ts +1 -0
  32. package/charts/hierarchy/src/index.d.ts +2 -2
  33. package/charts/sparkline/index.mjs +35 -8
  34. package/charts/sparkline/src/BsSparkline.d.ts +21 -3
  35. package/charts/trend/index.mjs +124 -13
  36. package/charts/trend/src/generated/BsTrendChart.generated.d.ts +28 -0
  37. package/charts/trend/src/generated/index.d.ts +1 -0
  38. package/charts/trend/src/generated/trend-chart.view.generated.d.ts +14 -0
  39. package/charts/trend/src/index.d.ts +2 -2
  40. package/checkbox/index.mjs +1 -12
  41. package/checkbox/src/BsCheckbox.d.ts +29 -9
  42. package/checkbox/src/index.d.ts +1 -0
  43. package/chunks/BsCheckbox-BWU2Hrhf.mjs +57 -0
  44. package/chunks/BsDatatable.generated-am6uNreO.mjs +459 -0
  45. package/chunks/BsDatetimePicker.generated-B4WBEiCo.mjs +206 -0
  46. package/chunks/BsRadio-D1C6Aqjv.mjs +48 -0
  47. package/chunks/BsSplitterPanel.generated-C7r4Nedd.mjs +87 -0
  48. package/chunks/BsTreeview.generated-djXBc8bl.mjs +100 -0
  49. package/chunks/react-props-C2O2_2V2.mjs +33 -0
  50. package/chunks/useMachine-CpK1VckL.mjs +12 -0
  51. package/code-snippet/index.mjs +118 -13
  52. package/code-snippet/src/generated/BsCodeSnippet.generated.d.ts +27 -0
  53. package/code-snippet/src/generated/code-snippet.view.generated.d.ts +14 -0
  54. package/code-snippet/src/generated/index.d.ts +1 -0
  55. package/code-snippet/src/index.d.ts +2 -1
  56. package/datatable/index.mjs +3 -35
  57. package/datatable/src/generated/BsDatatable.generated.d.ts +83 -0
  58. package/datatable/src/generated/datatable.view.generated.d.ts +32 -0
  59. package/datatable/src/generated/index.d.ts +1 -0
  60. package/datatable/src/index.d.ts +3 -1
  61. package/datepicker/index.mjs +148 -15
  62. package/datepicker/src/generated/BsDatepicker.generated.d.ts +35 -0
  63. package/datepicker/src/generated/datepicker.view.generated.d.ts +14 -0
  64. package/datepicker/src/generated/index.d.ts +1 -0
  65. package/datepicker/src/index.d.ts +3 -1
  66. package/datetime-picker/index.mjs +1 -16
  67. package/datetime-picker/src/generated/BsDatetimePicker.generated.d.ts +36 -0
  68. package/datetime-picker/src/generated/datetime-picker.view.generated.d.ts +14 -0
  69. package/datetime-picker/src/generated/index.d.ts +1 -0
  70. package/datetime-picker/src/index.d.ts +2 -1
  71. package/dock/index.mjs +171 -10
  72. package/dock/src/generated/BsDockManager.generated.d.ts +20 -0
  73. package/dock/src/generated/dock-manager.view.generated.d.ts +18 -0
  74. package/dock/src/generated/dock-node.view.generated.d.ts +13 -0
  75. package/dock/src/generated/index.d.ts +1 -0
  76. package/dock/src/index.d.ts +3 -1
  77. package/dropdown-menu/index.mjs +52 -38
  78. package/dropdown-menu/src/BsDropdownDivider.d.ts +1 -1
  79. package/dropdown-menu/src/BsDropdownHeader.d.ts +2 -2
  80. package/dropdown-menu/src/BsDropdownItem.d.ts +7 -10
  81. package/dropdown-menu/src/BsDropdownMenu.d.ts +15 -17
  82. package/dropdown-menu/src/index.d.ts +1 -1
  83. package/file-manager/index.mjs +238 -18
  84. package/file-manager/src/generated/BsFileManager.generated.d.ts +52 -0
  85. package/file-manager/src/generated/file-manager.view.generated.d.ts +14 -0
  86. package/file-manager/src/generated/index.d.ts +1 -0
  87. package/file-manager/src/index.d.ts +3 -1
  88. package/input-group/index.mjs +16 -9
  89. package/input-group/src/BsInputGroup.d.ts +15 -8
  90. package/machine/index.mjs +94 -1
  91. package/machine/src/content.d.ts +14 -0
  92. package/machine/src/core.d.ts +24 -0
  93. package/machine/src/index.d.ts +3 -0
  94. package/machine/src/react-props.d.ts +16 -2
  95. package/machine/src/transfer-state.d.ts +31 -0
  96. package/multi-range/index.mjs +73 -13
  97. package/multi-range/src/generated/BsMultiRange.generated.d.ts +28 -0
  98. package/multi-range/src/generated/index.d.ts +1 -0
  99. package/multi-range/src/generated/multi-range.view.generated.d.ts +14 -0
  100. package/multi-range/src/index.d.ts +2 -1
  101. package/navbar/index.mjs +204 -36
  102. package/navbar/src/generated/BsNavbar.generated.d.ts +24 -0
  103. package/navbar/src/generated/BsNavbarDropdown.generated.d.ts +11 -0
  104. package/navbar/src/generated/BsNavbarItem.generated.d.ts +9 -0
  105. package/navbar/src/generated/BsNavbarNav.generated.d.ts +8 -0
  106. package/navbar/src/generated/index.d.ts +4 -0
  107. package/navbar/src/generated/navbar-dropdown.view.generated.d.ts +17 -0
  108. package/navbar/src/generated/navbar-item.view.generated.d.ts +14 -0
  109. package/navbar/src/generated/navbar-nav.view.generated.d.ts +14 -0
  110. package/navbar/src/generated/navbar.view.generated.d.ts +18 -0
  111. package/navbar/src/index.d.ts +2 -9
  112. package/otp-input/index.mjs +83 -13
  113. package/otp-input/src/generated/BsOtpInput.generated.d.ts +28 -0
  114. package/otp-input/src/generated/index.d.ts +1 -0
  115. package/otp-input/src/generated/otp-input.view.generated.d.ts +14 -0
  116. package/otp-input/src/index.d.ts +2 -1
  117. package/package.json +7 -6
  118. package/pagination/index.mjs +43 -9
  119. package/pagination/src/BsPagination.d.ts +23 -9
  120. package/phone-input/index.mjs +124 -13
  121. package/phone-input/src/generated/BsPhoneInput.generated.d.ts +34 -0
  122. package/phone-input/src/generated/index.d.ts +1 -0
  123. package/phone-input/src/generated/phone-input.view.generated.d.ts +14 -0
  124. package/phone-input/src/index.d.ts +2 -1
  125. package/query-builder/index.mjs +365 -18
  126. package/query-builder/src/generated/BsQueryBuilder.generated.d.ts +42 -0
  127. package/query-builder/src/generated/index.d.ts +1 -0
  128. package/query-builder/src/generated/query-builder-item.view.generated.d.ts +18 -0
  129. package/query-builder/src/generated/query-builder.view.generated.d.ts +18 -0
  130. package/query-builder/src/index.d.ts +3 -1
  131. package/radio/index.mjs +1 -12
  132. package/radio/src/BsRadio.d.ts +37 -8
  133. package/radio-group/index.mjs +36 -9
  134. package/radio-group/src/BsRadioGroup.d.ts +19 -11
  135. package/ribbon/index.mjs +1048 -99
  136. package/ribbon/src/generated/BsQuickAccessToolbar.generated.d.ts +8 -0
  137. package/ribbon/src/generated/BsRibbon.generated.d.ts +30 -0
  138. package/ribbon/src/generated/BsRibbonButton.generated.d.ts +21 -0
  139. package/ribbon/src/generated/BsRibbonCheckBox.generated.d.ts +20 -0
  140. package/ribbon/src/generated/BsRibbonColorPicker.generated.d.ts +20 -0
  141. package/ribbon/src/generated/BsRibbonComboBox.generated.d.ts +21 -0
  142. package/ribbon/src/generated/BsRibbonContextualTabSet.generated.d.ts +10 -0
  143. package/ribbon/src/generated/BsRibbonDropdownButton.generated.d.ts +21 -0
  144. package/ribbon/src/generated/BsRibbonGallery.generated.d.ts +18 -0
  145. package/ribbon/src/generated/BsRibbonGalleryItem.generated.d.ts +16 -0
  146. package/ribbon/src/generated/BsRibbonGroup.generated.d.ts +19 -0
  147. package/ribbon/src/generated/BsRibbonGroupButton.generated.d.ts +21 -0
  148. package/ribbon/src/generated/BsRibbonMenuItem.generated.d.ts +19 -0
  149. package/ribbon/src/generated/BsRibbonMenuSeparator.generated.d.ts +6 -0
  150. package/ribbon/src/generated/BsRibbonSplitButton.generated.d.ts +25 -0
  151. package/ribbon/src/generated/BsRibbonTab.generated.d.ts +14 -0
  152. package/ribbon/src/generated/BsRibbonTemplateItem.generated.d.ts +8 -0
  153. package/ribbon/src/generated/BsRibbonToggleButton.generated.d.ts +22 -0
  154. package/ribbon/src/generated/index.d.ts +18 -0
  155. package/ribbon/src/generated/quick-access-toolbar.view.generated.d.ts +14 -0
  156. package/ribbon/src/generated/ribbon-button.view.generated.d.ts +16 -0
  157. package/ribbon/src/generated/ribbon-check-box.view.generated.d.ts +14 -0
  158. package/ribbon/src/generated/ribbon-color-picker.view.generated.d.ts +14 -0
  159. package/ribbon/src/generated/ribbon-combo-box.view.generated.d.ts +15 -0
  160. package/ribbon/src/generated/ribbon-contextual-tab-set.view.generated.d.ts +14 -0
  161. package/ribbon/src/generated/ribbon-dropdown-button.view.generated.d.ts +16 -0
  162. package/ribbon/src/generated/ribbon-gallery-item.view.generated.d.ts +16 -0
  163. package/ribbon/src/generated/ribbon-gallery.view.generated.d.ts +15 -0
  164. package/ribbon/src/generated/ribbon-group-button.view.generated.d.ts +15 -0
  165. package/ribbon/src/generated/ribbon-group.view.generated.d.ts +14 -0
  166. package/ribbon/src/generated/ribbon-menu-item.view.generated.d.ts +16 -0
  167. package/ribbon/src/generated/ribbon-menu-separator.view.generated.d.ts +14 -0
  168. package/ribbon/src/generated/ribbon-split-button.view.generated.d.ts +16 -0
  169. package/ribbon/src/generated/ribbon-tab.view.generated.d.ts +14 -0
  170. package/ribbon/src/generated/ribbon-template-item.view.generated.d.ts +14 -0
  171. package/ribbon/src/generated/ribbon-toggle-button.view.generated.d.ts +16 -0
  172. package/ribbon/src/generated/ribbon.view.generated.d.ts +16 -0
  173. package/ribbon/src/index.d.ts +3 -1
  174. package/scheduler/index.mjs +751 -23
  175. package/scheduler/src/generated/BsScheduler.generated.d.ts +55 -0
  176. package/scheduler/src/generated/index.d.ts +1 -0
  177. package/scheduler/src/generated/sched-editor.view.generated.d.ts +13 -0
  178. package/scheduler/src/generated/sched-month.view.generated.d.ts +13 -0
  179. package/scheduler/src/generated/sched-popover-event.view.generated.d.ts +13 -0
  180. package/scheduler/src/generated/sched-popover.view.generated.d.ts +13 -0
  181. package/scheduler/src/generated/sched-row-panel.view.generated.d.ts +13 -0
  182. package/scheduler/src/generated/sched-time-grid.view.generated.d.ts +13 -0
  183. package/scheduler/src/generated/sched-timeline.view.generated.d.ts +13 -0
  184. package/scheduler/src/generated/sched-year.view.generated.d.ts +13 -0
  185. package/scheduler/src/generated/scheduler.view.generated.d.ts +14 -0
  186. package/scheduler/src/index.d.ts +4 -1
  187. package/select/index.mjs +83 -10
  188. package/select/src/generated/BsSelect.generated.d.ts +29 -0
  189. package/select/src/generated/index.d.ts +1 -0
  190. package/select/src/generated/select.view.generated.d.ts +18 -0
  191. package/select/src/index.d.ts +2 -1
  192. package/shell/index.mjs +75 -16
  193. package/shell/src/BsShell.d.ts +30 -20
  194. package/shell/src/index.d.ts +2 -2
  195. package/signature-pad/index.mjs +81 -10
  196. package/signature-pad/src/generated/BsSignaturePad.generated.d.ts +25 -0
  197. package/signature-pad/src/generated/index.d.ts +1 -0
  198. package/signature-pad/src/generated/signature-pad.view.generated.d.ts +14 -0
  199. package/signature-pad/src/index.d.ts +2 -2
  200. package/splitter/index.mjs +1 -16
  201. package/splitter/src/generated/BsSplitter.generated.d.ts +21 -0
  202. package/splitter/src/generated/BsSplitterPanel.generated.d.ts +6 -0
  203. package/splitter/src/generated/index.d.ts +2 -0
  204. package/splitter/src/generated/splitter-panel.view.generated.d.ts +14 -0
  205. package/splitter/src/generated/splitter.view.generated.d.ts +14 -0
  206. package/splitter/src/index.d.ts +2 -1
  207. package/src/index.d.ts +4 -5
  208. package/tab-control/index.mjs +88 -13
  209. package/tab-control/src/BsTabControl.d.ts +40 -11
  210. package/theming/index.mjs +73 -29
  211. package/theming/src/generated/BsThemeToggle.generated.d.ts +14 -0
  212. package/theming/src/generated/index.d.ts +1 -0
  213. package/theming/src/generated/theme-toggle.view.generated.d.ts +14 -0
  214. package/theming/src/index.d.ts +2 -2
  215. package/theming/src/useBsTheme.d.ts +2 -2
  216. package/tile-manager/index.mjs +42 -41
  217. package/timeline/index.mjs +209 -80
  218. package/timeline/src/generated/BsTimeline.generated.d.ts +36 -0
  219. package/timeline/src/generated/BsTimelineItem.generated.d.ts +23 -0
  220. package/timeline/src/generated/index.d.ts +2 -0
  221. package/timeline/src/generated/timeline-item.view.generated.d.ts +19 -0
  222. package/timeline/src/generated/timeline.view.generated.d.ts +39 -0
  223. package/timeline/src/index.d.ts +3 -4
  224. package/timepicker/index.mjs +156 -15
  225. package/timepicker/src/generated/BsTimeList.generated.d.ts +20 -0
  226. package/timepicker/src/generated/BsTimepicker.generated.d.ts +31 -0
  227. package/timepicker/src/generated/index.d.ts +2 -0
  228. package/timepicker/src/generated/time-list.view.generated.d.ts +14 -0
  229. package/timepicker/src/generated/timepicker.view.generated.d.ts +14 -0
  230. package/timepicker/src/index.d.ts +2 -2
  231. package/toggle-button/index.mjs +9 -8
  232. package/toggle-button/src/BsToggleButton.d.ts +6 -8
  233. package/toggle-button/src/index.d.ts +1 -1
  234. package/tree-select/index.mjs +253 -17
  235. package/tree-select/src/generated/BsTreeSelect.generated.d.ts +46 -0
  236. package/tree-select/src/generated/index.d.ts +1 -0
  237. package/tree-select/src/generated/tree-select.view.generated.d.ts +31 -0
  238. package/tree-select/src/index.d.ts +3 -3
  239. package/treeview/index.mjs +1 -16
  240. package/treeview/src/generated/BsTreeview.generated.d.ts +36 -0
  241. package/treeview/src/generated/index.d.ts +1 -0
  242. package/treeview/src/generated/treeview.view.generated.d.ts +20 -0
  243. package/treeview/src/index.d.ts +2 -1
  244. package/typeahead/index.mjs +87 -76
  245. package/calendar/src/BsCalendar.d.ts +0 -8
  246. package/carousel/src/BsCarousel.d.ts +0 -25
  247. package/charts/hierarchy/src/BsHierarchyChart.d.ts +0 -13
  248. package/charts/trend/src/BsTrendChart.d.ts +0 -7
  249. package/chunks/react-props-iXE6Az5D.mjs +0 -27
  250. package/code-snippet/src/BsCodeSnippet.d.ts +0 -21
  251. package/datatable/src/BsDatatable.d.ts +0 -85
  252. package/datepicker/src/BsDatepicker.d.ts +0 -17
  253. package/datetime-picker/src/BsDatetimePicker.d.ts +0 -13
  254. package/dock/src/BsDockManager.d.ts +0 -17
  255. package/file-manager/src/BsFileManager.d.ts +0 -20
  256. package/multi-range/src/BsMultiRange.d.ts +0 -12
  257. package/navbar/src/BsNavbar.d.ts +0 -33
  258. package/navbar/src/BsNavbarBrand.d.ts +0 -17
  259. package/navbar/src/BsNavbarDropdown.d.ts +0 -23
  260. package/navbar/src/BsNavbarItem.d.ts +0 -21
  261. package/otp-input/src/BsOtpInput.d.ts +0 -11
  262. package/phone-input/src/BsPhoneInput.d.ts +0 -22
  263. package/query-builder/src/BsQueryBuilder.d.ts +0 -29
  264. package/react-bootstrap.css +0 -2
  265. package/ribbon/src/BsRibbon.d.ts +0 -82
  266. package/scheduler/src/BsScheduler.d.ts +0 -35
  267. package/select/src/BsSelect.d.ts +0 -15
  268. package/signature-pad/src/BsSignaturePad.d.ts +0 -11
  269. package/splitter/src/BsSplitter.d.ts +0 -18
  270. package/theming/src/BsThemeToggle.d.ts +0 -22
  271. package/timeline/src/BsTimeline.d.ts +0 -33
  272. package/timeline/src/BsTimelineItem.d.ts +0 -11
  273. package/timepicker/src/BsTimeList.d.ts +0 -11
  274. package/timepicker/src/BsTimepicker.d.ts +0 -11
  275. package/tree-select/src/BsTreeSelect.d.ts +0 -24
  276. package/treeview/src/BsTreeview.d.ts +0 -14
@@ -1,8 +1,7 @@
1
1
  import * as React from 'react';
2
2
  /**
3
- * Plain React `card-subtitle` element. Renders a `div.card-subtitle` that
4
- * gets slotted into `<mp-card>` and styled by mp-card's card-anchored
5
- * document sheet. Merges an incoming `className` and spreads remaining props.
3
+ * Plain React `card-subtitle` element. Renders a `div.card-subtitle`; the page
4
+ * baseline styles it. Merges an incoming `className` and spreads remaining props.
6
5
  */
7
6
  export declare const BsCardSubtitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
8
7
  children?: React.ReactNode | undefined;
@@ -1,8 +1,6 @@
1
1
  import * as React from 'react';
2
2
  /**
3
- * Plain React `card-text` element. Renders a `div.card-text` that gets
4
- * slotted into `<mp-card>` and styled by mp-card's card-anchored
5
- * document sheet. Merges an incoming `className` and spreads remaining props.
3
+ * Plain React `card-text` element. Renders a `div.card-text`; the page baseline styles it. Merges an incoming `className` and spreads remaining props.
6
4
  */
7
5
  export declare const BsCardText: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
8
6
  children?: React.ReactNode | undefined;
@@ -1,8 +1,6 @@
1
1
  import * as React from 'react';
2
2
  /**
3
- * Plain React `card-title` element. Renders a `div.card-title` that gets
4
- * slotted into `<mp-card>` and styled by mp-card's card-anchored
5
- * document sheet. Merges an incoming `className` and spreads remaining props.
3
+ * Plain React `card-title` element. Renders a `div.card-title`; the page baseline styles it. Merges an incoming `className` and spreads remaining props.
6
4
  */
7
5
  export declare const BsCardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
8
6
  children?: React.ReactNode | undefined;
@@ -1,28 +1,154 @@
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 { MpCarousel as r } from "@mintplayer/web-components/carousel";
5
- //#region libs/mintplayer-react-bootstrap/carousel/src/BsCarousel.tsx
6
- var i = t({
7
- react: e,
8
- tagName: "mp-carousel",
9
- elementClass: r,
10
- events: {
11
- onSlideChange: "slide-change",
12
- onPausedChange: "paused-change",
13
- onAnimationStart: "animation-start",
14
- onAnimationEnd: "animation-end"
15
- }
16
- }), a = e.forwardRef(function({ indicators: e, interval: t, wrap: r, keyboardEvents: a, paused: o, ...s }, c) {
17
- return /* @__PURE__ */ n(i, {
1
+ import { r as e, t } from "../chunks/react-props-C2O2_2V2.mjs";
2
+ import { useCore as n } from "../machine/index.mjs";
3
+ import * as r from "react";
4
+ import { Children as i, Fragment as a, forwardRef as o, isValidElement 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 { carouselCore as m, carouselItemCore as h, carouselScopedStyles as g } from "@mintplayer/ui-core/carousel";
8
+ //#region libs/mintplayer-react-bootstrap/carousel/src/generated/carousel.view.generated.tsx
9
+ function _({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRef: c }) {
10
+ return /* @__PURE__ */ f(d, { children: /* @__PURE__ */ p("div", {
11
+ "data-mps": "carousel",
12
+ ...e(n.root),
18
13
  ref: c,
19
- ...e ? { indicators: !0 } : {},
20
- ...t && t > 0 ? { interval: t } : {},
21
- ...r === !1 ? { wrap: "false" } : {},
22
- ...a === !1 ? { "keyboard-events": "false" } : {},
23
- ...o ? { paused: !0 } : {},
24
- ...s
14
+ ...s,
15
+ role: n.root.role ?? s?.role,
16
+ className: [n.root.class, o].filter(Boolean).join(" ") || void 0,
17
+ children: [
18
+ n.playPause ? /* @__PURE__ */ f(d, { children: /* @__PURE__ */ f("div", {
19
+ "data-mps": "carousel",
20
+ ...e(n.playPause.wrap),
21
+ children: /* @__PURE__ */ f("button", {
22
+ "data-mps": "carousel",
23
+ ...e(n.playPause.button),
24
+ children: /* @__PURE__ */ f("span", {
25
+ "data-mps": "carousel",
26
+ ...e(n.playPause.icon)
27
+ })
28
+ })
29
+ }) }) : null,
30
+ n.radios.map((e, n) => /* @__PURE__ */ f(r.Fragment, { children: /* @__PURE__ */ f("input", {
31
+ "data-mps": "carousel",
32
+ ...t(e.bag)
33
+ }) }, e.key)),
34
+ /* @__PURE__ */ f("div", {
35
+ "data-mps": "carousel",
36
+ ...e(n.inner),
37
+ children: /* @__PURE__ */ f("div", {
38
+ "data-mps": "carousel",
39
+ ...e(n.track),
40
+ children: a ?? null
41
+ })
42
+ }),
43
+ n.indicators ? /* @__PURE__ */ f(d, { children: /* @__PURE__ */ f("div", {
44
+ "data-mps": "carousel",
45
+ ...e(n.indicators.bag),
46
+ children: n.indicators.items.map((t, n) => /* @__PURE__ */ f(r.Fragment, { children: /* @__PURE__ */ f("label", {
47
+ "data-mps": "carousel",
48
+ ...e(t.bag)
49
+ }) }, t.key))
50
+ }) }) : null,
51
+ /* @__PURE__ */ f("div", {
52
+ "data-mps": "carousel",
53
+ ...e(n.controls.bag),
54
+ children: n.controls.pairs.map((t, i) => /* @__PURE__ */ f(r.Fragment, { children: /* @__PURE__ */ p("span", {
55
+ "data-mps": "carousel",
56
+ ...e(t.pair),
57
+ children: [/* @__PURE__ */ f("label", {
58
+ "data-mps": "carousel",
59
+ ...e(t.prev),
60
+ children: /* @__PURE__ */ f("span", {
61
+ "data-mps": "carousel",
62
+ ...e(n.controls.icon.prev)
63
+ })
64
+ }), /* @__PURE__ */ f("label", {
65
+ "data-mps": "carousel",
66
+ ...e(t.next),
67
+ children: /* @__PURE__ */ f("span", {
68
+ "data-mps": "carousel",
69
+ ...e(n.controls.icon.next)
70
+ })
71
+ })]
72
+ }) }, t.key))
73
+ })
74
+ ]
75
+ }) });
76
+ }
77
+ //#endregion
78
+ //#region libs/mintplayer-react-bootstrap/carousel/src/carousel.react.ts
79
+ function v(e) {
80
+ return i.toArray(e).reduce((e, t) => s(t) ? t.type === a ? e + v(t.props.children) : e + 1 : e, 0);
81
+ }
82
+ function y(e, { children: t }) {
83
+ return {
84
+ ...e,
85
+ slideCount: v(t)
86
+ };
87
+ }
88
+ //#endregion
89
+ //#region libs/mintplayer-react-bootstrap/carousel/src/generated/BsCarousel.generated.tsx
90
+ var b = o(function({ animation: e = "slide", orientation: t = "horizontal", indicators: r = !1, interval: i = null, wrap: a = !0, keyboardEvents: o = !0, paused: s = !1, inputLabel: d = null, labels: p = null, onSlideChange: h, onPausedChange: v, onSlideStart: b, onSlideEnd: x, className: S, children: C, ...w }, T) {
91
+ u("carousel", g);
92
+ let E = l(null);
93
+ c(T, () => E.current);
94
+ let D = n(m, y({
95
+ animation: e,
96
+ orientation: t,
97
+ indicators: r,
98
+ interval: i,
99
+ wrap: a,
100
+ keyboardEvents: o,
101
+ paused: s,
102
+ inputLabel: d,
103
+ labels: p
104
+ }, { children: C }), {
105
+ idPrefix: "bs-carousel",
106
+ label: w["aria-label"],
107
+ rootRef: E,
108
+ emit: (e, t) => {
109
+ e === "slideChange" && h?.(t), e === "pausedChange" && v?.(t), e === "slideStart" && b?.(t), e === "slideEnd" && x?.(t);
110
+ }
111
+ });
112
+ return /* @__PURE__ */ f(_, {
113
+ ...D.props,
114
+ className: S,
115
+ attrs: w,
116
+ rootRef: E,
117
+ children: C
118
+ });
119
+ });
120
+ //#endregion
121
+ //#region libs/mintplayer-react-bootstrap/carousel/src/generated/carousel-item.view.generated.tsx
122
+ function x({ view: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: o }) {
123
+ return /* @__PURE__ */ f(d, { children: /* @__PURE__ */ f("div", {
124
+ "data-mps": "carousel",
125
+ ...e(t.root),
126
+ ref: o,
127
+ ...a,
128
+ role: t.root.role ?? a?.role,
129
+ className: [t.root.class, i].filter(Boolean).join(" ") || void 0,
130
+ children: r ?? null
131
+ }) });
132
+ }
133
+ //#endregion
134
+ //#region libs/mintplayer-react-bootstrap/carousel/src/generated/BsCarouselItem.generated.tsx
135
+ var S = o(function({ className: e, children: t, ...r }, i) {
136
+ u("carousel", g);
137
+ let a = l(null);
138
+ c(i, () => a.current);
139
+ let o = n(h, {}, {
140
+ idPrefix: "bs-carousel-item",
141
+ label: r["aria-label"],
142
+ rootRef: a,
143
+ emit: () => void 0
144
+ });
145
+ return /* @__PURE__ */ f(x, {
146
+ ...o.props,
147
+ className: e,
148
+ attrs: r,
149
+ rootRef: a,
150
+ children: t
25
151
  });
26
152
  });
27
153
  //#endregion
28
- export { a as BsCarousel };
154
+ export { b as BsCarousel, S as BsCarouselItem };
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ import { CarouselInputs } from '@mintplayer/ui-core/carousel';
3
+ export declare function useExtendInputs(inputs: CarouselInputs, { children }: {
4
+ children?: ReactNode;
5
+ }): CarouselInputs;
@@ -0,0 +1,30 @@
1
+ import { CarouselInputs, CarouselSlideChangeEventDetail } from '@mintplayer/ui-core/carousel';
2
+ import * as React from 'react';
3
+ export interface BsCarouselProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'animation' | 'orientation' | 'indicators' | 'interval' | 'wrap' | 'keyboardEvents' | 'paused' | 'inputLabel' | 'labels' | 'onSlideChange' | 'onPausedChange' | 'onSlideStart' | 'onSlideEnd'> {
4
+ animation?: CarouselInputs['animation'];
5
+ orientation?: CarouselInputs['orientation'];
6
+ indicators?: CarouselInputs['indicators'];
7
+ interval?: CarouselInputs['interval'];
8
+ wrap?: CarouselInputs['wrap'];
9
+ keyboardEvents?: CarouselInputs['keyboardEvents'];
10
+ paused?: CarouselInputs['paused'];
11
+ inputLabel?: CarouselInputs['inputLabel'];
12
+ labels?: CarouselInputs['labels'];
13
+ /** The committed slide changed. */
14
+ onSlideChange?: (detail: CarouselSlideChangeEventDetail) => void;
15
+ /** Autoplay was paused or resumed from the play/pause button or a method. */
16
+ onPausedChange?: (detail: boolean) => void;
17
+ /** A slide transition started. */
18
+ onSlideStart?: (detail: void) => void;
19
+ /** A slide transition ended. */
20
+ onSlideEnd?: (detail: void) => void;
21
+ children?: React.ReactNode;
22
+ }
23
+ /**
24
+ * A deck of slides shown one at a time, with optional indicators, autoplay, touch swipe and keyboard.
25
+ *
26
+ * Put carousel items inside. A radio per slide holds the index, so the server render navigates with
27
+ * JavaScript off (indicators, prev/next with wrap-around, the radio group arrow keys). Slides are
28
+ * grid-stacked: the deck is as tall as its tallest slide. An `aria-label` names the region.
29
+ */
30
+ export declare const BsCarousel: React.ForwardRefExoticComponent<BsCarouselProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export interface BsCarouselItemProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, never> {
3
+ children?: React.ReactNode;
4
+ }
5
+ /** One slide of a carousel. Its content is the slide. */
6
+ export declare const BsCarouselItem: React.ForwardRefExoticComponent<BsCarouselItemProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,14 @@
1
+ import { CarouselItemView } from '@mintplayer/ui-core/carousel';
2
+ import * as React from 'react';
3
+ export type CarouselItemTemplateProps = {
4
+ view: CarouselItemView;
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
+ rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
13
+ };
14
+ export declare function CarouselItemTemplate({ view, slots, children, className, attrs, rootRef }: CarouselItemTemplateProps): React.ReactElement;
@@ -0,0 +1,14 @@
1
+ import { CarouselView } from '@mintplayer/ui-core/carousel';
2
+ import * as React from 'react';
3
+ export type CarouselTemplateProps = {
4
+ view: CarouselView;
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
+ rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
13
+ };
14
+ export declare function CarouselTemplate({ view, slots, children, className, attrs, rootRef }: CarouselTemplateProps): React.ReactElement;
@@ -0,0 +1,2 @@
1
+ export { BsCarousel, type BsCarouselProps } from './BsCarousel.generated';
2
+ export { BsCarouselItem, type BsCarouselItemProps } from './BsCarouselItem.generated';
@@ -1,3 +1,2 @@
1
- export { BsCarousel } from './BsCarousel';
2
- export type { BsCarouselProps } from './BsCarousel';
3
- export type { CarouselAnimation, CarouselOrientation, CarouselSlideChangeEventDetail, CarouselPausedChangeEventDetail, } from '@mintplayer/web-components/carousel';
1
+ export * from './generated';
2
+ export type { CarouselAnimation, CarouselLabels, CarouselOrientation, CarouselSlideChangeEventDetail, } from '@mintplayer/ui-core/carousel';
@@ -1,17 +1,180 @@
1
- import * as e from "react";
2
- import { createComponent as t } from "@lit/react";
3
- import { MpHierarchyChart as n } from "@mintplayer/web-components/charts/hierarchy";
4
- //#region libs/mintplayer-react-bootstrap/charts/hierarchy/src/BsHierarchyChart.tsx
5
- var r = t({
6
- react: e,
7
- tagName: "mp-hierarchy-chart",
8
- elementClass: n,
9
- events: {
10
- onHierarchyZoom: "hierarchy-zoom",
11
- onHierarchyNodeSelect: "hierarchy-node-select",
12
- onHierarchyNodeHover: "hierarchy-node-hover",
13
- onHierarchyNodeLoadError: "hierarchy-node-load-error"
14
- }
1
+ import { i as e, r as t } from "../../chunks/react-props-C2O2_2V2.mjs";
2
+ import { useCore as n } from "../../machine/index.mjs";
3
+ import * as r from "react";
4
+ import { forwardRef as i, useImperativeHandle as a, useRef as o } from "react";
5
+ import { installLightStyles as s } from "@mintplayer/ui-core/scoped-styles";
6
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
7
+ import { hierarchyChartCore as d, hierarchyChartScopedStyles as f } from "@mintplayer/ui-core/charts/hierarchy";
8
+ //#region libs/mintplayer-react-bootstrap/charts/hierarchy/src/generated/hierarchy-chart.view.generated.tsx
9
+ function p({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRef: d }) {
10
+ return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("div", {
11
+ "data-mps": "hierarchy-chart",
12
+ ...t(n.root),
13
+ ref: d,
14
+ ...s,
15
+ role: n.root.role ?? s?.role,
16
+ className: [n.root.class, o].filter(Boolean).join(" ") || void 0,
17
+ children: [n.breadcrumb ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("nav", {
18
+ "data-mps": "hierarchy-chart",
19
+ ...t(n.breadcrumb.nav),
20
+ children: n.breadcrumb.items.map((e, n) => /* @__PURE__ */ u(r.Fragment, { children: [
21
+ e.current ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("span", {
22
+ "data-mps": "hierarchy-chart",
23
+ ...t(e.current),
24
+ children: e.text
25
+ }) }) : null,
26
+ e.button ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("button", {
27
+ "data-mps": "hierarchy-chart",
28
+ ...t(e.button),
29
+ children: e.text
30
+ }) }) : null,
31
+ e.sep ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("span", {
32
+ "data-mps": "hierarchy-chart",
33
+ ...t(e.sep),
34
+ children: "/"
35
+ }) }) : null
36
+ ] }, e.key))
37
+ }) }) : null, /* @__PURE__ */ u("div", {
38
+ "data-mps": "hierarchy-chart",
39
+ ...t(n.chart),
40
+ style: e(n.chartStyle),
41
+ children: [
42
+ n.sunburst ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("svg", {
43
+ "data-mps": "hierarchy-chart",
44
+ ...t(n.sunburst.svg),
45
+ children: /* @__PURE__ */ u("g", {
46
+ "data-mps": "hierarchy-chart",
47
+ ...t(n.sunburst.g),
48
+ children: [n.sunburst.arcs.map((e, n) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ l("path", {
49
+ "data-mps": "hierarchy-chart",
50
+ ...t(e.bag)
51
+ }) }, e.key)), n.sunburst.labels.map((e, n) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ l("text", {
52
+ "data-mps": "hierarchy-chart",
53
+ ...t(e.bag),
54
+ children: e.text
55
+ }) }, e.key))]
56
+ })
57
+ }) }) : null,
58
+ n.sunburst ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("button", {
59
+ "data-mps": "hierarchy-chart",
60
+ ...t(n.sunburst.center.bag),
61
+ style: e(n.sunburst.center.style),
62
+ children: n.sunburst.center.text
63
+ }) }) : null,
64
+ n.icicle ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("div", {
65
+ "data-mps": "hierarchy-chart",
66
+ ...t(n.icicle.tree),
67
+ children: [/* @__PURE__ */ l("div", {
68
+ "data-mps": "hierarchy-chart",
69
+ ...t(n.icicle.focus.bag),
70
+ style: e(n.icicle.focus.style),
71
+ children: n.icicle.focus.label === null ? null : /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("span", {
72
+ "data-mps": "hierarchy-chart",
73
+ ...t(n.cellLabel),
74
+ children: n.icicle.focus.label
75
+ }) })
76
+ }), n.icicle.cells.map((i, a) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ l("div", {
77
+ "data-mps": "hierarchy-chart",
78
+ ...t(i.bag),
79
+ style: e(i.style),
80
+ children: i.label === null ? null : /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("span", {
81
+ "data-mps": "hierarchy-chart",
82
+ ...t(n.cellLabel),
83
+ children: i.label
84
+ }) })
85
+ }) }, i.key))]
86
+ }) }) : null,
87
+ n.treemap ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("div", {
88
+ "data-mps": "hierarchy-chart",
89
+ ...t(n.treemap.wrap),
90
+ children: [/* @__PURE__ */ l("button", {
91
+ "data-mps": "hierarchy-chart",
92
+ ...t(n.treemap.header.bag),
93
+ children: n.treemap.header.text
94
+ }), /* @__PURE__ */ l("div", {
95
+ "data-mps": "hierarchy-chart",
96
+ ...t(n.treemap.body),
97
+ children: n.treemap.cells.map((i, a) => /* @__PURE__ */ l(r.Fragment, { children: /* @__PURE__ */ l("div", {
98
+ "data-mps": "hierarchy-chart",
99
+ ...t(i.bag),
100
+ style: e(i.style),
101
+ children: i.label === null ? null : /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("span", {
102
+ "data-mps": "hierarchy-chart",
103
+ ...t(n.cellLabel),
104
+ children: i.label
105
+ }) })
106
+ }) }, i.key))
107
+ })]
108
+ }) }) : null,
109
+ /* @__PURE__ */ l("div", {
110
+ "data-mps": "hierarchy-chart",
111
+ ...t(n.tooltip.bag),
112
+ style: e(n.tooltip.style),
113
+ children: n.tooltip.text
114
+ }),
115
+ n.hint ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("div", {
116
+ "data-mps": "hierarchy-chart",
117
+ ...t(n.hint.bag),
118
+ children: n.hint.text
119
+ }) }) : null,
120
+ /* @__PURE__ */ l("div", {
121
+ "data-mps": "hierarchy-chart",
122
+ ...t(n.live),
123
+ children: n.announcement
124
+ })
125
+ ]
126
+ })]
127
+ }) });
128
+ }
129
+ //#endregion
130
+ //#region libs/mintplayer-react-bootstrap/charts/hierarchy/src/generated/BsHierarchyChart.generated.tsx
131
+ var m = i(function({ data: e = null, layout: t = "sunburst", rootId: r = null, maxDepth: i = null, minAngle: c = .2, minSize: u = 4, showLabels: m = !0, labelFontSize: h = 12, backdrop: g = null, colorMin: _ = 0, colorMax: v = 100, colorStart: y = "#fe0000", colorEnd: b = "#21b577", transitionDuration: x = 300, locale: S = null, zoomGestures: C = "wheel pinch", zoomHintLabel: w = null, showBreadcrumb: T = !1, breadcrumbLabel: E = "Chart path", zoomOutLabel: D = "Zoom out one level", metricUnitLabel: O = "%", valueUnitLabel: k = "", loadingLabel: A = "Loading", inputLabel: j = null, tooltipFormatter: M = null, labelFormatter: N = null, loadChildren: P = null, onRootIdChange: F, onZoom: I, onNodeSelect: L, onNodeHover: R, onNodeLoadError: z, className: B, children: V, ...H }, U) {
132
+ s("hierarchy-chart", f);
133
+ let W = o(null);
134
+ a(U, () => W.current);
135
+ let G = n(d, {
136
+ data: e,
137
+ layout: t,
138
+ rootId: r,
139
+ maxDepth: i,
140
+ minAngle: c,
141
+ minSize: u,
142
+ showLabels: m,
143
+ labelFontSize: h,
144
+ backdrop: g,
145
+ colorMin: _,
146
+ colorMax: v,
147
+ colorStart: y,
148
+ colorEnd: b,
149
+ transitionDuration: x,
150
+ locale: S,
151
+ zoomGestures: C,
152
+ zoomHintLabel: w,
153
+ showBreadcrumb: T,
154
+ breadcrumbLabel: E,
155
+ zoomOutLabel: D,
156
+ metricUnitLabel: O,
157
+ valueUnitLabel: k,
158
+ loadingLabel: A,
159
+ inputLabel: j,
160
+ tooltipFormatter: M,
161
+ labelFormatter: N,
162
+ loadChildren: P
163
+ }, {
164
+ idPrefix: "bs-hierarchy-chart",
165
+ label: H["aria-label"],
166
+ rootRef: W,
167
+ emit: (e, t) => {
168
+ e === "rootIdChange" && F?.(t), e === "zoom" && I?.(t), e === "nodeSelect" && L?.(t), e === "nodeHover" && R?.(t), e === "nodeLoadError" && z?.(t);
169
+ }
170
+ });
171
+ return /* @__PURE__ */ l(p, {
172
+ ...G.props,
173
+ className: B,
174
+ attrs: H,
175
+ rootRef: W,
176
+ children: V
177
+ });
15
178
  });
16
179
  //#endregion
17
- export { r as BsHierarchyChart };
180
+ export { m as BsHierarchyChart };
@@ -0,0 +1,52 @@
1
+ import { HierarchyChartInputs, HierarchyHoverEventDetail, HierarchyLoadErrorEventDetail, HierarchyNodeEventDetail } from '@mintplayer/ui-core/charts/hierarchy';
2
+ import * as React from 'react';
3
+ export interface BsHierarchyChartProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'data' | 'layout' | 'rootId' | 'maxDepth' | 'minAngle' | 'minSize' | 'showLabels' | 'labelFontSize' | 'backdrop' | 'colorMin' | 'colorMax' | 'colorStart' | 'colorEnd' | 'transitionDuration' | 'locale' | 'zoomGestures' | 'zoomHintLabel' | 'showBreadcrumb' | 'breadcrumbLabel' | 'zoomOutLabel' | 'metricUnitLabel' | 'valueUnitLabel' | 'loadingLabel' | 'inputLabel' | 'tooltipFormatter' | 'labelFormatter' | 'loadChildren' | 'onRootIdChange' | 'onZoom' | 'onNodeSelect' | 'onNodeHover' | 'onNodeLoadError'> {
4
+ data?: HierarchyChartInputs['data'];
5
+ layout?: HierarchyChartInputs['layout'];
6
+ rootId?: HierarchyChartInputs['rootId'];
7
+ /** A positive number, or `auto`. */
8
+ maxDepth?: HierarchyChartInputs['maxDepth'];
9
+ minAngle?: HierarchyChartInputs['minAngle'];
10
+ minSize?: HierarchyChartInputs['minSize'];
11
+ showLabels?: HierarchyChartInputs['showLabels'];
12
+ labelFontSize?: HierarchyChartInputs['labelFontSize'];
13
+ backdrop?: HierarchyChartInputs['backdrop'];
14
+ colorMin?: HierarchyChartInputs['colorMin'];
15
+ colorMax?: HierarchyChartInputs['colorMax'];
16
+ colorStart?: HierarchyChartInputs['colorStart'];
17
+ colorEnd?: HierarchyChartInputs['colorEnd'];
18
+ transitionDuration?: HierarchyChartInputs['transitionDuration'];
19
+ locale?: HierarchyChartInputs['locale'];
20
+ zoomGestures?: HierarchyChartInputs['zoomGestures'];
21
+ zoomHintLabel?: HierarchyChartInputs['zoomHintLabel'];
22
+ showBreadcrumb?: HierarchyChartInputs['showBreadcrumb'];
23
+ breadcrumbLabel?: HierarchyChartInputs['breadcrumbLabel'];
24
+ zoomOutLabel?: HierarchyChartInputs['zoomOutLabel'];
25
+ metricUnitLabel?: HierarchyChartInputs['metricUnitLabel'];
26
+ valueUnitLabel?: HierarchyChartInputs['valueUnitLabel'];
27
+ loadingLabel?: HierarchyChartInputs['loadingLabel'];
28
+ inputLabel?: HierarchyChartInputs['inputLabel'];
29
+ tooltipFormatter?: HierarchyChartInputs['tooltipFormatter'];
30
+ labelFormatter?: HierarchyChartInputs['labelFormatter'];
31
+ loadChildren?: HierarchyChartInputs['loadChildren'];
32
+ /** The focus node changed (null: the tree root). */
33
+ onRootIdChange?: (detail: string | null) => void;
34
+ /** The chart re-rooted on a node; the detail has its path. */
35
+ onZoom?: (detail: HierarchyNodeEventDetail) => void;
36
+ /** A leaf was clicked or activated with Enter. */
37
+ onNodeSelect?: (detail: HierarchyNodeEventDetail) => void;
38
+ /** The hovered node changed (`node` null when the pointer leaves). */
39
+ onNodeHover?: (detail: HierarchyHoverEventDetail) => void;
40
+ /** A lazy `loadChildren` call rejected; activating the node retries. */
41
+ onNodeLoadError?: (detail: HierarchyLoadErrorEventDetail) => void;
42
+ children?: React.ReactNode;
43
+ }
44
+ /**
45
+ * One weighted tree, three projections: `layout` is sunburst, icicle or treemap.
46
+ *
47
+ * Size follows the summed leaf `value`, colour follows `colorValue`. Click, Enter or a breadcrumb re-roots
48
+ * on a node (two-way `rootId`); ctrl/cmd+wheel, pinch and `+` / `-` / `0` magnify it geometrically.
49
+ * Every node is a treeitem: arrows move between siblings (Down goes outward), Escape and Backspace zoom out.
50
+ * The server renders the finished chart at a 420px fallback scale, its controls inert until it is live.
51
+ */
52
+ export declare const BsHierarchyChart: React.ForwardRefExoticComponent<BsHierarchyChartProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,14 @@
1
+ import { HierarchyChartView } from '@mintplayer/ui-core/charts/hierarchy';
2
+ import * as React from 'react';
3
+ export type HierarchyChartTemplateProps = {
4
+ view: HierarchyChartView;
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
+ rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
13
+ };
14
+ export declare function HierarchyChartTemplate({ view, slots, children, className, attrs, rootRef }: HierarchyChartTemplateProps): React.ReactElement;
@@ -0,0 +1 @@
1
+ export { BsHierarchyChart, type BsHierarchyChartProps } from './BsHierarchyChart.generated';
@@ -1,2 +1,2 @@
1
- export { BsHierarchyChart } from './BsHierarchyChart';
2
- export type { HierarchyNode, HierarchyChartLayout, HierarchyChildrenLoader, HierarchyNodeFormatter, HierarchyNodeEventDetail, HierarchyHoverEventDetail, HierarchyLoadErrorEventDetail, } from '@mintplayer/web-components/charts/hierarchy';
1
+ export * from './generated';
2
+ export type { HierarchyChartLayout, HierarchyChildrenLoader, HierarchyHoverEventDetail, HierarchyLoadErrorEventDetail, HierarchyNode, HierarchyNodeEventDetail, HierarchyNodeFormatter, } from '@mintplayer/ui-core/charts/hierarchy';
@@ -1,11 +1,38 @@
1
- import * as e from "react";
2
- import { createComponent as t } from "@lit/react";
3
- import { MpSparkline as n } from "@mintplayer/web-components/charts/sparkline";
1
+ import { r as e } from "../../chunks/react-props-C2O2_2V2.mjs";
2
+ import { forwardRef as t, useEffect as n, useImperativeHandle as r, useRef as i, useState as a } from "react";
3
+ import { installLightStyles as o } from "@mintplayer/ui-core/scoped-styles";
4
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
5
+ import { SPARKLINE_SCOPE as l, connectSparkline as u, sparklineScopedStyles as d } from "@mintplayer/ui-core/charts/sparkline";
4
6
  //#region libs/mintplayer-react-bootstrap/charts/sparkline/src/BsSparkline.tsx
5
- var r = t({
6
- react: e,
7
- tagName: "mp-sparkline",
8
- elementClass: n
7
+ var f = t(function({ points: t = [], area: f, showLastDot: p, yMin: m, yMax: h, locale: g, inputLabel: _, summaryFormatter: v, className: y, "aria-label": b, ...x }, S) {
8
+ o(l, d);
9
+ let C = i(null);
10
+ r(S, () => C.current);
11
+ let [w, T] = a(void 0);
12
+ n(() => T(C.current?.closest("[lang]")?.getAttribute("lang") ?? void 0), []);
13
+ let E = u(t, {
14
+ area: f,
15
+ showLastDot: p,
16
+ yMin: m,
17
+ yMax: h,
18
+ locale: g ?? w,
19
+ label: b ?? _,
20
+ summaryFormatter: v
21
+ }), { class: D, ...O } = E.root;
22
+ return /* @__PURE__ */ s("span", {
23
+ ref: C,
24
+ ...e(O),
25
+ ...x,
26
+ className: [String(D), y].filter(Boolean).join(" "),
27
+ children: E.svg && /* @__PURE__ */ c("svg", {
28
+ ...e(E.svg),
29
+ children: [
30
+ E.fill && /* @__PURE__ */ s("path", { ...e(E.fill) }),
31
+ /* @__PURE__ */ s("path", { ...e(E.line) }),
32
+ E.dot && /* @__PURE__ */ s("circle", { ...e(E.dot) })
33
+ ]
34
+ })
35
+ });
9
36
  });
10
37
  //#endregion
11
- export { r as BsSparkline };
38
+ export { f as BsSparkline };
@@ -1,3 +1,21 @@
1
- import { MpSparkline } from '@mintplayer/web-components/charts/sparkline';
2
- /** React wrapper for `<mp-sparkline>`. Side-effect-registers the WC. */
3
- export declare const BsSparkline: import('@lit/react').ReactWebComponent<MpSparkline, {}>;
1
+ import * as React from 'react';
2
+ export interface BsSparklineProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
3
+ /** `null` renders a gap. */
4
+ points?: (number | null)[];
5
+ area?: boolean;
6
+ showLastDot?: boolean;
7
+ yMin?: number;
8
+ yMax?: number;
9
+ /** Number formatting for the generated name. Defaults to the nearest `lang` once mounted. */
10
+ locale?: string;
11
+ inputLabel?: string;
12
+ summaryFormatter?: (points: (number | null)[]) => string | undefined;
13
+ }
14
+ /**
15
+ * An axis-less inline trend for table cells (#437), rendered from
16
+ * `@mintplayer/ui-core/charts/sparkline`, so the server HTML is the finished
17
+ * chart. The `<span class="sparkline">` is the sized box and the ref; the
18
+ * `role="img"` svg inside is named by `aria-label`, `inputLabel`,
19
+ * `summaryFormatter`, or the generated "first, last, lowest, highest".
20
+ */
21
+ export declare const BsSparkline: React.ForwardRefExoticComponent<BsSparklineProps & React.RefAttributes<HTMLSpanElement | null>>;