@m3e/react 2.2.1 → 2.3.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,30 @@
1
+ /**
2
+ * @license MIT
3
+ * Copyright (c) 2025 matraic
4
+ * See LICENSE file in the project root for full license text.
5
+ */
6
+ import React from 'react';
7
+ import { createComponent } from '@lit/react';
8
+ import { M3eSkeletonElement } from '@m3e/web/skeleton';
9
+
10
+ /**
11
+ * React binding for the `m3e-skeleton` Web Component from `@m3e/web/skeleton`.
12
+ *
13
+ * This component renders the underlying `<m3e-skeleton>` element and exposes its
14
+ * properties, attributes, and events through an idiomatic React interface.
15
+ *
16
+ * Props map directly to element properties, and event handlers receive the
17
+ * native DOM events dispatched by the component. Refs are forwarded to the
18
+ * underlying `<m3e-skeleton>` instance for imperative access.
19
+ *
20
+ * See the `m3e-skeleton` documentation for full details on behavior, styling,
21
+ * accessibility, and supported events.
22
+ */
23
+ const M3eSkeleton = createComponent({
24
+ tagName: "m3e-skeleton",
25
+ elementClass: M3eSkeletonElement,
26
+ react: React
27
+ });
28
+
29
+ export { M3eSkeleton };
30
+ //# sourceMappingURL=skeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.js","sources":["../../src/skeleton/Skeleton.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSkeletonElement } from \"@m3e/web/skeleton\";\r\nexport type { M3eSkeletonElement, SkeletonAnimation, SkeletonShape } from \"@m3e/web/skeleton\";\r\n\r\n/**\r\n * React binding for the `m3e-skeleton` Web Component from `@m3e/web/skeleton`.\r\n *\r\n * This component renders the underlying `<m3e-skeleton>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-skeleton>` instance for imperative access.\r\n *\r\n * See the `m3e-skeleton` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSkeleton = createComponent({\r\n tagName: \"m3e-skeleton\",\r\n elementClass: M3eSkeletonElement,\r\n react: React,\r\n});\r\n"],"names":["M3eSkeleton","createComponent","tagName","elementClass","M3eSkeletonElement","react","React"],"mappings":";;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAMA,WAAW,GAAGC,eAAe,CAAC;AACzCC,EAAAA,OAAO,EAAE,cAAc;AACvBC,EAAAA,YAAY,EAAEC,kBAAkB;AAChCC,EAAAA,KAAK,EAAEC;AACR,CAAA;;;;"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license MIT
3
+ * Copyright (c) 2025 matraic
4
+ * See LICENSE file in the project root for full license text.
5
+ */
6
+ import e from"react";import{createComponent as t}from"@lit/react";import{M3eSkeletonElement as m}from"@m3e/web/skeleton";const o=t({tagName:"m3e-skeleton",elementClass:m,react:e});export{o as M3eSkeleton};
7
+ //# sourceMappingURL=skeleton.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.min.js","sources":["../../src/skeleton/Skeleton.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSkeletonElement } from \"@m3e/web/skeleton\";\r\nexport type { M3eSkeletonElement, SkeletonAnimation, SkeletonShape } from \"@m3e/web/skeleton\";\r\n\r\n/**\r\n * React binding for the `m3e-skeleton` Web Component from `@m3e/web/skeleton`.\r\n *\r\n * This component renders the underlying `<m3e-skeleton>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-skeleton>` instance for imperative access.\r\n *\r\n * See the `m3e-skeleton` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSkeleton = createComponent({\r\n tagName: \"m3e-skeleton\",\r\n elementClass: M3eSkeletonElement,\r\n react: React,\r\n});\r\n"],"names":["M3eSkeleton","createComponent","tagName","elementClass","M3eSkeletonElement","react","React"],"mappings":";;;;;yHAmBO,MAAMA,EAAcC,EAAgB,CACzCC,QAAS,eACTC,aAAcC,EACdC,MAAOC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license MIT
3
+ * Copyright (c) 2025 matraic
4
+ * See LICENSE file in the project root for full license text.
5
+ */
6
+ import React from 'react';
7
+ import { createComponent } from '@lit/react';
8
+ import { M3eSplitPaneElement } from '@m3e/web/split-pane';
9
+
10
+ /**
11
+ * React binding for the `m3e-split-pane` Web Component from `@m3e/web/split-pane`.
12
+ *
13
+ * This component renders the underlying `<m3e-split-pane>` element and exposes its
14
+ * properties, attributes, and events through an idiomatic React interface.
15
+ *
16
+ * Props map directly to element properties, and event handlers receive the
17
+ * native DOM events dispatched by the component. Refs are forwarded to the
18
+ * underlying `<m3e-split-pane>` instance for imperative access.
19
+ *
20
+ * See the `m3e-split-pane` documentation for full details on behavior, styling,
21
+ * accessibility, and supported events.
22
+ */
23
+ const M3eSplitPane = createComponent({
24
+ tagName: "m3e-split-pane",
25
+ elementClass: M3eSplitPaneElement,
26
+ react: React,
27
+ events: {
28
+ onInput: "input",
29
+ onChange: "change"
30
+ }
31
+ });
32
+
33
+ export { M3eSplitPane };
34
+ //# sourceMappingURL=split-pane.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-pane.js","sources":["../../src/split-pane/SplitPane.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSplitPaneElement } from \"@m3e/web/split-pane\";\r\nexport type { M3eSplitPaneElement, SplitPaneOrientation } from \"@m3e/web/split-pane\";\r\n\r\n/**\r\n * React binding for the `m3e-split-pane` Web Component from `@m3e/web/split-pane`.\r\n *\r\n * This component renders the underlying `<m3e-split-pane>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-split-pane>` instance for imperative access.\r\n *\r\n * See the `m3e-split-pane` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSplitPane = createComponent({\r\n tagName: \"m3e-split-pane\",\r\n elementClass: M3eSplitPaneElement,\r\n react: React,\r\n events: {\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n },\r\n});\r\n"],"names":["M3eSplitPane","createComponent","tagName","elementClass","M3eSplitPaneElement","react","React","events","onInput","onChange"],"mappings":";;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAMA,YAAY,GAAGC,eAAe,CAAC;AAC1CC,EAAAA,OAAO,EAAE,gBAAgB;AACzBC,EAAAA,YAAY,EAAEC,mBAAmB;AACjCC,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,OAAO,EAAE,OAAO;AAChBC,IAAAA,QAAQ,EAAE;AACX;AACF,CAAA;;;;"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license MIT
3
+ * Copyright (c) 2025 matraic
4
+ * See LICENSE file in the project root for full license text.
5
+ */
6
+ import e from"react";import{createComponent as t}from"@lit/react";import{M3eSplitPaneElement as n}from"@m3e/web/split-pane";const a=t({tagName:"m3e-split-pane",elementClass:n,react:e,events:{onInput:"input",onChange:"change"}});export{a as M3eSplitPane};
7
+ //# sourceMappingURL=split-pane.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-pane.min.js","sources":["../../src/split-pane/SplitPane.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSplitPaneElement } from \"@m3e/web/split-pane\";\r\nexport type { M3eSplitPaneElement, SplitPaneOrientation } from \"@m3e/web/split-pane\";\r\n\r\n/**\r\n * React binding for the `m3e-split-pane` Web Component from `@m3e/web/split-pane`.\r\n *\r\n * This component renders the underlying `<m3e-split-pane>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-split-pane>` instance for imperative access.\r\n *\r\n * See the `m3e-split-pane` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSplitPane = createComponent({\r\n tagName: \"m3e-split-pane\",\r\n elementClass: M3eSplitPaneElement,\r\n react: React,\r\n events: {\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n },\r\n});\r\n"],"names":["M3eSplitPane","createComponent","tagName","elementClass","M3eSplitPaneElement","react","React","events","onInput","onChange"],"mappings":";;;;;4HAmBO,MAAMA,EAAeC,EAAgB,CAC1CC,QAAS,iBACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,QAAS,QACTC,SAAU"}
package/dist/src/all.d.ts CHANGED
@@ -35,10 +35,12 @@ export * from "./search";
35
35
  export * from "./segmented-button";
