Comparing version 0.4.6 to 0.4.7
@@ -331,2 +331,5 @@ "use strict" | ||
}) | ||
const fill = ex({ | ||
propsKeys: ["fill", "fc"] | ||
}) | ||
const outlineColor = ex({ | ||
@@ -337,3 +340,10 @@ propsKeys: ["outlineColor", "olc"] | ||
name: "color", | ||
renderers: [background, backgroundColor, borderColor, color, outlineColor] | ||
renderers: [ | ||
background, | ||
backgroundColor, | ||
borderColor, | ||
color, | ||
fill, | ||
outlineColor | ||
] | ||
}) | ||
@@ -953,2 +963,3 @@ | ||
exports.extend = extend | ||
exports.fill = fill | ||
exports.filter = filter | ||
@@ -955,0 +966,0 @@ exports.flex = flex |
@@ -327,2 +327,5 @@ const PX_SCALE = [0, 2, 4, 8, 16, 32, 64, 128, 256, 512] | ||
}) | ||
const fill = ex({ | ||
propsKeys: ["fill", "fc"] | ||
}) | ||
const outlineColor = ex({ | ||
@@ -333,3 +336,10 @@ propsKeys: ["outlineColor", "olc"] | ||
name: "color", | ||
renderers: [background, backgroundColor, borderColor, color, outlineColor] | ||
renderers: [ | ||
background, | ||
backgroundColor, | ||
borderColor, | ||
color, | ||
fill, | ||
outlineColor | ||
] | ||
}) | ||
@@ -950,2 +960,3 @@ | ||
extend, | ||
fill, | ||
filter, | ||
@@ -952,0 +963,0 @@ flex, |
{ | ||
"name": "onno", | ||
"license": "MIT", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"homepage": "https://onnojs.com", | ||
@@ -33,3 +33,3 @@ "description": "Responsive style props for building themed design systems", | ||
}, | ||
"gitHead": "a8c64efff232eaff9e6ec87ec63758263bc90319" | ||
"gitHead": "89ef42b92731ae98e7e826a8afdc7faa4aeb464a" | ||
} |
@@ -52,2 +52,12 @@ import * as C from "csstype" | ||
export declare const color: T.RenderFunction<ColorProps, ColorStyle> | ||
export declare type FillValue = C.FillProperty | ||
export declare type FillProp = T.Prop<FillValue> | ||
export interface FillProps extends T.ThemeProps { | ||
fill?: FillProp | ||
fc?: FillProp | ||
} | ||
export interface FillStyle extends T.Style { | ||
fill?: FillValue | ||
} | ||
export declare const fill: T.RenderFunction<FillProps, FillStyle> | ||
export declare type OutlineColorValue = C.OutlineColorProperty | ||
@@ -70,2 +80,3 @@ export declare type OutlineColorProp = T.Prop<OutlineColorValue | number> | ||
ColorProps & | ||
FillProps & | ||
OutlineColorProps | ||
@@ -76,2 +87,3 @@ export declare type ColorSetStyle = BackgroundStyle & | ||
ColorStyle & | ||
FillStyle & | ||
OutlineColorStyle | ||
@@ -78,0 +90,0 @@ export declare const colorSet: T.ComposedRenderFunction< |
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
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
119701
4107