@m3e/react 2.5.10 → 2.5.12

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.
@@ -1,5 +1,5 @@
1
1
  import { M3eThemeElement } from "@m3e/web/theme";
2
- export type { ColorScheme, ContrastLevel, MotionScheme, M3eThemeElement } from "@m3e/web/theme";
2
+ export type { ColorScheme, ContrastLevel, MotionScheme, M3eThemeElement, ThemeVariant } from "@m3e/web/theme";
3
3
  /**
4
4
  * React binding for the `m3e-theme` Web Component from `@m3e/web/theme`.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../src/theme/Theme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEhG;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ;;EAOnB,CAAC"}
1
+ {"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../src/theme/Theme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9G;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ;;EAOnB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { M3eThemeIconElement } from "@m3e/web/theme";
2
+ /**
3
+ * React binding for the `m3e-theme-icon` Web Component from `@m3e/web/theme`.
4
+ *
5
+ * This component renders the underlying `<m3e-theme-icon>` element and exposes its
6
+ * properties, attributes, and events through an idiomatic React interface.
7
+ *
8
+ * Props map directly to element properties, and event handlers receive the
9
+ * native DOM events dispatched by the component. Refs are forwarded to the
10
+ * underlying `<m3e-theme-icon>` instance for imperative access.
11
+ *
12
+ * See the `m3e-theme-icon` documentation for full details on behavior, styling,
13
+ * accessibility, and supported events.
14
+ */
15
+ export declare const M3eThemeIcon: import("@lit/react").ReactWebComponent<M3eThemeIconElement, {}>;
16
+ //# sourceMappingURL=ThemeIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeIcon.d.ts","sourceRoot":"","sources":["../../../src/theme/ThemeIcon.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,iEAIvB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from "./Theme";
2
+ export * from "./ThemeIcon";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
package/dist/theme.js CHANGED
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import React from 'react';
7
7
  import { createComponent } from '@lit/react';
8
- import { M3eThemeElement } from '@m3e/web/theme';
8
+ import { M3eThemeElement, M3eThemeIconElement } from '@m3e/web/theme';
9
9
 
10
10
  /**
11
11
  * React binding for the `m3e-theme` Web Component from `@m3e/web/theme`.
@@ -29,5 +29,24 @@ const M3eTheme = createComponent({
29
29
  }
30
30
  });
31
31
 
32
- export { M3eTheme };
32
+ /**
33
+ * React binding for the `m3e-theme-icon` Web Component from `@m3e/web/theme`.
34
+ *
35
+ * This component renders the underlying `<m3e-theme-icon>` element and exposes its
36
+ * properties, attributes, and events through an idiomatic React interface.
37
+ *
38
+ * Props map directly to element properties, and event handlers receive the
39
+ * native DOM events dispatched by the component. Refs are forwarded to the
40
+ * underlying `<m3e-theme-icon>` instance for imperative access.
41
+ *
42
+ * See the `m3e-theme-icon` documentation for full details on behavior, styling,
43
+ * accessibility, and supported events.
44
+ */
45
+ const M3eThemeIcon = createComponent({
46
+ tagName: "m3e-theme-icon",
47
+ elementClass: M3eThemeIconElement,
48
+ react: React
49
+ });
50
+
51
+ export { M3eTheme, M3eThemeIcon };
33
52
  //# sourceMappingURL=theme.js.map
