@nypl/design-system-react-components 0.26.0 → 0.28.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.
Files changed (306) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/components/Accordion/Accordion.d.ts +1 -1
  3. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -5
  4. package/dist/components/Button/Button.d.ts +2 -10
  5. package/dist/components/ButtonGroup/ButtonGroup.d.ts +22 -0
  6. package/dist/components/Card/Card.d.ts +2 -2
  7. package/dist/components/Checkbox/Checkbox.d.ts +10 -8
  8. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  9. package/dist/components/DatePicker/DatePicker.d.ts +1 -1
  10. package/dist/components/Form/Form.d.ts +2 -2
  11. package/dist/components/Grid/SimpleGrid.d.ts +6 -3
  12. package/dist/components/Heading/Heading.d.ts +2 -5
  13. package/dist/components/HelperErrorText/HelperErrorText.d.ts +1 -5
  14. package/dist/components/Hero/Hero.d.ts +13 -9
  15. package/dist/components/Icons/Icon.d.ts +6 -5
  16. package/dist/components/Icons/IconSvgs.d.ts +21 -21
  17. package/dist/components/Image/Image.d.ts +8 -5
  18. package/dist/components/Link/Link.d.ts +1 -9
  19. package/dist/components/List/List.d.ts +7 -11
  20. package/dist/components/Logo/Logo.d.ts +2 -5
  21. package/dist/components/Logo/LogoSvgs.d.ts +39 -39
  22. package/dist/components/Modal/Modal.d.ts +28 -8
  23. package/dist/components/Notification/Notification.d.ts +1 -1
  24. package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +2 -1
  25. package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
  26. package/dist/components/SearchBar/SearchBar.d.ts +3 -2
  27. package/dist/components/Select/Select.d.ts +2 -5
  28. package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +4 -4
  29. package/dist/components/SkipNavigation/SkipNavigation.d.ts +17 -0
  30. package/dist/components/StatusBadge/StatusBadge.d.ts +2 -3
  31. package/dist/components/StructuredContent/StructuredContent.d.ts +2 -2
  32. package/dist/components/Table/Table.d.ts +1 -1
  33. package/dist/components/Template/Template.d.ts +2 -0
  34. package/dist/components/Text/Text.d.ts +1 -1
  35. package/dist/components/TextInput/TextInput.d.ts +21 -9
  36. package/dist/components/Toggle/Toggle.d.ts +1 -5
  37. package/dist/components/VideoPlayer/VideoPlayer.d.ts +2 -1
  38. package/dist/design-system-react-components.cjs.development.js +977 -1213
  39. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  40. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  41. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  42. package/dist/design-system-react-components.esm.js +976 -1276
  43. package/dist/design-system-react-components.esm.js.map +1 -1
  44. package/dist/helpers/types.d.ts +1 -0
  45. package/dist/index.d.ts +27 -48
  46. package/dist/styles.css +1 -1
  47. package/dist/theme/components/buttonGroup.d.ts +11 -0
  48. package/dist/theme/components/card.d.ts +104 -8
  49. package/dist/theme/components/componentWrapper.d.ts +4 -3
  50. package/dist/theme/components/customTable.d.ts +11 -14
  51. package/dist/theme/components/fieldset.d.ts +4 -3
  52. package/dist/theme/components/helperErrorText.d.ts +4 -3
  53. package/dist/theme/components/hero.d.ts +1 -1
  54. package/dist/theme/components/horizontalRule.d.ts +4 -3
  55. package/dist/theme/components/icon.d.ts +47743 -1
  56. package/dist/theme/components/image.d.ts +563 -10
  57. package/dist/theme/components/label.d.ts +4 -3
  58. package/dist/theme/components/list.d.ts +6 -7
  59. package/dist/theme/components/logo.d.ts +474 -1
  60. package/dist/theme/components/notification.d.ts +20 -16
  61. package/dist/theme/components/progressIndicator.d.ts +6 -4
  62. package/dist/theme/components/select.d.ts +4 -10
  63. package/dist/theme/components/skeletonLoader.d.ts +14 -10
  64. package/dist/theme/components/skipNavigation.d.ts +22 -0
  65. package/dist/theme/components/slider.d.ts +7 -6
  66. package/dist/theme/components/structuredContent.d.ts +10 -9
  67. package/dist/theme/components/text.d.ts +7 -1
  68. package/dist/theme/components/toggle.d.ts +6 -4
  69. package/dist/theme/provider.d.ts +2 -4
  70. package/dist/utils/componentCategories.d.ts +1 -1
  71. package/dist/utils/interfaces.d.ts +5 -0
  72. package/dist/utils/utils.d.ts +2 -18
  73. package/package.json +15 -16
  74. package/src/__tests__/setup.ts +3 -3
  75. package/src/__tests__/utils/utils.test.ts +1 -23
  76. package/src/components/AccessibilityGuide/SkipNavigation.stories.mdx +22 -14
  77. package/src/components/Accordion/Accordion.stories.mdx +43 -44
  78. package/src/components/Accordion/Accordion.test.tsx +5 -13
  79. package/src/components/Accordion/Accordion.tsx +14 -18
  80. package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +6 -6
  81. package/src/components/Autosuggest/Autosuggest.stories.mdx +1 -1
  82. package/src/components/Autosuggest/Autosuggest.stories.tsx +23 -25
  83. package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +21 -37
  84. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +4 -17
  85. package/src/components/Breadcrumbs/Breadcrumbs.tsx +18 -21
  86. package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +1 -100
  87. package/src/components/Button/Button.stories.mdx +89 -126
  88. package/src/components/Button/Button.test.tsx +16 -30
  89. package/src/components/Button/Button.tsx +14 -20
  90. package/src/components/ButtonGroup/ButtonGroup.stories.mdx +147 -0
  91. package/src/components/ButtonGroup/ButtonGroup.test.tsx +141 -0
  92. package/src/components/ButtonGroup/ButtonGroup.tsx +99 -0
  93. package/src/components/ButtonGroup/__snapshots__/ButtonGroup.test.tsx.snap +117 -0
  94. package/src/components/Card/Card.stories.mdx +143 -177
  95. package/src/components/Card/Card.test.tsx +36 -97
  96. package/src/components/Card/Card.tsx +78 -74
  97. package/src/components/Card/__snapshots__/Card.test.tsx.snap +1 -1
  98. package/src/components/Chakra/Box.stories.mdx +2 -6
  99. package/src/components/Chakra/Center.stories.mdx +5 -23
  100. package/src/components/Chakra/Flex.stories.mdx +4 -6
  101. package/src/components/Chakra/Stack.stories.mdx +9 -10
  102. package/src/components/Checkbox/Checkbox.stories.mdx +1 -1
  103. package/src/components/Checkbox/Checkbox.test.tsx +2 -2
  104. package/src/components/Checkbox/Checkbox.tsx +20 -13
  105. package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +9 -9
  106. package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +6 -17
  107. package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +1 -7
  108. package/src/components/CheckboxGroup/CheckboxGroup.tsx +33 -29
  109. package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +24 -35
  110. package/src/components/ComponentWrapper/ComponentWrapper.tsx +3 -10
  111. package/src/components/DatePicker/DatePicker.stories.mdx +23 -37
  112. package/src/components/DatePicker/DatePicker.test.tsx +21 -19
  113. package/src/components/DatePicker/DatePicker.tsx +57 -49
  114. package/src/components/Form/Form.stories.mdx +46 -31
  115. package/src/components/Form/Form.test.tsx +1 -18
  116. package/src/components/Form/Form.tsx +7 -7
  117. package/src/components/Grid/SimpleGrid.stories.mdx +73 -49
  118. package/src/components/Grid/SimpleGrid.test.tsx +7 -9
  119. package/src/components/Grid/SimpleGrid.tsx +14 -11
  120. package/src/components/Heading/Heading.stories.mdx +27 -72
  121. package/src/components/Heading/Heading.test.tsx +18 -44
  122. package/src/components/Heading/Heading.tsx +7 -10
  123. package/src/components/HelperErrorText/HelperErrorText.stories.mdx +1 -3
  124. package/src/components/HelperErrorText/HelperErrorText.tsx +1 -5
  125. package/src/components/Hero/Hero.stories.mdx +219 -216
  126. package/src/components/Hero/Hero.test.tsx +107 -223
  127. package/src/components/Hero/Hero.tsx +63 -61
  128. package/src/components/Icons/Icon.stories.mdx +172 -118
  129. package/src/components/Icons/Icon.test.tsx +8 -16
  130. package/src/components/Icons/Icon.tsx +75 -29
  131. package/src/components/Icons/IconSvgs.tsx +42 -42
  132. package/src/components/Image/Image.stories.mdx +45 -132
  133. package/src/components/Image/Image.test.tsx +16 -31
  134. package/src/components/Image/Image.tsx +28 -12
  135. package/src/components/Link/Link.stories.mdx +30 -94
  136. package/src/components/Link/Link.test.tsx +25 -75
  137. package/src/components/Link/Link.tsx +43 -56
  138. package/src/components/Link/__snapshots__/Link.test.tsx.snap +1 -2
  139. package/src/components/List/List.stories.mdx +20 -31
  140. package/src/components/List/List.test.tsx +24 -43
  141. package/src/components/List/List.tsx +25 -36
  142. package/src/components/Logo/Logo.stories.mdx +94 -50
  143. package/src/components/Logo/Logo.test.tsx +10 -19
  144. package/src/components/Logo/Logo.tsx +50 -17
  145. package/src/components/Logo/LogoSvgs.tsx +78 -78
  146. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +4 -4
  147. package/src/components/Modal/Modal.stories.mdx +245 -139
  148. package/src/components/Modal/Modal.test.tsx +147 -10
  149. package/src/components/Modal/Modal.tsx +140 -20
  150. package/src/components/Modal/__snapshots__/Modal.test.tsx.snap +25 -0
  151. package/src/components/Notification/Notification.stories.mdx +10 -28
  152. package/src/components/Notification/Notification.test.tsx +9 -12
  153. package/src/components/Notification/Notification.tsx +34 -37
  154. package/src/components/Pagination/Pagination.stories.mdx +3 -4
  155. package/src/components/Pagination/Pagination.tsx +15 -10
  156. package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +27 -53
  157. package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +9 -10
  158. package/src/components/ProgressIndicator/ProgressIndicator.tsx +17 -21
  159. package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +0 -10
  160. package/src/components/Radio/Radio.stories.mdx +1 -1
  161. package/src/components/Radio/Radio.tsx +9 -6
  162. package/src/components/RadioGroup/RadioGroup.stories.mdx +15 -16
  163. package/src/components/RadioGroup/RadioGroup.test.tsx +2 -8
  164. package/src/components/RadioGroup/RadioGroup.tsx +28 -24
  165. package/src/components/SearchBar/SearchBar.stories.mdx +1 -1
  166. package/src/components/SearchBar/SearchBar.test.tsx +1 -1
  167. package/src/components/SearchBar/SearchBar.tsx +14 -22
  168. package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +1 -13
  169. package/src/components/Select/Select.stories.mdx +10 -25
  170. package/src/components/Select/Select.test.tsx +6 -7
  171. package/src/components/Select/Select.tsx +28 -35
  172. package/src/components/Select/__snapshots__/Select.test.tsx.snap +24 -24
  173. package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +17 -56
  174. package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +7 -21
  175. package/src/components/SkeletonLoader/SkeletonLoader.tsx +9 -8
  176. package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +33 -33
  177. package/src/components/SkipNavigation/SkipNavigation.stories.mdx +90 -0
  178. package/src/components/SkipNavigation/SkipNavigation.test.tsx +63 -0
  179. package/src/components/SkipNavigation/SkipNavigation.tsx +51 -0
  180. package/src/components/SkipNavigation/__snapshots__/SkipNavigation.test.tsx.snap +130 -0
  181. package/src/components/Slider/Slider.stories.mdx +19 -53
  182. package/src/components/Slider/Slider.test.tsx +2 -2
  183. package/src/components/Slider/Slider.tsx +10 -12
  184. package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +2 -9
  185. package/src/components/StatusBadge/StatusBadge.stories.mdx +6 -21
  186. package/src/components/StatusBadge/StatusBadge.test.tsx +2 -3
  187. package/src/components/StatusBadge/StatusBadge.tsx +3 -10
  188. package/src/components/StructuredContent/StructuredContent.stories.mdx +30 -58
  189. package/src/components/StructuredContent/StructuredContent.test.tsx +42 -44
  190. package/src/components/StructuredContent/StructuredContent.tsx +9 -18
  191. package/src/components/StyleGuide/Bidirectionality.stories.mdx +9 -23
  192. package/src/components/StyleGuide/Buttons.stories.mdx +62 -62
  193. package/src/components/StyleGuide/ColorCard.tsx +2 -4
  194. package/src/components/StyleGuide/Colors.stories.mdx +7 -8
  195. package/src/components/StyleGuide/DesignTokens.stories.mdx +5 -7
  196. package/src/components/StyleGuide/Forms.stories.mdx +0 -1
  197. package/src/components/StyleGuide/Iconography.stories.mdx +59 -77
  198. package/src/components/StyleGuide/Spacing.stories.mdx +0 -1
  199. package/src/components/StyleGuide/Typography.stories.mdx +15 -18
  200. package/src/components/Table/Table.stories.mdx +85 -1
  201. package/src/components/Table/Table.test.tsx +57 -1
  202. package/src/components/Table/Table.tsx +7 -4
  203. package/src/components/Table/__snapshots__/Table.test.tsx.snap +121 -0
  204. package/src/components/Tabs/Tabs.stories.mdx +1 -1
  205. package/src/components/Tabs/Tabs.test.tsx +2 -2
  206. package/src/components/Tabs/Tabs.tsx +26 -27
  207. package/src/components/Template/Template.stories.mdx +49 -54
  208. package/src/components/Template/Template.tsx +9 -3
  209. package/src/components/Text/Text.stories.mdx +5 -11
  210. package/src/components/Text/Text.test.tsx +3 -6
  211. package/src/components/Text/Text.tsx +3 -5
  212. package/src/components/TextInput/TextInput.stories.mdx +10 -22
  213. package/src/components/TextInput/TextInput.test.tsx +32 -62
  214. package/src/components/TextInput/TextInput.tsx +61 -30
  215. package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +1 -0
  216. package/src/components/Toggle/Toggle.stories.mdx +5 -16
  217. package/src/components/Toggle/Toggle.test.tsx +2 -3
  218. package/src/components/Toggle/Toggle.tsx +9 -10
  219. package/src/components/VideoPlayer/VideoPlayer.stories.mdx +13 -29
  220. package/src/components/VideoPlayer/VideoPlayer.test.tsx +18 -23
  221. package/src/components/VideoPlayer/VideoPlayer.tsx +13 -10
  222. package/src/docs/Chakra.stories.mdx +14 -11
  223. package/src/docs/Welcome.stories.mdx +23 -43
  224. package/src/helpers/types.ts +1 -0
  225. package/src/hooks/tests/useNYPLTheme.test.tsx +1 -1
  226. package/src/hooks/useNYPLTheme.stories.mdx +3 -6
  227. package/src/index.ts +52 -46
  228. package/src/styles.scss +0 -1
  229. package/src/theme/components/buttonGroup.ts +10 -0
  230. package/src/theme/components/card.ts +50 -15
  231. package/src/theme/components/componentWrapper.ts +5 -1
  232. package/src/theme/components/customTable.ts +8 -2
  233. package/src/theme/components/fieldset.ts +5 -1
  234. package/src/theme/components/helperErrorText.ts +5 -1
  235. package/src/theme/components/hero.ts +2 -2
  236. package/src/theme/components/horizontalRule.ts +5 -1
  237. package/src/theme/components/icon.ts +7 -1
  238. package/src/theme/components/image.ts +14 -3
  239. package/src/theme/components/label.ts +5 -1
  240. package/src/theme/components/list.ts +8 -2
  241. package/src/theme/components/logo.ts +5 -1
  242. package/src/theme/components/notification.ts +38 -14
  243. package/src/theme/components/progressIndicator.ts +10 -5
  244. package/src/theme/components/select.ts +5 -6
  245. package/src/theme/components/skeletonLoader.ts +8 -2
  246. package/src/theme/components/skipNavigation.ts +26 -0
  247. package/src/theme/components/slider.ts +13 -1
  248. package/src/theme/components/structuredContent.ts +11 -1
  249. package/src/theme/components/text.ts +12 -5
  250. package/src/theme/components/toggle.ts +9 -3
  251. package/src/theme/index.ts +4 -0
  252. package/src/theme/provider.tsx +1 -1
  253. package/src/utils/componentCategories.ts +13 -5
  254. package/src/utils/interfaces.ts +5 -0
  255. package/src/utils/utils.ts +2 -32
  256. package/dist/components/Accordion/AccordionTypes.d.ts +0 -5
  257. package/dist/components/Breadcrumbs/BreadcrumbsTypes.d.ts +0 -8
  258. package/dist/components/Button/ButtonTypes.d.ts +0 -8
  259. package/dist/components/DatePicker/DatePickerTypes.d.ts +0 -5
  260. package/dist/components/Form/FormTypes.d.ts +0 -2
  261. package/dist/components/Grid/GridTypes.d.ts +0 -9
  262. package/dist/components/Heading/HeadingTypes.d.ts +0 -14
  263. package/dist/components/Hero/HeroTypes.d.ts +0 -12
  264. package/dist/components/Icons/IconTypes.d.ts +0 -77
  265. package/dist/components/Image/ImageTypes.d.ts +0 -22
  266. package/dist/components/Link/LinkTypes.d.ts +0 -8
  267. package/dist/components/List/ListTypes.d.ts +0 -5
  268. package/dist/components/Logo/LogoTypes.d.ts +0 -54
  269. package/dist/components/Notification/NotificationTypes.d.ts +0 -5
  270. package/dist/components/ProgressIndicator/ProgressIndicatorTypes.d.ts +0 -8
  271. package/dist/components/Select/SelectTypes.d.ts +0 -8
  272. package/dist/components/SkeletonLoader/SkeletonLoaderTypes.d.ts +0 -5
  273. package/dist/components/StatusBadge/StatusBadgeTypes.d.ts +0 -5
  274. package/dist/components/StructuredContent/StructuredContentTypes.d.ts +0 -5
  275. package/dist/components/Text/TextTypes.d.ts +0 -6
  276. package/dist/components/TextInput/TextInputTypes.d.ts +0 -25
  277. package/dist/components/Toggle/ToggleTypes.d.ts +0 -4
  278. package/dist/components/VideoPlayer/VideoPlayerTypes.d.ts +0 -9
  279. package/dist/helpers/enums.d.ts +0 -4
  280. package/dist/utils/siteSections.d.ts +0 -2
  281. package/src/components/Accordion/AccordionTypes.tsx +0 -5
  282. package/src/components/Breadcrumbs/BreadcrumbsTypes.tsx +0 -8
  283. package/src/components/Button/ButtonTypes.tsx +0 -8
  284. package/src/components/DatePicker/DatePickerTypes.tsx +0 -5
  285. package/src/components/Form/FormTypes.tsx +0 -3
  286. package/src/components/Grid/GridTypes.tsx +0 -9
  287. package/src/components/Heading/HeadingTypes.tsx +0 -15
  288. package/src/components/Hero/HeroTypes.tsx +0 -20
  289. package/src/components/Icons/IconTypes.tsx +0 -83
  290. package/src/components/Image/ImageTypes.ts +0 -24
  291. package/src/components/Link/LinkTypes.tsx +0 -8
  292. package/src/components/List/ListTypes.tsx +0 -5
  293. package/src/components/Logo/LogoTypes.tsx +0 -56
  294. package/src/components/Modal/_Modal.scss +0 -18
  295. package/src/components/Notification/NotificationTypes.tsx +0 -5
  296. package/src/components/ProgressIndicator/ProgressIndicatorTypes.ts +0 -8
  297. package/src/components/Select/SelectTypes.tsx +0 -10
  298. package/src/components/SkeletonLoader/SkeletonLoaderTypes.tsx +0 -5
  299. package/src/components/StatusBadge/StatusBadgeTypes.tsx +0 -5
  300. package/src/components/StructuredContent/StructuredContentTypes.tsx +0 -5
  301. package/src/components/Text/TextTypes.tsx +0 -6
  302. package/src/components/TextInput/TextInputTypes.tsx +0 -48
  303. package/src/components/Toggle/ToggleTypes.tsx +0 -4
  304. package/src/components/VideoPlayer/VideoPlayerTypes.tsx +0 -10
  305. package/src/helpers/enums.ts +0 -4
  306. package/src/utils/siteSections.ts +0 -10
