@stokelp/styled-system 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/conditions.mjs +34 -0
- package/css/css.d.ts +9 -0
- package/css/css.mjs +45 -0
- package/css/cva.d.ts +6 -0
- package/css/cva.mjs +87 -0
- package/css/cx.d.ts +5 -0
- package/css/cx.mjs +15 -0
- package/css/index.d.ts +5 -0
- package/css/index.mjs +4 -0
- package/css/sva.d.ts +4 -0
- package/css/sva.mjs +41 -0
- package/jsx/aspect-ratio.d.ts +10 -0
- package/jsx/aspect-ratio.mjs +14 -0
- package/jsx/bleed.d.ts +10 -0
- package/jsx/bleed.mjs +14 -0
- package/jsx/box.d.ts +10 -0
- package/jsx/box.mjs +14 -0
- package/jsx/center.d.ts +10 -0
- package/jsx/center.mjs +14 -0
- package/jsx/circle.d.ts +10 -0
- package/jsx/circle.mjs +14 -0
- package/jsx/container.d.ts +10 -0
- package/jsx/container.mjs +14 -0
- package/jsx/cq.d.ts +10 -0
- package/jsx/cq.mjs +14 -0
- package/jsx/divider.d.ts +10 -0
- package/jsx/divider.mjs +14 -0
- package/jsx/factory-helper.mjs +22 -0
- package/jsx/factory.d.ts +3 -0
- package/jsx/factory.mjs +80 -0
- package/jsx/flex.d.ts +10 -0
- package/jsx/flex.mjs +14 -0
- package/jsx/float.d.ts +10 -0
- package/jsx/float.mjs +14 -0
- package/jsx/grid-item.d.ts +10 -0
- package/jsx/grid-item.mjs +14 -0
- package/jsx/grid.d.ts +10 -0
- package/jsx/grid.mjs +14 -0
- package/jsx/hstack.d.ts +10 -0
- package/jsx/hstack.mjs +14 -0
- package/jsx/index.d.ts +25 -0
- package/jsx/index.mjs +23 -0
- package/jsx/is-valid-prop.d.ts +11 -0
- package/jsx/is-valid-prop.mjs +17 -0
- package/jsx/link-box.d.ts +10 -0
- package/jsx/link-box.mjs +14 -0
- package/jsx/link-overlay.d.ts +10 -0
- package/jsx/link-overlay.mjs +14 -0
- package/jsx/spacer.d.ts +10 -0
- package/jsx/spacer.mjs +14 -0
- package/jsx/square.d.ts +10 -0
- package/jsx/square.mjs +14 -0
- package/jsx/stack.d.ts +10 -0
- package/jsx/stack.mjs +14 -0
- package/jsx/visually-hidden.d.ts +10 -0
- package/jsx/visually-hidden.mjs +14 -0
- package/jsx/vstack.d.ts +10 -0
- package/jsx/vstack.mjs +14 -0
- package/jsx/wrap.d.ts +10 -0
- package/jsx/wrap.mjs +14 -0
- package/package.json +56 -0
- package/panda.buildinfo.json +75 -0
- package/patterns/aspect-ratio.d.ts +21 -0
- package/patterns/aspect-ratio.mjs +38 -0
- package/patterns/bleed.d.ts +22 -0
- package/patterns/bleed.mjs +24 -0
- package/patterns/box.d.ts +21 -0
- package/patterns/box.mjs +15 -0
- package/patterns/center.d.ts +21 -0
- package/patterns/center.mjs +21 -0
- package/patterns/circle.d.ts +21 -0
- package/patterns/circle.mjs +25 -0
- package/patterns/container.d.ts +21 -0
- package/patterns/container.mjs +21 -0
- package/patterns/cq.d.ts +22 -0
- package/patterns/cq.mjs +21 -0
- package/patterns/divider.d.ts +23 -0
- package/patterns/divider.mjs +25 -0
- package/patterns/flex.d.ts +27 -0
- package/patterns/flex.mjs +26 -0
- package/patterns/float.d.ts +24 -0
- package/patterns/float.mjs +52 -0
- package/patterns/grid-item.d.ts +26 -0
- package/patterns/grid-item.mjs +25 -0
- package/patterns/grid.d.ts +25 -0
- package/patterns/grid.mjs +27 -0
- package/patterns/hstack.d.ts +22 -0
- package/patterns/hstack.mjs +24 -0
- package/patterns/index.d.ts +22 -0
- package/patterns/index.mjs +21 -0
- package/patterns/link-box.d.ts +21 -0
- package/patterns/link-box.mjs +22 -0
- package/patterns/link-overlay.d.ts +21 -0
- package/patterns/link-overlay.mjs +27 -0
- package/patterns/spacer.d.ts +21 -0
- package/patterns/spacer.mjs +21 -0
- package/patterns/square.d.ts +21 -0
- package/patterns/square.mjs +24 -0
- package/patterns/stack.d.ts +24 -0
- package/patterns/stack.mjs +24 -0
- package/patterns/visually-hidden.d.ts +21 -0
- package/patterns/visually-hidden.mjs +18 -0
- package/patterns/vstack.d.ts +22 -0
- package/patterns/vstack.mjs +24 -0
- package/patterns/wrap.d.ts +25 -0
- package/patterns/wrap.mjs +25 -0
- package/recipes/accordion.d.ts +28 -0
- package/recipes/accordion.mjs +56 -0
- package/recipes/button.d.ts +30 -0
- package/recipes/button.mjs +116 -0
- package/recipes/checkbox.d.ts +28 -0
- package/recipes/checkbox.mjs +52 -0
- package/recipes/create-recipe.mjs +82 -0
- package/recipes/drawer.d.ts +28 -0
- package/recipes/drawer.mjs +77 -0
- package/recipes/form-control.d.ts +28 -0
- package/recipes/form-control.mjs +24 -0
- package/recipes/form-helper-text.d.ts +28 -0
- package/recipes/form-helper-text.mjs +24 -0
- package/recipes/form-label.d.ts +28 -0
- package/recipes/form-label.mjs +36 -0
- package/recipes/heading.d.ts +30 -0
- package/recipes/heading.mjs +41 -0
- package/recipes/index.d.ts +12 -0
- package/recipes/index.mjs +11 -0
- package/recipes/switch-recipe.d.ts +28 -0
- package/recipes/switch-recipe.mjs +52 -0
- package/recipes/text.d.ts +31 -0
- package/recipes/text.mjs +41 -0
- package/recipes/textarea.d.ts +28 -0
- package/recipes/textarea.mjs +24 -0
- package/tokens/index.d.ts +9 -0
- package/tokens/index.mjs +1496 -0
- package/tokens/tokens.d.ts +63 -0
- package/types/composition.d.ts +111 -0
- package/types/conditions.d.ts +270 -0
- package/types/csstype.d.ts +21298 -0
- package/types/global.d.ts +19 -0
- package/types/index.d.ts +8 -0
- package/types/jsx.d.ts +52 -0
- package/types/parts.d.ts +8 -0
- package/types/pattern.d.ts +74 -0
- package/types/prop-type.d.ts +242 -0
- package/types/recipe.d.ts +173 -0
- package/types/selectors.d.ts +59 -0
- package/types/static-css.d.ts +51 -0
- package/types/style-props.d.ts +7468 -0
- package/types/system-types.d.ts +89 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
interface WithConditions {
|
|
3
|
+
/**
|
|
4
|
+
* The css conditions to generate for the rule.
|
|
5
|
+
* @example ['hover', 'focus']
|
|
6
|
+
*/
|
|
7
|
+
conditions?: string[]
|
|
8
|
+
responsive?: boolean
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface CssRule extends WithConditions {
|
|
12
|
+
/**
|
|
13
|
+
* The css properties to generate utilities for.
|
|
14
|
+
* @example ['margin', 'padding']
|
|
15
|
+
*/
|
|
16
|
+
properties: {
|
|
17
|
+
[property: string]: Array<string | number>
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface RecipeRuleVariants {
|
|
22
|
+
[variant: string]: boolean | string[]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type RecipeRule = '*' | (RecipeRuleVariants & WithConditions)
|
|
26
|
+
export type PatternRule = '*' | CssRule
|
|
27
|
+
|
|
28
|
+
export interface StaticCssOptions {
|
|
29
|
+
/**
|
|
30
|
+
* The css utility classes to generate.
|
|
31
|
+
*/
|
|
32
|
+
css?: CssRule[]
|
|
33
|
+
/**
|
|
34
|
+
* The css recipes to generate.
|
|
35
|
+
*/
|
|
36
|
+
recipes?:
|
|
37
|
+
| '*'
|
|
38
|
+
| {
|
|
39
|
+
[recipe: string]: RecipeRule[]
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The css patterns to generate.
|
|
43
|
+
*/
|
|
44
|
+
patterns?: {
|
|
45
|
+
[pattern: string]: PatternRule[]
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The CSS themes to generate
|
|
49
|
+
*/
|
|
50
|
+
themes?: string[]
|
|
51
|
+
}
|