@omni-design/components 0.7.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/.claude/commands/ScanComponents.md +26 -0
- package/.claude/commands/ShareComponent.md +128 -0
- package/.cursorrules +21 -0
- package/CLAUDE.md +1046 -0
- package/README.md +70 -0
- package/dist/OmniDesignProvider.esm.js +2 -0
- package/dist/OmniDesignProvider.esm.js.map +1 -0
- package/dist/OmniDesignProvider.js +2 -0
- package/dist/OmniDesignProvider.js.map +1 -0
- package/dist/index.esm.js +42 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +42 -0
- package/dist/index.js.map +1 -0
- package/dist/types/OmniDesignProvider.d.ts +158 -0
- package/dist/types/components/Accordion/Accordion.d.ts +42 -0
- package/dist/types/components/Accordion/AccordionShowcase.d.ts +2 -0
- package/dist/types/components/Accordion/index.d.ts +2 -0
- package/dist/types/components/Alert/Alert.d.ts +14 -0
- package/dist/types/components/Alert/AlertShowcase.d.ts +2 -0
- package/dist/types/components/Alert/index.d.ts +2 -0
- package/dist/types/components/AppBar/AppBar.d.ts +43 -0
- package/dist/types/components/AppBar/AppBarShowcase.d.ts +2 -0
- package/dist/types/components/AppBar/index.d.ts +2 -0
- package/dist/types/components/Autocomplete/Autocomplete.d.ts +26 -0
- package/dist/types/components/Autocomplete/AutocompleteShowcase.d.ts +2 -0
- package/dist/types/components/Autocomplete/index.d.ts +2 -0
- package/dist/types/components/Avatar/Avatar.d.ts +29 -0
- package/dist/types/components/Avatar/AvatarShowcase.d.ts +2 -0
- package/dist/types/components/Avatar/defaultAvatar.d.ts +2 -0
- package/dist/types/components/Avatar/index.d.ts +3 -0
- package/dist/types/components/BackgroundPicker.d.ts +12 -0
- package/dist/types/components/Badge/Badge.d.ts +43 -0
- package/dist/types/components/Badge/BadgeShowcase.d.ts +1 -0
- package/dist/types/components/Badge/index.d.ts +2 -0
- package/dist/types/components/BevelText/BevelText.d.ts +15 -0
- package/dist/types/components/BevelText/BevelTextShowcase.d.ts +2 -0
- package/dist/types/components/BevelText/index.d.ts +2 -0
- package/dist/types/components/BottomNavigation/BottomNavigation.d.ts +15 -0
- package/dist/types/components/BottomNavigation/BottomNavigationShowcase.d.ts +2 -0
- package/dist/types/components/BottomNavigation/index.d.ts +2 -0
- package/dist/types/components/Box/Box.d.ts +36 -0
- package/dist/types/components/Box/BoxShowcase.d.ts +2 -0
- package/dist/types/components/Box/index.d.ts +2 -0
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +22 -0
- package/dist/types/components/Breadcrumbs/BreadcrumbsShowcase.d.ts +2 -0
- package/dist/types/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/types/components/Button/Button.d.ts +66 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +41 -0
- package/dist/types/components/ButtonGroup/index.d.ts +2 -0
- package/dist/types/components/Card/Card.d.ts +54 -0
- package/dist/types/components/Card/CardShowcase.d.ts +2 -0
- package/dist/types/components/Card/index.d.ts +2 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +51 -0
- package/dist/types/components/Checkbox/index.d.ts +2 -0
- package/dist/types/components/Chip/Chip.d.ts +42 -0
- package/dist/types/components/Chip/ChipShowcase.d.ts +2 -0
- package/dist/types/components/Chip/index.d.ts +2 -0
- package/dist/types/components/CircularProgress/CircularProgress.d.ts +12 -0
- package/dist/types/components/CircularProgress/CircularProgressShowcase.d.ts +2 -0
- package/dist/types/components/CircularProgress/index.d.ts +2 -0
- package/dist/types/components/CodeBlock/CodeBlock.d.ts +35 -0
- package/dist/types/components/Colors/Colors.d.ts +7 -0
- package/dist/types/components/Colors/index.d.ts +1 -0
- package/dist/types/components/Container/Container.d.ts +70 -0
- package/dist/types/components/Container/index.d.ts +1 -0
- package/dist/types/components/Copyright/Copyright.d.ts +11 -0
- package/dist/types/components/Copyright/CopyrightShowcase.d.ts +2 -0
- package/dist/types/components/Copyright/index.d.ts +2 -0
- package/dist/types/components/CurvedText/CurvedText.d.ts +23 -0
- package/dist/types/components/CurvedText/CurvedTextShowcase.d.ts +2 -0
- package/dist/types/components/CurvedText/index.d.ts +2 -0
- package/dist/types/components/Dialog/Dialog.d.ts +82 -0
- package/dist/types/components/Dialog/DialogShowcase.d.ts +2 -0
- package/dist/types/components/Dialog/index.d.ts +2 -0
- package/dist/types/components/Divider/Divider.d.ts +22 -0
- package/dist/types/components/Divider/DividerShowcase.d.ts +2 -0
- package/dist/types/components/Divider/index.d.ts +2 -0
- package/dist/types/components/Drawer/Drawer.d.ts +30 -0
- package/dist/types/components/Drawer/DrawerShowcase.d.ts +2 -0
- package/dist/types/components/Drawer/index.d.ts +2 -0
- package/dist/types/components/DropZone/DropZone.d.ts +15 -0
- package/dist/types/components/DropZone/index.d.ts +2 -0
- package/dist/types/components/Fab/Fab.d.ts +17 -0
- package/dist/types/components/Fab/FabShowcase.d.ts +2 -0
- package/dist/types/components/Fab/index.d.ts +2 -0
- package/dist/types/components/Footer/Footer.d.ts +14 -0
- package/dist/types/components/Footer/FooterShowcase.d.ts +2 -0
- package/dist/types/components/Footer/index.d.ts +2 -0
- package/dist/types/components/Gradient/Gradient.d.ts +38 -0
- package/dist/types/components/Gradient/GradientShowcase.d.ts +2 -0
- package/dist/types/components/Gradient/gradientUtils.d.ts +185 -0
- package/dist/types/components/Gradient/index.d.ts +3 -0
- package/dist/types/components/Grid/Grid.d.ts +112 -0
- package/dist/types/components/Grid/index.d.ts +1 -0
- package/dist/types/components/Header/Header.d.ts +53 -0
- package/dist/types/components/Header/index.d.ts +1 -0
- package/dist/types/components/Icon/Icon.d.ts +19 -0
- package/dist/types/components/Icon/IconShowcase.d.ts +2 -0
- package/dist/types/components/Icon/index.d.ts +2 -0
- package/dist/types/components/IconBadge/IconBadge.d.ts +10 -0
- package/dist/types/components/IconBadge/IconBadgeShowcase.d.ts +2 -0
- package/dist/types/components/IconBadge/index.d.ts +2 -0
- package/dist/types/components/Input/Input.d.ts +47 -0
- package/dist/types/components/Input/index.d.ts +2 -0
- package/dist/types/components/LinearProgress/LinearProgress.d.ts +9 -0
- package/dist/types/components/LinearProgress/LinearProgressShowcase.d.ts +2 -0
- package/dist/types/components/LinearProgress/index.d.ts +2 -0
- package/dist/types/components/Link/Link.d.ts +16 -0
- package/dist/types/components/Link/LinkShowcase.d.ts +2 -0
- package/dist/types/components/Link/index.d.ts +2 -0
- package/dist/types/components/List/List.d.ts +55 -0
- package/dist/types/components/List/ListShowcase.d.ts +2 -0
- package/dist/types/components/List/index.d.ts +2 -0
- package/dist/types/components/MainLayout/MainLayout.d.ts +28 -0
- package/dist/types/components/MainLayout/index.d.ts +1 -0
- package/dist/types/components/Menu/Menu.d.ts +37 -0
- package/dist/types/components/Menu/MenuShowcase.d.ts +2 -0
- package/dist/types/components/Menu/index.d.ts +2 -0
- package/dist/types/components/Modal/Modal.d.ts +18 -0
- package/dist/types/components/Modal/ModalShowcase.d.ts +2 -0
- package/dist/types/components/Modal/index.d.ts +2 -0
- package/dist/types/components/NumberField/NumberField.d.ts +22 -0
- package/dist/types/components/NumberField/NumberFieldShowcase.d.ts +2 -0
- package/dist/types/components/NumberField/index.d.ts +2 -0
- package/dist/types/components/Pagination/Pagination.d.ts +17 -0
- package/dist/types/components/Pagination/PaginationShowcase.d.ts +2 -0
- package/dist/types/components/Pagination/index.d.ts +2 -0
- package/dist/types/components/Paper/Paper.d.ts +111 -0
- package/dist/types/components/Paper/index.d.ts +1 -0
- package/dist/types/components/Popover/Popover.d.ts +31 -0
- package/dist/types/components/Popover/index.d.ts +1 -0
- package/dist/types/components/PreviewSurface.d.ts +18 -0
- package/dist/types/components/Radio/Radio.d.ts +55 -0
- package/dist/types/components/Radio/RadioShowcase.d.ts +2 -0
- package/dist/types/components/Radio/index.d.ts +2 -0
- package/dist/types/components/Rail/Rail.d.ts +15 -0
- package/dist/types/components/Rail/RailShowcase.d.ts +2 -0
- package/dist/types/components/Rail/index.d.ts +2 -0
- package/dist/types/components/Rating/Rating.d.ts +16 -0
- package/dist/types/components/Rating/RatingShowcase.d.ts +2 -0
- package/dist/types/components/Rating/index.d.ts +2 -0
- package/dist/types/components/Ratio/Ratio.d.ts +20 -0
- package/dist/types/components/Ratio/RatioShowcase.d.ts +2 -0
- package/dist/types/components/Ratio/index.d.ts +2 -0
- package/dist/types/components/SearchField/SearchField.d.ts +19 -0
- package/dist/types/components/SearchField/SearchFieldShowcase.d.ts +2 -0
- package/dist/types/components/SearchField/index.d.ts +2 -0
- package/dist/types/components/Section/Section.d.ts +44 -0
- package/dist/types/components/Section/SectionShowcase.d.ts +2 -0
- package/dist/types/components/Section/index.d.ts +2 -0
- package/dist/types/components/Select/Select.d.ts +23 -0
- package/dist/types/components/Select/SelectShowcase.d.ts +2 -0
- package/dist/types/components/Select/index.d.ts +2 -0
- package/dist/types/components/SettingsPanel.d.ts +2 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts +53 -0
- package/dist/types/components/Sidebar/index.d.ts +1 -0
- package/dist/types/components/Slider/Slider.d.ts +79 -0
- package/dist/types/components/Slider/SliderShowcase.d.ts +2 -0
- package/dist/types/components/Slider/index.d.ts +2 -0
- package/dist/types/components/Snackbar/Snackbar.d.ts +17 -0
- package/dist/types/components/Snackbar/SnackbarShowcase.d.ts +2 -0
- package/dist/types/components/Snackbar/index.d.ts +2 -0
- package/dist/types/components/Spacing/Spacing.d.ts +16 -0
- package/dist/types/components/Spacing/index.d.ts +1 -0
- package/dist/types/components/SpeedDial/SpeedDial.d.ts +17 -0
- package/dist/types/components/SpeedDial/SpeedDialShowcase.d.ts +2 -0
- package/dist/types/components/SpeedDial/index.d.ts +2 -0
- package/dist/types/components/Stack/Stack.d.ts +52 -0
- package/dist/types/components/Stack/StackShowcase.d.ts +2 -0
- package/dist/types/components/Stack/index.d.ts +2 -0
- package/dist/types/components/Stepper/Stepper.d.ts +33 -0
- package/dist/types/components/Stepper/StepperShowcase.d.ts +2 -0
- package/dist/types/components/Stepper/index.d.ts +2 -0
- package/dist/types/components/Switch/Switch.d.ts +65 -0
- package/dist/types/components/Switch/SwitchShowcase.d.ts +2 -0
- package/dist/types/components/Switch/index.d.ts +2 -0
- package/dist/types/components/Table/Table.d.ts +20 -0
- package/dist/types/components/Table/TableShowcase.d.ts +2 -0
- package/dist/types/components/Table/index.d.ts +2 -0
- package/dist/types/components/Tabs/Tabs.d.ts +51 -0
- package/dist/types/components/Tabs/TabsShowcase.d.ts +2 -0
- package/dist/types/components/Tabs/index.d.ts +2 -0
- package/dist/types/components/Tag/Tag.d.ts +57 -0
- package/dist/types/components/Tag/TagShowcase.d.ts +2 -0
- package/dist/types/components/Tag/index.d.ts +2 -0
- package/dist/types/components/TextField/TextField.d.ts +105 -0
- package/dist/types/components/TextField/index.d.ts +1 -0
- package/dist/types/components/ToggleButton/ToggleButton.d.ts +94 -0
- package/dist/types/components/ToggleButton/index.d.ts +1 -0
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +48 -0
- package/dist/types/components/Toolbar/Toolbar.d.ts +14 -0
- package/dist/types/components/Toolbar/ToolbarShowcase.d.ts +2 -0
- package/dist/types/components/Toolbar/index.d.ts +2 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +20 -0
- package/dist/types/components/Tooltip/TooltipShowcase.d.ts +2 -0
- package/dist/types/components/Tooltip/index.d.ts +2 -0
- package/dist/types/components/TreeView/TreeBranch.d.ts +14 -0
- package/dist/types/components/TreeView/TreeView.d.ts +82 -0
- package/dist/types/components/TreeView/TreeViewShowcase.d.ts +2 -0
- package/dist/types/components/TreeView/index.d.ts +3 -0
- package/dist/types/components/Typography/Typography.d.ts +492 -0
- package/dist/types/components/Typography/TypographyShowcase.d.ts +2 -0
- package/dist/types/components/Typography/index.d.ts +2 -0
- package/dist/types/components/_a11y/ContrastCheck.d.ts +15 -0
- package/dist/types/components/_bevelPresets.d.ts +92 -0
- package/dist/types/components/_shadows.d.ts +32 -0
- package/dist/types/components/index.d.ts +74 -0
- package/dist/types/theme/useThemeMode.d.ts +4 -0
- package/docs/components.md +797 -0
- package/docs/getting-started.md +409 -0
- package/docs/token-system.md +468 -0
- package/package.json +126 -0
- package/public/styles/Dark-Mode.css +13867 -0
- package/public/styles/Light-Mode.css +14091 -0
- package/public/styles/README.md +93 -0
- package/public/styles/base.css +261 -0
- package/public/styles/core.css +378 -0
- package/public/styles/foundation.css +72 -0
- package/public/styles/styles.css +6 -0
- package/public/styles/theme.js +234 -0
- package/public/styles/theme.json +12 -0
- package/public/styles/typography-tokens.css +720 -0
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
export function Typography({ children, textStyle, color, width, component, noWrap, gutterBottom, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
textStyle?: string;
|
|
5
|
+
color: any;
|
|
6
|
+
width: any;
|
|
7
|
+
component: any;
|
|
8
|
+
noWrap?: boolean;
|
|
9
|
+
gutterBottom?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
sx?: {};
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
export const STYLE_MAP: {
|
|
14
|
+
'display-large': {
|
|
15
|
+
component: string;
|
|
16
|
+
fontFamily: string;
|
|
17
|
+
fontSize: string;
|
|
18
|
+
fontWeight: string;
|
|
19
|
+
lineHeight: string;
|
|
20
|
+
letterSpacing: string;
|
|
21
|
+
defaultColor: string;
|
|
22
|
+
defaultWidth: string;
|
|
23
|
+
};
|
|
24
|
+
'display-medium': {
|
|
25
|
+
component: string;
|
|
26
|
+
fontFamily: string;
|
|
27
|
+
fontSize: string;
|
|
28
|
+
fontWeight: string;
|
|
29
|
+
lineHeight: string;
|
|
30
|
+
letterSpacing: string;
|
|
31
|
+
defaultColor: string;
|
|
32
|
+
defaultWidth: string;
|
|
33
|
+
};
|
|
34
|
+
'display-small': {
|
|
35
|
+
component: string;
|
|
36
|
+
fontFamily: string;
|
|
37
|
+
fontSize: string;
|
|
38
|
+
fontWeight: string;
|
|
39
|
+
lineHeight: string;
|
|
40
|
+
letterSpacing: string;
|
|
41
|
+
defaultColor: string;
|
|
42
|
+
defaultWidth: string;
|
|
43
|
+
};
|
|
44
|
+
h1: {
|
|
45
|
+
component: string;
|
|
46
|
+
fontFamily: string;
|
|
47
|
+
fontVariationSettings: string;
|
|
48
|
+
fontSize: string;
|
|
49
|
+
fontWeight: string;
|
|
50
|
+
lineHeight: string;
|
|
51
|
+
letterSpacing: string;
|
|
52
|
+
defaultColor: string;
|
|
53
|
+
defaultWidth: string;
|
|
54
|
+
};
|
|
55
|
+
h2: {
|
|
56
|
+
component: string;
|
|
57
|
+
fontFamily: string;
|
|
58
|
+
fontVariationSettings: string;
|
|
59
|
+
fontSize: string;
|
|
60
|
+
fontWeight: string;
|
|
61
|
+
lineHeight: string;
|
|
62
|
+
letterSpacing: string;
|
|
63
|
+
defaultColor: string;
|
|
64
|
+
defaultWidth: string;
|
|
65
|
+
};
|
|
66
|
+
h3: {
|
|
67
|
+
component: string;
|
|
68
|
+
fontFamily: string;
|
|
69
|
+
fontVariationSettings: string;
|
|
70
|
+
fontSize: string;
|
|
71
|
+
fontWeight: string;
|
|
72
|
+
lineHeight: string;
|
|
73
|
+
letterSpacing: string;
|
|
74
|
+
defaultColor: string;
|
|
75
|
+
defaultWidth: string;
|
|
76
|
+
};
|
|
77
|
+
h4: {
|
|
78
|
+
component: string;
|
|
79
|
+
fontFamily: string;
|
|
80
|
+
fontVariationSettings: string;
|
|
81
|
+
fontSize: string;
|
|
82
|
+
fontWeight: string;
|
|
83
|
+
lineHeight: string;
|
|
84
|
+
letterSpacing: string;
|
|
85
|
+
defaultColor: string;
|
|
86
|
+
defaultWidth: string;
|
|
87
|
+
};
|
|
88
|
+
h5: {
|
|
89
|
+
component: string;
|
|
90
|
+
fontFamily: string;
|
|
91
|
+
fontVariationSettings: string;
|
|
92
|
+
fontSize: string;
|
|
93
|
+
fontWeight: string;
|
|
94
|
+
lineHeight: string;
|
|
95
|
+
letterSpacing: string;
|
|
96
|
+
defaultColor: string;
|
|
97
|
+
defaultWidth: string;
|
|
98
|
+
};
|
|
99
|
+
h6: {
|
|
100
|
+
component: string;
|
|
101
|
+
fontFamily: string;
|
|
102
|
+
fontVariationSettings: string;
|
|
103
|
+
fontSize: string;
|
|
104
|
+
fontWeight: string;
|
|
105
|
+
lineHeight: string;
|
|
106
|
+
letterSpacing: string;
|
|
107
|
+
defaultColor: string;
|
|
108
|
+
defaultWidth: string;
|
|
109
|
+
};
|
|
110
|
+
'subtitle-large': {
|
|
111
|
+
component: string;
|
|
112
|
+
fontFamily: string;
|
|
113
|
+
fontSize: string;
|
|
114
|
+
fontWeight: string;
|
|
115
|
+
lineHeight: string;
|
|
116
|
+
letterSpacing: string;
|
|
117
|
+
defaultColor: string;
|
|
118
|
+
defaultWidth: string;
|
|
119
|
+
};
|
|
120
|
+
subtitle: {
|
|
121
|
+
component: string;
|
|
122
|
+
fontFamily: string;
|
|
123
|
+
fontSize: string;
|
|
124
|
+
fontWeight: string;
|
|
125
|
+
lineHeight: string;
|
|
126
|
+
letterSpacing: string;
|
|
127
|
+
defaultColor: string;
|
|
128
|
+
defaultWidth: string;
|
|
129
|
+
};
|
|
130
|
+
'subtitle-small': {
|
|
131
|
+
component: string;
|
|
132
|
+
fontFamily: string;
|
|
133
|
+
fontSize: string;
|
|
134
|
+
fontWeight: string;
|
|
135
|
+
lineHeight: string;
|
|
136
|
+
letterSpacing: string;
|
|
137
|
+
defaultColor: string;
|
|
138
|
+
defaultWidth: string;
|
|
139
|
+
};
|
|
140
|
+
'body-small': {
|
|
141
|
+
component: string;
|
|
142
|
+
fontFamily: string;
|
|
143
|
+
fontSize: string;
|
|
144
|
+
fontWeight: string;
|
|
145
|
+
lineHeight: string;
|
|
146
|
+
letterSpacing: string;
|
|
147
|
+
defaultColor: string;
|
|
148
|
+
defaultWidth: string;
|
|
149
|
+
};
|
|
150
|
+
'body-small-semibold': {
|
|
151
|
+
component: string;
|
|
152
|
+
fontFamily: string;
|
|
153
|
+
fontSize: string;
|
|
154
|
+
fontWeight: string;
|
|
155
|
+
lineHeight: string;
|
|
156
|
+
letterSpacing: string;
|
|
157
|
+
defaultColor: string;
|
|
158
|
+
defaultWidth: string;
|
|
159
|
+
};
|
|
160
|
+
body: {
|
|
161
|
+
component: string;
|
|
162
|
+
fontFamily: string;
|
|
163
|
+
fontSize: string;
|
|
164
|
+
fontWeight: string;
|
|
165
|
+
lineHeight: string;
|
|
166
|
+
letterSpacing: string;
|
|
167
|
+
defaultColor: string;
|
|
168
|
+
defaultWidth: string;
|
|
169
|
+
};
|
|
170
|
+
'body-medium': {
|
|
171
|
+
component: string;
|
|
172
|
+
fontFamily: string;
|
|
173
|
+
fontSize: string;
|
|
174
|
+
fontWeight: string;
|
|
175
|
+
lineHeight: string;
|
|
176
|
+
letterSpacing: string;
|
|
177
|
+
defaultColor: string;
|
|
178
|
+
defaultWidth: string;
|
|
179
|
+
};
|
|
180
|
+
'body-semibold': {
|
|
181
|
+
component: string;
|
|
182
|
+
fontFamily: string;
|
|
183
|
+
fontSize: string;
|
|
184
|
+
fontWeight: string;
|
|
185
|
+
lineHeight: string;
|
|
186
|
+
letterSpacing: string;
|
|
187
|
+
defaultColor: string;
|
|
188
|
+
defaultWidth: string;
|
|
189
|
+
};
|
|
190
|
+
'body-medium-semibold': {
|
|
191
|
+
component: string;
|
|
192
|
+
fontFamily: string;
|
|
193
|
+
fontSize: string;
|
|
194
|
+
fontWeight: string;
|
|
195
|
+
lineHeight: string;
|
|
196
|
+
letterSpacing: string;
|
|
197
|
+
defaultColor: string;
|
|
198
|
+
defaultWidth: string;
|
|
199
|
+
};
|
|
200
|
+
'body-large': {
|
|
201
|
+
component: string;
|
|
202
|
+
fontFamily: string;
|
|
203
|
+
fontSize: string;
|
|
204
|
+
fontWeight: string;
|
|
205
|
+
lineHeight: string;
|
|
206
|
+
letterSpacing: string;
|
|
207
|
+
defaultColor: string;
|
|
208
|
+
defaultWidth: string;
|
|
209
|
+
};
|
|
210
|
+
'body-large-semibold': {
|
|
211
|
+
component: string;
|
|
212
|
+
fontFamily: string;
|
|
213
|
+
fontSize: string;
|
|
214
|
+
fontWeight: string;
|
|
215
|
+
lineHeight: string;
|
|
216
|
+
letterSpacing: string;
|
|
217
|
+
defaultColor: string;
|
|
218
|
+
defaultWidth: string;
|
|
219
|
+
};
|
|
220
|
+
caption: {
|
|
221
|
+
component: string;
|
|
222
|
+
fontFamily: string;
|
|
223
|
+
fontSize: string;
|
|
224
|
+
fontWeight: string;
|
|
225
|
+
lineHeight: string;
|
|
226
|
+
letterSpacing: string;
|
|
227
|
+
defaultColor: string;
|
|
228
|
+
defaultWidth: string;
|
|
229
|
+
};
|
|
230
|
+
'caption-bold': {
|
|
231
|
+
component: string;
|
|
232
|
+
fontFamily: string;
|
|
233
|
+
fontSize: string;
|
|
234
|
+
fontWeight: string;
|
|
235
|
+
lineHeight: string;
|
|
236
|
+
letterSpacing: string;
|
|
237
|
+
defaultColor: string;
|
|
238
|
+
defaultWidth: string;
|
|
239
|
+
};
|
|
240
|
+
'label-extra-small': {
|
|
241
|
+
component: string;
|
|
242
|
+
fontFamily: string;
|
|
243
|
+
fontSize: string;
|
|
244
|
+
fontWeight: string;
|
|
245
|
+
lineHeight: string;
|
|
246
|
+
letterSpacing: string;
|
|
247
|
+
defaultColor: string;
|
|
248
|
+
defaultWidth: string;
|
|
249
|
+
};
|
|
250
|
+
'label-small': {
|
|
251
|
+
component: string;
|
|
252
|
+
fontFamily: string;
|
|
253
|
+
fontSize: string;
|
|
254
|
+
fontWeight: string;
|
|
255
|
+
lineHeight: string;
|
|
256
|
+
letterSpacing: string;
|
|
257
|
+
defaultColor: string;
|
|
258
|
+
defaultWidth: string;
|
|
259
|
+
};
|
|
260
|
+
label: {
|
|
261
|
+
component: string;
|
|
262
|
+
fontFamily: string;
|
|
263
|
+
fontSize: string;
|
|
264
|
+
fontWeight: string;
|
|
265
|
+
lineHeight: string;
|
|
266
|
+
letterSpacing: string;
|
|
267
|
+
defaultColor: string;
|
|
268
|
+
defaultWidth: string;
|
|
269
|
+
};
|
|
270
|
+
'label-medium': {
|
|
271
|
+
component: string;
|
|
272
|
+
fontFamily: string;
|
|
273
|
+
fontSize: string;
|
|
274
|
+
fontWeight: string;
|
|
275
|
+
lineHeight: string;
|
|
276
|
+
letterSpacing: string;
|
|
277
|
+
defaultColor: string;
|
|
278
|
+
defaultWidth: string;
|
|
279
|
+
};
|
|
280
|
+
'label-large': {
|
|
281
|
+
component: string;
|
|
282
|
+
fontFamily: string;
|
|
283
|
+
fontSize: string;
|
|
284
|
+
fontWeight: string;
|
|
285
|
+
lineHeight: string;
|
|
286
|
+
letterSpacing: string;
|
|
287
|
+
defaultColor: string;
|
|
288
|
+
defaultWidth: string;
|
|
289
|
+
};
|
|
290
|
+
legal: {
|
|
291
|
+
component: string;
|
|
292
|
+
fontFamily: string;
|
|
293
|
+
fontSize: string;
|
|
294
|
+
fontWeight: string;
|
|
295
|
+
lineHeight: string;
|
|
296
|
+
letterSpacing: string;
|
|
297
|
+
defaultColor: string;
|
|
298
|
+
defaultWidth: string;
|
|
299
|
+
};
|
|
300
|
+
'legal-semibold': {
|
|
301
|
+
component: string;
|
|
302
|
+
fontFamily: string;
|
|
303
|
+
fontSize: string;
|
|
304
|
+
fontWeight: string;
|
|
305
|
+
lineHeight: string;
|
|
306
|
+
letterSpacing: string;
|
|
307
|
+
defaultColor: string;
|
|
308
|
+
defaultWidth: string;
|
|
309
|
+
};
|
|
310
|
+
'eyebrow-small': {
|
|
311
|
+
component: string;
|
|
312
|
+
fontFamily: string;
|
|
313
|
+
fontSize: string;
|
|
314
|
+
fontWeight: string;
|
|
315
|
+
lineHeight: string;
|
|
316
|
+
letterSpacing: string;
|
|
317
|
+
textTransform: string;
|
|
318
|
+
defaultColor: string;
|
|
319
|
+
defaultWidth: string;
|
|
320
|
+
};
|
|
321
|
+
eyebrow: {
|
|
322
|
+
component: string;
|
|
323
|
+
fontFamily: string;
|
|
324
|
+
fontSize: string;
|
|
325
|
+
fontWeight: string;
|
|
326
|
+
lineHeight: string;
|
|
327
|
+
letterSpacing: string;
|
|
328
|
+
textTransform: string;
|
|
329
|
+
defaultColor: string;
|
|
330
|
+
defaultWidth: string;
|
|
331
|
+
};
|
|
332
|
+
'eyebrow-large': {
|
|
333
|
+
component: string;
|
|
334
|
+
fontFamily: string;
|
|
335
|
+
fontSize: string;
|
|
336
|
+
fontWeight: string;
|
|
337
|
+
lineHeight: string;
|
|
338
|
+
letterSpacing: string;
|
|
339
|
+
textTransform: string;
|
|
340
|
+
defaultColor: string;
|
|
341
|
+
defaultWidth: string;
|
|
342
|
+
};
|
|
343
|
+
'number-small': {
|
|
344
|
+
component: string;
|
|
345
|
+
fontFamily: string;
|
|
346
|
+
fontSize: string;
|
|
347
|
+
fontWeight: string;
|
|
348
|
+
lineHeight: string;
|
|
349
|
+
letterSpacing: string;
|
|
350
|
+
fontVariantNumeric: string;
|
|
351
|
+
defaultColor: string;
|
|
352
|
+
defaultWidth: string;
|
|
353
|
+
};
|
|
354
|
+
'number-medium': {
|
|
355
|
+
component: string;
|
|
356
|
+
fontFamily: string;
|
|
357
|
+
fontSize: string;
|
|
358
|
+
fontWeight: string;
|
|
359
|
+
lineHeight: string;
|
|
360
|
+
letterSpacing: string;
|
|
361
|
+
fontVariantNumeric: string;
|
|
362
|
+
defaultColor: string;
|
|
363
|
+
defaultWidth: string;
|
|
364
|
+
};
|
|
365
|
+
'number-large': {
|
|
366
|
+
component: string;
|
|
367
|
+
fontFamily: string;
|
|
368
|
+
fontSize: string;
|
|
369
|
+
fontWeight: string;
|
|
370
|
+
lineHeight: string;
|
|
371
|
+
letterSpacing: string;
|
|
372
|
+
fontVariantNumeric: string;
|
|
373
|
+
defaultColor: string;
|
|
374
|
+
defaultWidth: string;
|
|
375
|
+
};
|
|
376
|
+
'button-extra-small': {
|
|
377
|
+
component: string;
|
|
378
|
+
fontFamily: string;
|
|
379
|
+
fontSize: string;
|
|
380
|
+
fontWeight: string;
|
|
381
|
+
lineHeight: string;
|
|
382
|
+
letterSpacing: string;
|
|
383
|
+
defaultColor: string;
|
|
384
|
+
defaultWidth: string;
|
|
385
|
+
};
|
|
386
|
+
'button-small': {
|
|
387
|
+
component: string;
|
|
388
|
+
fontFamily: string;
|
|
389
|
+
fontSize: string;
|
|
390
|
+
fontWeight: string;
|
|
391
|
+
lineHeight: string;
|
|
392
|
+
letterSpacing: string;
|
|
393
|
+
defaultColor: string;
|
|
394
|
+
defaultWidth: string;
|
|
395
|
+
};
|
|
396
|
+
button: {
|
|
397
|
+
component: string;
|
|
398
|
+
fontFamily: string;
|
|
399
|
+
fontSize: string;
|
|
400
|
+
fontWeight: string;
|
|
401
|
+
lineHeight: string;
|
|
402
|
+
letterSpacing: string;
|
|
403
|
+
defaultColor: string;
|
|
404
|
+
defaultWidth: string;
|
|
405
|
+
};
|
|
406
|
+
'button-standard': {
|
|
407
|
+
component: string;
|
|
408
|
+
fontFamily: string;
|
|
409
|
+
fontSize: string;
|
|
410
|
+
fontWeight: string;
|
|
411
|
+
lineHeight: string;
|
|
412
|
+
letterSpacing: string;
|
|
413
|
+
defaultColor: string;
|
|
414
|
+
defaultWidth: string;
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
export const STYLE_ALIASES: {
|
|
418
|
+
'overline-small': string;
|
|
419
|
+
overline: string;
|
|
420
|
+
'overline-medium': string;
|
|
421
|
+
'overline-large': string;
|
|
422
|
+
'eyebrow-medium': string;
|
|
423
|
+
'body-small-bold': string;
|
|
424
|
+
'body-bold': string;
|
|
425
|
+
'body-medium-bold': string;
|
|
426
|
+
'body-large-bold': string;
|
|
427
|
+
'subtitle-medium': string;
|
|
428
|
+
};
|
|
429
|
+
export const TYPOGRAPHY_STYLES: string[];
|
|
430
|
+
export const HEADER_COLORS: string[];
|
|
431
|
+
export const TEXT_COLORS: string[];
|
|
432
|
+
export const CAP_HEIGHT_TRIM: {
|
|
433
|
+
'@supports (text-box-edge: cap alphabetic)': {
|
|
434
|
+
textBoxTrim: string;
|
|
435
|
+
textBoxEdge: string;
|
|
436
|
+
paddingTop: number;
|
|
437
|
+
paddingBottom: number;
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
export function DisplayLarge(p: any): JSX.Element;
|
|
441
|
+
export function DisplayMedium(p: any): JSX.Element;
|
|
442
|
+
export function DisplaySmall(p: any): JSX.Element;
|
|
443
|
+
export function H1(p: any): JSX.Element;
|
|
444
|
+
export function H2(p: any): JSX.Element;
|
|
445
|
+
export function H3(p: any): JSX.Element;
|
|
446
|
+
export function H4(p: any): JSX.Element;
|
|
447
|
+
export function H5(p: any): JSX.Element;
|
|
448
|
+
export function H6(p: any): JSX.Element;
|
|
449
|
+
export function Heading(p: any): JSX.Element;
|
|
450
|
+
export function SubtitleLarge(p: any): JSX.Element;
|
|
451
|
+
export function Subtitle(p: any): JSX.Element;
|
|
452
|
+
export function SubtitleSmall(p: any): JSX.Element;
|
|
453
|
+
export function SubtitleMedium(p: any): JSX.Element;
|
|
454
|
+
export function Subtitle1(p: any): JSX.Element;
|
|
455
|
+
export function Subtitle2(p: any): JSX.Element;
|
|
456
|
+
export function BodySmall(p: any): JSX.Element;
|
|
457
|
+
export function BodySmallSemibold(p: any): JSX.Element;
|
|
458
|
+
export function BodySmallBold(p: any): JSX.Element;
|
|
459
|
+
export function Body(p: any): JSX.Element;
|
|
460
|
+
export function BodyMedium(p: any): JSX.Element;
|
|
461
|
+
export function BodySemibold(p: any): JSX.Element;
|
|
462
|
+
export function BodyBold(p: any): JSX.Element;
|
|
463
|
+
export function Body1(p: any): JSX.Element;
|
|
464
|
+
export function Body2(p: any): JSX.Element;
|
|
465
|
+
export function BodyLarge(p: any): JSX.Element;
|
|
466
|
+
export function BodyLargeSemibold(p: any): JSX.Element;
|
|
467
|
+
export function BodyLargeBold(p: any): JSX.Element;
|
|
468
|
+
export function Caption(p: any): JSX.Element;
|
|
469
|
+
export function CaptionBold(p: any): JSX.Element;
|
|
470
|
+
export function LabelExtraSmall(p: any): JSX.Element;
|
|
471
|
+
export function LabelSmall(p: any): JSX.Element;
|
|
472
|
+
export function Label(p: any): JSX.Element;
|
|
473
|
+
export function LabelMedium(p: any): JSX.Element;
|
|
474
|
+
export function LabelLarge(p: any): JSX.Element;
|
|
475
|
+
export function Legal(p: any): JSX.Element;
|
|
476
|
+
export function LegalSemibold(p: any): JSX.Element;
|
|
477
|
+
export function EyebrowSmall(p: any): JSX.Element;
|
|
478
|
+
export function Eyebrow(p: any): JSX.Element;
|
|
479
|
+
export function EyebrowMedium(p: any): JSX.Element;
|
|
480
|
+
export function EyebrowLarge(p: any): JSX.Element;
|
|
481
|
+
export function OverlineSmall(p: any): JSX.Element;
|
|
482
|
+
export function Overline(p: any): JSX.Element;
|
|
483
|
+
export function OverlineMedium(p: any): JSX.Element;
|
|
484
|
+
export function OverlineLarge(p: any): JSX.Element;
|
|
485
|
+
export function NumberSmall(p: any): JSX.Element;
|
|
486
|
+
export function NumberMedium(p: any): JSX.Element;
|
|
487
|
+
export function NumberLarge(p: any): JSX.Element;
|
|
488
|
+
export function ButtonExtraSmall(p: any): JSX.Element;
|
|
489
|
+
export function ButtonSmall(p: any): JSX.Element;
|
|
490
|
+
export function ButtonTypography(p: any): JSX.Element;
|
|
491
|
+
export function Button(p: any): JSX.Element;
|
|
492
|
+
export default Typography;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { TypographyShowcase } from "./TypographyShowcase";
|
|
2
|
+
export { Typography, TYPOGRAPHY_STYLES, CAP_HEIGHT_TRIM, H1, H2, H3, H4, H5, H6, Heading, DisplayLarge, DisplayMedium, DisplaySmall, Subtitle, SubtitleSmall, SubtitleMedium, SubtitleLarge, Subtitle1, Subtitle2, Body, BodySmall, BodyLarge, BodySemibold, BodyBold, BodySmallSemibold, BodySmallBold, BodyLargeSemibold, BodyLargeBold, Body1, Body2, Label, LabelSmall, LabelLarge, LabelExtraSmall, Caption, CaptionBold, Legal, LegalSemibold, Button, ButtonSmall, ButtonExtraSmall, Eyebrow, EyebrowSmall, EyebrowMedium, EyebrowLarge, Overline, OverlineSmall, OverlineMedium, OverlineLarge, NumberLarge, NumberMedium, NumberSmall, default } from "./Typography";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ContrastCheck — given a ref to a DOM element, reads its background-color
|
|
3
|
+
* and color and shows a pass/fail row.
|
|
4
|
+
*
|
|
5
|
+
* Props:
|
|
6
|
+
* targetRef — a React ref pointing at a rendered DOM element.
|
|
7
|
+
* label — what this row is checking (e.g. "Footer body", "Copyright").
|
|
8
|
+
* deps — array of values that, when changed, re-runs the check.
|
|
9
|
+
*/
|
|
10
|
+
export function ContrastCheck({ targetRef, label, deps }: {
|
|
11
|
+
targetRef: any;
|
|
12
|
+
label: any;
|
|
13
|
+
deps?: any[];
|
|
14
|
+
}): JSX.Element;
|
|
15
|
+
export default ContrastCheck;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export function resolveBevelConfig(preset: any, custom: any): any;
|
|
2
|
+
export function bevelColor(theme: any, slot: any): string;
|
|
3
|
+
/**
|
|
4
|
+
* The small-text fallback color for a given bevel theme.
|
|
5
|
+
*
|
|
6
|
+
* The bevel's `--Buttons-{Theme}-Button` fill is tuned for button bodies and
|
|
7
|
+
* pairs with the Highlight / Lowlight at the WCAG 3:1 large-text minimum.
|
|
8
|
+
* Once rendered text drops below 19px, contrast needs to hit 4.5:1 — at that
|
|
9
|
+
* size we swap the bevel fill for `--Text-{Theme}` (or plain `--Text` for
|
|
10
|
+
* Default), which IS contrast-tuned for body text.
|
|
11
|
+
*/
|
|
12
|
+
export function textFallbackColor(theme: any): string;
|
|
13
|
+
export function angleToOffset(deg: any, dist: any): {
|
|
14
|
+
dx: number;
|
|
15
|
+
dy: number;
|
|
16
|
+
};
|
|
17
|
+
export const BEVEL_THEMES: string[];
|
|
18
|
+
export const BEVEL_PRESETS: {
|
|
19
|
+
Classic: {
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
angle: number;
|
|
23
|
+
bevel: boolean;
|
|
24
|
+
depth: number;
|
|
25
|
+
softness: number;
|
|
26
|
+
shadow: boolean;
|
|
27
|
+
shadowDistance: number;
|
|
28
|
+
shadowBlur: number;
|
|
29
|
+
shadowOpacity: number;
|
|
30
|
+
};
|
|
31
|
+
Carved: {
|
|
32
|
+
name: string;
|
|
33
|
+
description: string;
|
|
34
|
+
angle: number;
|
|
35
|
+
bevel: boolean;
|
|
36
|
+
depth: number;
|
|
37
|
+
softness: number;
|
|
38
|
+
shadow: boolean;
|
|
39
|
+
shadowDistance: number;
|
|
40
|
+
shadowBlur: number;
|
|
41
|
+
shadowOpacity: number;
|
|
42
|
+
};
|
|
43
|
+
Embossed: {
|
|
44
|
+
name: string;
|
|
45
|
+
description: string;
|
|
46
|
+
angle: number;
|
|
47
|
+
bevel: boolean;
|
|
48
|
+
depth: number;
|
|
49
|
+
softness: number;
|
|
50
|
+
shadow: boolean;
|
|
51
|
+
shadowDistance: number;
|
|
52
|
+
shadowBlur: number;
|
|
53
|
+
shadowOpacity: number;
|
|
54
|
+
};
|
|
55
|
+
Stamp: {
|
|
56
|
+
name: string;
|
|
57
|
+
description: string;
|
|
58
|
+
angle: number;
|
|
59
|
+
bevel: boolean;
|
|
60
|
+
depth: number;
|
|
61
|
+
softness: number;
|
|
62
|
+
shadow: boolean;
|
|
63
|
+
shadowDistance: number;
|
|
64
|
+
shadowBlur: number;
|
|
65
|
+
shadowOpacity: number;
|
|
66
|
+
};
|
|
67
|
+
'Night Cut': {
|
|
68
|
+
name: string;
|
|
69
|
+
description: string;
|
|
70
|
+
angle: number;
|
|
71
|
+
bevel: boolean;
|
|
72
|
+
depth: number;
|
|
73
|
+
softness: number;
|
|
74
|
+
shadow: boolean;
|
|
75
|
+
shadowDistance: number;
|
|
76
|
+
shadowBlur: number;
|
|
77
|
+
shadowOpacity: number;
|
|
78
|
+
};
|
|
79
|
+
'Shadow Only': {
|
|
80
|
+
name: string;
|
|
81
|
+
description: string;
|
|
82
|
+
angle: number;
|
|
83
|
+
bevel: boolean;
|
|
84
|
+
depth: number;
|
|
85
|
+
softness: number;
|
|
86
|
+
shadow: boolean;
|
|
87
|
+
shadowDistance: number;
|
|
88
|
+
shadowBlur: number;
|
|
89
|
+
shadowOpacity: number;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
export const BEVEL_PRESET_NAMES: string[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The bevel's two inset shadows.
|
|
3
|
+
*
|
|
4
|
+
* `size` ('small' | 'medium' | 'large') opts into the design system's
|
|
5
|
+
* per-size geometry tokens — eight literal lengths per size, generated from
|
|
6
|
+
* the same module that writes the Figma variables, so the two artifacts carry
|
|
7
|
+
* identical numbers. Each one falls back to the value the lib derives from
|
|
8
|
+
* --_bevel, which is what older design systems (and any caller with no size
|
|
9
|
+
* token to point at) keep using.
|
|
10
|
+
*
|
|
11
|
+
* Callers with a height that no size token describes — the Fab's diameter, the
|
|
12
|
+
* Slider's thumb — pass no size and stay entirely on the derived path.
|
|
13
|
+
*/
|
|
14
|
+
export function bevelShadow(color: any, size: any): string;
|
|
15
|
+
export const SHADOW_LEVEL_0: "none";
|
|
16
|
+
export const SHADOW_LEVEL_1: any;
|
|
17
|
+
export const SHADOW_LEVEL_2: any;
|
|
18
|
+
export const SHADOW_LEVEL_3: any;
|
|
19
|
+
export const SHADOW_LEVEL_4: any;
|
|
20
|
+
export const SHADOW_LEVEL_5: any;
|
|
21
|
+
export const SHADOWS: {
|
|
22
|
+
0: string;
|
|
23
|
+
1: any;
|
|
24
|
+
2: any;
|
|
25
|
+
3: any;
|
|
26
|
+
4: any;
|
|
27
|
+
5: any;
|
|
28
|
+
};
|
|
29
|
+
export const TOKEN_SEGMENT: {
|
|
30
|
+
'black-white': string;
|
|
31
|
+
};
|
|
32
|
+
export function tokenSegment(color: any): any;
|