@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/app-bar.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 { M3eAppBarElement } from '@m3e/web/app-bar';
|
|
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-app-bar` Web Component from `@m3e/web/app-bar`.
|
|
45
13
|
*
|
|
@@ -50,7 +18,7 @@ function createComponent({ react, tagName, elementClass, events, displayName, })
|
|
|
50
18
|
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
51
19
|
* underlying `<m3e-app-bar>` instance for imperative access.
|
|
52
20
|
*
|
|
53
|
-
* See the `m3e-app-bar` documentation
|
|
21
|
+
* See the `m3e-app-bar` documentation for full details on behavior,
|
|
54
22
|
* styling, accessibility, and supported events.
|
|
55
23
|
*/
|
|
56
24
|
const M3eAppBar = createComponent({
|
package/dist/app-bar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-bar.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"app-bar.js","sources":["../../src/app-bar/AppBar.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eAppBarElement } from \"@m3e/web/app-bar\";\r\nexport type { AppBarSize, M3eAppBarElement } from \"@m3e/web/app-bar\";\r\n\r\n/**\r\n * React binding for the `m3e-app-bar` Web Component from `@m3e/web/app-bar`.\r\n *\r\n * This component renders the underlying `<m3e-app-bar>` 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-app-bar>` instance for imperative access.\r\n *\r\n * See the `m3e-app-bar` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eAppBar = createComponent({\r\n tagName: \"m3e-app-bar\",\r\n elementClass: M3eAppBarElement,\r\n react: React,\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,SAAS,GAAG,eAAe,CAAC;AACvC,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,YAAY,EAAE,gBAAgB;AAC9B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
package/dist/app-bar.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 r from"react";import{createComponent as e}from"@lit/react";import{M3eAppBarElement as t}from"@m3e/web/app-bar";const a=e({tagName:"m3e-app-bar",elementClass:t,react:r});export{a as M3eAppBar};
|
|
7
7
|
//# sourceMappingURL=app-bar.min.js.map
|
package/dist/app-bar.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-bar.min.js","sources":["../../src/app-bar/AppBar.ts"
|
|
1
|
+
{"version":3,"file":"app-bar.min.js","sources":["../../src/app-bar/AppBar.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eAppBarElement } from \"@m3e/web/app-bar\";\r\nexport type { AppBarSize, M3eAppBarElement } from \"@m3e/web/app-bar\";\r\n\r\n/**\r\n * React binding for the `m3e-app-bar` Web Component from `@m3e/web/app-bar`.\r\n *\r\n * This component renders the underlying `<m3e-app-bar>` 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-app-bar>` instance for imperative access.\r\n *\r\n * See the `m3e-app-bar` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eAppBar = createComponent({\r\n tagName: \"m3e-app-bar\",\r\n elementClass: M3eAppBarElement,\r\n react: React,\r\n});\r\n"],"names":["M3eAppBar","createComponent","tagName","elementClass","M3eAppBarElement","react","React"],"mappings":";;;;;sHAmBO,MAAMA,EAAYC,EAAgB,CACvCC,QAAS,cACTC,aAAcC,EACdC,MAAOC"}
|
package/dist/autocomplete.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 { M3eAutocompleteElement } from '@m3e/web/autocomplete';
|
|
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-autocomplete` Web Component from `@m3e/web/autocomplete`.
|
|
45
13
|
*
|
|
@@ -50,7 +18,7 @@ function createComponent({ react, tagName, elementClass, events, displayName, })
|
|
|
50
18
|
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
51
19
|
* underlying `<m3e-autocomplete>` instance for imperative access.
|
|
52
20
|
*
|
|
53
|
-
* See the `m3e-autocomplete` documentation
|
|
21
|
+
* See the `m3e-autocomplete` documentation for full details on behavior,
|
|
54
22
|
* styling, accessibility, and supported events.
|
|
55
23
|
*/
|
|
56
24
|
const M3eAutocomplete = createComponent({
|
package/dist/autocomplete.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"autocomplete.js","sources":["../../src/autocomplete/Autocomplete.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eAutocompleteElement } from \"@m3e/web/autocomplete\";\r\nexport type { M3eAutocompleteElement } from \"@m3e/web/autocomplete\";\r\n\r\n/**\r\n * React binding for the `m3e-autocomplete` Web Component from `@m3e/web/autocomplete`.\r\n *\r\n * This component renders the underlying `<m3e-autocomplete>` 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-autocomplete>` instance for imperative access.\r\n *\r\n * See the `m3e-autocomplete` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eAutocomplete = createComponent({\r\n tagName: \"m3e-autocomplete\",\r\n elementClass: M3eAutocompleteElement,\r\n react: React,\r\n events: {\r\n onToggle: \"toggle\",\r\n },\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,eAAe,GAAG,eAAe,CAAC;AAC7C,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,YAAY,EAAE,sBAAsB;AACpC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,QAAQ,EAAE,QAAQ;AACnB,KAAA;AACF,CAAA;;;;"}
|
package/dist/autocomplete.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{M3eAutocompleteElement as o}from"@m3e/web/autocomplete";const m=t({tagName:"m3e-autocomplete",elementClass:o,react:e,events:{onToggle:"toggle"}});export{m as M3eAutocomplete};
|
|
7
7
|
//# sourceMappingURL=autocomplete.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.min.js","sources":["../../src/autocomplete/Autocomplete.ts"
|
|
1
|
+
{"version":3,"file":"autocomplete.min.js","sources":["../../src/autocomplete/Autocomplete.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eAutocompleteElement } from \"@m3e/web/autocomplete\";\r\nexport type { M3eAutocompleteElement } from \"@m3e/web/autocomplete\";\r\n\r\n/**\r\n * React binding for the `m3e-autocomplete` Web Component from `@m3e/web/autocomplete`.\r\n *\r\n * This component renders the underlying `<m3e-autocomplete>` 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-autocomplete>` instance for imperative access.\r\n *\r\n * See the `m3e-autocomplete` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eAutocomplete = createComponent({\r\n tagName: \"m3e-autocomplete\",\r\n elementClass: M3eAutocompleteElement,\r\n react: React,\r\n events: {\r\n onToggle: \"toggle\",\r\n },\r\n});\r\n"],"names":["M3eAutocomplete","createComponent","tagName","elementClass","M3eAutocompleteElement","react","React","events","onToggle"],"mappings":";;;;;iIAmBO,MAAMA,EAAkBC,EAAgB,CAC7CC,QAAS,mBACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,SAAU"}
|
package/dist/avatar.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 { M3eAvatarElement } from '@m3e/web/avatar';
|
|
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-avatar` Web Component from `@m3e/web/avatar`.
|
|
45
13
|
*
|
|
@@ -50,7 +18,7 @@ function createComponent({ react, tagName, elementClass, events, displayName, })
|
|
|
50
18
|
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
51
19
|
* underlying `<m3e-avatar>` instance for imperative access.
|
|
52
20
|
*
|
|
53
|
-
* See the `m3e-avatar` documentation
|
|
21
|
+
* See the `m3e-avatar` documentation for full details on behavior,
|
|
54
22
|
* styling, accessibility, and supported events.
|
|
55
23
|
*/
|
|
56
24
|
const M3eAvatar = createComponent({
|
package/dist/avatar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"avatar.js","sources":["../../src/avatar/Avatar.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eAvatarElement } from \"@m3e/web/avatar\";\r\nexport type { M3eAvatarElement } from \"@m3e/web/avatar\";\r\n/**\r\n * React binding for the `m3e-avatar` Web Component from `@m3e/web/avatar`.\r\n *\r\n * This component renders the underlying `<m3e-avatar>` 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-avatar>` instance for imperative access.\r\n *\r\n * See the `m3e-avatar` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eAvatar = createComponent({\r\n tagName: \"m3e-avatar\",\r\n elementClass: M3eAvatarElement,\r\n react: React,\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAKA;;;;;;;;;;;;AAYG;AACI,MAAM,SAAS,GAAG,eAAe,CAAC;AACvC,IAAA,OAAO,EAAE,YAAY;AACrB,IAAA,YAAY,EAAE,gBAAgB;AAC9B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
package/dist/avatar.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 t from"react";import{createComponent as a}from"@lit/react";import{M3eAvatarElement as r}from"@m3e/web/avatar";const e=a({tagName:"m3e-avatar",elementClass:r,react:t});export{e as M3eAvatar};
|
|
7
7
|
//# sourceMappingURL=avatar.min.js.map
|
package/dist/avatar.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.min.js","sources":["../../src/avatar/Avatar.ts"
|
|
1
|
+
{"version":3,"file":"avatar.min.js","sources":["../../src/avatar/Avatar.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eAvatarElement } from \"@m3e/web/avatar\";\r\nexport type { M3eAvatarElement } from \"@m3e/web/avatar\";\r\n/**\r\n * React binding for the `m3e-avatar` Web Component from `@m3e/web/avatar`.\r\n *\r\n * This component renders the underlying `<m3e-avatar>` 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-avatar>` instance for imperative access.\r\n *\r\n * See the `m3e-avatar` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eAvatar = createComponent({\r\n tagName: \"m3e-avatar\",\r\n elementClass: M3eAvatarElement,\r\n react: React,\r\n});\r\n"],"names":["M3eAvatar","createComponent","tagName","elementClass","M3eAvatarElement","react","React"],"mappings":";;;;;qHAkBO,MAAMA,EAAYC,EAAgB,CACvCC,QAAS,aACTC,aAAcC,EACdC,MAAOC"}
|
package/dist/badge.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 { M3eBadgeElement } from '@m3e/web/badge';
|
|
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-badge` Web Component from `@m3e/web/badge`.
|
|
45
13
|
*
|
|
@@ -50,7 +18,7 @@ function createComponent({ react, tagName, elementClass, events, displayName, })
|
|
|
50
18
|
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
51
19
|
* underlying `<m3e-badge>` instance for imperative access.
|
|
52
20
|
*
|
|
53
|
-
* See the `m3e-badge` documentation
|
|
21
|
+
* See the `m3e-badge` documentation for full details on behavior,
|
|
54
22
|
* styling, accessibility, and supported events.
|
|
55
23
|
*/
|
|
56
24
|
const M3eBadge = createComponent({
|
package/dist/badge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"badge.js","sources":["../../src/badge/Badge.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eBadgeElement } from \"@m3e/web/badge\";\r\nexport type { BadgeSize, BadgePosition, M3eBadgeElement } from \"@m3e/web/badge\";\r\n\r\n/**\r\n * React binding for the `m3e-badge` Web Component from `@m3e/web/badge`.\r\n *\r\n * This component renders the underlying `<m3e-badge>` 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-badge>` instance for imperative access.\r\n *\r\n * See the `m3e-badge` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eBadge = createComponent({\r\n tagName: \"m3e-badge\",\r\n elementClass: M3eBadgeElement,\r\n react: React,\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;AACb,CAAA;;;;"}
|
package/dist/badge.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{M3eBadgeElement as m}from"@m3e/web/badge";const r=t({tagName:"m3e-badge",elementClass:m,react:e});export{r as M3eBadge};
|
|
7
7
|
//# sourceMappingURL=badge.min.js.map
|
package/dist/badge.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.min.js","sources":["../../src/badge/Badge.ts"
|
|
1
|
+
{"version":3,"file":"badge.min.js","sources":["../../src/badge/Badge.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eBadgeElement } from \"@m3e/web/badge\";\r\nexport type { BadgeSize, BadgePosition, M3eBadgeElement } from \"@m3e/web/badge\";\r\n\r\n/**\r\n * React binding for the `m3e-badge` Web Component from `@m3e/web/badge`.\r\n *\r\n * This component renders the underlying `<m3e-badge>` 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-badge>` instance for imperative access.\r\n *\r\n * See the `m3e-badge` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eBadge = createComponent({\r\n tagName: \"m3e-badge\",\r\n elementClass: M3eBadgeElement,\r\n react: React,\r\n});\r\n"],"names":["M3eBadge","createComponent","tagName","elementClass","M3eBadgeElement","react","React"],"mappings":";;;;;mHAmBO,MAAMA,EAAWC,EAAgB,CACtCC,QAAS,YACTC,aAAcC,EACdC,MAAOC"}
|
package/dist/bottom-sheet.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 { M3eBottomSheetElement, M3eBottomSheetActionElement, M3eBottomSheetTriggerElement } from '@m3e/web/bottom-sheet';
|
|
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-bottom-sheet` Web Component from `@m3e/web/bottom-sheet`.
|
|
45
13
|
*
|
package/dist/bottom-sheet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bottom-sheet.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"bottom-sheet.js","sources":["../../src/bottom-sheet/BottomSheet.ts","../../src/bottom-sheet/BottomSheetAction.ts","../../src/bottom-sheet/BottomSheetTrigger.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eBottomSheetElement } from \"@m3e/web/bottom-sheet\";\r\nexport type { M3eBottomSheetElement } from \"@m3e/web/bottom-sheet\";\r\n/**\r\n * React binding for the `m3e-bottom-sheet` Web Component from `@m3e/web/bottom-sheet`.\r\n *\r\n * This component renders the underlying `<m3e-bottom-sheet>` 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-bottom-sheet>` instance for imperative access.\r\n *\r\n * See the `m3e-bottom-sheet` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eBottomSheet = createComponent({\r\n tagName: \"m3e-bottom-sheet\",\r\n elementClass: M3eBottomSheetElement,\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 onCancel: \"cancel\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eBottomSheetActionElement } from \"@m3e/web/bottom-sheet\";\r\nexport type { M3eBottomSheetActionElement } from \"@m3e/web/bottom-sheet\";\r\n\r\n/**\r\n * React binding for the `m3e-bottom-sheet-action` Web Component from `@m3e/web/bottom-sheet`.\r\n *\r\n * This component renders the underlying `<m3e-bottom-sheet-action>` 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-bottom-sheet-action>` instance for imperative access.\r\n *\r\n * See the `m3e-bottom-sheet-action` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eBottomSheetAction = createComponent({\r\n tagName: \"m3e-bottom-sheet-action\",\r\n elementClass: M3eBottomSheetActionElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eBottomSheetTriggerElement } from \"@m3e/web/bottom-sheet\";\r\nexport type { M3eBottomSheetTriggerElement } from \"@m3e/web/bottom-sheet\";\r\n\r\n/**\r\n * React binding for the `m3e-bottom-sheet-trigger` Web Component from `@m3e/web/bottom-sheet`.\r\n *\r\n * This component renders the underlying `<m3e-bottom-sheet-trigger>` 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-bottom-sheet-trigger>` instance for imperative access.\r\n *\r\n * See the `m3e-bottom-sheet-trigger` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eBottomSheetTrigger = createComponent({\r\n tagName: \"m3e-bottom-sheet-trigger\",\r\n elementClass: M3eBottomSheetTriggerElement,\r\n react: React,\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAKA;;;;;;;;;;;;AAYG;AACI,MAAM,cAAc,GAAG,eAAe,CAAC;AAC5C,IAAA,OAAO,EAAE,kBAAkB;AAC3B,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,QAAQ,EAAE,QAAQ;AACnB,KAAA;AACF,CAAA;;ACvBD;;;;;;;;;;;;AAYG;AACI,MAAM,oBAAoB,GAAG,eAAe,CAAC;AAClD,IAAA,OAAO,EAAE,yBAAyB;AAClC,IAAA,YAAY,EAAE,2BAA2B;AACzC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,qBAAqB,GAAG,eAAe,CAAC;AACnD,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,YAAY,EAAE,4BAA4B;AAC1C,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
package/dist/bottom-sheet.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{M3eBottomSheetElement as o,M3eBottomSheetActionElement as n,M3eBottomSheetTriggerElement as m}from"@m3e/web/bottom-sheet";const a=t({tagName:"m3e-bottom-sheet",elementClass:o,react:e,events:{onOpening:"opening",onOpened:"opened",onClosing:"closing",onClosed:"closed",onCancel:"cancel"}}),s=t({tagName:"m3e-bottom-sheet-action",elementClass:n,react:e}),r=t({tagName:"m3e-bottom-sheet-trigger",elementClass:m,react:e});export{a as M3eBottomSheet,s as M3eBottomSheetAction,r as M3eBottomSheetTrigger};
|
|
7
7
|
//# sourceMappingURL=bottom-sheet.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bottom-sheet.min.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"bottom-sheet.min.js","sources":["../../src/bottom-sheet/BottomSheet.ts","../../src/bottom-sheet/BottomSheetAction.ts","../../src/bottom-sheet/BottomSheetTrigger.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eBottomSheetElement } from \"@m3e/web/bottom-sheet\";\r\nexport type { M3eBottomSheetElement } from \"@m3e/web/bottom-sheet\";\r\n/**\r\n * React binding for the `m3e-bottom-sheet` Web Component from `@m3e/web/bottom-sheet`.\r\n *\r\n * This component renders the underlying `<m3e-bottom-sheet>` 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-bottom-sheet>` instance for imperative access.\r\n *\r\n * See the `m3e-bottom-sheet` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eBottomSheet = createComponent({\r\n tagName: \"m3e-bottom-sheet\",\r\n elementClass: M3eBottomSheetElement,\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 onCancel: \"cancel\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eBottomSheetActionElement } from \"@m3e/web/bottom-sheet\";\r\nexport type { M3eBottomSheetActionElement } from \"@m3e/web/bottom-sheet\";\r\n\r\n/**\r\n * React binding for the `m3e-bottom-sheet-action` Web Component from `@m3e/web/bottom-sheet`.\r\n *\r\n * This component renders the underlying `<m3e-bottom-sheet-action>` 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-bottom-sheet-action>` instance for imperative access.\r\n *\r\n * See the `m3e-bottom-sheet-action` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eBottomSheetAction = createComponent({\r\n tagName: \"m3e-bottom-sheet-action\",\r\n elementClass: M3eBottomSheetActionElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eBottomSheetTriggerElement } from \"@m3e/web/bottom-sheet\";\r\nexport type { M3eBottomSheetTriggerElement } from \"@m3e/web/bottom-sheet\";\r\n\r\n/**\r\n * React binding for the `m3e-bottom-sheet-trigger` Web Component from `@m3e/web/bottom-sheet`.\r\n *\r\n * This component renders the underlying `<m3e-bottom-sheet-trigger>` 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-bottom-sheet-trigger>` instance for imperative access.\r\n *\r\n * See the `m3e-bottom-sheet-trigger` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eBottomSheetTrigger = createComponent({\r\n tagName: \"m3e-bottom-sheet-trigger\",\r\n elementClass: M3eBottomSheetTriggerElement,\r\n react: React,\r\n});\r\n"],"names":["M3eBottomSheet","createComponent","tagName","elementClass","M3eBottomSheetElement","react","React","events","onOpening","onOpened","onClosing","onClosed","onCancel","M3eBottomSheetAction","M3eBottomSheetActionElement","M3eBottomSheetTrigger","M3eBottomSheetTriggerElement"],"mappings":";;;;;mMAkBO,MAAMA,EAAiBC,EAAgB,CAC5CC,QAAS,mBACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,UAAW,UACXC,SAAU,SACVC,UAAW,UACXC,SAAU,SACVC,SAAU,YCRDC,EAAuBZ,EAAgB,CAClDC,QAAS,0BACTC,aAAcW,EACdT,MAAOC,ICHIS,EAAwBd,EAAgB,CACnDC,QAAS,2BACTC,aAAca,EACdX,MAAOC"}
|
package/dist/button-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 { M3eButtonGroupElement } from '@m3e/web/button-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-button-group` Web Component from `@m3e/web/button-group`.
|
|
45
13
|
*
|
|
@@ -50,7 +18,7 @@ function createComponent({ react, tagName, elementClass, events, displayName, })
|
|
|
50
18
|
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
51
19
|
* underlying `<m3e-button-group>` instance for imperative access.
|
|
52
20
|
*
|
|
53
|
-
* See the `m3e-button-group` documentation
|
|
21
|
+
* See the `m3e-button-group` documentation for full details on behavior,
|
|
54
22
|
* styling, accessibility, and supported events.
|
|
55
23
|
*/
|
|
56
24
|
const M3eButtonGroup = createComponent({
|
package/dist/button-group.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"button-group.js","sources":["../../src/button-group/ButtonGroup.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eButtonGroupElement } from \"@m3e/web/button-group\";\r\nexport type { ButtonGroupSize, ButtonGroupVariant, M3eButtonGroupElement } from \"@m3e/web/button-group\";\r\n\r\n/**\r\n * React binding for the `m3e-button-group` Web Component from `@m3e/web/button-group`.\r\n *\r\n * This component renders the underlying `<m3e-button-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-button-group>` instance for imperative access.\r\n *\r\n * See the `m3e-button-group` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eButtonGroup = createComponent({\r\n tagName: \"m3e-button-group\",\r\n elementClass: M3eButtonGroupElement,\r\n react: React,\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,cAAc,GAAG,eAAe,CAAC;AAC5C,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,YAAY,EAAE,qBAAqB;AACnC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
package/dist/button-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 t from"react";import{createComponent as o}from"@lit/react";import{M3eButtonGroupElement as r}from"@m3e/web/button-group";const e=o({tagName:"m3e-button-group",elementClass:r,react:t});export{e as M3eButtonGroup};
|
|
7
7
|
//# sourceMappingURL=button-group.min.js.map
|