@nypl/design-system-react-components 0.27.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 (298) hide show
  1. package/CHANGELOG.md +29 -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/Notification/Notification.d.ts +1 -1
  23. package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +2 -1
  24. package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
  25. package/dist/components/SearchBar/SearchBar.d.ts +3 -2
  26. package/dist/components/Select/Select.d.ts +2 -5
  27. package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +4 -4
  28. package/dist/components/SkipNavigation/SkipNavigation.d.ts +17 -0
  29. package/dist/components/StatusBadge/StatusBadge.d.ts +2 -3
  30. package/dist/components/StructuredContent/StructuredContent.d.ts +2 -2
  31. package/dist/components/Table/Table.d.ts +1 -1
  32. package/dist/components/Template/Template.d.ts +2 -0
  33. package/dist/components/Text/Text.d.ts +1 -1
  34. package/dist/components/TextInput/TextInput.d.ts +21 -9
  35. package/dist/components/Toggle/Toggle.d.ts +1 -5
  36. package/dist/components/VideoPlayer/VideoPlayer.d.ts +2 -1
  37. package/dist/design-system-react-components.cjs.development.js +856 -1155
  38. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  39. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  40. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  41. package/dist/design-system-react-components.esm.js +858 -1220
  42. package/dist/design-system-react-components.esm.js.map +1 -1
  43. package/dist/helpers/types.d.ts +1 -0
  44. package/dist/index.d.ts +26 -47
  45. package/dist/theme/components/buttonGroup.d.ts +11 -0
  46. package/dist/theme/components/card.d.ts +104 -8
  47. package/dist/theme/components/componentWrapper.d.ts +4 -3
  48. package/dist/theme/components/customTable.d.ts +11 -14
  49. package/dist/theme/components/fieldset.d.ts +4 -3
  50. package/dist/theme/components/helperErrorText.d.ts +4 -3
  51. package/dist/theme/components/hero.d.ts +1 -1
  52. package/dist/theme/components/horizontalRule.d.ts +4 -3
  53. package/dist/theme/components/icon.d.ts +47743 -1
  54. package/dist/theme/components/image.d.ts +563 -10
  55. package/dist/theme/components/label.d.ts +4 -3
  56. package/dist/theme/components/list.d.ts +6 -7
  57. package/dist/theme/components/logo.d.ts +474 -1
  58. package/dist/theme/components/notification.d.ts +20 -16
  59. package/dist/theme/components/progressIndicator.d.ts +6 -4
  60. package/dist/theme/components/select.d.ts +4 -4
  61. package/dist/theme/components/skeletonLoader.d.ts +14 -10
  62. package/dist/theme/components/skipNavigation.d.ts +22 -0
  63. package/dist/theme/components/slider.d.ts +7 -6
  64. package/dist/theme/components/structuredContent.d.ts +10 -9
  65. package/dist/theme/components/text.d.ts +7 -1
  66. package/dist/theme/components/toggle.d.ts +6 -4
  67. package/dist/theme/provider.d.ts +2 -4
  68. package/dist/utils/componentCategories.d.ts +1 -1
  69. package/dist/utils/interfaces.d.ts +5 -0
  70. package/dist/utils/utils.d.ts +2 -18
  71. package/package.json +2 -2
  72. package/src/__tests__/setup.ts +3 -3
  73. package/src/__tests__/utils/utils.test.ts +1 -23
  74. package/src/components/AccessibilityGuide/SkipNavigation.stories.mdx +22 -14
  75. package/src/components/Accordion/Accordion.stories.mdx +43 -44
  76. package/src/components/Accordion/Accordion.test.tsx +5 -13
  77. package/src/components/Accordion/Accordion.tsx +14 -18
  78. package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +6 -6
  79. package/src/components/Autosuggest/Autosuggest.stories.mdx +1 -1
  80. package/src/components/Autosuggest/Autosuggest.stories.tsx +23 -25
  81. package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +21 -37
  82. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +4 -17
  83. package/src/components/Breadcrumbs/Breadcrumbs.tsx +18 -21
  84. package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +1 -100
  85. package/src/components/Button/Button.stories.mdx +89 -126
  86. package/src/components/Button/Button.test.tsx +16 -30
  87. package/src/components/Button/Button.tsx +14 -20
  88. package/src/components/ButtonGroup/ButtonGroup.stories.mdx +147 -0
  89. package/src/components/ButtonGroup/ButtonGroup.test.tsx +141 -0
  90. package/src/components/ButtonGroup/ButtonGroup.tsx +99 -0
  91. package/src/components/ButtonGroup/__snapshots__/ButtonGroup.test.tsx.snap +117 -0
  92. package/src/components/Card/Card.stories.mdx +143 -177
  93. package/src/components/Card/Card.test.tsx +36 -97
  94. package/src/components/Card/Card.tsx +78 -74
  95. package/src/components/Chakra/Box.stories.mdx +2 -6
  96. package/src/components/Chakra/Center.stories.mdx +5 -23
  97. package/src/components/Chakra/Flex.stories.mdx +4 -6
  98. package/src/components/Chakra/Stack.stories.mdx +9 -10
  99. package/src/components/Checkbox/Checkbox.stories.mdx +1 -1
  100. package/src/components/Checkbox/Checkbox.test.tsx +2 -2
  101. package/src/components/Checkbox/Checkbox.tsx +20 -13
  102. package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +6 -17
  103. package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +1 -7
  104. package/src/components/CheckboxGroup/CheckboxGroup.tsx +33 -29
  105. package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +0 -11
  106. package/src/components/ComponentWrapper/ComponentWrapper.tsx +3 -10
  107. package/src/components/DatePicker/DatePicker.stories.mdx +23 -37
  108. package/src/components/DatePicker/DatePicker.test.tsx +21 -19
  109. package/src/components/DatePicker/DatePicker.tsx +57 -49
  110. package/src/components/Form/Form.stories.mdx +46 -31
  111. package/src/components/Form/Form.test.tsx +1 -18
  112. package/src/components/Form/Form.tsx +7 -7
  113. package/src/components/Grid/SimpleGrid.stories.mdx +73 -49
  114. package/src/components/Grid/SimpleGrid.test.tsx +7 -9
  115. package/src/components/Grid/SimpleGrid.tsx +14 -11
  116. package/src/components/Heading/Heading.stories.mdx +27 -72
  117. package/src/components/Heading/Heading.test.tsx +18 -44
  118. package/src/components/Heading/Heading.tsx +7 -10
  119. package/src/components/HelperErrorText/HelperErrorText.stories.mdx +1 -3
  120. package/src/components/HelperErrorText/HelperErrorText.tsx +1 -5
  121. package/src/components/Hero/Hero.stories.mdx +219 -216
  122. package/src/components/Hero/Hero.test.tsx +107 -223
  123. package/src/components/Hero/Hero.tsx +63 -61
  124. package/src/components/Icons/Icon.stories.mdx +172 -118
  125. package/src/components/Icons/Icon.test.tsx +8 -16
  126. package/src/components/Icons/Icon.tsx +75 -29
  127. package/src/components/Icons/IconSvgs.tsx +42 -42
  128. package/src/components/Image/Image.stories.mdx +45 -132
  129. package/src/components/Image/Image.test.tsx +16 -31
  130. package/src/components/Image/Image.tsx +28 -12
  131. package/src/components/Link/Link.stories.mdx +30 -80
  132. package/src/components/Link/Link.test.tsx +25 -53
  133. package/src/components/Link/Link.tsx +43 -56
  134. package/src/components/Link/__snapshots__/Link.test.tsx.snap +1 -2
  135. package/src/components/List/List.stories.mdx +20 -31
  136. package/src/components/List/List.test.tsx +24 -43
  137. package/src/components/List/List.tsx +25 -36
  138. package/src/components/Logo/Logo.stories.mdx +94 -50
  139. package/src/components/Logo/Logo.test.tsx +10 -19
  140. package/src/components/Logo/Logo.tsx +50 -17
  141. package/src/components/Logo/LogoSvgs.tsx +78 -78
  142. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +4 -4
  143. package/src/components/Modal/Modal.stories.mdx +8 -9
  144. package/src/components/Modal/Modal.test.tsx +5 -10
  145. package/src/components/Modal/Modal.tsx +1 -1
  146. package/src/components/Notification/Notification.stories.mdx +10 -28
  147. package/src/components/Notification/Notification.test.tsx +9 -12
  148. package/src/components/Notification/Notification.tsx +34 -37
  149. package/src/components/Pagination/Pagination.stories.mdx +2 -2
  150. package/src/components/Pagination/Pagination.tsx +15 -10
  151. package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +27 -53
  152. package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +9 -10
  153. package/src/components/ProgressIndicator/ProgressIndicator.tsx +17 -21
  154. package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +0 -10
  155. package/src/components/Radio/Radio.stories.mdx +1 -1
  156. package/src/components/Radio/Radio.tsx +9 -6
  157. package/src/components/RadioGroup/RadioGroup.stories.mdx +15 -16
  158. package/src/components/RadioGroup/RadioGroup.test.tsx +2 -8
  159. package/src/components/RadioGroup/RadioGroup.tsx +28 -24
  160. package/src/components/SearchBar/SearchBar.stories.mdx +1 -1
  161. package/src/components/SearchBar/SearchBar.test.tsx +1 -1
  162. package/src/components/SearchBar/SearchBar.tsx +14 -22
  163. package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +0 -12
  164. package/src/components/Select/Select.stories.mdx +8 -23
  165. package/src/components/Select/Select.test.tsx +6 -7
  166. package/src/components/Select/Select.tsx +13 -26
  167. package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +17 -56
  168. package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +7 -21
  169. package/src/components/SkeletonLoader/SkeletonLoader.tsx +9 -8
  170. package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +33 -33
  171. package/src/components/SkipNavigation/SkipNavigation.stories.mdx +90 -0
  172. package/src/components/SkipNavigation/SkipNavigation.test.tsx +63 -0
  173. package/src/components/SkipNavigation/SkipNavigation.tsx +51 -0
  174. package/src/components/SkipNavigation/__snapshots__/SkipNavigation.test.tsx.snap +130 -0
  175. package/src/components/Slider/Slider.stories.mdx +19 -53
  176. package/src/components/Slider/Slider.test.tsx +2 -2
  177. package/src/components/Slider/Slider.tsx +10 -12
  178. package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +2 -9
  179. package/src/components/StatusBadge/StatusBadge.stories.mdx +6 -21
  180. package/src/components/StatusBadge/StatusBadge.test.tsx +2 -3
  181. package/src/components/StatusBadge/StatusBadge.tsx +3 -10
  182. package/src/components/StructuredContent/StructuredContent.stories.mdx +30 -58
  183. package/src/components/StructuredContent/StructuredContent.test.tsx +42 -44
  184. package/src/components/StructuredContent/StructuredContent.tsx +9 -18
  185. package/src/components/StyleGuide/Bidirectionality.stories.mdx +9 -23
  186. package/src/components/StyleGuide/Buttons.stories.mdx +62 -62
  187. package/src/components/StyleGuide/ColorCard.tsx +2 -4
  188. package/src/components/StyleGuide/Colors.stories.mdx +7 -8
  189. package/src/components/StyleGuide/DesignTokens.stories.mdx +5 -7
  190. package/src/components/StyleGuide/Forms.stories.mdx +0 -1
  191. package/src/components/StyleGuide/Iconography.stories.mdx +59 -77
  192. package/src/components/StyleGuide/Spacing.stories.mdx +0 -1
  193. package/src/components/StyleGuide/Typography.stories.mdx +15 -18
  194. package/src/components/Table/Table.stories.mdx +85 -1
  195. package/src/components/Table/Table.test.tsx +57 -1
  196. package/src/components/Table/Table.tsx +7 -4
  197. package/src/components/Table/__snapshots__/Table.test.tsx.snap +121 -0
  198. package/src/components/Tabs/Tabs.stories.mdx +1 -1
  199. package/src/components/Tabs/Tabs.test.tsx +2 -2
  200. package/src/components/Tabs/Tabs.tsx +26 -27
  201. package/src/components/Template/Template.stories.mdx +49 -54
  202. package/src/components/Template/Template.tsx +9 -3
  203. package/src/components/Text/Text.stories.mdx +5 -11
  204. package/src/components/Text/Text.test.tsx +3 -6
  205. package/src/components/Text/Text.tsx +3 -5
  206. package/src/components/TextInput/TextInput.stories.mdx +10 -22
  207. package/src/components/TextInput/TextInput.test.tsx +32 -62
  208. package/src/components/TextInput/TextInput.tsx +61 -30
  209. package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +1 -0
  210. package/src/components/Toggle/Toggle.stories.mdx +5 -16
  211. package/src/components/Toggle/Toggle.test.tsx +2 -3
  212. package/src/components/Toggle/Toggle.tsx +9 -10
  213. package/src/components/VideoPlayer/VideoPlayer.stories.mdx +13 -29
  214. package/src/components/VideoPlayer/VideoPlayer.test.tsx +18 -23
  215. package/src/components/VideoPlayer/VideoPlayer.tsx +13 -10
  216. package/src/docs/Chakra.stories.mdx +14 -11
  217. package/src/docs/Welcome.stories.mdx +23 -43
  218. package/src/helpers/types.ts +1 -0
  219. package/src/hooks/tests/useNYPLTheme.test.tsx +1 -1
  220. package/src/hooks/useNYPLTheme.stories.mdx +3 -6
  221. package/src/index.ts +51 -45
  222. package/src/theme/components/buttonGroup.ts +10 -0
  223. package/src/theme/components/card.ts +50 -15
  224. package/src/theme/components/componentWrapper.ts +5 -1
  225. package/src/theme/components/customTable.ts +8 -2
  226. package/src/theme/components/fieldset.ts +5 -1
  227. package/src/theme/components/helperErrorText.ts +5 -1
  228. package/src/theme/components/hero.ts +2 -2
  229. package/src/theme/components/horizontalRule.ts +5 -1
  230. package/src/theme/components/icon.ts +7 -1
  231. package/src/theme/components/image.ts +14 -3
  232. package/src/theme/components/label.ts +5 -1
  233. package/src/theme/components/list.ts +8 -2
  234. package/src/theme/components/logo.ts +5 -1
  235. package/src/theme/components/notification.ts +38 -14
  236. package/src/theme/components/progressIndicator.ts +10 -5
  237. package/src/theme/components/select.ts +5 -2
  238. package/src/theme/components/skeletonLoader.ts +8 -2
  239. package/src/theme/components/skipNavigation.ts +26 -0
  240. package/src/theme/components/slider.ts +13 -1
  241. package/src/theme/components/structuredContent.ts +11 -1
  242. package/src/theme/components/text.ts +12 -5
  243. package/src/theme/components/toggle.ts +9 -3
  244. package/src/theme/index.ts +4 -0
  245. package/src/theme/provider.tsx +1 -1
  246. package/src/utils/componentCategories.ts +13 -5
  247. package/src/utils/interfaces.ts +5 -0
  248. package/src/utils/utils.ts +2 -32
  249. package/dist/components/Accordion/AccordionTypes.d.ts +0 -5
  250. package/dist/components/Breadcrumbs/BreadcrumbsTypes.d.ts +0 -8
  251. package/dist/components/Button/ButtonTypes.d.ts +0 -8
  252. package/dist/components/DatePicker/DatePickerTypes.d.ts +0 -5
  253. package/dist/components/Form/FormTypes.d.ts +0 -2
  254. package/dist/components/Grid/GridTypes.d.ts +0 -9
  255. package/dist/components/Heading/HeadingTypes.d.ts +0 -14
  256. package/dist/components/Hero/HeroTypes.d.ts +0 -12
  257. package/dist/components/Icons/IconTypes.d.ts +0 -77
  258. package/dist/components/Image/ImageTypes.d.ts +0 -22
  259. package/dist/components/Link/LinkTypes.d.ts +0 -8
  260. package/dist/components/List/ListTypes.d.ts +0 -5
  261. package/dist/components/Logo/LogoTypes.d.ts +0 -54
  262. package/dist/components/Notification/NotificationTypes.d.ts +0 -5
  263. package/dist/components/ProgressIndicator/ProgressIndicatorTypes.d.ts +0 -8
  264. package/dist/components/Select/SelectTypes.d.ts +0 -8
  265. package/dist/components/SkeletonLoader/SkeletonLoaderTypes.d.ts +0 -5
  266. package/dist/components/StatusBadge/StatusBadgeTypes.d.ts +0 -5
  267. package/dist/components/StructuredContent/StructuredContentTypes.d.ts +0 -5
  268. package/dist/components/Text/TextTypes.d.ts +0 -6
  269. package/dist/components/TextInput/TextInputTypes.d.ts +0 -25
  270. package/dist/components/Toggle/ToggleTypes.d.ts +0 -4
  271. package/dist/components/VideoPlayer/VideoPlayerTypes.d.ts +0 -9
  272. package/dist/helpers/enums.d.ts +0 -4
  273. package/dist/utils/siteSections.d.ts +0 -2
  274. package/src/components/Accordion/AccordionTypes.tsx +0 -5
  275. package/src/components/Breadcrumbs/BreadcrumbsTypes.tsx +0 -8
  276. package/src/components/Button/ButtonTypes.tsx +0 -8
  277. package/src/components/DatePicker/DatePickerTypes.tsx +0 -5
  278. package/src/components/Form/FormTypes.tsx +0 -3
  279. package/src/components/Grid/GridTypes.tsx +0 -9
  280. package/src/components/Heading/HeadingTypes.tsx +0 -15
  281. package/src/components/Hero/HeroTypes.tsx +0 -20
  282. package/src/components/Icons/IconTypes.tsx +0 -83
  283. package/src/components/Image/ImageTypes.ts +0 -24
  284. package/src/components/Link/LinkTypes.tsx +0 -8
  285. package/src/components/List/ListTypes.tsx +0 -5
  286. package/src/components/Logo/LogoTypes.tsx +0 -56
  287. package/src/components/Notification/NotificationTypes.tsx +0 -5
  288. package/src/components/ProgressIndicator/ProgressIndicatorTypes.ts +0 -8
  289. package/src/components/Select/SelectTypes.tsx +0 -10
  290. package/src/components/SkeletonLoader/SkeletonLoaderTypes.tsx +0 -5
  291. package/src/components/StatusBadge/StatusBadgeTypes.tsx +0 -5
  292. package/src/components/StructuredContent/StructuredContentTypes.tsx +0 -5
  293. package/src/components/Text/TextTypes.tsx +0 -6
  294. package/src/components/TextInput/TextInputTypes.tsx +0 -48
  295. package/src/components/Toggle/ToggleTypes.tsx +0 -4
  296. package/src/components/VideoPlayer/VideoPlayerTypes.tsx +0 -10
  297. package/src/helpers/enums.ts +0 -4
  298. package/src/utils/siteSections.ts +0 -10
