Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@material-ui/unstyled

Package Overview
Dependencies
Maintainers
6
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material-ui/unstyled - npm Package Compare versions

Comparing version 5.0.0-alpha.23 to 5.0.0-alpha.24

2

BadgeUnstyled/BadgeUnstyled.d.ts

@@ -105,3 +105,3 @@ import * as React from 'react';

*/
variant?: 'standard' | 'dot';
variant?: string;
};

@@ -108,0 +108,0 @@ defaultComponent: D;

@@ -23,7 +23,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

};
return composeClasses({
slots,
classes,
getUtilityClass: getBadgeUtilityClass
});
return composeClasses(slots, getBadgeUtilityClass, classes);
};

@@ -201,6 +197,4 @@

*/
variant: PropTypes
/* @typescript-to-proptypes-ignore */
.oneOfType([PropTypes.oneOf(['dot', 'standard']), PropTypes.string])
variant: PropTypes.string
} : void 0;
export default BadgeUnstyled;

@@ -1,5 +0,1 @@

export default function composeClasses<T extends keyof any>(options: {
slots: Record<T, string[]>;
classes?: Record<string, string>;
getUtilityClass: (slot: string) => string;
}): Record<T, string>;
export default function composeClasses<ClassKey extends string>(slots: Record<ClassKey, Array<string | false>>, getUtilityClass: (slot: string) => string, classes: Record<string, string> | undefined): Record<ClassKey, string>;

@@ -1,8 +0,6 @@

function composeClasses({
slots,
classes,
getUtilityClass
}) {
export default function composeClasses(slots, getUtilityClass, classes) {
const output = {};
Object.keys(slots).forEach(slot => {
Object.keys(slots).forEach( // `Objet.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
// @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
slot => {
output[slot] = slots[slot].reduce((acc, key) => {

@@ -21,4 +19,2 @@ if (key) {

return output;
}
export default composeClasses;
}
export { default } from './composeClasses';
export * from './composeClasses';

@@ -1,2 +0,2 @@

/** @license Material-UI v5.0.0-alpha.23
/** @license Material-UI v5.0.0-alpha.24
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -21,7 +21,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

};
return composeClasses({
slots: slots,
classes: classes,
getUtilityClass: getBadgeUtilityClass
});
return composeClasses(slots, getBadgeUtilityClass, classes);
};

@@ -207,6 +203,4 @@

*/
variant: PropTypes
/* @typescript-to-proptypes-ignore */
.oneOfType([PropTypes.oneOf(['dot', 'standard']), PropTypes.string])
variant: PropTypes.string
} : void 0;
export default BadgeUnstyled;

@@ -1,7 +0,6 @@

function composeClasses(_ref) {
var slots = _ref.slots,
classes = _ref.classes,
getUtilityClass = _ref.getUtilityClass;
export default function composeClasses(slots, getUtilityClass, classes) {
var output = {};
Object.keys(slots).forEach(function (slot) {
Object.keys(slots).forEach( // `Objet.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
// @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
function (slot) {
output[slot] = slots[slot].reduce(function (acc, key) {

@@ -20,4 +19,2 @@ if (key) {

return output;
}
export default composeClasses;
}

@@ -1,2 +0,2 @@

/** @license Material-UI v5.0.0-alpha.23
/** @license Material-UI v5.0.0-alpha.24
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -206,7 +206,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

};
return composeClasses({
slots: slots,
classes: classes,
getUtilityClass: getSliderUtilityClass
});
return composeClasses(slots, getSliderUtilityClass, classes);
};

@@ -213,0 +209,0 @@

@@ -23,7 +23,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

};
return composeClasses({
slots,
classes,
getUtilityClass: getBadgeUtilityClass
});
return composeClasses(slots, getBadgeUtilityClass, classes);
};

@@ -201,6 +197,4 @@

*/
variant: PropTypes
/* @typescript-to-proptypes-ignore */
.oneOfType([PropTypes.oneOf(['dot', 'standard']), PropTypes.string])
variant: PropTypes.string
} : void 0;
export default BadgeUnstyled;

@@ -1,8 +0,6 @@

function composeClasses({
slots,
classes,
getUtilityClass
}) {
export default function composeClasses(slots, getUtilityClass, classes) {
const output = {};
Object.keys(slots).forEach(slot => {
Object.keys(slots).forEach( // `Objet.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
// @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
slot => {
output[slot] = slots[slot].reduce((acc, key) => {

@@ -21,4 +19,2 @@ if (key) {

return output;
}
export default composeClasses;
}

@@ -1,2 +0,2 @@

/** @license Material-UI v5.0.0-alpha.23
/** @license Material-UI v5.0.0-alpha.24
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -193,7 +193,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

};
return composeClasses({
slots,
classes,
getUtilityClass: getSliderUtilityClass
});
return composeClasses(slots, getSliderUtilityClass, classes);
};

@@ -200,0 +196,0 @@

@@ -42,7 +42,3 @@ "use strict";

};
return (0, _composeClasses.default)({
slots,
classes,
getUtilityClass: _badgeUnstyledClasses.getBadgeUtilityClass
});
return (0, _composeClasses.default)(slots, _badgeUnstyledClasses.getBadgeUtilityClass, classes);
};

@@ -217,7 +213,5 @@

*/
variant: _propTypes.default
/* @typescript-to-proptypes-ignore */
.oneOfType([_propTypes.default.oneOf(['dot', 'standard']), _propTypes.default.string])
variant: _propTypes.default.string
} : void 0;
var _default = BadgeUnstyled;
exports.default = _default;

@@ -6,11 +6,9 @@ "use strict";

});
exports.default = void 0;
exports.default = composeClasses;
function composeClasses({
slots,
classes,
getUtilityClass
}) {
function composeClasses(slots, getUtilityClass, classes) {
const output = {};
Object.keys(slots).forEach(slot => {
Object.keys(slots).forEach( // `Objet.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
// @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
slot => {
output[slot] = slots[slot].reduce((acc, key) => {

@@ -29,5 +27,2 @@ if (key) {

return output;
}
var _default = composeClasses;
exports.default = _default;
}

@@ -1,2 +0,2 @@

/** @license Material-UI v5.0.0-alpha.23
/** @license Material-UI v5.0.0-alpha.24
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -213,7 +213,3 @@ "use strict";

};
return (0, _composeClasses.default)({
slots,
classes,
getUtilityClass: _sliderUnstyledClasses.getSliderUtilityClass
});
return (0, _composeClasses.default)(slots, _sliderUnstyledClasses.getSliderUtilityClass, classes);
};

@@ -220,0 +216,0 @@

{
"name": "@material-ui/unstyled",
"version": "5.0.0-alpha.23",
"version": "5.0.0-alpha.24",
"private": false,
"author": "Material-UI Team",
"description": "Material-UI Unstyled - collection of unstyled React components.",
"description": "Unstyled React components with which to implement custom design systems.",
"main": "./node/index.js",

@@ -12,3 +12,4 @@ "keywords": [

"material-ui",
"unstyled"
"unstyled",
"a11y"
],

@@ -37,3 +38,3 @@ "repository": {

"@babel/runtime": "^7.4.4",
"@material-ui/utils": "5.0.0-alpha.23",
"@material-ui/utils": "5.0.0-alpha.24",
"clsx": "^1.0.4",

@@ -40,0 +41,0 @@ "prop-types": "^15.7.2",

@@ -193,7 +193,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

};
return composeClasses({
slots,
classes,
getUtilityClass: getSliderUtilityClass
});
return composeClasses(slots, getSliderUtilityClass, classes);
};

@@ -200,0 +196,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc