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

@stenajs-webui/core

Package Overview
Dependencies
Maintainers
1
Versions
470
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stenajs-webui/core - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

25

dist/components/layout/box/Box.d.ts

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

import { BackgroundProperty, BoxShadowProperty } from "csstype";
import { BackgroundProperty, BorderProperty, BoxShadowProperty } from "csstype";
import * as React from "react";

@@ -11,10 +11,33 @@ import { AlignItemsProps, BorderBottomProps, BorderColorProps, BorderLeftProps, BorderProps, BorderRadiusProps, BorderRightProps, BorderStyleProps, BorderTopProps, BorderWidthProps, BottomProps, DisplayProps, FlexDirectionProps, FlexProps, FlexWrapProps, HeightProps, JustifyContentProps, LeftProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, OverflowProps, PositionProps, RightProps, TLengthStyledSystem, TopProps, WidthProps, ZIndexProps } from "styled-system";

innerRef?: React.Ref<HTMLDivElement>;
/**
* If true, children are placed in a row.
*/
row?: boolean;
/**
* Adds spacing over and under content.
*/
spacing?: boolean | number;
/**
* Adds spacing left and right of content.
*/
indent?: boolean | number;
style?: React.CSSProperties;
/**
* Adds a shadow around the box.
*/
shadow?: ShadowType | BoxShadowProperty;
/**
* Sets the background of the box.
*/
background?: ThemeColorField | BackgroundProperty<TLengthStyledSystem>;
/**
* Sets the background of the box when hovering with mouse.
*/
hoverBackground?: ThemeColorField | BackgroundProperty<TLengthStyledSystem>;
/**
* Sets the border of the box when hovering with mouse.
*/
hoverBorder?: ThemeColorField | BorderProperty<TLengthStyledSystem>;
}
export declare const Box: React.FC<BoxProps>;
export {};

12

dist/index.es.js

@@ -146,6 +146,12 @@ import { createContext, useContext, useMemo, createElement, useRef, useEffect } from 'react';

var FlexBox = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n flex-direction: ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n padding: ", "px\n ", "px;\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n display: ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n flex-direction: ",
";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n padding: ", "px\n ", "px;\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), function (props) { return props.display || "flex"; }, alignItems, background, border, borderRight, borderLeft, borderTop, borderBottom, borderColor, borderRadius, borderStyle, borderWidth, boxShadow, flex, function (props) {
var FlexBox = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n flex-direction: ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n padding: ", "px\n ", "px;\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n :hover {\n background: ", ";\n border: ", ";\n }\n"], ["\n display: ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n flex-direction: ",
";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n padding: ", "px\n ", "px;\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n :hover {\n background: ", ";\n border: ", ";\n }\n"])), function (props) { return props.display || "flex"; }, alignItems, background, border, borderRight, borderLeft, borderTop, borderBottom, borderColor, borderRadius, borderStyle, borderWidth, boxShadow, flex, function (props) {
return (props.row && "row") || props.flexDirection || "column";
}, flexWrap, height, justifyContent, minHeight, maxHeight, maxWidth, overflow, function (props) { return numberOrZero(props.spacing) * props.themeSpacing; }, function (props) { return numberOrZero(props.indent) * props.themeIndent; }, position, width, zIndex, left, right, top, bottom);
}, flexWrap, height, justifyContent, minHeight, maxHeight, maxWidth, overflow, function (props) { return numberOrZero(props.spacing) * props.themeSpacing; }, function (props) { return numberOrZero(props.indent) * props.themeIndent; }, position, width, zIndex, left, right, top, bottom, function (_a) {
var hoverBackground = _a.hoverBackground;
return hoverBackground;
}, function (_a) {
var hoverBorder = _a.hoverBorder;
return hoverBorder;
});
var Box = function (_a) {

@@ -152,0 +158,0 @@ var innerRef = _a.innerRef, shadow = _a.shadow, background = _a.background, props = __rest(_a, ["innerRef", "shadow", "background"]);

@@ -152,6 +152,12 @@ 'use strict';

var FlexBox = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n flex-direction: ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n padding: ", "px\n ", "px;\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n display: ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n flex-direction: ",
";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n padding: ", "px\n ", "px;\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), function (props) { return props.display || "flex"; }, styledSystem.alignItems, styledSystem.background, styledSystem.border, styledSystem.borderRight, styledSystem.borderLeft, styledSystem.borderTop, styledSystem.borderBottom, styledSystem.borderColor, styledSystem.borderRadius, styledSystem.borderStyle, styledSystem.borderWidth, styledSystem.boxShadow, styledSystem.flex, function (props) {
var FlexBox = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n flex-direction: ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n padding: ", "px\n ", "px;\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n :hover {\n background: ", ";\n border: ", ";\n }\n"], ["\n display: ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n flex-direction: ",
";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n padding: ", "px\n ", "px;\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n :hover {\n background: ", ";\n border: ", ";\n }\n"])), function (props) { return props.display || "flex"; }, styledSystem.alignItems, styledSystem.background, styledSystem.border, styledSystem.borderRight, styledSystem.borderLeft, styledSystem.borderTop, styledSystem.borderBottom, styledSystem.borderColor, styledSystem.borderRadius, styledSystem.borderStyle, styledSystem.borderWidth, styledSystem.boxShadow, styledSystem.flex, function (props) {
return (props.row && "row") || props.flexDirection || "column";
}, styledSystem.flexWrap, styledSystem.height, styledSystem.justifyContent, styledSystem.minHeight, styledSystem.maxHeight, styledSystem.maxWidth, styledSystem.overflow, function (props) { return numberOrZero(props.spacing) * props.themeSpacing; }, function (props) { return numberOrZero(props.indent) * props.themeIndent; }, styledSystem.position, styledSystem.width, styledSystem.zIndex, styledSystem.left, styledSystem.right, styledSystem.top, styledSystem.bottom);
}, styledSystem.flexWrap, styledSystem.height, styledSystem.justifyContent, styledSystem.minHeight, styledSystem.maxHeight, styledSystem.maxWidth, styledSystem.overflow, function (props) { return numberOrZero(props.spacing) * props.themeSpacing; }, function (props) { return numberOrZero(props.indent) * props.themeIndent; }, styledSystem.position, styledSystem.width, styledSystem.zIndex, styledSystem.left, styledSystem.right, styledSystem.top, styledSystem.bottom, function (_a) {
var hoverBackground = _a.hoverBackground;
return hoverBackground;
}, function (_a) {
var hoverBorder = _a.hoverBorder;
return hoverBorder;
});
var Box = function (_a) {

@@ -158,0 +164,0 @@ var innerRef = _a.innerRef, shadow = _a.shadow, background = _a.background, props = __rest(_a, ["innerRef", "shadow", "background"]);

{
"name": "@stenajs-webui/core",
"version": "0.0.6",
"version": "0.0.7",
"description": "",

@@ -5,0 +5,0 @@ "author": "mattias800",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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