@m3e/react 2.0.1 → 2.0.3
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.
- package/README.md +4 -0
- package/dist/all.js +13 -45
- package/dist/all.js.map +1 -1
- package/dist/all.min.js +2 -2
- package/dist/all.min.js.map +1 -1
- package/dist/app-bar.js +2 -34
- package/dist/app-bar.js.map +1 -1
- package/dist/app-bar.min.js +2 -2
- package/dist/app-bar.min.js.map +1 -1
- package/dist/autocomplete.js +2 -34
- package/dist/autocomplete.js.map +1 -1
- package/dist/autocomplete.min.js +2 -2
- package/dist/autocomplete.min.js.map +1 -1
- package/dist/avatar.js +2 -34
- package/dist/avatar.js.map +1 -1
- package/dist/avatar.min.js +2 -2
- package/dist/avatar.min.js.map +1 -1
- package/dist/badge.js +2 -34
- package/dist/badge.js.map +1 -1
- package/dist/badge.min.js +2 -2
- package/dist/badge.min.js.map +1 -1
- package/dist/bottom-sheet.js +1 -33
- package/dist/bottom-sheet.js.map +1 -1
- package/dist/bottom-sheet.min.js +2 -2
- package/dist/bottom-sheet.min.js.map +1 -1
- package/dist/button-group.js +2 -34
- package/dist/button-group.js.map +1 -1
- package/dist/button-group.min.js +2 -2
- package/dist/button-group.min.js.map +1 -1
- package/dist/button.js +2 -34
- package/dist/button.js.map +1 -1
- package/dist/button.min.js +2 -2
- package/dist/button.min.js.map +1 -1
- package/dist/card.js +2 -34
- package/dist/card.js.map +1 -1
- package/dist/card.min.js +2 -2
- package/dist/card.min.js.map +1 -1
- package/dist/checkbox.js +2 -34
- package/dist/checkbox.js.map +1 -1
- package/dist/checkbox.min.js +2 -2
- package/dist/checkbox.min.js.map +1 -1
- package/dist/chips.js +1 -33
- package/dist/chips.js.map +1 -1
- package/dist/chips.min.js +2 -2
- package/dist/chips.min.js.map +1 -1
- package/dist/core.js +1 -33
- package/dist/core.js.map +1 -1
- package/dist/core.min.js +2 -2
- package/dist/core.min.js.map +1 -1
- package/dist/dialog.js +2 -34
- package/dist/dialog.js.map +1 -1
- package/dist/dialog.min.js +2 -2
- package/dist/dialog.min.js.map +1 -1
- package/dist/divider.js +2 -34
- package/dist/divider.js.map +1 -1
- package/dist/divider.min.js +2 -2
- package/dist/divider.min.js.map +1 -1
- package/dist/drawer-container.js +2 -34
- package/dist/drawer-container.js.map +1 -1
- package/dist/drawer-container.min.js +2 -2
- package/dist/drawer-container.min.js.map +1 -1
- package/dist/expansion-panel.js +1 -33
- package/dist/expansion-panel.js.map +1 -1
- package/dist/expansion-panel.min.js +2 -2
- package/dist/expansion-panel.min.js.map +1 -1
- package/dist/fab-menu.js +1 -33
- package/dist/fab-menu.js.map +1 -1
- package/dist/fab-menu.min.js +2 -2
- package/dist/fab-menu.min.js.map +1 -1
- package/dist/fab.js +1 -33
- package/dist/fab.js.map +1 -1
- package/dist/fab.min.js +2 -2
- package/dist/fab.min.js.map +1 -1
- package/dist/form-field.js +1 -33
- package/dist/form-field.js.map +1 -1
- package/dist/form-field.min.js +2 -2
- package/dist/form-field.min.js.map +1 -1
- package/dist/heading.js +1 -33
- package/dist/heading.js.map +1 -1
- package/dist/heading.min.js +2 -2
- package/dist/heading.min.js.map +1 -1
- package/dist/icon-button.js +1 -33
- package/dist/icon-button.js.map +1 -1
- package/dist/icon-button.min.js +2 -2
- package/dist/icon-button.min.js.map +1 -1
- package/dist/icon.js +1 -33
- package/dist/icon.js.map +1 -1
- package/dist/icon.min.js +2 -2
- package/dist/icon.min.js.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/list.js +1 -33
- package/dist/list.js.map +1 -1
- package/dist/list.min.js +2 -2
- package/dist/list.min.js.map +1 -1
- package/dist/loading-indicator.js +1 -33
- package/dist/loading-indicator.js.map +1 -1
- package/dist/loading-indicator.min.js +2 -2
- package/dist/loading-indicator.min.js.map +1 -1
- package/dist/menu.js +1 -33
- package/dist/menu.js.map +1 -1
- package/dist/menu.min.js +2 -2
- package/dist/menu.min.js.map +1 -1
- package/dist/nav-bar.js +1 -33
- package/dist/nav-bar.js.map +1 -1
- package/dist/nav-bar.min.js +2 -2
- package/dist/nav-bar.min.js.map +1 -1
- package/dist/nav-menu.js +1 -33
- package/dist/nav-menu.js.map +1 -1
- package/dist/nav-menu.min.js +2 -2
- package/dist/nav-menu.min.js.map +1 -1
- package/dist/nav-rail.js +1 -33
- package/dist/nav-rail.js.map +1 -1
- package/dist/nav-rail.min.js +2 -2
- package/dist/nav-rail.min.js.map +1 -1
- package/dist/option.js +1 -33
- package/dist/option.js.map +1 -1
- package/dist/option.min.js +2 -2
- package/dist/option.min.js.map +1 -1
- package/dist/paginator.js +0 -1
- package/dist/paginator.js.map +1 -1
- package/dist/paginator.min.js +2 -2
- package/dist/paginator.min.js.map +1 -1
- package/dist/progress-indicator.js +1 -33
- package/dist/progress-indicator.js.map +1 -1
- package/dist/progress-indicator.min.js +2 -2
- package/dist/progress-indicator.min.js.map +1 -1
- package/dist/radio-group.js +1 -33
- package/dist/radio-group.js.map +1 -1
- package/dist/radio-group.min.js +2 -2
- package/dist/radio-group.min.js.map +1 -1
- package/dist/segmented-button.js +1 -33
- package/dist/segmented-button.js.map +1 -1
- package/dist/segmented-button.min.js +2 -2
- package/dist/segmented-button.min.js.map +1 -1
- package/dist/select.js +1 -33
- package/dist/select.js.map +1 -1
- package/dist/select.min.js +2 -2
- package/dist/select.min.js.map +1 -1
- package/dist/shape.js +1 -33
- package/dist/shape.js.map +1 -1
- package/dist/shape.min.js +2 -2
- package/dist/shape.min.js.map +1 -1
- package/dist/slide-group.js +1 -33
- package/dist/slide-group.js.map +1 -1
- package/dist/slide-group.min.js +2 -2
- package/dist/slide-group.min.js.map +1 -1
- package/dist/slider.js +1 -33
- package/dist/slider.js.map +1 -1
- package/dist/slider.min.js +2 -2
- package/dist/slider.min.js.map +1 -1
- package/dist/snackbar.js +0 -1
- package/dist/snackbar.js.map +1 -1
- package/dist/snackbar.min.js +2 -2
- package/dist/split-button.js +1 -33
- package/dist/split-button.js.map +1 -1
- package/dist/split-button.min.js +2 -2
- package/dist/split-button.min.js.map +1 -1
- package/dist/src/app-bar/AppBar.d.ts +1 -1
- package/dist/src/autocomplete/Autocomplete.d.ts +1 -1
- package/dist/src/avatar/Avatar.d.ts +1 -1
- package/dist/src/badge/Badge.d.ts +1 -1
- package/dist/src/button/Button.d.ts +1 -1
- package/dist/src/button-group/ButtonGroup.d.ts +1 -1
- package/dist/src/card/Card.d.ts +1 -1
- package/dist/src/checkbox/Checkbox.d.ts +1 -1
- package/dist/src/dialog/Dialog.d.ts +1 -1
- package/dist/src/divider/Divider.d.ts +1 -1
- package/dist/src/drawer-container/DrawerContainer.d.ts +1 -1
- package/dist/stepper.js +1 -33
- package/dist/stepper.js.map +1 -1
- package/dist/stepper.min.js +2 -2
- package/dist/stepper.min.js.map +1 -1
- package/dist/switch.js +1 -33
- package/dist/switch.js.map +1 -1
- package/dist/switch.min.js +2 -2
- package/dist/switch.min.js.map +1 -1
- package/dist/tabs.js +1 -33
- package/dist/tabs.js.map +1 -1
- package/dist/tabs.min.js +2 -2
- package/dist/tabs.min.js.map +1 -1
- package/dist/textarea-autosize.js +1 -33
- package/dist/textarea-autosize.js.map +1 -1
- package/dist/textarea-autosize.min.js +2 -2
- package/dist/textarea-autosize.min.js.map +1 -1
- package/dist/theme.js +1 -33
- package/dist/theme.js.map +1 -1
- package/dist/theme.min.js +2 -2
- package/dist/theme.min.js.map +1 -1
- package/dist/toc.js +1 -33
- package/dist/toc.js.map +1 -1
- package/dist/toc.min.js +2 -2
- package/dist/toc.min.js.map +1 -1
- package/dist/toolbar.js +1 -33
- package/dist/toolbar.js.map +1 -1
- package/dist/toolbar.min.js +2 -2
- package/dist/toolbar.min.js.map +1 -1
- package/dist/tooltip.js +1 -33
- package/dist/tooltip.js.map +1 -1
- package/dist/tooltip.min.js +2 -2
- package/dist/tooltip.min.js.map +1 -1
- package/package.json +2 -2
package/dist/nav-menu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-menu.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"nav-menu.js","sources":["../../src/nav-menu/NavMenu.ts","../../src/nav-menu/NavMenuItem.ts","../../src/nav-menu/NavMenuItemGroup.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eNavMenuElement } from \"@m3e/web/nav-menu\";\r\nexport type { M3eNavMenuElement } from \"@m3e/web/nav-menu\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-menu` Web Component from `@m3e/web/nav-menu`.\r\n *\r\n * This component renders the underlying `<m3e-nav-menu>` 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-nav-menu>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-menu` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavMenu = createComponent({\r\n tagName: \"m3e-nav-menu\",\r\n elementClass: M3eNavMenuElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eNavMenuItemElement } from \"@m3e/web/nav-menu\";\r\nexport type { M3eNavMenuItemElement } from \"@m3e/web/nav-menu\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-menu-item` Web Component from `@m3e/web/nav-menu`.\r\n *\r\n * This component renders the underlying `<m3e-nav-menu-item>` 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-nav-menu-item>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-menu-item` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavMenuItem = createComponent({\r\n tagName: \"m3e-nav-menu-item\",\r\n elementClass: M3eNavMenuItemElement,\r\n react: React,\r\n events: {\r\n onOpening: \"opening\",\r\n onOpened: \"opened\",\r\n onClosing: \"closing\",\r\n onClosed: \"closed\",\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eNavMenuItemGroupElement } from \"@m3e/web/nav-menu\";\r\nexport type { M3eNavMenuItemGroupElement } from \"@m3e/web/nav-menu\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-menu-item-group` Web Component from `@m3e/web/nav-menu`.\r\n *\r\n * This component renders the underlying `<m3e-nav-menu-item-group>` 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-nav-menu-item-group>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-menu-item-group` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavMenuItemGroup = createComponent({\r\n tagName: \"m3e-nav-menu-item-group\",\r\n elementClass: M3eNavMenuItemGroupElement,\r\n react: React,\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,UAAU,GAAG,eAAe,CAAC;AACxC,IAAA,OAAO,EAAE,cAAc;AACvB,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,cAAc,GAAG,eAAe,CAAC;AAC5C,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,YAAY,EAAE,qBAAqB;AACnC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,SAAS,EAAE,SAAS;AACpB,QAAA,QAAQ,EAAE,QAAQ;AAClB,QAAA,SAAS,EAAE,SAAS;AACpB,QAAA,QAAQ,EAAE,QAAQ;AAClB,QAAA,OAAO,EAAE,OAAO;AACjB,KAAA;AACF,CAAA;;ACxBD;;;;;;;;;;;;AAYG;AACI,MAAM,mBAAmB,GAAG,eAAe,CAAC;AACjD,IAAA,OAAO,EAAE,yBAAyB;AAClC,IAAA,YAAY,EAAE,0BAA0B;AACxC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
package/dist/nav-menu.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
/**
|
|
3
2
|
* @license MIT
|
|
4
3
|
* Copyright (c) 2025 matraic
|
|
5
4
|
* See LICENSE file in the project root for full license text.
|
|
6
|
-
*/
|
|
5
|
+
*/
|
|
6
|
+
import e from"react";import{createComponent as n}from"@lit/react";import{M3eNavMenuElement as m,M3eNavMenuItemElement as o,M3eNavMenuItemGroupElement as t}from"@m3e/web/nav-menu";const a=n({tagName:"m3e-nav-menu",elementClass:m,react:e}),l=n({tagName:"m3e-nav-menu-item",elementClass:o,react:e,events:{onOpening:"opening",onOpened:"opened",onClosing:"closing",onClosed:"closed",onClick:"click"}}),r=n({tagName:"m3e-nav-menu-item-group",elementClass:t,react:e});export{a as M3eNavMenu,l as M3eNavMenuItem,r as M3eNavMenuItemGroup};
|
|
7
7
|
//# sourceMappingURL=nav-menu.min.js.map
|
package/dist/nav-menu.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-menu.min.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"nav-menu.min.js","sources":["../../src/nav-menu/NavMenu.ts","../../src/nav-menu/NavMenuItem.ts","../../src/nav-menu/NavMenuItemGroup.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eNavMenuElement } from \"@m3e/web/nav-menu\";\r\nexport type { M3eNavMenuElement } from \"@m3e/web/nav-menu\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-menu` Web Component from `@m3e/web/nav-menu`.\r\n *\r\n * This component renders the underlying `<m3e-nav-menu>` 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-nav-menu>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-menu` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavMenu = createComponent({\r\n tagName: \"m3e-nav-menu\",\r\n elementClass: M3eNavMenuElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eNavMenuItemElement } from \"@m3e/web/nav-menu\";\r\nexport type { M3eNavMenuItemElement } from \"@m3e/web/nav-menu\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-menu-item` Web Component from `@m3e/web/nav-menu`.\r\n *\r\n * This component renders the underlying `<m3e-nav-menu-item>` 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-nav-menu-item>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-menu-item` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavMenuItem = createComponent({\r\n tagName: \"m3e-nav-menu-item\",\r\n elementClass: M3eNavMenuItemElement,\r\n react: React,\r\n events: {\r\n onOpening: \"opening\",\r\n onOpened: \"opened\",\r\n onClosing: \"closing\",\r\n onClosed: \"closed\",\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eNavMenuItemGroupElement } from \"@m3e/web/nav-menu\";\r\nexport type { M3eNavMenuItemGroupElement } from \"@m3e/web/nav-menu\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-menu-item-group` Web Component from `@m3e/web/nav-menu`.\r\n *\r\n * This component renders the underlying `<m3e-nav-menu-item-group>` 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-nav-menu-item-group>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-menu-item-group` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavMenuItemGroup = createComponent({\r\n tagName: \"m3e-nav-menu-item-group\",\r\n elementClass: M3eNavMenuItemGroupElement,\r\n react: React,\r\n});\r\n"],"names":["M3eNavMenu","createComponent","tagName","elementClass","M3eNavMenuElement","react","React","M3eNavMenuItem","M3eNavMenuItemElement","events","onOpening","onOpened","onClosing","onClosed","onClick","M3eNavMenuItemGroup","M3eNavMenuItemGroupElement"],"mappings":";;;;;mLAmBO,MAAMA,EAAaC,EAAgB,CACxCC,QAAS,eACTC,aAAcC,EACdC,MAAOC,ICHIC,EAAiBN,EAAgB,CAC5CC,QAAS,oBACTC,aAAcK,EACdH,MAAOC,EACPG,OAAQ,CACNC,UAAW,UACXC,SAAU,SACVC,UAAW,UACXC,SAAU,SACVC,QAAS,WCTAC,EAAsBd,EAAgB,CACjDC,QAAS,0BACTC,aAAca,EACdX,MAAOC"}
|
package/dist/nav-rail.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
/**
|
|
3
2
|
* @license MIT
|
|
4
3
|
* Copyright (c) 2025 matraic
|
|
@@ -6,40 +5,9 @@
|
|
|
6
5
|
*/
|
|
7
6
|
|
|
8
7
|
import React from 'react';
|
|
9
|
-
import { createComponent
|
|
8
|
+
import { createComponent } from '@lit/react';
|
|
10
9
|
import { M3eNavRailElement, M3eNavRailToggleElement } from '@m3e/web/nav-rail';
|
|
11
10
|
|
|
12
|
-
/**
|
|
13
|
-
* Creates an SSR-safe React component for a custom element. Properties are distinguished
|
|
14
|
-
* from attributes automatically, and events can be configured so they are added
|
|
15
|
-
* to the custom element as event listeners.
|
|
16
|
-
*
|
|
17
|
-
* @param options An options bag containing the parameters needed to generate a
|
|
18
|
-
* wrapped web component.
|
|
19
|
-
*
|
|
20
|
-
* @param options.react The React module, typically imported from the `react`
|
|
21
|
-
* npm package.
|
|
22
|
-
* @param options.tagName The custom element tag name registered via
|
|
23
|
-
* `customElements.define`.
|
|
24
|
-
* @param options.elementClass The custom element class registered via
|
|
25
|
-
* `customElements.define`.
|
|
26
|
-
* @param options.events An object listing events to which the component can
|
|
27
|
-
* listen. The object keys are the event property names passed in via React
|
|
28
|
-
* props and the object values are the names of the corresponding events
|
|
29
|
-
* generated by the custom element. For example, given `{onactivate:
|
|
30
|
-
* 'activate'}` an event function may be passed via the component's `onactivate`
|
|
31
|
-
* prop and will be called when the custom element fires its `activate` event.
|
|
32
|
-
* @param options.displayName A React component display name, used in debugging
|
|
33
|
-
* messages. Default value is inferred from the name of custom element class
|
|
34
|
-
* registered via `customElements.define`.
|
|
35
|
-
*/
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
37
|
-
function createComponent({ react, tagName, elementClass, events, displayName, }) {
|
|
38
|
-
return typeof window !== "undefined"
|
|
39
|
-
? createComponent$1({ react, tagName, elementClass, events, displayName })
|
|
40
|
-
: null;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
11
|
/**
|
|
44
12
|
* React binding for the `m3e-nav-rail` Web Component from `@m3e/web/nav-rail`.
|
|
45
13
|
*
|
package/dist/nav-rail.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-rail.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"nav-rail.js","sources":["../../src/nav-rail/NavRail.ts","../../src/nav-rail/NavRailToggle.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eNavRailElement } from \"@m3e/web/nav-rail\";\r\nexport type { M3eNavRailElement } from \"@m3e/web/nav-rail\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-rail` Web Component from `@m3e/web/nav-rail`.\r\n *\r\n * This component renders the underlying `<m3e-nav-rail>` 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-nav-rail>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-rail` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavRail = createComponent({\r\n tagName: \"m3e-nav-rail\",\r\n elementClass: M3eNavRailElement,\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 { M3eNavRailToggleElement } from \"@m3e/web/nav-rail\";\r\nexport type { M3eNavRailToggleElement } from \"@m3e/web/nav-rail\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-rail-toggle` Web Component from `@m3e/web/nav-rail`.\r\n *\r\n * This component renders the underlying `<m3e-nav-rail-toggle>` 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-nav-rail-toggle>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-rail-toggle` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavRailToggle = createComponent({\r\n tagName: \"m3e-nav-rail-toggle\",\r\n elementClass: M3eNavRailToggleElement,\r\n react: React,\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,UAAU,GAAG,eAAe,CAAC;AACxC,IAAA,OAAO,EAAE,cAAc;AACvB,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,QAAQ,EAAE,QAAQ;AACnB,KAAA;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC9C,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,YAAY,EAAE,uBAAuB;AACrC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
package/dist/nav-rail.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
/**
|
|
3
2
|
* @license MIT
|
|
4
3
|
* Copyright (c) 2025 matraic
|
|
5
4
|
* See LICENSE file in the project root for full license text.
|
|
6
|
-
*/
|
|
5
|
+
*/
|
|
6
|
+
import e from"react";import{createComponent as a}from"@lit/react";import{M3eNavRailElement as t,M3eNavRailToggleElement as r}from"@m3e/web/nav-rail";const m=a({tagName:"m3e-nav-rail",elementClass:t,react:e,events:{onChange:"change"}}),n=a({tagName:"m3e-nav-rail-toggle",elementClass:r,react:e});export{m as M3eNavRail,n as M3eNavRailToggle};
|
|
7
7
|
//# sourceMappingURL=nav-rail.min.js.map
|
package/dist/nav-rail.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-rail.min.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"nav-rail.min.js","sources":["../../src/nav-rail/NavRail.ts","../../src/nav-rail/NavRailToggle.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eNavRailElement } from \"@m3e/web/nav-rail\";\r\nexport type { M3eNavRailElement } from \"@m3e/web/nav-rail\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-rail` Web Component from `@m3e/web/nav-rail`.\r\n *\r\n * This component renders the underlying `<m3e-nav-rail>` 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-nav-rail>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-rail` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavRail = createComponent({\r\n tagName: \"m3e-nav-rail\",\r\n elementClass: M3eNavRailElement,\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 { M3eNavRailToggleElement } from \"@m3e/web/nav-rail\";\r\nexport type { M3eNavRailToggleElement } from \"@m3e/web/nav-rail\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-rail-toggle` Web Component from `@m3e/web/nav-rail`.\r\n *\r\n * This component renders the underlying `<m3e-nav-rail-toggle>` 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-nav-rail-toggle>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-rail-toggle` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavRailToggle = createComponent({\r\n tagName: \"m3e-nav-rail-toggle\",\r\n elementClass: M3eNavRailToggleElement,\r\n react: React,\r\n});\r\n"],"names":["M3eNavRail","createComponent","tagName","elementClass","M3eNavRailElement","react","React","events","onChange","M3eNavRailToggle","M3eNavRailToggleElement"],"mappings":";;;;;qJAmBO,MAAMA,EAAaC,EAAgB,CACxCC,QAAS,eACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,SAAU,YCLDC,EAAmBR,EAAgB,CAC9CC,QAAS,sBACTC,aAAcO,EACdL,MAAOC"}
|
package/dist/option.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
/**
|
|
3
2
|
* @license MIT
|
|
4
3
|
* Copyright (c) 2025 matraic
|
|
@@ -6,40 +5,9 @@
|
|
|
6
5
|
*/
|
|
7
6
|
|
|
8
7
|
import React from 'react';
|
|
9
|
-
import { createComponent
|
|
8
|
+
import { createComponent } from '@lit/react';
|
|
10
9
|
import { M3eOptionElement, M3eOptGroupElement } from '@m3e/web/option';
|
|
11
10
|
|
|
12
|
-
/**
|
|
13
|
-
* Creates an SSR-safe React component for a custom element. Properties are distinguished
|
|
14
|
-
* from attributes automatically, and events can be configured so they are added
|
|
15
|
-
* to the custom element as event listeners.
|
|
16
|
-
*
|
|
17
|
-
* @param options An options bag containing the parameters needed to generate a
|
|
18
|
-
* wrapped web component.
|
|
19
|
-
*
|
|
20
|
-
* @param options.react The React module, typically imported from the `react`
|
|
21
|
-
* npm package.
|
|
22
|
-
* @param options.tagName The custom element tag name registered via
|
|
23
|
-
* `customElements.define`.
|
|
24
|
-
* @param options.elementClass The custom element class registered via
|
|
25
|
-
* `customElements.define`.
|
|
26
|
-
* @param options.events An object listing events to which the component can
|
|
27
|
-
* listen. The object keys are the event property names passed in via React
|
|
28
|
-
* props and the object values are the names of the corresponding events
|
|
29
|
-
* generated by the custom element. For example, given `{onactivate:
|
|
30
|
-
* 'activate'}` an event function may be passed via the component's `onactivate`
|
|
31
|
-
* prop and will be called when the custom element fires its `activate` event.
|
|
32
|
-
* @param options.displayName A React component display name, used in debugging
|
|
33
|
-
* messages. Default value is inferred from the name of custom element class
|
|
34
|
-
* registered via `customElements.define`.
|
|
35
|
-
*/
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
37
|
-
function createComponent({ react, tagName, elementClass, events, displayName, }) {
|
|
38
|
-
return typeof window !== "undefined"
|
|
39
|
-
? createComponent$1({ react, tagName, elementClass, events, displayName })
|
|
40
|
-
: null;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
11
|
/**
|
|
44
12
|
* React binding for the `m3e-option` Web Component from `@m3e/web/option`.
|
|
45
13
|
*
|
package/dist/option.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"option.js","sources":["../../src/option/Option.ts","../../src/option/OptGroup.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eOptionElement } from \"@m3e/web/option\";\r\nexport type { M3eOptionElement } from \"@m3e/web/option\";\r\n\r\n/**\r\n * React binding for the `m3e-option` Web Component from `@m3e/web/option`.\r\n *\r\n * This component renders the underlying `<m3e-option>` 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-option>` instance for imperative access.\r\n *\r\n * See the `m3e-option` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eOption = createComponent({\r\n tagName: \"m3e-option\",\r\n elementClass: M3eOptionElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eOptGroupElement } from \"@m3e/web/option\";\r\nexport type { M3eOptGroupElement } from \"@m3e/web/option\";\r\n\r\n/**\r\n * React binding for the `m3e-optgroup` Web Component from `@m3e/web/option`.\r\n *\r\n * This component renders the underlying `<m3e-optgroup>` 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-optgroup>` instance for imperative access.\r\n *\r\n * See the `m3e-optgroup` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eOptGroup = createComponent({\r\n tagName: \"m3e-optgroup\",\r\n elementClass: M3eOptGroupElement,\r\n react: React,\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,SAAS,GAAG,eAAe,CAAC;AACvC,IAAA,OAAO,EAAE,YAAY;AACrB,IAAA,YAAY,EAAE,gBAAgB;AAC9B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,WAAW,GAAG,eAAe,CAAC;AACzC,IAAA,OAAO,EAAE,cAAc;AACvB,IAAA,YAAY,EAAE,kBAAkB;AAChC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
package/dist/option.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
/**
|
|
3
2
|
* @license MIT
|
|
4
3
|
* Copyright (c) 2025 matraic
|
|
5
4
|
* See LICENSE file in the project root for full license text.
|
|
6
|
-
*/
|
|
5
|
+
*/
|
|
6
|
+
import e from"react";import{createComponent as t}from"@lit/react";import{M3eOptionElement as o,M3eOptGroupElement as m}from"@m3e/web/option";const r=t({tagName:"m3e-option",elementClass:o,react:e}),a=t({tagName:"m3e-optgroup",elementClass:m,react:e});export{a as M3eOptGroup,r as M3eOption};
|
|
7
7
|
//# sourceMappingURL=option.min.js.map
|
package/dist/option.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.min.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"option.min.js","sources":["../../src/option/Option.ts","../../src/option/OptGroup.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eOptionElement } from \"@m3e/web/option\";\r\nexport type { M3eOptionElement } from \"@m3e/web/option\";\r\n\r\n/**\r\n * React binding for the `m3e-option` Web Component from `@m3e/web/option`.\r\n *\r\n * This component renders the underlying `<m3e-option>` 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-option>` instance for imperative access.\r\n *\r\n * See the `m3e-option` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eOption = createComponent({\r\n tagName: \"m3e-option\",\r\n elementClass: M3eOptionElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eOptGroupElement } from \"@m3e/web/option\";\r\nexport type { M3eOptGroupElement } from \"@m3e/web/option\";\r\n\r\n/**\r\n * React binding for the `m3e-optgroup` Web Component from `@m3e/web/option`.\r\n *\r\n * This component renders the underlying `<m3e-optgroup>` 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-optgroup>` instance for imperative access.\r\n *\r\n * See the `m3e-optgroup` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eOptGroup = createComponent({\r\n tagName: \"m3e-optgroup\",\r\n elementClass: M3eOptGroupElement,\r\n react: React,\r\n});\r\n"],"names":["M3eOption","createComponent","tagName","elementClass","M3eOptionElement","react","React","M3eOptGroup","M3eOptGroupElement"],"mappings":";;;;;6IAmBO,MAAMA,EAAYC,EAAgB,CACvCC,QAAS,aACTC,aAAcC,EACdC,MAAOC,ICHIC,EAAcN,EAAgB,CACzCC,QAAS,eACTC,aAAcK,EACdH,MAAOC"}
|
package/dist/paginator.js
CHANGED
package/dist/paginator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paginator.js","sources":["../../src/paginator/Paginator.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3ePaginatorElement, PageEventDetail } from \"@m3e/web/paginator\";\r\nexport type { M3ePaginatorElement, PageEventDetail } from \"@m3e/web/paginator\";\r\n\r\n/**\r\n * React binding for the `m3e-paginator` Web Component from `@m3e/web/paginator`.\r\n *\r\n * This component renders the underlying `<m3e-paginator>` 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-paginator>` instance for imperative access.\r\n *\r\n * See the `m3e-paginator` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePaginator = createComponent({\r\n tagName: \"m3e-paginator\",\r\n elementClass: M3ePaginatorElement,\r\n react: React,\r\n events: {\r\n onPage: \"page\" as EventName<CustomEvent<PageEventDetail>>,\r\n },\r\n});\r\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paginator.js","sources":["../../src/paginator/Paginator.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3ePaginatorElement, PageEventDetail } from \"@m3e/web/paginator\";\r\nexport type { M3ePaginatorElement, PageEventDetail } from \"@m3e/web/paginator\";\r\n\r\n/**\r\n * React binding for the `m3e-paginator` Web Component from `@m3e/web/paginator`.\r\n *\r\n * This component renders the underlying `<m3e-paginator>` 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-paginator>` instance for imperative access.\r\n *\r\n * See the `m3e-paginator` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePaginator = createComponent({\r\n tagName: \"m3e-paginator\",\r\n elementClass: M3ePaginatorElement,\r\n react: React,\r\n events: {\r\n onPage: \"page\" as EventName<CustomEvent<PageEventDetail>>,\r\n },\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,YAAY,GAAG,eAAe,CAAC;AAC1C,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,MAAM,EAAE,MAAiD;AAC1D,KAAA;AACF,CAAA;;;;"}
|
package/dist/paginator.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
/**
|
|
3
2
|
* @license MIT
|
|
4
3
|
* Copyright (c) 2025 matraic
|
|
5
4
|
* See LICENSE file in the project root for full license text.
|
|
6
|
-
*/
|
|
5
|
+
*/
|
|
6
|
+
import e from"react";import{createComponent as t}from"@lit/react";import{M3ePaginatorElement as a}from"@m3e/web/paginator";const r=t({tagName:"m3e-paginator",elementClass:a,react:e,events:{onPage:"page"}});export{r as M3ePaginator};
|
|
7
7
|
//# sourceMappingURL=paginator.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paginator.min.js","sources":["../../src/paginator/Paginator.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3ePaginatorElement, PageEventDetail } from \"@m3e/web/paginator\";\r\nexport type { M3ePaginatorElement, PageEventDetail } from \"@m3e/web/paginator\";\r\n\r\n/**\r\n * React binding for the `m3e-paginator` Web Component from `@m3e/web/paginator`.\r\n *\r\n * This component renders the underlying `<m3e-paginator>` 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-paginator>` instance for imperative access.\r\n *\r\n * See the `m3e-paginator` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePaginator = createComponent({\r\n tagName: \"m3e-paginator\",\r\n elementClass: M3ePaginatorElement,\r\n react: React,\r\n events: {\r\n onPage: \"page\" as EventName<CustomEvent<PageEventDetail>>,\r\n },\r\n});\r\n"],"names":["M3ePaginator","createComponent","tagName","elementClass","M3ePaginatorElement","react","React","events","onPage"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"paginator.min.js","sources":["../../src/paginator/Paginator.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3ePaginatorElement, PageEventDetail } from \"@m3e/web/paginator\";\r\nexport type { M3ePaginatorElement, PageEventDetail } from \"@m3e/web/paginator\";\r\n\r\n/**\r\n * React binding for the `m3e-paginator` Web Component from `@m3e/web/paginator`.\r\n *\r\n * This component renders the underlying `<m3e-paginator>` 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-paginator>` instance for imperative access.\r\n *\r\n * See the `m3e-paginator` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePaginator = createComponent({\r\n tagName: \"m3e-paginator\",\r\n elementClass: M3ePaginatorElement,\r\n react: React,\r\n events: {\r\n onPage: \"page\" as EventName<CustomEvent<PageEventDetail>>,\r\n },\r\n});\r\n"],"names":["M3ePaginator","createComponent","tagName","elementClass","M3ePaginatorElement","react","React","events","onPage"],"mappings":";;;;;2HAmBO,MAAMA,EAAeC,EAAgB,CAC1CC,QAAS,gBACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,OAAQ"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
/**
|
|
3
2
|
* @license MIT
|
|
4
3
|
* Copyright (c) 2025 matraic
|
|
@@ -6,40 +5,9 @@
|
|
|
6
5
|
*/
|
|
7
6
|
|
|
8
7
|
import React from 'react';
|
|
9
|
-
import { createComponent
|
|
8
|
+
import { createComponent } from '@lit/react';
|
|
10
9
|
import { M3eCircularProgressIndicatorElement, M3eLinearProgressIndicatorElement } from '@m3e/web/progress-indicator';
|
|
11
10
|
|
|
12
|
-
/**
|
|
13
|
-
* Creates an SSR-safe React component for a custom element. Properties are distinguished
|
|
14
|
-
* from attributes automatically, and events can be configured so they are added
|
|
15
|
-
* to the custom element as event listeners.
|
|
16
|
-
*
|
|
17
|
-
* @param options An options bag containing the parameters needed to generate a
|
|
18
|
-
* wrapped web component.
|
|
19
|
-
*
|
|
20
|
-
* @param options.react The React module, typically imported from the `react`
|
|
21
|
-
* npm package.
|
|
22
|
-
* @param options.tagName The custom element tag name registered via
|
|
23
|
-
* `customElements.define`.
|
|
24
|
-
* @param options.elementClass The custom element class registered via
|
|
25
|
-
* `customElements.define`.
|
|
26
|
-
* @param options.events An object listing events to which the component can
|
|
27
|
-
* listen. The object keys are the event property names passed in via React
|
|
28
|
-
* props and the object values are the names of the corresponding events
|
|
29
|
-
* generated by the custom element. For example, given `{onactivate:
|
|
30
|
-
* 'activate'}` an event function may be passed via the component's `onactivate`
|
|
31
|
-
* prop and will be called when the custom element fires its `activate` event.
|
|
32
|
-
* @param options.displayName A React component display name, used in debugging
|
|
33
|
-
* messages. Default value is inferred from the name of custom element class
|
|
34
|
-
* registered via `customElements.define`.
|
|
35
|
-
*/
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
37
|
-
function createComponent({ react, tagName, elementClass, events, displayName, }) {
|
|
38
|
-
return typeof window !== "undefined"
|
|
39
|
-
? createComponent$1({ react, tagName, elementClass, events, displayName })
|
|
40
|
-
: null;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
11
|
/**
|
|
44
12
|
* React binding for the `m3e-circular-progress-indicator` Web Component from `@m3e/web/progress-indicator`.
|
|
45
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-indicator.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"progress-indicator.js","sources":["../../src/progress-indicator/CircularProgressIndicator.ts","../../src/progress-indicator/LinearProgressIndicator.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eCircularProgressIndicatorElement } from \"@m3e/web/progress-indicator\";\r\nexport type { M3eCircularProgressIndicatorElement } from \"@m3e/web/progress-indicator\";\r\n\r\n/**\r\n * React binding for the `m3e-circular-progress-indicator` Web Component from `@m3e/web/progress-indicator`.\r\n *\r\n * This component renders the underlying `<m3e-circular-progress-indicator>` 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-circular-progress-indicator>` instance for imperative access.\r\n *\r\n * See the `m3e-circular-progress-indicator` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eCircularProgressIndicator = createComponent({\r\n tagName: \"m3e-circular-progress-indicator\",\r\n elementClass: M3eCircularProgressIndicatorElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eLinearProgressIndicatorElement } from \"@m3e/web/progress-indicator\";\r\nexport type {\r\n ProgressIndicatorVariant,\r\n LinearProgressMode,\r\n M3eLinearProgressIndicatorElement,\r\n} from \"@m3e/web/progress-indicator\";\r\n\r\n/**\r\n * React binding for the `m3e-linear-progress-indicator` Web Component from `@m3e/web/progress-indicator`.\r\n *\r\n * This component renders the underlying `<m3e-linear-progress-indicator>` 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-linear-progress-indicator>` instance for imperative access.\r\n *\r\n * See the `m3e-linear-progress-indicator` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eLinearProgressIndicator = createComponent({\r\n tagName: \"m3e-linear-progress-indicator\",\r\n elementClass: M3eLinearProgressIndicatorElement,\r\n react: React,\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,4BAA4B,GAAG,eAAe,CAAC;AAC1D,IAAA,OAAO,EAAE,iCAAiC;AAC1C,IAAA,YAAY,EAAE,mCAAmC;AACjD,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACbD;;;;;;;;;;;;AAYG;AACI,MAAM,0BAA0B,GAAG,eAAe,CAAC;AACxD,IAAA,OAAO,EAAE,+BAA+B;AACxC,IAAA,YAAY,EAAE,iCAAiC;AAC/C,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
/**
|
|
3
2
|
* @license MIT
|
|
4
3
|
* Copyright (c) 2025 matraic
|
|
5
4
|
* See LICENSE file in the project root for full license text.
|
|
6
|
-
*/
|
|
5
|
+
*/
|
|
6
|
+
import r from"react";import{createComponent as e}from"@lit/react";import{M3eCircularProgressIndicatorElement as t,M3eLinearProgressIndicatorElement as a}from"@m3e/web/progress-indicator";const o=e({tagName:"m3e-circular-progress-indicator",elementClass:t,react:r}),m=e({tagName:"m3e-linear-progress-indicator",elementClass:a,react:r});export{o as M3eCircularProgressIndicator,m as M3eLinearProgressIndicator};
|
|
7
7
|
//# sourceMappingURL=progress-indicator.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-indicator.min.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"progress-indicator.min.js","sources":["../../src/progress-indicator/CircularProgressIndicator.ts","../../src/progress-indicator/LinearProgressIndicator.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eCircularProgressIndicatorElement } from \"@m3e/web/progress-indicator\";\r\nexport type { M3eCircularProgressIndicatorElement } from \"@m3e/web/progress-indicator\";\r\n\r\n/**\r\n * React binding for the `m3e-circular-progress-indicator` Web Component from `@m3e/web/progress-indicator`.\r\n *\r\n * This component renders the underlying `<m3e-circular-progress-indicator>` 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-circular-progress-indicator>` instance for imperative access.\r\n *\r\n * See the `m3e-circular-progress-indicator` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eCircularProgressIndicator = createComponent({\r\n tagName: \"m3e-circular-progress-indicator\",\r\n elementClass: M3eCircularProgressIndicatorElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eLinearProgressIndicatorElement } from \"@m3e/web/progress-indicator\";\r\nexport type {\r\n ProgressIndicatorVariant,\r\n LinearProgressMode,\r\n M3eLinearProgressIndicatorElement,\r\n} from \"@m3e/web/progress-indicator\";\r\n\r\n/**\r\n * React binding for the `m3e-linear-progress-indicator` Web Component from `@m3e/web/progress-indicator`.\r\n *\r\n * This component renders the underlying `<m3e-linear-progress-indicator>` 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-linear-progress-indicator>` instance for imperative access.\r\n *\r\n * See the `m3e-linear-progress-indicator` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eLinearProgressIndicator = createComponent({\r\n tagName: \"m3e-linear-progress-indicator\",\r\n elementClass: M3eLinearProgressIndicatorElement,\r\n react: React,\r\n});\r\n"],"names":["M3eCircularProgressIndicator","createComponent","tagName","elementClass","M3eCircularProgressIndicatorElement","react","React","M3eLinearProgressIndicator","M3eLinearProgressIndicatorElement"],"mappings":";;;;;2LAmBO,MAAMA,EAA+BC,EAAgB,CAC1DC,QAAS,kCACTC,aAAcC,EACdC,MAAOC,ICCIC,EAA6BN,EAAgB,CACxDC,QAAS,gCACTC,aAAcK,EACdH,MAAOC"}
|
package/dist/radio-group.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
/**
|
|
3
2
|
* @license MIT
|
|
4
3
|
* Copyright (c) 2025 matraic
|
|
@@ -6,40 +5,9 @@
|
|
|
6
5
|
*/
|
|
7
6
|
|
|
8
7
|
import React from 'react';
|
|
9
|
-
import { createComponent
|
|
8
|
+
import { createComponent } from '@lit/react';
|
|
10
9
|
import { M3eRadioElement, M3eRadioGroupElement } from '@m3e/web/radio-group';
|
|
11
10
|
|
|
12
|
-
/**
|
|
13
|
-
* Creates an SSR-safe React component for a custom element. Properties are distinguished
|
|
14
|
-
* from attributes automatically, and events can be configured so they are added
|
|
15
|
-
* to the custom element as event listeners.
|
|
16
|
-
*
|
|
17
|
-
* @param options An options bag containing the parameters needed to generate a
|
|
18
|
-
* wrapped web component.
|
|
19
|
-
*
|
|
20
|
-
* @param options.react The React module, typically imported from the `react`
|
|
21
|
-
* npm package.
|
|
22
|
-
* @param options.tagName The custom element tag name registered via
|
|
23
|
-
* `customElements.define`.
|
|
24
|
-
* @param options.elementClass The custom element class registered via
|
|
25
|
-
* `customElements.define`.
|
|
26
|
-
* @param options.events An object listing events to which the component can
|
|
27
|
-
* listen. The object keys are the event property names passed in via React
|
|
28
|
-
* props and the object values are the names of the corresponding events
|
|
29
|
-
* generated by the custom element. For example, given `{onactivate:
|
|
30
|
-
* 'activate'}` an event function may be passed via the component's `onactivate`
|
|
31
|
-
* prop and will be called when the custom element fires its `activate` event.
|
|
32
|
-
* @param options.displayName A React component display name, used in debugging
|
|
33
|
-
* messages. Default value is inferred from the name of custom element class
|
|
34
|
-
* registered via `customElements.define`.
|
|
35
|
-
*/
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
37
|
-
function createComponent({ react, tagName, elementClass, events, displayName, }) {
|
|
38
|
-
return typeof window !== "undefined"
|
|
39
|
-
? createComponent$1({ react, tagName, elementClass, events, displayName })
|
|
40
|
-
: null;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
11
|
/**
|
|
44
12
|
* React binding for the `m3e-radio` Web Component from `@m3e/web/radio-group`.
|
|
45
13
|
*
|
package/dist/radio-group.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"radio-group.js","sources":["../../src/radio-group/Radio.ts","../../src/radio-group/RadioGroup.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eRadioElement } from \"@m3e/web/radio-group\";\r\nexport type { M3eRadioElement } from \"@m3e/web/radio-group\";\r\n\r\n/**\r\n * React binding for the `m3e-radio` Web Component from `@m3e/web/radio-group`.\r\n *\r\n * This component renders the underlying `<m3e-radio>` 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-radio>` instance for imperative access.\r\n *\r\n * See the `m3e-radio` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eRadio = createComponent({\r\n tagName: \"m3e-radio\",\r\n elementClass: M3eRadioElement,\r\n react: React,\r\n events: {\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eRadioGroupElement } from \"@m3e/web/radio-group\";\r\nexport type { M3eRadioGroupElement } from \"@m3e/web/radio-group\";\r\n\r\n/**\r\n * React binding for the `m3e-radio-group` Web Component from `@m3e/web/radio-group`.\r\n *\r\n * This component renders the underlying `<m3e-radio-group>` 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-radio-group>` instance for imperative access.\r\n *\r\n * See the `m3e-radio-group` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eRadioGroup = createComponent({\r\n tagName: \"m3e-radio-group\",\r\n elementClass: M3eRadioGroupElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,QAAQ,GAAG,eAAe,CAAC;AACtC,IAAA,OAAO,EAAE,WAAW;AACpB,IAAA,YAAY,EAAE,eAAe;AAC7B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,QAAQ,EAAE,QAAQ;AAClB,QAAA,OAAO,EAAE,OAAO;AACjB,KAAA;AACF,CAAA;;ACtBD;;;;;;;;;;;;AAYG;AACI,MAAM,aAAa,GAAG,eAAe,CAAC;AAC3C,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,YAAY,EAAE,oBAAoB;AAClC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,QAAQ,EAAE,QAAQ;AACnB,KAAA;AACF,CAAA;;;;"}
|
package/dist/radio-group.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
/**
|
|
3
2
|
* @license MIT
|
|
4
3
|
* Copyright (c) 2025 matraic
|
|
5
4
|
* See LICENSE file in the project root for full license text.
|
|
6
|
-
*/
|
|
5
|
+
*/
|
|
6
|
+
import e from"react";import{createComponent as t}from"@lit/react";import{M3eRadioElement as a,M3eRadioGroupElement as o}from"@m3e/web/radio-group";const r=t({tagName:"m3e-radio",elementClass:a,react:e,events:{onInput:"input",onChange:"change",onClick:"click"}}),n=t({tagName:"m3e-radio-group",elementClass:o,react:e,events:{onChange:"change"}});export{r as M3eRadio,n as M3eRadioGroup};
|
|
7
7
|
//# sourceMappingURL=radio-group.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.min.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"radio-group.min.js","sources":["../../src/radio-group/Radio.ts","../../src/radio-group/RadioGroup.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eRadioElement } from \"@m3e/web/radio-group\";\r\nexport type { M3eRadioElement } from \"@m3e/web/radio-group\";\r\n\r\n/**\r\n * React binding for the `m3e-radio` Web Component from `@m3e/web/radio-group`.\r\n *\r\n * This component renders the underlying `<m3e-radio>` 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-radio>` instance for imperative access.\r\n *\r\n * See the `m3e-radio` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eRadio = createComponent({\r\n tagName: \"m3e-radio\",\r\n elementClass: M3eRadioElement,\r\n react: React,\r\n events: {\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eRadioGroupElement } from \"@m3e/web/radio-group\";\r\nexport type { M3eRadioGroupElement } from \"@m3e/web/radio-group\";\r\n\r\n/**\r\n * React binding for the `m3e-radio-group` Web Component from `@m3e/web/radio-group`.\r\n *\r\n * This component renders the underlying `<m3e-radio-group>` 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-radio-group>` instance for imperative access.\r\n *\r\n * See the `m3e-radio-group` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eRadioGroup = createComponent({\r\n tagName: \"m3e-radio-group\",\r\n elementClass: M3eRadioGroupElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n"],"names":["M3eRadio","createComponent","tagName","elementClass","M3eRadioElement","react","React","events","onInput","onChange","onClick","M3eRadioGroup","M3eRadioGroupElement"],"mappings":";;;;;mJAmBO,MAAMA,EAAWC,EAAgB,CACtCC,QAAS,YACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,QAAS,QACTC,SAAU,SACVC,QAAS,WCPAC,EAAgBV,EAAgB,CAC3CC,QAAS,kBACTC,aAAcS,EACdP,MAAOC,EACPC,OAAQ,CACNE,SAAU"}
|
package/dist/segmented-button.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
/**
|
|
3
2
|
* @license MIT
|
|
4
3
|
* Copyright (c) 2025 matraic
|
|
@@ -6,40 +5,9 @@
|
|
|
6
5
|
*/
|
|
7
6
|
|
|
8
7
|
import React from 'react';
|
|
9
|
-
import { createComponent
|
|
8
|
+
import { createComponent } from '@lit/react';
|
|
10
9
|
import { M3eSegmentedButtonElement, M3eButtonSegmentElement } from '@m3e/web/segmented-button';
|
|
11
10
|
|
|
12
|
-
/**
|
|
13
|
-
* Creates an SSR-safe React component for a custom element. Properties are distinguished
|
|
14
|
-
* from attributes automatically, and events can be configured so they are added
|
|
15
|
-
* to the custom element as event listeners.
|
|
16
|
-
*
|
|
17
|
-
* @param options An options bag containing the parameters needed to generate a
|
|
18
|
-
* wrapped web component.
|
|
19
|
-
*
|
|
20
|
-
* @param options.react The React module, typically imported from the `react`
|
|
21
|
-
* npm package.
|
|
22
|
-
* @param options.tagName The custom element tag name registered via
|
|
23
|
-
* `customElements.define`.
|
|
24
|
-
* @param options.elementClass The custom element class registered via
|
|
25
|
-
* `customElements.define`.
|
|
26
|
-
* @param options.events An object listing events to which the component can
|
|
27
|
-
* listen. The object keys are the event property names passed in via React
|
|
28
|
-
* props and the object values are the names of the corresponding events
|
|
29
|
-
* generated by the custom element. For example, given `{onactivate:
|
|
30
|
-
* 'activate'}` an event function may be passed via the component's `onactivate`
|
|
31
|
-
* prop and will be called when the custom element fires its `activate` event.
|
|
32
|
-
* @param options.displayName A React component display name, used in debugging
|
|
33
|
-
* messages. Default value is inferred from the name of custom element class
|
|
34
|
-
* registered via `customElements.define`.
|
|
35
|
-
*/
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
37
|
-
function createComponent({ react, tagName, elementClass, events, displayName, }) {
|
|
38
|
-
return typeof window !== "undefined"
|
|
39
|
-
? createComponent$1({ react, tagName, elementClass, events, displayName })
|
|
40
|
-
: null;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
11
|
/**
|
|
44
12
|
* React binding for the `m3e-segmented-button` Web Component from `@m3e/web/segmented-button`.
|
|
45
13
|
*
|