@mintplayer/react-bootstrap 19.14.0 → 19.16.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,17 @@
1
+ import * as r from "react";
2
+ import { createComponent as e } from "@lit/react";
3
+ import { MpHierarchyChart as o } from "@mintplayer/web-components/charts/hierarchy";
4
+ const c = e({
5
+ react: r,
6
+ tagName: "mp-hierarchy-chart",
7
+ elementClass: o,
8
+ events: {
9
+ onHierarchyZoom: "hierarchy-zoom",
10
+ onHierarchyNodeSelect: "hierarchy-node-select",
11
+ onHierarchyNodeHover: "hierarchy-node-hover",
12
+ onHierarchyNodeLoadError: "hierarchy-node-load-error"
13
+ }
14
+ });
15
+ export {
16
+ c as BsHierarchyChart
17
+ };
@@ -0,0 +1,13 @@
1
+ import { EventName } from '@lit/react';
2
+ import { MpHierarchyChart, HierarchyHoverEventDetail, HierarchyLoadErrorEventDetail, HierarchyNodeEventDetail } from '@mintplayer/web-components/charts/hierarchy';
3
+ /**
4
+ * React wrapper for `<mp-hierarchy-chart>`. Side-effect-registers the WC.
5
+ * `data`, `loadChildren` and the formatters are objects/functions —
6
+ * @lit/react forwards them as element properties.
7
+ */
8
+ export declare const BsHierarchyChart: import('@lit/react').ReactWebComponent<MpHierarchyChart, {
9
+ onHierarchyZoom: EventName<CustomEvent<HierarchyNodeEventDetail>>;
10
+ onHierarchyNodeSelect: EventName<CustomEvent<HierarchyNodeEventDetail>>;
11
+ onHierarchyNodeHover: EventName<CustomEvent<HierarchyHoverEventDetail>>;
12
+ onHierarchyNodeLoadError: EventName<CustomEvent<HierarchyLoadErrorEventDetail>>;
13
+ }>;
@@ -0,0 +1,2 @@
1
+ export { BsHierarchyChart } from './BsHierarchyChart';
2
+ export type { HierarchyNode, HierarchyChartLayout, HierarchyChildrenLoader, HierarchyNodeFormatter, HierarchyNodeEventDetail, HierarchyHoverEventDetail, HierarchyLoadErrorEventDetail, } from '@mintplayer/web-components/charts/hierarchy';
@@ -0,0 +1,11 @@
1
+ import * as e from "react";
2
+ import { createComponent as r } from "@lit/react";
3
+ import { MpSparkline as t } from "@mintplayer/web-components/charts/sparkline";
4
+ const o = r({
5
+ react: e,
6
+ tagName: "mp-sparkline",
7
+ elementClass: t
8
+ });
9
+ export {
10
+ o as BsSparkline
11
+ };
@@ -0,0 +1,3 @@
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, {}>;
@@ -0,0 +1 @@
1
+ export { BsSparkline } from './BsSparkline';
@@ -0,0 +1,15 @@
1
+ import * as e from "react";
2
+ import { createComponent as t } from "@lit/react";
3
+ import { MpTrendChart as r } from "@mintplayer/web-components/charts/trend";
4
+ const a = t({
5
+ react: e,
6
+ tagName: "mp-trend-chart",
7
+ elementClass: r,
8
+ events: {
9
+ onTrendPointHover: "trend-point-hover",
10
+ onTrendPointSelect: "trend-point-select"
11
+ }
12
+ });
13
+ export {
14
+ a as BsTrendChart
15
+ };
@@ -0,0 +1,7 @@
1
+ import { EventName } from '@lit/react';
2
+ import { MpTrendChart, TrendHoverEventDetail, TrendPointEventDetail } from '@mintplayer/web-components/charts/trend';
3
+ /** React wrapper for `<mp-trend-chart>`. Side-effect-registers the WC. */
4
+ export declare const BsTrendChart: import('@lit/react').ReactWebComponent<MpTrendChart, {
5
+ onTrendPointHover: EventName<CustomEvent<TrendHoverEventDetail>>;
6
+ onTrendPointSelect: EventName<CustomEvent<TrendPointEventDetail>>;
7
+ }>;
@@ -0,0 +1,2 @@
1
+ export { BsTrendChart } from './BsTrendChart';
2
+ export type { TrendSeries, TrendPoint, TrendPointEventDetail, TrendHoverEventDetail, } from '@mintplayer/web-components/charts/trend';
@@ -1,11 +1,15 @@
1
1
  import * as e from "react";
