@stokelp/styled-system 1.9.0 → 1.10.0
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/css.d.ts +15 -2
- package/helpers.mjs +1 -1
- package/jsx/aspect-ratio.mjs +1 -1
- package/jsx/bleed.mjs +1 -1
- package/jsx/box.mjs +1 -1
- package/jsx/center.mjs +1 -1
- package/jsx/circle.mjs +1 -1
- package/jsx/container.mjs +1 -1
- package/jsx/cq.mjs +1 -1
- package/jsx/divider.mjs +1 -1
- package/jsx/flex.mjs +1 -1
- package/jsx/float.mjs +1 -1
- package/jsx/grid-item.mjs +1 -1
- package/jsx/grid.mjs +1 -1
- package/jsx/hstack.mjs +1 -1
- package/jsx/index.d.ts +0 -1
- package/jsx/index.mjs +0 -1
- package/jsx/link-overlay.mjs +1 -1
- package/jsx/spacer.mjs +1 -1
- package/jsx/square.mjs +1 -1
- package/jsx/stack.mjs +1 -1
- package/jsx/visually-hidden.mjs +1 -1
- package/jsx/vstack.mjs +1 -1
- package/jsx/wrap.mjs +1 -1
- package/package.json +2 -2
- package/panda.buildinfo.json +1 -1
- package/patterns/index.d.ts +0 -1
- package/patterns/index.mjs +0 -1
- package/patterns/link-overlay.mjs +0 -3
- package/recipes/accordion.d.ts +4 -1
- package/recipes/button.d.ts +15 -2
- package/recipes/checkbox.d.ts +5 -2
- package/recipes/checkbox.mjs +4 -0
- package/recipes/drawer.d.ts +4 -1
- package/recipes/form-control.d.ts +5 -1
- package/recipes/form-helper-text.d.ts +5 -1
- package/recipes/form-label.d.ts +9 -2
- package/recipes/heading.d.ts +3 -0
- package/recipes/input-addon.d.ts +5 -1
- package/recipes/input-group.d.ts +5 -1
- package/recipes/input.d.ts +9 -2
- package/recipes/select.d.ts +5 -2
- package/recipes/select.mjs +4 -0
- package/recipes/switch-recipe.d.ts +4 -1
- package/recipes/tabs.d.ts +4 -1
- package/recipes/tag.d.ts +12 -2
- package/recipes/text.d.ts +3 -0
- package/tokens/tokens.d.ts +0 -3
- package/types/composition.d.ts +39 -12
- package/types/pattern.d.ts +4 -0
- package/types/prop-type.d.ts +3 -2
- package/types/recipe.d.ts +8 -0
- package/types/style-props.d.ts +1 -1
- package/types/system-types.d.ts +2 -3
- package/jsx/link-box.d.ts +0 -10
- package/jsx/link-box.mjs +0 -14
- package/patterns/link-box.d.ts +0 -21
- package/patterns/link-box.mjs +0 -22
package/css/css.d.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject } from '../types/index';
|
|
3
3
|
|
|
4
|
+
type Styles = SystemStyleObject | undefined | null | false
|
|
5
|
+
|
|
6
|
+
interface CssRawFunction {
|
|
7
|
+
(styles: Styles): SystemStyleObject
|
|
8
|
+
(styles: Styles[]): SystemStyleObject
|
|
9
|
+
(...styles: Array<Styles | Styles[]>): SystemStyleObject
|
|
10
|
+
(styles: Styles): SystemStyleObject
|
|
11
|
+
}
|
|
12
|
+
|
|
4
13
|
interface CssFunction {
|
|
5
|
-
(
|
|
6
|
-
|
|
14
|
+
(styles: Styles): string
|
|
15
|
+
(styles: Styles[]): string
|
|
16
|
+
(...styles: Array<Styles | Styles[]>): string
|
|
17
|
+
(styles: Styles): string
|
|
18
|
+
|
|
19
|
+
raw: CssRawFunction
|
|
7
20
|
}
|
|
8
21
|
|
|
9
22
|
export declare const css: CssFunction;
|
package/helpers.mjs
CHANGED
|
@@ -180,7 +180,7 @@ function createCss(context) {
|
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
function compactStyles(...styles) {
|
|
183
|
-
return styles.filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
|
|
183
|
+
return styles.flat().filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
|
|
184
184
|
}
|
|
185
185
|
function createMergeCss(context) {
|
|
186
186
|
function resolve(styles) {
|
package/jsx/aspect-ratio.mjs
CHANGED
package/jsx/bleed.mjs
CHANGED
package/jsx/box.mjs
CHANGED
package/jsx/center.mjs
CHANGED
package/jsx/circle.mjs
CHANGED
package/jsx/container.mjs
CHANGED
package/jsx/cq.mjs
CHANGED
package/jsx/divider.mjs
CHANGED
package/jsx/flex.mjs
CHANGED
package/jsx/float.mjs
CHANGED
package/jsx/grid-item.mjs
CHANGED
package/jsx/grid.mjs
CHANGED
package/jsx/hstack.mjs
CHANGED
package/jsx/index.d.ts
CHANGED
package/jsx/index.mjs
CHANGED
|
@@ -9,7 +9,6 @@ export * from './spacer.mjs';
|
|
|
9
9
|
export * from './square.mjs';
|
|
10
10
|
export * from './circle.mjs';
|
|
11
11
|
export * from './center.mjs';
|
|
12
|
-
export * from './link-box.mjs';
|
|
13
12
|
export * from './link-overlay.mjs';
|
|
14
13
|
export * from './aspect-ratio.mjs';
|
|
15
14
|
export * from './grid.mjs';
|
package/jsx/link-overlay.mjs
CHANGED
package/jsx/spacer.mjs
CHANGED
package/jsx/square.mjs
CHANGED
package/jsx/stack.mjs
CHANGED
package/jsx/visually-hidden.mjs
CHANGED
package/jsx/vstack.mjs
CHANGED
package/jsx/wrap.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stokelp/styled-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Stokelp UI styled-system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"./panda.buildinfo.json": "./panda.buildinfo.json"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@pandacss/dev": "^0.
|
|
59
|
+
"@pandacss/dev": "^0.41.0"
|
|
60
60
|
},
|
|
61
61
|
"release": {
|
|
62
62
|
"monorepo": {
|
package/panda.buildinfo.json
CHANGED
package/patterns/index.d.ts
CHANGED
package/patterns/index.mjs
CHANGED
|
@@ -7,7 +7,6 @@ export * from './spacer.mjs';
|
|
|
7
7
|
export * from './square.mjs';
|
|
8
8
|
export * from './circle.mjs';
|
|
9
9
|
export * from './center.mjs';
|
|
10
|
-
export * from './link-box.mjs';
|
|
11
10
|
export * from './link-overlay.mjs';
|
|
12
11
|
export * from './aspect-ratio.mjs';
|
|
13
12
|
export * from './grid.mjs';
|
|
@@ -4,12 +4,9 @@ import { css } from '../css/index.mjs';
|
|
|
4
4
|
const linkOverlayConfig = {
|
|
5
5
|
transform(props8) {
|
|
6
6
|
return {
|
|
7
|
-
position: "static",
|
|
8
7
|
_before: {
|
|
9
8
|
content: '""',
|
|
10
|
-
display: "block",
|
|
11
9
|
position: "absolute",
|
|
12
|
-
cursor: "inherit",
|
|
13
10
|
inset: "0",
|
|
14
11
|
zIndex: "0",
|
|
15
12
|
...props8["_before"]
|
package/recipes/accordion.d.ts
CHANGED
package/recipes/button.d.ts
CHANGED
|
@@ -3,8 +3,17 @@ import type { ConditionalValue } from '../types/index';
|
|
|
3
3
|
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
4
|
|
|
5
5
|
interface ButtonVariant {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "lg"
|
|
8
|
+
*/
|
|
9
|
+
size: "lg" | "md" | "sm"
|
|
10
|
+
/**
|
|
11
|
+
* @default "primary"
|
|
12
|
+
*/
|
|
7
13
|
variant: "primary" | "secondary" | "tertiary"
|
|
14
|
+
/**
|
|
15
|
+
* @default "none"
|
|
16
|
+
*/
|
|
8
17
|
severity: "none" | "danger"
|
|
9
18
|
}
|
|
10
19
|
|
|
@@ -26,5 +35,9 @@ export interface ButtonRecipe {
|
|
|
26
35
|
getVariantProps: (props?: ButtonVariantProps) => ButtonVariantProps
|
|
27
36
|
}
|
|
28
37
|
|
|
29
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* The styles for the Button component
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
*/
|
|
30
43
|
export declare const button: ButtonRecipe
|
package/recipes/checkbox.d.ts
CHANGED
|
@@ -3,7 +3,10 @@ import type { ConditionalValue } from '../types/index';
|
|
|
3
3
|
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
4
|
|
|
5
5
|
interface CheckboxVariant {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "md"
|
|
8
|
+
*/
|
|
9
|
+
size: "md"
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
type CheckboxVariantMap = {
|
|
@@ -16,7 +19,7 @@ export type CheckboxVariantProps = {
|
|
|
16
19
|
|
|
17
20
|
export interface CheckboxRecipe {
|
|
18
21
|
__type: CheckboxVariantProps
|
|
19
|
-
(props?: CheckboxVariantProps): Pretty<Record<"root" | "label" | "control" | "indicator", string>>
|
|
22
|
+
(props?: CheckboxVariantProps): Pretty<Record<"root" | "label" | "control" | "indicator" | "group", string>>
|
|
20
23
|
raw: (props?: CheckboxVariantProps) => CheckboxVariantProps
|
|
21
24
|
variantMap: CheckboxVariantMap
|
|
22
25
|
variantKeys: Array<keyof CheckboxVariant>
|
package/recipes/checkbox.mjs
CHANGED
|
@@ -22,6 +22,10 @@ const checkboxSlotNames = [
|
|
|
22
22
|
[
|
|
23
23
|
"indicator",
|
|
24
24
|
"checkbox__indicator"
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
"group",
|
|
28
|
+
"checkbox__group"
|
|
25
29
|
]
|
|
26
30
|
]
|
|
27
31
|
const checkboxSlotFns = /* @__PURE__ */ checkboxSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, checkboxDefaultVariants, getSlotCompoundVariant(checkboxCompoundVariants, slotName))])
|
package/recipes/drawer.d.ts
CHANGED
|
@@ -3,7 +3,10 @@ import type { ConditionalValue } from '../types/index';
|
|
|
3
3
|
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
4
|
|
|
5
5
|
interface DrawerVariant {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "right"
|
|
8
|
+
*/
|
|
9
|
+
variant: "left" | "right"
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
type DrawerVariantMap = {
|
|
@@ -24,5 +24,9 @@ export interface FormControlRecipe {
|
|
|
24
24
|
getVariantProps: (props?: FormControlVariantProps) => FormControlVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* The styles for the FormControl component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const formControl: FormControlRecipe
|
|
@@ -24,5 +24,9 @@ export interface FormHelperTextRecipe {
|
|
|
24
24
|
getVariantProps: (props?: FormHelperTextVariantProps) => FormHelperTextVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* The styles for the FormHelperText component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const formHelperText: FormHelperTextRecipe
|
package/recipes/form-label.d.ts
CHANGED
|
@@ -3,7 +3,10 @@ import type { ConditionalValue } from '../types/index';
|
|
|
3
3
|
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
4
|
|
|
5
5
|
interface FormLabelVariant {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "absolute"
|
|
8
|
+
*/
|
|
9
|
+
variant: "static" | "absolute"
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
type FormLabelVariantMap = {
|
|
@@ -24,5 +27,9 @@ export interface FormLabelRecipe {
|
|
|
24
27
|
getVariantProps: (props?: FormLabelVariantProps) => FormLabelVariantProps
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* The styles for the FormLabel component
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
*/
|
|
28
35
|
export declare const formLabel: FormLabelRecipe
|
package/recipes/heading.d.ts
CHANGED
package/recipes/input-addon.d.ts
CHANGED
|
@@ -24,5 +24,9 @@ export interface InputAddonRecipe {
|
|
|
24
24
|
getVariantProps: (props?: InputAddonVariantProps) => InputAddonVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* The styles for the InputAddon component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const inputAddon: InputAddonRecipe
|
package/recipes/input-group.d.ts
CHANGED
|
@@ -24,5 +24,9 @@ export interface InputGroupRecipe {
|
|
|
24
24
|
getVariantProps: (props?: InputGroupVariantProps) => InputGroupVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* The styles for the InputGroup component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const inputGroup: InputGroupRecipe
|
package/recipes/input.d.ts
CHANGED
|
@@ -3,7 +3,10 @@ import type { ConditionalValue } from '../types/index';
|
|
|
3
3
|
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
4
|
|
|
5
5
|
interface InputVariant {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "md"
|
|
8
|
+
*/
|
|
9
|
+
size: "md"
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
type InputVariantMap = {
|
|
@@ -24,5 +27,9 @@ export interface InputRecipe {
|
|
|
24
27
|
getVariantProps: (props?: InputVariantProps) => InputVariantProps
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* The styles for the Input component
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
*/
|
|
28
35
|
export declare const input: InputRecipe
|
package/recipes/select.d.ts
CHANGED
|
@@ -3,7 +3,10 @@ import type { ConditionalValue } from '../types/index';
|
|
|
3
3
|
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
4
|
|
|
5
5
|
interface SelectVariant {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "md"
|
|
8
|
+
*/
|
|
9
|
+
size: "md"
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
type SelectVariantMap = {
|
|
@@ -16,7 +19,7 @@ export type SelectVariantProps = {
|
|
|
16
19
|
|
|
17
20
|
export interface SelectRecipe {
|
|
18
21
|
__type: SelectVariantProps
|
|
19
|
-
(props?: SelectVariantProps): Pretty<Record<"label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "content" | "root" | "control" | "valueText", string>>
|
|
22
|
+
(props?: SelectVariantProps): Pretty<Record<"label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "list" | "content" | "root" | "control" | "valueText", string>>
|
|
20
23
|
raw: (props?: SelectVariantProps) => SelectVariantProps
|
|
21
24
|
variantMap: SelectVariantMap
|
|
22
25
|
variantKeys: Array<keyof SelectVariant>
|
package/recipes/select.mjs
CHANGED
|
@@ -3,7 +3,10 @@ import type { ConditionalValue } from '../types/index';
|
|
|
3
3
|
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
4
|
|
|
5
5
|
interface SwitchRecipeVariant {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "md"
|
|
8
|
+
*/
|
|
9
|
+
size: "md"
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
type SwitchRecipeVariantMap = {
|
package/recipes/tabs.d.ts
CHANGED
package/recipes/tag.d.ts
CHANGED
|
@@ -3,7 +3,13 @@ import type { ConditionalValue } from '../types/index';
|
|
|
3
3
|
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
4
|
|
|
5
5
|
interface TagVariant {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "md"
|
|
8
|
+
*/
|
|
9
|
+
size: "lg" | "md" | "sm"
|
|
10
|
+
/**
|
|
11
|
+
* @default "neutral"
|
|
12
|
+
*/
|
|
7
13
|
severity: "success" | "warning" | "error" | "neutral"
|
|
8
14
|
}
|
|
9
15
|
|
|
@@ -25,5 +31,9 @@ export interface TagRecipe {
|
|
|
25
31
|
getVariantProps: (props?: TagVariantProps) => TagVariantProps
|
|
26
32
|
}
|
|
27
33
|
|
|
28
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* The styles for the Tag component
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
*/
|
|
29
39
|
export declare const tag: TagRecipe
|
package/recipes/text.d.ts
CHANGED
package/tokens/tokens.d.ts
CHANGED
|
@@ -37,8 +37,6 @@ export type ZIndexToken = "banner" | "base" | "docked" | "dropdown" | "hide" | "
|
|
|
37
37
|
|
|
38
38
|
export type BreakpointToken = "xl" | "lg" | "md" | "sm"
|
|
39
39
|
|
|
40
|
-
export type AnimationName = "blob" | "bounce" | "fade-in" | "fade-out" | "fadeIn" | "fadeInFromRight" | "fadeInSkew" | "fadeOut" | "fadeOutFromRight" | "fadeOutSkew" | "ping" | "pulse" | "skeleton-pulse" | "slide-in" | "slide-in-left" | "slide-in-modal" | "slide-in-right" | "slide-out" | "slide-out-left" | "slide-out-modal" | "slide-out-right" | "slideInFromBottom" | "slideOutToBottom" | "collapse-in" | "collapse-out" | "spin"
|
|
41
|
-
|
|
42
40
|
export type Tokens = {
|
|
43
41
|
animations: AnimationToken
|
|
44
42
|
aspectRatios: AspectRatioToken
|
|
@@ -57,7 +55,6 @@ export type Tokens = {
|
|
|
57
55
|
spacing: SpacingToken
|
|
58
56
|
zIndex: ZIndexToken
|
|
59
57
|
breakpoints: BreakpointToken
|
|
60
|
-
animationName: AnimationName
|
|
61
58
|
} & { [token: string]: never }
|
|
62
59
|
|
|
63
60
|
export type TokenCategory = "aspectRatios" | "zIndex" | "opacity" | "colors" | "fonts" | "fontSizes" | "fontWeights" | "lineHeights" | "letterSpacings" | "sizes" | "shadows" | "spacing" | "radii" | "borders" | "borderWidths" | "durations" | "easings" | "animations" | "blurs" | "gradients" | "breakpoints" | "assets"
|
package/types/composition.d.ts
CHANGED
|
@@ -15,34 +15,61 @@ interface Recursive<T> {
|
|
|
15
15
|
* -----------------------------------------------------------------------------*/
|
|
16
16
|
|
|
17
17
|
type TextStyleProperty =
|
|
18
|
+
| 'font'
|
|
19
|
+
| 'fontFamily'
|
|
20
|
+
| 'fontFeatureSettings'
|
|
21
|
+
| 'fontKerning'
|
|
22
|
+
| 'fontLanguageOverride'
|
|
23
|
+
| 'fontOpticalSizing'
|
|
24
|
+
| 'fontPalette'
|
|
18
25
|
| 'fontSize'
|
|
19
26
|
| 'fontSizeAdjust'
|
|
20
|
-
| '
|
|
21
|
-
| '
|
|
22
|
-
| '
|
|
23
|
-
| '
|
|
27
|
+
| 'fontStretch'
|
|
28
|
+
| 'fontStyle'
|
|
29
|
+
| 'fontSynthesis'
|
|
30
|
+
| 'fontVariant'
|
|
24
31
|
| 'fontVariantAlternates'
|
|
32
|
+
| 'fontVariantCaps'
|
|
25
33
|
| 'fontVariantLigatures'
|
|
26
|
-
| '
|
|
34
|
+
| 'fontVariantNumeric'
|
|
35
|
+
| 'fontVariantPosition'
|
|
36
|
+
| 'fontVariationSettings'
|
|
27
37
|
| 'fontWeight'
|
|
28
|
-
| '
|
|
29
|
-
| '
|
|
30
|
-
| '
|
|
31
|
-
| 'lineHeight'
|
|
38
|
+
| 'hypens'
|
|
39
|
+
| 'hyphenateCharacter'
|
|
40
|
+
| 'hyphenateLimitChars'
|
|
32
41
|
| 'letterSpacing'
|
|
42
|
+
| 'lineBreak'
|
|
43
|
+
| 'lineHeight'
|
|
44
|
+
| 'quotes'
|
|
45
|
+
| 'overflowWrap'
|
|
46
|
+
| 'textCombineUpright'
|
|
33
47
|
| 'textDecoration'
|
|
34
|
-
| 'textTransform'
|
|
35
|
-
| 'textIndent'
|
|
36
48
|
| 'textDecorationColor'
|
|
37
49
|
| 'textDecorationLine'
|
|
50
|
+
| 'textDecorationSkipInk'
|
|
38
51
|
| 'textDecorationStyle'
|
|
52
|
+
| 'textDecorationThickness'
|
|
53
|
+
| 'textEmphasis'
|
|
39
54
|
| 'textEmphasisColor'
|
|
40
55
|
| 'textEmphasisPosition'
|
|
41
56
|
| 'textEmphasisStyle'
|
|
42
|
-
| '
|
|
57
|
+
| 'textIndent'
|
|
58
|
+
| 'textJustify'
|
|
43
59
|
| 'textOrientation'
|
|
44
60
|
| 'textOverflow'
|
|
45
61
|
| 'textRendering'
|
|
62
|
+
| 'textShadow'
|
|
63
|
+
| 'textTransform'
|
|
64
|
+
| 'textUnderlineOffset'
|
|
65
|
+
| 'textUnderlinePosition'
|
|
66
|
+
| 'textWrap'
|
|
67
|
+
| 'textWrapMode'
|
|
68
|
+
| 'textWrapStyle'
|
|
69
|
+
| 'verticalAlign'
|
|
70
|
+
| 'whiteSpace'
|
|
71
|
+
| 'wordBreak'
|
|
72
|
+
| 'wordSpacing'
|
|
46
73
|
|
|
47
74
|
export type TextStyle = CompositionStyleObject<TextStyleProperty>
|
|
48
75
|
|
package/types/pattern.d.ts
CHANGED
|
@@ -50,6 +50,10 @@ export interface PatternConfig<T extends PatternProperties = PatternProperties>
|
|
|
50
50
|
* The css object this pattern will generate.
|
|
51
51
|
*/
|
|
52
52
|
transform?: (props: InferProps<T>, helpers: PatternHelpers) => SystemStyleObject
|
|
53
|
+
/**
|
|
54
|
+
* Whether the pattern is deprecated.
|
|
55
|
+
*/
|
|
56
|
+
deprecated?: boolean | string
|
|
53
57
|
/**
|
|
54
58
|
* The jsx element name this pattern will generate.
|
|
55
59
|
*/
|
package/types/prop-type.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import type {
|
|
2
|
+
import type { ConditionalValue } from './conditions';
|
|
3
3
|
import type { CssProperties } from './system-types';
|
|
4
4
|
import type { Tokens } from '../tokens/index';
|
|
5
5
|
|
|
@@ -17,7 +17,7 @@ export interface UtilityValues {
|
|
|
17
17
|
insetInlineStart: Tokens["spacing"];
|
|
18
18
|
right: Tokens["spacing"];
|
|
19
19
|
bottom: Tokens["spacing"];
|
|
20
|
-
float: "
|
|
20
|
+
float: "start" | "end" | CssProperties["float"];
|
|
21
21
|
hideFrom: Tokens["breakpoints"];
|
|
22
22
|
hideBelow: Tokens["breakpoints"];
|
|
23
23
|
flexBasis: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "full";
|
|
@@ -146,6 +146,7 @@ export interface UtilityValues {
|
|
|
146
146
|
transitionDuration: Tokens["durations"];
|
|
147
147
|
transition: "all" | "common" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
148
148
|
animation: Tokens["animations"];
|
|
149
|
+
animationName: "blob" | "bounce" | "fade-in" | "fade-out" | "fadeIn" | "fadeInFromRight" | "fadeInSkew" | "fadeOut" | "fadeOutFromRight" | "fadeOutSkew" | "ping" | "pulse" | "skeleton-pulse" | "slide-in" | "slide-in-left" | "slide-in-modal" | "slide-in-right" | "slide-out" | "slide-out-left" | "slide-out-modal" | "slide-out-right" | "slideInFromBottom" | "slideOutToBottom" | "collapse-in" | "collapse-out" | "spin";
|
|
149
150
|
animationTimingFunction: Tokens["easings"];
|
|
150
151
|
animationDuration: Tokens["durations"];
|
|
151
152
|
animationDelay: Tokens["durations"];
|
package/types/recipe.d.ts
CHANGED
|
@@ -64,6 +64,10 @@ export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantR
|
|
|
64
64
|
* The base styles of the recipe.
|
|
65
65
|
*/
|
|
66
66
|
base?: SystemStyleObject
|
|
67
|
+
/**
|
|
68
|
+
* Whether the recipe is deprecated.
|
|
69
|
+
*/
|
|
70
|
+
deprecated?: boolean | string
|
|
67
71
|
/**
|
|
68
72
|
* The multi-variant styles of the recipe.
|
|
69
73
|
*/
|
|
@@ -141,6 +145,10 @@ export interface SlotRecipeDefinition<
|
|
|
141
145
|
* An optional class name that can be used to target slots in the DOM.
|
|
142
146
|
*/
|
|
143
147
|
className?: string
|
|
148
|
+
/**
|
|
149
|
+
* Whether the recipe is deprecated.
|
|
150
|
+
*/
|
|
151
|
+
deprecated?: boolean | string
|
|
144
152
|
/**
|
|
145
153
|
* The parts/slots of the recipe.
|
|
146
154
|
*/
|
package/types/style-props.d.ts
CHANGED
|
@@ -429,7 +429,7 @@ animationIterationCount?: ConditionalValue<CssProperties["animationIterationCoun
|
|
|
429
429
|
*
|
|
430
430
|
* @see https://developer.mozilla.org/docs/Web/CSS/animation-name
|
|
431
431
|
*/
|
|
432
|
-
animationName?: ConditionalValue<CssProperties["animationName"] | AnyString>
|
|
432
|
+
animationName?: ConditionalValue<UtilityValues["animationName"] | CssVars | CssProperties["animationName"] | AnyString>
|
|
433
433
|
/**
|
|
434
434
|
* The **`animation-play-state`** CSS property sets whether an animation is running or paused.
|
|
435
435
|
*
|
package/types/system-types.d.ts
CHANGED
|
@@ -66,11 +66,10 @@ export type CompositionStyleObject<Property extends string> = Nested<FilterStyle
|
|
|
66
66
|
* Jsx style props
|
|
67
67
|
* -----------------------------------------------------------------------------*/
|
|
68
68
|
interface WithCss {
|
|
69
|
-
css?: SystemStyleObject
|
|
69
|
+
css?: SystemStyleObject | SystemStyleObject[]
|
|
70
70
|
}
|
|
71
|
-
type StyleProps = SystemStyleObject & WithCss
|
|
72
71
|
|
|
73
|
-
export type JsxStyleProps =
|
|
72
|
+
export type JsxStyleProps = SystemStyleObject & WithCss
|
|
74
73
|
|
|
75
74
|
export interface PatchedHTMLProps {
|
|
76
75
|
htmlWidth?: string | number
|
package/jsx/link-box.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { LinkBoxProperties } from '../patterns/link-box';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface LinkBoxProps extends LinkBoxProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof LinkBoxProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const LinkBox: FunctionComponent<LinkBoxProps>
|
package/jsx/link-box.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { mergeCss } from '../css/css.mjs';
|
|
3
|
-
import { splitProps } from '../helpers.mjs';
|
|
4
|
-
import { getLinkBoxStyle } from '../patterns/link-box.mjs';
|
|
5
|
-
import { styled } from './factory.mjs';
|
|
6
|
-
|
|
7
|
-
export const LinkBox = /* @__PURE__ */ forwardRef(function LinkBox(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, [])
|
|
9
|
-
|
|
10
|
-
const styleProps = getLinkBoxStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(styled.div, mergedProps)
|
|
14
|
-
})
|
package/patterns/link-box.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface LinkBoxProperties {
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
interface LinkBoxStyles extends LinkBoxProperties, DistributiveOmit<SystemStyleObject, keyof LinkBoxProperties > {}
|
|
14
|
-
|
|
15
|
-
interface LinkBoxPatternFn {
|
|
16
|
-
(styles?: LinkBoxStyles): string
|
|
17
|
-
raw: (styles?: LinkBoxStyles) => SystemStyleObject
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const linkBox: LinkBoxPatternFn;
|
package/patterns/link-box.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const linkBoxConfig = {
|
|
5
|
-
transform(props8) {
|
|
6
|
-
return {
|
|
7
|
-
position: "relative",
|
|
8
|
-
"& :where(a, abbr)": {
|
|
9
|
-
position: "relative",
|
|
10
|
-
zIndex: "1"
|
|
11
|
-
},
|
|
12
|
-
...props8
|
|
13
|
-
};
|
|
14
|
-
}}
|
|
15
|
-
|
|
16
|
-
export const getLinkBoxStyle = (styles = {}) => {
|
|
17
|
-
const _styles = getPatternStyles(linkBoxConfig, styles)
|
|
18
|
-
return linkBoxConfig.transform(_styles, patternFns)
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export const linkBox = (styles) => css(getLinkBoxStyle(styles))
|
|
22
|
-
linkBox.raw = getLinkBoxStyle
|