@m3e/react 2.0.2 → 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.
Files changed (202) hide show
  1. package/README.md +4 -0
  2. package/dist/all.js +13 -45
  3. package/dist/all.js.map +1 -1
  4. package/dist/all.min.js +2 -2
  5. package/dist/all.min.js.map +1 -1
  6. package/dist/app-bar.js +2 -34
  7. package/dist/app-bar.js.map +1 -1
  8. package/dist/app-bar.min.js +2 -2
  9. package/dist/app-bar.min.js.map +1 -1
  10. package/dist/autocomplete.js +2 -34
  11. package/dist/autocomplete.js.map +1 -1
  12. package/dist/autocomplete.min.js +2 -2
  13. package/dist/autocomplete.min.js.map +1 -1
  14. package/dist/avatar.js +2 -34
  15. package/dist/avatar.js.map +1 -1
  16. package/dist/avatar.min.js +2 -2
  17. package/dist/avatar.min.js.map +1 -1
  18. package/dist/badge.js +2 -34
  19. package/dist/badge.js.map +1 -1
  20. package/dist/badge.min.js +2 -2
  21. package/dist/badge.min.js.map +1 -1
  22. package/dist/bottom-sheet.js +1 -33
  23. package/dist/bottom-sheet.js.map +1 -1
  24. package/dist/bottom-sheet.min.js +2 -2
  25. package/dist/bottom-sheet.min.js.map +1 -1
  26. package/dist/button-group.js +2 -34
  27. package/dist/button-group.js.map +1 -1
  28. package/dist/button-group.min.js +2 -2
  29. package/dist/button-group.min.js.map +1 -1
  30. package/dist/button.js +2 -34
  31. package/dist/button.js.map +1 -1
  32. package/dist/button.min.js +2 -2
  33. package/dist/button.min.js.map +1 -1
  34. package/dist/card.js +2 -34
  35. package/dist/card.js.map +1 -1
  36. package/dist/card.min.js +2 -2
  37. package/dist/card.min.js.map +1 -1
  38. package/dist/checkbox.js +2 -34
  39. package/dist/checkbox.js.map +1 -1
  40. package/dist/checkbox.min.js +2 -2
  41. package/dist/checkbox.min.js.map +1 -1
  42. package/dist/chips.js +1 -33
  43. package/dist/chips.js.map +1 -1
  44. package/dist/chips.min.js +2 -2
  45. package/dist/chips.min.js.map +1 -1
  46. package/dist/core.js +1 -33
  47. package/dist/core.js.map +1 -1
  48. package/dist/core.min.js +2 -2
  49. package/dist/core.min.js.map +1 -1
  50. package/dist/dialog.js +2 -34
  51. package/dist/dialog.js.map +1 -1
  52. package/dist/dialog.min.js +2 -2
  53. package/dist/dialog.min.js.map +1 -1
  54. package/dist/divider.js +2 -34
  55. package/dist/divider.js.map +1 -1
  56. package/dist/divider.min.js +2 -2
  57. package/dist/divider.min.js.map +1 -1
  58. package/dist/drawer-container.js +2 -34
  59. package/dist/drawer-container.js.map +1 -1
  60. package/dist/drawer-container.min.js +2 -2
  61. package/dist/drawer-container.min.js.map +1 -1
  62. package/dist/expansion-panel.js +1 -33
  63. package/dist/expansion-panel.js.map +1 -1
  64. package/dist/expansion-panel.min.js +2 -2
  65. package/dist/expansion-panel.min.js.map +1 -1
  66. package/dist/fab-menu.js +1 -33
  67. package/dist/fab-menu.js.map +1 -1
  68. package/dist/fab-menu.min.js +2 -2
  69. package/dist/fab-menu.min.js.map +1 -1
  70. package/dist/fab.js +1 -33
  71. package/dist/fab.js.map +1 -1
  72. package/dist/fab.min.js +2 -2
  73. package/dist/fab.min.js.map +1 -1
  74. package/dist/form-field.js +1 -33
  75. package/dist/form-field.js.map +1 -1
  76. package/dist/form-field.min.js +2 -2
  77. package/dist/form-field.min.js.map +1 -1
  78. package/dist/heading.js +1 -33
  79. package/dist/heading.js.map +1 -1
  80. package/dist/heading.min.js +2 -2
  81. package/dist/heading.min.js.map +1 -1
  82. package/dist/icon-button.js +1 -33
  83. package/dist/icon-button.js.map +1 -1
  84. package/dist/icon-button.min.js +2 -2
  85. package/dist/icon-button.min.js.map +1 -1
  86. package/dist/icon.js +1 -33
  87. package/dist/icon.js.map +1 -1
  88. package/dist/icon.min.js +2 -2
  89. package/dist/icon.min.js.map +1 -1
  90. package/dist/index.js +0 -1
  91. package/dist/index.js.map +1 -1
  92. package/dist/list.js +1 -33
  93. package/dist/list.js.map +1 -1
  94. package/dist/list.min.js +2 -2
  95. package/dist/list.min.js.map +1 -1
  96. package/dist/loading-indicator.js +1 -33
  97. package/dist/loading-indicator.js.map +1 -1
  98. package/dist/loading-indicator.min.js +2 -2
  99. package/dist/loading-indicator.min.js.map +1 -1
  100. package/dist/menu.js +1 -33
  101. package/dist/menu.js.map +1 -1
  102. package/dist/menu.min.js +2 -2
  103. package/dist/menu.min.js.map +1 -1
  104. package/dist/nav-bar.js +1 -33
  105. package/dist/nav-bar.js.map +1 -1
  106. package/dist/nav-bar.min.js +2 -2
  107. package/dist/nav-bar.min.js.map +1 -1
  108. package/dist/nav-menu.js +1 -33
  109. package/dist/nav-menu.js.map +1 -1
  110. package/dist/nav-menu.min.js +2 -2
  111. package/dist/nav-menu.min.js.map +1 -1
  112. package/dist/nav-rail.js +1 -33
  113. package/dist/nav-rail.js.map +1 -1
  114. package/dist/nav-rail.min.js +2 -2
  115. package/dist/nav-rail.min.js.map +1 -1
  116. package/dist/option.js +1 -33
  117. package/dist/option.js.map +1 -1
  118. package/dist/option.min.js +2 -2
  119. package/dist/option.min.js.map +1 -1
  120. package/dist/paginator.js +0 -1
  121. package/dist/paginator.js.map +1 -1
  122. package/dist/paginator.min.js +2 -2
  123. package/dist/paginator.min.js.map +1 -1
  124. package/dist/progress-indicator.js +1 -33
  125. package/dist/progress-indicator.js.map +1 -1
  126. package/dist/progress-indicator.min.js +2 -2
  127. package/dist/progress-indicator.min.js.map +1 -1
  128. package/dist/radio-group.js +1 -33
  129. package/dist/radio-group.js.map +1 -1
  130. package/dist/radio-group.min.js +2 -2
  131. package/dist/radio-group.min.js.map +1 -1
  132. package/dist/segmented-button.js +1 -33
  133. package/dist/segmented-button.js.map +1 -1
  134. package/dist/segmented-button.min.js +2 -2
  135. package/dist/segmented-button.min.js.map +1 -1
  136. package/dist/select.js +1 -33
  137. package/dist/select.js.map +1 -1
  138. package/dist/select.min.js +2 -2
  139. package/dist/select.min.js.map +1 -1
  140. package/dist/shape.js +1 -33
  141. package/dist/shape.js.map +1 -1
  142. package/dist/shape.min.js +2 -2
  143. package/dist/shape.min.js.map +1 -1
  144. package/dist/slide-group.js +1 -33
  145. package/dist/slide-group.js.map +1 -1
  146. package/dist/slide-group.min.js +2 -2
  147. package/dist/slide-group.min.js.map +1 -1
  148. package/dist/slider.js +1 -33
  149. package/dist/slider.js.map +1 -1
  150. package/dist/slider.min.js +2 -2
  151. package/dist/slider.min.js.map +1 -1
  152. package/dist/snackbar.js +0 -1
  153. package/dist/snackbar.js.map +1 -1
  154. package/dist/snackbar.min.js +2 -2
  155. package/dist/split-button.js +1 -33
  156. package/dist/split-button.js.map +1 -1
  157. package/dist/split-button.min.js +2 -2
  158. package/dist/split-button.min.js.map +1 -1
  159. package/dist/src/app-bar/AppBar.d.ts +1 -1
  160. package/dist/src/autocomplete/Autocomplete.d.ts +1 -1
  161. package/dist/src/avatar/Avatar.d.ts +1 -1
  162. package/dist/src/badge/Badge.d.ts +1 -1
  163. package/dist/src/button/Button.d.ts +1 -1
  164. package/dist/src/button-group/ButtonGroup.d.ts +1 -1
  165. package/dist/src/card/Card.d.ts +1 -1
  166. package/dist/src/checkbox/Checkbox.d.ts +1 -1
  167. package/dist/src/dialog/Dialog.d.ts +1 -1
  168. package/dist/src/divider/Divider.d.ts +1 -1
  169. package/dist/src/drawer-container/DrawerContainer.d.ts +1 -1
  170. package/dist/stepper.js +1 -33
  171. package/dist/stepper.js.map +1 -1
  172. package/dist/stepper.min.js +2 -2
  173. package/dist/stepper.min.js.map +1 -1
  174. package/dist/switch.js +1 -33
  175. package/dist/switch.js.map +1 -1
  176. package/dist/switch.min.js +2 -2
  177. package/dist/switch.min.js.map +1 -1
  178. package/dist/tabs.js +1 -33
  179. package/dist/tabs.js.map +1 -1
  180. package/dist/tabs.min.js +2 -2
  181. package/dist/tabs.min.js.map +1 -1
  182. package/dist/textarea-autosize.js +1 -33
  183. package/dist/textarea-autosize.js.map +1 -1
  184. package/dist/textarea-autosize.min.js +2 -2
  185. package/dist/textarea-autosize.min.js.map +1 -1
  186. package/dist/theme.js +1 -33
  187. package/dist/theme.js.map +1 -1
  188. package/dist/theme.min.js +2 -2
  189. package/dist/theme.min.js.map +1 -1
  190. package/dist/toc.js +1 -33
  191. package/dist/toc.js.map +1 -1
  192. package/dist/toc.min.js +2 -2
  193. package/dist/toc.min.js.map +1 -1
  194. package/dist/toolbar.js +1 -33
  195. package/dist/toolbar.js.map +1 -1
  196. package/dist/toolbar.min.js +2 -2
  197. package/dist/toolbar.min.js.map +1 -1
  198. package/dist/tooltip.js +1 -33
  199. package/dist/tooltip.js.map +1 -1
  200. package/dist/tooltip.min.js +2 -2
  201. package/dist/tooltip.min.js.map +1 -1
  202. package/package.json +2 -2