@@ -1,54 +0,0 @@
1
- export declare enum LogoColors {
2
- Default = "",
3
- UiBlack = "ui.black",
4
- UiWhite = "ui.white"
5
- }
6
- export declare enum LogoSizes {
7
- Default = "default",
8
- ExtraExtraSmall = "xxsmall",
9
- ExtraSmall = "xsmall",
10
- Small = "small",
11
- Medium = "medium",
12
- Large = "large"
13
- }
14
- export declare enum LogoNames {
15
- BrooklynPublicLibraryBlack = "logo_bpl_black",
16
- BrooklynPublicLibraryWhite = "logo_bpl_white",
17
- CleverColor = "logo_clever_color",
18
- CleverWhite = "logo_clever_white",
19
- FirstBookColor = "logo_firstbook_color",
20
- FirstBookColorNegative = "logo_firstbook_color_negative",
21
- LPAColor = "logo_lpa_color",
22
- LPABlack = "logo_lpa_black",
23
- LPAWhite = "logo_lpa_white",
24
- MyLibraryNYCBlack = "logo_mln_black",
25
- MyLibraryNYCWhite = "logo_mln_white",
26
- NYPLBlack = "logo_nypl_full_black",
27
- NYPLWhite = "logo_nypl_full_white",
28
- NYPLLionBlack = "logo_nypl_lion_black",
29
- NYPLLionWhite = "logo_nypl_lion_white",
30
- OpenEBooksColor = "logo_openebooks_color",
31
- OpenEBooksNegative = "logo_openebooks_negative",
32
- OpenEBooksWithTextColor = "logo_openebooks_wtext_color",
33
- OpenEBooksWithTextNegative = "logo_openebooks_wtext_negative",
34
- QueensPublicLibraryColor = "logo_qpl_color",
35
- QueensPublicLibraryBlack = "logo_qpl_black",
36
- QueensPublicLibraryWhite = "logo_qpl_white",
37
- QueensPublicLibraryAltBlack = "logo_qpl_alt_black",
38
- QueensPublicLibraryAltWhite = "logo_qpl_alt_white",
39
- ReservoirIconColor = "logo_reservoir_icon_color",
40
- ReservoirVerticalColor = "logo_reservoir_vertical_color",
41
- SchomburgColor = "logo_schomburg_color",
42
- SchomburgBlack = "logo_schomburg_black",
43
- SchomburgWhite = "logo_schomburg_white",
44
- SchomburgCircleColor = "logo_schomburg_circle_color",
45
- SchomburgCircleBlack = "logo_schomburg_circle_black",
46
- SchomburgCircleWhite = "logo_schomburg_circle_white",
47
- SimplyEColor = "logo_simplye_color",
48
- SimplyEBlack = "logo_simplye_black",
49
- SimplyEWhite = "logo_simplye_white",
50
- SNFLBlack = "logo_snfl_black",
51
- SNFLWhite = "logo_snfl_white",
52
- TreasuresColor = "logo_treasures_color",
53
- TreasuresColorNegative = "logo_treasures_color_negative"
54
- }
@@ -1,5 +0,0 @@
1
- export declare enum NotificationTypes {
2
- Standard = "standard",
3
- Announcement = "announcement",
4
- Warning = "warning"
5
- }
@@ -1,8 +0,0 @@
1
- export declare enum ProgressIndicatorSizes {
2
- Default = "default",
3
- Small = "small"
4
- }
5
- export declare enum ProgressIndicatorTypes {
6
- Circular = "circular",
7
- Linear = "linear"
8
- }
@@ -1,8 +0,0 @@
1
- export declare enum SelectTypes {
2
- Default = "default",
3
- SearchBar = "searchbar"
4
- }
5
- export declare enum LabelPositions {
6
- Default = "default",
7
- Inline = "inline"
8
- }
@@ -1,5 +0,0 @@
1
- export declare enum SkeletonLoaderImageRatios {
2
- Landscape = "landscape",
3
- Portrait = "portrait",
4
- Square = "square"
5
- }
@@ -1,5 +0,0 @@
1
- export declare enum StatusBadgeTypes {
2
- Low = "low",
3
- Medium = "medium",
4
- High = "high"
5
- }
@@ -1,5 +0,0 @@
1
- export declare enum StructuredContentImagePosition {
2
- Left = "left",
3
- Right = "right",
4
- Center = "center"
5
- }
@@ -1,6 +0,0 @@
1
- export declare enum TextSizes {
2
- Default = "default",
3
- Caption = "caption",
4
- Tag = "tag",
5
- Mini = "mini"
6
- }
@@ -1,25 +0,0 @@
1
- export declare enum TextInputTypes {
2
- email = "email",
3
- hidden = "hidden",
4
- number = "number",
5
- password = "password",
6
- text = "text",
7
- textarea = "textarea",
8
- tel = "tel",
9
- url = "url"
10
- }
11
- export declare enum TextInputFormats {
12
- email = "jdoe@domain.com",
13
- hidden = "",
14
- number = "",
15
- password = "",
16
- text = "",
17
- tel = "(123) 123-1234",
18
- textarea = "",
19
- url = "https://domain.com"
20
- }
21
- export declare enum TextInputVariants {
22
- Default = "default",
23
- SearchBar = "searchBar",
24
- SearchBarSelect = "searchBarSelect"
25
- }
@@ -1,4 +0,0 @@
1
- export declare enum ToggleSizes {
2
- Default = "default",
3
- Small = "small"
4
- }
@@ -1,9 +0,0 @@
1
- export declare enum VideoPlayerTypes {
2
- Vimeo = "vimeo",
3
- YouTube = "youtube"
4
- }
5
- export declare enum VideoPlayerAspectRatios {
6
- FourByThree = "fourByThree",
7
- SixteenByNine = "sixteenByNine",
8
- Square = "square"
9
- }
@@ -1,4 +0,0 @@
1
- export declare enum LayoutTypes {
2
- Column = "column",
3
- Row = "row"
4
- }
@@ -1,2 +0,0 @@
1
- declare const sections: string[];
2
- export default sections;
@@ -1,5 +0,0 @@
1
- export enum AccordionTypes {
2
- Default = "default",
3
- Warning = "warning",
4
- Error = "error",
5
- }
@@ -1,8 +0,0 @@
1
- export enum BreadcrumbsTypes {
2
- Blogs = "blogs",
3
- BooksAndMore = "booksAndMore",
4
- Education = "education",
5
- Locations = "locations",
6
- Research = "research",
7
- WhatsOn = "whatsOn",
8
- }
@@ -1,8 +0,0 @@
1
- export enum ButtonTypes {
2
- Primary = "primary",
3
- Secondary = "secondary",
4
- Callout = "callout",
5
- Pill = "pill",
6
- Link = "link",
7
- NoBrand = "noBrand",
8
- }
@@ -1,5 +0,0 @@
1
- export enum DatePickerTypes {
2
- Full = "full",
3
- Month = "month",
4
- Year = "year",
5
- }
@@ -1,3 +0,0 @@
1
- import { GridGaps as FormGaps } from "../Grid/GridTypes";
2
-
3
- export { FormGaps };
@@ -1,9 +0,0 @@
1
- export enum GridGaps {
2
- ExtraExtraSmall = "grid.xxs",
3
- ExtraSmall = "grid.xs",
4
- Small = "grid.s",
5
- Medium = "grid.m",
6
- Large = "grid.l",
7
- ExtraLarge = "grid.xl",
8
- ExtraExtraLarge = "grid.xxl",
9
- }
@@ -1,15 +0,0 @@
1
- export enum HeadingSizes {
2
- Primary = "primary",
3
- Secondary = "secondary",
4
- Tertiary = "tertiary",
5
- Callout = "callout",
6
- }
7
-
8
- export enum HeadingLevels {
9
- One = "one",
10
- Two = "two",
11
- Three = "three",
12
- Four = "four",
13
- Five = "five",
14
- Six = "six",
15
- }
@@ -1,20 +0,0 @@
1
- export enum HeroTypes {
2
- Primary = "primary",
3
- Secondary = "secondary",
4
- SecondaryBooksAndMore = "secondaryBooksAndMore",
5
- SecondaryLocations = "secondaryLocations",
6
- SecondaryResearch = "secondaryResearch",
7
- SecondaryWhatsOn = "secondaryWhatsOn",
8
- Tertiary = "tertiary",
9
- Campaign = "campaign",
10
- FiftyFifty = "fiftyfifty",
11
- }
12
-
13
- // Only used for internal purposes.
14
- export const HeroSecondaryTypes = [
15
- HeroTypes.Secondary,
16
- HeroTypes.SecondaryBooksAndMore,
17
- HeroTypes.SecondaryLocations,
18
- HeroTypes.SecondaryResearch,
19
- HeroTypes.SecondaryWhatsOn,
20
- ];
@@ -1,83 +0,0 @@
1
- /* eslint-disable camelcase */
2
- export enum IconAlign {
3
- Left = "left",
4
- Right = "right",
5
- None = "none",
6
- }
7
-
8
- export enum IconTypes {
9
- Default = "default",
10
- Breadcrumbs = "breadcrumbs",
11
- }
12
-
13
- export enum IconRotationTypes {
14
- Rotate0 = "rotate0",
15
- Rotate90 = "rotate90",
16
- Rotate180 = "rotate180",
17
- Rotate270 = "rotate270",
18
- }
19
-
20
- export enum IconColors {
21
- UiBlack = "ui.black",
22
- UiWhite = "ui.white",
23
- BrandPrimary = "brand.primary",
24
- BrandSecondary = "brand.secondary",
25
- SectionBlogsPrimary = "section.blogs.primary",
26
- SectionBlogsSecondary = "section.blogs.secondary",
27
- SectionBooksAndMorePrimary = "section.books-and-more.primary",
28
- SectionBooksAndMoreSecondary = "section.books-and-more.secondary",
29
- SectionEducationPrimary = "section.education.primary",
30
- SectionEducationSecondary = "section.education.secondary",
31
- SectionLocationsPrimary = "section.locations.primary",
32
- SectionLocationsSecondary = "section.locations.secondary",
33
- SectionResearchPrimary = "section.research.primary",
34
- SectionResearchSecondary = "section.research.secondary",
35
- SectionResearchLibraryLpa = "section.research-library.lpa",
36
- SectionResearchLibrarySchomburg = "section.research-library.schomburg",
37
- SectionResearchLibrarySchwartzman = "section.research-library.schwartzman",
38
- SectionWhatsOnPrimary = "section.whats-on.primary",
39
- SectionWhatsOnSecondary = "section.whats-on.secondary",
40
- }
41
-
42
- export enum IconSizes {
43
- Default = "default",
44
- Small = "small",
45
- Medium = "medium",
46
- Large = "large",
47
- ExtraLarge = "xlarge",
48
- ExtraExtraLarge = "xxlarge",
49
- ExtraExtraExtraLarge = "xxxlarge",
50
- }
51
-
52
- export enum IconNames {
53
- AccessibilityFull = "accessibility_full",
54
- AccessibilityPartial = "accessibility_partial",
55
- ActionCheckCircle = "action_check_circle",
56
- ActionHelpDefault = "action_help_default",
57
- ActionHelpOutline = "action_help_outline",
58
- AlertNotificationImportant = "alert_notification_important",
59
- ActionLaunch = "action_launch",
60
- Arrow = "arrow",
61
- Check = "check",
62
- Clock = "clock",
63
- Close = "close",
64
- Download = "download",
65
- ErrorFilled = "error_filled",
66
- ErrorOutline = "error_outline",
67
- FileTypeAudio = "file_type_audio",
68
- FileTypeDoc = "file_type_doc",
69
- FileTypeGenericDoc = "file_type_generic_doc",
70
- FileTypeImage = "file_type_image",
71
- FileTypePdf = "file_type_pdf",
72
- FileTypeSpreadsheet = "file_type_spreadsheet",
73
- FileTypeVideo = "file_type_video",
74
- Headset = "headset",
75
- Minus = "minus",
76
- Plus = "plus",
77
- Search = "search",
78
- SpeakerNotes = "speaker_notes",
79
- UtilityAccountFilled = "utility_account_filled",
80
- UtilityAccountUnfilled = "utility_account_unfilled",
81
- UtilityHamburger = "utility_hamburger",
82
- UtilitySearch = "utility_search",
83
- }
@@ -1,24 +0,0 @@
1
- export enum ImageRatios {
2
- FourByThree = "fourByThree",
3
- OneByTwo = "oneByTwo",
4
- Original = "original",
5
- SixteenByNine = "sixteenByNine",
6
- Square = "square",
7
- ThreeByFour = "threeByFour",
8
- ThreeByTwo = "threeByTwo",
9
- TwoByOne = "twoByOne",
10
- }
11
-
12
- export enum ImageSizes {
13
- Default = "default",
14
- ExtraExtraSmall = "xxsmall",
15
- ExtraSmall = "xsmall",
16
- Small = "small",
17
- Medium = "medium",
18
- Large = "large",
19
- }
20
-
21
- export enum ImageTypes {
22
- Default = "default",
23
- Circle = "circle",
24
- }
@@ -1,8 +0,0 @@
1
- export enum LinkTypes {
2
- Action = "action",
3
- Backwards = "backwards",
4
- Button = "button",
5
- Default = "default",
6
- External = "external",
7
- Forwards = "forwards",
8
- }
@@ -1,5 +0,0 @@
1
- export enum ListTypes {
2
- Ordered = "ol",
3
- Unordered = "ul",
4
- Description = "dl",
5
- }
@@ -1,56 +0,0 @@
1
- export enum LogoColors {
2
- Default = "",
3
- UiBlack = "ui.black",
4
- UiWhite = "ui.white",
5
- }
6
-
7
- export enum LogoSizes {
8
- Default = "default",
9
- ExtraExtraSmall = "xxsmall",
10
- ExtraSmall = "xsmall",
11
- Small = "small",
12
- Medium = "medium",
13
- Large = "large",
14
- }
15
-
16
- export enum LogoNames {
17
- BrooklynPublicLibraryBlack = "logo_bpl_black",
18
- BrooklynPublicLibraryWhite = "logo_bpl_white",
19
- CleverColor = "logo_clever_color",
20
- CleverWhite = "logo_clever_white",
21
- FirstBookColor = "logo_firstbook_color",
22
- FirstBookColorNegative = "logo_firstbook_color_negative",
23
- LPAColor = "logo_lpa_color",
24
- LPABlack = "logo_lpa_black",
25
- LPAWhite = "logo_lpa_white",
26
- MyLibraryNYCBlack = "logo_mln_black",
27
- MyLibraryNYCWhite = "logo_mln_white",
28
- NYPLBlack = "logo_nypl_full_black",
29
- NYPLWhite = "logo_nypl_full_white",
30
- NYPLLionBlack = "logo_nypl_lion_black",
31
- NYPLLionWhite = "logo_nypl_lion_white",
32
- OpenEBooksColor = "logo_openebooks_color",
33
- OpenEBooksNegative = "logo_openebooks_negative",
34
- OpenEBooksWithTextColor = "logo_openebooks_wtext_color",
35
- OpenEBooksWithTextNegative = "logo_openebooks_wtext_negative",
36
- QueensPublicLibraryColor = "logo_qpl_color",
37
- QueensPublicLibraryBlack = "logo_qpl_black",
38
- QueensPublicLibraryWhite = "logo_qpl_white",
39
- QueensPublicLibraryAltBlack = "logo_qpl_alt_black",
40
- QueensPublicLibraryAltWhite = "logo_qpl_alt_white",
41
- ReservoirIconColor = "logo_reservoir_icon_color",
42
- ReservoirVerticalColor = "logo_reservoir_vertical_color",
43
- SchomburgColor = "logo_schomburg_color",
44
- SchomburgBlack = "logo_schomburg_black",
45
- SchomburgWhite = "logo_schomburg_white",
46
- SchomburgCircleColor = "logo_schomburg_circle_color",
47
- SchomburgCircleBlack = "logo_schomburg_circle_black",
48
- SchomburgCircleWhite = "logo_schomburg_circle_white",
49
- SimplyEColor = "logo_simplye_color",
50
- SimplyEBlack = "logo_simplye_black",
51
- SimplyEWhite = "logo_simplye_white",
52
- SNFLBlack = "logo_snfl_black",
53
- SNFLWhite = "logo_snfl_white",
54
- TreasuresColor = "logo_treasures_color",
55
- TreasuresColorNegative = "logo_treasures_color_negative",
56
- }
@@ -1,18 +0,0 @@
1
- .no-scroll {
2
- overflow: hidden;
3
- position: fixed;
4
- top: -100vh;
5
- }
6
-
7
- .modal {
8
- padding: var(--nypl-space-s);
9
-
10
- background-color: var(--nypl-colors-ui-gray-x-light-warm);
11
- height: 100vh;
12
- left: 0;
13
- overflow-y: auto;
14
- position: fixed;
15
- top: 0;
16
- width: 100vw;
17
- z-index: 999;
18
- }
@@ -1,5 +0,0 @@
1
- export enum NotificationTypes {
2
- Standard = "standard",
3
- Announcement = "announcement",
4
- Warning = "warning",
5
- }
@@ -1,8 +0,0 @@
1
- export enum ProgressIndicatorSizes {
2
- Default = "default",
3
- Small = "small",
4
- }
5
- export enum ProgressIndicatorTypes {
6
- Circular = "circular",
7
- Linear = "linear",
8
- }
@@ -1,10 +0,0 @@
1
- // Only used for internal purposes.
2
- export enum SelectTypes {
3
- Default = "default",
4
- SearchBar = "searchbar",
5
- }
6
-
7
- export enum LabelPositions {
8
- Default = "default",
9
- Inline = "inline",
10
- }
@@ -1,5 +0,0 @@
1
- export enum SkeletonLoaderImageRatios {
2
- Landscape = "landscape",
3
- Portrait = "portrait",
4
- Square = "square",
5
- }
@@ -1,5 +0,0 @@
1
- export enum StatusBadgeTypes {
2
- Low = "low",
3
- Medium = "medium",
4
- High = "high",
5
- }
@@ -1,5 +0,0 @@
1
- export enum StructuredContentImagePosition {
2
- Left = "left",
3
- Right = "right",
4
- Center = "center",
5
- }
@@ -1,6 +0,0 @@
1
- export enum TextSizes {
2
- Default = "default",
3
- Caption = "caption",
4
- Tag = "tag",
5
- Mini = "mini",
6
- }
@@ -1,48 +0,0 @@
1
- // HTML Input types as defined by MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
2
- export enum TextInputTypes {
3
- email = "email",
4
- hidden = "hidden",
5
- // eslint-disable-next-line id-blacklist
6
- number = "number",
7
- password = "password",
8
- text = "text",
9
- textarea = "textarea",
10
- tel = "tel",
11
- url = "url",
12
- }
13
-
14
- // Only used internally in `TextInput`.
15
- export enum TextInputFormats {
16
- email = "jdoe@domain.com",
17
- hidden = "",
18
- // eslint-disable-next-line id-blacklist
19
- number = "",
20
- password = "",
21
- text = "",
22
- tel = "(123) 123-1234",
23
- textarea = "",
24
- url = "https://domain.com",
25
- }
26
-
27
- // Only used internally in `TextInput` and `SearchBar`.
28
- export enum TextInputVariants {
29
- Default = "default",
30
- SearchBar = "searchBar",
31
- SearchBarSelect = "searchBarSelect",
32
- }
33
-
34
- /*
35
- export enum TextInputPatterns {
36
- // eslint-disable-next-line prettier/prettier
37
- email = "[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,}$",
38
- hidden = "",
39
- // eslint-disable-next-line id-blacklist
40
- number = "",
41
- password = "",
42
- text = "",
43
- // eslint-disable-next-line prettier/prettier
44
- tel = "([0-9]{3}) [0-9]{3}-[0-9]{4}",
45
- textarea = "textarea",
46
- url = "https?://.+",
47
- }
48
- */
@@ -1,4 +0,0 @@
1
- export enum ToggleSizes {
2
- Default = "default",
3
- Small = "small",
4
- }
@@ -1,10 +0,0 @@
1
- export enum VideoPlayerTypes {
2
- Vimeo = "vimeo",
3
- YouTube = "youtube",
4
- }
5
-
6
- export enum VideoPlayerAspectRatios {
7
- FourByThree = "fourByThree",
8
- SixteenByNine = "sixteenByNine",
9
- Square = "square",
10
- }
@@ -1,4 +0,0 @@
1
- export enum LayoutTypes {
2
- Column = "column",
3
- Row = "row",
4
- }
@@ -1,10 +0,0 @@
1
- // NYPL site sections. See Figma: https://www.figma.com/file/qShodlfNCJHb8n03IFyApM/Main?node-id=15454%3A47007
2
-
3
- const sections = [
4
- "nypl--books-and-more",
5
- "nypl--locations",
6
- "nypl--research",
7
- "nypl--whats-on",
8
- ];
9
-
10
- export default sections;