36
36
  export * from "./select";
37
37
  export * from "./shape";
38
+ export * from "./skeleton";
38
39
  export * from "./slide-group";
39
40
  export * from "./slider";
40
41
  export * from "./snackbar";
41
42
  export * from "./split-button";
43
+ export * from "./split-pane";
42
44
  export * from "./stepper";
43
45
  export * from "./switch";
44
46
  export * from "./tabs";
@@ -1 +1 @@
1
- {"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../src/all.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;A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xB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { M3eSkeletonElement } from "@m3e/web/skeleton";
2
+ export type { M3eSkeletonElement, SkeletonAnimation, SkeletonShape } from "@m3e/web/skeleton";
3
+ /**
4
+ * React binding for the `m3e-skeleton` Web Component from `@m3e/web/skeleton`.
5
+ *
6
+ * This component renders the underlying `<m3e-skeleton>` element and exposes its
7
+ * properties, attributes, and events through an idiomatic React interface.
8
+ *
9
+ * Props map directly to element properties, and event handlers receive the
10
+ * native DOM events dispatched by the component. Refs are forwarded to the
11
+ * underlying `<m3e-skeleton>` instance for imperative access.
12
+ *
13
+ * See the `m3e-skeleton` documentation for full details on behavior, styling,
14
+ * accessibility, and supported events.
15
+ */
16
+ export declare const M3eSkeleton: import("@lit/react").ReactWebComponent<M3eSkeletonElement, {}>;
17
+ //# sourceMappingURL=Skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/skeleton/Skeleton.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE9F;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,gEAItB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./Skeleton";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/skeleton/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { M3eSplitPaneElement } from "@m3e/web/split-pane";
2
+ export type { M3eSplitPaneElement, SplitPaneOrientation } from "@m3e/web/split-pane";
3
+ /**
4
+ * React binding for the `m3e-split-pane` Web Component from `@m3e/web/split-pane`.
5
+ *
6
+ * This component renders the underlying `<m3e-split-pane>` element and exposes its
7
+ * properties, attributes, and events through an idiomatic React interface.
8
+ *
9
+ * Props map directly to element properties, and event handlers receive the
10
+ * native DOM events dispatched by the component. Refs are forwarded to the
11
+ * underlying `<m3e-split-pane>` instance for imperative access.
12
+ *
13
+ * See the `m3e-split-pane` documentation for full details on behavior, styling,
14
+ * accessibility, and supported events.
15
+ */
16
+ export declare const M3eSplitPane: import("@lit/react").ReactWebComponent<M3eSplitPaneElement, {
17
+ onInput: string;
18
+ onChange: string;
19
+ }>;
20
+ //# sourceMappingURL=SplitPane.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SplitPane.d.ts","sourceRoot":"","sources":["../../../src/split-pane/SplitPane.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAErF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY;;;EAQvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./SplitPane";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/split-pane/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m3e/react",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
4
  "description": "React bindings for M3E Web Components",
5
5
  "author": "matraic <matraic@yahoo.com>",
6
6
  "license": "MIT",
@@ -163,6 +163,10 @@
163
163
  "types": "./dist/src/shape/index.d.ts",
164
164
  "default": "./dist/shape.js"
165
165
  },
166
+ "./skeleton": {
167
+ "types": "./dist/src/skeleton/index.d.ts",
168
+ "default": "./dist/skeleton.js"
169
+ },
166
170
  "./slide-group": {
167
171
  "types": "./dist/src/slide-group/index.d.ts",
168
172
  "default": "./dist/slide-group.js"
@@ -179,6 +183,10 @@
179
183
  "types": "./dist/src/split-button/index.d.ts",
180
184
  "default": "./dist/split-button.js"
181
185
  },
186
+ "./split-pane": {
187
+ "types": "./dist/src/split-pane/index.d.ts",
188
+ "default": "./dist/split-pane.js"
189
+ },
182
190
  "./stepper": {
183
191
  "types": "./dist/src/stepper/index.d.ts",
184
192
  "default": "./dist/stepper.js"
@@ -224,7 +232,7 @@
224
232
  },
225
233
  "peerDependencies": {
226
234
  "@lit/react": "^1.0.8",
227
- "@m3e/web": "^2.2.1",
235
+ "@m3e/web": "^2.3.0",
228
236
  "lit": "^3.3.0",
229
237
  "react": ">=18"
230
238
  }