@react-md/menu
Advanced tools
Comparing version 2.7.0 to 2.7.1
@@ -6,2 +6,14 @@ # Change Log | ||
## [2.7.1](https://github.com/mlaursen/react-md/compare/v2.7.0...v2.7.1) (2021-03-23) | ||
### Other Internal Changes | ||
* **ts:** stopped using FC type ([c5daa47](https://github.com/mlaursen/react-md/commit/c5daa47d73516e075c036fd745e7228d7f155a62)) | ||
# [2.7.0](https://github.com/mlaursen/react-md/compare/v2.6.0...v2.7.0) (2021-02-28) | ||
@@ -8,0 +20,0 @@ |
/* eslint-disable react/prop-types */ | ||
import React, { createContext, useContext } from "react"; | ||
import React, { createContext, useContext, } from "react"; | ||
var Orientation = createContext("vertical"); | ||
@@ -7,6 +7,6 @@ export function useOrientation() { | ||
} | ||
export var OrientationProvider = function (_a) { | ||
export function OrientationProvider(_a) { | ||
var orientation = _a.orientation, children = _a.children; | ||
return (React.createElement(Orientation.Provider, { value: orientation }, children)); | ||
}; | ||
} | ||
//# sourceMappingURL=Orientation.js.map |
@@ -1,2 +0,2 @@ | ||
import { FC, ReactNode } from "react"; | ||
import { ReactElement, ReactNode } from "react"; | ||
declare type MenuOrientation = "horizontal" | "vertical"; | ||
@@ -8,3 +8,3 @@ export declare function useOrientation(): MenuOrientation; | ||
} | ||
export declare const OrientationProvider: FC<OrientationProviderProps>; | ||
export declare function OrientationProvider({ orientation, children, }: OrientationProviderProps): ReactElement; | ||
export {}; |
@@ -30,7 +30,7 @@ "use strict"; | ||
exports.useOrientation = useOrientation; | ||
var OrientationProvider = function (_a) { | ||
function OrientationProvider(_a) { | ||
var orientation = _a.orientation, children = _a.children; | ||
return (react_1.default.createElement(Orientation.Provider, { value: orientation }, children)); | ||
}; | ||
} | ||
exports.OrientationProvider = OrientationProvider; | ||
//# sourceMappingURL=Orientation.js.map |
{ | ||
"name": "@react-md/menu", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "Create menus that auto-position themselves within the viewport and adhere to the accessibility guidelines", | ||
@@ -41,12 +41,12 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@react-md/app-bar": "^2.7.0", | ||
"@react-md/button": "^2.7.0", | ||
"@react-md/divider": "^2.7.0", | ||
"@react-md/elevation": "^2.7.0", | ||
"@react-md/icon": "^2.7.0", | ||
"@react-md/list": "^2.7.0", | ||
"@react-md/states": "^2.7.0", | ||
"@react-md/theme": "^2.7.0", | ||
"@react-md/typography": "^2.7.0", | ||
"@react-md/utils": "^2.7.0", | ||
"@react-md/app-bar": "^2.7.1", | ||
"@react-md/button": "^2.7.1", | ||
"@react-md/divider": "^2.7.1", | ||
"@react-md/elevation": "^2.7.1", | ||
"@react-md/icon": "^2.7.1", | ||
"@react-md/list": "^2.7.1", | ||
"@react-md/states": "^2.7.1", | ||
"@react-md/theme": "^2.7.1", | ||
"@react-md/typography": "^2.7.1", | ||
"@react-md/utils": "^2.7.1", | ||
"classnames": "^2.2.6" | ||
@@ -67,3 +67,3 @@ }, | ||
}, | ||
"gitHead": "931e81f628b580837df3a97267a42c9880b13815" | ||
"gitHead": "4fb8828b048fd2472096d5f55033cc4a7ba24e1a" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { FC, ReactNode } from "react"; | ||
import { ReactElement, ReactNode } from "react"; | ||
declare type MenuOrientation = "horizontal" | "vertical"; | ||
@@ -8,3 +8,3 @@ export declare function useOrientation(): MenuOrientation; | ||
} | ||
export declare const OrientationProvider: FC<OrientationProviderProps>; | ||
export declare function OrientationProvider({ orientation, children, }: OrientationProviderProps): ReactElement; | ||
export {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
375011
6199
Updated@react-md/app-bar@^2.7.1
Updated@react-md/button@^2.7.1
Updated@react-md/divider@^2.7.1
Updated@react-md/elevation@^2.7.1
Updated@react-md/icon@^2.7.1
Updated@react-md/list@^2.7.1
Updated@react-md/states@^2.7.1
Updated@react-md/theme@^2.7.1
Updated@react-md/typography@^2.7.1
Updated@react-md/utils@^2.7.1