@m3e/react 2.9.1 → 2.10.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–2026 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 { M3eCalloutElement } from '@m3e/web/callout';
9
+
10
+ /**
11
+ * React binding for the `m3e-callout` Web Component from `@m3e/web/callout`.
12
+ *
13
+ * This component renders the underlying `<m3e-callout>` 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-callout>` instance for imperative access.
19
+ *
20
+ * See the `m3e-callout` documentation for full details on behavior,
21
+ * styling, accessibility, and supported events.
22
+ */
23
+ const M3eCallout = createComponent({
24
+ tagName: "m3e-callout",
25
+ elementClass: M3eCalloutElement,
26
+ react: React
27
+ });
28
+
29
+ export { M3eCallout };
30
+ //# sourceMappingURL=callout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callout.js","sources":["../../src/callout/Callout.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eCalloutElement } from \"@m3e/web/callout\";\r\nexport type { M3eCalloutElement, CalloutVariant, CalloutShape } from \"@m3e/web/callout\";\r\n\r\n/**\r\n * React binding for the `m3e-callout` Web Component from `@m3e/web/callout`.\r\n *\r\n * This component renders the underlying `<m3e-callout>` 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-callout>` instance for imperative access.\r\n *\r\n * See the `m3e-callout` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eCallout = createComponent({\r\n tagName: \"m3e-callout\",\r\n elementClass: M3eCalloutElement,\r\n react: React,\r\n});\r\n"],"names":["M3eCallout","createComponent","tagName","elementClass","M3eCalloutElement","react","React"],"mappings":";;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAMA,UAAU,GAAGC,eAAe,CAAC;AACxCC,EAAAA,OAAO,EAAE,aAAa;AACtBC,EAAAA,YAAY,EAAEC,iBAAiB;AAC/BC,EAAAA,KAAK,EAAEC;AACR,CAAA;;;;"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license MIT
3
+ * Copyright (c) 2025–2026 matraic
4
+ * See LICENSE file in the project root for full license text.
5
+ */
6
+ import t from"react";import{createComponent as e}from"@lit/react";import{M3eCalloutElement as m}from"@m3e/web/callout";const o=e({tagName:"m3e-callout",elementClass:m,react:t});export{o as M3eCallout};
7
+ //# sourceMappingURL=callout.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callout.min.js","sources":["../../src/callout/Callout.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eCalloutElement } from \"@m3e/web/callout\";\r\nexport type { M3eCalloutElement, CalloutVariant, CalloutShape } from \"@m3e/web/callout\";\r\n\r\n/**\r\n * React binding for the `m3e-callout` Web Component from `@m3e/web/callout`.\r\n *\r\n * This component renders the underlying `<m3e-callout>` 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-callout>` instance for imperative access.\r\n *\r\n * See the `m3e-callout` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eCallout = createComponent({\r\n tagName: \"m3e-callout\",\r\n elementClass: M3eCalloutElement,\r\n react: React,\r\n});\r\n"],"names":["M3eCallout","createComponent","tagName","elementClass","M3eCalloutElement","react","React"],"mappings":";;;;;uHAmBO,MAAMA,EAAaC,EAAgB,CACxCC,QAAS,cACTC,aAAcC,EACdC,MAAOC"}
package/dist/select.js CHANGED
@@ -27,7 +27,8 @@ const M3eSelect = createComponent({
27
27
  events: {
28
28
  onBeforeInput: "beforeinput",
29
29
  onInput: "input",
30
- onChange: "change"
30
+ onChange: "change",
31
+ onToggle: "toggle"
31
32
  }
32
33
  });
33
34
 