package/dist/theme.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sources":["../../src/theme/Theme.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eThemeElement } from \"@m3e/web/theme\";\r\nexport type { ColorScheme, ContrastLevel, MotionScheme, M3eThemeElement } from \"@m3e/web/theme\";\r\n\r\n/**\r\n * React binding for the `m3e-theme` Web Component from `@m3e/web/theme`.\r\n *\r\n * This component renders the underlying `<m3e-theme>` 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-theme>` instance for imperative access.\r\n *\r\n * See the `m3e-theme` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTheme = createComponent({\r\n tagName: \"m3e-theme\",\r\n elementClass: M3eThemeElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n"],"names":["M3eTheme","createComponent","tagName","elementClass","M3eThemeElement","react","React","events","onChange"],"mappings":";;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAMA,QAAQ,GAAGC,eAAe,CAAC;AACtCC,EAAAA,OAAO,EAAE,WAAW;AACpBC,EAAAA,YAAY,EAAEC,eAAe;AAC7BC,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,QAAQ,EAAE;AACX;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"theme.js","sources":["../../src/theme/Theme.ts","../../src/theme/ThemeIcon.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eThemeElement } from \"@m3e/web/theme\";\r\nexport type { ColorScheme, ContrastLevel, MotionScheme, M3eThemeElement, ThemeVariant } from \"@m3e/web/theme\";\r\n\r\n/**\r\n * React binding for the `m3e-theme` Web Component from `@m3e/web/theme`.\r\n *\r\n * This component renders the underlying `<m3e-theme>` 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-theme>` instance for imperative access.\r\n *\r\n * See the `m3e-theme` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTheme = createComponent({\r\n tagName: \"m3e-theme\",\r\n elementClass: M3eThemeElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eThemeIconElement } from \"@m3e/web/theme\";\r\n\r\n/**\r\n * React binding for the `m3e-theme-icon` Web Component from `@m3e/web/theme`.\r\n *\r\n * This component renders the underlying `<m3e-theme-icon>` 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-theme-icon>` instance for imperative access.\r\n *\r\n * See the `m3e-theme-icon` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eThemeIcon = createComponent({\r\n tagName: \"m3e-theme-icon\",\r\n elementClass: M3eThemeIconElement,\r\n react: React,\r\n});\r\n"],"names":["M3eTheme","createComponent","tagName","elementClass","M3eThemeElement","react","React","events","onChange","M3eThemeIcon","M3eThemeIconElement"],"mappings":";;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAMA,QAAQ,GAAGC,eAAe,CAAC;AACtCC,EAAAA,OAAO,EAAE,WAAW;AACpBC,EAAAA,YAAY,EAAEC,eAAe;AAC7BC,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,QAAQ,EAAE;AACX;AACF,CAAA;;ACrBD;;;;;;;;;;;;AAYG;AACI,MAAMC,YAAY,GAAGR,eAAe,CAAC;AAC1CC,EAAAA,OAAO,EAAE,gBAAgB;AACzBC,EAAAA,YAAY,EAAEO,mBAAmB;AACjCL,EAAAA,KAAK,EAAEC;AACR,CAAA;;;;"}
package/dist/theme.min.js CHANGED
@@ -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{M3eThemeElement as m}from"@m3e/web/theme";const r=t({tagName:"m3e-theme",elementClass:m,react:e,events:{onChange:"change"}});export{r as M3eTheme};
6
+ import e from"react";import{createComponent as t}from"@lit/react";import{M3eThemeElement as m,M3eThemeIconElement as a}from"@m3e/web/theme";const r=t({tagName:"m3e-theme",elementClass:m,react:e,events:{onChange:"change"}}),o=t({tagName:"m3e-theme-icon",elementClass:a,react:e});export{r as M3eTheme,o as M3eThemeIcon};
7
7
  //# sourceMappingURL=theme.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.min.js","sources":["../../src/theme/Theme.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eThemeElement } from \"@m3e/web/theme\";\r\nexport type { ColorScheme, ContrastLevel, MotionScheme, M3eThemeElement } from \"@m3e/web/theme\";\r\n\r\n/**\r\n * React binding for the `m3e-theme` Web Component from `@m3e/web/theme`.\r\n *\r\n * This component renders the underlying `<m3e-theme>` 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-theme>` instance for imperative access.\r\n *\r\n * See the `m3e-theme` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTheme = createComponent({\r\n tagName: \"m3e-theme\",\r\n elementClass: M3eThemeElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n"],"names":["M3eTheme","createComponent","tagName","elementClass","M3eThemeElement","react","React","events","onChange"],"mappings":";;;;;mHAmBO,MAAMA,EAAWC,EAAgB,CACtCC,QAAS,YACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,SAAU"}
1
+ {"version":3,"file":"theme.min.js","sources":["../../src/theme/Theme.ts","../../src/theme/ThemeIcon.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eThemeElement } from \"@m3e/web/theme\";\r\nexport type { ColorScheme, ContrastLevel, MotionScheme, M3eThemeElement, ThemeVariant } from \"@m3e/web/theme\";\r\n\r\n/**\r\n * React binding for the `m3e-theme` Web Component from `@m3e/web/theme`.\r\n *\r\n * This component renders the underlying `<m3e-theme>` 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-theme>` instance for imperative access.\r\n *\r\n * See the `m3e-theme` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTheme = createComponent({\r\n tagName: \"m3e-theme\",\r\n elementClass: M3eThemeElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eThemeIconElement } from \"@m3e/web/theme\";\r\n\r\n/**\r\n * React binding for the `m3e-theme-icon` Web Component from `@m3e/web/theme`.\r\n *\r\n * This component renders the underlying `<m3e-theme-icon>` 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-theme-icon>` instance for imperative access.\r\n *\r\n * See the `m3e-theme-icon` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eThemeIcon = createComponent({\r\n tagName: \"m3e-theme-icon\",\r\n elementClass: M3eThemeIconElement,\r\n react: React,\r\n});\r\n"],"names":["M3eTheme","createComponent","tagName","elementClass","M3eThemeElement","react","React","events","onChange","M3eThemeIcon","M3eThemeIconElement"],"mappings":";;;;;4IAmBO,MAAMA,EAAWC,EAAgB,CACtCC,QAAS,YACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,SAAU,YCNDC,EAAeR,EAAgB,CAC1CC,QAAS,iBACTC,aAAcO,EACdL,MAAOC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m3e/react",
3
- "version": "2.5.10",
3
+ "version": "2.5.12",
4
4
  "description": "React bindings for M3E Web Components",
5
5
  "author": "matraic <matraic@yahoo.com>",
6
6
  "license": "MIT",
@@ -244,7 +244,7 @@
244
244
  },
245
245
  "peerDependencies": {
246
246
  "@lit/react": "^1.0.8",
247
- "@m3e/web": "^2.5.10",
247
+ "@m3e/web": "^2.5.12",
248
248
  "lit": "^3.3.0",
249
249
  "react": ">=18"
250
250
  }