@momentum-design/components 0.81.1 → 0.81.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +168 -168
- package/dist/browser/index.js.map +4 -4
- package/dist/custom-elements.json +132 -357
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2 -3
- package/dist/react/index.d.ts +1 -2
- package/dist/react/index.js +1 -2
- package/dist/utils/mixins/MenuMixin.js +1 -3
- package/package.json +1 -1
- package/dist/components/menu/index.d.ts +0 -8
- package/dist/components/menu/index.js +0 -5
- package/dist/components/menu/menu.component.d.ts +0 -19
- package/dist/components/menu/menu.component.js +0 -35
- package/dist/components/menu/menu.constants.d.ts +0 -2
- package/dist/components/menu/menu.constants.js +0 -3
- package/dist/react/menu/index.d.ts +0 -13
- package/dist/react/menu/index.js +0 -22
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { queryAssignedElements } from 'lit/decorators.js';
|
|
11
|
-
import { ROLE } from '../../utils/roles';
|
|
12
|
-
import List from '../list/list.component';
|
|
13
|
-
import { TAG_NAME as MENUITEM_TAGNAME } from '../menuitem/menuitem.constants';
|
|
14
|
-
/**
|
|
15
|
-
* mdc-menu component is used to display a group of menu items. It is used as a container to wrap menu items.
|
|
16
|
-
* It contains the menu header component.
|
|
17
|
-
*
|
|
18
|
-
* @dependency mdc-text
|
|
19
|
-
*
|
|
20
|
-
* @tagname mdc-menu
|
|
21
|
-
*
|
|
22
|
-
* @slot default - This is a default/unnamed slot
|
|
23
|
-
*/
|
|
24
|
-
class Menu extends List {
|
|
25
|
-
connectedCallback() {
|
|
26
|
-
super.connectedCallback();
|
|
27
|
-
this.dataRole = ROLE.MENU;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
Menu.styles = [...List.styles];
|
|
31
|
-
__decorate([
|
|
32
|
-
queryAssignedElements({ selector: `${MENUITEM_TAGNAME}:not([disabled])` }),
|
|
33
|
-
__metadata("design:type", Array)
|
|
34
|
-
], Menu.prototype, "listItems", void 0);
|
|
35
|
-
export default Menu;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Component from '../../components/menu';
|
|
2
|
-
/**
|
|
3
|
-
* mdc-menu component is used to display a group of menu items. It is used as a container to wrap menu items.
|
|
4
|
-
* It contains the menu header component.
|
|
5
|
-
*
|
|
6
|
-
* @dependency mdc-text
|
|
7
|
-
*
|
|
8
|
-
* @tagname mdc-menu
|
|
9
|
-
*
|
|
10
|
-
* @slot default - This is a default/unnamed slot
|
|
11
|
-
*/
|
|
12
|
-
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
13
|
-
export default reactWrapper;
|
package/dist/react/menu/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { createComponent } from '@lit/react';
|
|
3
|
-
import Component from '../../components/menu';
|
|
4
|
-
import { TAG_NAME } from '../../components/menu/menu.constants';
|
|
5
|
-
/**
|
|
6
|
-
* mdc-menu component is used to display a group of menu items. It is used as a container to wrap menu items.
|
|
7
|
-
* It contains the menu header component.
|
|
8
|
-
*
|
|
9
|
-
* @dependency mdc-text
|
|
10
|
-
*
|
|
11
|
-
* @tagname mdc-menu
|
|
12
|
-
*
|
|
13
|
-
* @slot default - This is a default/unnamed slot
|
|
14
|
-
*/
|
|
15
|
-
const reactWrapper = createComponent({
|
|
16
|
-
tagName: TAG_NAME,
|
|
17
|
-
elementClass: Component,
|
|
18
|
-
react: React,
|
|
19
|
-
events: {},
|
|
20
|
-
displayName: 'Menu',
|
|
21
|
-
});
|
|
22
|
-
export default reactWrapper;
|