@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmented-button.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"segmented-button.js","sources":["../../src/segmented-button/SegmentedButton.ts","../../src/segmented-button/ButtonSegment.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSegmentedButtonElement } from \"@m3e/web/segmented-button\";\r\nexport type { M3eSegmentedButtonElement } from \"@m3e/web/segmented-button\";\r\n\r\n/**\r\n * React binding for the `m3e-segmented-button` Web Component from `@m3e/web/segmented-button`.\r\n *\r\n * This component renders the underlying `<m3e-segmented-button>` 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-segmented-button>` instance for imperative access.\r\n *\r\n * See the `m3e-segmented-button` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSegmentedButton = createComponent({\r\n tagName: \"m3e-segmented-button\",\r\n elementClass: M3eSegmentedButtonElement,\r\n react: React,\r\n events: {\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eButtonSegmentElement } from \"@m3e/web/segmented-button\";\r\nexport type { M3eButtonSegmentElement } from \"@m3e/web/segmented-button\";\r\n\r\n/**\r\n * React binding for the `m3e-button-segment` Web Component from `@m3e/web/segmented-button`.\r\n *\r\n * This component renders the underlying `<m3e-button-segment>` 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-segment>` instance for imperative access.\r\n *\r\n * See the `m3e-button-segment` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eButtonSegment = createComponent({\r\n tagName: \"m3e-button-segment\",\r\n elementClass: M3eButtonSegmentElement,\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"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAChD,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,YAAY,EAAE,yBAAyB;AACvC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,QAAQ,EAAE,QAAQ;AACnB,KAAA;AACF,CAAA;;ACrBD;;;;;;;;;;;;AAYG;AACI,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC9C,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,YAAY,EAAE,uBAAuB;AACrC,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;;;;"}
|
|
@@ -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{M3eSegmentedButtonElement as n,M3eButtonSegmentElement as m}from"@m3e/web/segmented-button";const o=t({tagName:"m3e-segmented-button",elementClass:n,react:e,events:{onInput:"input",onChange:"change"}}),a=t({tagName:"m3e-button-segment",elementClass:m,react:e,events:{onInput:"input",onChange:"change",onClick:"click"}});export{a as M3eButtonSegment,o as M3eSegmentedButton};
|
|
7
7
|
//# sourceMappingURL=segmented-button.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmented-button.min.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"segmented-button.min.js","sources":["../../src/segmented-button/SegmentedButton.ts","../../src/segmented-button/ButtonSegment.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSegmentedButtonElement } from \"@m3e/web/segmented-button\";\r\nexport type { M3eSegmentedButtonElement } from \"@m3e/web/segmented-button\";\r\n\r\n/**\r\n * React binding for the `m3e-segmented-button` Web Component from `@m3e/web/segmented-button`.\r\n *\r\n * This component renders the underlying `<m3e-segmented-button>` 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-segmented-button>` instance for imperative access.\r\n *\r\n * See the `m3e-segmented-button` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSegmentedButton = createComponent({\r\n tagName: \"m3e-segmented-button\",\r\n elementClass: M3eSegmentedButtonElement,\r\n react: React,\r\n events: {\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eButtonSegmentElement } from \"@m3e/web/segmented-button\";\r\nexport type { M3eButtonSegmentElement } from \"@m3e/web/segmented-button\";\r\n\r\n/**\r\n * React binding for the `m3e-button-segment` Web Component from `@m3e/web/segmented-button`.\r\n *\r\n * This component renders the underlying `<m3e-button-segment>` 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-segment>` instance for imperative access.\r\n *\r\n * See the `m3e-button-segment` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eButtonSegment = createComponent({\r\n tagName: \"m3e-button-segment\",\r\n elementClass: M3eButtonSegmentElement,\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"],"names":["M3eSegmentedButton","createComponent","tagName","elementClass","M3eSegmentedButtonElement","react","React","events","onInput","onChange","M3eButtonSegment","M3eButtonSegmentElement","onClick"],"mappings":";;;;;qKAmBO,MAAMA,EAAqBC,EAAgB,CAChDC,QAAS,uBACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,QAAS,QACTC,SAAU,YCNDC,EAAmBT,EAAgB,CAC9CC,QAAS,qBACTC,aAAcQ,EACdN,MAAOC,EACPC,OAAQ,CACNC,QAAS,QACTC,SAAU,SACVG,QAAS"}
|
package/dist/select.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 { M3eSelectElement } from '@m3e/web/select';
|
|
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-select` Web Component from `@m3e/web/select`.
|
|
45
13
|
*
|
package/dist/select.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"select.js","sources":["../../src/select/Select.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSelectElement } from \"@m3e/web/select\";\r\nexport type { M3eSelectElement } from \"@m3e/web/select\";\r\n\r\n/**\r\n * React binding for the `m3e-select` Web Component from `@m3e/web/select`.\r\n *\r\n * This component renders the underlying `<m3e-select>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-select>` instance for imperative access.\r\n *\r\n * See the `m3e-select` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSelect = createComponent({\r\n tagName: \"m3e-select\",\r\n elementClass: M3eSelectElement,\r\n react: React,\r\n events: {\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n },\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;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,QAAQ,EAAE,QAAQ;AACnB,KAAA;AACF,CAAA;;;;"}
|
package/dist/select.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{M3eSelectElement as m}from"@m3e/web/select";const o=t({tagName:"m3e-select",elementClass:m,react:e,events:{onInput:"input",onChange:"change"}});export{o as M3eSelect};
|
|
7
7
|
//# sourceMappingURL=select.min.js.map
|
package/dist/select.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.min.js","sources":["../../src/select/Select.ts"
|
|
1
|
+
{"version":3,"file":"select.min.js","sources":["../../src/select/Select.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSelectElement } from \"@m3e/web/select\";\r\nexport type { M3eSelectElement } from \"@m3e/web/select\";\r\n\r\n/**\r\n * React binding for the `m3e-select` Web Component from `@m3e/web/select`.\r\n *\r\n * This component renders the underlying `<m3e-select>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-select>` instance for imperative access.\r\n *\r\n * See the `m3e-select` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSelect = createComponent({\r\n tagName: \"m3e-select\",\r\n elementClass: M3eSelectElement,\r\n react: React,\r\n events: {\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n },\r\n});\r\n"],"names":["M3eSelect","createComponent","tagName","elementClass","M3eSelectElement","react","React","events","onInput","onChange"],"mappings":";;;;;qHAmBO,MAAMA,EAAYC,EAAgB,CACvCC,QAAS,aACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,QAAS,QACTC,SAAU"}
|
package/dist/shape.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 { M3eShapeElement } from '@m3e/web/shape';
|
|
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-shape` Web Component from `@m3e/web/shape`.
|
|
45
13
|
*
|
package/dist/shape.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"shape.js","sources":["../../src/shape/Shape.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eShapeElement } from \"@m3e/web/shape\";\r\nexport type { M3eShapeElement, ShapeName } from \"@m3e/web/shape\";\r\n\r\n/**\r\n * React binding for the `m3e-shape` Web Component from `@m3e/web/shape`.\r\n *\r\n * This component renders the underlying `<m3e-shape>` 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-shape>` instance for imperative access.\r\n *\r\n * See the `m3e-shape` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eShape = createComponent({\r\n tagName: \"m3e-shape\",\r\n elementClass: M3eShapeElement,\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/shape.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{M3eShapeElement as m}from"@m3e/web/shape";const r=t({tagName:"m3e-shape",elementClass:m,react:e});export{r as M3eShape};
|
|
7
7
|
//# sourceMappingURL=shape.min.js.map
|
package/dist/shape.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape.min.js","sources":["../../src/shape/Shape.ts"
|
|
1
|
+
{"version":3,"file":"shape.min.js","sources":["../../src/shape/Shape.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eShapeElement } from \"@m3e/web/shape\";\r\nexport type { M3eShapeElement, ShapeName } from \"@m3e/web/shape\";\r\n\r\n/**\r\n * React binding for the `m3e-shape` Web Component from `@m3e/web/shape`.\r\n *\r\n * This component renders the underlying `<m3e-shape>` 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-shape>` instance for imperative access.\r\n *\r\n * See the `m3e-shape` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eShape = createComponent({\r\n tagName: \"m3e-shape\",\r\n elementClass: M3eShapeElement,\r\n react: React,\r\n});\r\n"],"names":["M3eShape","createComponent","tagName","elementClass","M3eShapeElement","react","React"],"mappings":";;;;;mHAmBO,MAAMA,EAAWC,EAAgB,CACtCC,QAAS,YACTC,aAAcC,EACdC,MAAOC"}
|
package/dist/slide-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 { M3eSlideGroupElement } from '@m3e/web/slide-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-slide-group` Web Component from `@m3e/web/slide-group`.
|
|
45
13
|
*
|
package/dist/slide-group.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slide-group.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"slide-group.js","sources":["../../src/slide-group/SlideGroup.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSlideGroupElement } from \"@m3e/web/slide-group\";\r\nexport type { M3eSlideGroupElement } from \"@m3e/web/slide-group\";\r\n\r\n/**\r\n * React binding for the `m3e-slide-group` Web Component from `@m3e/web/slide-group`.\r\n *\r\n * This component renders the underlying `<m3e-slide-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-slide-group>` instance for imperative access.\r\n *\r\n * See the `m3e-slide-group` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSlideGroup = createComponent({\r\n tagName: \"m3e-slide-group\",\r\n elementClass: M3eSlideGroupElement,\r\n react: React,\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,aAAa,GAAG,eAAe,CAAC;AAC3C,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,YAAY,EAAE,oBAAoB;AAClC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
package/dist/slide-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 r}from"@lit/react";import{M3eSlideGroupElement as t}from"@m3e/web/slide-group";const m=r({tagName:"m3e-slide-group",elementClass:t,react:e});export{m as M3eSlideGroup};
|
|
7
7
|
//# sourceMappingURL=slide-group.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slide-group.min.js","sources":["../../src/slide-group/SlideGroup.ts"
|
|
1
|
+
{"version":3,"file":"slide-group.min.js","sources":["../../src/slide-group/SlideGroup.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSlideGroupElement } from \"@m3e/web/slide-group\";\r\nexport type { M3eSlideGroupElement } from \"@m3e/web/slide-group\";\r\n\r\n/**\r\n * React binding for the `m3e-slide-group` Web Component from `@m3e/web/slide-group`.\r\n *\r\n * This component renders the underlying `<m3e-slide-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-slide-group>` instance for imperative access.\r\n *\r\n * See the `m3e-slide-group` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSlideGroup = createComponent({\r\n tagName: \"m3e-slide-group\",\r\n elementClass: M3eSlideGroupElement,\r\n react: React,\r\n});\r\n"],"names":["M3eSlideGroup","createComponent","tagName","elementClass","M3eSlideGroupElement","react","React"],"mappings":";;;;;8HAmBO,MAAMA,EAAgBC,EAAgB,CAC3CC,QAAS,kBACTC,aAAcC,EACdC,MAAOC"}
|
package/dist/slider.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 { M3eSliderElement, M3eSliderThumbElement } from '@m3e/web/slider';
|
|
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-slider` Web Component from `@m3e/web/slider`.
|
|
45
13
|
*
|
package/dist/slider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"slider.js","sources":["../../src/slider/Slider.ts","../../src/slider/SliderThumb.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSliderElement } from \"@m3e/web/slider\";\r\nexport type { M3eSliderElement, SliderSize } from \"@m3e/web/slider\";\r\n\r\n/**\r\n * React binding for the `m3e-slider` Web Component from `@m3e/web/slider`.\r\n *\r\n * This component renders the underlying `<m3e-slider>` 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-slider>` instance for imperative access.\r\n *\r\n * See the `m3e-slider` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSlider = createComponent({\r\n tagName: \"m3e-slider\",\r\n elementClass: M3eSliderElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSliderThumbElement } from \"@m3e/web/slider\";\r\nexport type { M3eSliderThumbElement } from \"@m3e/web/slider\";\r\n\r\n/**\r\n * React binding for the `m3e-slider-thumb` Web Component from `@m3e/web/slider`.\r\n *\r\n * This component renders the underlying `<m3e-slider-thumb>` 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-slider-thumb>` instance for imperative access.\r\n *\r\n * See the `m3e-slider-thumb` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSliderThumb = createComponent({\r\n tagName: \"m3e-slider-thumb\",\r\n elementClass: M3eSliderThumbElement,\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"],"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,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,OAAO,EAAE,OAAO;AAChB,QAAA,QAAQ,EAAE,QAAQ;AAClB,QAAA,OAAO,EAAE,OAAO;AACjB,KAAA;AACF,CAAA;;;;"}
|
package/dist/slider.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{M3eSliderElement as m,M3eSliderThumbElement as r}from"@m3e/web/slider";const a=t({tagName:"m3e-slider",elementClass:m,react:e}),n=t({tagName:"m3e-slider-thumb",elementClass:r,react:e,events:{onInput:"input",onChange:"change",onClick:"click"}});export{a as M3eSlider,n as M3eSliderThumb};
|
|
7
7
|
//# sourceMappingURL=slider.min.js.map
|
package/dist/slider.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.min.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"slider.min.js","sources":["../../src/slider/Slider.ts","../../src/slider/SliderThumb.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSliderElement } from \"@m3e/web/slider\";\r\nexport type { M3eSliderElement, SliderSize } from \"@m3e/web/slider\";\r\n\r\n/**\r\n * React binding for the `m3e-slider` Web Component from `@m3e/web/slider`.\r\n *\r\n * This component renders the underlying `<m3e-slider>` 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-slider>` instance for imperative access.\r\n *\r\n * See the `m3e-slider` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSlider = createComponent({\r\n tagName: \"m3e-slider\",\r\n elementClass: M3eSliderElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSliderThumbElement } from \"@m3e/web/slider\";\r\nexport type { M3eSliderThumbElement } from \"@m3e/web/slider\";\r\n\r\n/**\r\n * React binding for the `m3e-slider-thumb` Web Component from `@m3e/web/slider`.\r\n *\r\n * This component renders the underlying `<m3e-slider-thumb>` 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-slider-thumb>` instance for imperative access.\r\n *\r\n * See the `m3e-slider-thumb` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSliderThumb = createComponent({\r\n tagName: \"m3e-slider-thumb\",\r\n elementClass: M3eSliderThumbElement,\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"],"names":["M3eSlider","createComponent","tagName","elementClass","M3eSliderElement","react","React","M3eSliderThumb","M3eSliderThumbElement","events","onInput","onChange","onClick"],"mappings":";;;;;gJAmBO,MAAMA,EAAYC,EAAgB,CACvCC,QAAS,aACTC,aAAcC,EACdC,MAAOC,ICHIC,EAAiBN,EAAgB,CAC5CC,QAAS,mBACTC,aAAcK,EACdH,MAAOC,EACPG,OAAQ,CACNC,QAAS,QACTC,SAAU,SACVC,QAAS"}
|
package/dist/snackbar.js
CHANGED
package/dist/snackbar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snackbar.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"snackbar.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/snackbar.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
|
+
export{M3eSnackbar}from"@m3e/web/snackbar";
|
|
7
7
|
//# sourceMappingURL=snackbar.min.js.map
|
package/dist/split-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 { M3eSplitButtonElement } from '@m3e/web/split-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-split-button` Web Component from `@m3e/web/split-button`.
|
|
45
13
|
*
|
package/dist/split-button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-button.js","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"split-button.js","sources":["../../src/split-button/SplitButton.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSplitButtonElement } from \"@m3e/web/split-button\";\r\nexport type { M3eSplitButtonElement, SplitButtonVariant } from \"@m3e/web/split-button\";\r\n\r\n/**\r\n * React binding for the `m3e-split-button` Web Component from `@m3e/web/split-button`.\r\n *\r\n * This component renders the underlying `<m3e-split-button>` 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-split-button>` instance for imperative access.\r\n *\r\n * See the `m3e-split-button` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSplitButton = createComponent({\r\n tagName: \"m3e-split-button\",\r\n elementClass: M3eSplitButtonElement,\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/split-button.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 e}from"@lit/react";import{M3eSplitButtonElement as m}from"@m3e/web/split-button";const o=e({tagName:"m3e-split-button",elementClass:m,react:t});export{o as M3eSplitButton};
|
|
7
7
|
//# sourceMappingURL=split-button.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-button.min.js","sources":["../../src/split-button/SplitButton.ts"
|
|
1
|
+
{"version":3,"file":"split-button.min.js","sources":["../../src/split-button/SplitButton.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSplitButtonElement } from \"@m3e/web/split-button\";\r\nexport type { M3eSplitButtonElement, SplitButtonVariant } from \"@m3e/web/split-button\";\r\n\r\n/**\r\n * React binding for the `m3e-split-button` Web Component from `@m3e/web/split-button`.\r\n *\r\n * This component renders the underlying `<m3e-split-button>` 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-split-button>` instance for imperative access.\r\n *\r\n * See the `m3e-split-button` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSplitButton = createComponent({\r\n tagName: \"m3e-split-button\",\r\n elementClass: M3eSplitButtonElement,\r\n react: React,\r\n});\r\n"],"names":["M3eSplitButton","createComponent","tagName","elementClass","M3eSplitButtonElement","react","React"],"mappings":";;;;;gIAmBO,MAAMA,EAAiBC,EAAgB,CAC5CC,QAAS,mBACTC,aAAcC,EACdC,MAAOC"}
|
|
@@ -10,7 +10,7 @@ export type { AppBarSize, M3eAppBarElement } from "@m3e/web/app-bar";
|
|
|
10
10
|
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
11
11
|
* underlying `<m3e-app-bar>` instance for imperative access.
|
|
12
12
|
*
|
|
13
|
-
* See the `m3e-app-bar` documentation
|
|
13
|
+
* See the `m3e-app-bar` documentation for full details on behavior,
|
|
14
14
|
* styling, accessibility, and supported events.
|
|
15
15
|
*/
|
|
16
16
|
export declare const M3eAppBar: import("@lit/react").ReactWebComponent<M3eAppBarElement, {}>;
|
|
@@ -10,7 +10,7 @@ export type { M3eAutocompleteElement } from "@m3e/web/autocomplete";
|
|
|
10
10
|
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
11
11
|
* underlying `<m3e-autocomplete>` instance for imperative access.
|
|
12
12
|
*
|
|
13
|
-
* See the `m3e-autocomplete` documentation
|
|
13
|
+
* See the `m3e-autocomplete` documentation for full details on behavior,
|
|
14
14
|
* styling, accessibility, and supported events.
|
|
15
15
|
*/
|
|
16
16
|
export declare const M3eAutocomplete: import("@lit/react").ReactWebComponent<M3eAutocompleteElement, {
|
|
@@ -10,7 +10,7 @@ export type { M3eAvatarElement } from "@m3e/web/avatar";
|
|
|
10
10
|
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
11
11
|
* underlying `<m3e-avatar>` instance for imperative access.
|
|
12
12
|
*
|
|
13
|
-
* See the `m3e-avatar` documentation
|
|
13
|
+
* See the `m3e-avatar` documentation for full details on behavior,
|
|
14
14
|
* styling, accessibility, and supported events.
|
|
15
15
|
*/
|
|
16
16
|
export declare const M3eAvatar: import("@lit/react").ReactWebComponent<M3eAvatarElement, {}>;
|
|
@@ -10,7 +10,7 @@ export type { BadgeSize, BadgePosition, M3eBadgeElement } from "@m3e/web/badge";
|
|
|
10
10
|
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
11
11
|
* underlying `<m3e-badge>` instance for imperative access.
|
|
12
12
|
*
|
|
13
|
-
* See the `m3e-badge` documentation
|
|
13
|
+
* See the `m3e-badge` documentation for full details on behavior,
|
|
14
14
|
* styling, accessibility, and supported events.
|
|
15
15
|
*/
|
|
16
16
|
export declare const M3eBadge: import("@lit/react").ReactWebComponent<M3eBadgeElement, {}>;
|
|
@@ -10,7 +10,7 @@ export type { ButtonShape, ButtonSize, ButtonVariant, M3eButtonElement } from "@
|
|
|
10
10
|
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
11
11
|
* underlying `<m3e-button>` instance for imperative access.
|
|
12
12
|
*
|
|
13
|
-
* See the `m3e-button` documentation
|
|
13
|
+
* See the `m3e-button` documentation for full details on behavior,
|
|
14
14
|
* styling, accessibility, and supported events.
|
|
15
15
|
*/
|
|
16
16
|
export declare const M3eButton: import("@lit/react").ReactWebComponent<M3eButtonElement, {
|