@react-md/icon
Advanced tools
Comparing version 4.0.3 to 5.0.0
@@ -6,2 +6,14 @@ # Change Log | ||
# [5.0.0](https://github.com/mlaursen/react-md/compare/v4.0.3...v5.0.0) (2022-01-31) | ||
### Other Internal Changes | ||
* chore!(icon): Renamed the download icon to upload ([2752a98](https://github.com/mlaursen/react-md/commit/2752a981fe4021636de66f8576fdd8842a7e90af)) | ||
## [4.0.3](https://github.com/mlaursen/react-md/compare/v4.0.2...v4.0.3) (2021-12-31) | ||
@@ -8,0 +20,0 @@ |
@@ -18,3 +18,3 @@ var __assign = (this && this.__assign) || function () { | ||
checkbox: _jsx(FontIcon, { children: "check_box" }, void 0), | ||
download: _jsx(FontIcon, { children: "file_upload" }, void 0), | ||
upload: _jsx(FontIcon, { children: "file_upload" }, void 0), | ||
dropdown: _jsx(FontIcon, { children: "arrow_drop_down" }, void 0), | ||
@@ -60,7 +60,6 @@ error: _jsx(FontIcon, { children: "error_outline" }, void 0), | ||
export function IconProvider(_a) { | ||
var children = _a.children, _b = _a.back, back = _b === void 0 ? DEFAULT_ICONS.back : _b, _c = _a.checkbox, checkbox = _c === void 0 ? DEFAULT_ICONS.checkbox : _c, _d = _a.download, download = _d === void 0 ? DEFAULT_ICONS.download : _d, _e = _a.dropdown, dropdown = _e === void 0 ? DEFAULT_ICONS.dropdown : _e, _f = _a.expander, expander = _f === void 0 ? DEFAULT_ICONS.expander : _f, _g = _a.error, error = _g === void 0 ? DEFAULT_ICONS.error : _g, _h = _a.forward, forward = _h === void 0 ? DEFAULT_ICONS.forward : _h, _j = _a.menu, menu = _j === void 0 ? DEFAULT_ICONS.menu : _j, _k = _a.notification, notification = _k === void 0 ? DEFAULT_ICONS.notification : _k, _l = _a.password, password = _l === void 0 ? DEFAULT_ICONS.password : _l, _m = _a.radio, radio = _m === void 0 ? DEFAULT_ICONS.radio : _m, _o = _a.selected, selected = _o === void 0 ? DEFAULT_ICONS.selected : _o, _p = _a.sort, sort = _p === void 0 ? DEFAULT_ICONS.sort : _p; | ||
var children = _a.children, _b = _a.back, back = _b === void 0 ? DEFAULT_ICONS.back : _b, _c = _a.checkbox, checkbox = _c === void 0 ? DEFAULT_ICONS.checkbox : _c, _d = _a.dropdown, dropdown = _d === void 0 ? DEFAULT_ICONS.dropdown : _d, _e = _a.expander, expander = _e === void 0 ? DEFAULT_ICONS.expander : _e, _f = _a.error, error = _f === void 0 ? DEFAULT_ICONS.error : _f, _g = _a.forward, forward = _g === void 0 ? DEFAULT_ICONS.forward : _g, _h = _a.menu, menu = _h === void 0 ? DEFAULT_ICONS.menu : _h, _j = _a.notification, notification = _j === void 0 ? DEFAULT_ICONS.notification : _j, _k = _a.password, password = _k === void 0 ? DEFAULT_ICONS.password : _k, _l = _a.radio, radio = _l === void 0 ? DEFAULT_ICONS.radio : _l, _m = _a.selected, selected = _m === void 0 ? DEFAULT_ICONS.selected : _m, _o = _a.sort, sort = _o === void 0 ? DEFAULT_ICONS.sort : _o, _p = _a.upload, upload = _p === void 0 ? DEFAULT_ICONS.upload : _p; | ||
var value = useMemo(function () { return ({ | ||
back: back, | ||
checkbox: checkbox, | ||
download: download, | ||
dropdown: dropdown, | ||
@@ -76,6 +75,6 @@ error: error, | ||
sort: sort, | ||
upload: upload, | ||
}); }, [ | ||
back, | ||
checkbox, | ||
download, | ||
dropdown, | ||
@@ -91,2 +90,3 @@ error, | ||
sort, | ||
upload, | ||
]); | ||
@@ -93,0 +93,0 @@ return _jsx(Provider, __assign({ value: value }, { children: children }), void 0); |
import { ReactElement, ReactNode } from "react"; | ||
/** | ||
* @remarks \@since 5.0.0 The `download` icon has been renamed to `upload`. | ||
*/ | ||
export interface ConfigurableIcons { | ||
@@ -17,10 +20,2 @@ /** | ||
/** | ||
* The general icon to use for the `FileInput` component (normally file | ||
* uploads). | ||
* | ||
* @remarks \@since 4.0.3 Changed the default icon to be `file_upload` and | ||
* this will be renamed to `upload` in the next major release. | ||
*/ | ||
download?: ReactNode; | ||
/** | ||
* The general icon to use when there are form errors. | ||
@@ -69,2 +64,9 @@ * | ||
sort?: ReactNode; | ||
/** | ||
* The general icon to use for the `FileInput` component (normally file | ||
* uploads). | ||
* | ||
* @remarks \@since 5.0.0 | ||
*/ | ||
upload?: ReactNode; | ||
} | ||
@@ -100,2 +102,2 @@ export declare type ConfiguredIcons = Required<ConfigurableIcons>; | ||
*/ | ||
export declare function IconProvider({ children, back, checkbox, download, dropdown, expander, error, forward, menu, notification, password, radio, selected, sort, }: IconProviderProps): ReactElement; | ||
export declare function IconProvider({ children, back, checkbox, dropdown, expander, error, forward, menu, notification, password, radio, selected, sort, upload, }: IconProviderProps): ReactElement; |
@@ -21,3 +21,3 @@ "use strict"; | ||
checkbox: (0, jsx_runtime_1.jsx)(FontIcon_1.FontIcon, { children: "check_box" }, void 0), | ||
download: (0, jsx_runtime_1.jsx)(FontIcon_1.FontIcon, { children: "file_upload" }, void 0), | ||
upload: (0, jsx_runtime_1.jsx)(FontIcon_1.FontIcon, { children: "file_upload" }, void 0), | ||
dropdown: (0, jsx_runtime_1.jsx)(FontIcon_1.FontIcon, { children: "arrow_drop_down" }, void 0), | ||
@@ -64,7 +64,6 @@ error: (0, jsx_runtime_1.jsx)(FontIcon_1.FontIcon, { children: "error_outline" }, void 0), | ||
function IconProvider(_a) { | ||
var children = _a.children, _b = _a.back, back = _b === void 0 ? DEFAULT_ICONS.back : _b, _c = _a.checkbox, checkbox = _c === void 0 ? DEFAULT_ICONS.checkbox : _c, _d = _a.download, download = _d === void 0 ? DEFAULT_ICONS.download : _d, _e = _a.dropdown, dropdown = _e === void 0 ? DEFAULT_ICONS.dropdown : _e, _f = _a.expander, expander = _f === void 0 ? DEFAULT_ICONS.expander : _f, _g = _a.error, error = _g === void 0 ? DEFAULT_ICONS.error : _g, _h = _a.forward, forward = _h === void 0 ? DEFAULT_ICONS.forward : _h, _j = _a.menu, menu = _j === void 0 ? DEFAULT_ICONS.menu : _j, _k = _a.notification, notification = _k === void 0 ? DEFAULT_ICONS.notification : _k, _l = _a.password, password = _l === void 0 ? DEFAULT_ICONS.password : _l, _m = _a.radio, radio = _m === void 0 ? DEFAULT_ICONS.radio : _m, _o = _a.selected, selected = _o === void 0 ? DEFAULT_ICONS.selected : _o, _p = _a.sort, sort = _p === void 0 ? DEFAULT_ICONS.sort : _p; | ||
var children = _a.children, _b = _a.back, back = _b === void 0 ? DEFAULT_ICONS.back : _b, _c = _a.checkbox, checkbox = _c === void 0 ? DEFAULT_ICONS.checkbox : _c, _d = _a.dropdown, dropdown = _d === void 0 ? DEFAULT_ICONS.dropdown : _d, _e = _a.expander, expander = _e === void 0 ? DEFAULT_ICONS.expander : _e, _f = _a.error, error = _f === void 0 ? DEFAULT_ICONS.error : _f, _g = _a.forward, forward = _g === void 0 ? DEFAULT_ICONS.forward : _g, _h = _a.menu, menu = _h === void 0 ? DEFAULT_ICONS.menu : _h, _j = _a.notification, notification = _j === void 0 ? DEFAULT_ICONS.notification : _j, _k = _a.password, password = _k === void 0 ? DEFAULT_ICONS.password : _k, _l = _a.radio, radio = _l === void 0 ? DEFAULT_ICONS.radio : _l, _m = _a.selected, selected = _m === void 0 ? DEFAULT_ICONS.selected : _m, _o = _a.sort, sort = _o === void 0 ? DEFAULT_ICONS.sort : _o, _p = _a.upload, upload = _p === void 0 ? DEFAULT_ICONS.upload : _p; | ||
var value = (0, react_1.useMemo)(function () { return ({ | ||
back: back, | ||
checkbox: checkbox, | ||
download: download, | ||
dropdown: dropdown, | ||
@@ -80,6 +79,6 @@ error: error, | ||
sort: sort, | ||
upload: upload, | ||
}); }, [ | ||
back, | ||
checkbox, | ||
download, | ||
dropdown, | ||
@@ -95,2 +94,3 @@ error, | ||
sort, | ||
upload, | ||
]); | ||
@@ -97,0 +97,0 @@ return (0, jsx_runtime_1.jsx)(Provider, __assign({ value: value }, { children: children }), void 0); |
{ | ||
"name": "@react-md/icon", | ||
"version": "4.0.3", | ||
"version": "5.0.0", | ||
"description": "This package is for including icons within react-md. There is included support for both font icons and SVG icons. There is also a helper component for applying spacing between icons and text.", | ||
@@ -33,5 +33,5 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@react-md/theme": "^4.0.3", | ||
"@react-md/typography": "^4.0.3", | ||
"@react-md/utils": "^4.0.3", | ||
"@react-md/theme": "^5.0.0", | ||
"@react-md/typography": "^5.0.0", | ||
"@react-md/utils": "^5.0.0", | ||
"classnames": "^2.3.1" | ||
@@ -58,3 +58,3 @@ }, | ||
}, | ||
"gitHead": "39edcb237de86528426b8011396f677b01b6a929" | ||
"gitHead": "a67e871627db20ca8ee4b672f6e99f2f7f438c96" | ||
} |
import { ReactElement, ReactNode } from "react"; | ||
/** | ||
* @remarks \@since 5.0.0 The `download` icon has been renamed to `upload`. | ||
*/ | ||
export interface ConfigurableIcons { | ||
@@ -17,10 +20,2 @@ /** | ||
/** | ||
* The general icon to use for the `FileInput` component (normally file | ||
* uploads). | ||
* | ||
* @remarks \@since 4.0.3 Changed the default icon to be `file_upload` and | ||
* this will be renamed to `upload` in the next major release. | ||
*/ | ||
download?: ReactNode; | ||
/** | ||
* The general icon to use when there are form errors. | ||
@@ -69,2 +64,9 @@ * | ||
sort?: ReactNode; | ||
/** | ||
* The general icon to use for the `FileInput` component (normally file | ||
* uploads). | ||
* | ||
* @remarks \@since 5.0.0 | ||
*/ | ||
upload?: ReactNode; | ||
} | ||
@@ -100,2 +102,2 @@ export declare type ConfiguredIcons = Required<ConfigurableIcons>; | ||
*/ | ||
export declare function IconProvider({ children, back, checkbox, download, dropdown, expander, error, forward, menu, notification, password, radio, selected, sort, }: IconProviderProps): ReactElement; | ||
export declare function IconProvider({ children, back, checkbox, dropdown, expander, error, forward, menu, notification, password, radio, selected, sort, upload, }: IconProviderProps): ReactElement; |
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
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
145732
1859
+ Added@react-md/theme@5.1.6(transitive)
+ Added@react-md/typography@5.1.6(transitive)
+ Added@react-md/utils@5.1.6(transitive)
- Removed@react-md/theme@4.0.3(transitive)
- Removed@react-md/typography@4.0.3(transitive)
- Removed@react-md/utils@4.0.3(transitive)
Updated@react-md/theme@^5.0.0
Updated@react-md/typography@^5.0.0
Updated@react-md/utils@^5.0.0