-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.ts
319 lines (317 loc) · 11.5 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
import "./styles.scss";
// Note that the NYPL Design System directly re-exports the following
// components for usage in consuming applications.
export {
Box,
Center,
chakra,
Circle,
ColorModeScript,
cookieStorageManager,
cookieStorageManagerSSR,
FocusLock,
Flex,
Grid,
GridItem,
HStack,
localStorageManager,
Spacer,
Square,
Stack,
useColorMode,
useColorModeValue,
useStyleConfig,
useMediaQuery,
useMultiStyleConfig,
VStack,
} from "@chakra-ui/react";
export { default as Accordion } from "./components/Accordion/Accordion";
export type {
AccordionTypes,
AccordionDataProps,
} from "./components/Accordion/Accordion";
export { default as AlphabetFilter } from "./components/AlphabetFilter/AlphabetFilter";
export type { AlphabetFilterProps } from "./components/AlphabetFilter/AlphabetFilter";
export { default as AudioPlayer } from "./components/AudioPlayer/AudioPlayer";
export type {
AudioType,
AudioPlayerProps,
} from "./components/AudioPlayer/AudioPlayer";
export { default as Banner } from "./components/Banner/Banner";
export type {
BannerTypes,
BannerBgColors,
BannerHighlightColors,
BannerProps,
} from "./components/Banner/Banner";
export { default as Breadcrumbs } from "./components/Breadcrumbs/Breadcrumbs";
export type {
BreadcrumbsTypes,
BreadcrumbProps,
BreadcrumbsDataProps,
} from "./components/Breadcrumbs/Breadcrumbs";
export { default as Button } from "./components/Button/Button";
export type {
ButtonElementType,
ButtonProps,
ButtonSizes,
ButtonTypes,
} from "./components/Button/Button";
export { default as ButtonGroup } from "./components/ButtonGroup/ButtonGroup";
export type { ButtonGroupProps } from "./components/ButtonGroup/ButtonGroup";
export {
default as Card,
CardActions,
CardContent,
CardHeading,
} from "./components/Card/Card";
export type { CardProps } from "./components/Card/Card";
export { default as Checkbox } from "./components/Checkbox/Checkbox";
export type { CheckboxProps } from "./components/Checkbox/Checkbox";
export { default as CheckboxGroup } from "./components/CheckboxGroup/CheckboxGroup";
export type { CheckboxGroupProps } from "./components/CheckboxGroup/CheckboxGroup";
export { default as ColorCard } from "./components/StyleGuide/ColorCard";
export { default as DatePicker } from "./components/DatePicker/DatePicker";
export type {
DatePickerTypes,
FullDateType,
CustomTextInputProps,
DatePickerProps,
} from "./components/DatePicker/DatePicker";
export { default as DSProvider } from "./theme/provider";
export { default as FeaturedContent } from "./components/FeaturedContent/FeaturedContent";
export type {
FeaturedContentImageProps,
FeaturedContentPositionType,
FeaturedContentProps,
FeaturedContentWidthType,
} from "./components/FeaturedContent/FeaturedContent";
export {
default as FeedbackBox,
useFeedbackBox,
} from "./components/FeedbackBox/FeedbackBox";
export type {
FeedbackBoxProps,
FeedbackBoxViewType,
} from "./components/FeedbackBox/FeedbackBox";
export { default as Fieldset } from "./components/Fieldset/Fieldset";
export type { FieldsetProps } from "./components/Fieldset/Fieldset";
export { default as FilterBarInline } from "./components/FilterBarInline/FilterBarInline";
export type {
FilterBarItemsType,
FilterBarInlineProps,
} from "./components/FilterBarInline/FilterBarInline";
export {
default as FilterBarPopup,
useFilterBarPopup,
} from "./components/FilterBarPopup/FilterBarPopup";
export type { FilterBarPopupProps } from "./components/FilterBarPopup/FilterBarPopup";
export { default as Form, FormField, FormRow } from "./components/Form/Form";
export type { FormProps } from "./components/Form/Form";
export { default as Header } from "./components/Header/Header";
export { default as Heading } from "./components/Heading/Heading";
export type {
HeadingLevels,
HeadingProps,
HeadingSizes,
} from "./components/Heading/Heading";
export { default as HelperErrorText } from "./components/HelperErrorText/HelperErrorText";
export type { HelperErrorTextProps } from "./components/HelperErrorText/HelperErrorText";
export { default as Hero } from "./components/Hero/Hero";
export type { HeroProps, HeroTypes } from "./components/Hero/Hero";
export { default as HorizontalRule } from "./components/HorizontalRule/HorizontalRule";
export type { HorizontalRuleProps } from "./components/HorizontalRule/HorizontalRule";
export { default as Icon } from "./components/Icons/Icon";
export type {
IconAlign,
IconColors,
IconNames,
IconRotations,
IconRotationTypes,
IconSizes,
IconTypes,
IconProps,
} from "./components/Icons/Icon";
export { default as Image } from "./components/Image/Image";
export type {
ComponentImageProps,
ImageProps,
ImageRatios,
ImageSizes,
ImageTypes,
} from "./components/Image/Image";
export { default as Label } from "./components/Label/Label";
export type { LabelProps } from "./components/Label/Label";
export type {
DimensionTypes,
LayoutTypes,
SectionTypes,
} from "./helpers/types";
export { default as Link } from "./components/Link/Link";
export type { LinkProps, LinkTypes } from "./components/Link/Link";
export { default as List } from "./components/List/List";
export type {
DescriptionProps,
ListProps,
ListTypes,
} from "./components/List/List";
export { default as Logo } from "./components/Logo/Logo";
export type { LogoNames, LogoProps, LogoSizes } from "./components/Logo/Logo";
export { default as MatchMedia } from "../src/__tests__/mediaMatchMock";
export { default as Menu } from "./components/Menu/Menu";
export type {
ActionItem,
DividerItem,
GroupItem,
ListItemsData,
MenuProps,
} from "./components/Menu/Menu";
export { ModalTrigger, useModal } from "./components/Modal/Modal";
export type {
BaseModalProps,
ConfirmationModalProps,
DefaultModalProps,
ModalProps,
ModalTypeProps,
} from "./components/Modal/Modal";
export { default as MultiSelect } from "./components/MultiSelect/MultiSelect";
export type {
MultiSelectItem,
MultiSelectListOverflowTypes,
MultiSelectProps,
MultiSelectWidths,
SelectedItems,
} from "./components/MultiSelect/MultiSelect";
export { default as MultiSelectGroup } from "./components/MultiSelectGroup/MultiSelectGroup";
export type { MultiSelectGroupProps } from "./components/MultiSelectGroup/MultiSelectGroup";
export { default as NewsletterSignup } from "./components/NewsletterSignup/NewsletterSignup";
export type {
HighlightColorTypes,
NewsletterSignupProps,
NewsletterSignupViewType,
} from "./components/NewsletterSignup/NewsletterSignup";
export { default as Notification } from "./components/Notification/Notification";
export type {
NotificationProps,
NotificationTypes,
} from "./components/Notification/Notification";
export { default as Pagination } from "./components/Pagination/Pagination";
export type { PaginationProps } from "./components/Pagination/Pagination";
export { default as ProgressIndicator } from "./components/ProgressIndicator/ProgressIndicator";
export type {
ProgressIndicatorProps,
ProgressIndicatorSizes,
ProgressIndicatorTypes,
} from "./components/ProgressIndicator/ProgressIndicator";
export { default as Radio } from "./components/Radio/Radio";
export type { RadioProps } from "./components/Radio/Radio";
export { default as RadioGroup } from "./components/RadioGroup/RadioGroup";
export type { RadioGroupProps } from "./components/RadioGroup/RadioGroup";
export { default as SearchBar } from "./components/SearchBar/SearchBar";
export type { SearchBarProps } from "./components/SearchBar/SearchBar";
export { default as Select } from "./components/Select/Select";
export type {
LabelPositions,
SelectProps,
SelectTypes,
} from "./components/Select/Select";
export { default as SimpleGrid } from "./components/Grid/SimpleGrid";
export type { GridGaps, SimpleGridProps } from "./components/Grid/SimpleGrid";
export { default as SkeletonLoader } from "./components/SkeletonLoader/SkeletonLoader";
export type {
SkeletonLoaderImageRatios,
SkeletonLoaderProps,
} from "./components/SkeletonLoader/SkeletonLoader";
export { default as SkipNavigation } from "./components/SkipNavigation/SkipNavigation";
export type { SkipNavigationProps } from "./components/SkipNavigation/SkipNavigation";
export { default as Slider } from "./components/Slider/Slider";
export type { SliderProps } from "./components/Slider/Slider";
export { default as SocialMediaLinks } from "./components/SocialMediaLinks/SocialMediaLinks";
export type { SocialMediaLinkDataProps } from "./components/SocialMediaLinks/SocialMediaLinks";
export { default as StatusBadge } from "./components/StatusBadge/StatusBadge";
export type {
StatusBadgeLevels,
StatusBadgeProps,
StatusBadgeTypes,
} from "./components/StatusBadge/StatusBadge";
export { default as StructuredContent } from "./components/StructuredContent/StructuredContent";
export type {
StructuredContentImagePosition,
StructuredContentProps,
} from "./components/StructuredContent/StructuredContent";
export { default as StyledList } from "./components/StyledList/StyledList";
export type {
StyledListProps,
StyledListTextSizes,
} from "./components/StyledList/StyledList";
export {
default as SubNav,
SubNavButton,
SubNavLink,
} from "./components/SubNav/SubNav";
export { default as Table } from "./components/Table/Table";
export type { TableBodyTextSizes, TableProps } from "./components/Table/Table";
export {
default as Tabs,
TabList,
Tab,
TabPanels,
TabPanel,
} from "./components/Tabs/Tabs";
export type { TabsDataProps, TabsProps } from "./components/Tabs/Tabs";
export { default as TagSet } from "./components/TagSet/TagSet";
export type { TagSetProps, TagSetTypeProps } from "./components/TagSet/TagSet";
export type {
TagSetExploreDataProps,
TagSetExploreProps,
} from "./components/TagSet/TagSetExplore";
export type {
TagSetFilterDataProps,
TagSetFilterProps,
} from "./components/TagSet/TagSetFilter";
export {
TemplateAppContainer,
Template,
TemplateAboveHeader,
TemplateHeader,
TemplateBreakout,
TemplateContent,
TemplateContentTop,
TemplateContentPrimary,
TemplateContentSidebar,
TemplateFooter,
} from "./components/Template/Template";
export type {
TemplateAppContainerProps,
TemplateProps,
TemplateContentProps,
TemplateFooterProps,
TemplateHeaderProps,
TemplateSidebarProps,
} from "./components/Template/Template";
export { default as Text } from "./components/Text/Text";
export type { TextProps, TextSizes } from "./components/Text/Text";
export { default as TextInput } from "./components/TextInput/TextInput";
export type {
AutoCompleteValues,
InputProps,
TextInputRefType,
TextInputTypes,
} from "./components/TextInput/TextInput";
export { default as Toggle } from "./components/Toggle/Toggle";
export type { ToggleProps, ToggleSizes } from "./components/Toggle/Toggle";
export { default as Tooltip } from "./components/Tooltip/Tooltip";
export type { TooltipProps } from "./components/Tooltip/Tooltip";
export { default as useCarouselStyles } from "./hooks/useCarouselStyles";
export { default as useCloseDropDown } from "./hooks/useCloseDropDown";
export { default as useMultiSelect } from "./hooks/useMultiSelect";
export { default as useNYPLBreakpoints } from "./hooks/useNYPLBreakpoints";
export { default as useNYPLTheme } from "./hooks/useNYPLTheme";
export { default as useWindowSize } from "./hooks/useWindowSize";
export { default as useScrollFadeStyles } from "./hooks/useScrollFadeStyles";
export { default as VideoPlayer } from "./components/VideoPlayer/VideoPlayer";
export type {
VideoPlayerAspectRatios,
VideoPlayerProps,
VideoPlayerTypes,
} from "./components/VideoPlayer/VideoPlayer";