@@ -1 +1 @@
1
- {"version":3,"file":"select.js","sources":["../../src/select/Select.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSelectElement } from \"@m3e/web/select\";\r\nexport type { M3eSelectElement } from \"@m3e/web/select\";\r\n\r\n/**\r\n * React binding for the `m3e-select` Web Component from `@m3e/web/select`.\r\n *\r\n * This component renders the underlying `<m3e-select>` 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-select>` instance for imperative access.\r\n *\r\n * See the `m3e-select` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSelect = createComponent({\r\n tagName: \"m3e-select\",\r\n elementClass: M3eSelectElement,\r\n react: React,\r\n events: {\r\n onBeforeInput: \"beforeinput\",\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n },\r\n});\r\n"],"names":["M3eSelect","createComponent","tagName","elementClass","M3eSelectElement","react","React","events","onBeforeInput","onInput","onChange"],"mappings":";;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAMA,SAAS,GAAGC,eAAe,CAAC;AACvCC,EAAAA,OAAO,EAAE,YAAY;AACrBC,EAAAA,YAAY,EAAEC,gBAAgB;AAC9BC,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,aAAa,EAAE,aAAa;AAC5BC,IAAAA,OAAO,EAAE,OAAO;AAChBC,IAAAA,QAAQ,EAAE;AACX;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"select.js","sources":["../../src/select/Select.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSelectElement } from \"@m3e/web/select\";\r\nexport type { M3eSelectElement } from \"@m3e/web/select\";\r\n\r\n/**\r\n * React binding for the `m3e-select` Web Component from `@m3e/web/select`.\r\n *\r\n * This component renders the underlying `<m3e-select>` 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-select>` instance for imperative access.\r\n *\r\n * See the `m3e-select` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSelect = createComponent({\r\n tagName: \"m3e-select\",\r\n elementClass: M3eSelectElement,\r\n react: React,\r\n events: {\r\n onBeforeInput: \"beforeinput\",\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n onToggle: \"toggle\",\r\n },\r\n});\r\n"],"names":["M3eSelect","createComponent","tagName","elementClass","M3eSelectElement","react","React","events","onBeforeInput","onInput","onChange","onToggle"],"mappings":";;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAMA,SAAS,GAAGC,eAAe,CAAC;AACvCC,EAAAA,OAAO,EAAE,YAAY;AACrBC,EAAAA,YAAY,EAAEC,gBAAgB;AAC9BC,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,aAAa,EAAE,aAAa;AAC5BC,IAAAA,OAAO,EAAE,OAAO;AAChBC,IAAAA,QAAQ,EAAE,QAAQ;AAClBC,IAAAA,QAAQ,EAAE;AACX;AACF,CAAA;;;;"}
@@ -3,5 +3,5 @@
3
3
  * Copyright (c) 2025–2026 matraic
4
4
  * See LICENSE file in the project root for full license text.
5
5
  */
6
- import e from"react";import{createComponent as t}from"@lit/react";import{M3eSelectElement as o}from"@m3e/web/select";const n=t({tagName:"m3e-select",elementClass:o,react:e,events:{onBeforeInput:"beforeinput",onInput:"input",onChange:"change"}});export{n as M3eSelect};
6
+ import e from"react";import{createComponent as t}from"@lit/react";import{M3eSelectElement as o}from"@m3e/web/select";const n=t({tagName:"m3e-select",elementClass:o,react:e,events:{onBeforeInput:"beforeinput",onInput:"input",onChange:"change",onToggle:"toggle"}});export{n as M3eSelect};
7
7
  //# sourceMappingURL=select.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select.min.js","sources":["../../src/select/Select.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSelectElement } from \"@m3e/web/select\";\r\nexport type { M3eSelectElement } from \"@m3e/web/select\";\r\n\r\n/**\r\n * React binding for the `m3e-select` Web Component from `@m3e/web/select`.\r\n *\r\n * This component renders the underlying `<m3e-select>` 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-select>` instance for imperative access.\r\n *\r\n * See the `m3e-select` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSelect = createComponent({\r\n tagName: \"m3e-select\",\r\n elementClass: M3eSelectElement,\r\n react: React,\r\n events: {\r\n onBeforeInput: \"beforeinput\",\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n },\r\n});\r\n"],"names":["M3eSelect","createComponent","tagName","elementClass","M3eSelectElement","react","React","events","onBeforeInput","onInput","onChange"],"mappings":";;;;;qHAmBO,MAAMA,EAAYC,EAAgB,CACvCC,QAAS,aACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,cAAe,cACfC,QAAS,QACTC,SAAU"}
