@wordpress/style-engine 1.0.1 → 1.1.1-next.4d3b314fd5.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/CHANGELOG.md +2 -0
- package/README.md +51 -38
- package/build/styles/border/index.js +37 -50
- package/build/styles/border/index.js.map +1 -1
- package/build/styles/utils.js +19 -5
- package/build/styles/utils.js.map +1 -1
- package/build-module/styles/border/index.js +38 -51
- package/build-module/styles/border/index.js.map +1 -1
- package/build-module/styles/utils.js +18 -6
- package/build-module/styles/utils.js.map +1 -1
- package/build-types/styles/border/index.d.ts +2 -5
- package/build-types/styles/border/index.d.ts.map +1 -1
- package/build-types/styles/color/background.d.ts +1 -5
- package/build-types/styles/color/background.d.ts.map +1 -1
- package/build-types/styles/color/gradient.d.ts +1 -5
- package/build-types/styles/color/gradient.d.ts.map +1 -1
- package/build-types/styles/color/index.d.ts +1 -5
- package/build-types/styles/color/index.d.ts.map +1 -1
- package/build-types/styles/color/text.d.ts +1 -5
- package/build-types/styles/color/text.d.ts.map +1 -1
- package/build-types/styles/shadow/index.d.ts +1 -5
- package/build-types/styles/shadow/index.d.ts.map +1 -1
- package/build-types/styles/typography/index.d.ts +1 -5
- package/build-types/styles/typography/index.d.ts.map +1 -1
- package/build-types/styles/utils.d.ts +12 -8
- package/build-types/styles/utils.d.ts.map +1 -1
- package/build-types/types.d.ts +19 -16
- package/build-types/types.d.ts.map +1 -1
- package/class-wp-style-engine-css-declarations.php +1 -1
- package/class-wp-style-engine-css-rule.php +1 -1
- package/class-wp-style-engine-css-rules-store.php +1 -1
- package/class-wp-style-engine-processor.php +1 -1
- package/docs/toc.json +8 -0
- package/docs/using-the-style-engine-with-block-supports.md +92 -32
- package/package.json +2 -2
- package/phpunit/style-engine-test.php +6 -6
- package/src/styles/border/index.ts +49 -99
- package/src/styles/utils.ts +19 -5
- package/src/test/index.js +13 -0
- package/src/test/utils.js +31 -1
- package/src/types.ts +23 -20
- package/style-engine.php +4 -4
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/style-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1-next.4d3b314fd5.0",
|
|
4
4
|
"description": "A suite of parsers and compilers for WordPress styles.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "25054766423cb49d959eb656c2533530073ff5c2"
|
|
39
39
|
}
|
|
@@ -60,7 +60,7 @@ class WP_Style_Engine_Test extends WP_UnitTestCase {
|
|
|
60
60
|
* An array of options to pass to `wp_style_engine_get_styles()`.
|
|
61
61
|
*
|
|
62
62
|
* @type string|null $context An identifier describing the origin of the style object, e.g., 'block-supports' or 'global-styles'. Default is `null`.
|
|
63
|
-
* When set, the
|
|
63
|
+
* When set, the Style Engine will attempt to store the CSS rules, where a selector is also passed.
|
|
64
64
|
* @type bool $convert_vars_to_classnames Whether to skip converting incoming CSS var patterns, e.g., `var:preset|<PRESET_TYPE>|<PRESET_SLUG>`, to var( --wp--preset--* ) values. Default `false`.
|
|
65
65
|
* @type string $selector Optional. When a selector is passed, the value of `$css` in the return value will comprise a full CSS rule `$selector { ...$css_declarations }`,
|
|
66
66
|
* otherwise, the value will be a concatenated string of CSS declarations.
|
|
@@ -363,13 +363,13 @@ class WP_Style_Engine_Test extends WP_UnitTestCase {
|
|
|
363
363
|
'spacing' => array(
|
|
364
364
|
'margin' => array(
|
|
365
365
|
'left' => 'var:preset|spacing|10',
|
|
366
|
-
'right' => 'var:preset|spacing|
|
|
366
|
+
'right' => 'var:preset|spacing|3XL',
|
|
367
367
|
'top' => '1rem',
|
|
368
368
|
'bottom' => '1rem',
|
|
369
369
|
),
|
|
370
370
|
'padding' => array(
|
|
371
371
|
'left' => 'var:preset|spacing|30',
|
|
372
|
-
'right' => 'var:preset|spacing|
|
|
372
|
+
'right' => 'var:preset|spacing|3XL',
|
|
373
373
|
'top' => '14px',
|
|
374
374
|
'bottom' => '14px',
|
|
375
375
|
),
|
|
@@ -377,14 +377,14 @@ class WP_Style_Engine_Test extends WP_UnitTestCase {
|
|
|
377
377
|
),
|
|
378
378
|
'options' => array(),
|
|
379
379
|
'expected_output' => array(
|
|
380
|
-
'css' => 'padding-left:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--
|
|
380
|
+
'css' => 'padding-left:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--3-xl);padding-top:14px;padding-bottom:14px;margin-left:var(--wp--preset--spacing--10);margin-right:var(--wp--preset--spacing--3-xl);margin-top:1rem;margin-bottom:1rem;',
|
|
381
381
|
'declarations' => array(
|
|
382
382
|
'padding-left' => 'var(--wp--preset--spacing--30)',
|
|
383
|
-
'padding-right' => 'var(--wp--preset--spacing--
|
|
383
|
+
'padding-right' => 'var(--wp--preset--spacing--3-xl)',
|
|
384
384
|
'padding-top' => '14px',
|
|
385
385
|
'padding-bottom' => '14px',
|
|
386
386
|
'margin-left' => 'var(--wp--preset--spacing--10)',
|
|
387
|
-
'margin-right' => 'var(--wp--preset--spacing--
|
|
387
|
+
'margin-right' => 'var(--wp--preset--spacing--3-xl)',
|
|
388
388
|
'margin-top' => '1rem',
|
|
389
389
|
'margin-bottom' => '1rem',
|
|
390
390
|
),
|
|
@@ -1,31 +1,45 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
5
|
-
|
|
6
|
-
BorderIndividualProperty,
|
|
7
|
-
GeneratedCSSRule,
|
|
8
|
-
Style,
|
|
9
|
-
StyleDefinition,
|
|
10
|
-
StyleOptions,
|
|
11
|
-
} from '../../types';
|
|
12
|
-
import { generateRule, generateBoxRules, upperFirst } from '../utils';
|
|
4
|
+
import type { BoxEdge, GenerateFunction, StyleDefinition } from '../../types';
|
|
5
|
+
import { generateRule, generateBoxRules, camelCaseJoin } from '../utils';
|
|
13
6
|
|
|
14
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Creates a function for generating CSS rules when the style path is the same as the camelCase CSS property used in React.
|
|
9
|
+
*
|
|
10
|
+
* @param path An array of strings representing the path to the style value in the style object.
|
|
11
|
+
*
|
|
12
|
+
* @return A function that generates CSS rules.
|
|
13
|
+
*/
|
|
14
|
+
function createBorderGenerateFunction( path: string[] ): GenerateFunction {
|
|
15
|
+
return ( style, options ) =>
|
|
16
|
+
generateRule( style, options, path, camelCaseJoin( path ) );
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Creates a function for generating border-{top,bottom,left,right}-{color,style,width} CSS rules.
|
|
21
|
+
*
|
|
22
|
+
* @param edge The edge to create CSS rules for.
|
|
23
|
+
*
|
|
24
|
+
* @return A function that generates CSS rules.
|
|
25
|
+
*/
|
|
26
|
+
function createBorderEdgeGenerateFunction( edge: BoxEdge ): GenerateFunction {
|
|
27
|
+
return ( style, options ) => {
|
|
28
|
+
return [ 'color', 'style', 'width' ].flatMap( ( key ) => {
|
|
29
|
+
const path = [ 'border', edge, key ];
|
|
30
|
+
return createBorderGenerateFunction( path )( style, options );
|
|
31
|
+
} );
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const color: StyleDefinition = {
|
|
15
36
|
name: 'color',
|
|
16
|
-
generate: (
|
|
17
|
-
style: Style,
|
|
18
|
-
options: StyleOptions,
|
|
19
|
-
path: string[] = [ 'border', 'color' ],
|
|
20
|
-
ruleKey: string = 'borderColor'
|
|
21
|
-
): GeneratedCSSRule[] => {
|
|
22
|
-
return generateRule( style, options, path, ruleKey );
|
|
23
|
-
},
|
|
37
|
+
generate: createBorderGenerateFunction( [ 'border', 'color' ] ),
|
|
24
38
|
};
|
|
25
39
|
|
|
26
|
-
const radius = {
|
|
40
|
+
const radius: StyleDefinition = {
|
|
27
41
|
name: 'radius',
|
|
28
|
-
generate: ( style
|
|
42
|
+
generate: ( style, options ) => {
|
|
29
43
|
return generateBoxRules(
|
|
30
44
|
style,
|
|
31
45
|
options,
|
|
@@ -39,104 +53,40 @@ const radius = {
|
|
|
39
53
|
},
|
|
40
54
|
};
|
|
41
55
|
|
|
42
|
-
const borderStyle = {
|
|
56
|
+
const borderStyle: StyleDefinition = {
|
|
43
57
|
name: 'style',
|
|
44
|
-
generate: (
|
|
45
|
-
style: Style,
|
|
46
|
-
options: StyleOptions,
|
|
47
|
-
path: string[] = [ 'border', 'style' ],
|
|
48
|
-
ruleKey: string = 'borderStyle'
|
|
49
|
-
): GeneratedCSSRule[] => {
|
|
50
|
-
return generateRule( style, options, path, ruleKey );
|
|
51
|
-
},
|
|
58
|
+
generate: createBorderGenerateFunction( [ 'border', 'style' ] ),
|
|
52
59
|
};
|
|
53
60
|
|
|
54
|
-
const width = {
|
|
61
|
+
const width: StyleDefinition = {
|
|
55
62
|
name: 'width',
|
|
56
|
-
generate: (
|
|
57
|
-
style: Style,
|
|
58
|
-
options: StyleOptions,
|
|
59
|
-
path: string[] = [ 'border', 'width' ],
|
|
60
|
-
ruleKey: string = 'borderWidth'
|
|
61
|
-
): GeneratedCSSRule[] => {
|
|
62
|
-
return generateRule( style, options, path, ruleKey );
|
|
63
|
-
},
|
|
63
|
+
generate: createBorderGenerateFunction( [ 'border', 'width' ] ),
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
const
|
|
67
|
-
color,
|
|
68
|
-
borderStyle,
|
|
69
|
-
width,
|
|
70
|
-
];
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Returns a curried generator function with the individual border property ('top' | 'right' | 'bottom' | 'left') baked in.
|
|
74
|
-
*
|
|
75
|
-
* @param individualProperty Individual border property ('top' | 'right' | 'bottom' | 'left').
|
|
76
|
-
*
|
|
77
|
-
* @return StyleDefinition[ 'generate' ]
|
|
78
|
-
*/
|
|
79
|
-
const createBorderGenerateFunction =
|
|
80
|
-
( individualProperty: BorderIndividualProperty ) =>
|
|
81
|
-
( style: Style, options: StyleOptions ) => {
|
|
82
|
-
const styleValue:
|
|
83
|
-
| BorderIndividualStyles< typeof individualProperty >
|
|
84
|
-
| undefined = style?.border?.[ individualProperty ];
|
|
85
|
-
|
|
86
|
-
if ( ! styleValue ) {
|
|
87
|
-
return [];
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return borderDefinitionsWithIndividualStyles.reduce(
|
|
91
|
-
(
|
|
92
|
-
acc: GeneratedCSSRule[],
|
|
93
|
-
borderDefinition: StyleDefinition
|
|
94
|
-
): GeneratedCSSRule[] => {
|
|
95
|
-
const key = borderDefinition.name;
|
|
96
|
-
if (
|
|
97
|
-
styleValue.hasOwnProperty( key ) &&
|
|
98
|
-
typeof borderDefinition.generate === 'function'
|
|
99
|
-
) {
|
|
100
|
-
const ruleKey = `border${ upperFirst(
|
|
101
|
-
individualProperty
|
|
102
|
-
) }${ upperFirst( key ) }`;
|
|
103
|
-
acc.push(
|
|
104
|
-
...borderDefinition.generate(
|
|
105
|
-
style,
|
|
106
|
-
options,
|
|
107
|
-
[ 'border', individualProperty, key ],
|
|
108
|
-
ruleKey
|
|
109
|
-
)
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
return acc;
|
|
113
|
-
},
|
|
114
|
-
[]
|
|
115
|
-
);
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
const borderTop = {
|
|
66
|
+
const borderTop: StyleDefinition = {
|
|
119
67
|
name: 'borderTop',
|
|
120
|
-
generate:
|
|
68
|
+
generate: createBorderEdgeGenerateFunction( 'top' ),
|
|
121
69
|
};
|
|
122
70
|
|
|
123
|
-
const borderRight = {
|
|
71
|
+
const borderRight: StyleDefinition = {
|
|
124
72
|
name: 'borderRight',
|
|
125
|
-
generate:
|
|
73
|
+
generate: createBorderEdgeGenerateFunction( 'right' ),
|
|
126
74
|
};
|
|
127
75
|
|
|
128
|
-
const borderBottom = {
|
|
76
|
+
const borderBottom: StyleDefinition = {
|
|
129
77
|
name: 'borderBottom',
|
|
130
|
-
generate:
|
|
78
|
+
generate: createBorderEdgeGenerateFunction( 'bottom' ),
|
|
131
79
|
};
|
|
132
80
|
|
|
133
|
-
const borderLeft = {
|
|
81
|
+
const borderLeft: StyleDefinition = {
|
|
134
82
|
name: 'borderLeft',
|
|
135
|
-
generate:
|
|
83
|
+
generate: createBorderEdgeGenerateFunction( 'left' ),
|
|
136
84
|
};
|
|
137
85
|
|
|
138
86
|
export default [
|
|
139
|
-
|
|
87
|
+
color,
|
|
88
|
+
borderStyle,
|
|
89
|
+
width,
|
|
140
90
|
radius,
|
|
141
91
|
borderTop,
|
|
142
92
|
borderRight,
|
package/src/styles/utils.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { get } from 'lodash';
|
|
4
|
+
import { get, kebabCase } from 'lodash';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
@@ -34,7 +34,7 @@ export function generateRule(
|
|
|
34
34
|
options: StyleOptions,
|
|
35
35
|
path: string[],
|
|
36
36
|
ruleKey: string
|
|
37
|
-
) {
|
|
37
|
+
): GeneratedCSSRule[] {
|
|
38
38
|
const styleValue: string | undefined = get( style, path );
|
|
39
39
|
|
|
40
40
|
return styleValue
|
|
@@ -119,6 +119,7 @@ export function getCSSVarFromStyleValue( styleValue: string ): string {
|
|
|
119
119
|
const variable = styleValue
|
|
120
120
|
.slice( VARIABLE_REFERENCE_PREFIX.length )
|
|
121
121
|
.split( VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE )
|
|
122
|
+
.map( ( presetVariable ) => kebabCase( presetVariable ) )
|
|
122
123
|
.join( VARIABLE_PATH_SEPARATOR_TOKEN_STYLE );
|
|
123
124
|
return `var(--wp--${ variable })`;
|
|
124
125
|
}
|
|
@@ -128,10 +129,23 @@ export function getCSSVarFromStyleValue( styleValue: string ): string {
|
|
|
128
129
|
/**
|
|
129
130
|
* Capitalizes the first letter in a string.
|
|
130
131
|
*
|
|
131
|
-
* @param
|
|
132
|
+
* @param string The string whose first letter the function will capitalize.
|
|
132
133
|
*
|
|
133
|
-
* @return
|
|
134
|
+
* @return String with the first letter capitalized.
|
|
134
135
|
*/
|
|
135
|
-
export function upperFirst(
|
|
136
|
+
export function upperFirst( string: string ): string {
|
|
137
|
+
const [ firstLetter, ...rest ] = string;
|
|
136
138
|
return firstLetter.toUpperCase() + rest.join( '' );
|
|
137
139
|
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Converts an array of strings into a camelCase string.
|
|
143
|
+
*
|
|
144
|
+
* @param strings The strings to join into a camelCase string.
|
|
145
|
+
*
|
|
146
|
+
* @return camelCase string.
|
|
147
|
+
*/
|
|
148
|
+
export function camelCaseJoin( strings: string[] ): string {
|
|
149
|
+
const [ firstItem, ...rest ] = strings;
|
|
150
|
+
return firstItem.toLowerCase() + rest.map( upperFirst ).join( '' );
|
|
151
|
+
}
|
package/src/test/index.js
CHANGED
|
@@ -96,6 +96,19 @@ describe( 'generate', () => {
|
|
|
96
96
|
);
|
|
97
97
|
} );
|
|
98
98
|
|
|
99
|
+
it( 'should parse preset values and kebab-case the slug', () => {
|
|
100
|
+
expect(
|
|
101
|
+
compileCSS( {
|
|
102
|
+
color: {
|
|
103
|
+
text: 'var:preset|font-size|h1',
|
|
104
|
+
},
|
|
105
|
+
spacing: { margin: { top: 'var:preset|spacing|3XL' } },
|
|
106
|
+
} )
|
|
107
|
+
).toEqual(
|
|
108
|
+
'color: var(--wp--preset--font-size--h-1); margin-top: var(--wp--preset--spacing--3-xl);'
|
|
109
|
+
);
|
|
110
|
+
} );
|
|
111
|
+
|
|
99
112
|
it( 'should parse border rules', () => {
|
|
100
113
|
expect(
|
|
101
114
|
compileCSS( {
|
package/src/test/utils.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
camelCaseJoin,
|
|
6
|
+
getCSSVarFromStyleValue,
|
|
7
|
+
upperFirst,
|
|
8
|
+
} from '../styles/utils';
|
|
5
9
|
|
|
6
10
|
describe( 'utils', () => {
|
|
7
11
|
describe( 'upperFirst()', () => {
|
|
@@ -9,4 +13,30 @@ describe( 'utils', () => {
|
|
|
9
13
|
expect( upperFirst( 'toontown' ) ).toEqual( 'Toontown' );
|
|
10
14
|
} );
|
|
11
15
|
} );
|
|
16
|
+
|
|
17
|
+
describe( 'camelCaseJoin()', () => {
|
|
18
|
+
it( 'should return a camelCase string', () => {
|
|
19
|
+
expect( camelCaseJoin( [ 'toon', 'town' ] ) ).toEqual( 'toonTown' );
|
|
20
|
+
} );
|
|
21
|
+
} );
|
|
22
|
+
|
|
23
|
+
describe( 'getCSSVarFromStyleValue()', () => {
|
|
24
|
+
it( 'should return a compiled CSS var', () => {
|
|
25
|
+
expect(
|
|
26
|
+
getCSSVarFromStyleValue( 'var:preset|color|yellow-bun' )
|
|
27
|
+
).toEqual( 'var(--wp--preset--color--yellow-bun)' );
|
|
28
|
+
} );
|
|
29
|
+
|
|
30
|
+
it( 'should kebab case numbers', () => {
|
|
31
|
+
expect(
|
|
32
|
+
getCSSVarFromStyleValue( 'var:preset|font-size|h1' )
|
|
33
|
+
).toEqual( 'var(--wp--preset--font-size--h-1)' );
|
|
34
|
+
} );
|
|
35
|
+
|
|
36
|
+
it( 'should kebab case camel case', () => {
|
|
37
|
+
expect(
|
|
38
|
+
getCSSVarFromStyleValue( 'var:preset|color|heavenlyBlue' )
|
|
39
|
+
).toEqual( 'var(--wp--preset--color--heavenly-blue)' );
|
|
40
|
+
} );
|
|
41
|
+
} );
|
|
12
42
|
} );
|
package/src/types.ts
CHANGED
|
@@ -3,21 +3,22 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { CSSProperties } from 'react';
|
|
5
5
|
|
|
6
|
-
type
|
|
7
|
-
export
|
|
6
|
+
type BoxVariant = 'margin' | 'padding';
|
|
7
|
+
export interface Box< T extends BoxVariant | undefined = undefined > {
|
|
8
8
|
top?: CSSProperties[ T extends undefined ? 'top' : `${ T }Top` ];
|
|
9
9
|
right?: CSSProperties[ T extends undefined ? 'right' : `${ T }Right` ];
|
|
10
10
|
bottom?: CSSProperties[ T extends undefined ? 'bottom' : `${ T }Bottom` ];
|
|
11
11
|
left?: CSSProperties[ T extends undefined ? 'left' : `${ T }Left` ];
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type BoxEdge = 'top' | 'right' | 'bottom' | 'left';
|
|
13
15
|
|
|
14
|
-
export type BorderIndividualProperty = 'top' | 'right' | 'bottom' | 'left';
|
|
15
16
|
// `T` is one of the values in `BorderIndividualProperty`. The expected CSSProperties key is something like `borderTopColor`.
|
|
16
|
-
export
|
|
17
|
-
color?: CSSProperties[ `border${ Capitalize<
|
|
18
|
-
style?: CSSProperties[ `border${ Capitalize<
|
|
19
|
-
width?: CSSProperties[ `border${ Capitalize<
|
|
20
|
-
}
|
|
17
|
+
export interface BorderIndividualStyles< T extends BoxEdge > {
|
|
18
|
+
color?: CSSProperties[ `border${ Capitalize< T > }Color` ];
|
|
19
|
+
style?: CSSProperties[ `border${ Capitalize< T > }Style` ];
|
|
20
|
+
width?: CSSProperties[ `border${ Capitalize< T > }Width` ];
|
|
21
|
+
}
|
|
21
22
|
|
|
22
23
|
export interface Style {
|
|
23
24
|
border?: {
|
|
@@ -65,16 +66,19 @@ export interface Style {
|
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
68
|
|
|
68
|
-
export
|
|
69
|
+
export interface CssRulesKeys {
|
|
70
|
+
default: string;
|
|
71
|
+
individual: string;
|
|
72
|
+
}
|
|
69
73
|
|
|
70
|
-
export
|
|
74
|
+
export interface StyleOptions {
|
|
71
75
|
/**
|
|
72
76
|
* CSS selector for the generated style.
|
|
73
77
|
*/
|
|
74
78
|
selector?: string;
|
|
75
|
-
}
|
|
79
|
+
}
|
|
76
80
|
|
|
77
|
-
export
|
|
81
|
+
export interface GeneratedCSSRule {
|
|
78
82
|
selector?: string;
|
|
79
83
|
value: string;
|
|
80
84
|
/**
|
|
@@ -82,14 +86,13 @@ export type GeneratedCSSRule = {
|
|
|
82
86
|
* E.g. `paddingTop` instead of `padding-top`.
|
|
83
87
|
*/
|
|
84
88
|
key: string;
|
|
85
|
-
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface GenerateFunction {
|
|
92
|
+
( style: Style, options: StyleOptions ): GeneratedCSSRule[];
|
|
93
|
+
}
|
|
86
94
|
|
|
87
95
|
export interface StyleDefinition {
|
|
88
96
|
name: string;
|
|
89
|
-
generate?:
|
|
90
|
-
style: Style,
|
|
91
|
-
options: StyleOptions | {},
|
|
92
|
-
path?: string[],
|
|
93
|
-
ruleKey?: string
|
|
94
|
-
) => GeneratedCSSRule[];
|
|
97
|
+
generate?: GenerateFunction;
|
|
95
98
|
}
|
package/style-engine.php
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* Optional. An array of options. Default empty array.
|
|
27
27
|
*
|
|
28
28
|
* @type string|null $context An identifier describing the origin of the style object, e.g., 'block-supports' or 'global-styles'. Default is `null`.
|
|
29
|
-
* When set, the
|
|
29
|
+
* When set, the Style Engine will attempt to store the CSS rules, where a selector is also passed.
|
|
30
30
|
* @type bool $convert_vars_to_classnames Whether to skip converting incoming CSS var patterns, e.g., `var:preset|<PRESET_TYPE>|<PRESET_SLUG>`, to var( --wp--preset--* ) values. Default `false`.
|
|
31
31
|
* @type string $selector Optional. When a selector is passed, the value of `$css` in the return value will comprise a full CSS rule `$selector { ...$css_declarations }`,
|
|
32
32
|
* otherwise, the value will be a concatenated string of CSS declarations.
|
|
@@ -91,9 +91,9 @@ function wp_style_engine_get_styles( $block_styles, $options = array() ) {
|
|
|
91
91
|
* Optional. An array of options. Default empty array.
|
|
92
92
|
*
|
|
93
93
|
* @type string|null $context An identifier describing the origin of the style object, e.g., 'block-supports' or 'global-styles'. Default is 'block-supports'.
|
|
94
|
-
* When set, the
|
|
94
|
+
* When set, the Style Engine will attempt to store the CSS rules.
|
|
95
95
|
* @type bool $optimize Whether to optimize the CSS output, e.g., combine rules. Default is `false`.
|
|
96
|
-
* @type bool $prettify Whether to add new lines and indents to output. Default is the
|
|
96
|
+
* @type bool $prettify Whether to add new lines and indents to output. Default is to inherit the value of the global constant `SCRIPT_DEBUG`, if it is defined.
|
|
97
97
|
* }
|
|
98
98
|
*
|
|
99
99
|
* @return string A string of compiled CSS declarations, or empty string.
|
|
@@ -140,7 +140,7 @@ function wp_style_engine_get_stylesheet_from_css_rules( $css_rules, $options = a
|
|
|
140
140
|
* Optional. An array of options. Default empty array.
|
|
141
141
|
*
|
|
142
142
|
* @type bool $optimize Whether to optimize the CSS output, e.g., combine rules. Default is `false`.
|
|
143
|
-
* @type bool $prettify Whether to add new lines and indents to output. Default is the
|
|
143
|
+
* @type bool $prettify Whether to add new lines and indents to output. Default is to inherit the value of the global constant `SCRIPT_DEBUG`, if it is defined.
|
|
144
144
|
* }
|
|
145
145
|
*
|
|
146
146
|
* @return string A compiled CSS string.
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/@types/lodash/common/common.d.ts","../../node_modules/@types/lodash/common/array.d.ts","../../node_modules/@types/lodash/common/collection.d.ts","../../node_modules/@types/lodash/common/date.d.ts","../../node_modules/@types/lodash/common/function.d.ts","../../node_modules/@types/lodash/common/lang.d.ts","../../node_modules/@types/lodash/common/math.d.ts","../../node_modules/@types/lodash/common/number.d.ts","../../node_modules/@types/lodash/common/object.d.ts","../../node_modules/@types/lodash/common/seq.d.ts","../../node_modules/@types/lodash/common/string.d.ts","../../node_modules/@types/lodash/common/util.d.ts","../../node_modules/@types/lodash/index.d.ts","../../node_modules/@types/react/global.d.ts","../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../../node_modules/@types/react/index.d.ts","./src/types.ts","./src/styles/constants.ts","./src/styles/utils.ts","./src/styles/border/index.ts","./src/styles/color/background.ts","./src/styles/color/gradient.ts","./src/styles/color/text.ts","./src/styles/color/index.ts","./src/styles/shadow/index.ts","./src/styles/outline/index.ts","./src/styles/spacing/padding.ts","./src/styles/spacing/margin.ts","./src/styles/spacing/index.ts","./src/styles/typography/index.ts","./src/styles/index.ts","./src/index.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","438284c7c455a29b9c0e2d1e72abc62ee93d9a163029ffe918a34c5db3b92da2","0c75b204aed9cf6ff1c7b4bed87a3ece0d9d6fc857a6350c0c95ed0c38c814e8","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","c24ad9be9adf28f0927e3d9d9e9cec1c677022356f241ccbbfb97bfe8fb3d1a1","0ec0998e2d085e8ea54266f547976ae152c9dd6cdb9ac4d8a520a230f5ebae84","9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","82251920b05f30981c9a4109cb5f3169dce4b477effc845c6d781044a30e7672","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3e59f00ab03c33717b3130066d4debb272da90eeded4935ff0604c2bc25a5cae","9fa6b83a35e897f340858995ca5d77e901d89fd18644cd4c9e8a4afe0b2e6363",{"version":"0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8","affectsGlobalScope":true},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"1bc82f5b3bb93df76d19730c84467b0b346187198537135d63a672956f323720","affectsGlobalScope":true},{"version":"8e48d645663797109ba89566cae1d06a5c8a0d7e6fecc83589c243a4410adbf8","signature":"15360f5000b44dc09e6ca12d22f15da27734b418c65e0c0e5a8a49338b3567e2"},"301543eebfdd2fc5e5d6d928c5ed3f65bd377e95d184eb1351df5fe38ef9eac0","64db6f93189a8ece82eb8a2265338a3297c69e9ea34a692edd97f216aaaf2692","1fa9eb4c782532dc5d216edc97194d451e75bbdc6cf0b7ec2fad623e453bb6e3","49dec6685c69b84a795d1e2c2a8d7ac8953efb4a7dadb9b1b04c836053e0ea21","8cbcd8c85fe3627d4c9e75ccf2784b7e4d0082396600e9d432f1cd61009a7933","f303eb9a884f47802f08d6b1d376c737856c29783532a44116bfc7e4929a7204","e8dc9f16ad89ba54f1e7202369a69a265ccd5eec0df39cf429ff1a941603d4da",{"version":"51f25b3291c4ca38c72cb150453eb2961bb0ca2891102719064e2a695c47a55a","signature":"727d5d0184c8cc03c2e4c21449a854327b2af27133b51ae13602f67411c473a1"},{"version":"b9494715addecd488c8424333bdcb21390262ce9e7a5c244009e2ea21328181a","signature":"a69042401e8a750db9b3e8be7898ee61a6af5bacdc2abfa373b596923b68f170"},"caa45d96bc56c4f2ea6dfbe715413636f0d8b74121a8820b70526a3ae1bfd9b9","3d0705f37a3de49d9210d2656cd697ae0cd93476a7e60f7b099797166e4d78b0","b7003bd91d5a0b8bf84a3ef07a0cf5a4b8e0cef58d9e6404f54f05fd4ed6f0b2",{"version":"f663bea39fe633f8875848f18196303c24fe9d039549ae750c0d6e3bd9571032","signature":"727d5d0184c8cc03c2e4c21449a854327b2af27133b51ae13602f67411c473a1"},{"version":"1d74aab11e4f2e9bf4eff69b158bff07261a20cd45606cad289852365eb1c23a","signature":"ed379548d37856782da05eb4ead24db026f64d325c2cfbe256e667da7efe7c42"},{"version":"32464ebe97607450c6960c489338d41d381ebe1a465b6c5b59aad285bbd64e0b","signature":"21b7d9f370e2548a683c09e3409998b805231f030dd63ac652856f41c1f81ee4"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"importsNotUsedAsValues":2,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"rootDir":"./src","strict":true,"target":99},"fileIdsList":[[45,47,48,49,50,51,52,53,54,55,56,57],[45,46,48,49,50,51,52,53,54,55,56,57],[46,47,48,49,50,51,52,53,54,55,56,57],[45,46,47,49,50,51,52,53,54,55,56,57],[45,46,47,48,50,51,52,53,54,55,56,57],[45,46,47,48,49,51,52,53,54,55,56,57],[45,46,47,48,49,50,52,53,54,55,56,57],[45,46,47,48,49,50,51,53,54,55,56,57],[45,46,47,48,49,50,51,52,54,55,56,57],[45,46,47,48,49,50,51,52,53,55,56,57],[45,46,47,48,49,50,51,52,53,54,56,57],[45,46,47,48,49,50,51,52,53,54,55,57],[45,46,47,48,49,50,51,52,53,54,55,56],[58,59,60,61],[57,63,77],[63,65],[67,68,69],[66,70,71,72,75,76],[73,74],[57,63,64],[62],[63]],"referencedMap":[[46,1],[47,2],[45,3],[48,4],[49,5],[50,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[62,14],[78,15],[66,16],[67,16],[68,16],[70,17],[69,16],[77,18],[72,16],[71,16],[75,19],[74,16],[73,16],[76,16],[65,20],[63,21]],"exportedModulesMap":[[46,1],[47,2],[45,3],[48,4],[49,5],[50,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[62,14],[78,22],[66,16],[67,16],[68,16],[70,17],[69,16],[77,22],[72,22],[71,22],[75,19],[74,16],[73,16],[76,22],[65,20],[63,21]],"semanticDiagnosticsPerFile":[46,47,45,48,49,50,51,52,53,54,55,56,57,60,58,62,59,61,10,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,41,42,43,1,9,44,78,66,67,68,70,69,64,77,72,71,75,74,73,76,65,63]},"version":"4.4.2"}
|
|
1
|
+
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/@types/lodash/common/common.d.ts","../../node_modules/@types/lodash/common/array.d.ts","../../node_modules/@types/lodash/common/collection.d.ts","../../node_modules/@types/lodash/common/date.d.ts","../../node_modules/@types/lodash/common/function.d.ts","../../node_modules/@types/lodash/common/lang.d.ts","../../node_modules/@types/lodash/common/math.d.ts","../../node_modules/@types/lodash/common/number.d.ts","../../node_modules/@types/lodash/common/object.d.ts","../../node_modules/@types/lodash/common/seq.d.ts","../../node_modules/@types/lodash/common/string.d.ts","../../node_modules/@types/lodash/common/util.d.ts","../../node_modules/@types/lodash/index.d.ts","../../node_modules/@types/react/global.d.ts","../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../../node_modules/@types/react/index.d.ts","./src/types.ts","./src/styles/constants.ts","./src/styles/utils.ts","./src/styles/border/index.ts","./src/styles/color/background.ts","./src/styles/color/gradient.ts","./src/styles/color/text.ts","./src/styles/color/index.ts","./src/styles/shadow/index.ts","./src/styles/outline/index.ts","./src/styles/spacing/padding.ts","./src/styles/spacing/margin.ts","./src/styles/spacing/index.ts","./src/styles/typography/index.ts","./src/styles/index.ts","./src/index.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","438284c7c455a29b9c0e2d1e72abc62ee93d9a163029ffe918a34c5db3b92da2","0c75b204aed9cf6ff1c7b4bed87a3ece0d9d6fc857a6350c0c95ed0c38c814e8","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","c24ad9be9adf28f0927e3d9d9e9cec1c677022356f241ccbbfb97bfe8fb3d1a1","0ec0998e2d085e8ea54266f547976ae152c9dd6cdb9ac4d8a520a230f5ebae84","9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","82251920b05f30981c9a4109cb5f3169dce4b477effc845c6d781044a30e7672","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3e59f00ab03c33717b3130066d4debb272da90eeded4935ff0604c2bc25a5cae","9fa6b83a35e897f340858995ca5d77e901d89fd18644cd4c9e8a4afe0b2e6363",{"version":"0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8","affectsGlobalScope":true},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"1bc82f5b3bb93df76d19730c84467b0b346187198537135d63a672956f323720","affectsGlobalScope":true},"055acd3f486e8f2a4cb9d6a252b254ec0988065b222425e90258bdd3b80c2248","301543eebfdd2fc5e5d6d928c5ed3f65bd377e95d184eb1351df5fe38ef9eac0","3fc8ed5a57e9a0e6831895b3d20ae8fc6e69ded33fdd39922287867e2df6c47e","6a47ab963c0de27ca91c40b8a8370d4c368f51bbcfeb70ca028fa3679afa56f9","49dec6685c69b84a795d1e2c2a8d7ac8953efb4a7dadb9b1b04c836053e0ea21","8cbcd8c85fe3627d4c9e75ccf2784b7e4d0082396600e9d432f1cd61009a7933","f303eb9a884f47802f08d6b1d376c737856c29783532a44116bfc7e4929a7204","e8dc9f16ad89ba54f1e7202369a69a265ccd5eec0df39cf429ff1a941603d4da","51f25b3291c4ca38c72cb150453eb2961bb0ca2891102719064e2a695c47a55a","b9494715addecd488c8424333bdcb21390262ce9e7a5c244009e2ea21328181a","caa45d96bc56c4f2ea6dfbe715413636f0d8b74121a8820b70526a3ae1bfd9b9","3d0705f37a3de49d9210d2656cd697ae0cd93476a7e60f7b099797166e4d78b0","b7003bd91d5a0b8bf84a3ef07a0cf5a4b8e0cef58d9e6404f54f05fd4ed6f0b2","f663bea39fe633f8875848f18196303c24fe9d039549ae750c0d6e3bd9571032","1d74aab11e4f2e9bf4eff69b158bff07261a20cd45606cad289852365eb1c23a","32464ebe97607450c6960c489338d41d381ebe1a465b6c5b59aad285bbd64e0b"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"importsNotUsedAsValues":2,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"rootDir":"./src","strict":true,"target":99},"fileIdsList":[[45,47,48,49,50,51,52,53,54,55,56,57],[45,46,48,49,50,51,52,53,54,55,56,57],[46,47,48,49,50,51,52,53,54,55,56,57],[45,46,47,49,50,51,52,53,54,55,56,57],[45,46,47,48,50,51,52,53,54,55,56,57],[45,46,47,48,49,51,52,53,54,55,56,57],[45,46,47,48,49,50,52,53,54,55,56,57],[45,46,47,48,49,50,51,53,54,55,56,57],[45,46,47,48,49,50,51,52,54,55,56,57],[45,46,47,48,49,50,51,52,53,55,56,57],[45,46,47,48,49,50,51,52,53,54,56,57],[45,46,47,48,49,50,51,52,53,54,55,57],[45,46,47,48,49,50,51,52,53,54,55,56],[58,59,60,61],[57,63,77],[63,65],[67,68,69],[66,70,71,72,75,76],[73,74],[57,63,64],[62]],"referencedMap":[[46,1],[47,2],[45,3],[48,4],[49,5],[50,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[62,14],[78,15],[66,16],[67,16],[68,16],[70,17],[69,16],[77,18],[72,16],[71,16],[75,19],[74,16],[73,16],[76,16],[65,20],[63,21]],"exportedModulesMap":[[46,1],[47,2],[45,3],[48,4],[49,5],[50,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[62,14],[78,15],[66,16],[67,16],[68,16],[70,17],[69,16],[77,18],[72,16],[71,16],[75,19],[74,16],[73,16],[76,16],[65,20],[63,21]],"semanticDiagnosticsPerFile":[46,47,45,48,49,50,51,52,53,54,55,56,57,60,58,62,59,61,10,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,41,42,43,1,9,44,78,66,67,68,70,69,64,77,72,71,75,74,73,76,65,63]},"version":"4.4.2"}
|