@wordpress/style-engine 0.5.1 → 0.8.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 +6 -0
- package/build/index.js +13 -2
- package/build/index.js.map +1 -1
- package/build/styles/color/background.js +21 -0
- package/build/styles/color/background.js.map +1 -0
- package/build/styles/color/gradient.js +21 -0
- package/build/styles/color/gradient.js.map +1 -0
- package/build/styles/color/index.js +21 -0
- package/build/styles/color/index.js.map +1 -0
- package/build/styles/color/text.js +21 -0
- package/build/styles/color/text.js.map +1 -0
- package/build/styles/constants.js +13 -0
- package/build/styles/constants.js.map +1 -0
- package/build/styles/index.js +5 -3
- package/build/styles/index.js.map +1 -1
- package/build/styles/spacing/index.js +19 -0
- package/build/styles/spacing/index.js.map +1 -0
- package/build/styles/{margin.js → spacing/margin.js} +1 -1
- package/build/styles/spacing/margin.js.map +1 -0
- package/build/styles/{padding.js → spacing/padding.js} +1 -1
- package/build/styles/spacing/padding.js.map +1 -0
- package/build/styles/typography/index.js +57 -0
- package/build/styles/typography/index.js.map +1 -0
- package/build/styles/utils.js +54 -2
- package/build/styles/utils.js.map +1 -1
- package/build-module/index.js +13 -2
- package/build-module/index.js.map +1 -1
- package/build-module/styles/color/background.js +12 -0
- package/build-module/styles/color/background.js.map +1 -0
- package/build-module/styles/color/gradient.js +12 -0
- package/build-module/styles/color/gradient.js.map +1 -0
- package/build-module/styles/color/index.js +8 -0
- package/build-module/styles/color/index.js.map +1 -0
- package/build-module/styles/color/text.js +12 -0
- package/build-module/styles/color/text.js.map +1 -0
- package/build-module/styles/constants.js +4 -0
- package/build-module/styles/constants.js.map +1 -0
- package/build-module/styles/index.js +4 -3
- package/build-module/styles/index.js.map +1 -1
- package/build-module/styles/spacing/index.js +7 -0
- package/build-module/styles/spacing/index.js.map +1 -0
- package/build-module/styles/{margin.js → spacing/margin.js} +1 -1
- package/build-module/styles/spacing/margin.js.map +1 -0
- package/build-module/styles/{padding.js → spacing/padding.js} +1 -1
- package/build-module/styles/spacing/padding.js.map +1 -0
- package/build-module/styles/typography/index.js +48 -0
- package/build-module/styles/typography/index.js.map +1 -0
- package/build-module/styles/utils.js +49 -2
- package/build-module/styles/utils.js.map +1 -1
- package/build-types/index.d.ts.map +1 -1
- package/build-types/styles/color/background.d.ts +14 -0
- package/build-types/styles/color/background.d.ts.map +1 -0
- package/build-types/styles/color/gradient.d.ts +14 -0
- package/build-types/styles/color/gradient.d.ts.map +1 -0
- package/build-types/styles/color/index.d.ts +10 -0
- package/build-types/styles/color/index.d.ts.map +1 -0
- package/build-types/styles/color/text.d.ts +14 -0
- package/build-types/styles/color/text.d.ts.map +1 -0
- package/build-types/styles/constants.d.ts +4 -0
- package/build-types/styles/constants.d.ts.map +1 -0
- package/build-types/styles/index.d.ts +5 -1
- package/build-types/styles/index.d.ts.map +1 -1
- package/build-types/styles/spacing/index.d.ts +6 -0
- package/build-types/styles/spacing/index.d.ts.map +1 -0
- package/build-types/styles/{margin.d.ts → spacing/margin.d.ts} +2 -2
- package/build-types/styles/spacing/margin.d.ts.map +1 -0
- package/build-types/styles/{padding.d.ts → spacing/padding.d.ts} +2 -2
- package/build-types/styles/spacing/padding.d.ts.map +1 -0
- package/build-types/styles/typography/index.d.ts +14 -0
- package/build-types/styles/typography/index.d.ts.map +1 -0
- package/build-types/styles/utils.d.ts +33 -0
- package/build-types/styles/utils.d.ts.map +1 -1
- package/build-types/types.d.ts +14 -1
- package/build-types/types.d.ts.map +1 -1
- package/class-wp-style-engine.php +189 -61
- package/package.json +2 -2
- package/phpunit/class-wp-style-engine-test.php +86 -67
- package/src/index.ts +13 -1
- package/src/styles/color/background.ts +19 -0
- package/src/styles/color/gradient.ts +19 -0
- package/src/styles/color/index.ts +8 -0
- package/src/styles/color/text.ts +14 -0
- package/src/styles/constants.ts +3 -0
- package/src/styles/index.ts +4 -3
- package/src/styles/spacing/index.ts +7 -0
- package/src/styles/{margin.ts → spacing/margin.ts} +2 -2
- package/src/styles/{padding.ts → spacing/padding.ts} +2 -2
- package/src/styles/typography/index.ts +99 -0
- package/src/styles/utils.ts +67 -2
- package/src/test/index.js +101 -2
- package/src/types.ts +14 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/build/styles/margin.js.map +0 -1
- package/build/styles/padding.js.map +0 -1
- package/build-module/styles/margin.js.map +0 -1
- package/build-module/styles/padding.js.map +0 -1
- package/build-types/styles/margin.d.ts.map +0 -1
- package/build-types/styles/padding.d.ts.map +0 -1
package/src/styles/index.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import color from './color';
|
|
5
|
+
import spacing from './spacing';
|
|
6
|
+
import typography from './typography';
|
|
6
7
|
|
|
7
|
-
export const styleDefinitions = [
|
|
8
|
+
export const styleDefinitions = [ ...color, ...spacing, ...typography ];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type { Style, StyleOptions } from '
|
|
5
|
-
import { generateBoxRules } from '
|
|
4
|
+
import type { Style, StyleOptions } from '../../types';
|
|
5
|
+
import { generateBoxRules } from '../utils';
|
|
6
6
|
|
|
7
7
|
const margin = {
|
|
8
8
|
name: 'margin',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type { Style, StyleOptions } from '
|
|
5
|
-
import { generateBoxRules } from '
|
|
4
|
+
import type { Style, StyleOptions } from '../../types';
|
|
5
|
+
import { generateBoxRules } from '../utils';
|
|
6
6
|
|
|
7
7
|
const padding = {
|
|
8
8
|
name: 'padding',
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { Style, StyleOptions } from '../../types';
|
|
5
|
+
import { generateRule } from '../utils';
|
|
6
|
+
|
|
7
|
+
const fontSize = {
|
|
8
|
+
name: 'fontSize',
|
|
9
|
+
generate: ( style: Style, options: StyleOptions ) => {
|
|
10
|
+
return generateRule(
|
|
11
|
+
style,
|
|
12
|
+
options,
|
|
13
|
+
[ 'typography', 'fontSize' ],
|
|
14
|
+
'fontSize'
|
|
15
|
+
);
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const fontStyle = {
|
|
20
|
+
name: 'fontStyle',
|
|
21
|
+
generate: ( style: Style, options: StyleOptions ) => {
|
|
22
|
+
return generateRule(
|
|
23
|
+
style,
|
|
24
|
+
options,
|
|
25
|
+
[ 'typography', 'fontStyle' ],
|
|
26
|
+
'fontStyle'
|
|
27
|
+
);
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const fontWeight = {
|
|
32
|
+
name: 'fontWeight',
|
|
33
|
+
generate: ( style: Style, options: StyleOptions ) => {
|
|
34
|
+
return generateRule(
|
|
35
|
+
style,
|
|
36
|
+
options,
|
|
37
|
+
[ 'typography', 'fontWeight' ],
|
|
38
|
+
'fontWeight'
|
|
39
|
+
);
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const letterSpacing = {
|
|
44
|
+
name: 'letterSpacing',
|
|
45
|
+
generate: ( style: Style, options: StyleOptions ) => {
|
|
46
|
+
return generateRule(
|
|
47
|
+
style,
|
|
48
|
+
options,
|
|
49
|
+
[ 'typography', 'letterSpacing' ],
|
|
50
|
+
'letterSpacing'
|
|
51
|
+
);
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const lineHeight = {
|
|
56
|
+
name: 'letterSpacing',
|
|
57
|
+
generate: ( style: Style, options: StyleOptions ) => {
|
|
58
|
+
return generateRule(
|
|
59
|
+
style,
|
|
60
|
+
options,
|
|
61
|
+
[ 'typography', 'lineHeight' ],
|
|
62
|
+
'lineHeight'
|
|
63
|
+
);
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const textDecoration = {
|
|
68
|
+
name: 'textDecoration',
|
|
69
|
+
generate: ( style: Style, options: StyleOptions ) => {
|
|
70
|
+
return generateRule(
|
|
71
|
+
style,
|
|
72
|
+
options,
|
|
73
|
+
[ 'typography', 'textDecoration' ],
|
|
74
|
+
'textDecoration'
|
|
75
|
+
);
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
const textTransform = {
|
|
80
|
+
name: 'textTransform',
|
|
81
|
+
generate: ( style: Style, options: StyleOptions ) => {
|
|
82
|
+
return generateRule(
|
|
83
|
+
style,
|
|
84
|
+
options,
|
|
85
|
+
[ 'typography', 'textTransform' ],
|
|
86
|
+
'textTransform'
|
|
87
|
+
);
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export default [
|
|
92
|
+
fontSize,
|
|
93
|
+
fontStyle,
|
|
94
|
+
fontWeight,
|
|
95
|
+
letterSpacing,
|
|
96
|
+
lineHeight,
|
|
97
|
+
textDecoration,
|
|
98
|
+
textTransform,
|
|
99
|
+
];
|
package/src/styles/utils.ts
CHANGED
|
@@ -7,7 +7,51 @@ import { get, upperFirst } from 'lodash';
|
|
|
7
7
|
* Internal dependencies
|
|
8
8
|
*/
|
|
9
9
|
import type { GeneratedCSSRule, Style, Box, StyleOptions } from '../types';
|
|
10
|
+
import {
|
|
11
|
+
VARIABLE_REFERENCE_PREFIX,
|
|
12
|
+
VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE,
|
|
13
|
+
VARIABLE_PATH_SEPARATOR_TOKEN_STYLE,
|
|
14
|
+
} from './constants';
|
|
10
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Returns a JSON representation of the generated CSS rules.
|
|
18
|
+
*
|
|
19
|
+
* @param style Style object.
|
|
20
|
+
* @param options Options object with settings to adjust how the styles are generated.
|
|
21
|
+
* @param path An array of strings representing the path to the style value in the style object.
|
|
22
|
+
* @param ruleKey A CSS property key.
|
|
23
|
+
*
|
|
24
|
+
* @return GeneratedCSSRule[] CSS rules.
|
|
25
|
+
*/
|
|
26
|
+
export function generateRule(
|
|
27
|
+
style: Style,
|
|
28
|
+
options: StyleOptions,
|
|
29
|
+
path: string[],
|
|
30
|
+
ruleKey: string
|
|
31
|
+
) {
|
|
32
|
+
const styleValue: string | undefined = get( style, path );
|
|
33
|
+
|
|
34
|
+
return styleValue
|
|
35
|
+
? [
|
|
36
|
+
{
|
|
37
|
+
selector: options?.selector,
|
|
38
|
+
key: ruleKey,
|
|
39
|
+
value: getCSSVarFromStyleValue( styleValue ),
|
|
40
|
+
},
|
|
41
|
+
]
|
|
42
|
+
: [];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Returns a JSON representation of the generated CSS rules taking into account box model properties, top, right, bottom, left.
|
|
47
|
+
*
|
|
48
|
+
* @param style Style object.
|
|
49
|
+
* @param options Options object with settings to adjust how the styles are generated.
|
|
50
|
+
* @param path An array of strings representing the path to the style value in the style object.
|
|
51
|
+
* @param ruleKey A CSS property key.
|
|
52
|
+
*
|
|
53
|
+
* @return GeneratedCSSRule[] CSS rules.
|
|
54
|
+
*/
|
|
11
55
|
export function generateBoxRules(
|
|
12
56
|
style: Style,
|
|
13
57
|
options: StyleOptions,
|
|
@@ -22,7 +66,7 @@ export function generateBoxRules(
|
|
|
22
66
|
const rules: GeneratedCSSRule[] = [];
|
|
23
67
|
if ( typeof boxStyle === 'string' ) {
|
|
24
68
|
rules.push( {
|
|
25
|
-
selector: options
|
|
69
|
+
selector: options?.selector,
|
|
26
70
|
key: ruleKey,
|
|
27
71
|
value: boxStyle,
|
|
28
72
|
} );
|
|
@@ -32,7 +76,7 @@ export function generateBoxRules(
|
|
|
32
76
|
const value: string | undefined = get( boxStyle, [ side ] );
|
|
33
77
|
if ( value ) {
|
|
34
78
|
acc.push( {
|
|
35
|
-
selector: options
|
|
79
|
+
selector: options?.selector,
|
|
36
80
|
key: `${ ruleKey }${ upperFirst( side ) }`,
|
|
37
81
|
value,
|
|
38
82
|
} );
|
|
@@ -46,3 +90,24 @@ export function generateBoxRules(
|
|
|
46
90
|
|
|
47
91
|
return rules;
|
|
48
92
|
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Returns a CSS var value from incoming style value following the pattern `var:description|context|slug`.
|
|
96
|
+
*
|
|
97
|
+
* @param styleValue A raw style value.
|
|
98
|
+
*
|
|
99
|
+
* @return string A CSS var value.
|
|
100
|
+
*/
|
|
101
|
+
export function getCSSVarFromStyleValue( styleValue: string ): string {
|
|
102
|
+
if (
|
|
103
|
+
typeof styleValue === 'string' &&
|
|
104
|
+
styleValue.startsWith( VARIABLE_REFERENCE_PREFIX )
|
|
105
|
+
) {
|
|
106
|
+
const variable = styleValue
|
|
107
|
+
.slice( VARIABLE_REFERENCE_PREFIX.length )
|
|
108
|
+
.split( VARIABLE_PATH_SEPARATOR_TOKEN_ATTRIBUTE )
|
|
109
|
+
.join( VARIABLE_PATH_SEPARATOR_TOKEN_STYLE );
|
|
110
|
+
return `var(--wp--${ variable })`;
|
|
111
|
+
}
|
|
112
|
+
return styleValue;
|
|
113
|
+
}
|
package/src/test/index.js
CHANGED
|
@@ -8,7 +8,23 @@ describe( 'generate', () => {
|
|
|
8
8
|
expect( generate( {}, '.some-selector' ) ).toEqual( '' );
|
|
9
9
|
} );
|
|
10
10
|
|
|
11
|
-
it( 'should generate
|
|
11
|
+
it( 'should generate inline styles where there is no selector', () => {
|
|
12
|
+
expect(
|
|
13
|
+
generate( {
|
|
14
|
+
spacing: { padding: '10px', margin: '12px' },
|
|
15
|
+
color: {
|
|
16
|
+
text: '#f1f1f1',
|
|
17
|
+
background: '#222222',
|
|
18
|
+
gradient:
|
|
19
|
+
'linear-gradient(135deg,rgb(6,147,227) 0%,rgb(143,47,47) 49%,rgb(155,81,224) 100%)',
|
|
20
|
+
},
|
|
21
|
+
} )
|
|
22
|
+
).toEqual(
|
|
23
|
+
'color: #f1f1f1; background: linear-gradient(135deg,rgb(6,147,227) 0%,rgb(143,47,47) 49%,rgb(155,81,224) 100%); background-color: #222222; margin: 12px; padding: 10px;'
|
|
24
|
+
);
|
|
25
|
+
} );
|
|
26
|
+
|
|
27
|
+
it( 'should generate styles with an optional selector', () => {
|
|
12
28
|
expect(
|
|
13
29
|
generate(
|
|
14
30
|
{
|
|
@@ -23,6 +39,10 @@ describe( 'generate', () => {
|
|
|
23
39
|
expect(
|
|
24
40
|
generate(
|
|
25
41
|
{
|
|
42
|
+
color: {
|
|
43
|
+
text: '#cccccc',
|
|
44
|
+
background: '#111111',
|
|
45
|
+
},
|
|
26
46
|
spacing: {
|
|
27
47
|
padding: { top: '10px', bottom: '5px' },
|
|
28
48
|
margin: {
|
|
@@ -32,15 +52,35 @@ describe( 'generate', () => {
|
|
|
32
52
|
left: '14px',
|
|
33
53
|
},
|
|
34
54
|
},
|
|
55
|
+
typography: {
|
|
56
|
+
fontSize: '2.2rem',
|
|
57
|
+
fontStyle: 'italic',
|
|
58
|
+
fontWeight: '800',
|
|
59
|
+
fontFamily: "'Helvetica Neue',sans-serif",
|
|
60
|
+
lineHeight: '3.3',
|
|
61
|
+
textDecoration: 'line-through',
|
|
62
|
+
letterSpacing: '12px',
|
|
63
|
+
textTransform: 'uppercase',
|
|
64
|
+
},
|
|
35
65
|
},
|
|
36
66
|
{
|
|
37
67
|
selector: '.some-selector',
|
|
38
68
|
}
|
|
39
69
|
)
|
|
40
70
|
).toEqual(
|
|
41
|
-
'.some-selector { margin-top: 11px; margin-right: 12px; margin-bottom: 13px; margin-left: 14px; padding-top: 10px; padding-bottom: 5px; }'
|
|
71
|
+
'.some-selector { color: #cccccc; background-color: #111111; margin-top: 11px; margin-right: 12px; margin-bottom: 13px; margin-left: 14px; padding-top: 10px; padding-bottom: 5px; font-size: 2.2rem; font-style: italic; font-weight: 800; letter-spacing: 12px; line-height: 3.3; text-decoration: line-through; text-transform: uppercase; }'
|
|
42
72
|
);
|
|
43
73
|
} );
|
|
74
|
+
|
|
75
|
+
it( 'should parse preset values (use for elements.link.color.text)', () => {
|
|
76
|
+
expect(
|
|
77
|
+
generate( {
|
|
78
|
+
color: {
|
|
79
|
+
text: 'var:preset|color|ham-sandwich',
|
|
80
|
+
},
|
|
81
|
+
} )
|
|
82
|
+
).toEqual( 'color: var(--wp--preset--color--ham-sandwich);' );
|
|
83
|
+
} );
|
|
44
84
|
} );
|
|
45
85
|
|
|
46
86
|
describe( 'getCSSRules', () => {
|
|
@@ -96,16 +136,40 @@ describe( 'getCSSRules', () => {
|
|
|
96
136
|
expect(
|
|
97
137
|
getCSSRules(
|
|
98
138
|
{
|
|
139
|
+
color: {
|
|
140
|
+
text: '#dddddd',
|
|
141
|
+
background: '#555555',
|
|
142
|
+
},
|
|
99
143
|
spacing: {
|
|
100
144
|
padding: { top: '10px', bottom: '5px' },
|
|
101
145
|
margin: { right: '2em', left: '1vw' },
|
|
102
146
|
},
|
|
147
|
+
typography: {
|
|
148
|
+
fontSize: '2.2rem',
|
|
149
|
+
fontStyle: 'italic',
|
|
150
|
+
fontWeight: '800',
|
|
151
|
+
fontFamily: "'Helvetica Neue',sans-serif",
|
|
152
|
+
lineHeight: '3.3',
|
|
153
|
+
textDecoration: 'line-through',
|
|
154
|
+
letterSpacing: '12px',
|
|
155
|
+
textTransform: 'uppercase',
|
|
156
|
+
},
|
|
103
157
|
},
|
|
104
158
|
{
|
|
105
159
|
selector: '.some-selector',
|
|
106
160
|
}
|
|
107
161
|
)
|
|
108
162
|
).toEqual( [
|
|
163
|
+
{
|
|
164
|
+
selector: '.some-selector',
|
|
165
|
+
key: 'color',
|
|
166
|
+
value: '#dddddd',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
selector: '.some-selector',
|
|
170
|
+
key: 'backgroundColor',
|
|
171
|
+
value: '#555555',
|
|
172
|
+
},
|
|
109
173
|
{
|
|
110
174
|
selector: '.some-selector',
|
|
111
175
|
key: 'marginRight',
|
|
@@ -126,6 +190,41 @@ describe( 'getCSSRules', () => {
|
|
|
126
190
|
key: 'paddingBottom',
|
|
127
191
|
value: '5px',
|
|
128
192
|
},
|
|
193
|
+
{
|
|
194
|
+
key: 'fontSize',
|
|
195
|
+
selector: '.some-selector',
|
|
196
|
+
value: '2.2rem',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
key: 'fontStyle',
|
|
200
|
+
selector: '.some-selector',
|
|
201
|
+
value: 'italic',
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
key: 'fontWeight',
|
|
205
|
+
selector: '.some-selector',
|
|
206
|
+
value: '800',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
key: 'letterSpacing',
|
|
210
|
+
selector: '.some-selector',
|
|
211
|
+
value: '12px',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
key: 'lineHeight',
|
|
215
|
+
selector: '.some-selector',
|
|
216
|
+
value: '3.3',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
key: 'textDecoration',
|
|
220
|
+
selector: '.some-selector',
|
|
221
|
+
value: 'line-through',
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
key: 'textTransform',
|
|
225
|
+
selector: '.some-selector',
|
|
226
|
+
value: 'uppercase',
|
|
227
|
+
},
|
|
129
228
|
] );
|
|
130
229
|
} );
|
|
131
230
|
} );
|
package/src/types.ts
CHANGED
|
@@ -26,6 +26,18 @@ export interface Style {
|
|
|
26
26
|
textDecoration?: CSSProperties[ 'textDecoration' ];
|
|
27
27
|
textTransform?: CSSProperties[ 'textTransform' ];
|
|
28
28
|
};
|
|
29
|
+
color?: {
|
|
30
|
+
text?: CSSProperties[ 'color' ];
|
|
31
|
+
background?: CSSProperties[ 'backgroundColor' ];
|
|
32
|
+
gradient?: CSSProperties[ 'background' ];
|
|
33
|
+
};
|
|
34
|
+
elements?: {
|
|
35
|
+
link?: {
|
|
36
|
+
color?: {
|
|
37
|
+
text?: CSSProperties[ 'color' ];
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
29
41
|
}
|
|
30
42
|
|
|
31
43
|
export type StyleOptions = {
|
|
@@ -47,5 +59,6 @@ export type GeneratedCSSRule = {
|
|
|
47
59
|
|
|
48
60
|
export interface StyleDefinition {
|
|
49
61
|
name: string;
|
|
50
|
-
generate
|
|
62
|
+
generate?: ( style: Style, options: StyleOptions ) => GeneratedCSSRule[];
|
|
63
|
+
getClassNames?: ( style: Style ) => string[];
|
|
51
64
|
}
|
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/utils.ts","./src/styles/padding.ts","./src/styles/margin.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},"7ce243bcd20de992c3a726853892d2580c4ac0fde907920f93326ef51caac0ad","9e25da9dafdb1e51f83d551cdaf14b9f0b30bad86770ac23a25f413113010ac6","06323fb2db304c937fdcb3d840a4b14da96b4d26751fd277c0485f979311e507","0dea1808a66f6454d343152aa05574117689dc804288bd063371d84d33e81631","937eaf10d261e9d206c218ede5ff2079164be4bb7a9fb3db3d65e04cd70fee9f","9f5e49c49eadf457b182011135305f7290bd41fcba43cfda9c8934c9b6052a7f"],"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,67],[65,66],[63,64],[57,63],[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],[68,15],[67,16],[66,17],[65,17],[64,18],[63,19]],"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],[68,15],[67,16],[66,17],[65,17],[64,18],[63,19]],"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,68,67,66,65,64,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/color/background.ts","./src/styles/color/gradient.ts","./src/styles/color/text.ts","./src/styles/color/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},"02ad0b6247da460ff1685c061a5b050fc9c1e32580e405bd58aa2c79746c9287","301543eebfdd2fc5e5d6d928c5ed3f65bd377e95d184eb1351df5fe38ef9eac0","f5b22ebb74022a020d5ba7bd30479ecdd99d9cad74aadd5f9fe964123f6373c3","49dec6685c69b84a795d1e2c2a8d7ac8953efb4a7dadb9b1b04c836053e0ea21","8cbcd8c85fe3627d4c9e75ccf2784b7e4d0082396600e9d432f1cd61009a7933","f303eb9a884f47802f08d6b1d376c737856c29783532a44116bfc7e4929a7204","e8dc9f16ad89ba54f1e7202369a69a265ccd5eec0df39cf429ff1a941603d4da","024f4360a19d5752adcf389085a1782cf027b19bf6e3b55b191db6687def54cc","f3ed8c55e86745fe307a3c893ce81b084c264b7716ef00c45d5c155bf49f171b","b7003bd91d5a0b8bf84a3ef07a0cf5a4b8e0cef58d9e6404f54f05fd4ed6f0b2","7d3a2faeadcffe42977d40ad9ca2e742fa9b4517873bbf7271c955daaee2ac1e","42a14ff63d75ee7f41f0b6347b87fc70eb821a58581f837332458ffc0e8f3658","c900cd7223ce5ca14e0c9a4ddb07aa17b668ad33cba4d775c1480fbb27bf1960"],"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,74],[63,65],[66,67,68],[69,72,73],[70,71],[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],[75,15],[66,16],[67,16],[69,17],[68,16],[74,18],[72,19],[71,16],[70,16],[73,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],[75,15],[66,16],[67,16],[69,17],[68,16],[74,18],[72,19],[71,16],[70,16],[73,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,75,66,67,69,68,64,74,72,71,70,73,65,63]},"version":"4.4.2"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/style-engine/src/styles/margin.ts"],"names":["margin","name","generate","style","options"],"mappings":";;;;;;;AAIA;;AAJA;AACA;AACA;AAIA,MAAMA,MAAM,GAAG;AACdC,EAAAA,IAAI,EAAE,QADQ;AAEdC,EAAAA,QAAQ,EAAE,CAAEC,KAAF,EAAgBC,OAAhB,KAA2C;AACpD,WAAO,6BACND,KADM,EAENC,OAFM,EAGN,CAAE,SAAF,EAAa,QAAb,CAHM,EAIN,QAJM,CAAP;AAMA;AATa,CAAf;eAYeJ,M","sourcesContent":["/**\n * Internal dependencies\n */\nimport type { Style, StyleOptions } from '../types';\nimport { generateBoxRules } from './utils';\n\nconst margin = {\n\tname: 'margin',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateBoxRules(\n\t\t\tstyle,\n\t\t\toptions,\n\t\t\t[ 'spacing', 'margin' ],\n\t\t\t'margin'\n\t\t);\n\t},\n};\n\nexport default margin;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/style-engine/src/styles/padding.ts"],"names":["padding","name","generate","style","options"],"mappings":";;;;;;;AAIA;;AAJA;AACA;AACA;AAIA,MAAMA,OAAO,GAAG;AACfC,EAAAA,IAAI,EAAE,SADS;AAEfC,EAAAA,QAAQ,EAAE,CAAEC,KAAF,EAAgBC,OAAhB,KAA2C;AACpD,WAAO,6BACND,KADM,EAENC,OAFM,EAGN,CAAE,SAAF,EAAa,SAAb,CAHM,EAIN,SAJM,CAAP;AAMA;AATc,CAAhB;eAYeJ,O","sourcesContent":["/**\n * Internal dependencies\n */\nimport type { Style, StyleOptions } from '../types';\nimport { generateBoxRules } from './utils';\n\nconst padding = {\n\tname: 'padding',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateBoxRules(\n\t\t\tstyle,\n\t\t\toptions,\n\t\t\t[ 'spacing', 'padding' ],\n\t\t\t'padding'\n\t\t);\n\t},\n};\n\nexport default padding;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/style-engine/src/styles/margin.ts"],"names":["generateBoxRules","margin","name","generate","style","options"],"mappings":"AAAA;AACA;AACA;AAEA,SAASA,gBAAT,QAAiC,SAAjC;AAEA,MAAMC,MAAM,GAAG;AACdC,EAAAA,IAAI,EAAE,QADQ;AAEdC,EAAAA,QAAQ,EAAE,CAAEC,KAAF,EAAgBC,OAAhB,KAA2C;AACpD,WAAOL,gBAAgB,CACtBI,KADsB,EAEtBC,OAFsB,EAGtB,CAAE,SAAF,EAAa,QAAb,CAHsB,EAItB,QAJsB,CAAvB;AAMA;AATa,CAAf;AAYA,eAAeJ,MAAf","sourcesContent":["/**\n * Internal dependencies\n */\nimport type { Style, StyleOptions } from '../types';\nimport { generateBoxRules } from './utils';\n\nconst margin = {\n\tname: 'margin',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateBoxRules(\n\t\t\tstyle,\n\t\t\toptions,\n\t\t\t[ 'spacing', 'margin' ],\n\t\t\t'margin'\n\t\t);\n\t},\n};\n\nexport default margin;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/style-engine/src/styles/padding.ts"],"names":["generateBoxRules","padding","name","generate","style","options"],"mappings":"AAAA;AACA;AACA;AAEA,SAASA,gBAAT,QAAiC,SAAjC;AAEA,MAAMC,OAAO,GAAG;AACfC,EAAAA,IAAI,EAAE,SADS;AAEfC,EAAAA,QAAQ,EAAE,CAAEC,KAAF,EAAgBC,OAAhB,KAA2C;AACpD,WAAOL,gBAAgB,CACtBI,KADsB,EAEtBC,OAFsB,EAGtB,CAAE,SAAF,EAAa,SAAb,CAHsB,EAItB,SAJsB,CAAvB;AAMA;AATc,CAAhB;AAYA,eAAeJ,OAAf","sourcesContent":["/**\n * Internal dependencies\n */\nimport type { Style, StyleOptions } from '../types';\nimport { generateBoxRules } from './utils';\n\nconst padding = {\n\tname: 'padding',\n\tgenerate: ( style: Style, options: StyleOptions ) => {\n\t\treturn generateBoxRules(\n\t\t\tstyle,\n\t\t\toptions,\n\t\t\t[ 'spacing', 'padding' ],\n\t\t\t'padding'\n\t\t);\n\t},\n};\n\nexport default padding;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"margin.d.ts","sourceRoot":"","sources":["../../src/styles/margin.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGpD,QAAA,MAAM,MAAM;;sBAEQ,KAAK,WAAW,YAAY;CAQ/C,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"padding.d.ts","sourceRoot":"","sources":["../../src/styles/padding.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGpD,QAAA,MAAM,OAAO;;sBAEO,KAAK,WAAW,YAAY;CAQ/C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|