@@ -1,15 +1,8 @@
1
- import { ButtonGroup } from "@chakra-ui/react";
2
1
  import { Canvas, Meta } from "@storybook/addon-docs";
3
2
 
4
3
  import Button from "../Button/Button";
5
- import { ButtonTypes } from "../Button/ButtonTypes";
4
+ import ButtonGroup from "../ButtonGroup/ButtonGroup";
6
5
  import Icon from "../Icons/Icon";
7
- import {
8
- IconAlign,
9
- IconNames,
10
- IconRotationTypes,
11
- IconSizes,
12
- } from "../Icons/IconTypes";
13
6
  import { getCategory } from "../../utils/componentCategories";
14
7
  import DSProvider from "../../theme/provider";
15
8
 
@@ -32,9 +25,9 @@ Use the [Button](https://nypl.github.io/nypl-design-system/storybook-static/?pat
32
25
  component to render form buttons.
33
26
 
34
27
  ```jsx
35
- import { Button, ButtonTypes } from "@nypl/design-system-react-components";
28
+ import { Button } from "@nypl/design-system-react-components";
36
29
 
37
- <Button buttonType={ButtonTypes.Primary}>Button Text</Button>;
30
+ <Button id="btn">Button Text</Button>;
38
31
  ```
39
32
 
40
33
  ## Guidelines
@@ -64,26 +57,24 @@ can be achieved by using the `Form` component to wrap the `Button`s.
64
57
  <Canvas>
65
58
  <DSProvider>
66
59
  <ButtonGroup>
67
- <Button buttonType={ButtonTypes.Primary}>Button Text</Button>
68
- <Button buttonType={ButtonTypes.Primary}>
69
- <Icon
70
- name={IconNames.Search}
71
- size={IconSizes.Small}
72
- align={IconAlign.Left}
73
- />
60
+ <Button id="basic">Button Text</Button>
61
+ <Button id="btn-search">
62
+ <Icon name="search" size="small" align="left" />
74
63
  Button Text
75
64
  </Button>
76
- <Button buttonType={ButtonTypes.Primary}>
77
- <Icon name={IconNames.Close} size={IconSizes.Medium} />
65
+ <Button id="only-icon">
66
+ <Icon name="close" size="medium" />
67
+ </Button>
68
+ <Button buttonType="callout" id="donate">
69
+ Donate
78
70
  </Button>
79
- <Button buttonType={ButtonTypes.Callout}>Donate</Button>
80
- <Button buttonType={ButtonTypes.Secondary}>
71
+ <Button buttonType="secondary" id="btn-back-to-top">
81
72
  Back to Top
82
73
  <Icon
83
- name={IconNames.Arrow}
84
- size={IconSizes.Small}
85
- align={IconAlign.Right}
86
- iconRotation={IconRotationTypes.Rotate180}
74
+ name="arrow"
75
+ size="small"
76
+ align="right"
77
+ iconRotation="rotate180"
87
78
  />
88
79
  </Button>
89
80
  </ButtonGroup>
@@ -98,44 +89,56 @@ component.
98
89
  <Canvas>
99
90
  <DSProvider>
100
91
  <ButtonGroup>
101
- <Button buttonType={ButtonTypes.Primary}>Primary Button</Button>
102
- <Button buttonType={ButtonTypes.Secondary}>Secondary Button</Button>
103
- <Button buttonType={ButtonTypes.Callout}>Callout Button</Button>
104
- <Button buttonType={ButtonTypes.Pill}>Pill Button</Button>
105
- <Button buttonType={ButtonTypes.Link}>Link Button</Button>
106
- <Button buttonType={ButtonTypes.NoBrand}>NoBrand Button</Button>
92
+ <Button buttonType="primary" id="primary">
93
+ Primary Button
94
+ </Button>
95
+ <Button buttonType="secondary" id="secondary">
96
+ Secondary Button
97
+ </Button>
98
+ <Button buttonType="callout" id="callout">
99
+ Callout Button
100
+ </Button>
101
+ <Button buttonType="pill" id="pill">
102
+ Pill Button
103
+ </Button>
104
+ <Button buttonType="link" id="link">
105
+ Link Button
106
+ </Button>
107
+ <Button buttonType="noBrand" id="noBrand">
108
+ NoBrand Button
109
+ </Button>
107
110
  </ButtonGroup>
108
111
  </DSProvider>
109
112
  </Canvas>
110
113
 
111
- ### ButtonTypes.Primary
114
+ ### Primary
112
115
 
113
116
  - used for actions that move the user forward
114
117
  - Visual Treatment: rectangular, filled
115
118
 
116
- ### ButtonTypes.Secondary
119
+ ### Secondary
117
120
 
118
121
  - used for actions that move the user back, such as a form cancel button
119
122
  - often paired with a Primary button
120
123
  - Visual Treatment: rectangular, outlined
121
124
 
122
- ### ButtonTypes.Callout
125
+ ### Callout
123
126
 
124
127
  - used for call to actions such as donation buttons
125
128
  - Visual Treatment: rectangular, NYPL red background
126
129
 
127
- ### ButtonTypes.Pill
130
+ ### Pill
128
131
 
129
132
  - used for equally weighted actions
130
133
  - should only be used for buttons that are displayed in a set (i.e. never use for a singleton button)
131
134
  - Visual Treatment: rounded, outlined
132
135
 
133
- ### ButtonTypes.Link
136
+ ### Link
134
137
 
135
138
  - used for equally weighted actions
136
139
  - Visual Treatment: text link with underline
137
140
 
138
- ### ButtonTypes.NoBrand
141
+ ### NoBrand
139
142
 
140
143
  - used in cases where there is no brand color
141
144
  - Visual Treatment: rectangular, filled with a black background
@@ -144,43 +147,40 @@ component.
144
147
 
145
148
  - Buttons are blue by default.
146
149
  - Buttons that are intended as a call out (i.e. Donation buttons) should be set
147
- as `ButtonTypes.Callout`.
148
- - The "Back to Top" button must be set as `ButtonTypes.Secondary` and must
149
- include an up arrow icon.
150
- - Previous and Next buttons should be set as `ButtonTypes.Secondary` and be
151
- wrapped in a `ButtonGroup`.
152
- - Only use the `ButtonTypes.NoBrand` style where there is no brand color. _This
153
- should be rarely used._
150
+ as `"callout"`.
151
+ - The "Back to Top" button must be set as `"secondary"` and must include an up
152
+ arrow icon.
153
+ - Previous and Next buttons should be set as `"secondary"` and be wrapped in a
154
+ `ButtonGroup`.
155
+ - Only use the `"noBrand"` style where there is no brand color. _This should be
156
+ rarely used._
154
157
 
155
158
  <Canvas>
156
159
  <DSProvider>
157
160
  <ButtonGroup>
158
- <Button buttonType={ButtonTypes.Callout}>Donate to this library</Button>
159
- <Button buttonType={ButtonTypes.Secondary}>
161
+ <Button buttonType="callout" id="callout2">
162
+ Donate to this library
163
+ </Button>
164
+ <Button buttonType="secondary" id="secondary2">
160
165
  Back to Top
161
166
  <Icon
162
- name={IconNames.Arrow}
163
- iconRotation={IconRotationTypes.Rotate180}
164
- size={IconSizes.Small}
165
- align={IconAlign.Right}
167
+ align="right"
168
+ iconRotation="rotate180"
169
+ name="arrow"
170
+ size="small"
166
171
  />
167
172
  </Button>
168
- <Button buttonType={ButtonTypes.Secondary}>
169
- <Icon
170
- name={IconNames.Arrow}
171
- iconRotation={IconRotationTypes.Rotate90}
172
- align={IconAlign.Left}
173
- size={IconSizes.Small}
174
- />
173
+ <Button buttonType="secondary" id="previous">
174
+ <Icon align="left" iconRotation="rotate90" name="arrow" size="small" />
175
175
  Previous
176
176
  </Button>
177
- <Button buttonType={ButtonTypes.Secondary}>
177
+ <Button buttonType="secondary" id="next">
178
178
  Next
179
179
  <Icon
180
- name={IconNames.Arrow}
181
- iconRotation={IconRotationTypes.Rotate270}
182
- align={IconAlign.Right}
183
- size={IconSizes.Small}
180
+ align="right"
181
+ iconRotation="rotate270"
182
+ name="arrow"
183
+ size="small"
184
184
  />
185
185
  </Button>
186
186
  </ButtonGroup>
@@ -2,8 +2,6 @@ import * as React from "react";
2
2
 
3
3
  import Card from "../Card/Card";
4
4
  import Heading from "../Heading/Heading";
5
- import { HeadingLevels } from "../Heading/HeadingTypes";
6
- import { LayoutTypes } from "../../helpers/enums";
7
5
 
8
6
  export interface ColorCardProps {
9
7
  /** backgroundColor of the color card */
@@ -27,10 +25,10 @@ export default function ColorCard(
27
25
  backgroundColor={backgroundColor}
28
26
  isBordered
29
27
  isCentered
30
- layout={LayoutTypes.Column}
28
+ layout="column"
31
29
  />
32
30
  <div style={{ marginLeft: "1rem" }}>
33
- <Heading level={HeadingLevels.Four}>{colorName}</Heading>
31
+ <Heading level="four">{colorName}</Heading>
34
32
  {/*
35
33
  TODO:
36
34
  This code is returning the CSS variable name. This is not what we
@@ -2,7 +2,6 @@ import { Canvas, Meta } from "@storybook/addon-docs";
2
2
 
3
3
  import ColorCard from "./ColorCard";
4
4
  import Heading from "../Heading/Heading";
5
- import { HeadingLevels } from "../Heading/HeadingTypes";
6
5
  import SimpleGrid from "../Grid/SimpleGrid";
7
6
  import { getCategory } from "../../utils/componentCategories";
8
7
  import DSProvider from "../../theme/provider";
@@ -115,7 +114,7 @@ Section colors are branding colors only in use at NYPL.
115
114
 
116
115
  <Canvas>
117
116
  <DSProvider>
118
- <Heading level={HeadingLevels.Two}>Blogs</Heading>
117
+ <Heading>Blogs</Heading>
119
118
  <p>Blogs is used for the Blogs section.</p>
120
119
  <SimpleGrid columns={1}>{getColorCards("blogs")}</SimpleGrid>
121
120
  </DSProvider>
@@ -123,7 +122,7 @@ Section colors are branding colors only in use at NYPL.
123
122
 
124
123
  <Canvas>
125
124
  <DSProvider>
126
- <Heading level={HeadingLevels.Two}>Books and More</Heading>
125
+ <Heading>Books and More</Heading>
127
126
  <p>
128
127
  Books and More is used for the Catalog, Staff Picks, Recommendations, New
129
128
  Arrivals, and E-Book Central.
@@ -134,7 +133,7 @@ Section colors are branding colors only in use at NYPL.
134
133
 
135
134
  <Canvas>
136
135
  <DSProvider>
137
- <Heading level={HeadingLevels.Two}>Education</Heading>
136
+ <Heading>Education</Heading>
138
137
  <p>
139
138
  Education is used for the Education section front and all associated
140
139
  sub-sections.
@@ -145,7 +144,7 @@ Section colors are branding colors only in use at NYPL.
145
144
 
146
145
  <Canvas>
147
146
  <DSProvider>
148
- <Heading level={HeadingLevels.Two}>Locations</Heading>
147
+ <Heading>Locations</Heading>
149
148
  <p>
150
149
  Locations is used for Location Finder and all branch pages with the
151
150
  exceptions of some research libraries.
@@ -156,7 +155,7 @@ Section colors are branding colors only in use at NYPL.
156
155
 
157
156
  <Canvas>
158
157
  <DSProvider>
159
- <Heading level={HeadingLevels.Two}>Research</Heading>
158
+ <Heading>Research</Heading>
160
159
  <p>Research is used for the Research Catalog and SCC.</p>
161
160
  <SimpleGrid columns={1}>{getColorCards("research")}</SimpleGrid>
162
161
  </DSProvider>
@@ -164,7 +163,7 @@ Section colors are branding colors only in use at NYPL.
164
163
 
165
164
  <Canvas>
166
165
  <DSProvider>
167
- <Heading level={HeadingLevels.Two}>Research Libraries</Heading>
166
+ <Heading>Research Libraries</Heading>
168
167
  <p>Research libraries with specific brand colors to adhere to.</p>
169
168
  <SimpleGrid columns={1}>{getColorCards("researchLibraries")}</SimpleGrid>
170
169
  </DSProvider>
@@ -172,7 +171,7 @@ Section colors are branding colors only in use at NYPL.
172
171
 
173
172
  <Canvas>
174
173
  <DSProvider>
175
- <Heading level={HeadingLevels.Two}>What's On</Heading>
174
+ <Heading>What's On</Heading>
176
175
  <p>What's On is used for Events, Exhibitions &amp; Audio Guides.</p>
177
176
  <SimpleGrid columns={1}>{getColorCards("whatsOn")}</SimpleGrid>
178
177
  </DSProvider>
@@ -126,9 +126,9 @@ That said, if a DS component does need an updated style, first contact the
126
126
  Design System and UX teams about this update.
127
127
 
128
128
  If you receive approval to make a change in a consuming app, then you can add
129
- styles directly to the `additionalStyles` prop. For example, if the `Heading`
130
- component needs to render text in Reservoir's "success primary" green color and add
131
- a bold font weight, then you can do the following:
129
+ styles directly as style props. For example, if the `Heading` component needs to
130
+ render text in Reservoir's "success primary" green color and add a bold font
131
+ weight, then you can do the following:
132
132
 
133
133
  ```tsx
134
134
  const theme = useNYPLTheme();
@@ -138,10 +138,8 @@ return (
138
138
  <div>
139
139
  <Heading
140
140
  level={2}
141
- additionalStyles={{
142
- color: theme.colors.ui.success.primary,
143
- fontWeight: theme.fontWeights.bold,
144
- }}
141
+ color={theme.colors.ui.success.primary}
142
+ fontWeight={theme.fontWeights.bold}
145
143
  >
146
144
  Get a Digital Library Card Today in a Few Easy Steps
147
145
  </Heading>
@@ -2,7 +2,6 @@ import { Meta } from "@storybook/addon-docs";
2
2
 
3
3
  import Card from "../Card/Card";
4
4
  import List from "../List/List";
5
- import { ListTypes } from "../List/ListTypes";
6
5
  import { getCategory } from "../../utils/componentCategories";
7
6
 
8
7
  <Meta title={getCategory("Forms")} />
@@ -2,7 +2,6 @@ import { Stack } from "@chakra-ui/react";
2
2
  import { Canvas, Meta } from "@storybook/addon-docs";
3
3
 
4
4
  import Icon from "../Icons/Icon";
5
- import { IconColors, IconSizes, IconNames } from "../Icons/IconTypes";
6
5
  import { getCategory } from "../../utils/componentCategories";
7
6
  import DSProvider from "../../theme/provider";
8
7
 
@@ -28,117 +27,100 @@ The DS utilizes the `Filled` icons available in the [Material UI Design System](
28
27
 
29
28
  ## Icon Examples
30
29
 
31
- The graphic of the `Icon` component is handled through the `IconNames` enum. To see all graphic options
32
- for `Icon`, please refer to the [Icon](https://nypl.github.io/nypl-design-system/storybook-static/?path=/docs/icon--control-props)
30
+ The graphic of the `Icon` component is handled through the `name` prop. To see
31
+ all graphic options for `Icon`, please refer to the [Icon](https://nypl.github.io/nypl-design-system/storybook-static/?path=/docs/icon--control-props)
33
32
  Storybook page.
34
33
 
35
34
  <Canvas>
36
35
  <DSProvider>
37
36
  <Stack spacing="s" direction="row">
38
- <Icon
39
- decorative
40
- size={IconSizes.ExtraExtraExtraLarge}
41
- name={IconNames.Check}
42
- />
43
- <Icon
44
- decorative
45
- size={IconSizes.ExtraExtraExtraLarge}
46
- name={IconNames.Close}
47
- />
48
- <Icon
49
- decorative
50
- size={IconSizes.ExtraExtraExtraLarge}
51
- name={IconNames.ErrorOutline}
52
- />
53
- <Icon
54
- decorative
55
- size={IconSizes.ExtraExtraExtraLarge}
56
- name={IconNames.SpeakerNotes}
57
- />
37
+ <Icon decorative size="xxxlarge" name="check" />
38
+ <Icon decorative size="xxxlarge" name="close" />
39
+ <Icon decorative size="xxxlarge" name="errorOutline" />
40
+ <Icon decorative size="xxxlarge" name="speakerNotes" />
58
41
  </Stack>
59
42
  </DSProvider>
60
43
  </Canvas>
61
44
 
62
- | Enum Values for Examples Above |
63
- | ------------------------------ |
64
- | `IconNames.Check` |
65
- | `IconNames.Close` |
66
- | `IconNames.ErrorOutline` |
67
- | `IconNames.SpeakerNotes` |
45
+ | Values for Examples Above |
46
+ | ------------------------- |
47
+ | `check` |
48
+ | `close` |
49
+ | `errorOutline` |
50
+ | `speakerNotes` |
68
51
 
69
52
  ## Icon Sizes
70
53
 
71
- The size of the `Icon` component is handled through the `IconSizes` enum.
54
+ The size of the `Icon` component is handled through the `size` prop.
72
55
 
73
56
  <Canvas>
74
57
  <DSProvider>
75
58
  <Stack spacing="s" direction="row" alignItems="center">
76
- <Icon size={IconSizes.Small} name={IconNames.Check} />
77
- <Icon size={IconSizes.Medium} name={IconNames.Check} />
78
- <Icon size={IconSizes.Large} name={IconNames.Check} />
79
- <Icon size={IconSizes.ExtraLarge} name={IconNames.Check} />
80
- <Icon size={IconSizes.ExtraExtraLarge} name={IconNames.Check} />
81
- <Icon size={IconSizes.ExtraExtraExtraLarge} name={IconNames.Check} />
59
+ <Icon size="small" name="check" />
60
+ <Icon size="medium" name="check" />
61
+ <Icon size="large" name="check" />
62
+ <Icon size="xlarge" name="check" />
63
+ <Icon size="xxlarge" name="check" />
64
+ <Icon size="xxxlarge" name="check" />
82
65
  </Stack>
83
66
  </DSProvider>
84
67
  </Canvas>
85
68
 
86
- | IconSizes Enum Value | CSS Value | CSS Variable |
87
- | -------------------------------- | ----------------- | ------------------ |
88
- | `IconSizes.Small` | `0.875rem` (14px) | n/a |
89
- | `IconSizes.Medium` | `1.125rem` (18px) | n/a |
90
- | `IconSizes.Large` | `1.5rem` (24px) | `--nypl-space-m` |
91
- | `IconSizes.ExtraLarge` | `2rem` (32px) | `--nypl-space-l` |
92
- | `IconSizes.ExtraExtraLarge` | `3rem` (48px) | `--nypl-space-xl` |
93
- | `IconSizes.ExtraExtraExtraLarge` | `4rem` (64px) | `--nypl-space-xxl` |
69
+ | Value | CSS Value | CSS Variable |
70
+ | ---------- | ----------------- | ------------------ |
71
+ | `small` | `0.875rem` (14px) | n/a |
72
+ | `medium` | `1.125rem` (18px) | n/a |
73
+ | `large` | `1.5rem` (24px) | `--nypl-space-m` |
74
+ | `xlarge` | `2rem` (32px) | `--nypl-space-l` |
75
+ | `xxlarge` | `3rem` (48px) | `--nypl-space-xl` |
76
+ | `xxxlarge` | `4rem` (64px) | `--nypl-space-xxl` |
94
77
 
95
78
  ## Icon Colors
96
79
 
97
- The color of the `Icon` component is handled through the `IconColors` enum.
98
- Icons in NYPL projects should always be rendered with one color.
80
+ The color of the `Icon` component is handled through the `color` prop. Icons in
81
+ NYPL projects should always be rendered with one color.
99
82
 
100
83
  <Canvas>
101
84
  <DSProvider>
102
85
  <Stack spacing="s" direction="row">
103
- <Icon size={IconSizes.ExtraExtraExtraLarge} name={IconNames.Check} />
104
- <Icon
105
- name={IconNames.Check}
106
- size={IconSizes.ExtraExtraExtraLarge}
107
- color={IconColors.BrandPrimary}
108
- />
109
- <Icon
110
- name={IconNames.Check}
111
- size={IconSizes.ExtraExtraExtraLarge}
112
- color={IconColors.SectionResearchPrimary}
113
- />
86
+ <Icon size="xxxlarge" name="check" />
87
+ <Icon name="check" size="xxxlarge" color="brand.primary" />
88
+ <Icon name="check" size="xxxlarge" color="section.research.primary" />
114
89
  <Icon
115
- name={IconNames.Check}
116
- size={IconSizes.ExtraExtraExtraLarge}
117
- color={IconColors.SectionResearchLibrarySchwartzman}
90
+ name="check"
91
+ size="xxxlarge"
92
+ color="section.research-library.schwartzman"
118
93
  />
119
94
  <Icon
120
- name={IconNames.Check}
121
- size={IconSizes.ExtraExtraExtraLarge}
122
- color={IconColors.SectionResearchLibrarySchomburg}
95
+ name="check"
96
+ size="xxxlarge"
97
+ color="section.research-library.schomburg"
123
98
  />
124
99
  </Stack>
125
100
  </DSProvider>
126
101
  </Canvas>
127
102
 
128
- | IconColors Enum Value | CSS Variable |
129
- | ---------------------------------------------- | ---------------------------------------------------- |
130
- | `IconColors.UiBlack` | `--nypl-colors-ui-black` |
131
- | `IconColors.UiWhite` | `--nypl-colors-ui-white` |
132
- | `IconColors.BrandPrimary` | `--nypl-colors-brand-primary` |
133
- | `IconColors.BrandSecondary` | `--nypl-colors-brand-secondary` |
134
- | `IconColors.SectionWhatsOnPrimary` | `--nypl-colors-section-whats-on-primary` |
135
- | `IconColors.SectionBooksAndMorePrimary` | `--nypl-colors-section-books-and-more-primary` |
136
- | `IconColors.SectionResearchPrimary` | `--nypl-colors-section-research-primary` |
137
- | `IconColors.SectionResearchSecondary` | `--nypl-colors-section-research-secondary` |
138
- | `IconColors.SectionLocationsPrimary` | `--nypl-colors-section-locations-primary` |
139
- | `IconColors.SectionResearchLibraryLpa` | `--nypl-colors-section-research-library-lpa` |
140
- | `IconColors.SectionResearchLibrarySchomburg` | `--nypl-colors-section-research-library-schomburg` |
141
- | `IconColors.SectionResearchLibrarySchwartzman` | `--nypl-colors-section-research-library-schwartzman` |
103
+ | Value | CSS Variable |
104
+ | -------------------------------------- | ---------------------------------------------------- |
105
+ | `ui.black` | `--nypl-colors-ui-black` |
106
+ | `ui.white` | `--nypl-colors-ui-white` |
107
+ | `brand.primary` | `--nypl-colors-brand-primary` |
108
+ | `brand.secondary` | `--nypl-colors-brand-secondary` |
109
+ | `section.blogs.primary` | `--nypl-colors-section-blogs-primary` |
110
+ | `section.blogs.secondary` | `--nypl-colors-section-blogs-secondary` |
111
+ | `section.books-and-more.primary` | `--nypl-colors-section-books-and-more-primary` |
112
+ | `section.books-and-more.secondary` | `--nypl-colors-section-books-and-more-secondary` |
113
+ | `section.education.primary` | `--nypl-colors-section-education-primary` |
114
+ | `section.education.secondary` | `--nypl-colors-section-education-secondary` |
115
+ | `section.locations.primary` | `--nypl-colors-section-locations-primary` |
116
+ | `section.locations.secondary` | `--nypl-colors-section-locations-secondary` |
117
+ | `section.research.primary` | `--nypl-colors-section-research-primary` |
118
+ | `section.research.secondary` | `--nypl-colors-section-research-secondary` |
119
+ | `section.research-library.lpa` | `--nypl-colors-section-research-library-lpa` |
120
+ | `section.research.library.schomburg` | `--nypl-colors-section-research-library-schomburg` |
121
+ | `section.research.library.schwartzman` | `--nypl-colors-section-research-library-schwartzman` |
122
+ | `section.whats-on.primary` | `--nypl-colors-section-whats-on-primary` |
123
+ | `section.whats-on.secondary` | `--nypl-colors-section-whats-on-secondary` |
142
124
 
143
125
  ## Development Notes
144
126
 
@@ -2,7 +2,6 @@ import { Meta } from "@storybook/addon-docs";
2
2
 
3
3
  import Card from "../Card/Card";
4
4
  import List from "../List/List";
5
- import { ListTypes } from "../List/ListTypes";
6
5
  import { getCategory } from "../../utils/componentCategories";
7
6
  import DSProvider from "../../theme/provider";
8
7
 
@@ -1,11 +1,8 @@
1
1
  import { Canvas, Meta } from "@storybook/addon-docs";
2
2
 
3
3
  import Heading from "../Heading/Heading";
4
- import { HeadingSizes, HeadingLevels } from "../Heading/HeadingTypes";
5
4
  import List from "../List/List";
6
- import { ListTypes } from "../List/ListTypes";
7
5
  import Text from "../Text/Text";
8
- import { TextSizes } from "../Text/TextTypes";
9
6
  import { getCategory } from "../../utils/componentCategories";
10
7
  import DSProvider from "../../theme/provider";
11
8
 
@@ -43,10 +40,10 @@ set the specific `<h>` tag that you require.
43
40
 
44
41
  <Canvas>
45
42
  <DSProvider>
46
- <Heading level={HeadingLevels.One}>Heading Level 1</Heading>
47
- <Heading level={HeadingLevels.Two}>Heading Level 2</Heading>
48
- <Heading level={HeadingLevels.Three}>Heading Level 3</Heading>
49
- <Heading level={HeadingLevels.Four}>Heading Level 4</Heading>
43
+ <Heading level="one">Heading Level 1</Heading>
44
+ <Heading level="two">Heading Level 2</Heading>
45
+ <Heading level="three">Heading Level 3</Heading>
46
+ <Heading level="four">Heading Level 4</Heading>
50
47
  </DSProvider>
51
48
  </Canvas>
52
49
 
@@ -61,7 +58,7 @@ elements. For example, the `h1` element has the `Primary` style applied by defau
61
58
  but a new style can be applied through the `size` prop. Any `size` style can be
62
59
  applied to any `Heading` element.
63
60
 
64
- <Heading level={HeadingLevels.One} size={HeadingSizes.Primary}>
61
+ <Heading level="one" size="primary">
65
62
  Primary Heading
66
63
  </Heading>
67
64
 
@@ -71,7 +68,7 @@ applied to any `Heading` element.
71
68
  | **Font Weight** | `300` | `fontWeight: "heading.primary"` | `font-weight: var(--nypl-fontWeights-heading-primary)` |
72
69
  | **Line Height** | `1.1` | n/a | n/a |
73
70
 
74
- <Heading level={HeadingLevels.One} size={HeadingSizes.Secondary}>
71
+ <Heading level="one" size="secondary">
75
72
  Secondary Heading
76
73
  </Heading>
77
74
 
@@ -81,7 +78,7 @@ applied to any `Heading` element.
81
78
  | **Font Weight** | `500` | `fontWeight: "heading.secondary"` | `font-weight: var(--nypl-fontWeights-heading-secondary)` |
82
79
  | **Line Height** | `1.25` | n/a | n/a |
83
80
 
84
- <Heading level={HeadingLevels.One} size={HeadingSizes.Tertiary}>
81
+ <Heading level="one" size="tertiary">
85
82
  Tertiary Heading
86
83
  </Heading>
87
84
 
@@ -91,7 +88,7 @@ applied to any `Heading` element.
91
88
  | **Font Weight** | `500` | `fontWeight: "heading.tertiary"` | `font-weight: var(--nypl-fontWeights-heading-tertiary)` |
92
89
  | **Line Height** | `1.25` | n/a | n/a |
93
90
 
94
- <Heading level={HeadingLevels.One} size={HeadingSizes.Callout}>
91
+ <Heading level="one" size="callout">
95
92
  Callout Heading
96
93
  </Heading>
97
94
 
@@ -129,7 +126,7 @@ The `size` prop can be used to render a specific style from the DS default text
129
126
  - [Typography: Body Styles](https://www.figma.com/file/qShodlfNCJHb8n03IFyApM/Main?node-id=10975%3A52)
130
127
  - [Typography: Other Styles](https://www.figma.com/file/qShodlfNCJHb8n03IFyApM/Main?node-id=10975%3A100)
131
128
 
132
- <Text size={TextSizes.Default}>Default</Text>
129
+ <Text size="default">Default</Text>
133
130
 
134
131
  | | Value | JS Theme Object | CSS Variable |
135
132
  | --------------- | ------ | ---------------------------- | --------------------------------------------------- |
@@ -137,7 +134,7 @@ The `size` prop can be used to render a specific style from the DS default text
137
134
  | **Font Weight** | `300` | `fontWeight: "text.default"` | `font-weight: var(--nypl-fontWeights-text-default)` |
138
135
  | **Line Height** | `1.5` | `fontWeight: 1.5` | `font-weight: 1.5` |
139
136
 
140
- <Text size={TextSizes.Caption}>Caption</Text>
137
+ <Text size="caption">Caption</Text>
141
138
 
142
139
  | | Value | JS Theme Object | CSS Variable |
143
140
  | --------------- | ---------- | ---------------------------- | --------------------------------------------------- |
@@ -145,7 +142,7 @@ The `size` prop can be used to render a specific style from the DS default text
145
142
  | **Font Weight** | `300` | `fontWeight: "text.caption"` | `font-weight: var(--nypl-fontWeights-text-caption)` |
146
143
  | **Line Height** | `1.25` | `fontWeight: 1.25` | `font-weight: 1.25` |
147
144
 
148
- <Text size={TextSizes.Tag}>Tag</Text>
145
+ <Text size="tag">Tag</Text>
149
146
 
150
147
  | | Value | JS Theme Object | CSS Variable |
151
148
  | --------------- | --------- | ------------------------ | ----------------------------------------------- |
@@ -153,7 +150,7 @@ The `size` prop can be used to render a specific style from the DS default text
153
150
  | **Font Weight** | `400` | `fontWeight: "text.tag"` | `font-weight: var(--nypl-fontWeights-text-tag)` |
154
151
  | **Line Height** | `1.5` | `fontWeight: 1.5` | `font-weight: 1.5` |
155
152
 
156
- <Text size={TextSizes.Mini}>Mini</Text>
153
+ <Text size="mini">Mini</Text>
157
154
 
158
155
  | | Value | JS Theme Object | CSS Variable |
159
156
  | --------------- | ---------- | ------------------------- | ------------------------------------------------ |
@@ -195,7 +192,7 @@ black on a white background.
195
192
 
196
193
  <Canvas>
197
194
  <DSProvider>
198
- <Heading level={HeadingLevels.Three}>Default Heading Color</Heading>
195
+ <Heading level="three">Default Heading Color</Heading>
199
196
  <Text>
200
197
  This paragraph shows the default body text color. Curabitur blandit tempus
201
198
  porttitor. Praesent commodo cursus magna, vel scelerisque nisl consectetur
@@ -359,7 +356,7 @@ prepositions do not get capital letters unless they start the title. For example
359
356
 
360
357
  <Canvas>
361
358
  <DSProvider>
362
- <List type={ListTypes.Unordered}>
359
+ <List type="ul">
363
360
  <li>Snow White and the Seven Dwarfs</li>
364
361
  <li>The Last of the Mohicans</li>
365
362
  <li>Spooky Books for Kids: The Ultimate Creepy Guide</li>
@@ -377,7 +374,7 @@ prepositions do not get capital letters unless they start the title. For example
377
374
 
378
375
  <Canvas>
379
376
  <DSProvider>
380
- <Heading level={HeadingLevels.Three}>
377
+ <Heading level="three">
381
378
  This is a Long Title to Show What 58 Characters Looks Like
382
379
  </Heading>
383
380
  </DSProvider>