@welcome-ui/system
Advanced tools
Comparing version 5.12.0 to 5.13.3-alpha.1
@@ -35,3 +35,2 @@ var __create = Object.create; | ||
forwardRef: () => forwardRef, | ||
shouldForwardProp: () => shouldForwardProp, | ||
system: () => system, | ||
@@ -42,14 +41,14 @@ wrapperSystem: () => wrapperSystem | ||
var import_react = __toESM(require("react")); | ||
var import_styled_components = require("@xstyled/styled-components"); | ||
var S = __toESM(require("@xstyled/styled-components")); | ||
var oldProps = (0, import_styled_components.compose)( | ||
(0, import_styled_components.style)({ prop: "opacity" }), | ||
(0, import_styled_components.style)({ prop: "overflow" }), | ||
(0, import_styled_components.style)({ prop: "transition", themeGet: import_styled_components.getTransition }), | ||
(0, import_styled_components.style)({ prop: "position" }), | ||
(0, import_styled_components.style)({ prop: "zIndex", themeGet: import_styled_components.getZIndex }), | ||
(0, import_styled_components.style)({ prop: "top", themeGet: import_styled_components.getPx }), | ||
(0, import_styled_components.style)({ prop: "right", themeGet: import_styled_components.getPx }), | ||
(0, import_styled_components.style)({ prop: "bottom", themeGet: import_styled_components.getPx }), | ||
(0, import_styled_components.style)({ prop: "left", themeGet: import_styled_components.getPx }) | ||
var import_xstyled_styled_components = require("@wttj/xstyled-styled-components"); | ||
var S = __toESM(require("@wttj/xstyled-styled-components")); | ||
var oldProps = (0, import_xstyled_styled_components.compose)( | ||
(0, import_xstyled_styled_components.style)({ prop: "opacity" }), | ||
(0, import_xstyled_styled_components.style)({ prop: "overflow" }), | ||
(0, import_xstyled_styled_components.style)({ prop: "transition", themeGet: import_xstyled_styled_components.getTransition }), | ||
(0, import_xstyled_styled_components.style)({ prop: "position" }), | ||
(0, import_xstyled_styled_components.style)({ prop: "zIndex", themeGet: import_xstyled_styled_components.getZIndex }), | ||
(0, import_xstyled_styled_components.style)({ prop: "top", themeGet: import_xstyled_styled_components.getPx }), | ||
(0, import_xstyled_styled_components.style)({ prop: "right", themeGet: import_xstyled_styled_components.getPx }), | ||
(0, import_xstyled_styled_components.style)({ prop: "bottom", themeGet: import_xstyled_styled_components.getPx }), | ||
(0, import_xstyled_styled_components.style)({ prop: "left", themeGet: import_xstyled_styled_components.getPx }) | ||
); | ||
@@ -86,4 +85,4 @@ var SYSTEM_PROPS = Object.freeze([ | ||
]); | ||
var system = (0, import_styled_components.compose)(...SYSTEM_PROPS); | ||
var wrapperSystem = (0, import_styled_components.compose)(...WRAPPER_PROPS); | ||
var system = (0, import_xstyled_styled_components.compose)(...SYSTEM_PROPS); | ||
var wrapperSystem = (0, import_xstyled_styled_components.compose)(...WRAPPER_PROPS); | ||
var componentProps = system.meta.props.filter((prop) => !wrapperSystem.meta.props.includes(prop)).map((prop) => { | ||
@@ -96,7 +95,6 @@ if (prop === "w") | ||
}).filter(Boolean); | ||
var componentSystem = (0, import_styled_components.compose)(...componentProps); | ||
var componentSystem = (0, import_xstyled_styled_components.compose)(...componentProps); | ||
var filterSystemProps = (prop) => !system.meta.props.includes(prop); | ||
var shouldForwardProp = (prop, defaultValidatorFn) => defaultValidatorFn(prop); | ||
var forwardRef = (component) => { | ||
return import_react.default.forwardRef(component); | ||
}; |
import React from 'react'; | ||
import { SystemProps } from '@xstyled/styled-components'; | ||
import * as S from '@xstyled/styled-components'; | ||
import { StyledConfig } from 'styled-components'; | ||
import { SystemProps } from '@wttj/xstyled-styled-components'; | ||
import * as S from '@wttj/xstyled-styled-components'; | ||
/** | ||
* @deprecated use system from @xstyled/syled-components instead | ||
* @deprecated use system from @wttj/xstyled-syled-components instead | ||
*/ | ||
export declare const system: S.StyleGenerator<WuiSystemProps>; | ||
/** | ||
* @deprecated use system from @xstyled/syled-components instead | ||
* @deprecated use system from @wttj/xstyled-syled-components instead | ||
*/ | ||
export declare const wrapperSystem: S.StyleGenerator<WuiWrapperSystemProps>; | ||
/** | ||
* @deprecated use system from @xstyled/syled-components instead | ||
* @deprecated use system from @wttj/xstyled-syled-components instead | ||
*/ | ||
export declare const componentSystem: S.StyleGenerator<unknown>; | ||
export declare const filterSystemProps: (prop: string) => boolean; | ||
export declare const shouldForwardProp: StyledConfig['shouldForwardProp']; | ||
export type WuiOldProps = S.OpacityProps & S.OverflowProps & S.TransitionProps & S.ZIndexProps & S.TopProps & S.RightProps & S.BottomProps & S.LeftProps; | ||
@@ -20,0 +18,0 @@ export type WuiSystemProps = S.BackgroundsProps & S.BorderProps & S.BoxShadowProps & S.ColorProps & S.DisplayProps & S.FlexboxesProps & S.GridsProps & S.HeightProps & S.MaxHeightProps & S.MaxWidthProps & S.MinHeightProps & S.MinWidthProps & S.SpaceProps & S.TypographyProps & S.VerticalAlignProps & S.WidthProps & WuiOldProps; |
{ | ||
"name": "@welcome-ui/system", | ||
"version": "5.12.0", | ||
"version": "5.13.3-alpha.1", | ||
"description": "Customizable design system with react • styled-components • styled-system and ariakit.", | ||
@@ -46,7 +46,7 @@ "main": "dist/index.js", | ||
"peerDependencies": { | ||
"@xstyled/styled-components": "^3.7.3", | ||
"@wttj/xstyled-styled-components": "^4.0.0", | ||
"react": "^18.0.0", | ||
"styled-components": "^5.3.9" | ||
"styled-components": "^6.1.8" | ||
}, | ||
"gitHead": "57746ae1c5dd3cef664ce2eecec2ab3465242c0b", | ||
"gitHead": "706dc3b57025e553d802074c572676f2dcc89421", | ||
"sideEffects": false, | ||
@@ -53,0 +53,0 @@ "component": "System", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
11130
206
1