2
2
  import { createComponent as t } from "@lit/react";
3
3
  import { MpCodeSnippet as o } from "@mintplayer/web-components/code-snippet";
4
- const r = t({
4
+ const p = t({
5
5
  react: e,
6
6
  tagName: "mp-code-snippet",
7
- elementClass: o
7
+ elementClass: o,
8
+ events: {
9
+ onLanguageDetected: "language-detected",
10
+ onLineActivate: "line-activate"
11
+ }
8
12
  });
9
13
  export {
10
- r as BsCodeSnippet
14
+ p as BsCodeSnippet
11
15
  };
@@ -1,8 +1,21 @@
1
+ import { EventName } from '@lit/react';
1
2
  import { MpCodeSnippet } from '@mintplayer/web-components/code-snippet';
2
3
  /**
3
- * React wrapper for `<mp-code-snippet>`. Side-effect-registers the WC via
4
- * the import above. Typed props/events extend off MpCodeSnippet;
5
- * hand-edit this file to add an `events: { onXxx: 'xxx' as EventName<...> }`
6
- * block if you need typed event listeners.
4
+ * React wrapper for `<mp-code-snippet>`. Side-effect-registers the WC via the
5
+ * import above; props are typed off MpCodeSnippet, so `annotations` and
6
+ * `lineHref` (an object and a function) are assigned through the element ref
7
+ * by @lit/react rather than being stringified into attributes.
8
+ *
9
+ * The `events` map is what turns the element's CustomEvents into React props.
10
+ * Without it `language-detected` and `line-activate` are simply unreachable
11
+ * from React — there is no `on*` prop for an event @lit/react was not told
12
+ * about.
7
13
  */
8
- export declare const BsCodeSnippet: import('@lit/react').ReactWebComponent<MpCodeSnippet, {}>;
14
+ export declare const BsCodeSnippet: import('@lit/react').ReactWebComponent<MpCodeSnippet, {
15
+ onLanguageDetected: EventName<CustomEvent<{
16
+ language: string;
17
+ }>>;
18
+ onLineActivate: EventName<CustomEvent<{
19
+ line: number;
20
+ }>>;
21
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/react-bootstrap",
3
- "version": "19.14.0",
3
+ "version": "19.16.0",
4
4
  "description": "React 19 wrappers around @mintplayer/web-components. Each sub-entry maps one-to-one with a WC sub-entry and exposes typed React components via @lit/react's createComponent.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -25,7 +25,155 @@
25
25
  "types": "./src/index.d.ts",
26
26
  "import": "./index.mjs"
27
27
  },
28
- "./package.json": "./package.json"
28
+ "./package.json": "./package.json",
29
+ "./accordion": {
30
+ "types": "./accordion/src/index.d.ts",
31
+ "import": "./accordion/index.mjs"
32
+ },
33
+ "./calendar": {
34
+ "types": "./calendar/src/index.d.ts",
35
+ "import": "./calendar/index.mjs"
36
+ },
37
+ "./card": {
38
+ "types": "./card/src/index.d.ts",
39
+ "import": "./card/index.mjs"
40
+ },
41
+ "./carousel": {
42
+ "types": "./carousel/src/index.d.ts",
43
+ "import": "./carousel/index.mjs"
44
+ },
45
+ "./charts/hierarchy": {
46
+ "types": "./charts/hierarchy/src/index.d.ts",
47
+ "import": "./charts/hierarchy/index.mjs"
48
+ },
49
+ "./charts/sparkline": {
50
+ "types": "./charts/sparkline/src/index.d.ts",
51
+ "import": "./charts/sparkline/index.mjs"
52
+ },
53
+ "./charts/trend": {
54
+ "types": "./charts/trend/src/index.d.ts",
55
+ "import": "./charts/trend/index.mjs"
56
+ },
57
+ "./checkbox": {
58
+ "types": "./checkbox/src/index.d.ts",
59
+ "import": "./checkbox/index.mjs"
60
+ },
61
+ "./code-snippet": {
62
+ "types": "./code-snippet/src/index.d.ts",
63
+ "import": "./code-snippet/index.mjs"
64
+ },
65
+ "./datatable": {
66
+ "types": "./datatable/src/index.d.ts",
67
+ "import": "./datatable/index.mjs"
68
+ },
69
+ "./datepicker": {
70
+ "types": "./datepicker/src/index.d.ts",
71
+ "import": "./datepicker/index.mjs"
72
+ },
73
+ "./datetime-picker": {
74
+ "types": "./datetime-picker/src/index.d.ts",
75
+ "import": "./datetime-picker/index.mjs"
76
+ },
77
+ "./dock": {
78
+ "types": "./dock/src/index.d.ts",
79
+ "import": "./dock/index.mjs"
80
+ },
81
+ "./dropdown-menu": {
82
+ "types": "./dropdown-menu/src/index.d.ts",
83
+ "import": "./dropdown-menu/index.mjs"
84
+ },
85
+ "./file-manager": {
86
+ "types": "./file-manager/src/index.d.ts",
87
+ "import": "./file-manager/index.mjs"
88
+ },
89
+ "./input-group": {
90
+ "types": "./input-group/src/index.d.ts",
91
+ "import": "./input-group/index.mjs"
92
+ },
93
+ "./multi-range": {
94
+ "types": "./multi-range/src/index.d.ts",
95
+ "import": "./multi-range/index.mjs"
96
+ },
97
+ "./navbar": {
98
+ "types": "./navbar/src/index.d.ts",
99
+ "import": "./navbar/index.mjs"
100
+ },
101
+ "./otp-input": {
102
+ "types": "./otp-input/src/index.d.ts",
103
+ "import": "./otp-input/index.mjs"
104
+ },
105
+ "./pagination": {
106
+ "types": "./pagination/src/index.d.ts",
107
+ "import": "./pagination/index.mjs"
108
+ },
109
+ "./phone-input": {
110
+ "types": "./phone-input/src/index.d.ts",
111
+ "import": "./phone-input/index.mjs"
112
+ },
113
+ "./query-builder": {
114
+ "types": "./query-builder/src/index.d.ts",
115
+ "import": "./query-builder/index.mjs"
116
+ },
117
+ "./radio": {
118
+ "types": "./radio/src/index.d.ts",
119
+ "import": "./radio/index.mjs"
120
+ },
121
+ "./radio-group": {
122
+ "types": "./radio-group/src/index.d.ts",
123
+ "import": "./radio-group/index.mjs"
124
+ },
125
+ "./ribbon": {
126
+ "types": "./ribbon/src/index.d.ts",
127
+ "import": "./ribbon/index.mjs"
128
+ },
129
+ "./scheduler": {
130
+ "types": "./scheduler/src/index.d.ts",
131
+ "import": "./scheduler/index.mjs"
132
+ },
133
+ "./select": {
134
+ "types": "./select/src/index.d.ts",
135
+ "import": "./select/index.mjs"
136
+ },
137
+ "./shell": {
138
+ "types": "./shell/src/index.d.ts",
139
+ "import": "./shell/index.mjs"
140
+ },
141
+ "./signature-pad": {
142
+ "types": "./signature-pad/src/index.d.ts",
143
+ "import": "./signature-pad/index.mjs"
144
+ },
145
+ "./splitter": {
146
+ "types": "./splitter/src/index.d.ts",
147
+ "import": "./splitter/index.mjs"
148
+ },
149
+ "./tab-control": {
150
+ "types": "./tab-control/src/index.d.ts",
151
+ "import": "./tab-control/index.mjs"
152
+ },
153
+ "./tile-manager": {
154
+ "types": "./tile-manager/src/index.d.ts",
155
+ "import": "./tile-manager/index.mjs"
156
+ },
157
+ "./timeline": {
158
+ "types": "./timeline/src/index.d.ts",
159
+ "import": "./timeline/index.mjs"
160
+ },
161
+ "./timepicker": {
162
+ "types": "./timepicker/src/index.d.ts",
163
+ "import": "./timepicker/index.mjs"
164
+ },
165
+ "./toggle-button": {
166
+ "types": "./toggle-button/src/index.d.ts",
167
+ "import": "./toggle-button/index.mjs"
168
+ },
169
+ "./tree-select": {
170
+ "types": "./tree-select/src/index.d.ts",
171
+ "import": "./tree-select/index.mjs"
172
+ },
173
+ "./treeview": {
174
+ "types": "./treeview/src/index.d.ts",
175
+ "import": "./treeview/index.mjs"
176
+ }
29
177
  },
30
178
  "peerDependencies": {
31
179
  "react": "^19.0.0",
@@ -36,4 +184,4 @@
36
184
  "dependencies": {
37
185
  "tslib": "^2.3.0"
38
186
  }
39
- }
187
+ }