@nypl/design-system-react-components 0.25.11 → 0.26.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 (347) hide show
  1. package/CHANGELOG.md +151 -0
  2. package/README.md +14 -26
  3. package/dist/components/Accordion/Accordion.d.ts +6 -4
  4. package/dist/components/Accordion/AccordionTypes.d.ts +5 -0
  5. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +4 -4
  6. package/dist/components/Breadcrumbs/BreadcrumbsTypes.d.ts +2 -1
  7. package/dist/components/Button/Button.d.ts +2 -2
  8. package/dist/components/Card/Card.d.ts +22 -29
  9. package/dist/components/Checkbox/Checkbox.d.ts +3 -3
  10. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +9 -6
  11. package/dist/components/ComponentWrapper/ComponentWrapper.d.ts +1 -1
  12. package/dist/components/DatePicker/DatePicker.d.ts +5 -6
  13. package/dist/components/Fieldset/Fieldset.d.ts +5 -6
  14. package/dist/components/Form/Form.d.ts +6 -6
  15. package/dist/components/Grid/GridTypes.d.ts +7 -7
  16. package/dist/components/Grid/SimpleGrid.d.ts +1 -1
  17. package/dist/components/Heading/Heading.d.ts +5 -5
  18. package/dist/components/Heading/HeadingTypes.d.ts +1 -1
  19. package/dist/components/HelperErrorText/HelperErrorText.d.ts +9 -8
  20. package/dist/components/Hero/Hero.d.ts +9 -5
  21. package/dist/components/HorizontalRule/HorizontalRule.d.ts +2 -10
  22. package/dist/components/Icons/Icon.d.ts +2 -1
  23. package/dist/components/Icons/IconTypes.d.ts +10 -7
  24. package/dist/components/Image/Image.d.ts +27 -9
  25. package/dist/components/Image/ImageTypes.d.ts +4 -4
  26. package/dist/components/Label/Label.d.ts +7 -4
  27. package/dist/components/Link/Link.d.ts +1 -1
  28. package/dist/components/List/List.d.ts +11 -11
  29. package/dist/components/List/ListTypes.d.ts +1 -1
  30. package/dist/components/Logo/Logo.d.ts +2 -1
  31. package/dist/components/Logo/LogoSvgs.d.ts +8 -0
  32. package/dist/components/Logo/LogoTypes.d.ts +10 -2
  33. package/dist/components/Notification/Notification.d.ts +7 -7
  34. package/dist/components/Pagination/Pagination.d.ts +8 -4
  35. package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +3 -3
  36. package/dist/components/Radio/Radio.d.ts +5 -7
  37. package/dist/components/RadioGroup/RadioGroup.d.ts +16 -8
  38. package/dist/components/SearchBar/SearchBar.d.ts +5 -5
  39. package/dist/components/Select/Select.d.ts +12 -8
  40. package/dist/components/Select/SelectTypes.d.ts +4 -0
  41. package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +8 -6
  42. package/dist/components/SkeletonLoader/SkeletonLoaderTypes.d.ts +0 -4
  43. package/dist/components/Slider/Slider.d.ts +6 -4
  44. package/dist/components/StatusBadge/StatusBadge.d.ts +5 -1
  45. package/dist/components/StructuredContent/StructuredContent.d.ts +10 -23
  46. package/dist/components/Table/Table.d.ts +1 -1
  47. package/dist/components/Tabs/Tabs.d.ts +7 -6
  48. package/dist/components/Template/Template.d.ts +18 -9
  49. package/dist/components/Text/Text.d.ts +4 -4
  50. package/dist/components/Text/TextTypes.d.ts +1 -1
  51. package/dist/components/TextInput/TextInput.d.ts +7 -7
  52. package/dist/components/Toggle/Toggle.d.ts +8 -10
  53. package/dist/components/Toggle/{ToggleSizes.d.ts → ToggleTypes.d.ts} +1 -1
  54. package/dist/components/VideoPlayer/VideoPlayer.d.ts +2 -1
  55. package/dist/design-system-react-components.cjs.development.js +2802 -1686
  56. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  57. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  58. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  59. package/dist/design-system-react-components.esm.js +2811 -1699
  60. package/dist/design-system-react-components.esm.js.map +1 -1
  61. package/dist/helpers/enums.d.ts +4 -0
  62. package/dist/hooks/useCarouselStyles.d.ts +3 -2
  63. package/dist/hooks/useNYPLTheme.d.ts +12 -0
  64. package/dist/index.d.ts +11 -9
  65. package/dist/styles.css +1 -1
  66. package/dist/theme/components/accordion.d.ts +7 -12
  67. package/dist/theme/components/breadcrumb.d.ts +6 -0
  68. package/dist/theme/components/button.d.ts +10 -2
  69. package/dist/theme/components/card.d.ts +44 -24
  70. package/dist/theme/components/checkbox.d.ts +6 -6
  71. package/dist/theme/components/checkboxGroup.d.ts +4 -2
  72. package/dist/theme/components/componentWrapper.d.ts +2 -2
  73. package/dist/theme/components/customTable.d.ts +84 -1
  74. package/dist/theme/components/fieldset.d.ts +6 -14
  75. package/dist/theme/components/global.d.ts +37 -29
  76. package/dist/theme/components/globalMixins.d.ts +8 -8
  77. package/dist/theme/components/heading.d.ts +53 -0
  78. package/dist/theme/components/helperErrorText.d.ts +1 -0
  79. package/dist/theme/components/hero.d.ts +21 -15
  80. package/dist/theme/components/image.d.ts +1 -1
  81. package/dist/theme/components/label.d.ts +9 -10
  82. package/dist/theme/components/list.d.ts +105 -9
  83. package/dist/theme/components/notification.d.ts +7 -4
  84. package/dist/theme/components/pagination.d.ts +2 -5
  85. package/dist/theme/components/radio.d.ts +10 -6
  86. package/dist/theme/components/radioGroup.d.ts +4 -2
  87. package/dist/theme/components/select.d.ts +38 -13
  88. package/dist/theme/components/skeletonLoader.d.ts +2 -2
  89. package/dist/theme/components/slider.d.ts +14 -7
  90. package/dist/theme/components/structuredContent.d.ts +197 -0
  91. package/dist/theme/components/textInput.d.ts +22 -14
  92. package/dist/theme/components/toggle.d.ts +25 -6
  93. package/dist/theme/foundations/global.d.ts +33 -3
  94. package/dist/theme/foundations/radii.d.ts +1 -0
  95. package/dist/theme/foundations/spacing.d.ts +46 -43
  96. package/dist/utils/utils.d.ts +10 -0
  97. package/package.json +5 -6
  98. package/src/components/AccessibilityGuide/SkipNavigation.stories.mdx +34 -0
  99. package/src/components/Accordion/Accordion.stories.mdx +150 -66
  100. package/src/components/Accordion/Accordion.test.tsx +65 -17
  101. package/src/components/Accordion/Accordion.tsx +61 -27
  102. package/src/components/Accordion/AccordionTypes.tsx +5 -0
  103. package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +505 -14
  104. package/src/components/Autosuggest/Autosuggest.stories.mdx +4 -3
  105. package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +53 -18
  106. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +66 -35
  107. package/src/components/Breadcrumbs/Breadcrumbs.tsx +14 -13
  108. package/src/components/Breadcrumbs/BreadcrumbsTypes.tsx +2 -1
  109. package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +308 -10
  110. package/src/components/Button/Button.stories.mdx +87 -23
  111. package/src/components/Button/Button.test.tsx +25 -0
  112. package/src/components/Button/Button.tsx +18 -7
  113. package/src/components/Button/__snapshots__/Button.test.tsx.snap +27 -7
  114. package/src/components/Card/Card.stories.mdx +493 -329
  115. package/src/components/Card/Card.test.tsx +138 -18
  116. package/src/components/Card/Card.tsx +151 -85
  117. package/src/components/Card/__snapshots__/Card.test.tsx.snap +220 -100
  118. package/src/components/Chakra/Center.stories.mdx +2 -2
  119. package/src/components/Chakra/Grid.stories.mdx +4 -4
  120. package/src/components/Checkbox/Checkbox.stories.mdx +73 -9
  121. package/src/components/Checkbox/Checkbox.test.tsx +89 -10
  122. package/src/components/Checkbox/Checkbox.tsx +27 -16
  123. package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +209 -6
  124. package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +135 -23
  125. package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +216 -90
  126. package/src/components/CheckboxGroup/CheckboxGroup.tsx +39 -26
  127. package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +493 -89
  128. package/src/components/ComponentWrapper/ComponentWrapper.test.tsx +12 -0
  129. package/src/components/ComponentWrapper/ComponentWrapper.tsx +39 -41
  130. package/src/components/ComponentWrapper/__snapshots__/ComponentWrapper.test.tsx.snap +47 -34
  131. package/src/components/DatePicker/DatePicker.stories.mdx +63 -27
  132. package/src/components/DatePicker/DatePicker.test.tsx +94 -15
  133. package/src/components/DatePicker/DatePicker.tsx +67 -58
  134. package/src/components/DatePicker/_DatePicker.scss +71 -13
  135. package/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap +250 -206
  136. package/src/components/Fieldset/Fieldset.stories.mdx +33 -3
  137. package/src/components/Fieldset/Fieldset.test.tsx +58 -28
  138. package/src/components/Fieldset/Fieldset.tsx +35 -30
  139. package/src/components/Fieldset/__snapshots__/Fieldset.test.tsx.snap +40 -19
  140. package/src/components/Form/Form.stories.mdx +118 -47
  141. package/src/components/Form/Form.test.tsx +59 -16
  142. package/src/components/Form/Form.tsx +89 -65
  143. package/src/components/Form/__snapshots__/Form.test.tsx.snap +83 -5
  144. package/src/components/Grid/GridTypes.tsx +7 -7
  145. package/src/components/Grid/SimpleGrid.stories.mdx +87 -41
  146. package/src/components/Grid/SimpleGrid.test.tsx +24 -9
  147. package/src/components/Grid/SimpleGrid.tsx +29 -20
  148. package/src/components/Grid/__snapshots__/SimpleGrid.test.tsx.snap +16 -1
  149. package/src/components/Heading/Heading.stories.mdx +56 -25
  150. package/src/components/Heading/Heading.test.tsx +17 -7
  151. package/src/components/Heading/Heading.tsx +60 -58
  152. package/src/components/Heading/HeadingTypes.tsx +1 -1
  153. package/src/components/Heading/__snapshots__/Heading.test.tsx.snap +27 -8
  154. package/src/components/HelperErrorText/HelperErrorText.stories.mdx +64 -42
  155. package/src/components/HelperErrorText/HelperErrorText.test.tsx +15 -0
  156. package/src/components/HelperErrorText/HelperErrorText.tsx +40 -35
  157. package/src/components/HelperErrorText/__snapshots__/HelperErrorText.test.tsx.snap +35 -4
  158. package/src/components/Hero/Hero.stories.mdx +143 -113
  159. package/src/components/Hero/Hero.test.tsx +146 -58
  160. package/src/components/Hero/Hero.tsx +144 -112
  161. package/src/components/Hero/__snapshots__/Hero.test.tsx.snap +89 -17
  162. package/src/components/HorizontalRule/HorizontalRule.stories.mdx +26 -4
  163. package/src/components/HorizontalRule/HorizontalRule.test.tsx +9 -17
  164. package/src/components/HorizontalRule/HorizontalRule.tsx +9 -25
  165. package/src/components/HorizontalRule/__snapshots__/HorizontalRule.test.tsx.snap +18 -5
  166. package/src/components/Icons/Icon.stories.mdx +80 -23
  167. package/src/components/Icons/Icon.test.tsx +51 -2
  168. package/src/components/Icons/Icon.tsx +93 -71
  169. package/src/components/Icons/IconTypes.tsx +9 -6
  170. package/src/components/Icons/__snapshots__/Icon.test.tsx.snap +129 -0
  171. package/src/components/Image/Image.stories.mdx +160 -71
  172. package/src/components/Image/Image.test.tsx +40 -48
  173. package/src/components/Image/Image.tsx +80 -48
  174. package/src/components/Image/ImageTypes.ts +4 -4
  175. package/src/components/Image/__snapshots__/Image.test.tsx.snap +84 -21
  176. package/src/components/Label/Label.stories.mdx +42 -20
  177. package/src/components/Label/Label.test.tsx +42 -17
  178. package/src/components/Label/Label.tsx +22 -13
  179. package/src/components/Label/__snapshots__/Label.test.tsx.snap +19 -15
  180. package/src/components/Link/Link.stories.mdx +25 -1
  181. package/src/components/Link/Link.test.tsx +21 -0
  182. package/src/components/Link/Link.tsx +16 -9
  183. package/src/components/Link/__snapshots__/Link.test.tsx.snap +37 -11
  184. package/src/components/List/List.stories.mdx +75 -40
  185. package/src/components/List/List.test.tsx +73 -22
  186. package/src/components/List/List.tsx +44 -28
  187. package/src/components/List/ListTypes.tsx +1 -1
  188. package/src/components/List/__snapshots__/List.test.tsx.snap +110 -8
  189. package/src/components/Logo/Logo.stories.mdx +40 -16
  190. package/src/components/Logo/Logo.test.tsx +29 -2
  191. package/src/components/Logo/Logo.tsx +28 -11
  192. package/src/components/Logo/LogoSvgs.tsx +16 -0
  193. package/src/components/Logo/LogoTypes.tsx +9 -1
  194. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +73 -2
  195. package/src/components/Modal/Modal.stories.mdx +13 -0
  196. package/src/components/Notification/Notification.stories.mdx +34 -5
  197. package/src/components/Notification/Notification.test.tsx +43 -9
  198. package/src/components/Notification/Notification.tsx +59 -55
  199. package/src/components/Notification/__snapshots__/Notification.test.tsx.snap +256 -32
  200. package/src/components/Pagination/Pagination.stories.mdx +76 -13
  201. package/src/components/Pagination/Pagination.test.tsx +116 -5
  202. package/src/components/Pagination/Pagination.tsx +54 -29
  203. package/src/components/Pagination/__snapshots__/Pagination.test.tsx.snap +247 -30
  204. package/src/components/Placeholder/Placeholder.tsx +3 -1
  205. package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +76 -10
  206. package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +87 -13
  207. package/src/components/ProgressIndicator/ProgressIndicator.tsx +20 -10
  208. package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +101 -14
  209. package/src/components/Radio/Radio.stories.mdx +75 -11
  210. package/src/components/Radio/Radio.test.tsx +83 -9
  211. package/src/components/Radio/Radio.tsx +70 -61
  212. package/src/components/Radio/__snapshots__/Radio.test.tsx.snap +168 -10
  213. package/src/components/RadioGroup/RadioGroup.stories.mdx +293 -94
  214. package/src/components/RadioGroup/RadioGroup.test.tsx +193 -68
  215. package/src/components/RadioGroup/RadioGroup.tsx +110 -101
  216. package/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap +1258 -902
  217. package/src/components/SearchBar/SearchBar.stories.mdx +104 -39
  218. package/src/components/SearchBar/{SearchBar.Test.tsx → SearchBar.test.tsx} +66 -6
  219. package/src/components/SearchBar/SearchBar.tsx +23 -13
  220. package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +1039 -0
  221. package/src/components/Select/Select.stories.mdx +151 -62
  222. package/src/components/Select/Select.test.tsx +56 -44
  223. package/src/components/Select/Select.tsx +125 -104
  224. package/src/components/Select/SelectTypes.tsx +5 -0
  225. package/src/components/Select/__snapshots__/Select.test.tsx.snap +749 -409
  226. package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +53 -23
  227. package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +14 -8
  228. package/src/components/SkeletonLoader/SkeletonLoader.tsx +80 -78
  229. package/src/components/SkeletonLoader/SkeletonLoaderTypes.tsx +0 -5
  230. package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +169 -10
  231. package/src/components/Slider/Slider.stories.mdx +123 -41
  232. package/src/components/Slider/Slider.test.tsx +65 -17
  233. package/src/components/Slider/Slider.tsx +34 -24
  234. package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +403 -226
  235. package/src/components/StatusBadge/StatusBadge.stories.mdx +19 -1
  236. package/src/components/StatusBadge/StatusBadge.test.tsx +19 -1
  237. package/src/components/StatusBadge/StatusBadge.tsx +25 -20
  238. package/src/components/StatusBadge/__snapshots__/StatusBadge.test.tsx.snap +22 -3
  239. package/src/components/StructuredContent/StructuredContent.stories.mdx +229 -61
  240. package/src/components/StructuredContent/StructuredContent.test.tsx +162 -101
  241. package/src/components/StructuredContent/StructuredContent.tsx +98 -103
  242. package/src/components/StructuredContent/__snapshots__/StructuredContent.test.tsx.snap +102 -17
  243. package/src/components/StyleGuide/Bidirectionality.stories.mdx +9 -9
  244. package/src/components/StyleGuide/Breakpoints.stories.mdx +6 -6
  245. package/src/components/StyleGuide/Buttons.stories.mdx +2 -12
  246. package/src/components/StyleGuide/ColorCard.tsx +4 -4
  247. package/src/components/StyleGuide/Colors.stories.mdx +34 -20
  248. package/src/components/StyleGuide/DesignTokens.stories.mdx +56 -26
  249. package/src/components/StyleGuide/Forms.stories.mdx +27 -12
  250. package/src/components/StyleGuide/Iconography.stories.mdx +2 -12
  251. package/src/components/StyleGuide/Spacing.stories.mdx +80 -41
  252. package/src/components/StyleGuide/Typography.stories.mdx +47 -33
  253. package/src/components/Table/Table.stories.mdx +38 -11
  254. package/src/components/Table/Table.test.tsx +16 -1
  255. package/src/components/Table/Table.tsx +10 -8
  256. package/src/components/Table/__snapshots__/Table.test.tsx.snap +408 -5
  257. package/src/components/Tabs/Tabs.stories.mdx +59 -10
  258. package/src/components/Tabs/Tabs.test.tsx +29 -11
  259. package/src/components/Tabs/Tabs.tsx +28 -21
  260. package/src/components/Tabs/__snapshots__/Tabs.test.tsx.snap +394 -5
  261. package/src/components/Template/Template.stories.mdx +73 -32
  262. package/src/components/Template/Template.test.tsx +68 -5
  263. package/src/components/Template/Template.tsx +86 -72
  264. package/src/components/Template/__snapshots__/Template.test.tsx.snap +195 -22
  265. package/src/components/Text/Text.stories.mdx +32 -15
  266. package/src/components/Text/Text.test.tsx +14 -11
  267. package/src/components/Text/Text.tsx +13 -16
  268. package/src/components/Text/TextTypes.tsx +1 -1
  269. package/src/components/Text/__snapshots__/Text.test.tsx.snap +21 -4
  270. package/src/components/TextInput/TextInput.stories.mdx +73 -27
  271. package/src/components/TextInput/TextInput.test.tsx +65 -50
  272. package/src/components/TextInput/TextInput.tsx +123 -115
  273. package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +96 -73
  274. package/src/components/Toggle/Toggle.stories.mdx +74 -26
  275. package/src/components/Toggle/Toggle.test.tsx +41 -10
  276. package/src/components/Toggle/Toggle.tsx +31 -27
  277. package/src/components/Toggle/{ToggleSizes.tsx → ToggleTypes.tsx} +1 -1
  278. package/src/components/Toggle/__snapshots__/Toggle.test.tsx.snap +195 -8
  279. package/src/components/VideoPlayer/VideoPlayer.stories.mdx +52 -4
  280. package/src/components/VideoPlayer/VideoPlayer.test.tsx +41 -6
  281. package/src/components/VideoPlayer/VideoPlayer.tsx +134 -120
  282. package/src/components/VideoPlayer/__snapshots__/VideoPlayer.test.tsx.snap +81 -39
  283. package/src/docs/Chakra.stories.mdx +51 -10
  284. package/src/docs/Welcome.stories.mdx +168 -0
  285. package/src/{components/Card/CardTypes.tsx → helpers/enums.ts} +2 -2
  286. package/src/hooks/tests/useNYPLTheme.test.tsx +1 -1
  287. package/src/hooks/useCarouselStyles.stories.mdx +30 -0
  288. package/src/hooks/useCarouselStyles.ts +3 -2
  289. package/src/hooks/useNYPLTheme.stories.mdx +101 -0
  290. package/src/hooks/useNYPLTheme.ts +31 -7
  291. package/src/hooks/useWindowSize.stories.mdx +23 -0
  292. package/src/index.ts +11 -15
  293. package/src/styles/base/_place-holder.scss +3 -1
  294. package/src/styles.scss +0 -2
  295. package/src/theme/components/accordion.ts +7 -12
  296. package/src/theme/components/breadcrumb.ts +7 -0
  297. package/src/theme/components/button.ts +15 -7
  298. package/src/theme/components/card.ts +56 -36
  299. package/src/theme/components/checkbox.ts +12 -14
  300. package/src/theme/components/checkboxGroup.ts +4 -2
  301. package/src/theme/components/componentWrapper.ts +2 -2
  302. package/src/theme/components/customTable.ts +39 -31
  303. package/src/theme/components/fieldset.ts +3 -2
  304. package/src/theme/components/global.ts +42 -33
  305. package/src/theme/components/globalMixins.ts +8 -8
  306. package/src/theme/components/heading.ts +1 -1
  307. package/src/theme/components/helperErrorText.ts +1 -0
  308. package/src/theme/components/hero.ts +14 -16
  309. package/src/theme/components/icon.ts +5 -2
  310. package/src/theme/components/image.ts +1 -1
  311. package/src/theme/components/label.ts +4 -3
  312. package/src/theme/components/list.ts +76 -65
  313. package/src/theme/components/notification.ts +10 -7
  314. package/src/theme/components/pagination.ts +2 -5
  315. package/src/theme/components/progressIndicator.ts +3 -3
  316. package/src/theme/components/radio.ts +11 -14
  317. package/src/theme/components/radioGroup.ts +4 -2
  318. package/src/theme/components/select.ts +37 -18
  319. package/src/theme/components/skeletonLoader.ts +3 -3
  320. package/src/theme/components/slider.ts +19 -15
  321. package/src/theme/components/statusBadge.ts +2 -2
  322. package/src/theme/components/structuredContent.ts +66 -1
  323. package/src/theme/components/tabs.ts +2 -2
  324. package/src/theme/components/template.ts +9 -9
  325. package/src/theme/components/textInput.ts +13 -12
  326. package/src/theme/components/toggle.ts +76 -42
  327. package/src/theme/components/videoPlayer.ts +1 -1
  328. package/src/theme/foundations/colors.ts +20 -13
  329. package/src/theme/foundations/global.ts +17 -5
  330. package/src/theme/foundations/radii.ts +1 -0
  331. package/src/theme/foundations/spacing.ts +70 -22
  332. package/src/theme/foundations/typography.ts +3 -3
  333. package/src/utils/componentCategories.ts +28 -21
  334. package/src/utils/utils.ts +28 -0
  335. package/dist/components/Card/CardTypes.d.ts +0 -4
  336. package/dist/components/CheckboxGroup/CheckboxGroupLayoutTypes.d.ts +0 -4
  337. package/dist/components/Pagination/Pagination.stories.d.ts +0 -13
  338. package/dist/components/RadioGroup/RadioGroupLayoutTypes.d.ts +0 -4
  339. package/dist/components/SearchBar/SearchBar.Test.d.ts +0 -1
  340. package/dist/helpers/generateUUID.d.ts +0 -1
  341. package/src/components/CheckboxGroup/CheckboxGroupLayoutTypes.tsx +0 -4
  342. package/src/components/Pagination/Pagination.stories.tsx +0 -54
  343. package/src/components/RadioGroup/RadioGroupLayoutTypes.tsx +0 -4
  344. package/src/docs/Intro.stories.mdx +0 -53
  345. package/src/helpers/generateUUID.tsx +0 -5
  346. package/src/styles/base/_03-base.scss +0 -25
  347. package/src/styles/base/_04-focus.scss +0 -22
