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

react-boxl

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-boxl - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

12

dist/index.d.ts

@@ -1,6 +0,10 @@

/// <reference types="react" />
import { BoxlComponentProps, BoxlProps } from "./types/Boxl";
export declare function boxl<P1 = {}, T = {}>(defaultProps?: BoxlProps<P1, T>): {
<P2 = P1, T2 = T>(props: BoxlComponentProps<P2, T2>): JSX.Element;
import * as React from "react";
import { BoxlComponentProps, BoxlPropsPartial } from "./types/Boxl";
export declare function boxl<P, T = {}, D extends BoxlPropsPartial<P, T> = BoxlPropsPartial<P, T>>(d?: D): {
(p: P & import("./types/Boxl").BoxlNativeProps<P, T> & Pick<React.AllHTMLAttributes<HTMLElement>, "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "tabIndex" | "title" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">): JSX.Element;
displayName: string;
};
export declare function boxlThemed<T>(): <P, D extends BoxlComponentProps<Partial<P>, T> = BoxlComponentProps<Partial<P>, T>>(d: D) => {
(p: P & import("./types/Boxl").BoxlNativeProps<P, T> & Pick<React.AllHTMLAttributes<HTMLElement>, "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "tabIndex" | "title" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">): JSX.Element;
displayName: string;
};

@@ -37,12 +37,2 @@ 'use strict';

function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
return t;
}
function __makeTemplateObject(cooked, raw) {

@@ -64,2 +54,16 @@ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }

function omit(obj, keys) {
var target = {};
for (var i in obj) {
if (keys.indexOf(i) >= 0) {
continue;
}
if (!Object.prototype.hasOwnProperty.call(obj, i)) {
continue;
}
target[i] = obj[i];
}
return target;
}
function styleOfProp(attribute, prop, props, translate) {

@@ -108,3 +112,3 @@ if (translate === void 0) { translate = function (x) {

function cssInfo(raw) {
var _a = raw.match(/^([+-]?[0-9\.]+)(%|ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmax|vmin|vw)$/) || [raw, raw, "px"], value = _a[1], unit = _a[2];
var _a = raw.match(/^([+-]?[0-9\.]+)(%|ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmax|vmin|vw|fr)$/) || [raw, raw, "px"], value = _a[1], unit = _a[2];
var parsedValue = parseFloat(value);

@@ -152,3 +156,23 @@ return { raw: raw, unit: unit, value: parsedValue };

function BoxlComponent(props) {
var alignHorizontal = props.alignHorizontal, alignVertical = props.alignVertical, childGrow = props.childGrow, childIdealWidth = props.childIdealWidth, childWrap = props.childWrap, children = props.children, _a = props.direction, direction = _a === void 0 ? "vertical" : _a, _b = props.element, element = _b === void 0 ? "div" : _b, growUncomputed = props.grow, idealWidth = props.idealWidth, _c = props.isChild, isChild = _c === void 0 ? false : _c, padding = props.padding, spacing = props.spacing, style = props.style, propsRest = __rest(props, ["alignHorizontal", "alignVertical", "childGrow", "childIdealWidth", "childWrap", "children", "direction", "element", "grow", "idealWidth", "isChild", "padding", "spacing", "style"]);
var propsRest = omit(props, [
"alignHorizontal",
"alignVertical",
"childGrow",
"childIdealWidth",
"childWrap",
"children",
"direction",
"element",
"grow",
"idealWidth",
"isChild",
"padding",
"spacing",
"style",
]);
var alignHorizontal = props.alignHorizontal, alignVertical = props.alignVertical, childGrow = props.childGrow, childIdealWidth = props.childIdealWidth, childWrap = props.childWrap, children = props.children, _a = props.direction, direction = _a === void 0 ? "vertical" : _a, _b = props.element, element = _b === void 0 ? "div" : _b, growUncomputed = props.grow,
// idealWidth,
_c = props.isChild,
// idealWidth,
isChild = _c === void 0 ? false : _c, padding = props.padding, spacing = props.spacing, style = props.style;
/**

@@ -183,3 +207,3 @@ * Computed Props

var theme = _a.theme;
var propsWithTheme = __assign({}, props, { theme: theme });
var propsWithTheme = Object.assign({}, props, { theme: theme }); //tslint:disable-line
var styleString = shouldUseFullStructure

@@ -196,3 +220,3 @@ ? typeof style === "function"

var theme = _a.theme;
var propsWithTheme = __assign({}, props, { theme: theme });
var propsWithTheme = Object.assign({}, props, { theme: theme }); //tslint:disable-line
var styleString = shouldUseFullStructure

@@ -216,3 +240,3 @@ ? undefined

var myGrow = myProps.grow, myIdealWidth = myProps.idealWidth, isDummy = myProps.isDummy, theme = myProps.theme;
var propsWithTheme = __assign({}, props, { theme: theme });
var propsWithTheme = Object.assign({}, props, { theme: theme }); //tslint:disable-line
return styled.css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n ", "\n ", "\n ", "\n ", ";\n "], ["\n box-sizing: border-box;\n display: flex;\n ", "\n ", "\n ", "\n ",

@@ -264,5 +288,5 @@ ";\n "])), styleOfProp("flex-grow", myGrow, propsWithTheme), myIdealWidth && styleOfProp("flex-basis", myIdealWidth, propsWithTheme), isDummy ? "height: 0;" : "", shouldUseFullStructure && spacing && !isDummy

}
function boxl(defaultProps) {
function Boxl(props) {
return React.createElement(BoxlComponent, __assign({}, defaultProps, props));
function boxl(d) {
function Boxl(p) {
return React.createElement(BoxlComponent, __assign({}, d, p));
}

@@ -272,4 +296,10 @@ Boxl.displayName = "Boxl";

}
function boxlThemed() {
return function (d) {
return boxl(d);
};
}
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
exports.boxl = boxl;
exports.boxlThemed = boxlThemed;

@@ -9,3 +9,3 @@ import * as React from "react";

};
export declare type BoxlComponentProps<P = {}, T = {}> = {
export interface BoxlNativeProps<P = {}, T = {}> {
alignHorizontal?: BoxlPropAlignmentHorizontal<P, T>;

@@ -24,4 +24,4 @@ alignVertical?: BoxlPropAlignmentVertical<P, T>;

style?: BoxlPropStyle<P, T>;
} & BoxlElement & P;
export declare type BoxlComponentPropsThemed<P, T> = BoxlComponentProps<P, T> & ThemeProps<T>;
}
export declare type BoxlComponentProps<P = {}, T = {}> = BoxlNativeProps<P, T> & BoxlElement & P;
export declare type BoxlElement = Omit<React.AllHTMLAttributes<HTMLElement>, "style">;

@@ -41,10 +41,12 @@ export declare type BoxlProp<A, P, T> = A | (BoxlPropThemeFn<A, P, T>) | (BoxlPropMediaQuery<A, P, T>);

export declare type BoxlPropStyle<P, T> = string | ReadonlyArray<string> | ((styleFn: BoxlThemeThunk<P, T>) => BoxlThemeThunkReturn<P, T>);
export declare type BoxlPropThemeFn<A, P, T> = (props: BoxlComponentPropsThemed<P, T>) => A | BoxlPropMediaQuery<A, P, T>;
export declare type BoxlPropThemeFn<A, P, T> = (props: BoxlPropsThemed<P, T>) => A | BoxlPropMediaQuery<A, P, T>;
export declare type BoxlPropWrap<P, T> = BoxlProp<"auto" | "even" | undefined, P, T>;
export declare type BoxlProps<P = {}, T = {}> = Omit<BoxlComponentProps<P, T>, keyof P> | BoxlComponentProps<P, T>;
export declare type BoxlThemeThunk<P, T> = (strings: ReadonlyArray<string>, ...interpolations: Array<InterpolationFunction<BoxlComponentPropsThemed<P, T>> | string>) => BoxlThemeThunkReturn<P, T>;
export declare type BoxlProps<P = {}, T = {}> = BoxlComponentProps<P, T>;
export declare type BoxlPropsPartial<P, T> = BoxlProps<Partial<P>, T>;
export declare type BoxlPropsThemed<P, T> = BoxlProps<P, T> & ThemeProps<T>;
export declare type BoxlThemeThunk<P, T> = (strings: ReadonlyArray<string>, ...interpolations: Array<InterpolationFunction<BoxlPropsThemed<P, T>> | string>) => BoxlThemeThunkReturn<P, T>;
export declare type BoxlThemeThunkReturn<P, T> = {
literals: ReadonlyArray<string>;
interpolations: Array<InterpolationFunction<BoxlComponentPropsThemed<P, T>> | string>;
interpolations: Array<InterpolationFunction<BoxlPropsThemed<P, T>> | string>;
};
export declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
{
"name": "react-boxl",
"version": "0.9.0",
"version": "0.10.0",
"description": "Layout primitives for the styled component age.",

@@ -82,3 +82,3 @@ "author": "Crema",

"tslint-react": "^3.6.0",
"typescript": "^3.2.0-dev.20181117"
"typescript": "^3.1.6"
},

@@ -85,0 +85,0 @@ "loki": {

@@ -24,2 +24,3 @@ # B ❐ X L

style: `
background: white;
border: 8px solid black;

@@ -33,3 +34,3 @@ box-shadow: 12px -12px 0 0 black;

/**
* Additional props may be statically defined
* Additional props may be statically defined
* using an optional type parameter.

@@ -45,2 +46,3 @@ */

${props => (props.primary ? `background: black;` : ``)};
background: white;
border: 8px solid black;

@@ -83,2 +85,22 @@ padding: 32px;

<summary>
<code><strong>alignHorizontal?: "left" | "center" | "right"</strong></code>
</summary>
<br>
Aligns children horizontally regardless of `direction` ***(default: "left")***
</details>
<details>
<summary>
<code><strong>alignVertical?: "top" | "center" | "bottom"</strong></code>
</summary>
<br>
Aligns children vertically regardless of `direction` ***(default: "top")***
</details>
<details>
<summary>
<code><strong>childGrow?: number</strong></code>

@@ -233,12 +255,2 @@ </summary>

<summary>
<code><strong>horizontalAlign?: "left" | "center" | "right"</strong></code>
</summary>
<br>
Aligns children horizontally regardless of `direction` ***(default: "left")***
</details>
<details>
<summary>
<code><strong>idealWidth?: string (CSS length)</strong></code>

@@ -309,12 +321,2 @@ </summary>

<details>
<summary>
<code><strong>verticalAlign?: "top" | "center" | "bottom"</strong></code>
</summary>
<br>
Aligns children vertically regardless of `direction` ***(default: "top")***
</details>
## Develop

@@ -321,0 +323,0 @@

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