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

themestress

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

themestress - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

lib/core/hooks/useMediaQuery.d.ts

3

lib/components/Backdrop.js

@@ -22,4 +22,3 @@ "use strict";

var classes = styles(props);
var handleClick = function (e) {
e.preventDefault();
var handleClick = function () {
props.onClick();

@@ -26,0 +25,0 @@ };

@@ -7,3 +7,3 @@ import React from 'react';

export interface ContainerProps extends ReactHTMLProps<HTMLDivElement> {
maxWidth: TMaxWidth;
maxWidth?: TMaxWidth;
justifyContent?: TJustify;

@@ -10,0 +10,0 @@ alignItems?: TAlign;

@@ -64,3 +64,3 @@ "use strict";

return positionOverride.x;
if (!pos || !pos.x)
if (!pos || pos.x === undefined)
return 0;

@@ -79,3 +79,3 @@ if (!anchorOrigin)

return positionOverride.y;
if (!pos || !pos.y)
if (!pos || pos.y === undefined)
return 0;

@@ -112,5 +112,4 @@ if (!anchorOrigin)

exports.Menu = (0, react_1.forwardRef)(function (_a, ref) {
var _b;
var children = _a.children, props = __rest(_a, ["children"]);
var menuRef = (_b = ref) !== null && _b !== void 0 ? _b : (0, react_1.useRef)(null);
var menuRef = ref || (0, react_1.useRef)(null);
var handleClickAway = function () {

@@ -117,0 +116,0 @@ if (!props.open || !menuRef || !menuRef.current)

@@ -35,4 +35,4 @@ "use strict";

exports.NavigationMenuItem = (0, react_1.forwardRef)(function (props, ref) {
return (react_1.default.createElement(StyledMenuItem, { className: "_MenuItem", ref: ref, onClick: function () { return props.handleClick(ref); }, disableRipple: true, noTransform: true, align: "left", variant: "text", fontColor: ['shade', '5', 'main'] }, props.children));
return (react_1.default.createElement(StyledMenuItem, { className: "_NavigationMenuItem", ref: ref, onClick: function () { return props.handleClick(ref); }, disableRipple: true, noTransform: true, align: "left", variant: "text", fontColor: ['shade', '5', 'main'] }, props.children));
});
var templateObject_1;

@@ -148,3 +148,3 @@ "use strict";

var groupPos = sliderGroupRef.current.getBoundingClientRect();
var percentage = ((e.x - groupPos.x) / groupPos.width) * 100;
var percentage = ((e.clientX - groupPos.x) / groupPos.width) * 100;
var bounded = percentage < 0 ? 0 : percentage > 100 ? 100 : percentage;

@@ -151,0 +151,0 @@ if (!onChange || progress === bounded)

@@ -61,6 +61,6 @@ "use strict";

};
return (react_1.default.createElement(Track, { className: "_Switch-Track", on: props.checked ? 1 : 0, onClick: handleClick },
react_1.default.createElement(Handle, { className: "_Switch-Handle", on: props.checked ? 1 : 0 }, props.noIcon ? null : (react_1.default.createElement(Svg, { width: "100%", height: "100%", viewBox: "0 0 24 24", on: props.checked ? 1 : 0 }, props.checked ? react_1.default.createElement(TickPath, null) : react_1.default.createElement(CrossPath, null))))));
return (react_1.default.createElement(Track, { className: "_Switch-Track", on: props.checked ? 1 : 0, onClick: handleClick, noIcon: props.noIcon, trackColor: props.trackColor },
react_1.default.createElement(Handle, { className: "_Switch-Handle", on: props.checked ? 1 : 0, noIcon: props.noIcon }, props.noIcon ? null : (react_1.default.createElement(Svg, { width: "100%", height: "100%", viewBox: "0 0 24 24", on: props.checked ? 1 : 0, handleColor: props.handleColor }, props.checked ? react_1.default.createElement(TickPath, null) : react_1.default.createElement(CrossPath, null))))));
};
exports.Switch = Switch;
var templateObject_1, templateObject_2, templateObject_3;

@@ -0,3 +1,4 @@

export * from './hooks/useMediaQuery';
export * from './definitions';
export * from './htmlColorMap';
export * from './themeUtils';

@@ -13,4 +13,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./hooks/useMediaQuery"), exports);
__exportStar(require("./definitions"), exports);
__exportStar(require("./htmlColorMap"), exports);
__exportStar(require("./themeUtils"), exports);

@@ -1,1 +0,3 @@

export { Text } from './components/Text';
export * from './components';
export * from './core';
export * from './icons';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Text = void 0;
var Text_1 = require("./components/Text");
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
__exportStar(require("./components"), exports);
__exportStar(require("./core"), exports);
__exportStar(require("./icons"), exports);
{
"name": "themestress",
"description": "A lightweight theme package.",
"version": "0.0.4",
"version": "0.0.5",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "types": "lib/index.d.ts",

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