1
+ {"version":3,"file":"select.min.js","sources":["../../src/select/Select.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSelectElement } from \"@m3e/web/select\";\r\nexport type { M3eSelectElement } from \"@m3e/web/select\";\r\n\r\n/**\r\n * React binding for the `m3e-select` Web Component from `@m3e/web/select`.\r\n *\r\n * This component renders the underlying `<m3e-select>` 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-select>` instance for imperative access.\r\n *\r\n * See the `m3e-select` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSelect = createComponent({\r\n tagName: \"m3e-select\",\r\n elementClass: M3eSelectElement,\r\n react: React,\r\n events: {\r\n onBeforeInput: \"beforeinput\",\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n onToggle: \"toggle\",\r\n },\r\n});\r\n"],"names":["M3eSelect","createComponent","tagName","elementClass","M3eSelectElement","react","React","events","onBeforeInput","onInput","onChange","onToggle"],"mappings":";;;;;qHAmBO,MAAMA,EAAYC,EAAgB,CACvCC,QAAS,aACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,cAAe,cACfC,QAAS,QACTC,SAAU,SACVC,SAAU"}
package/dist/src/all.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from "./breadcrumb";
7
7
  export * from "./button";
8
8
  export * from "./button-group";
9
9
  export * from "./calendar";
10
+ export * from "./callout";
10
11
  export * from "./card";
11
12
  export * from "./checkbox";
12
13
  export * from "./chips";
@@ -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,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;A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,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { M3eCalloutElement } from "@m3e/web/callout";
2
+ export type { M3eCalloutElement, CalloutVariant, CalloutShape } from "@m3e/web/callout";
3
+ /**
4
+ * React binding for the `m3e-callout` Web Component from `@m3e/web/callout`.
5
+ *
6
+ * This component renders the underlying `<m3e-callout>` 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-callout>` instance for imperative access.
12
+ *
13
+ * See the `m3e-callout` documentation for full details on behavior,
14
+ * styling, accessibility, and supported events.
15
+ */
16
+ export declare const M3eCallout: import("@lit/react").ReactWebComponent<M3eCalloutElement, {}>;
17
+ //# sourceMappingURL=Callout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Callout.d.ts","sourceRoot":"","sources":["../../../src/callout/Callout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAExF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,+DAIrB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./Callout";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/callout/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -17,5 +17,6 @@ export declare const M3eSelect: import("@lit/react").ReactWebComponent<M3eSelect
17
17
  onBeforeInput: string;
18
18
  onInput: string;
19
19
  onChange: string;
20
+ onToggle: string;
20
21
  }>;
21
22
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/select/Select.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS;;;;EASpB,CAAC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/select/Select.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS;;;;;EAUpB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m3e/react",
3
- "version": "2.9.1",
3
+ "version": "2.10.0",
4
4
  "description": "React bindings for M3E Web Components",
5
5
  "author": "matraic <matraic@yahoo.com>",
6
6
  "license": "MIT",
@@ -51,6 +51,10 @@
51
51
  "types": "./dist/src/calendar/index.d.ts",
52
52
  "default": "./dist/calendar.js"
53
53
  },
54
+ "./callout": {
55
+ "types": "./dist/src/callout/index.d.ts",
56
+ "default": "./dist/callout.js"
57
+ },
54
58
  "./card": {
55
59
  "types": "./dist/src/card/index.d.ts",
56
60
  "default": "./dist/card.js"
@@ -256,7 +260,7 @@
256
260
  },
257
261
  "peerDependencies": {
258
262
  "@lit/react": "^1.0.8",
259
- "@m3e/web": "^2.9.1",
263
+ "@m3e/web": "^2.10.0",
260
264
  "lit": "^3.3.0",
261
265
  "react": ">=18"
262
266
  }