package/dist/core.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","sources":["../../src/utils/createComponent.ts","../../src/core/Collapsible.ts","../../src/core/Elevation.ts","../../src/core/FocusRing.ts","../../src/core/PseudoCheckbox.ts","../../src/core/PseudoRadio.ts","../../src/core/Ripple.ts","../../src/core/ScrollContainer.ts","../../src/core/Slide.ts","../../src/core/StateLayer.ts","../../src/core/TextHighlight.ts","../../src/core/TextOverflow.ts"],"sourcesContent":["import { createComponent as createReactComponent, EventName, Options, ReactWebComponent } from \"@lit/react\";\r\n\r\ntype EventNames = Record<string, EventName | string>;\r\n\r\n/**\r\n * Creates an SSR-safe React component for a custom element. Properties are distinguished\r\n * from attributes automatically, and events can be configured so they are added\r\n * to the custom element as event listeners.\r\n *\r\n * @param options An options bag containing the parameters needed to generate a\r\n * wrapped web component.\r\n *\r\n * @param options.react The React module, typically imported from the `react`\r\n * npm package.\r\n * @param options.tagName The custom element tag name registered via\r\n * `customElements.define`.\r\n * @param options.elementClass The custom element class registered via\r\n * `customElements.define`.\r\n * @param options.events An object listing events to which the component can\r\n * listen. The object keys are the event property names passed in via React\r\n * props and the object values are the names of the corresponding events\r\n * generated by the custom element. For example, given `{onactivate:\r\n * 'activate'}` an event function may be passed via the component's `onactivate`\r\n * prop and will be called when the custom element fires its `activate` event.\r\n * @param options.displayName A React component display name, used in debugging\r\n * messages. Default value is inferred from the name of custom element class\r\n * registered via `customElements.define`.\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\r\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>({\r\n react,\r\n tagName,\r\n elementClass,\r\n events,\r\n displayName,\r\n}: Options<I, E>): ReactWebComponent<I, E> {\r\n return typeof window !== \"undefined\"\r\n ? createReactComponent<I, E>({ react, tagName, elementClass, events, displayName })\r\n : <ReactWebComponent<I, E>>(<unknown>null);\r\n}\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eCollapsibleElement } from \"@m3e/web/core\";\r\nexport type { M3eCollapsibleElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-collapsible` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-collapsible>` 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-collapsible>` instance for imperative access.\r\n *\r\n * See the `m3e-collapsible` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eCollapsible = createComponent({\r\n tagName: \"m3e-collapsible\",\r\n elementClass: M3eCollapsibleElement,\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 },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eElevationElement } from \"@m3e/web/core\";\r\nexport type { M3eElevationElement, ElevationLevel } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-elevation` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-elevation>` 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-elevation>` instance for imperative access.\r\n *\r\n * See the `m3e-elevation` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eElevation = createComponent({\r\n tagName: \"m3e-elevation\",\r\n elementClass: M3eElevationElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eFocusRingElement } from \"@m3e/web/core\";\r\nexport type { M3eFocusRingElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-focus-ring` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-focus-ring>` 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-focus-ring>` instance for imperative access.\r\n *\r\n * See the `m3e-focus-ring` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eFocusRing = createComponent({\r\n tagName: \"m3e-focus-ring\",\r\n elementClass: M3eFocusRingElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3ePseudoCheckboxElement } from \"@m3e/web/core\";\r\nexport type { M3ePseudoCheckboxElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-pseudo-checkbox` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-pseudo-checkbox>` 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-pseudo-checkbox>` instance for imperative access.\r\n *\r\n * See the `m3e-pseudo-checkbox` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePseudoCheckbox = createComponent({\r\n tagName: \"m3e-pseudo-checkbox\",\r\n elementClass: M3ePseudoCheckboxElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3ePseudoRadioElement } from \"@m3e/web/core\";\r\nexport type { M3ePseudoRadioElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-pseudo-radio` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-pseudo-radio>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-pseudo-radio>` instance for imperative access.\r\n *\r\n * See the `m3e-pseudo-radio` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePseudoRadio = createComponent({\r\n tagName: \"m3e-pseudo-radio\",\r\n elementClass: M3ePseudoRadioElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eRippleElement } from \"@m3e/web/core\";\r\nexport type { M3eRippleElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-ripple` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-ripple>` 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-ripple>` instance for imperative access.\r\n *\r\n * See the `m3e-ripple` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eRipple = createComponent({\r\n tagName: \"m3e-ripple\",\r\n elementClass: M3eRippleElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eScrollContainerElement } from \"@m3e/web/core\";\r\nexport type { M3eScrollContainerElement, ScrollDividers } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-scroll-container` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-scroll-container>` 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-scroll-container>` instance for imperative access.\r\n *\r\n * See the `m3e-scroll-container` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eScrollContainer = createComponent({\r\n tagName: \"m3e-scroll-container\",\r\n elementClass: M3eScrollContainerElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eSlideElement } from \"@m3e/web/core\";\r\nexport type { M3eSlideElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-slide` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-slide>` 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>` instance for imperative access.\r\n *\r\n * See the `m3e-slide` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSlide = createComponent({\r\n tagName: \"m3e-slide\",\r\n elementClass: M3eSlideElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eStateLayerElement } from \"@m3e/web/core\";\r\nexport type { M3eStateLayerElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-state-layer` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-state-layer>` 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-state-layer>` instance for imperative access.\r\n *\r\n * See the `m3e-state-layer` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eStateLayer = createComponent({\r\n tagName: \"m3e-state-layer\",\r\n elementClass: M3eStateLayerElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eTextHighlightElement } from \"@m3e/web/core\";\r\nexport type { M3eTextHighlightElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-text-highlight` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-text-highlight>` 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-text-highlight>` instance for imperative access.\r\n *\r\n * See the `m3e-text-highlight` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTextHighlight = createComponent({\r\n tagName: \"m3e-text-highlight\",\r\n elementClass: M3eTextHighlightElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eTextOverflowElement } from \"@m3e/web/core\";\r\nexport type { M3eTextOverflowElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-text-overflow` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-text-overflow>` 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-text-overflow>` instance for imperative access.\r\n *\r\n * See the `m3e-text-overflow` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTextOverflow = createComponent({\r\n tagName: \"m3e-text-overflow\",\r\n elementClass: M3eTextOverflowElement,\r\n react: React,\r\n});\r\n"],"names":["createReactComponent"],"mappings":";;;;;;;;;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;AAuBG;AACH;AACM,SAAU,eAAe,CAAmD,EAChF,KAAK,EACL,OAAO,EACP,YAAY,EACZ,MAAM,EACN,WAAW,GACG,EAAA;IACd,OAAO,OAAO,MAAM,KAAK;AACvB,UAAEA,iBAAoB,CAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE;UAC7C,IAAK;AAC9C;;ACjCA;;;;;;;;;;;;AAYG;AACI,MAAM,cAAc,GAAG,eAAe,CAAC;AAC5C,IAAA,OAAO,EAAE,iBAAiB;AAC1B,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;AACnB,KAAA;AACF,CAAA;;ACvBD;;;;;;;;;;;;AAYG;AACI,MAAM,YAAY,GAAG,eAAe,CAAC;AAC1C,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,YAAY,GAAG,eAAe,CAAC;AAC1C,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAC/C,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,YAAY,EAAE,wBAAwB;AACtC,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;AACb,CAAA;;ACjBD;;;;;;;;;;;;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,kBAAkB,GAAG,eAAe,CAAC;AAChD,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,YAAY,EAAE,yBAAyB;AACvC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,QAAQ,GAAG,eAAe,CAAC;AACtC,IAAA,OAAO,EAAE,WAAW;AACpB,IAAA,YAAY,EAAE,eAAe;AAC7B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,aAAa,GAAG,eAAe,CAAC;AAC3C,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,YAAY,EAAE,oBAAoB;AAClC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC9C,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,YAAY,EAAE,uBAAuB;AACrC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,eAAe,GAAG,eAAe,CAAC;AAC7C,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,YAAY,EAAE,sBAAsB;AACpC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
1
+ {"version":3,"file":"core.js","sources":["../../src/core/Collapsible.ts","../../src/core/Elevation.ts","../../src/core/FocusRing.ts","../../src/core/PseudoCheckbox.ts","../../src/core/PseudoRadio.ts","../../src/core/Ripple.ts","../../src/core/ScrollContainer.ts","../../src/core/Slide.ts","../../src/core/StateLayer.ts","../../src/core/TextHighlight.ts","../../src/core/TextOverflow.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eCollapsibleElement } from \"@m3e/web/core\";\r\nexport type { M3eCollapsibleElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-collapsible` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-collapsible>` 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-collapsible>` instance for imperative access.\r\n *\r\n * See the `m3e-collapsible` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eCollapsible = createComponent({\r\n tagName: \"m3e-collapsible\",\r\n elementClass: M3eCollapsibleElement,\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 },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eElevationElement } from \"@m3e/web/core\";\r\nexport type { M3eElevationElement, ElevationLevel } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-elevation` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-elevation>` 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-elevation>` instance for imperative access.\r\n *\r\n * See the `m3e-elevation` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eElevation = createComponent({\r\n tagName: \"m3e-elevation\",\r\n elementClass: M3eElevationElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eFocusRingElement } from \"@m3e/web/core\";\r\nexport type { M3eFocusRingElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-focus-ring` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-focus-ring>` 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-focus-ring>` instance for imperative access.\r\n *\r\n * See the `m3e-focus-ring` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eFocusRing = createComponent({\r\n tagName: \"m3e-focus-ring\",\r\n elementClass: M3eFocusRingElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3ePseudoCheckboxElement } from \"@m3e/web/core\";\r\nexport type { M3ePseudoCheckboxElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-pseudo-checkbox` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-pseudo-checkbox>` 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-pseudo-checkbox>` instance for imperative access.\r\n *\r\n * See the `m3e-pseudo-checkbox` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePseudoCheckbox = createComponent({\r\n tagName: \"m3e-pseudo-checkbox\",\r\n elementClass: M3ePseudoCheckboxElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3ePseudoRadioElement } from \"@m3e/web/core\";\r\nexport type { M3ePseudoRadioElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-pseudo-radio` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-pseudo-radio>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-pseudo-radio>` instance for imperative access.\r\n *\r\n * See the `m3e-pseudo-radio` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePseudoRadio = createComponent({\r\n tagName: \"m3e-pseudo-radio\",\r\n elementClass: M3ePseudoRadioElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eRippleElement } from \"@m3e/web/core\";\r\nexport type { M3eRippleElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-ripple` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-ripple>` 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-ripple>` instance for imperative access.\r\n *\r\n * See the `m3e-ripple` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eRipple = createComponent({\r\n tagName: \"m3e-ripple\",\r\n elementClass: M3eRippleElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eScrollContainerElement } from \"@m3e/web/core\";\r\nexport type { M3eScrollContainerElement, ScrollDividers } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-scroll-container` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-scroll-container>` 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-scroll-container>` instance for imperative access.\r\n *\r\n * See the `m3e-scroll-container` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eScrollContainer = createComponent({\r\n tagName: \"m3e-scroll-container\",\r\n elementClass: M3eScrollContainerElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSlideElement } from \"@m3e/web/core\";\r\nexport type { M3eSlideElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-slide` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-slide>` 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>` instance for imperative access.\r\n *\r\n * See the `m3e-slide` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSlide = createComponent({\r\n tagName: \"m3e-slide\",\r\n elementClass: M3eSlideElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eStateLayerElement } from \"@m3e/web/core\";\r\nexport type { M3eStateLayerElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-state-layer` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-state-layer>` 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-state-layer>` instance for imperative access.\r\n *\r\n * See the `m3e-state-layer` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eStateLayer = createComponent({\r\n tagName: \"m3e-state-layer\",\r\n elementClass: M3eStateLayerElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eTextHighlightElement } from \"@m3e/web/core\";\r\nexport type { M3eTextHighlightElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-text-highlight` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-text-highlight>` 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-text-highlight>` instance for imperative access.\r\n *\r\n * See the `m3e-text-highlight` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTextHighlight = createComponent({\r\n tagName: \"m3e-text-highlight\",\r\n elementClass: M3eTextHighlightElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eTextOverflowElement } from \"@m3e/web/core\";\r\nexport type { M3eTextOverflowElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-text-overflow` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-text-overflow>` 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-text-overflow>` instance for imperative access.\r\n *\r\n * See the `m3e-text-overflow` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTextOverflow = createComponent({\r\n tagName: \"m3e-text-overflow\",\r\n elementClass: M3eTextOverflowElement,\r\n react: React,\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,cAAc,GAAG,eAAe,CAAC;AAC5C,IAAA,OAAO,EAAE,iBAAiB;AAC1B,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;AACnB,KAAA;AACF,CAAA;;ACvBD;;;;;;;;;;;;AAYG;AACI,MAAM,YAAY,GAAG,eAAe,CAAC;AAC1C,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,YAAY,GAAG,eAAe,CAAC;AAC1C,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAC/C,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,YAAY,EAAE,wBAAwB;AACtC,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;AACb,CAAA;;ACjBD;;;;;;;;;;;;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,kBAAkB,GAAG,eAAe,CAAC;AAChD,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,YAAY,EAAE,yBAAyB;AACvC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,QAAQ,GAAG,eAAe,CAAC;AACtC,IAAA,OAAO,EAAE,WAAW;AACpB,IAAA,YAAY,EAAE,eAAe;AAC7B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,aAAa,GAAG,eAAe,CAAC;AAC3C,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,YAAY,EAAE,oBAAoB;AAClC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC9C,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,YAAY,EAAE,uBAAuB;AACrC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,eAAe,GAAG,eAAe,CAAC;AAC7C,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,YAAY,EAAE,sBAAsB;AACpC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
package/dist/core.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
- */import e from"react";import{createComponent as a}from"@lit/react";import{M3eCollapsibleElement as t,M3eElevationElement as l,M3eFocusRingElement as m,M3ePseudoCheckboxElement as s,M3ePseudoRadioElement as n,M3eRippleElement as o,M3eScrollContainerElement as r,M3eSlideElement as c,M3eStateLayerElement as i,M3eTextHighlightElement as g,M3eTextOverflowElement as p}from"@m3e/web/core";function C({react:e,tagName:t,elementClass:l,events:m,displayName:s}){return"undefined"!=typeof window?a({react:e,tagName:t,elementClass:l,events:m,displayName:s}):null}const N=C({tagName:"m3e-collapsible",elementClass:t,react:e,events:{onOpening:"opening",onOpened:"opened",onClosing:"closing",onClosed:"closed"}}),d=C({tagName:"m3e-elevation",elementClass:l,react:e}),f=C({tagName:"m3e-focus-ring",elementClass:m,react:e}),u=C({tagName:"m3e-pseudo-checkbox",elementClass:s,react:e}),v=C({tagName:"m3e-pseudo-radio",elementClass:n,react:e}),h=C({tagName:"m3e-ripple",elementClass:o,react:e}),w=C({tagName:"m3e-scroll-container",elementClass:r,react:e}),x=C({tagName:"m3e-slide",elementClass:c,react:e}),y=C({tagName:"m3e-state-layer",elementClass:i,react:e}),b=C({tagName:"m3e-text-highlight",elementClass:g,react:e}),O=C({tagName:"m3e-text-overflow",elementClass:p,react:e});export{N as M3eCollapsible,d as M3eElevation,f as M3eFocusRing,u as M3ePseudoCheckbox,v as M3ePseudoRadio,h as M3eRipple,w as M3eScrollContainer,x as M3eSlide,y as M3eStateLayer,b as M3eTextHighlight,O as M3eTextOverflow};
5
+ */
6
+ import e from"react";import{createComponent as a}from"@lit/react";import{M3eCollapsibleElement as t,M3eElevationElement as m,M3eFocusRingElement as l,M3ePseudoCheckboxElement as s,M3ePseudoRadioElement as o,M3eRippleElement as n,M3eScrollContainerElement as r,M3eSlideElement as c,M3eStateLayerElement as g,M3eTextHighlightElement as i,M3eTextOverflowElement as p}from"@m3e/web/core";const C=a({tagName:"m3e-collapsible",elementClass:t,react:e,events:{onOpening:"opening",onOpened:"opened",onClosing:"closing",onClosed:"closed"}}),N=a({tagName:"m3e-elevation",elementClass:m,react:e}),d=a({tagName:"m3e-focus-ring",elementClass:l,react:e}),f=a({tagName:"m3e-pseudo-checkbox",elementClass:s,react:e}),h=a({tagName:"m3e-pseudo-radio",elementClass:o,react:e}),x=a({tagName:"m3e-ripple",elementClass:n,react:e}),b=a({tagName:"m3e-scroll-container",elementClass:r,react:e}),u=a({tagName:"m3e-slide",elementClass:c,react:e}),v=a({tagName:"m3e-state-layer",elementClass:g,react:e}),w=a({tagName:"m3e-text-highlight",elementClass:i,react:e}),O=a({tagName:"m3e-text-overflow",elementClass:p,react:e});export{C as M3eCollapsible,N as M3eElevation,d as M3eFocusRing,f as M3ePseudoCheckbox,h as M3ePseudoRadio,x as M3eRipple,b as M3eScrollContainer,u as M3eSlide,v as M3eStateLayer,w as M3eTextHighlight,O as M3eTextOverflow};
7
7
  //# sourceMappingURL=core.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"core.min.js","sources":["../../src/utils/createComponent.ts","../../src/core/Collapsible.ts","../../src/core/Elevation.ts","../../src/core/FocusRing.ts","../../src/core/PseudoCheckbox.ts","../../src/core/PseudoRadio.ts","../../src/core/Ripple.ts","../../src/core/ScrollContainer.ts","../../src/core/Slide.ts","../../src/core/StateLayer.ts","../../src/core/TextHighlight.ts","../../src/core/TextOverflow.ts"],"sourcesContent":["import { createComponent as createReactComponent, EventName, Options, ReactWebComponent } from \"@lit/react\";\r\n\r\ntype EventNames = Record<string, EventName | string>;\r\n\r\n/**\r\n * Creates an SSR-safe React component for a custom element. Properties are distinguished\r\n * from attributes automatically, and events can be configured so they are added\r\n * to the custom element as event listeners.\r\n *\r\n * @param options An options bag containing the parameters needed to generate a\r\n * wrapped web component.\r\n *\r\n * @param options.react The React module, typically imported from the `react`\r\n * npm package.\r\n * @param options.tagName The custom element tag name registered via\r\n * `customElements.define`.\r\n * @param options.elementClass The custom element class registered via\r\n * `customElements.define`.\r\n * @param options.events An object listing events to which the component can\r\n * listen. The object keys are the event property names passed in via React\r\n * props and the object values are the names of the corresponding events\r\n * generated by the custom element. For example, given `{onactivate:\r\n * 'activate'}` an event function may be passed via the component's `onactivate`\r\n * prop and will be called when the custom element fires its `activate` event.\r\n * @param options.displayName A React component display name, used in debugging\r\n * messages. Default value is inferred from the name of custom element class\r\n * registered via `customElements.define`.\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\r\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>({\r\n react,\r\n tagName,\r\n elementClass,\r\n events,\r\n displayName,\r\n}: Options<I, E>): ReactWebComponent<I, E> {\r\n return typeof window !== \"undefined\"\r\n ? createReactComponent<I, E>({ react, tagName, elementClass, events, displayName })\r\n : <ReactWebComponent<I, E>>(<unknown>null);\r\n}\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eCollapsibleElement } from \"@m3e/web/core\";\r\nexport type { M3eCollapsibleElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-collapsible` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-collapsible>` 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-collapsible>` instance for imperative access.\r\n *\r\n * See the `m3e-collapsible` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eCollapsible = createComponent({\r\n tagName: \"m3e-collapsible\",\r\n elementClass: M3eCollapsibleElement,\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 },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eElevationElement } from \"@m3e/web/core\";\r\nexport type { M3eElevationElement, ElevationLevel } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-elevation` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-elevation>` 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-elevation>` instance for imperative access.\r\n *\r\n * See the `m3e-elevation` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eElevation = createComponent({\r\n tagName: \"m3e-elevation\",\r\n elementClass: M3eElevationElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eFocusRingElement } from \"@m3e/web/core\";\r\nexport type { M3eFocusRingElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-focus-ring` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-focus-ring>` 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-focus-ring>` instance for imperative access.\r\n *\r\n * See the `m3e-focus-ring` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eFocusRing = createComponent({\r\n tagName: \"m3e-focus-ring\",\r\n elementClass: M3eFocusRingElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3ePseudoCheckboxElement } from \"@m3e/web/core\";\r\nexport type { M3ePseudoCheckboxElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-pseudo-checkbox` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-pseudo-checkbox>` 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-pseudo-checkbox>` instance for imperative access.\r\n *\r\n * See the `m3e-pseudo-checkbox` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePseudoCheckbox = createComponent({\r\n tagName: \"m3e-pseudo-checkbox\",\r\n elementClass: M3ePseudoCheckboxElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3ePseudoRadioElement } from \"@m3e/web/core\";\r\nexport type { M3ePseudoRadioElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-pseudo-radio` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-pseudo-radio>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-pseudo-radio>` instance for imperative access.\r\n *\r\n * See the `m3e-pseudo-radio` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePseudoRadio = createComponent({\r\n tagName: \"m3e-pseudo-radio\",\r\n elementClass: M3ePseudoRadioElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eRippleElement } from \"@m3e/web/core\";\r\nexport type { M3eRippleElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-ripple` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-ripple>` 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-ripple>` instance for imperative access.\r\n *\r\n * See the `m3e-ripple` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eRipple = createComponent({\r\n tagName: \"m3e-ripple\",\r\n elementClass: M3eRippleElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eScrollContainerElement } from \"@m3e/web/core\";\r\nexport type { M3eScrollContainerElement, ScrollDividers } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-scroll-container` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-scroll-container>` 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-scroll-container>` instance for imperative access.\r\n *\r\n * See the `m3e-scroll-container` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eScrollContainer = createComponent({\r\n tagName: \"m3e-scroll-container\",\r\n elementClass: M3eScrollContainerElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eSlideElement } from \"@m3e/web/core\";\r\nexport type { M3eSlideElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-slide` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-slide>` 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>` instance for imperative access.\r\n *\r\n * See the `m3e-slide` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSlide = createComponent({\r\n tagName: \"m3e-slide\",\r\n elementClass: M3eSlideElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eStateLayerElement } from \"@m3e/web/core\";\r\nexport type { M3eStateLayerElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-state-layer` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-state-layer>` 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-state-layer>` instance for imperative access.\r\n *\r\n * See the `m3e-state-layer` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eStateLayer = createComponent({\r\n tagName: \"m3e-state-layer\",\r\n elementClass: M3eStateLayerElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eTextHighlightElement } from \"@m3e/web/core\";\r\nexport type { M3eTextHighlightElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-text-highlight` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-text-highlight>` 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-text-highlight>` instance for imperative access.\r\n *\r\n * See the `m3e-text-highlight` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTextHighlight = createComponent({\r\n tagName: \"m3e-text-highlight\",\r\n elementClass: M3eTextHighlightElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eTextOverflowElement } from \"@m3e/web/core\";\r\nexport type { M3eTextOverflowElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-text-overflow` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-text-overflow>` 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-text-overflow>` instance for imperative access.\r\n *\r\n * See the `m3e-text-overflow` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTextOverflow = createComponent({\r\n tagName: \"m3e-text-overflow\",\r\n elementClass: M3eTextOverflowElement,\r\n react: React,\r\n});\r\n"],"names":["createComponent","react","tagName","elementClass","events","displayName","window","createReactComponent","M3eCollapsible","M3eCollapsibleElement","React","onOpening","onOpened","onClosing","onClosed","M3eElevation","M3eElevationElement","M3eFocusRing","M3eFocusRingElement","M3ePseudoCheckbox","M3ePseudoCheckboxElement","M3ePseudoRadio","M3ePseudoRadioElement","M3eRipple","M3eRippleElement","M3eScrollContainer","M3eScrollContainerElement","M3eSlide","M3eSlideElement","M3eStateLayer","M3eStateLayerElement","M3eTextHighlight","M3eTextHighlightElement","M3eTextOverflow","M3eTextOverflowElement"],"mappings":";;;;;mYA6BM,SAAUA,GAAkEC,MAChFA,EAAKC,QACLA,EAAOC,aACPA,EAAYC,OACZA,EAAMC,YACNA,IAEA,MAAyB,oBAAXC,OACVC,EAA2B,CAAEN,QAAOC,UAASC,eAAcC,SAAQC,gBAChC,IACzC,CCpBO,MAAMG,EAAiBR,EAAgB,CAC5CE,QAAS,kBACTC,aAAcM,EACdR,MAAOS,EACPN,OAAQ,CACNO,UAAW,UACXC,SAAU,SACVC,UAAW,UACXC,SAAU,YCRDC,EAAef,EAAgB,CAC1CE,QAAS,gBACTC,aAAca,EACdf,MAAOS,ICHIO,EAAejB,EAAgB,CAC1CE,QAAS,iBACTC,aAAce,EACdjB,MAAOS,ICHIS,EAAoBnB,EAAgB,CAC/CE,QAAS,sBACTC,aAAciB,EACdnB,MAAOS,ICHIW,EAAiBrB,EAAgB,CAC5CE,QAAS,mBACTC,aAAcmB,EACdrB,MAAOS,ICHIa,EAAYvB,EAAgB,CACvCE,QAAS,aACTC,aAAcqB,EACdvB,MAAOS,ICHIe,EAAqBzB,EAAgB,CAChDE,QAAS,uBACTC,aAAcuB,EACdzB,MAAOS,ICHIiB,EAAW3B,EAAgB,CACtCE,QAAS,YACTC,aAAcyB,EACd3B,MAAOS,ICHImB,EAAgB7B,EAAgB,CAC3CE,QAAS,kBACTC,aAAc2B,EACd7B,MAAOS,ICHIqB,EAAmB/B,EAAgB,CAC9CE,QAAS,qBACTC,aAAc6B,EACd/B,MAAOS,ICHIuB,EAAkBjC,EAAgB,CAC7CE,QAAS,oBACTC,aAAc+B,EACdjC,MAAOS"}
1
+ {"version":3,"file":"core.min.js","sources":["../../src/core/Collapsible.ts","../../src/core/Elevation.ts","../../src/core/FocusRing.ts","../../src/core/PseudoCheckbox.ts","../../src/core/PseudoRadio.ts","../../src/core/Ripple.ts","../../src/core/ScrollContainer.ts","../../src/core/Slide.ts","../../src/core/StateLayer.ts","../../src/core/TextHighlight.ts","../../src/core/TextOverflow.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eCollapsibleElement } from \"@m3e/web/core\";\r\nexport type { M3eCollapsibleElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-collapsible` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-collapsible>` 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-collapsible>` instance for imperative access.\r\n *\r\n * See the `m3e-collapsible` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eCollapsible = createComponent({\r\n tagName: \"m3e-collapsible\",\r\n elementClass: M3eCollapsibleElement,\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 },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eElevationElement } from \"@m3e/web/core\";\r\nexport type { M3eElevationElement, ElevationLevel } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-elevation` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-elevation>` 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-elevation>` instance for imperative access.\r\n *\r\n * See the `m3e-elevation` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eElevation = createComponent({\r\n tagName: \"m3e-elevation\",\r\n elementClass: M3eElevationElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eFocusRingElement } from \"@m3e/web/core\";\r\nexport type { M3eFocusRingElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-focus-ring` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-focus-ring>` 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-focus-ring>` instance for imperative access.\r\n *\r\n * See the `m3e-focus-ring` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eFocusRing = createComponent({\r\n tagName: \"m3e-focus-ring\",\r\n elementClass: M3eFocusRingElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3ePseudoCheckboxElement } from \"@m3e/web/core\";\r\nexport type { M3ePseudoCheckboxElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-pseudo-checkbox` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-pseudo-checkbox>` 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-pseudo-checkbox>` instance for imperative access.\r\n *\r\n * See the `m3e-pseudo-checkbox` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePseudoCheckbox = createComponent({\r\n tagName: \"m3e-pseudo-checkbox\",\r\n elementClass: M3ePseudoCheckboxElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3ePseudoRadioElement } from \"@m3e/web/core\";\r\nexport type { M3ePseudoRadioElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-pseudo-radio` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-pseudo-radio>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-pseudo-radio>` instance for imperative access.\r\n *\r\n * See the `m3e-pseudo-radio` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePseudoRadio = createComponent({\r\n tagName: \"m3e-pseudo-radio\",\r\n elementClass: M3ePseudoRadioElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eRippleElement } from \"@m3e/web/core\";\r\nexport type { M3eRippleElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-ripple` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-ripple>` 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-ripple>` instance for imperative access.\r\n *\r\n * See the `m3e-ripple` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eRipple = createComponent({\r\n tagName: \"m3e-ripple\",\r\n elementClass: M3eRippleElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eScrollContainerElement } from \"@m3e/web/core\";\r\nexport type { M3eScrollContainerElement, ScrollDividers } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-scroll-container` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-scroll-container>` 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-scroll-container>` instance for imperative access.\r\n *\r\n * See the `m3e-scroll-container` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eScrollContainer = createComponent({\r\n tagName: \"m3e-scroll-container\",\r\n elementClass: M3eScrollContainerElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eSlideElement } from \"@m3e/web/core\";\r\nexport type { M3eSlideElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-slide` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-slide>` 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>` instance for imperative access.\r\n *\r\n * See the `m3e-slide` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSlide = createComponent({\r\n tagName: \"m3e-slide\",\r\n elementClass: M3eSlideElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eStateLayerElement } from \"@m3e/web/core\";\r\nexport type { M3eStateLayerElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-state-layer` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-state-layer>` 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-state-layer>` instance for imperative access.\r\n *\r\n * See the `m3e-state-layer` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eStateLayer = createComponent({\r\n tagName: \"m3e-state-layer\",\r\n elementClass: M3eStateLayerElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eTextHighlightElement } from \"@m3e/web/core\";\r\nexport type { M3eTextHighlightElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-text-highlight` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-text-highlight>` 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-text-highlight>` instance for imperative access.\r\n *\r\n * See the `m3e-text-highlight` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTextHighlight = createComponent({\r\n tagName: \"m3e-text-highlight\",\r\n elementClass: M3eTextHighlightElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eTextOverflowElement } from \"@m3e/web/core\";\r\nexport type { M3eTextOverflowElement } from \"@m3e/web/core\";\r\n\r\n/**\r\n * React binding for the `m3e-text-overflow` Web Component from `@m3e/web/web/core`.\r\n *\r\n * This component renders the underlying `<m3e-text-overflow>` 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-text-overflow>` instance for imperative access.\r\n *\r\n * See the `m3e-text-overflow` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTextOverflow = createComponent({\r\n tagName: \"m3e-text-overflow\",\r\n elementClass: M3eTextOverflowElement,\r\n react: React,\r\n});\r\n"],"names":["M3eCollapsible","createComponent","tagName","elementClass","M3eCollapsibleElement","react","React","events","onOpening","onOpened","onClosing","onClosed","M3eElevation","M3eElevationElement","M3eFocusRing","M3eFocusRingElement","M3ePseudoCheckbox","M3ePseudoCheckboxElement","M3ePseudoRadio","M3ePseudoRadioElement","M3eRipple","M3eRippleElement","M3eScrollContainer","M3eScrollContainerElement","M3eSlide","M3eSlideElement","M3eStateLayer","M3eStateLayerElement","M3eTextHighlight","M3eTextHighlightElement","M3eTextOverflow","M3eTextOverflowElement"],"mappings":";;;;;gYAmBO,MAAMA,EAAiBC,EAAgB,CAC5CC,QAAS,kBACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,UAAW,UACXC,SAAU,SACVC,UAAW,UACXC,SAAU,YCRDC,EAAeX,EAAgB,CAC1CC,QAAS,gBACTC,aAAcU,EACdR,MAAOC,ICHIQ,EAAeb,EAAgB,CAC1CC,QAAS,iBACTC,aAAcY,EACdV,MAAOC,ICHIU,EAAoBf,EAAgB,CAC/CC,QAAS,sBACTC,aAAcc,EACdZ,MAAOC,ICHIY,EAAiBjB,EAAgB,CAC5CC,QAAS,mBACTC,aAAcgB,EACdd,MAAOC,ICHIc,EAAYnB,EAAgB,CACvCC,QAAS,aACTC,aAAckB,EACdhB,MAAOC,ICHIgB,EAAqBrB,EAAgB,CAChDC,QAAS,uBACTC,aAAcoB,EACdlB,MAAOC,ICHIkB,EAAWvB,EAAgB,CACtCC,QAAS,YACTC,aAAcsB,EACdpB,MAAOC,ICHIoB,EAAgBzB,EAAgB,CAC3CC,QAAS,kBACTC,aAAcwB,EACdtB,MAAOC,ICHIsB,EAAmB3B,EAAgB,CAC9CC,QAAS,qBACTC,aAAc0B,EACdxB,MAAOC,ICHIwB,EAAkB7B,EAAgB,CAC7CC,QAAS,oBACTC,aAAc4B,EACd1B,MAAOC"}
package/dist/dialog.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 as createComponent$1 } from '@lit/react';
8
+ import { createComponent } from '@lit/react';
10
9
  import { M3eDialogElement, M3eDialogActionElement, M3eDialogTriggerElement } from '@m3e/web/dialog';
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-dialog` Web Component from `@m3e/web/dialog`.
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-dialog>` instance for imperative access.
52
20
  *
53
- * See the `m3e-dialog` documentation in `@m3e/dialog` for full details on behavior,
21
+ * See the `m3e-dialog` documentation for full details on behavior,
54
22
  * styling, accessibility, and supported events.
55
23
  */
56
24
  const M3eDialog = createComponent({
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.js","sources":["../../src/utils/createComponent.ts","../../src/dialog/Dialog.ts","../../src/dialog/DialogAction.ts","../../src/dialog/DialogTrigger.ts"],"sourcesContent":["import { createComponent as createReactComponent, EventName, Options, ReactWebComponent } from \"@lit/react\";\r\n\r\ntype EventNames = Record<string, EventName | string>;\r\n\r\n/**\r\n * Creates an SSR-safe React component for a custom element. Properties are distinguished\r\n * from attributes automatically, and events can be configured so they are added\r\n * to the custom element as event listeners.\r\n *\r\n * @param options An options bag containing the parameters needed to generate a\r\n * wrapped web component.\r\n *\r\n * @param options.react The React module, typically imported from the `react`\r\n * npm package.\r\n * @param options.tagName The custom element tag name registered via\r\n * `customElements.define`.\r\n * @param options.elementClass The custom element class registered via\r\n * `customElements.define`.\r\n * @param options.events An object listing events to which the component can\r\n * listen. The object keys are the event property names passed in via React\r\n * props and the object values are the names of the corresponding events\r\n * generated by the custom element. For example, given `{onactivate:\r\n * 'activate'}` an event function may be passed via the component's `onactivate`\r\n * prop and will be called when the custom element fires its `activate` event.\r\n * @param options.displayName A React component display name, used in debugging\r\n * messages. Default value is inferred from the name of custom element class\r\n * registered via `customElements.define`.\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\r\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>({\r\n react,\r\n tagName,\r\n elementClass,\r\n events,\r\n displayName,\r\n}: Options<I, E>): ReactWebComponent<I, E> {\r\n return typeof window !== \"undefined\"\r\n ? createReactComponent<I, E>({ react, tagName, elementClass, events, displayName })\r\n : <ReactWebComponent<I, E>>(<unknown>null);\r\n}\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eDialogElement } from \"@m3e/web/dialog\";\r\nexport type { M3eDialogElement } from \"@m3e/web/dialog\";\r\n\r\n/**\r\n * React binding for the `m3e-dialog` Web Component from `@m3e/web/dialog`.\r\n *\r\n * This component renders the underlying `<m3e-dialog>` 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-dialog>` instance for imperative access.\r\n *\r\n * See the `m3e-dialog` documentation in `@m3e/dialog` for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDialog = createComponent({\r\n tagName: \"m3e-dialog\",\r\n elementClass: M3eDialogElement,\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 \"../utils\";\r\n\r\nimport { M3eDialogActionElement } from \"@m3e/web/dialog\";\r\nexport type { M3eDialogActionElement } from \"@m3e/web/dialog\";\r\n\r\n/**\r\n * React binding for the `m3e-dialog-action` Web Component from `@m3e/web/dialog`.\r\n *\r\n * This component renders the underlying `<m3e-dialog-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-dialog-action>` instance for imperative access.\r\n *\r\n * See the `m3e-dialog-action` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eDialogAction = createComponent({\r\n tagName: \"m3e-dialog-action\",\r\n elementClass: M3eDialogActionElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eDialogTriggerElement } from \"@m3e/web/dialog\";\r\nexport type { M3eDialogTriggerElement } from \"@m3e/web/dialog\";\r\n\r\n/**\r\n * React binding for the `m3e-dialog-trigger` Web Component from `@m3e/web/dialog`.\r\n *\r\n * This component renders the underlying `<m3e-dialog-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-dialog-trigger>` instance for imperative access.\r\n *\r\n * See the `m3e-dialog-trigger` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eDialogTrigger = createComponent({\r\n tagName: \"m3e-dialog-trigger\",\r\n elementClass: M3eDialogTriggerElement,\r\n react: React,\r\n});\r\n"],"names":["createReactComponent"],"mappings":";;;;;;;;;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;AAuBG;AACH;AACM,SAAU,eAAe,CAAmD,EAChF,KAAK,EACL,OAAO,EACP,YAAY,EACZ,MAAM,EACN,WAAW,GACG,EAAA;IACd,OAAO,OAAO,MAAM,KAAK;AACvB,UAAEA,iBAAoB,CAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE;UAC7C,IAAK;AAC9C;;ACjCA;;;;;;;;;;;;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,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;;ACxBD;;;;;;;;;;;;AAYG;AACI,MAAM,eAAe,GAAG,eAAe,CAAC;AAC7C,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,YAAY,EAAE,sBAAsB;AACpC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC9C,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,YAAY,EAAE,uBAAuB;AACrC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
1
+ {"version":3,"file":"dialog.js","sources":["../../src/dialog/Dialog.ts","../../src/dialog/DialogAction.ts","../../src/dialog/DialogTrigger.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eDialogElement } from \"@m3e/web/dialog\";\r\nexport type { M3eDialogElement } from \"@m3e/web/dialog\";\r\n\r\n/**\r\n * React binding for the `m3e-dialog` Web Component from `@m3e/web/dialog`.\r\n *\r\n * This component renders the underlying `<m3e-dialog>` 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-dialog>` instance for imperative access.\r\n *\r\n * See the `m3e-dialog` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDialog = createComponent({\r\n tagName: \"m3e-dialog\",\r\n elementClass: M3eDialogElement,\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 { M3eDialogActionElement } from \"@m3e/web/dialog\";\r\nexport type { M3eDialogActionElement } from \"@m3e/web/dialog\";\r\n\r\n/**\r\n * React binding for the `m3e-dialog-action` Web Component from `@m3e/web/dialog`.\r\n *\r\n * This component renders the underlying `<m3e-dialog-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-dialog-action>` instance for imperative access.\r\n *\r\n * See the `m3e-dialog-action` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eDialogAction = createComponent({\r\n tagName: \"m3e-dialog-action\",\r\n elementClass: M3eDialogActionElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eDialogTriggerElement } from \"@m3e/web/dialog\";\r\nexport type { M3eDialogTriggerElement } from \"@m3e/web/dialog\";\r\n\r\n/**\r\n * React binding for the `m3e-dialog-trigger` Web Component from `@m3e/web/dialog`.\r\n *\r\n * This component renders the underlying `<m3e-dialog-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-dialog-trigger>` instance for imperative access.\r\n *\r\n * See the `m3e-dialog-trigger` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eDialogTrigger = createComponent({\r\n tagName: \"m3e-dialog-trigger\",\r\n elementClass: M3eDialogTriggerElement,\r\n react: React,\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,SAAS,GAAG,eAAe,CAAC;AACvC,IAAA,OAAO,EAAE,YAAY;AACrB,IAAA,YAAY,EAAE,gBAAgB;AAC9B,IAAA,KAAK,EAAE,KAAK;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;;ACxBD;;;;;;;;;;;;AAYG;AACI,MAAM,eAAe,GAAG,eAAe,CAAC;AAC7C,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,YAAY,EAAE,sBAAsB;AACpC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC9C,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,YAAY,EAAE,uBAAuB;AACrC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
@@ -1,7 +1,7 @@
1
- "use client";
2
1
  /**
3
2
  * @license MIT
4
3
  * Copyright (c) 2025 matraic
5
4
  * See LICENSE file in the project root for full license text.
6
- */import e from"react";import{createComponent as a}from"@lit/react";import{M3eDialogElement as n,M3eDialogActionElement as t,M3eDialogTriggerElement as o}from"@m3e/web/dialog";function l({react:e,tagName:n,elementClass:t,events:o,displayName:l}){return"undefined"!=typeof window?a({react:e,tagName:n,elementClass:t,events:o,displayName:l}):null}const m=l({tagName:"m3e-dialog",elementClass:n,react:e,events:{onOpening:"opening",onOpened:"opened",onClosing:"closing",onClosed:"closed",onCancel:"cancel"}}),s=l({tagName:"m3e-dialog-action",elementClass:t,react:e}),i=l({tagName:"m3e-dialog-trigger",elementClass:o,react:e});export{m as M3eDialog,s as M3eDialogAction,i as M3eDialogTrigger};
5
+ */
6
+ import e from"react";import{createComponent as o}from"@lit/react";import{M3eDialogElement as a,M3eDialogActionElement as n,M3eDialogTriggerElement as t}from"@m3e/web/dialog";const l=o({tagName:"m3e-dialog",elementClass:a,react:e,events:{onOpening:"opening",onOpened:"opened",onClosing:"closing",onClosed:"closed",onCancel:"cancel"}}),m=o({tagName:"m3e-dialog-action",elementClass:n,react:e}),i=o({tagName:"m3e-dialog-trigger",elementClass:t,react:e});export{l as M3eDialog,m as M3eDialogAction,i as M3eDialogTrigger};
7
7
  //# sourceMappingURL=dialog.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.min.js","sources":["../../src/utils/createComponent.ts","../../src/dialog/Dialog.ts","../../src/dialog/DialogAction.ts","../../src/dialog/DialogTrigger.ts"],"sourcesContent":["import { createComponent as createReactComponent, EventName, Options, ReactWebComponent } from \"@lit/react\";\r\n\r\ntype EventNames = Record<string, EventName | string>;\r\n\r\n/**\r\n * Creates an SSR-safe React component for a custom element. Properties are distinguished\r\n * from attributes automatically, and events can be configured so they are added\r\n * to the custom element as event listeners.\r\n *\r\n * @param options An options bag containing the parameters needed to generate a\r\n * wrapped web component.\r\n *\r\n * @param options.react The React module, typically imported from the `react`\r\n * npm package.\r\n * @param options.tagName The custom element tag name registered via\r\n * `customElements.define`.\r\n * @param options.elementClass The custom element class registered via\r\n * `customElements.define`.\r\n * @param options.events An object listing events to which the component can\r\n * listen. The object keys are the event property names passed in via React\r\n * props and the object values are the names of the corresponding events\r\n * generated by the custom element. For example, given `{onactivate:\r\n * 'activate'}` an event function may be passed via the component's `onactivate`\r\n * prop and will be called when the custom element fires its `activate` event.\r\n * @param options.displayName A React component display name, used in debugging\r\n * messages. Default value is inferred from the name of custom element class\r\n * registered via `customElements.define`.\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\r\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>({\r\n react,\r\n tagName,\r\n elementClass,\r\n events,\r\n displayName,\r\n}: Options<I, E>): ReactWebComponent<I, E> {\r\n return typeof window !== \"undefined\"\r\n ? createReactComponent<I, E>({ react, tagName, elementClass, events, displayName })\r\n : <ReactWebComponent<I, E>>(<unknown>null);\r\n}\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eDialogElement } from \"@m3e/web/dialog\";\r\nexport type { M3eDialogElement } from \"@m3e/web/dialog\";\r\n\r\n/**\r\n * React binding for the `m3e-dialog` Web Component from `@m3e/web/dialog`.\r\n *\r\n * This component renders the underlying `<m3e-dialog>` 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-dialog>` instance for imperative access.\r\n *\r\n * See the `m3e-dialog` documentation in `@m3e/dialog` for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDialog = createComponent({\r\n tagName: \"m3e-dialog\",\r\n elementClass: M3eDialogElement,\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 \"../utils\";\r\n\r\nimport { M3eDialogActionElement } from \"@m3e/web/dialog\";\r\nexport type { M3eDialogActionElement } from \"@m3e/web/dialog\";\r\n\r\n/**\r\n * React binding for the `m3e-dialog-action` Web Component from `@m3e/web/dialog`.\r\n *\r\n * This component renders the underlying `<m3e-dialog-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-dialog-action>` instance for imperative access.\r\n *\r\n * See the `m3e-dialog-action` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eDialogAction = createComponent({\r\n tagName: \"m3e-dialog-action\",\r\n elementClass: M3eDialogActionElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eDialogTriggerElement } from \"@m3e/web/dialog\";\r\nexport type { M3eDialogTriggerElement } from \"@m3e/web/dialog\";\r\n\r\n/**\r\n * React binding for the `m3e-dialog-trigger` Web Component from `@m3e/web/dialog`.\r\n *\r\n * This component renders the underlying `<m3e-dialog-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-dialog-trigger>` instance for imperative access.\r\n *\r\n * See the `m3e-dialog-trigger` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eDialogTrigger = createComponent({\r\n tagName: \"m3e-dialog-trigger\",\r\n elementClass: M3eDialogTriggerElement,\r\n react: React,\r\n});\r\n"],"names":["createComponent","react","tagName","elementClass","events","displayName","window","createReactComponent","M3eDialog","M3eDialogElement","React","onOpening","onOpened","onClosing","onClosed","onCancel","M3eDialogAction","M3eDialogActionElement","M3eDialogTrigger","M3eDialogTriggerElement"],"mappings":";;;;;iLA6BM,SAAUA,GAAkEC,MAChFA,EAAKC,QACLA,EAAOC,aACPA,EAAYC,OACZA,EAAMC,YACNA,IAEA,MAAyB,oBAAXC,OACVC,EAA2B,CAAEN,QAAOC,UAASC,eAAcC,SAAQC,gBAChC,IACzC,CCpBO,MAAMG,EAAYR,EAAgB,CACvCE,QAAS,aACTC,aAAcM,EACdR,MAAOS,EACPN,OAAQ,CACNO,UAAW,UACXC,SAAU,SACVC,UAAW,UACXC,SAAU,SACVC,SAAU,YCTDC,EAAkBhB,EAAgB,CAC7CE,QAAS,oBACTC,aAAcc,EACdhB,MAAOS,ICHIQ,EAAmBlB,EAAgB,CAC9CE,QAAS,qBACTC,aAAcgB,EACdlB,MAAOS"}
1
+ {"version":3,"file":"dialog.min.js","sources":["../../src/dialog/Dialog.ts","../../src/dialog/DialogAction.ts","../../src/dialog/DialogTrigger.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eDialogElement } from \"@m3e/web/dialog\";\r\nexport type { M3eDialogElement } from \"@m3e/web/dialog\";\r\n\r\n/**\r\n * React binding for the `m3e-dialog` Web Component from `@m3e/web/dialog`.\r\n *\r\n * This component renders the underlying `<m3e-dialog>` 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-dialog>` instance for imperative access.\r\n *\r\n * See the `m3e-dialog` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDialog = createComponent({\r\n tagName: \"m3e-dialog\",\r\n elementClass: M3eDialogElement,\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 { M3eDialogActionElement } from \"@m3e/web/dialog\";\r\nexport type { M3eDialogActionElement } from \"@m3e/web/dialog\";\r\n\r\n/**\r\n * React binding for the `m3e-dialog-action` Web Component from `@m3e/web/dialog`.\r\n *\r\n * This component renders the underlying `<m3e-dialog-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-dialog-action>` instance for imperative access.\r\n *\r\n * See the `m3e-dialog-action` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eDialogAction = createComponent({\r\n tagName: \"m3e-dialog-action\",\r\n elementClass: M3eDialogActionElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eDialogTriggerElement } from \"@m3e/web/dialog\";\r\nexport type { M3eDialogTriggerElement } from \"@m3e/web/dialog\";\r\n\r\n/**\r\n * React binding for the `m3e-dialog-trigger` Web Component from `@m3e/web/dialog`.\r\n *\r\n * This component renders the underlying `<m3e-dialog-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-dialog-trigger>` instance for imperative access.\r\n *\r\n * See the `m3e-dialog-trigger` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eDialogTrigger = createComponent({\r\n tagName: \"m3e-dialog-trigger\",\r\n elementClass: M3eDialogTriggerElement,\r\n react: React,\r\n});\r\n"],"names":["M3eDialog","createComponent","tagName","elementClass","M3eDialogElement","react","React","events","onOpening","onOpened","onClosing","onClosed","onCancel","M3eDialogAction","M3eDialogActionElement","M3eDialogTrigger","M3eDialogTriggerElement"],"mappings":";;;;;8KAmBO,MAAMA,EAAYC,EAAgB,CACvCC,QAAS,aACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,UAAW,UACXC,SAAU,SACVC,UAAW,UACXC,SAAU,SACVC,SAAU,YCTDC,EAAkBZ,EAAgB,CAC7CC,QAAS,oBACTC,aAAcW,EACdT,MAAOC,ICHIS,EAAmBd,EAAgB,CAC9CC,QAAS,qBACTC,aAAca,EACdX,MAAOC"}
package/dist/divider.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 as createComponent$1 } from '@lit/react';
8
+ import { createComponent } from '@lit/react';
10
9
  import { M3eDividerElement } from '@m3e/web/divider';
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-divider` Web Component from `@m3e/web/divider`.
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-divider>` instance for imperative access.
52
20
  *
53
- * See the `m3e-divider` documentation in `@m3e/divider` for full details on behavior,
21
+ * See the `m3e-divider` documentation for full details on behavior,
54
22
  * styling, accessibility, and supported events.
55
23
  */
56
24
  const M3eDivider = createComponent({
@@ -1 +1 @@
1
- {"version":3,"file":"divider.js","sources":["../../src/utils/createComponent.ts","../../src/divider/Divider.ts"],"sourcesContent":["import { createComponent as createReactComponent, EventName, Options, ReactWebComponent } from \"@lit/react\";\r\n\r\ntype EventNames = Record<string, EventName | string>;\r\n\r\n/**\r\n * Creates an SSR-safe React component for a custom element. Properties are distinguished\r\n * from attributes automatically, and events can be configured so they are added\r\n * to the custom element as event listeners.\r\n *\r\n * @param options An options bag containing the parameters needed to generate a\r\n * wrapped web component.\r\n *\r\n * @param options.react The React module, typically imported from the `react`\r\n * npm package.\r\n * @param options.tagName The custom element tag name registered via\r\n * `customElements.define`.\r\n * @param options.elementClass The custom element class registered via\r\n * `customElements.define`.\r\n * @param options.events An object listing events to which the component can\r\n * listen. The object keys are the event property names passed in via React\r\n * props and the object values are the names of the corresponding events\r\n * generated by the custom element. For example, given `{onactivate:\r\n * 'activate'}` an event function may be passed via the component's `onactivate`\r\n * prop and will be called when the custom element fires its `activate` event.\r\n * @param options.displayName A React component display name, used in debugging\r\n * messages. Default value is inferred from the name of custom element class\r\n * registered via `customElements.define`.\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\r\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>({\r\n react,\r\n tagName,\r\n elementClass,\r\n events,\r\n displayName,\r\n}: Options<I, E>): ReactWebComponent<I, E> {\r\n return typeof window !== \"undefined\"\r\n ? createReactComponent<I, E>({ react, tagName, elementClass, events, displayName })\r\n : <ReactWebComponent<I, E>>(<unknown>null);\r\n}\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eDividerElement } from \"@m3e/web/divider\";\r\nexport type { M3eDividerElement } from \"@m3e/web/divider\";\r\n\r\n/**\r\n * React binding for the `m3e-divider` Web Component from `@m3e/web/divider`.\r\n *\r\n * This component renders the underlying `<m3e-divider>` 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-divider>` instance for imperative access.\r\n *\r\n * See the `m3e-divider` documentation in `@m3e/divider` for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDivider = createComponent({\r\n tagName: \"m3e-divider\",\r\n elementClass: M3eDividerElement,\r\n react: React,\r\n});\r\n"],"names":["createReactComponent"],"mappings":";;;;;;;;;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;AAuBG;AACH;AACM,SAAU,eAAe,CAAmD,EAChF,KAAK,EACL,OAAO,EACP,YAAY,EACZ,MAAM,EACN,WAAW,GACG,EAAA;IACd,OAAO,OAAO,MAAM,KAAK;AACvB,UAAEA,iBAAoB,CAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE;UAC7C,IAAK;AAC9C;;ACjCA;;;;;;;;;;;;AAYG;AACI,MAAM,UAAU,GAAG,eAAe,CAAC;AACxC,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
1
+ {"version":3,"file":"divider.js","sources":["../../src/divider/Divider.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eDividerElement } from \"@m3e/web/divider\";\r\nexport type { M3eDividerElement } from \"@m3e/web/divider\";\r\n\r\n/**\r\n * React binding for the `m3e-divider` Web Component from `@m3e/web/divider`.\r\n *\r\n * This component renders the underlying `<m3e-divider>` 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-divider>` instance for imperative access.\r\n *\r\n * See the `m3e-divider` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDivider = createComponent({\r\n tagName: \"m3e-divider\",\r\n elementClass: M3eDividerElement,\r\n react: React,\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,UAAU,GAAG,eAAe,CAAC;AACxC,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
@@ -1,7 +1,7 @@
1
- "use client";
2
1
  /**
3
2
  * @license MIT
4
3
  * Copyright (c) 2025 matraic
5
4
  * See LICENSE file in the project root for full license text.
6
- */import e from"react";import{createComponent as t}from"@lit/react";import{M3eDividerElement as a}from"@m3e/web/divider";const m=function({react:e,tagName:a,elementClass:m,events:r,displayName:n}){return"undefined"!=typeof window?t({react:e,tagName:a,elementClass:m,events:r,displayName:n}):null}({tagName:"m3e-divider",elementClass:a,react:e});export{m as M3eDivider};
5
+ */
6
+ import e from"react";import{createComponent as r}from"@lit/react";import{M3eDividerElement as t}from"@m3e/web/divider";const m=r({tagName:"m3e-divider",elementClass:t,react:e});export{m as M3eDivider};
7
7
  //# sourceMappingURL=divider.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"divider.min.js","sources":["../../src/divider/Divider.ts","../../src/utils/createComponent.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eDividerElement } from \"@m3e/web/divider\";\r\nexport type { M3eDividerElement } from \"@m3e/web/divider\";\r\n\r\n/**\r\n * React binding for the `m3e-divider` Web Component from `@m3e/web/divider`.\r\n *\r\n * This component renders the underlying `<m3e-divider>` 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-divider>` instance for imperative access.\r\n *\r\n * See the `m3e-divider` documentation in `@m3e/divider` for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDivider = createComponent({\r\n tagName: \"m3e-divider\",\r\n elementClass: M3eDividerElement,\r\n react: React,\r\n});\r\n","import { createComponent as createReactComponent, EventName, Options, ReactWebComponent } from \"@lit/react\";\r\n\r\ntype EventNames = Record<string, EventName | string>;\r\n\r\n/**\r\n * Creates an SSR-safe React component for a custom element. Properties are distinguished\r\n * from attributes automatically, and events can be configured so they are added\r\n * to the custom element as event listeners.\r\n *\r\n * @param options An options bag containing the parameters needed to generate a\r\n * wrapped web component.\r\n *\r\n * @param options.react The React module, typically imported from the `react`\r\n * npm package.\r\n * @param options.tagName The custom element tag name registered via\r\n * `customElements.define`.\r\n * @param options.elementClass The custom element class registered via\r\n * `customElements.define`.\r\n * @param options.events An object listing events to which the component can\r\n * listen. The object keys are the event property names passed in via React\r\n * props and the object values are the names of the corresponding events\r\n * generated by the custom element. For example, given `{onactivate:\r\n * 'activate'}` an event function may be passed via the component's `onactivate`\r\n * prop and will be called when the custom element fires its `activate` event.\r\n * @param options.displayName A React component display name, used in debugging\r\n * messages. Default value is inferred from the name of custom element class\r\n * registered via `customElements.define`.\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\r\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>({\r\n react,\r\n tagName,\r\n elementClass,\r\n events,\r\n displayName,\r\n}: Options<I, E>): ReactWebComponent<I, E> {\r\n return typeof window !== \"undefined\"\r\n ? createReactComponent<I, E>({ react, tagName, elementClass, events, displayName })\r\n : <ReactWebComponent<I, E>>(<unknown>null);\r\n}\r\n"],"names":["M3eDivider","react","tagName","elementClass","events","displayName","window","createReactComponent","createComponent","M3eDividerElement","React"],"mappings":";;;;;0HAmBO,MAAMA,ECUP,UAA4EC,MAChFA,EAAKC,QACLA,EAAOC,aACPA,EAAYC,OACZA,EAAMC,YACNA,IAEA,MAAyB,oBAAXC,OACVC,EAA2B,CAAEN,QAAOC,UAASC,eAAcC,SAAQC,gBAChC,IACzC,CDpB0BG,CAAgB,CACxCN,QAAS,cACTC,aAAcM,EACdR,MAAOS"}
1
+ {"version":3,"file":"divider.min.js","sources":["../../src/divider/Divider.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eDividerElement } from \"@m3e/web/divider\";\r\nexport type { M3eDividerElement } from \"@m3e/web/divider\";\r\n\r\n/**\r\n * React binding for the `m3e-divider` Web Component from `@m3e/web/divider`.\r\n *\r\n * This component renders the underlying `<m3e-divider>` 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-divider>` instance for imperative access.\r\n *\r\n * See the `m3e-divider` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDivider = createComponent({\r\n tagName: \"m3e-divider\",\r\n elementClass: M3eDividerElement,\r\n react: React,\r\n});\r\n"],"names":["M3eDivider","createComponent","tagName","elementClass","M3eDividerElement","react","React"],"mappings":";;;;;uHAmBO,MAAMA,EAAaC,EAAgB,CACxCC,QAAS,cACTC,aAAcC,EACdC,MAAOC"}
@@ -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 as createComponent$1 } from '@lit/react';
8
+ import { createComponent } from '@lit/react';
10
9
  import { M3eDrawerContainerElement, M3eDrawerToggleElement } from '@m3e/web/drawer-container';
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-drawer-container` Web Component from `@m3e/web/drawer-container`.
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-drawer-container>` instance for imperative access.
52
20
  *
53
- * See the `m3e-drawer-container` documentation in `@m3e/drawer-container` for full details on behavior,
21
+ * See the `m3e-drawer-container` documentation for full details on behavior,
54
22
  * styling, accessibility, and supported events.
55
23
  */
56
24
  const M3eDrawerContainer = createComponent({
@@ -1 +1 @@
1
- {"version":3,"file":"drawer-container.js","sources":["../../src/utils/createComponent.ts","../../src/drawer-container/DrawerContainer.ts","../../src/drawer-container/DrawerToggle.ts"],"sourcesContent":["import { createComponent as createReactComponent, EventName, Options, ReactWebComponent } from \"@lit/react\";\r\n\r\ntype EventNames = Record<string, EventName | string>;\r\n\r\n/**\r\n * Creates an SSR-safe React component for a custom element. Properties are distinguished\r\n * from attributes automatically, and events can be configured so they are added\r\n * to the custom element as event listeners.\r\n *\r\n * @param options An options bag containing the parameters needed to generate a\r\n * wrapped web component.\r\n *\r\n * @param options.react The React module, typically imported from the `react`\r\n * npm package.\r\n * @param options.tagName The custom element tag name registered via\r\n * `customElements.define`.\r\n * @param options.elementClass The custom element class registered via\r\n * `customElements.define`.\r\n * @param options.events An object listing events to which the component can\r\n * listen. The object keys are the event property names passed in via React\r\n * props and the object values are the names of the corresponding events\r\n * generated by the custom element. For example, given `{onactivate:\r\n * 'activate'}` an event function may be passed via the component's `onactivate`\r\n * prop and will be called when the custom element fires its `activate` event.\r\n * @param options.displayName A React component display name, used in debugging\r\n * messages. Default value is inferred from the name of custom element class\r\n * registered via `customElements.define`.\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\r\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>({\r\n react,\r\n tagName,\r\n elementClass,\r\n events,\r\n displayName,\r\n}: Options<I, E>): ReactWebComponent<I, E> {\r\n return typeof window !== \"undefined\"\r\n ? createReactComponent<I, E>({ react, tagName, elementClass, events, displayName })\r\n : <ReactWebComponent<I, E>>(<unknown>null);\r\n}\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eDrawerContainerElement } from \"@m3e/web/drawer-container\";\r\nexport type { DrawerMode, DrawerPosition, M3eDrawerContainerElement } from \"@m3e/web/drawer-container\";\r\n\r\n/**\r\n * React binding for the `m3e-drawer-container` Web Component from `@m3e/web/drawer-container`.\r\n *\r\n * This component renders the underlying `<m3e-drawer-container>` 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-drawer-container>` instance for imperative access.\r\n *\r\n * See the `m3e-drawer-container` documentation in `@m3e/drawer-container` for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDrawerContainer = createComponent({\r\n tagName: \"m3e-drawer-container\",\r\n elementClass: M3eDrawerContainerElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eDrawerToggleElement } from \"@m3e/web/drawer-container\";\r\nexport type { M3eDrawerToggleElement } from \"@m3e/web/drawer-container\";\r\n\r\n/**\r\n * React binding for the `m3e-drawer-toggle` Web Component from `@m3e/web/drawer-container`.\r\n *\r\n * This component renders the underlying `<m3e-drawer-toggle>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-drawer-toggle>` instance for imperative access.\r\n *\r\n * See the `m3e-drawer-toggle` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eDrawerToggle = createComponent({\r\n tagName: \"m3e-drawer-toggle\",\r\n elementClass: M3eDrawerToggleElement,\r\n react: React,\r\n});\r\n"],"names":["createReactComponent"],"mappings":";;;;;;;;;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;AAuBG;AACH;AACM,SAAU,eAAe,CAAmD,EAChF,KAAK,EACL,OAAO,EACP,YAAY,EACZ,MAAM,EACN,WAAW,GACG,EAAA;IACd,OAAO,OAAO,MAAM,KAAK;AACvB,UAAEA,iBAAoB,CAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE;UAC7C,IAAK;AAC9C;;ACjCA;;;;;;;;;;;;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,QAAQ,EAAE,QAAQ;AACnB,KAAA;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAM,eAAe,GAAG,eAAe,CAAC;AAC7C,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,YAAY,EAAE,sBAAsB;AACpC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
1
+ {"version":3,"file":"drawer-container.js","sources":["../../src/drawer-container/DrawerContainer.ts","../../src/drawer-container/DrawerToggle.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eDrawerContainerElement } from \"@m3e/web/drawer-container\";\r\nexport type { DrawerMode, DrawerPosition, M3eDrawerContainerElement } from \"@m3e/web/drawer-container\";\r\n\r\n/**\r\n * React binding for the `m3e-drawer-container` Web Component from `@m3e/web/drawer-container`.\r\n *\r\n * This component renders the underlying `<m3e-drawer-container>` 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-drawer-container>` instance for imperative access.\r\n *\r\n * See the `m3e-drawer-container` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDrawerContainer = createComponent({\r\n tagName: \"m3e-drawer-container\",\r\n elementClass: M3eDrawerContainerElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eDrawerToggleElement } from \"@m3e/web/drawer-container\";\r\nexport type { M3eDrawerToggleElement } from \"@m3e/web/drawer-container\";\r\n\r\n/**\r\n * React binding for the `m3e-drawer-toggle` Web Component from `@m3e/web/drawer-container`.\r\n *\r\n * This component renders the underlying `<m3e-drawer-toggle>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-drawer-toggle>` instance for imperative access.\r\n *\r\n * See the `m3e-drawer-toggle` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eDrawerToggle = createComponent({\r\n tagName: \"m3e-drawer-toggle\",\r\n elementClass: M3eDrawerToggleElement,\r\n react: React,\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,QAAQ,EAAE,QAAQ;AACnB,KAAA;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAM,eAAe,GAAG,eAAe,CAAC;AAC7C,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,YAAY,EAAE,sBAAsB;AACpC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
@@ -1,7 +1,7 @@
1
- "use client";
2
1
  /**
3
2
  * @license MIT
4
3
  * Copyright (c) 2025 matraic
5
4
  * See LICENSE file in the project root for full license text.
6
- */import e from"react";import{createComponent as t}from"@lit/react";import{M3eDrawerContainerElement as a,M3eDrawerToggleElement as n}from"@m3e/web/drawer-container";function r({react:e,tagName:a,elementClass:n,events:r,displayName:m}){return"undefined"!=typeof window?t({react:e,tagName:a,elementClass:n,events:r,displayName:m}):null}const m=r({tagName:"m3e-drawer-container",elementClass:a,react:e,events:{onChange:"change"}}),o=r({tagName:"m3e-drawer-toggle",elementClass:n,react:e});export{m as M3eDrawerContainer,o as M3eDrawerToggle};
5
+ */
6
+ import e from"react";import{createComponent as r}from"@lit/react";import{M3eDrawerContainerElement as t,M3eDrawerToggleElement as a}from"@m3e/web/drawer-container";const m=r({tagName:"m3e-drawer-container",elementClass:t,react:e,events:{onChange:"change"}}),o=r({tagName:"m3e-drawer-toggle",elementClass:a,react:e});export{m as M3eDrawerContainer,o as M3eDrawerToggle};
7
7
  //# sourceMappingURL=drawer-container.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer-container.min.js","sources":["../../src/utils/createComponent.ts","../../src/drawer-container/DrawerContainer.ts","../../src/drawer-container/DrawerToggle.ts"],"sourcesContent":["import { createComponent as createReactComponent, EventName, Options, ReactWebComponent } from \"@lit/react\";\r\n\r\ntype EventNames = Record<string, EventName | string>;\r\n\r\n/**\r\n * Creates an SSR-safe React component for a custom element. Properties are distinguished\r\n * from attributes automatically, and events can be configured so they are added\r\n * to the custom element as event listeners.\r\n *\r\n * @param options An options bag containing the parameters needed to generate a\r\n * wrapped web component.\r\n *\r\n * @param options.react The React module, typically imported from the `react`\r\n * npm package.\r\n * @param options.tagName The custom element tag name registered via\r\n * `customElements.define`.\r\n * @param options.elementClass The custom element class registered via\r\n * `customElements.define`.\r\n * @param options.events An object listing events to which the component can\r\n * listen. The object keys are the event property names passed in via React\r\n * props and the object values are the names of the corresponding events\r\n * generated by the custom element. For example, given `{onactivate:\r\n * 'activate'}` an event function may be passed via the component's `onactivate`\r\n * prop and will be called when the custom element fires its `activate` event.\r\n * @param options.displayName A React component display name, used in debugging\r\n * messages. Default value is inferred from the name of custom element class\r\n * registered via `customElements.define`.\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\r\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>({\r\n react,\r\n tagName,\r\n elementClass,\r\n events,\r\n displayName,\r\n}: Options<I, E>): ReactWebComponent<I, E> {\r\n return typeof window !== \"undefined\"\r\n ? createReactComponent<I, E>({ react, tagName, elementClass, events, displayName })\r\n : <ReactWebComponent<I, E>>(<unknown>null);\r\n}\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eDrawerContainerElement } from \"@m3e/web/drawer-container\";\r\nexport type { DrawerMode, DrawerPosition, M3eDrawerContainerElement } from \"@m3e/web/drawer-container\";\r\n\r\n/**\r\n * React binding for the `m3e-drawer-container` Web Component from `@m3e/web/drawer-container`.\r\n *\r\n * This component renders the underlying `<m3e-drawer-container>` 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-drawer-container>` instance for imperative access.\r\n *\r\n * See the `m3e-drawer-container` documentation in `@m3e/drawer-container` for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDrawerContainer = createComponent({\r\n tagName: \"m3e-drawer-container\",\r\n elementClass: M3eDrawerContainerElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eDrawerToggleElement } from \"@m3e/web/drawer-container\";\r\nexport type { M3eDrawerToggleElement } from \"@m3e/web/drawer-container\";\r\n\r\n/**\r\n * React binding for the `m3e-drawer-toggle` Web Component from `@m3e/web/drawer-container`.\r\n *\r\n * This component renders the underlying `<m3e-drawer-toggle>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-drawer-toggle>` instance for imperative access.\r\n *\r\n * See the `m3e-drawer-toggle` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eDrawerToggle = createComponent({\r\n tagName: \"m3e-drawer-toggle\",\r\n elementClass: M3eDrawerToggleElement,\r\n react: React,\r\n});\r\n"],"names":["createComponent","react","tagName","elementClass","events","displayName","window","createReactComponent","M3eDrawerContainer","M3eDrawerContainerElement","React","onChange","M3eDrawerToggle","M3eDrawerToggleElement"],"mappings":";;;;;uKA6BM,SAAUA,GAAkEC,MAChFA,EAAKC,QACLA,EAAOC,aACPA,EAAYC,OACZA,EAAMC,YACNA,IAEA,MAAyB,oBAAXC,OACVC,EAA2B,CAAEN,QAAOC,UAASC,eAAcC,SAAQC,gBAChC,IACzC,CCpBO,MAAMG,EAAqBR,EAAgB,CAChDE,QAAS,uBACTC,aAAcM,EACdR,MAAOS,EACPN,OAAQ,CACNO,SAAU,YCLDC,EAAkBZ,EAAgB,CAC7CE,QAAS,oBACTC,aAAcU,EACdZ,MAAOS"}
1
+ {"version":3,"file":"drawer-container.min.js","sources":["../../src/drawer-container/DrawerContainer.ts","../../src/drawer-container/DrawerToggle.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eDrawerContainerElement } from \"@m3e/web/drawer-container\";\r\nexport type { DrawerMode, DrawerPosition, M3eDrawerContainerElement } from \"@m3e/web/drawer-container\";\r\n\r\n/**\r\n * React binding for the `m3e-drawer-container` Web Component from `@m3e/web/drawer-container`.\r\n *\r\n * This component renders the underlying `<m3e-drawer-container>` 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-drawer-container>` instance for imperative access.\r\n *\r\n * See the `m3e-drawer-container` documentation for full details on behavior,\r\n * styling, accessibility, and supported events.\r\n */\r\nexport const M3eDrawerContainer = createComponent({\r\n tagName: \"m3e-drawer-container\",\r\n elementClass: M3eDrawerContainerElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eDrawerToggleElement } from \"@m3e/web/drawer-container\";\r\nexport type { M3eDrawerToggleElement } from \"@m3e/web/drawer-container\";\r\n\r\n/**\r\n * React binding for the `m3e-drawer-toggle` Web Component from `@m3e/web/drawer-container`.\r\n *\r\n * This component renders the underlying `<m3e-drawer-toggle>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-drawer-toggle>` instance for imperative access.\r\n *\r\n * See the `m3e-drawer-toggle` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eDrawerToggle = createComponent({\r\n tagName: \"m3e-drawer-toggle\",\r\n elementClass: M3eDrawerToggleElement,\r\n react: React,\r\n});\r\n"],"names":["M3eDrawerContainer","createComponent","tagName","elementClass","M3eDrawerContainerElement","react","React","events","onChange","M3eDrawerToggle","M3eDrawerToggleElement"],"mappings":";;;;;oKAmBO,MAAMA,EAAqBC,EAAgB,CAChDC,QAAS,uBACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,SAAU,YCLDC,EAAkBR,EAAgB,CAC7CC,QAAS,oBACTC,aAAcO,EACdL,MAAOC"}
@@ -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 as createComponent$1 } from '@lit/react';
8
+ import { createComponent } from '@lit/react';
10
9
  import { M3eAccordionElement, M3eExpansionPanelElement } from '@m3e/web/expansion-panel';
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-accordion` Web Component from `@m3e/web/expansion-panel`.
45
13
  *
@@ -1 +1 @@
1
- {"version":3,"file":"expansion-panel.js","sources":["../../src/utils/createComponent.ts","../../src/expansion-panel/Accordion.ts","../../src/expansion-panel/ExpansionPanel.ts"],"sourcesContent":["import { createComponent as createReactComponent, EventName, Options, ReactWebComponent } from \"@lit/react\";\r\n\r\ntype EventNames = Record<string, EventName | string>;\r\n\r\n/**\r\n * Creates an SSR-safe React component for a custom element. Properties are distinguished\r\n * from attributes automatically, and events can be configured so they are added\r\n * to the custom element as event listeners.\r\n *\r\n * @param options An options bag containing the parameters needed to generate a\r\n * wrapped web component.\r\n *\r\n * @param options.react The React module, typically imported from the `react`\r\n * npm package.\r\n * @param options.tagName The custom element tag name registered via\r\n * `customElements.define`.\r\n * @param options.elementClass The custom element class registered via\r\n * `customElements.define`.\r\n * @param options.events An object listing events to which the component can\r\n * listen. The object keys are the event property names passed in via React\r\n * props and the object values are the names of the corresponding events\r\n * generated by the custom element. For example, given `{onactivate:\r\n * 'activate'}` an event function may be passed via the component's `onactivate`\r\n * prop and will be called when the custom element fires its `activate` event.\r\n * @param options.displayName A React component display name, used in debugging\r\n * messages. Default value is inferred from the name of custom element class\r\n * registered via `customElements.define`.\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\r\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>({\r\n react,\r\n tagName,\r\n elementClass,\r\n events,\r\n displayName,\r\n}: Options<I, E>): ReactWebComponent<I, E> {\r\n return typeof window !== \"undefined\"\r\n ? createReactComponent<I, E>({ react, tagName, elementClass, events, displayName })\r\n : <ReactWebComponent<I, E>>(<unknown>null);\r\n}\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eAccordionElement } from \"@m3e/web/expansion-panel\";\r\nexport type { M3eAccordionElement } from \"@m3e/web/expansion-panel\";\r\n\r\n/**\r\n * React binding for the `m3e-accordion` Web Component from `@m3e/web/expansion-panel`.\r\n *\r\n * This component renders the underlying `<m3e-accordion>` 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-accordion>` instance for imperative access.\r\n *\r\n * See the `m3e-accordion` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eAccordion = createComponent({\r\n tagName: \"m3e-accordion\",\r\n elementClass: M3eAccordionElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eExpansionPanelElement } from \"@m3e/web/expansion-panel\";\r\nexport type {\r\n ExpansionToggleDirection,\r\n ExpansionTogglePosition,\r\n M3eExpansionPanelElement,\r\n} from \"@m3e/web/expansion-panel\";\r\n\r\n/**\r\n * React binding for the `m3e-expansion-panel` Web Component from `@m3e/web/expansion-panel`.\r\n *\r\n * This component renders the underlying `<m3e-expansion-panel>` 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-expansion-panel>` instance for imperative access.\r\n *\r\n * See the `m3e-expansion-panel` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eExpansionPanel = createComponent({\r\n tagName: \"m3e-expansion-panel\",\r\n elementClass: M3eExpansionPanelElement,\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 },\r\n});\r\n"],"names":["createReactComponent"],"mappings":";;;;;;;;;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;AAuBG;AACH;AACM,SAAU,eAAe,CAAmD,EAChF,KAAK,EACL,OAAO,EACP,YAAY,EACZ,MAAM,EACN,WAAW,GACG,EAAA;IACd,OAAO,OAAO,MAAM,KAAK;AACvB,UAAEA,iBAAoB,CAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE;UAC7C,IAAK;AAC9C;;ACjCA;;;;;;;;;;;;AAYG;AACI,MAAM,YAAY,GAAG,eAAe,CAAC;AAC1C,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACbD;;;;;;;;;;;;AAYG;AACI,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAC/C,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,YAAY,EAAE,wBAAwB;AACtC,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;AACnB,KAAA;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"expansion-panel.js","sources":["../../src/expansion-panel/Accordion.ts","../../src/expansion-panel/ExpansionPanel.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eAccordionElement } from \"@m3e/web/expansion-panel\";\r\nexport type { M3eAccordionElement } from \"@m3e/web/expansion-panel\";\r\n\r\n/**\r\n * React binding for the `m3e-accordion` Web Component from `@m3e/web/expansion-panel`.\r\n *\r\n * This component renders the underlying `<m3e-accordion>` 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-accordion>` instance for imperative access.\r\n *\r\n * See the `m3e-accordion` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eAccordion = createComponent({\r\n tagName: \"m3e-accordion\",\r\n elementClass: M3eAccordionElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eExpansionPanelElement } from \"@m3e/web/expansion-panel\";\r\nexport type {\r\n ExpansionToggleDirection,\r\n ExpansionTogglePosition,\r\n M3eExpansionPanelElement,\r\n} from \"@m3e/web/expansion-panel\";\r\n\r\n/**\r\n * React binding for the `m3e-expansion-panel` Web Component from `@m3e/web/expansion-panel`.\r\n *\r\n * This component renders the underlying `<m3e-expansion-panel>` 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-expansion-panel>` instance for imperative access.\r\n *\r\n * See the `m3e-expansion-panel` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eExpansionPanel = createComponent({\r\n tagName: \"m3e-expansion-panel\",\r\n elementClass: M3eExpansionPanelElement,\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 },\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,YAAY,GAAG,eAAe,CAAC;AAC1C,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACbD;;;;;;;;;;;;AAYG;AACI,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAC/C,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,YAAY,EAAE,wBAAwB;AACtC,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;AACnB,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
- */import e from"react";import{createComponent as n}from"@lit/react";import{M3eAccordionElement as a,M3eExpansionPanelElement as t}from"@m3e/web/expansion-panel";function o({react:e,tagName:a,elementClass:t,events:o,displayName:s}){return"undefined"!=typeof window?n({react:e,tagName:a,elementClass:t,events:o,displayName:s}):null}const s=o({tagName:"m3e-accordion",elementClass:a,react:e}),l=o({tagName:"m3e-expansion-panel",elementClass:t,react:e,events:{onOpening:"opening",onOpened:"opened",onClosing:"closing",onClosed:"closed"}});export{s as M3eAccordion,l as M3eExpansionPanel};
5
+ */
6
+ import e from"react";import{createComponent as n}from"@lit/react";import{M3eAccordionElement as o,M3eExpansionPanelElement as a}from"@m3e/web/expansion-panel";const t=n({tagName:"m3e-accordion",elementClass:o,react:e}),m=n({tagName:"m3e-expansion-panel",elementClass:a,react:e,events:{onOpening:"opening",onOpened:"opened",onClosing:"closing",onClosed:"closed"}});export{t as M3eAccordion,m as M3eExpansionPanel};
7
7
  //# sourceMappingURL=expansion-panel.min.js.map