@instructure/ui-menu 9.0.2-snapshot-2 → 9.0.2-snapshot-4
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/CHANGELOG.md +1 -1
- package/es/Menu/MenuItem/index.js +4 -4
- package/es/Menu/MenuItemGroup/index.js +4 -4
- package/es/Menu/MenuItemSeparator/index.js +3 -3
- package/es/Menu/MenuItemSeparator/props.js +1 -0
- package/es/Menu/index.js +4 -4
- package/lib/Menu/MenuItem/index.js +4 -4
- package/lib/Menu/MenuItemGroup/index.js +4 -4
- package/lib/Menu/MenuItemSeparator/index.js +3 -3
- package/lib/Menu/MenuItemSeparator/props.js +1 -0
- package/lib/Menu/index.js +4 -4
- package/package.json +22 -22
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Menu/MenuItem/index.d.ts +4 -4
- package/types/Menu/MenuItem/index.d.ts.map +1 -1
- package/types/Menu/MenuItemGroup/index.d.ts +1 -1
- package/types/Menu/MenuItemSeparator/index.d.ts +1 -1
- package/types/Menu/MenuItemSeparator/index.d.ts.map +1 -1
- package/types/Menu/index.d.ts +1 -1
|
@@ -12,7 +12,7 @@ id: Menu.Item
|
|
|
12
12
|
**/
|
|
13
13
|
declare class MenuItem extends Component<MenuItemProps, MenuItemState> {
|
|
14
14
|
static readonly componentId = "Menu.Item";
|
|
15
|
-
static propTypes: import("@instructure/shared-types
|
|
15
|
+
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
defaultSelected?: boolean | undefined;
|
|
18
18
|
selected?: boolean | undefined;
|
|
@@ -23,7 +23,7 @@ declare class MenuItem extends Component<MenuItemProps, MenuItemState> {
|
|
|
23
23
|
onMouseOver?: ((e: React.MouseEvent<Element, MouseEvent>, args: MenuItem) => void) | undefined;
|
|
24
24
|
controls?: string | undefined;
|
|
25
25
|
disabled?: boolean | undefined;
|
|
26
|
-
as?: import("@instructure/shared-types
|
|
26
|
+
as?: import("@instructure/shared-types").AsElementType | undefined;
|
|
27
27
|
type?: "button" | "checkbox" | "radio" | "flyout" | undefined;
|
|
28
28
|
value?: string | number | undefined;
|
|
29
29
|
href?: string | undefined;
|
|
@@ -39,7 +39,7 @@ declare class MenuItem extends Component<MenuItemProps, MenuItemState> {
|
|
|
39
39
|
onMouseOver?: ((e: React.MouseEvent<Element, MouseEvent>, args: MenuItem) => void) | undefined;
|
|
40
40
|
controls?: string | undefined;
|
|
41
41
|
disabled?: boolean | undefined;
|
|
42
|
-
as?: import("@instructure/shared-types
|
|
42
|
+
as?: import("@instructure/shared-types").AsElementType | undefined;
|
|
43
43
|
type?: "button" | "checkbox" | "radio" | "flyout" | undefined;
|
|
44
44
|
value?: string | number | undefined;
|
|
45
45
|
href?: string | undefined;
|
|
@@ -65,7 +65,7 @@ declare class MenuItem extends Component<MenuItemProps, MenuItemState> {
|
|
|
65
65
|
handleKeyDown: (e: React.KeyboardEvent) => void;
|
|
66
66
|
handleKeyUp: (e: React.KeyboardEvent) => void;
|
|
67
67
|
handleMouseOver: (event: React.MouseEvent) => void;
|
|
68
|
-
get elementType(): React.ComponentClass<any, any> | React.FunctionComponent<Readonly<MenuItemProps>> | React.ComponentClass<Readonly<MenuItemProps>, any> | NonNullable<import("@instructure/shared-types
|
|
68
|
+
get elementType(): React.ComponentClass<any, any> | React.FunctionComponent<Readonly<MenuItemProps>> | React.ComponentClass<Readonly<MenuItemProps>, any> | NonNullable<import("@instructure/shared-types").AsElementType | undefined>;
|
|
69
69
|
get role(): "button" | "menuitem" | "menuitemcheckbox" | "menuitemradio";
|
|
70
70
|
get selected(): boolean;
|
|
71
71
|
get focused(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Menu/MenuItem/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,KAAK,EAAE,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAA;AAY3D,OA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,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD;;;;;GAKG;AACH,cAGM,QAAS,SAAQ,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IAC5D,MAAM,CAAC,QAAQ,CAAC,WAAW,eAAc;IAEzC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;MAGT;IAEF,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,WAAW,CAAC,CAAA;IACtD,MAAM,CAAC,WAAW;;;OAAc;gBAEpB,KAAK,EAAE,aAAa;IAYhC,IAAI,KAAK,mBAMR;IAED,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IASjB,kBAAkB;IAIlB,oBAAoB;IAQpB,WAAW,MAAO,gBAAgB,CAAC,YAAY,CAAC,UAqB/C;IAED,aAAa,MAAO,mBAAmB,UActC;IAED,WAAW,MAAO,mBAAmB,UAapC;IAED,eAAe,UAAW,gBAAgB,UAMzC;IAED,IAAI,WAAW,wNAEd;IAED,IAAI,IAAI,iEAWP;IAED,IAAI,QAAQ,YAIX;IAED,IAAI,OAAO,YAEV;IAED,KAAK;IAKL,aAAa;IAsBb,MAAM;CAiCP;AAED,eAAe,QAAQ,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -13,7 +13,7 @@ id: Menu.Group
|
|
|
13
13
|
**/
|
|
14
14
|
declare class MenuItemGroup extends Component<MenuGroupProps, MenuGroupState> {
|
|
15
15
|
static readonly componentId = "Menu.Group";
|
|
16
|
-
static propTypes: import("@instructure/shared-types
|
|
16
|
+
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
17
17
|
label: React.ReactNode;
|
|
18
18
|
allowMultiple?: boolean | undefined;
|
|
19
19
|
children?: React.ReactNode;
|
|
@@ -11,7 +11,7 @@ id: Menu.Separator
|
|
|
11
11
|
**/
|
|
12
12
|
declare class MenuItemSeparator extends Component<MenuSeparatorProps> {
|
|
13
13
|
static readonly componentId = "Menu.Separator";
|
|
14
|
-
static propTypes: import("@instructure/shared-types
|
|
14
|
+
static propTypes: import("@instructure/shared-types").PropValidators<never>;
|
|
15
15
|
static allowedProps: readonly never[];
|
|
16
16
|
ref: Element | null;
|
|
17
17
|
handleRef: (el: Element | null) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Menu/MenuItemSeparator/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAEjD;;;;;;GAMG;AACH,cAEM,iBAAkB,SAAQ,SAAS,CAAC,kBAAkB,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,WAAW,oBAAmB;IAE9C,MAAM,CAAC,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Menu/MenuItemSeparator/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAEjD;;;;;;GAMG;AACH,cAEM,iBAAkB,SAAQ,SAAS,CAAC,kBAAkB,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,WAAW,oBAAmB;IAE9C,MAAM,CAAC,SAAS,4DAAY;IAC5B,MAAM,CAAC,YAAY,mBAAe;IAElC,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,MAAM;CAWP;AAED,eAAe,iBAAiB,CAAA;AAChC,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
package/types/Menu/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ category: components
|
|
|
14
14
|
**/
|
|
15
15
|
declare class Menu extends Component<MenuProps> {
|
|
16
16
|
static readonly componentId = "Menu";
|
|
17
|
-
static propTypes: import("@instructure/shared-types
|
|
17
|
+
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
18
18
|
children?: React.ReactNode;
|
|
19
19
|
label?: string | undefined;
|
|
20
20
|
disabled?: boolean | undefined;
|