-
Notifications
You must be signed in to change notification settings - Fork 59
/
index.ts
109 lines (99 loc) · 2.69 KB
/
index.ts
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// This should be just "export * as shorthands from "
// https://github.com/microsoft/fluentui/issues/20694
import {
border,
borderLeft,
borderBottom,
borderRight,
borderTop,
borderColor,
borderStyle,
borderRadius,
borderWidth,
flex,
gap,
gridArea,
margin,
marginBlock,
marginInline,
padding,
paddingBlock,
paddingInline,
overflow,
inset,
outline,
transition,
textDecoration,
} from './shorthands';
export const shorthands = {
border,
borderLeft,
borderBottom,
borderRight,
borderTop,
borderColor,
borderStyle,
borderRadius,
borderWidth,
flex,
gap,
gridArea,
margin,
marginBlock,
marginInline,
padding,
paddingBlock,
paddingInline,
overflow,
inset,
outline,
transition,
textDecoration,
};
export { createDOMRenderer } from './renderer/createDOMRenderer';
export type { CreateDOMRendererOptions } from './renderer/createDOMRenderer';
export { rehydrateRendererCache } from './renderer/rehydrateRendererCache';
export { safeInsertRule } from './renderer/safeInsertRule';
export { mergeClasses } from './mergeClasses';
export { makeStyles } from './makeStyles';
export type { MakeStylesOptions } from './makeStyles';
export { makeStaticStyles } from './makeStaticStyles';
export type { MakeStaticStylesOptions } from './makeStaticStyles';
export { makeResetStyles } from './makeResetStyles';
export { resolveStyleRulesForSlots } from './resolveStyleRulesForSlots';
// Private exports, are used by build time transforms or other tools
export { __css } from './__css';
export { __styles } from './__styles';
export { __resetCSS } from './__resetCSS';
export { __resetStyles } from './__resetStyles';
export { normalizeCSSBucketEntry } from './runtime/utils/normalizeCSSBucketEntry';
export { styleBucketOrdering } from './renderer/getStyleSheetForBucket';
export { defaultCompareMediaQueries } from './renderer/createDOMRenderer';
export { getStyleBucketName } from './runtime/getStyleBucketName';
export { reduceToClassNameForSlots } from './runtime/reduceToClassNameForSlots';
export { resolveStyleRules } from './runtime/resolveStyleRules';
export { resolveResetStyleRules } from './runtime/resolveResetStyleRules';
export * from './constants';
export type {
// Static styles
GriffelStaticStyle,
GriffelStaticStyles,
// Styles
GriffelAnimation,
GriffelStyle,
// Reset styles
GriffelResetStyle,
// Internal types
} from '@griffel/style-types';
export {
CSSClasses,
CSSClassesMapBySlot,
CSSBucketEntry,
CSSRulesByBucket,
StyleBucketName,
// Util
GriffelRenderer,
GriffelInsertionFactory,
} from './types';
// Private exports, are used by devtools
export type { DebugCSSRules, DebugSequence, DebugResult } from './devtools';