@@ -5,8 +5,8 @@ const secondaryBase = {
5
5
  overflowX: "hidden",
6
6
  content: {
7
7
  ...wrapperStyles,
8
- paddingRight: "s",
9
- paddingLeft: "s",
8
+ paddingRight: "inset.default",
9
+ paddingLeft: "inset.default",
10
10
  display: "flex",
11
11
  flexFlow: {
12
12
  base: "column nowrap",
@@ -25,8 +25,9 @@ const secondaryBase = {
25
25
  },
26
26
  },
27
27
  bodyText: {
28
- marginTop: "xs",
29
- marginRight: { md: "xs" },
28
+ paddingBottom: "inset.default",
29
+ paddingTop: "inset.default",
30
+ paddingRight: { md: "inset.default" },
30
31
  flex: { md: "1 1 50%" },
31
32
  order: { md: "2" },
32
33
  },
@@ -83,10 +84,10 @@ const primary = {
83
84
  md: "0 0 60%",
84
85
  },
85
86
  maxWidth: { md: "960px" },
86
- paddingTop: "xxl",
87
- paddingBottom: "xxl",
88
- paddingRight: "l",
89
- paddingLeft: "l",
87
+ paddingTop: "inset.extrawide",
88
+ paddingBottom: "inset.extrawide",
89
+ paddingRight: "inset.wide",
90
+ paddingLeft: "inset.wide",
90
91
  a: {
91
92
  color: "inherit",
92
93
  display: "inline-block",
@@ -120,10 +121,7 @@ const tertiary = {
120
121
  color: "ui.white",
121
122
  display: "flex",
122
123
  flexFlow: "column nowrap",
123
- paddingTop: "m",
124
- paddingBottom: "m",
125
- paddingRight: "s",
126
- paddingLeft: "s",
124
+ padding: "inset.default",
127
125
  p: {
128
126
  marginBottom: "0",
129
127
  marginTop: "s",
@@ -143,11 +141,11 @@ const campaign = {
143
141
  alignItems: "center",
144
142
  display: "flex",
145
143
  justifyContent: "center",
146
- marginBottom: "xxl",
144
+ marginBottom: ["0", "0", "xxl"],
147
145
  minHeight: "300px",
148
146
  overflow: "visible",
149
147
  padding: {
150
- base: "l",
148
+ base: "inset.wide",
151
149
  md: "0",
152
150
  },
153
151
  position: "relative",
@@ -185,7 +183,7 @@ const campaign = {
185
183
  base: "0 0 100%",
186
184
  md: "0 0 50%",
187
185
  },
188
- padding: "l",
186
+ padding: "inset.wide",
189
187
  maxWidth: { md: "960px" },
190
188
  },
191
189
  };
@@ -221,7 +219,7 @@ const fiftyfifty = {
221
219
  };
222
220
  const Hero = {
223
221
  baseStyle: {
224
- bg: "ui.gray.x-light-warm",
222
+ bg: "ui.gray.x-light-cool",
225
223
  },
226
224
  // Available variants:
227
225
  variants: {
@@ -1,8 +1,8 @@
1
1
  const svgBase = {
2
2
  display: "inline-block",
3
3
  fill: "currentColor",
4
- width: "24px",
5
- height: "24px",
4
+ width: "auto",
5
+ height: "100%",
6
6
  };
7
7
  const align = {
8
8
  none: {},
@@ -40,6 +40,9 @@ const size = {
40
40
  height: "var(--nypl-space-m)",
41
41
  width: "var(--nypl-space-m)",
42
42
  },
43
+ default: {
44
+ width: "100%",
45
+ },
43
46
  medium: {
44
47
  height: "1.125rem",
45
48
  width: "1.125rem",
@@ -85,6 +85,7 @@ const CustomImage = {
85
85
  },
86
86
  figcaption: {
87
87
  fontStyle: "italic",
88
+ fontSize: "text.tag",
88
89
  },
89
90
  img: {
90
91
  display: "block",
@@ -96,7 +97,6 @@ const CustomImage = {
96
97
  },
97
98
  captionWrappers: {
98
99
  marginBottom: "xxs",
99
- fontSize: "text.caption",
100
100
  },
101
101
  }),
102
102
  };
@@ -1,10 +1,11 @@
1
1
  import { labelLegendText } from "./global";
2
2
 
3
3
  const Label = {
4
- parts: ["helper"],
5
- baseStyle: {
4
+ baseStyle: ({ isInlined }) => ({
6
5
  ...labelLegendText,
7
- },
6
+ flex: isInlined ? "1" : null,
7
+ whiteSpace: isInlined ? "nowrap" : null,
8
+ }),
8
9
  };
9
10
 
10
11
  export default Label;
@@ -1,71 +1,82 @@
1
- const List = {
2
- baseStyle: ({ inline, noStyling }) => ({
3
- // Browser automatically applies margin, so by default we unset it.
4
- margin: noStyling ? "0" : "unset",
5
- listStyle: noStyling ? "none" : null,
6
- marginInlineStart: "unset",
7
- paddingLeft: noStyling ? "0" : "l",
8
- padding: noStyling ? "0" : null,
9
- display: inline ? "flex" : null,
10
- li: {
11
- marginRight: inline ? "m" : null,
12
- listStyleType: inline ? "none" : null,
13
- _notFirst: {
14
- marginTop: inline ? null : "xxs",
15
- },
1
+ import { textMargin } from "./global";
2
+
3
+ export const baseListStyles = (inline = false, noStyling = false) => ({
4
+ // Browser automatically applies margin, so by default we unset it.
5
+ margin: noStyling ? "0" : "unset",
6
+ listStyle: noStyling ? "none" : null,
7
+ marginInlineStart: "unset",
8
+ paddingLeft: noStyling ? "0" : "l",
9
+ padding: noStyling ? "0" : null,
10
+ display: inline ? "flex" : null,
11
+ li: {
12
+ marginRight: inline ? "xs" : null,
13
+ listStyleType: inline ? "none" : null,
14
+ _notFirst: {
15
+ marginTop: inline ? null : "xxs",
16
16
  },
17
- }),
18
- variants: {
19
- ul: ({ noStyling }) => ({
20
- listStyle: "none",
21
- li: {
22
- _before: {
23
- color: "ui.gray.medium",
24
- // \2022 is the CSS Code/unicode for a bullet.
25
- content: noStyling ? "unset" : `"\\2022"`,
26
- // Needed to add space between the bullet and the text.
27
- display: "inline-block",
28
- fontWeight: "bold",
29
- fontSize: "2",
30
- lineHeight: "0.9",
31
- marginLeft: "-1rem",
32
- width: "1rem",
33
- },
34
- },
35
- }),
36
- dl: {
37
- borderBottom: "1px solid",
38
- borderColor: "ui.gray.light-cool",
39
- paddingLeft: "0",
40
- h2: {
41
- borderTop: "3px solid",
42
- borderColor: "section.research.primary",
43
- margin: "0",
44
- padding: "var(--nypl-space-xs) 0 0",
45
- },
46
- dl: {
47
- display: "grid",
48
- gridTemplateColumns: { base: "100%", md: "max(250px) 1fr" },
49
- gridTemplateRows: "1fr",
50
- margin: "var(--nypl-space-xs) 0 0",
51
- },
52
- dt: {
53
- borderTop: "1px solid",
54
- borderColor: "ui.gray.light-cool",
55
- fontWeight: "label.default",
56
- paddingBottom: { base: "0", md: "s" },
57
- paddingTop: "s",
58
- paddingRight: { md: "m" },
59
- },
60
- dd: {
61
- margin: "0",
62
- paddingBottom: "s",
63
- borderTop: { base: "none", md: "1px solid" },
64
- borderColor: { md: "ui.gray.light-cool" },
65
- paddingTop: { md: "s" },
66
- },
17
+ },
18
+ });
19
+ export const baseUnorderedStyles = (noStyling = false) => ({
20
+ ...textMargin,
21
+ listStyle: "none",
22
+ li: {
23
+ _before: {
24
+ color: "ui.gray.medium",
25
+ // \2022 is the CSS Code/unicode for a bullet.
26
+ content: noStyling ? "unset" : `"\\2022"`,
27
+ // Needed to add space between the bullet and the text.
28
+ display: "inline-block",
29
+ fontWeight: "bold",
30
+ fontSize: "2",
31
+ lineHeight: "0.9",
32
+ marginLeft: "-1rem",
33
+ width: "1rem",
67
34
  },
68
35
  },
36
+ });
37
+ export const baseSectionDefinitionStyles = {
38
+ borderBottom: "1px solid",
39
+ borderColor: "ui.gray.light-cool",
40
+ paddingLeft: "0",
41
+ h2: {
42
+ borderTop: "3px solid",
43
+ borderColor: "section.research.primary",
44
+ margin: "0",
45
+ padding: "var(--nypl-space-xs) 0 0",
46
+ },
47
+ };
48
+ export const baseDefinitionStyles = {
49
+ ...baseSectionDefinitionStyles,
50
+ dl: {
51
+ display: "grid",
52
+ gridTemplateColumns: { base: "100%", md: "max(250px) 1fr" },
53
+ gridTemplateRows: "1fr",
54
+ margin: "var(--nypl-space-xs) 0 0",
55
+ },
56
+ dt: {
57
+ borderTop: "1px solid",
58
+ borderColor: "ui.gray.light-cool",
59
+ fontWeight: "label.default",
60
+ paddingBottom: { base: "0", md: "s" },
61
+ paddingTop: "s",
62
+ paddingRight: { md: "table.column" },
63
+ },
64
+ dd: {
65
+ margin: "0",
66
+ paddingBottom: "s",
67
+ borderTop: { base: "none", md: "1px solid" },
68
+ borderColor: { md: "ui.gray.light-cool" },
69
+ paddingTop: { md: "s" },
70
+ },
71
+ };
72
+
73
+ const List = {
74
+ baseStyle: ({ inline, noStyling }) => baseListStyles(inline, noStyling),
75
+ variants: {
76
+ ul: ({ noStyling }) => baseUnorderedStyles(noStyling),
77
+ ol: textMargin,
78
+ dl: baseDefinitionStyles,
79
+ },
69
80
  };
70
81
 
71
82
  export default List;
@@ -2,7 +2,7 @@ import { NotificationTypes } from "../../components/Notification/NotificationTyp
2
2
 
3
3
  const Notification = {
4
4
  parts: ["container", "dismissibleButton", "icon"],
5
- baseStyle: ({ centered, dismissible, noMargin, notificationType }) => {
5
+ baseStyle: ({ dismissible, isCentered, noMargin, notificationType }) => {
6
6
  let bg = "ui.status.primary";
7
7
  if (
8
8
  notificationType === NotificationTypes.Announcement ||
@@ -13,17 +13,17 @@ const Notification = {
13
13
  return {
14
14
  bg,
15
15
  display: "flex",
16
- fontSize: "-1", // slightly smaller than the default size
16
+ fontSize: "text.caption", // slightly smaller than the default size
17
17
  position: "relative",
18
- textAlign: centered ? "center" : null,
18
+ textAlign: isCentered ? "center" : null,
19
19
  borderRadius: noMargin ? "0" : "4px",
20
20
  margin: noMargin ? "0" : "s",
21
21
  container: {
22
22
  margin: "auto",
23
23
  maxWidth: "var(--nypl-breakpoint-xl)",
24
- padding: "s",
24
+ padding: "inset.default",
25
25
  paddingRight: dismissible ? "l" : null,
26
- paddingLeft: centered && dismissible ? "l" : null,
26
+ paddingLeft: isCentered && dismissible ? "l" : null,
27
27
  width: "100%",
28
28
  },
29
29
  dismissibleButton: {
@@ -38,6 +38,9 @@ const Notification = {
38
38
  position: "absolute",
39
39
  right: "0",
40
40
  top: "0",
41
+ svg: {
42
+ marginTop: "0",
43
+ },
41
44
  _hover: {
42
45
  bg: "inherit",
43
46
  },
@@ -78,7 +81,7 @@ const NotificationContent = {
78
81
 
79
82
  const NotificationHeading = {
80
83
  parts: ["heading"],
81
- baseStyle: ({ centered, icon, notificationType }) => {
84
+ baseStyle: ({ icon, isCentered, notificationType }) => {
82
85
  let color = "ui.black";
83
86
  if (notificationType === NotificationTypes.Announcement) {
84
87
  color = "section.research.secondary";
@@ -88,7 +91,7 @@ const NotificationHeading = {
88
91
  return {
89
92
  display: "flex",
90
93
  marginBottom: "xxs",
91
- justifyContent: centered ? "center" : null,
94
+ justifyContent: isCentered ? "center" : null,
92
95
  heading: {
93
96
  marginBottom: "0",
94
97
  marginTop: icon ? "xxxs" : "0",
@@ -1,7 +1,6 @@
1
1
  const Pagination = {
2
2
  parts: ["link"],
3
3
  baseStyle: {
4
- marginBottom: "l",
5
4
  alignItems: "stretch",
6
5
  display: "flex",
7
6
  width: "100%",
@@ -9,10 +8,8 @@ const Pagination = {
9
8
  lineHeight: "1.15",
10
9
  textDecoration: "none",
11
10
  },
12
- li: {
13
- _first: {
14
- marginTop: "xxs",
15
- },
11
+ ul: {
12
+ marginBottom: "0",
16
13
  },
17
14
  },
18
15
  };
@@ -15,8 +15,8 @@ const ProgressIndicator = {
15
15
  // Note: we have to target the SVG HTMl elements in order
16
16
  // to override the default styles.
17
17
  svg: {
18
- height: size === ProgressIndicatorSizes.Small ? "24px" : "48px",
19
- width: size === ProgressIndicatorSizes.Small ? "24px" : "48px",
18
+ height: size === ProgressIndicatorSizes.Default ? "48px" : "24px",
19
+ width: size === ProgressIndicatorSizes.Default ? "48px" : "24px",
20
20
  display: "block",
21
21
  circle: {
22
22
  _first: {
@@ -44,7 +44,7 @@ const ProgressIndicator = {
44
44
  bg: darkMode ? "ui.gray.dark" : "ui.gray.light-cool",
45
45
  height: {
46
46
  base: "4px",
47
- md: size === ProgressIndicatorSizes.Small ? "4px" : "8px",
47
+ md: size === ProgressIndicatorSizes.Default ? "8px" : "4px",
48
48
  },
49
49
  },
50
50
  linearContainer: {
@@ -1,7 +1,8 @@
1
1
  import {
2
+ activeFocus,
2
3
  checkboxRadioLabelStyles,
3
4
  checkboxRadioControlSize,
4
- checkboxRadioHelperStyle,
5
+ checkboxRadioHelperErrorTextStyle,
5
6
  } from "./global";
6
7
 
7
8
  // Style object for the Radio's "control" or visual icon.
@@ -19,12 +20,10 @@ const baseStyleControl = {
19
20
  borderColor: "ui.focus",
20
21
  color: "ui.white",
21
22
  _disabled: {
22
- color: "ui.gray.medium",
23
- borderColor: "ui.gray.medium",
23
+ borderColor: "ui.disabled.primary",
24
24
  bg: "ui.white",
25
-
26
25
  _before: {
27
- bg: "ui.gray.medium",
26
+ bg: "ui.disabled.primary",
28
27
  },
29
28
  },
30
29
  _invalid: {
@@ -49,10 +48,11 @@ const baseStyleControl = {
49
48
  },
50
49
  },
51
50
  _disabled: {
52
- borderColor: "ui.gray.medium",
51
+ borderColor: "ui.disabled.primary",
53
52
  bg: "ui.white",
54
53
  },
55
54
  _focus: {
55
+ ...activeFocus(),
56
56
  boxShadow: "outline",
57
57
  borderColor: "ui.focus",
58
58
  },
@@ -67,21 +67,17 @@ const baseStyleControl = {
67
67
  };
68
68
 
69
69
  // Style object for the Radio's label
70
- const baseStyleLabel = {
71
- ...checkboxRadioLabelStyles,
72
- };
70
+ const baseStyleLabel = checkboxRadioLabelStyles;
73
71
 
74
72
  // Style object for the Radio's helper text
75
- const baseStyleHelper = {
76
- ...checkboxRadioHelperStyle,
77
- };
73
+ const baseStyleHelperErrorText = checkboxRadioHelperErrorTextStyle;
78
74
 
79
75
  const baseStyle = {
80
76
  // Chakra-inserted elements in the Chakra Radio component
81
77
  control: baseStyleControl,
82
78
  label: baseStyleLabel,
83
79
  // Custom element in the DS Radio component.
84
- helper: baseStyleHelper,
80
+ helperErrorText: baseStyleHelperErrorText,
85
81
  };
86
82
 
87
83
  // Sticking to "md" for the default size.
@@ -90,11 +86,12 @@ const sizes = {
90
86
  control: {
91
87
  ...checkboxRadioControlSize,
92
88
  },
89
+ label: { fontSize: "label.default" },
93
90
  },
94
91
  };
95
92
 
96
93
  const Radio = {
97
- parts: ["control", "label", "helper"],
94
+ parts: ["control", "helperErrorText", "label"],
98
95
  baseStyle,
99
96
  sizes,
100
97
  // Default values
@@ -1,8 +1,10 @@
1
1
  import { checkboxRadioGroupStyles } from "./global";
2
2
 
3
3
  const RadioGroup = {
4
- parts: ["helper", "stack"],
5
- baseStyle: checkboxRadioGroupStyles,
4
+ parts: ["helperErrorText", "stack"],
5
+ baseStyle: ({ isFullWidth = false }) => ({
6
+ ...checkboxRadioGroupStyles(isFullWidth),
7
+ }),
6
8
  };
7
9
 
8
10
  export default RadioGroup;
@@ -1,23 +1,25 @@
1
- import { activeFocus, helperTextMargin } from "./global";
1
+ import {
2
+ selectTextInputDisabledStyles,
3
+ selectTextInputFocusStyles,
4
+ } from "./global";
2
5
 
3
6
  const select = {
4
7
  backgroundColor: "ui.white",
5
8
  borderRadius: "sm",
6
9
  borderColor: "ui.gray.medium",
7
- paddingTop: "xs",
8
- paddingRight: "xl",
9
- paddingBottom: "xs",
10
- paddingLeft: "s",
10
+ fontSize: "text.caption",
11
+ paddingTop: "inset.narrow",
12
+ paddingRight: "inset.extrawide",
13
+ paddingBottom: "inset.narrow",
14
+ paddingLeft: "inset.default",
11
15
  _hover: {
12
- borderColor: "ui.gray.medium",
16
+ borderColor: "ui.gray.dark",
13
17
  },
14
- _active: activeFocus,
15
- _focus: activeFocus,
18
+ _active: selectTextInputFocusStyles,
16
19
  _disabled: {
17
- color: "ui.gray.xdark",
18
- bg: "ui.gray.xx-light-cool",
19
- opacity: "1",
20
+ ...selectTextInputDisabledStyles,
20
21
  },
22
+ _focus: selectTextInputFocusStyles,
21
23
  _invalid: {
22
24
  border: "1px solid",
23
25
  borderColor: "ui.error.primary",
@@ -26,13 +28,30 @@ const select = {
26
28
  };
27
29
 
28
30
  const Select = {
29
- parts: ["select", "helper"],
30
- baseStyle: {
31
- marginBottom: "xs",
32
- helper: {
33
- ...helperTextMargin,
34
- },
35
- select,
31
+ parts: ["helperText", "inline", "select"],
32
+ baseStyle: ({ labelPosition, labelWidth }) => {
33
+ return {
34
+ marginBottom: "xs",
35
+ // The backgroundColor set to "ui.white" hides the arrow SVG icon when
36
+ // the component is focused. The background is added for dark mode and
37
+ // so we need to add specific selector.
38
+ ".chakra-select__icon-wrapper": {
39
+ zIndex: "9999",
40
+ },
41
+ helperText: {
42
+ marginLeft:
43
+ labelPosition === "inline" ? { md: `${labelWidth}px` } : null,
44
+ },
45
+ inline: {
46
+ display: { md: "flex" },
47
+ gap: { md: "var(--nypl-space-xs)" },
48
+ alignItems: { md: "flex-end" },
49
+ },
50
+ select: {
51
+ ...select,
52
+ flex: labelPosition === "inline" ? { md: "1" } : null,
53
+ },
54
+ };
36
55
  },
37
56
  variants: {
38
57
  searchbar: {
@@ -23,8 +23,8 @@ const imageRowHeightStyles = {
23
23
  // NYPL's skeleton loader component.
24
24
  const SkeletonLoader = {
25
25
  parts: ["section", "image", "container", "heading", "content", "button"],
26
- baseStyle: ({ border, imageAspectRatio }) => {
27
- const borderStyles = border ? { ...borderRules } : {};
26
+ baseStyle: ({ imageAspectRatio, isBordered }) => {
27
+ const borderStyles = isBordered ? { ...borderRules } : {};
28
28
 
29
29
  return {
30
30
  margin: "auto",
@@ -99,7 +99,7 @@ const fade = () =>
99
99
  const Skeleton = {
100
100
  baseStyle: {
101
101
  borderRadius: "2px",
102
- background: "ui.gray.light-warm",
102
+ background: "ui.gray.light-cool",
103
103
  animation: `${fade()} 1000ms cubic-bezier(0.25, -0.5, 1, 0) infinite`,
104
104
  },
105
105
  };
@@ -3,25 +3,25 @@ const staticValues = {
3
3
  marginTop: "xs",
4
4
  marginBottom: "xs",
5
5
  marginRight: "s",
6
- marginLeft: "s",
6
+ marginLeft: "0",
7
7
  };
8
8
  const CustomSlider = {
9
9
  parts: [
10
10
  "container",
11
- "helper",
12
11
  "leftValue",
13
12
  "rightValue",
14
13
  "textInput",
14
+ "sliderContainer",
15
15
  "filledTrack",
16
16
  "track",
17
17
  "thumb",
18
18
  ],
19
- baseStyle: ({ isDisabled, isInvalid, isRangeSlider, showBoxes }) => {
19
+ baseStyle: ({ isDisabled, isInvalid, showBoxes, showValues }) => {
20
20
  let baseColor = "ui.link.primary";
21
21
  if (isInvalid) {
22
22
  baseColor = "ui.error.primary";
23
23
  } else if (isDisabled) {
24
- baseColor = "ui.gray.light-cool";
24
+ baseColor = "ui.disabled.primary";
25
25
  }
26
26
 
27
27
  return {
@@ -29,21 +29,14 @@ const CustomSlider = {
29
29
  display: "flex",
30
30
  alignItems: "center",
31
31
  },
32
- helper: {
33
- marginTop: "xs",
34
- },
35
- leftValue: {
36
- ...staticValues,
37
- // If the text input boxes are shown, then there already is a
38
- // margin, so we can set this static value to "0". But for the
39
- // single Slider, we *do* need the margin set.
40
- marginLeft: showBoxes && isRangeSlider ? "0" : "s",
41
- },
32
+ leftValue: { ...staticValues, color: isDisabled ? "ui.gray.dark" : null },
42
33
  rightValue: {
43
34
  ...staticValues,
35
+ marginLeft: "s",
44
36
  // If the text input boxes are shown, then there already is
45
37
  // a margin, so we can set this static value to "0".
46
38
  marginRight: showBoxes ? "0" : "s",
39
+ color: isDisabled ? "ui.gray.dark" : null,
47
40
  },
48
41
  textInput: {
49
42
  // Allows for three or more digits present in the
@@ -51,6 +44,13 @@ const CustomSlider = {
51
44
  minWidth: "65px",
52
45
  color: isInvalid ? "ui.error.primary" : "ui.black",
53
46
  },
47
+ // This is added to the container so that the slider thumbs don't
48
+ // overflow past the container when the value boxes or min/max values
49
+ // are not shown.
50
+ sliderContainer: {
51
+ marginLeft: !showValues ? "xs" : null,
52
+ marginRight: !showBoxes && !showValues ? "xs" : null,
53
+ },
54
54
  // Filled track doesn't have a _disabled or _invalid state...
55
55
  // so we manually do it through the props.
56
56
  filledTrack: {
@@ -59,7 +59,7 @@ const CustomSlider = {
59
59
  track: {
60
60
  bgColor: "ui.gray.light-cool",
61
61
  _disabled: {
62
- bgColor: "ui.gray.light-cool",
62
+ bgColor: "ui.disabled.primary",
63
63
  },
64
64
  },
65
65
  thumb: {
@@ -71,6 +71,10 @@ const CustomSlider = {
71
71
  _active: {
72
72
  transform: "translateY(-50%) scale(1.0)",
73
73
  },
74
+ _disabled: {
75
+ bgColor: "ui.disabled.secondary",
76
+ borderColor: "ui.disabled.primary",
77
+ },
74
78
  },
75
79
  };
76
80
  },
@@ -5,8 +5,8 @@ const StatusBadge = {
5
5
  display: "block",
6
6
  fontSize: "-1", // slightly smaller than the default size
7
7
  fontStyle: "italic",
8
- py: "xxs",
9
- px: "xs",
8
+ py: "inset.extranarrow",
9
+ px: "inset.narrow",
10
10
  textAlign: "center",
11
11
  width: "fit-content",
12
12
  },