@m3e/react 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -7
- package/dist/all.js +338 -91
- package/dist/all.js.map +1 -1
- package/dist/all.min.js +1 -1
- package/dist/all.min.js.map +1 -1
- package/dist/app-bar.js +33 -2
- package/dist/app-bar.js.map +1 -1
- package/dist/app-bar.min.js +1 -1
- package/dist/app-bar.min.js.map +1 -1
- package/dist/autocomplete.js +33 -2
- package/dist/autocomplete.js.map +1 -1
- package/dist/autocomplete.min.js +1 -1
- package/dist/autocomplete.min.js.map +1 -1
- package/dist/avatar.js +33 -2
- package/dist/avatar.js.map +1 -1
- package/dist/avatar.min.js +1 -1
- package/dist/avatar.min.js.map +1 -1
- package/dist/badge.js +33 -2
- package/dist/badge.js.map +1 -1
- package/dist/badge.min.js +1 -1
- package/dist/badge.min.js.map +1 -1
- package/dist/bottom-sheet.js +35 -4
- package/dist/bottom-sheet.js.map +1 -1
- package/dist/bottom-sheet.min.js +1 -1
- package/dist/bottom-sheet.min.js.map +1 -1
- package/dist/button-group.js +33 -2
- package/dist/button-group.js.map +1 -1
- package/dist/button-group.min.js +1 -1
- package/dist/button-group.min.js.map +1 -1
- package/dist/button.js +33 -2
- package/dist/button.js.map +1 -1
- package/dist/button.min.js +1 -1
- package/dist/button.min.js.map +1 -1
- package/dist/card.js +33 -2
- package/dist/card.js.map +1 -1
- package/dist/card.min.js +1 -1
- package/dist/card.min.js.map +1 -1
- package/dist/checkbox.js +33 -2
- package/dist/checkbox.js.map +1 -1
- package/dist/checkbox.min.js +1 -1
- package/dist/checkbox.min.js.map +1 -1
- package/dist/chips.js +40 -9
- package/dist/chips.js.map +1 -1
- package/dist/chips.min.js +1 -1
- package/dist/chips.min.js.map +1 -1
- package/dist/core.js +259 -0
- package/dist/core.js.map +1 -0
- package/dist/core.min.js +7 -0
- package/dist/core.min.js.map +1 -0
- package/dist/dialog.js +35 -4
- package/dist/dialog.js.map +1 -1
- package/dist/dialog.min.js +1 -1
- package/dist/dialog.min.js.map +1 -1
- package/dist/divider.js +33 -2
- package/dist/divider.js.map +1 -1
- package/dist/divider.min.js +1 -1
- package/dist/divider.min.js.map +1 -1
- package/dist/drawer-container.js +34 -3
- package/dist/drawer-container.js.map +1 -1
- package/dist/drawer-container.min.js +1 -1
- package/dist/drawer-container.min.js.map +1 -1
- package/dist/expansion-panel.js +34 -3
- package/dist/expansion-panel.js.map +1 -1
- package/dist/expansion-panel.min.js +1 -1
- package/dist/expansion-panel.min.js.map +1 -1
- package/dist/fab-menu.js +35 -4
- package/dist/fab-menu.js.map +1 -1
- package/dist/fab-menu.min.js +1 -1
- package/dist/fab-menu.min.js.map +1 -1
- package/dist/fab.js +33 -2
- package/dist/fab.js.map +1 -1
- package/dist/fab.min.js +1 -1
- package/dist/fab.min.js.map +1 -1
- package/dist/form-field.js +33 -2
- package/dist/form-field.js.map +1 -1
- package/dist/form-field.min.js +1 -1
- package/dist/form-field.min.js.map +1 -1
- package/dist/heading.js +33 -2
- package/dist/heading.js.map +1 -1
- package/dist/heading.min.js +1 -1
- package/dist/heading.min.js.map +1 -1
- package/dist/icon-button.js +33 -2
- package/dist/icon-button.js.map +1 -1
- package/dist/icon-button.min.js +1 -1
- package/dist/icon-button.min.js.map +1 -1
- package/dist/icon.js +33 -2
- package/dist/icon.js.map +1 -1
- package/dist/icon.min.js +1 -1
- package/dist/icon.min.js.map +1 -1
- package/dist/list.js +39 -8
- package/dist/list.js.map +1 -1
- package/dist/list.min.js +1 -1
- package/dist/list.min.js.map +1 -1
- package/dist/loading-indicator.js +33 -2
- package/dist/loading-indicator.js.map +1 -1
- package/dist/loading-indicator.min.js +1 -1
- package/dist/loading-indicator.min.js.map +1 -1
- package/dist/menu.js +38 -7
- package/dist/menu.js.map +1 -1
- package/dist/menu.min.js +1 -1
- package/dist/menu.min.js.map +1 -1
- package/dist/nav-bar.js +34 -3
- package/dist/nav-bar.js.map +1 -1
- package/dist/nav-bar.min.js +1 -1
- package/dist/nav-bar.min.js.map +1 -1
- package/dist/nav-menu.js +35 -4
- package/dist/nav-menu.js.map +1 -1
- package/dist/nav-menu.min.js +1 -1
- package/dist/nav-menu.min.js.map +1 -1
- package/dist/nav-rail.js +34 -3
- package/dist/nav-rail.js.map +1 -1
- package/dist/nav-rail.min.js +1 -1
- package/dist/nav-rail.min.js.map +1 -1
- package/dist/option.js +34 -3
- package/dist/option.js.map +1 -1
- package/dist/option.min.js +1 -1
- package/dist/option.min.js.map +1 -1
- package/dist/paginator.js +1 -1
- package/dist/paginator.js.map +1 -1
- package/dist/paginator.min.js.map +1 -1
- package/dist/progress-indicator.js +34 -3
- package/dist/progress-indicator.js.map +1 -1
- package/dist/progress-indicator.min.js +1 -1
- package/dist/progress-indicator.min.js.map +1 -1
- package/dist/radio-group.js +34 -3
- package/dist/radio-group.js.map +1 -1
- package/dist/radio-group.min.js +1 -1
- package/dist/radio-group.min.js.map +1 -1
- package/dist/segmented-button.js +34 -3
- package/dist/segmented-button.js.map +1 -1
- package/dist/segmented-button.min.js +1 -1
- package/dist/segmented-button.min.js.map +1 -1
- package/dist/select.js +33 -2
- package/dist/select.js.map +1 -1
- package/dist/select.min.js +1 -1
- package/dist/select.min.js.map +1 -1
- package/dist/shape.js +33 -2
- package/dist/shape.js.map +1 -1
- package/dist/shape.min.js +1 -1
- package/dist/shape.min.js.map +1 -1
- package/dist/slide-group.js +33 -2
- package/dist/slide-group.js.map +1 -1
- package/dist/slide-group.min.js +1 -1
- package/dist/slide-group.min.js.map +1 -1
- package/dist/slider.js +34 -3
- package/dist/slider.js.map +1 -1
- package/dist/slider.min.js +1 -1
- package/dist/slider.min.js.map +1 -1
- package/dist/split-button.js +33 -2
- package/dist/split-button.js.map +1 -1
- package/dist/split-button.min.js +1 -1
- package/dist/split-button.min.js.map +1 -1
- package/dist/src/all.d.ts +1 -0
- package/dist/src/all.d.ts.map +1 -1
- package/dist/src/app-bar/AppBar.d.ts +1 -1
- package/dist/src/autocomplete/Autocomplete.d.ts +1 -1
- package/dist/src/avatar/Avatar.d.ts +1 -1
- package/dist/src/badge/Badge.d.ts +1 -1
- package/dist/src/bottom-sheet/BottomSheet.d.ts +1 -1
- package/dist/src/bottom-sheet/BottomSheetAction.d.ts +1 -1
- package/dist/src/bottom-sheet/BottomSheetTrigger.d.ts +1 -1
- package/dist/src/button/Button.d.ts +1 -1
- package/dist/src/button-group/ButtonGroup.d.ts +1 -1
- package/dist/src/card/Card.d.ts +1 -1
- package/dist/src/checkbox/Checkbox.d.ts +1 -1
- package/dist/src/chips/AssistChip.d.ts +1 -1
- package/dist/src/chips/Chip.d.ts +1 -1
- package/dist/src/chips/ChipSet.d.ts +1 -1
- package/dist/src/chips/FilterChip.d.ts +1 -1
- package/dist/src/chips/FilterChipSet.d.ts +1 -1
- package/dist/src/chips/InputChip.d.ts +1 -1
- package/dist/src/chips/InputChipSet.d.ts +1 -1
- package/dist/src/chips/SuggestionChip.d.ts +1 -1
- package/dist/src/core/Collapsible.d.ts +22 -0
- package/dist/src/core/Collapsible.d.ts.map +1 -0
- package/dist/src/core/Elevation.d.ts +17 -0
- package/dist/src/core/Elevation.d.ts.map +1 -0
- package/dist/src/core/FocusRing.d.ts +17 -0
- package/dist/src/core/FocusRing.d.ts.map +1 -0
- package/dist/src/core/PseudoCheckbox.d.ts +17 -0
- package/dist/src/core/PseudoCheckbox.d.ts.map +1 -0
- package/dist/src/core/PseudoRadio.d.ts +17 -0
- package/dist/src/core/PseudoRadio.d.ts.map +1 -0
- package/dist/src/core/Ripple.d.ts +17 -0
- package/dist/src/core/Ripple.d.ts.map +1 -0
- package/dist/src/core/ScrollContainer.d.ts +17 -0
- package/dist/src/core/ScrollContainer.d.ts.map +1 -0
- package/dist/src/core/Slide.d.ts +17 -0
- package/dist/src/core/Slide.d.ts.map +1 -0
- package/dist/src/core/StateLayer.d.ts +17 -0
- package/dist/src/core/StateLayer.d.ts.map +1 -0
- package/dist/src/core/TextHighlight.d.ts +17 -0
- package/dist/src/core/TextHighlight.d.ts.map +1 -0
- package/dist/src/core/TextOverflow.d.ts +17 -0
- package/dist/src/core/TextOverflow.d.ts.map +1 -0
- package/dist/src/core/index.d.ts +12 -0
- package/dist/src/core/index.d.ts.map +1 -0
- package/dist/src/dialog/Dialog.d.ts +1 -1
- package/dist/src/dialog/DialogAction.d.ts +1 -1
- package/dist/src/dialog/DialogTrigger.d.ts +1 -1
- package/dist/src/divider/Divider.d.ts +1 -1
- package/dist/src/drawer-container/DrawerContainer.d.ts +1 -1
- package/dist/src/drawer-container/DrawerToggle.d.ts +1 -1
- package/dist/src/expansion-panel/Accordion.d.ts +1 -1
- package/dist/src/expansion-panel/ExpansionPanel.d.ts +1 -1
- package/dist/src/fab/Fab.d.ts +1 -1
- package/dist/src/fab-menu/FabMenu.d.ts +1 -1
- package/dist/src/fab-menu/FabMenuItem.d.ts +1 -1
- package/dist/src/fab-menu/FabMenuTrigger.d.ts +1 -1
- package/dist/src/form-field/FormField.d.ts +1 -1
- package/dist/src/heading/Heading.d.ts +1 -1
- package/dist/src/icon/Icon.d.ts +1 -1
- package/dist/src/icon-button/IconButton.d.ts +1 -1
- package/dist/src/list/ActionList.d.ts +1 -1
- package/dist/src/list/ExpandableListItem.d.ts +1 -1
- package/dist/src/list/List.d.ts +1 -1
- package/dist/src/list/ListAction.d.ts +1 -1
- package/dist/src/list/ListItem.d.ts +1 -1
- package/dist/src/list/ListOption.d.ts +1 -1
- package/dist/src/list/SelectionList.d.ts +1 -1
- package/dist/src/loading-indicator/LoadingIndicator.d.ts +1 -1
- package/dist/src/menu/Menu.d.ts +1 -1
- package/dist/src/menu/MenuItem.d.ts +1 -1
- package/dist/src/menu/MenuItemCheckbox.d.ts +1 -1
- package/dist/src/menu/MenuItemGroup.d.ts +1 -1
- package/dist/src/menu/MenuItemRadio.d.ts +1 -1
- package/dist/src/menu/MenuTrigger.d.ts +1 -1
- package/dist/src/nav-bar/NavBar.d.ts +1 -1
- package/dist/src/nav-bar/NavItem.d.ts +1 -1
- package/dist/src/nav-menu/NavMenu.d.ts +1 -1
- package/dist/src/nav-menu/NavMenuItem.d.ts +1 -1
- package/dist/src/nav-menu/NavMenuItemGroup.d.ts +1 -1
- package/dist/src/nav-rail/NavRail.d.ts +1 -1
- package/dist/src/nav-rail/NavRailToggle.d.ts +1 -1
- package/dist/src/option/OptGroup.d.ts +1 -1
- package/dist/src/option/Option.d.ts +1 -1
- package/dist/src/paginator/Paginator.d.ts +1 -1
- package/dist/src/progress-indicator/CircularProgressIndicator.d.ts +1 -1
- package/dist/src/progress-indicator/LinearProgressIndicator.d.ts +1 -1
- package/dist/src/radio-group/Radio.d.ts +1 -1
- package/dist/src/radio-group/RadioGroup.d.ts +1 -1
- package/dist/src/segmented-button/ButtonSegment.d.ts +1 -1
- package/dist/src/segmented-button/SegmentedButton.d.ts +1 -1
- package/dist/src/select/Select.d.ts +1 -1
- package/dist/src/shape/Shape.d.ts +1 -1
- package/dist/src/slide-group/SlideGroup.d.ts +1 -1
- package/dist/src/slider/Slider.d.ts +1 -1
- package/dist/src/slider/SliderThumb.d.ts +1 -1
- package/dist/src/split-button/SplitButton.d.ts +1 -1
- package/dist/src/stepper/Step.d.ts +1 -1
- package/dist/src/stepper/StepPanel.d.ts +1 -1
- package/dist/src/stepper/Stepper.d.ts +1 -1
- package/dist/src/stepper/StepperNext.d.ts +1 -1
- package/dist/src/stepper/StepperPrevious.d.ts +1 -1
- package/dist/src/stepper/StepperReset.d.ts +1 -1
- package/dist/src/switch/Switch.d.ts +1 -1
- package/dist/src/tabs/Tab.d.ts +1 -1
- package/dist/src/tabs/TabPanel.d.ts +1 -1
- package/dist/src/tabs/Tabs.d.ts +1 -1
- package/dist/src/textarea-autosize/TextareaAutosize.d.ts +1 -1
- package/dist/src/theme/Theme.d.ts +1 -1
- package/dist/src/toc/Toc.d.ts +1 -1
- package/dist/src/toolbar/Toolbar.d.ts +1 -1
- package/dist/src/tooltip/RichTooltip.d.ts +1 -1
- package/dist/src/tooltip/RichTooltipAction.d.ts +1 -1
- package/dist/src/tooltip/Tooltip.d.ts +1 -1
- package/dist/src/utils/createComponent.d.ts +29 -0
- package/dist/src/utils/createComponent.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/stepper.js +38 -7
- package/dist/stepper.js.map +1 -1
- package/dist/stepper.min.js +1 -1
- package/dist/stepper.min.js.map +1 -1
- package/dist/switch.js +33 -2
- package/dist/switch.js.map +1 -1
- package/dist/switch.min.js +1 -1
- package/dist/switch.min.js.map +1 -1
- package/dist/tabs.js +35 -4
- package/dist/tabs.js.map +1 -1
- package/dist/tabs.min.js +1 -1
- package/dist/tabs.min.js.map +1 -1
- package/dist/textarea-autosize.js +33 -2
- package/dist/textarea-autosize.js.map +1 -1
- package/dist/textarea-autosize.min.js +1 -1
- package/dist/textarea-autosize.min.js.map +1 -1
- package/dist/theme.js +33 -2
- package/dist/theme.js.map +1 -1
- package/dist/theme.min.js +1 -1
- package/dist/theme.min.js.map +1 -1
- package/dist/toc.js +33 -2
- package/dist/toc.js.map +1 -1
- package/dist/toc.min.js +1 -1
- package/dist/toc.min.js.map +1 -1
- package/dist/toolbar.js +33 -2
- package/dist/toolbar.js.map +1 -1
- package/dist/toolbar.min.js +1 -1
- package/dist/toolbar.min.js.map +1 -1
- package/dist/tooltip.js +35 -4
- package/dist/tooltip.js.map +1 -1
- package/dist/tooltip.min.js +1 -1
- package/dist/tooltip.min.js.map +1 -1
- package/package.json +6 -2
package/dist/menu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","sources":["../../src/menu/Menu.ts","../../src/menu/MenuItem.ts","../../src/menu/MenuItemCheckbox.ts","../../src/menu/MenuItemGroup.ts","../../src/menu/MenuItemRadio.ts","../../src/menu/MenuTrigger.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eMenuElement } from \"@m3e/web/menu\";\r\nexport type { MenuPositionX, MenuPositionY, MenuVariant, M3eMenuElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu` Web Component from `@m3e/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-menu>` instance for imperative access.\r\n *\r\n * See the `m3e-menu` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenu = createComponent({\r\n tagName: \"m3e-menu\",\r\n elementClass: M3eMenuElement,\r\n react: React,\r\n events: {\r\n onBeforeToggle: \"beforetoggle\",\r\n onToggle: \"toggle\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eMenuItemElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuItemElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-item` Web Component from `@m3e/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-item>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-menu-item>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-item` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuItem = createComponent({\r\n tagName: \"m3e-menu-item\",\r\n elementClass: M3eMenuItemElement,\r\n react: React,\r\n events: {\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eMenuItemCheckboxElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuItemCheckboxElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-item-checkbox` Web Component from `@m3e/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-item-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-menu-item-checkbox>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-item-checkbox` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuItemCheckbox = createComponent({\r\n tagName: \"m3e-menu-item-checkbox\",\r\n elementClass: M3eMenuItemCheckboxElement,\r\n react: React,\r\n events: {\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eMenuItemGroupElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuItemGroupElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-item-group` Web Component from `@m3e/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-item-group>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-menu-item-group>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-item-group` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuItemGroup = createComponent({\r\n tagName: \"m3e-menu-item-group\",\r\n elementClass: M3eMenuItemGroupElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eMenuItemRadioElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuItemRadioElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-item-radio` Web Component from `@m3e/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-item-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-menu-item-radio>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-item-radio` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuItemRadio = createComponent({\r\n tagName: \"m3e-menu-item-radio\",\r\n elementClass: M3eMenuItemRadioElement,\r\n react: React,\r\n events: {\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eMenuTriggerElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuTriggerElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-trigger` Web Component from `@m3e/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-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-menu-trigger>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-trigger` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuTrigger = createComponent({\r\n tagName: \"m3e-menu-trigger\",\r\n elementClass: M3eMenuTriggerElement,\r\n react: React,\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,OAAO,GAAG,eAAe,CAAC;AACrC,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,cAAc,EAAE,cAAc;AAC9B,QAAA,QAAQ,EAAE,QAAQ;AACnB,KAAA;AACF,CAAA;;ACrBD;;;;;;;;;;;;AAYG;AACI,MAAM,WAAW,GAAG,eAAe,CAAC;AACzC,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,YAAY,EAAE,kBAAkB;AAChC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,OAAO,EAAE,OAAO;AACjB,KAAA;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAM,mBAAmB,GAAG,eAAe,CAAC;AACjD,IAAA,OAAO,EAAE,wBAAwB;AACjC,IAAA,YAAY,EAAE,0BAA0B;AACxC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,OAAO,EAAE,OAAO;AACjB,KAAA;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC9C,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,YAAY,EAAE,uBAAuB;AACrC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC9C,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,YAAY,EAAE,uBAAuB;AACrC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,OAAO,EAAE,OAAO;AACjB,KAAA;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAM,cAAc,GAAG,eAAe,CAAC;AAC5C,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,YAAY,EAAE,qBAAqB;AACnC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"menu.js","sources":["../../src/utils/createComponent.ts","../../src/menu/Menu.ts","../../src/menu/MenuItem.ts","../../src/menu/MenuItemCheckbox.ts","../../src/menu/MenuItemGroup.ts","../../src/menu/MenuItemRadio.ts","../../src/menu/MenuTrigger.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 { M3eMenuElement } from \"@m3e/web/menu\";\r\nexport type { MenuPositionX, MenuPositionY, MenuVariant, M3eMenuElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu` Web Component from `@m3e/web/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-menu>` instance for imperative access.\r\n *\r\n * See the `m3e-menu` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenu = createComponent({\r\n tagName: \"m3e-menu\",\r\n elementClass: M3eMenuElement,\r\n react: React,\r\n events: {\r\n onBeforeToggle: \"beforetoggle\",\r\n onToggle: \"toggle\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eMenuItemElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuItemElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-item` Web Component from `@m3e/web/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-item>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-menu-item>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-item` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuItem = createComponent({\r\n tagName: \"m3e-menu-item\",\r\n elementClass: M3eMenuItemElement,\r\n react: React,\r\n events: {\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eMenuItemCheckboxElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuItemCheckboxElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-item-checkbox` Web Component from `@m3e/web/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-item-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-menu-item-checkbox>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-item-checkbox` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuItemCheckbox = createComponent({\r\n tagName: \"m3e-menu-item-checkbox\",\r\n elementClass: M3eMenuItemCheckboxElement,\r\n react: React,\r\n events: {\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eMenuItemGroupElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuItemGroupElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-item-group` Web Component from `@m3e/web/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-item-group>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-menu-item-group>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-item-group` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuItemGroup = createComponent({\r\n tagName: \"m3e-menu-item-group\",\r\n elementClass: M3eMenuItemGroupElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eMenuItemRadioElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuItemRadioElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-item-radio` Web Component from `@m3e/web/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-item-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-menu-item-radio>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-item-radio` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuItemRadio = createComponent({\r\n tagName: \"m3e-menu-item-radio\",\r\n elementClass: M3eMenuItemRadioElement,\r\n react: React,\r\n events: {\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eMenuTriggerElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuTriggerElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-trigger` Web Component from `@m3e/web/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-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-menu-trigger>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-trigger` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuTrigger = createComponent({\r\n tagName: \"m3e-menu-trigger\",\r\n elementClass: M3eMenuTriggerElement,\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,OAAO,GAAG,eAAe,CAAC;AACrC,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,cAAc,EAAE,cAAc;AAC9B,QAAA,QAAQ,EAAE,QAAQ;AACnB,KAAA;AACF,CAAA;;ACrBD;;;;;;;;;;;;AAYG;AACI,MAAM,WAAW,GAAG,eAAe,CAAC;AACzC,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,YAAY,EAAE,kBAAkB;AAChC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,OAAO,EAAE,OAAO;AACjB,KAAA;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAM,mBAAmB,GAAG,eAAe,CAAC;AACjD,IAAA,OAAO,EAAE,wBAAwB;AACjC,IAAA,YAAY,EAAE,0BAA0B;AACxC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,OAAO,EAAE,OAAO;AACjB,KAAA;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC9C,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,YAAY,EAAE,uBAAuB;AACrC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC9C,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,YAAY,EAAE,uBAAuB;AACrC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,OAAO,EAAE,OAAO;AACjB,KAAA;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAM,cAAc,GAAG,eAAe,CAAC;AAC5C,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,YAAY,EAAE,qBAAqB;AACnC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
package/dist/menu.min.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
* Copyright (c) 2025 matraic
|
|
5
5
|
* See LICENSE file in the project root for full license text.
|
|
6
|
-
*/import e from"react";import{createComponent as t}from"@lit/react";import{M3eMenuElement as m,M3eMenuItemElement as a,M3eMenuItemCheckboxElement as
|
|
6
|
+
*/import e from"react";import{createComponent as t}from"@lit/react";import{M3eMenuElement as m,M3eMenuItemElement as a,M3eMenuItemCheckboxElement as n,M3eMenuItemGroupElement as l,M3eMenuItemRadioElement as o,M3eMenuTriggerElement as s}from"@m3e/web/menu";function r({react:e,tagName:m,elementClass:a,events:n,displayName:l}){return"undefined"!=typeof window?t({react:e,tagName:m,elementClass:a,events:n,displayName:l}):null}const c=r({tagName:"m3e-menu",elementClass:m,react:e,events:{onBeforeToggle:"beforetoggle",onToggle:"toggle"}}),i=r({tagName:"m3e-menu-item",elementClass:a,react:e,events:{onClick:"click"}}),g=r({tagName:"m3e-menu-item-checkbox",elementClass:n,react:e,events:{onClick:"click"}}),u=r({tagName:"m3e-menu-item-group",elementClass:l,react:e}),C=r({tagName:"m3e-menu-item-radio",elementClass:o,react:e,events:{onClick:"click"}}),N=r({tagName:"m3e-menu-trigger",elementClass:s,react:e});export{c as M3eMenu,i as M3eMenuItem,g as M3eMenuItemCheckbox,u as M3eMenuItemGroup,C as M3eMenuItemRadio,N as M3eMenuTrigger};
|
|
7
7
|
//# sourceMappingURL=menu.min.js.map
|
package/dist/menu.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.min.js","sources":["../../src/menu/Menu.ts","../../src/menu/MenuItem.ts","../../src/menu/MenuItemCheckbox.ts","../../src/menu/MenuItemGroup.ts","../../src/menu/MenuItemRadio.ts","../../src/menu/MenuTrigger.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"
|
|
1
|
+
{"version":3,"file":"menu.min.js","sources":["../../src/utils/createComponent.ts","../../src/menu/Menu.ts","../../src/menu/MenuItem.ts","../../src/menu/MenuItemCheckbox.ts","../../src/menu/MenuItemGroup.ts","../../src/menu/MenuItemRadio.ts","../../src/menu/MenuTrigger.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 { M3eMenuElement } from \"@m3e/web/menu\";\r\nexport type { MenuPositionX, MenuPositionY, MenuVariant, M3eMenuElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu` Web Component from `@m3e/web/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-menu>` instance for imperative access.\r\n *\r\n * See the `m3e-menu` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenu = createComponent({\r\n tagName: \"m3e-menu\",\r\n elementClass: M3eMenuElement,\r\n react: React,\r\n events: {\r\n onBeforeToggle: \"beforetoggle\",\r\n onToggle: \"toggle\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eMenuItemElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuItemElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-item` Web Component from `@m3e/web/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-item>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-menu-item>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-item` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuItem = createComponent({\r\n tagName: \"m3e-menu-item\",\r\n elementClass: M3eMenuItemElement,\r\n react: React,\r\n events: {\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eMenuItemCheckboxElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuItemCheckboxElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-item-checkbox` Web Component from `@m3e/web/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-item-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-menu-item-checkbox>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-item-checkbox` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuItemCheckbox = createComponent({\r\n tagName: \"m3e-menu-item-checkbox\",\r\n elementClass: M3eMenuItemCheckboxElement,\r\n react: React,\r\n events: {\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eMenuItemGroupElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuItemGroupElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-item-group` Web Component from `@m3e/web/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-item-group>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-menu-item-group>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-item-group` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuItemGroup = createComponent({\r\n tagName: \"m3e-menu-item-group\",\r\n elementClass: M3eMenuItemGroupElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eMenuItemRadioElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuItemRadioElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-item-radio` Web Component from `@m3e/web/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-item-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-menu-item-radio>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-item-radio` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuItemRadio = createComponent({\r\n tagName: \"m3e-menu-item-radio\",\r\n elementClass: M3eMenuItemRadioElement,\r\n react: React,\r\n events: {\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eMenuTriggerElement } from \"@m3e/web/menu\";\r\nexport type { M3eMenuTriggerElement } from \"@m3e/web/menu\";\r\n\r\n/**\r\n * React binding for the `m3e-menu-trigger` Web Component from `@m3e/web/menu`.\r\n *\r\n * This component renders the underlying `<m3e-menu-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-menu-trigger>` instance for imperative access.\r\n *\r\n * See the `m3e-menu-trigger` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eMenuTrigger = createComponent({\r\n tagName: \"m3e-menu-trigger\",\r\n elementClass: M3eMenuTriggerElement,\r\n react: React,\r\n});\r\n"],"names":["createComponent","react","tagName","elementClass","events","displayName","window","createReactComponent","M3eMenu","M3eMenuElement","React","onBeforeToggle","onToggle","M3eMenuItem","M3eMenuItemElement","onClick","M3eMenuItemCheckbox","M3eMenuItemCheckboxElement","M3eMenuItemGroup","M3eMenuItemGroupElement","M3eMenuItemRadio","M3eMenuItemRadioElement","M3eMenuTrigger","M3eMenuTriggerElement"],"mappings":";;;;;iQA6BM,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,EAAUR,EAAgB,CACrCE,QAAS,WACTC,aAAcM,EACdR,MAAOS,EACPN,OAAQ,CACNO,eAAgB,eAChBC,SAAU,YCNDC,EAAcb,EAAgB,CACzCE,QAAS,gBACTC,aAAcW,EACdb,MAAOS,EACPN,OAAQ,CACNW,QAAS,WCLAC,EAAsBhB,EAAgB,CACjDE,QAAS,yBACTC,aAAcc,EACdhB,MAAOS,EACPN,OAAQ,CACNW,QAAS,WCLAG,EAAmBlB,EAAgB,CAC9CE,QAAS,sBACTC,aAAcgB,EACdlB,MAAOS,ICHIU,EAAmBpB,EAAgB,CAC9CE,QAAS,sBACTC,aAAckB,EACdpB,MAAOS,EACPN,OAAQ,CACNW,QAAS,WCLAO,EAAiBtB,EAAgB,CAC5CE,QAAS,mBACTC,aAAcoB,EACdtB,MAAOS"}
|
package/dist/nav-bar.js
CHANGED
|
@@ -6,11 +6,42 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { createComponent } from '@lit/react';
|
|
9
|
+
import { createComponent as createComponent$1 } from '@lit/react';
|
|
10
10
|
import { M3eNavBarElement, M3eNavItemElement } from '@m3e/web/nav-bar';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* React
|
|
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
|
+
/**
|
|
44
|
+
* React binding for the `m3e-nav-bar` Web Component from `@m3e/web/nav-bar`.
|
|
14
45
|
*
|
|
15
46
|
* This component renders the underlying `<m3e-nav-bar>` element and exposes its
|
|
16
47
|
* properties, attributes, and events through an idiomatic React interface.
|
|
@@ -32,7 +63,7 @@ const M3eNavBar = createComponent({
|
|
|
32
63
|
});
|
|
33
64
|
|
|
34
65
|
/**
|
|
35
|
-
* React binding for the `m3e-nav-item` Web Component from `@m3e/nav-bar`.
|
|
66
|
+
* React binding for the `m3e-nav-item` Web Component from `@m3e/web/nav-bar`.
|
|
36
67
|
*
|
|
37
68
|
* This component renders the underlying `<m3e-nav-item>` element and exposes its
|
|
38
69
|
* properties, attributes, and events through an idiomatic React interface.
|
package/dist/nav-bar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-bar.js","sources":["../../src/nav-bar/NavBar.ts","../../src/nav-bar/NavItem.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"
|
|
1
|
+
{"version":3,"file":"nav-bar.js","sources":["../../src/utils/createComponent.ts","../../src/nav-bar/NavBar.ts","../../src/nav-bar/NavItem.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 { M3eNavBarElement } from \"@m3e/web/nav-bar\";\r\nexport type { NavBarMode, NavItemOrientation, M3eNavBarElement } from \"@m3e/web/nav-bar\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-bar` Web Component from `@m3e/web/nav-bar`.\r\n *\r\n * This component renders the underlying `<m3e-nav-bar>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-bar>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-bar` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavBar = createComponent({\r\n tagName: \"m3e-nav-bar\",\r\n elementClass: M3eNavBarElement,\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 { M3eNavItemElement } from \"@m3e/web/nav-bar\";\r\nexport type { M3eNavItemElement } from \"@m3e/web/nav-bar\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-item` Web Component from `@m3e/web/nav-bar`.\r\n *\r\n * This component renders the underlying `<m3e-nav-item>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-item>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-item` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavItem = createComponent({\r\n tagName: \"m3e-nav-item\",\r\n elementClass: M3eNavItemElement,\r\n react: React,\r\n events: {\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n onClick: \"click\",\r\n },\r\n});\r\n"],"names":["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,aAAa;AACtB,IAAA,YAAY,EAAE,gBAAgB;AAC9B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,QAAQ,EAAE,QAAQ;AACnB,KAAA;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAM,UAAU,GAAG,eAAe,CAAC;AACxC,IAAA,OAAO,EAAE,cAAc;AACvB,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,QAAQ,EAAE,QAAQ;AAClB,QAAA,OAAO,EAAE,OAAO;AACjB,KAAA;AACF,CAAA;;;;"}
|
package/dist/nav-bar.min.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
* Copyright (c) 2025 matraic
|
|
5
5
|
* See LICENSE file in the project root for full license text.
|
|
6
|
-
*/import e from"react";import{createComponent as
|
|
6
|
+
*/import e from"react";import{createComponent as a}from"@lit/react";import{M3eNavBarElement as t,M3eNavItemElement as n}from"@m3e/web/nav-bar";function m({react:e,tagName:t,elementClass:n,events:m,displayName:r}){return"undefined"!=typeof window?a({react:e,tagName:t,elementClass:n,events:m,displayName:r}):null}const r=m({tagName:"m3e-nav-bar",elementClass:t,react:e,events:{onChange:"change"}}),o=m({tagName:"m3e-nav-item",elementClass:n,react:e,events:{onInput:"input",onChange:"change",onClick:"click"}});export{r as M3eNavBar,o as M3eNavItem};
|
|
7
7
|
//# sourceMappingURL=nav-bar.min.js.map
|
package/dist/nav-bar.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-bar.min.js","sources":["../../src/nav-bar/NavBar.ts","../../src/nav-bar/NavItem.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"
|
|
1
|
+
{"version":3,"file":"nav-bar.min.js","sources":["../../src/utils/createComponent.ts","../../src/nav-bar/NavBar.ts","../../src/nav-bar/NavItem.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 { M3eNavBarElement } from \"@m3e/web/nav-bar\";\r\nexport type { NavBarMode, NavItemOrientation, M3eNavBarElement } from \"@m3e/web/nav-bar\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-bar` Web Component from `@m3e/web/nav-bar`.\r\n *\r\n * This component renders the underlying `<m3e-nav-bar>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-bar>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-bar` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavBar = createComponent({\r\n tagName: \"m3e-nav-bar\",\r\n elementClass: M3eNavBarElement,\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 { M3eNavItemElement } from \"@m3e/web/nav-bar\";\r\nexport type { M3eNavItemElement } from \"@m3e/web/nav-bar\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-item` Web Component from `@m3e/web/nav-bar`.\r\n *\r\n * This component renders the underlying `<m3e-nav-item>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-item>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-item` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavItem = createComponent({\r\n tagName: \"m3e-nav-item\",\r\n elementClass: M3eNavItemElement,\r\n react: React,\r\n events: {\r\n onInput: \"input\",\r\n onChange: \"change\",\r\n onClick: \"click\",\r\n },\r\n});\r\n"],"names":["createComponent","react","tagName","elementClass","events","displayName","window","createReactComponent","M3eNavBar","M3eNavBarElement","React","onChange","M3eNavItem","M3eNavItemElement","onInput","onClick"],"mappings":";;;;;gJA6BM,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,cACTC,aAAcM,EACdR,MAAOS,EACPN,OAAQ,CACNO,SAAU,YCLDC,EAAaZ,EAAgB,CACxCE,QAAS,eACTC,aAAcU,EACdZ,MAAOS,EACPN,OAAQ,CACNU,QAAS,QACTH,SAAU,SACVI,QAAS"}
|
package/dist/nav-menu.js
CHANGED
|
@@ -6,11 +6,42 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { createComponent } from '@lit/react';
|
|
9
|
+
import { createComponent as createComponent$1 } from '@lit/react';
|
|
10
10
|
import { M3eNavMenuElement, M3eNavMenuItemElement, M3eNavMenuItemGroupElement } from '@m3e/web/nav-menu';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* React
|
|
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
|
+
/**
|
|
44
|
+
* React binding for the `m3e-nav-menu` Web Component from `@m3e/web/nav-menu`.
|
|
14
45
|
*
|
|
15
46
|
* This component renders the underlying `<m3e-nav-menu>` element and exposes its
|
|
16
47
|
* properties, attributes, and events through an idiomatic React interface.
|
|
@@ -29,7 +60,7 @@ const M3eNavMenu = createComponent({
|
|
|
29
60
|
});
|
|
30
61
|
|
|
31
62
|
/**
|
|
32
|
-
* React binding for the `m3e-nav-menu-item` Web Component from `@m3e/nav-menu`.
|
|
63
|
+
* React binding for the `m3e-nav-menu-item` Web Component from `@m3e/web/nav-menu`.
|
|
33
64
|
*
|
|
34
65
|
* This component renders the underlying `<m3e-nav-menu-item>` element and exposes its
|
|
35
66
|
* properties, attributes, and events through an idiomatic React interface.
|
|
@@ -55,7 +86,7 @@ const M3eNavMenuItem = createComponent({
|
|
|
55
86
|
});
|
|
56
87
|
|
|
57
88
|
/**
|
|
58
|
-
* React binding for the `m3e-nav-menu-item-group` Web Component from `@m3e/nav-menu`.
|
|
89
|
+
* React binding for the `m3e-nav-menu-item-group` Web Component from `@m3e/web/nav-menu`.
|
|
59
90
|
*
|
|
60
91
|
* This component renders the underlying `<m3e-nav-menu-item-group>` element and exposes its
|
|
61
92
|
* properties, attributes, and events through an idiomatic React interface.
|
package/dist/nav-menu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-menu.js","sources":["../../src/nav-menu/NavMenu.ts","../../src/nav-menu/NavMenuItem.ts","../../src/nav-menu/NavMenuItemGroup.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"
|
|
1
|
+
{"version":3,"file":"nav-menu.js","sources":["../../src/utils/createComponent.ts","../../src/nav-menu/NavMenu.ts","../../src/nav-menu/NavMenuItem.ts","../../src/nav-menu/NavMenuItemGroup.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 { M3eNavMenuElement } from \"@m3e/web/nav-menu\";\r\nexport type { M3eNavMenuElement } from \"@m3e/web/nav-menu\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-menu` Web Component from `@m3e/web/nav-menu`.\r\n *\r\n * This component renders the underlying `<m3e-nav-menu>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-menu>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-menu` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavMenu = createComponent({\r\n tagName: \"m3e-nav-menu\",\r\n elementClass: M3eNavMenuElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eNavMenuItemElement } from \"@m3e/web/nav-menu\";\r\nexport type { M3eNavMenuItemElement } from \"@m3e/web/nav-menu\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-menu-item` Web Component from `@m3e/web/nav-menu`.\r\n *\r\n * This component renders the underlying `<m3e-nav-menu-item>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-menu-item>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-menu-item` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavMenuItem = createComponent({\r\n tagName: \"m3e-nav-menu-item\",\r\n elementClass: M3eNavMenuItemElement,\r\n react: React,\r\n events: {\r\n onOpening: \"opening\",\r\n onOpened: \"opened\",\r\n onClosing: \"closing\",\r\n onClosed: \"closed\",\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eNavMenuItemGroupElement } from \"@m3e/web/nav-menu\";\r\nexport type { M3eNavMenuItemGroupElement } from \"@m3e/web/nav-menu\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-menu-item-group` Web Component from `@m3e/web/nav-menu`.\r\n *\r\n * This component renders the underlying `<m3e-nav-menu-item-group>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-menu-item-group>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-menu-item-group` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavMenuItemGroup = createComponent({\r\n tagName: \"m3e-nav-menu-item-group\",\r\n elementClass: M3eNavMenuItemGroupElement,\r\n react: React,\r\n});\r\n"],"names":["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,cAAc;AACvB,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,cAAc,GAAG,eAAe,CAAC;AAC5C,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,YAAY,EAAE,qBAAqB;AACnC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,SAAS,EAAE,SAAS;AACpB,QAAA,QAAQ,EAAE,QAAQ;AAClB,QAAA,SAAS,EAAE,SAAS;AACpB,QAAA,QAAQ,EAAE,QAAQ;AAClB,QAAA,OAAO,EAAE,OAAO;AACjB,KAAA;AACF,CAAA;;ACxBD;;;;;;;;;;;;AAYG;AACI,MAAM,mBAAmB,GAAG,eAAe,CAAC;AACjD,IAAA,OAAO,EAAE,yBAAyB;AAClC,IAAA,YAAY,EAAE,0BAA0B;AACxC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
package/dist/nav-menu.min.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
* Copyright (c) 2025 matraic
|
|
5
5
|
* See LICENSE file in the project root for full license text.
|
|
6
|
-
*/import e from"react";import{createComponent as n}from"@lit/react";import{M3eNavMenuElement as
|
|
6
|
+
*/import e from"react";import{createComponent as n}from"@lit/react";import{M3eNavMenuElement as t,M3eNavMenuItemElement as a,M3eNavMenuItemGroupElement as m}from"@m3e/web/nav-menu";function o({react:e,tagName:t,elementClass:a,events:m,displayName:o}){return"undefined"!=typeof window?n({react:e,tagName:t,elementClass:a,events:m,displayName:o}):null}const l=o({tagName:"m3e-nav-menu",elementClass:t,react:e}),s=o({tagName:"m3e-nav-menu-item",elementClass:a,react:e,events:{onOpening:"opening",onOpened:"opened",onClosing:"closing",onClosed:"closed",onClick:"click"}}),i=o({tagName:"m3e-nav-menu-item-group",elementClass:m,react:e});export{l as M3eNavMenu,s as M3eNavMenuItem,i as M3eNavMenuItemGroup};
|
|
7
7
|
//# sourceMappingURL=nav-menu.min.js.map
|
package/dist/nav-menu.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-menu.min.js","sources":["../../src/nav-menu/NavMenu.ts","../../src/nav-menu/NavMenuItem.ts","../../src/nav-menu/NavMenuItemGroup.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"
|
|
1
|
+
{"version":3,"file":"nav-menu.min.js","sources":["../../src/utils/createComponent.ts","../../src/nav-menu/NavMenu.ts","../../src/nav-menu/NavMenuItem.ts","../../src/nav-menu/NavMenuItemGroup.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 { M3eNavMenuElement } from \"@m3e/web/nav-menu\";\r\nexport type { M3eNavMenuElement } from \"@m3e/web/nav-menu\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-menu` Web Component from `@m3e/web/nav-menu`.\r\n *\r\n * This component renders the underlying `<m3e-nav-menu>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-menu>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-menu` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavMenu = createComponent({\r\n tagName: \"m3e-nav-menu\",\r\n elementClass: M3eNavMenuElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eNavMenuItemElement } from \"@m3e/web/nav-menu\";\r\nexport type { M3eNavMenuItemElement } from \"@m3e/web/nav-menu\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-menu-item` Web Component from `@m3e/web/nav-menu`.\r\n *\r\n * This component renders the underlying `<m3e-nav-menu-item>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-menu-item>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-menu-item` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavMenuItem = createComponent({\r\n tagName: \"m3e-nav-menu-item\",\r\n elementClass: M3eNavMenuItemElement,\r\n react: React,\r\n events: {\r\n onOpening: \"opening\",\r\n onOpened: \"opened\",\r\n onClosing: \"closing\",\r\n onClosed: \"closed\",\r\n onClick: \"click\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eNavMenuItemGroupElement } from \"@m3e/web/nav-menu\";\r\nexport type { M3eNavMenuItemGroupElement } from \"@m3e/web/nav-menu\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-menu-item-group` Web Component from `@m3e/web/nav-menu`.\r\n *\r\n * This component renders the underlying `<m3e-nav-menu-item-group>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-menu-item-group>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-menu-item-group` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavMenuItemGroup = createComponent({\r\n tagName: \"m3e-nav-menu-item-group\",\r\n elementClass: M3eNavMenuItemGroupElement,\r\n react: React,\r\n});\r\n"],"names":["createComponent","react","tagName","elementClass","events","displayName","window","createReactComponent","M3eNavMenu","M3eNavMenuElement","React","M3eNavMenuItem","M3eNavMenuItemElement","onOpening","onOpened","onClosing","onClosed","onClick","M3eNavMenuItemGroup","M3eNavMenuItemGroupElement"],"mappings":";;;;;sLA6BM,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,EAAaR,EAAgB,CACxCE,QAAS,eACTC,aAAcM,EACdR,MAAOS,ICHIC,EAAiBX,EAAgB,CAC5CE,QAAS,oBACTC,aAAcS,EACdX,MAAOS,EACPN,OAAQ,CACNS,UAAW,UACXC,SAAU,SACVC,UAAW,UACXC,SAAU,SACVC,QAAS,WCTAC,EAAsBlB,EAAgB,CACjDE,QAAS,0BACTC,aAAcgB,EACdlB,MAAOS"}
|
package/dist/nav-rail.js
CHANGED
|
@@ -6,11 +6,42 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { createComponent } from '@lit/react';
|
|
9
|
+
import { createComponent as createComponent$1 } from '@lit/react';
|
|
10
10
|
import { M3eNavRailElement, M3eNavRailToggleElement } from '@m3e/web/nav-rail';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* React
|
|
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
|
+
/**
|
|
44
|
+
* React binding for the `m3e-nav-rail` Web Component from `@m3e/web/nav-rail`.
|
|
14
45
|
*
|
|
15
46
|
* This component renders the underlying `<m3e-nav-rail>` element and exposes its
|
|
16
47
|
* properties, attributes, and events through an idiomatic React interface.
|
|
@@ -32,7 +63,7 @@ const M3eNavRail = createComponent({
|
|
|
32
63
|
});
|
|
33
64
|
|
|
34
65
|
/**
|
|
35
|
-
* React binding for the `m3e-nav-rail-toggle` Web Component from `@m3e/nav-rail`.
|
|
66
|
+
* React binding for the `m3e-nav-rail-toggle` Web Component from `@m3e/web/nav-rail`.
|
|
36
67
|
*
|
|
37
68
|
* This component renders the underlying `<m3e-nav-rail-toggle>` element and exposes its
|
|
38
69
|
* properties, attributes, and events through an idiomatic React interface.
|
package/dist/nav-rail.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-rail.js","sources":["../../src/nav-rail/NavRail.ts","../../src/nav-rail/NavRailToggle.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"
|
|
1
|
+
{"version":3,"file":"nav-rail.js","sources":["../../src/utils/createComponent.ts","../../src/nav-rail/NavRail.ts","../../src/nav-rail/NavRailToggle.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 { M3eNavRailElement } from \"@m3e/web/nav-rail\";\r\nexport type { M3eNavRailElement } from \"@m3e/web/nav-rail\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-rail` Web Component from `@m3e/web/nav-rail`.\r\n *\r\n * This component renders the underlying `<m3e-nav-rail>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-rail>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-rail` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavRail = createComponent({\r\n tagName: \"m3e-nav-rail\",\r\n elementClass: M3eNavRailElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eNavRailToggleElement } from \"@m3e/web/nav-rail\";\r\nexport type { M3eNavRailToggleElement } from \"@m3e/web/nav-rail\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-rail-toggle` Web Component from `@m3e/web/nav-rail`.\r\n *\r\n * This component renders the underlying `<m3e-nav-rail-toggle>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-rail-toggle>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-rail-toggle` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavRailToggle = createComponent({\r\n tagName: \"m3e-nav-rail-toggle\",\r\n elementClass: M3eNavRailToggleElement,\r\n react: React,\r\n});\r\n"],"names":["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,cAAc;AACvB,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,QAAQ,EAAE,QAAQ;AACnB,KAAA;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC9C,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,YAAY,EAAE,uBAAuB;AACrC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
package/dist/nav-rail.min.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
* Copyright (c) 2025 matraic
|
|
5
5
|
* See LICENSE file in the project root for full license text.
|
|
6
|
-
*/import e from"react";import{createComponent as a}from"@lit/react";import{M3eNavRailElement as t,M3eNavRailToggleElement as
|
|
6
|
+
*/import e from"react";import{createComponent as a}from"@lit/react";import{M3eNavRailElement as t,M3eNavRailToggleElement as n}from"@m3e/web/nav-rail";function m({react:e,tagName:t,elementClass:n,events:m,displayName:r}){return"undefined"!=typeof window?a({react:e,tagName:t,elementClass:n,events:m,displayName:r}):null}const r=m({tagName:"m3e-nav-rail",elementClass:t,react:e,events:{onChange:"change"}}),l=m({tagName:"m3e-nav-rail-toggle",elementClass:n,react:e});export{r as M3eNavRail,l as M3eNavRailToggle};
|
|
7
7
|
//# sourceMappingURL=nav-rail.min.js.map
|
package/dist/nav-rail.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-rail.min.js","sources":["../../src/nav-rail/NavRail.ts","../../src/nav-rail/NavRailToggle.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"
|
|
1
|
+
{"version":3,"file":"nav-rail.min.js","sources":["../../src/utils/createComponent.ts","../../src/nav-rail/NavRail.ts","../../src/nav-rail/NavRailToggle.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 { M3eNavRailElement } from \"@m3e/web/nav-rail\";\r\nexport type { M3eNavRailElement } from \"@m3e/web/nav-rail\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-rail` Web Component from `@m3e/web/nav-rail`.\r\n *\r\n * This component renders the underlying `<m3e-nav-rail>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-rail>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-rail` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavRail = createComponent({\r\n tagName: \"m3e-nav-rail\",\r\n elementClass: M3eNavRailElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eNavRailToggleElement } from \"@m3e/web/nav-rail\";\r\nexport type { M3eNavRailToggleElement } from \"@m3e/web/nav-rail\";\r\n\r\n/**\r\n * React binding for the `m3e-nav-rail-toggle` Web Component from `@m3e/web/nav-rail`.\r\n *\r\n * This component renders the underlying `<m3e-nav-rail-toggle>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-nav-rail-toggle>` instance for imperative access.\r\n *\r\n * See the `m3e-nav-rail-toggle` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eNavRailToggle = createComponent({\r\n tagName: \"m3e-nav-rail-toggle\",\r\n elementClass: M3eNavRailToggleElement,\r\n react: React,\r\n});\r\n"],"names":["createComponent","react","tagName","elementClass","events","displayName","window","createReactComponent","M3eNavRail","M3eNavRailElement","React","onChange","M3eNavRailToggle","M3eNavRailToggleElement"],"mappings":";;;;;wJA6BM,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,EAAaR,EAAgB,CACxCE,QAAS,eACTC,aAAcM,EACdR,MAAOS,EACPN,OAAQ,CACNO,SAAU,YCLDC,EAAmBZ,EAAgB,CAC9CE,QAAS,sBACTC,aAAcU,EACdZ,MAAOS"}
|
package/dist/option.js
CHANGED
|
@@ -6,11 +6,42 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { createComponent } from '@lit/react';
|
|
9
|
+
import { createComponent as createComponent$1 } from '@lit/react';
|
|
10
10
|
import { M3eOptionElement, M3eOptGroupElement } from '@m3e/web/option';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* React
|
|
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
|
+
/**
|
|
44
|
+
* React binding for the `m3e-option` Web Component from `@m3e/web/option`.
|
|
14
45
|
*
|
|
15
46
|
* This component renders the underlying `<m3e-option>` element and exposes its
|
|
16
47
|
* properties, attributes, and events through an idiomatic React interface.
|
|
@@ -29,7 +60,7 @@ const M3eOption = createComponent({
|
|
|
29
60
|
});
|
|
30
61
|
|
|
31
62
|
/**
|
|
32
|
-
* React binding for the `m3e-optgroup` Web Component from `@m3e/option`.
|
|
63
|
+
* React binding for the `m3e-optgroup` Web Component from `@m3e/web/option`.
|
|
33
64
|
*
|
|
34
65
|
* This component renders the underlying `<m3e-optgroup>` element and exposes its
|
|
35
66
|
* properties, attributes, and events through an idiomatic React interface.
|
package/dist/option.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.js","sources":["../../src/option/Option.ts","../../src/option/OptGroup.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"
|
|
1
|
+
{"version":3,"file":"option.js","sources":["../../src/utils/createComponent.ts","../../src/option/Option.ts","../../src/option/OptGroup.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 { M3eOptionElement } from \"@m3e/web/option\";\r\nexport type { M3eOptionElement } from \"@m3e/web/option\";\r\n\r\n/**\r\n * React binding for the `m3e-option` Web Component from `@m3e/web/option`.\r\n *\r\n * This component renders the underlying `<m3e-option>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-option>` instance for imperative access.\r\n *\r\n * See the `m3e-option` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eOption = createComponent({\r\n tagName: \"m3e-option\",\r\n elementClass: M3eOptionElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eOptGroupElement } from \"@m3e/web/option\";\r\nexport type { M3eOptGroupElement } from \"@m3e/web/option\";\r\n\r\n/**\r\n * React binding for the `m3e-optgroup` Web Component from `@m3e/web/option`.\r\n *\r\n * This component renders the underlying `<m3e-optgroup>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-optgroup>` instance for imperative access.\r\n *\r\n * See the `m3e-optgroup` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eOptGroup = createComponent({\r\n tagName: \"m3e-optgroup\",\r\n elementClass: M3eOptGroupElement,\r\n react: React,\r\n});\r\n"],"names":["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;AACb,CAAA;;ACjBD;;;;;;;;;;;;AAYG;AACI,MAAM,WAAW,GAAG,eAAe,CAAC;AACzC,IAAA,OAAO,EAAE,cAAc;AACvB,IAAA,YAAY,EAAE,kBAAkB;AAChC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;;;"}
|
package/dist/option.min.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
* Copyright (c) 2025 matraic
|
|
5
5
|
* See LICENSE file in the project root for full license text.
|
|
6
|
-
*/import e from"react";import{createComponent as t}from"@lit/react";import{M3eOptionElement as
|
|
6
|
+
*/import e from"react";import{createComponent as t}from"@lit/react";import{M3eOptionElement as a,M3eOptGroupElement as m}from"@m3e/web/option";function n({react:e,tagName:a,elementClass:m,events:n,displayName:o}){return"undefined"!=typeof window?t({react:e,tagName:a,elementClass:m,events:n,displayName:o}):null}const o=n({tagName:"m3e-option",elementClass:a,react:e}),r=n({tagName:"m3e-optgroup",elementClass:m,react:e});export{r as M3eOptGroup,o as M3eOption};
|
|
7
7
|
//# sourceMappingURL=option.min.js.map
|
package/dist/option.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.min.js","sources":["../../src/option/Option.ts","../../src/option/OptGroup.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"
|
|
1
|
+
{"version":3,"file":"option.min.js","sources":["../../src/utils/createComponent.ts","../../src/option/Option.ts","../../src/option/OptGroup.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 { M3eOptionElement } from \"@m3e/web/option\";\r\nexport type { M3eOptionElement } from \"@m3e/web/option\";\r\n\r\n/**\r\n * React binding for the `m3e-option` Web Component from `@m3e/web/option`.\r\n *\r\n * This component renders the underlying `<m3e-option>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-option>` instance for imperative access.\r\n *\r\n * See the `m3e-option` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eOption = createComponent({\r\n tagName: \"m3e-option\",\r\n elementClass: M3eOptionElement,\r\n react: React,\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"../utils\";\r\n\r\nimport { M3eOptGroupElement } from \"@m3e/web/option\";\r\nexport type { M3eOptGroupElement } from \"@m3e/web/option\";\r\n\r\n/**\r\n * React binding for the `m3e-optgroup` Web Component from `@m3e/web/option`.\r\n *\r\n * This component renders the underlying `<m3e-optgroup>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-optgroup>` instance for imperative access.\r\n *\r\n * See the `m3e-optgroup` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eOptGroup = createComponent({\r\n tagName: \"m3e-optgroup\",\r\n elementClass: M3eOptGroupElement,\r\n react: React,\r\n});\r\n"],"names":["createComponent","react","tagName","elementClass","events","displayName","window","createReactComponent","M3eOption","M3eOptionElement","React","M3eOptGroup","M3eOptGroupElement"],"mappings":";;;;;gJA6BM,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,ICHIC,EAAcX,EAAgB,CACzCE,QAAS,eACTC,aAAcS,EACdX,MAAOS"}
|
package/dist/paginator.js
CHANGED
|
@@ -10,7 +10,7 @@ import { createComponent } from '@lit/react';
|
|
|
10
10
|
import { M3ePaginatorElement } from '@m3e/web/paginator';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* React binding for the `m3e-paginator` Web Component from `@m3e/paginator`.
|
|
13
|
+
* React binding for the `m3e-paginator` Web Component from `@m3e/web/paginator`.
|
|
14
14
|
*
|
|
15
15
|
* This component renders the underlying `<m3e-paginator>` element and exposes its
|
|
16
16
|
* properties, attributes, and events through an idiomatic React interface.
|
package/dist/paginator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paginator.js","sources":["../../src/paginator/Paginator.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3ePaginatorElement, PageEventDetail } from \"@m3e/web/paginator\";\r\nexport type { M3ePaginatorElement, PageEventDetail } from \"@m3e/web/paginator\";\r\n\r\n/**\r\n * React binding for the `m3e-paginator` Web Component from `@m3e/paginator`.\r\n *\r\n * This component renders the underlying `<m3e-paginator>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-paginator>` instance for imperative access.\r\n *\r\n * See the `m3e-paginator` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePaginator = createComponent({\r\n tagName: \"m3e-paginator\",\r\n elementClass: M3ePaginatorElement,\r\n react: React,\r\n events: {\r\n onPage: \"page\" as EventName<CustomEvent<PageEventDetail>>,\r\n },\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,YAAY,GAAG,eAAe,CAAC;AAC1C,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,MAAM,EAAE,MAAiD;AAC1D,KAAA;AACF,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"paginator.js","sources":["../../src/paginator/Paginator.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3ePaginatorElement, PageEventDetail } from \"@m3e/web/paginator\";\r\nexport type { M3ePaginatorElement, PageEventDetail } from \"@m3e/web/paginator\";\r\n\r\n/**\r\n * React binding for the `m3e-paginator` Web Component from `@m3e/web/paginator`.\r\n *\r\n * This component renders the underlying `<m3e-paginator>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-paginator>` instance for imperative access.\r\n *\r\n * See the `m3e-paginator` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePaginator = createComponent({\r\n tagName: \"m3e-paginator\",\r\n elementClass: M3ePaginatorElement,\r\n react: React,\r\n events: {\r\n onPage: \"page\" as EventName<CustomEvent<PageEventDetail>>,\r\n },\r\n});\r\n"],"names":[],"mappings":";;;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAM,YAAY,GAAG,eAAe,CAAC;AAC1C,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,MAAM,EAAE,MAAiD;AAC1D,KAAA;AACF,CAAA;;;;"}
|