-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
index.js
86 lines (84 loc) · 2.02 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/**
* Internal dependencies
*/
import {
createBlockEditFilter,
createBlockListBlockFilter,
createBlockSaveFilter,
} from './utils';
import './compat';
import align from './align';
import background from './background';
import './lock';
import anchor from './anchor';
import ariaLabel from './aria-label';
import customClassName from './custom-class-name';
import './generated-class-name';
import style from './style';
import './settings';
import color from './color';
import dimensions from './dimensions';
import duotone from './duotone';
import fontFamily from './font-family';
import fontSize from './font-size';
import textAlign from './text-align';
import border from './border';
import position from './position';
import layout from './layout';
import childLayout from './layout-child';
import contentLockUI from './content-lock-ui';
import './metadata';
import blockHooks from './block-hooks';
import './block-renaming';
import './use-bindings-attributes';
createBlockEditFilter(
[
align,
textAlign,
anchor,
customClassName,
style,
duotone,
position,
layout,
contentLockUI,
blockHooks,
childLayout,
].filter( Boolean )
);
createBlockListBlockFilter( [
align,
background,
textAlign,
style,
color,
dimensions,
duotone,
fontFamily,
fontSize,
border,
position,
childLayout,
] );
createBlockSaveFilter( [
align,
textAlign,
anchor,
ariaLabel,
customClassName,
border,
color,
style,
fontFamily,
fontSize,
] );
export { useCustomSides } from './dimensions';
export { useLayoutClasses, useLayoutStyles } from './layout';
export { getBorderClassesAndStyles, useBorderProps } from './use-border-props';
export { getShadowClassesAndStyles } from './use-shadow-props';
export { getColorClassesAndStyles, useColorProps } from './use-color-props';
export { getSpacingClassesAndStyles } from './use-spacing-props';
export { getTypographyClassesAndStyles } from './use-typography-props';
export { getGapCSSValue } from './gap';
export { useCachedTruthy } from './use-cached-truthy';
export { useZoomOut } from './use-zoom-out';