@m3e/react 2.6.3 → 2.7.1

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,36 @@
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 { M3eDateInputElement } from '@m3e/web/date-input';
9
+
10
+ /**
11
+ * React binding for the `m3e-date-input` Web Component from `@m3e/web/datepicker`.
12
+ *
13
+ * This component renders the underlying `<m3e-date-input>` 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-date-input>` instance for imperative access.
19
+ *
20
+ * See the `m3e-date-input` documentation for full details on behavior,
21
+ * styling, accessibility, and supported events.
22
+ */
23
+ const M3eDateInput = createComponent({
24
+ tagName: "m3e-date-input",
25
+ elementClass: M3eDateInputElement,
26
+ react: React,
27
+ events: {
28
+ onBeforeInput: "beforeinput",
29
+ onInput: "input",
30
+ onInvalid: "invalid",
31
+ onChange: "change"
32
+ }
33
+ });
34
+
35
+ export { M3eDateInput };
36
+ //# sourceMappingURL=date-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-input.js","sources":["../../src/date-input/DateInput.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eDateInputElement } from \"@m3e/web/date-input\";\r\nexport type { M3eDateInputElement, DateInputTimeFormat, DateInputType } from \"@m3e/web/date-input\";\r\n\r\n/**\r\n * React binding for the `m3e-date-input` Web Component from `@m3e/web/datepicker`.\r\n *\r\n * This component renders the underlying `<m3e-date-input>` 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-date-input>` instance for imperative access.\r\n *\r\n * See the `m3e-date-input` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDateInput = createComponent({\r\n tagName: \"m3e-date-input\",\r\n elementClass: M3eDateInputElement,\r\n react: React,\r\n events: {\r\n onBeforeInput: \"beforeinput\",\r\n onInput: \"input\",\r\n onInvalid: \"invalid\",\r\n onChange: \"change\",\r\n },\r\n});\r\n"],"names":["M3eDateInput","createComponent","tagName","elementClass","M3eDateInputElement","react","React","events","onBeforeInput","onInput","onInvalid","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,aAAa,EAAE,aAAa;AAC5BC,IAAAA,OAAO,EAAE,OAAO;AAChBC,IAAAA,SAAS,EAAE,SAAS;AACpBC,IAAAA,QAAQ,EAAE;AACX;AACF,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 e from"react";import{createComponent as t}from"@lit/react";import{M3eDateInputElement as n}from"@m3e/web/date-input";const o=t({tagName:"m3e-date-input",elementClass:n,react:e,events:{onBeforeInput:"beforeinput",onInput:"input",onInvalid:"invalid",onChange:"change"}});export{o as M3eDateInput};
7
+ //# sourceMappingURL=date-input.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-input.min.js","sources":["../../src/date-input/DateInput.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eDateInputElement } from \"@m3e/web/date-input\";\r\nexport type { M3eDateInputElement, DateInputTimeFormat, DateInputType } from \"@m3e/web/date-input\";\r\n\r\n/**\r\n * React binding for the `m3e-date-input` Web Component from `@m3e/web/datepicker`.\r\n *\r\n * This component renders the underlying `<m3e-date-input>` 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-date-input>` instance for imperative access.\r\n *\r\n * See the `m3e-date-input` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDateInput = createComponent({\r\n tagName: \"m3e-date-input\",\r\n elementClass: M3eDateInputElement,\r\n react: React,\r\n events: {\r\n onBeforeInput: \"beforeinput\",\r\n onInput: \"input\",\r\n onInvalid: \"invalid\",\r\n onChange: \"change\",\r\n },\r\n});\r\n"],"names":["M3eDateInput","createComponent","tagName","elementClass","M3eDateInputElement","react","React","events","onBeforeInput","onInput","onInvalid","onChange"],"mappings":";;;;;4HAmBO,MAAMA,EAAeC,EAAgB,CAC1CC,QAAS,iBACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,cAAe,cACfC,QAAS,QACTC,UAAW,UACXC,SAAU"}
package/dist/src/all.d.ts CHANGED
@@ -12,6 +12,7 @@ export * from "./checkbox";
12
12
  export * from "./chips";
13
13
  export * from "./content-pane";
14
14
  export * from "./core";
15
+ export * from "./date-input";
15
16
  export * from "./datepicker";
16
17
  export * from "./dialog";
17
18
  export * from "./divider";
@@ -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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qB,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,22 @@
1
+ import { M3eDateInputElement } from "@m3e/web/date-input";
2
+ export type { M3eDateInputElement, DateInputTimeFormat, DateInputType } from "@m3e/web/date-input";
3
+ /**
4
+ * React binding for the `m3e-date-input` Web Component from `@m3e/web/datepicker`.
5
+ *
6
+ * This component renders the underlying `<m3e-date-input>` 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-date-input>` instance for imperative access.
12
+ *
13
+ * See the `m3e-date-input` documentation for full details on behavior,
14
+ * styling, accessibility, and supported events.
15
+ */
16
+ export declare const M3eDateInput: import("@lit/react").ReactWebComponent<M3eDateInputElement, {
17
+ onBeforeInput: string;
18
+ onInput: string;
19
+ onInvalid: string;
20
+ onChange: string;
21
+ }>;
22
+ //# sourceMappingURL=DateInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/date-input/DateInput.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEnG;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY;;;;;EAUvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./DateInput";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/date-input/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.6.3",
3
+ "version": "2.7.1",
4
4
  "description": "React bindings for M3E Web Components",
5
5
  "author": "matraic <matraic@yahoo.com>",
6
6
  "license": "MIT",
@@ -75,6 +75,10 @@
75
75
  "types": "./dist/src/datepicker/index.d.ts",
76
76
  "default": "./dist/datepicker.js"
77
77
  },
78
+ "./date-input": {
79
+ "types": "./dist/src/date-input/index.d.ts",
80
+ "default": "./dist/date-input.js"
81
+ },
78
82
  "./dialog": {
79
83
  "types": "./dist/src/dialog/index.d.ts",
80
84
  "default": "./dist/dialog.js"
@@ -248,7 +252,7 @@
248
252
  },
249
253
  "peerDependencies": {
250
254
  "@lit/react": "^1.0.8",
251
- "@m3e/web": "^2.6.3",
255
+ "@m3e/web": "^2.7.1",
252
256
  "lit": "^3.3.0",
253
257
  "react": ">=18"
254
258
  }