@nypl/design-system-react-components 2.0.0 → 2.0.1

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 (279) hide show
  1. package/README.md +466 -17
  2. package/dist/design-system-react-components.cjs +528 -0
  3. package/dist/design-system-react-components.js +37569 -0
  4. package/dist/src/components/Accordion/Accordion.d.ts +29 -0
  5. package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +23 -0
  6. package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +43 -0
  7. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +24 -0
  8. package/dist/src/components/Button/Button.d.ts +35 -0
  9. package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +25 -0
  10. package/dist/src/components/Card/Card.d.ts +55 -0
  11. package/dist/src/components/Checkbox/Checkbox.d.ts +47 -0
  12. package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +51 -0
  13. package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +31 -0
  14. package/dist/src/components/DatePicker/DatePicker.d.ts +82 -0
  15. package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +64 -0
  16. package/dist/src/components/FeedbackBox/useFeedbackBoxReducer.d.ts +19 -0
  17. package/dist/src/components/Fieldset/Fieldset.d.ts +24 -0
  18. package/dist/src/components/Form/Form.d.ts +31 -0
  19. package/dist/src/components/Grid/SimpleGrid.d.ts +20 -0
  20. package/dist/src/components/Heading/Heading.d.ts +42 -0
  21. package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +34 -0
  22. package/dist/src/components/Hero/Hero.d.ts +49 -0
  23. package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +11 -0
  24. package/dist/src/components/Icons/Icon.d.ts +41 -0
  25. package/dist/src/components/Icons/IconSvgs.d.ts +196 -0
  26. package/dist/src/components/Icons/iconVariables.d.ts +6 -0
  27. package/dist/src/components/Image/Image.d.ts +68 -0
  28. package/dist/src/components/Label/Label.d.ts +25 -0
  29. package/dist/src/components/Link/Link.d.ts +32 -0
  30. package/dist/src/components/List/List.d.ts +43 -0
  31. package/dist/src/components/Logo/Logo.d.ts +29 -0
  32. package/dist/src/components/Logo/LogoSvgs.d.ts +166 -0
  33. package/dist/src/components/Logo/logoVariables.d.ts +2 -0
  34. package/dist/src/components/Modal/Modal.d.ts +35 -0
  35. package/dist/src/components/Notification/Notification.d.ts +52 -0
  36. package/dist/src/components/Pagination/Pagination.d.ts +27 -0
  37. package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +32 -0
  38. package/dist/src/components/Radio/Radio.d.ts +43 -0
  39. package/dist/src/components/RadioGroup/RadioGroup.d.ts +51 -0
  40. package/dist/src/components/SearchBar/SearchBar.d.ts +58 -0
  41. package/dist/src/components/Select/Select.d.ts +59 -0
  42. package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +42 -0
  43. package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +19 -0
  44. package/dist/src/components/Slider/Slider.d.ts +65 -0
  45. package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +42 -0
  46. package/dist/src/components/SocialMediaLinks/SocialMediaLinksUtils.d.ts +7 -0
  47. package/dist/src/components/StatusBadge/StatusBadge.d.ts +19 -0
  48. package/dist/src/components/StructuredContent/StructuredContent.d.ts +30 -0
  49. package/dist/src/components/StyleGuide/ColorCard.d.ts +348 -0
  50. package/dist/src/components/StyledList/StyledList.d.ts +26 -0
  51. package/dist/src/components/Table/Table.d.ts +32 -0
  52. package/dist/src/components/Tabs/Tabs.d.ts +28 -0
  53. package/dist/src/components/TagSet/TagSet.d.ts +24 -0
  54. package/dist/src/components/TagSet/TagSetExplore.d.ts +28 -0
  55. package/dist/src/components/TagSet/TagSetFilter.d.ts +25 -0
  56. package/dist/src/components/TagSet/TooltipWrapper.d.ts +9 -0
  57. package/dist/src/components/Template/Template.d.ts +140 -0
  58. package/dist/src/components/Text/Text.d.ts +27 -0
  59. package/dist/src/components/TextInput/TextInput.d.ts +89 -0
  60. package/dist/src/components/Toggle/Toggle.d.ts +43 -0
  61. package/dist/src/components/Tooltip/Tooltip.d.ts +17 -0
  62. package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +42 -0
  63. package/dist/src/helpers/types.d.ts +2 -0
  64. package/dist/src/hooks/useCarouselStyles.d.ts +17 -0
  65. package/dist/src/hooks/useCloseDropDown.d.ts +7 -0
  66. package/dist/src/hooks/useNYPLBreakpoints.d.ts +13 -0
  67. package/dist/src/hooks/useNYPLTheme.d.ts +75 -0
  68. package/dist/src/hooks/useStateWithDependencies.d.ts +5 -0
  69. package/dist/src/hooks/useWindowSize.d.ts +10 -0
  70. package/dist/src/index.d.ts +83 -0
  71. package/dist/src/theme/components/accordion.d.ts +34 -0
  72. package/dist/src/theme/components/alphabetFilter.d.ts +40 -0
  73. package/dist/src/theme/components/audioPlayer.d.ts +16 -0
  74. package/dist/src/theme/components/breadcrumb.d.ts +158 -0
  75. package/dist/src/theme/components/button.d.ts +152 -0
  76. package/dist/src/theme/components/buttonGroup.d.ts +11 -0
  77. package/dist/src/theme/components/card.d.ts +485 -0
  78. package/dist/src/theme/components/checkbox.d.ts +178 -0
  79. package/dist/src/theme/components/checkboxGroup.d.ts +14 -0
  80. package/dist/src/theme/components/componentWrapper.d.ts +12 -0
  81. package/dist/src/theme/components/customTable.d.ts +739 -0
  82. package/dist/src/theme/components/datePicker.d.ts +17 -0
  83. package/dist/src/theme/components/feedbackBox.d.ts +100 -0
  84. package/dist/src/theme/components/fieldset.d.ts +24 -0
  85. package/dist/src/theme/components/filterBar.d.ts +46 -0
  86. package/dist/src/theme/components/global.d.ts +141 -0
  87. package/dist/src/theme/components/globalMixins.d.ts +40 -0
  88. package/dist/src/theme/components/heading.d.ts +372 -0
  89. package/dist/src/theme/components/helperErrorText.d.ts +18 -0
  90. package/dist/src/theme/components/hero.d.ts +639 -0
  91. package/dist/src/theme/components/horizontalRule.d.ts +18 -0
  92. package/dist/src/theme/components/icon.d.ts +62251 -0
  93. package/dist/src/theme/components/image.d.ts +754 -0
  94. package/dist/src/theme/components/label.d.ts +22 -0
  95. package/dist/src/theme/components/link.d.ts +152 -0
  96. package/dist/src/theme/components/list.d.ts +230 -0
  97. package/dist/src/theme/components/logo.d.ts +477 -0
  98. package/dist/src/theme/components/modal.d.ts +27 -0
  99. package/dist/src/theme/components/multiSelect.d.ts +29 -0
  100. package/dist/src/theme/components/multiSelectMenuButton.d.ts +99 -0
  101. package/dist/src/theme/components/notification.d.ts +137 -0
  102. package/dist/src/theme/components/pagination.d.ts +19 -0
  103. package/dist/src/theme/components/progressIndicator.d.ts +69 -0
  104. package/dist/src/theme/components/radio.d.ts +202 -0
  105. package/dist/src/theme/components/radioGroup.d.ts +14 -0
  106. package/dist/src/theme/components/searchBar.d.ts +34 -0
  107. package/dist/src/theme/components/select.d.ts +126 -0
  108. package/dist/src/theme/components/skeletonLoader.d.ts +105 -0
  109. package/dist/src/theme/components/skipNavigation.d.ts +28 -0
  110. package/dist/src/theme/components/slider.d.ts +78 -0
  111. package/dist/src/theme/components/socialmedialinks.d.ts +192 -0
  112. package/dist/src/theme/components/statusBadge.d.ts +37 -0
  113. package/dist/src/theme/components/structuredContent.d.ts +454 -0
  114. package/dist/src/theme/components/styledList.d.ts +51 -0
  115. package/dist/src/theme/components/tabs.d.ts +172 -0
  116. package/dist/src/theme/components/tagSet.d.ts +154 -0
  117. package/dist/src/theme/components/template.d.ts +98 -0
  118. package/dist/src/theme/components/text.d.ts +59 -0
  119. package/dist/src/theme/components/textInput.d.ts +360 -0
  120. package/dist/src/theme/components/toggle.d.ts +129 -0
  121. package/dist/src/theme/components/tooltip.d.ts +21 -0
  122. package/dist/src/theme/components/videoPlayer.d.ts +47 -0
  123. package/dist/src/theme/foundations/breakpoints.d.ts +23 -0
  124. package/dist/src/theme/foundations/colors.d.ts +3 -0
  125. package/dist/src/theme/foundations/global.d.ts +68 -0
  126. package/dist/src/theme/foundations/radii.d.ts +11 -0
  127. package/dist/src/theme/foundations/shadows.d.ts +4 -0
  128. package/dist/src/theme/foundations/spacing.d.ts +96 -0
  129. package/dist/src/theme/foundations/typography.d.ts +8 -0
  130. package/dist/src/theme/index.d.ts +20 -0
  131. package/dist/src/theme/internalChakraProvider.d.ts +67 -0
  132. package/dist/src/theme/provider.d.ts +4 -0
  133. package/dist/src/theme/types.d.ts +1 -0
  134. package/dist/src/utils/colorUtils.d.ts +5 -0
  135. package/dist/src/utils/interfaces.d.ts +5 -0
  136. package/dist/src/utils/utils.d.ts +41 -0
  137. package/dist/styles.css +1 -0
  138. package/package.json +129 -24
  139. package/CHANGELOG.md +0 -139
  140. package/dist/design-system-react-components.min.js +0 -23
  141. package/dist/design-system-react-components.min.js.map +0 -1
  142. package/lib/components/00-base/Container/Container.d.ts +0 -6
  143. package/lib/components/00-base/Container/Container.js +0 -19
  144. package/lib/components/00-base/Container/Modal.d.ts +0 -12
  145. package/lib/components/00-base/Container/Modal.js +0 -29
  146. package/lib/components/00-base/Container/Modal.stories.d.ts +0 -7
  147. package/lib/components/00-base/Container/Modal.stories.js +0 -20
  148. package/lib/components/00-base/Placeholder.d.ts +0 -10
  149. package/lib/components/00-base/Placeholder.js +0 -23
  150. package/lib/components/00-base/SectionName.d.ts +0 -4
  151. package/lib/components/00-base/SectionName.js +0 -16
  152. package/lib/components/01-atoms/Button/Button.d.ts +0 -52
  153. package/lib/components/01-atoms/Button/Button.js +0 -76
  154. package/lib/components/01-atoms/Button/Button.stories.d.ts +0 -14
  155. package/lib/components/01-atoms/Button/Button.stories.js +0 -33
  156. package/lib/components/01-atoms/Button/ButtonTypes.d.ts +0 -10
  157. package/lib/components/01-atoms/Button/ButtonTypes.js +0 -14
  158. package/lib/components/01-atoms/Forms/Checkbox.d.ts +0 -21
  159. package/lib/components/01-atoms/Forms/Checkbox.js +0 -27
  160. package/lib/components/01-atoms/Forms/Checkbox.stories.d.ts +0 -7
  161. package/lib/components/01-atoms/Forms/Checkbox.stories.js +0 -23
  162. package/lib/components/01-atoms/Forms/DateRangeForm.d.ts +0 -31
  163. package/lib/components/01-atoms/Forms/DateRangeForm.js +0 -27
  164. package/lib/components/01-atoms/Forms/DateRangeForm.stories.d.ts +0 -9
  165. package/lib/components/01-atoms/Forms/DateRangeForm.stories.js +0 -23
  166. package/lib/components/01-atoms/Forms/FormDropdown.d.ts +0 -22
  167. package/lib/components/01-atoms/Forms/FormDropdown.js +0 -64
  168. package/lib/components/01-atoms/Forms/FormDropdown.stories.d.ts +0 -8
  169. package/lib/components/01-atoms/Forms/FormDropdown.stories.js +0 -22
  170. package/lib/components/01-atoms/Forms/HelperErrorText.d.ts +0 -26
  171. package/lib/components/01-atoms/Forms/HelperErrorText.js +0 -29
  172. package/lib/components/01-atoms/Forms/HelperErrorText.stories.d.ts +0 -9
  173. package/lib/components/01-atoms/Forms/HelperErrorText.stories.js +0 -23
  174. package/lib/components/01-atoms/Forms/Input.d.ts +0 -47
  175. package/lib/components/01-atoms/Forms/Input.js +0 -39
  176. package/lib/components/01-atoms/Forms/Input.stories.d.ts +0 -10
  177. package/lib/components/01-atoms/Forms/Input.stories.js +0 -22
  178. package/lib/components/01-atoms/Forms/Label.d.ts +0 -19
  179. package/lib/components/01-atoms/Forms/Label.js +0 -22
  180. package/lib/components/01-atoms/Forms/Label.stories.d.ts +0 -7
  181. package/lib/components/01-atoms/Forms/Label.stories.js +0 -20
  182. package/lib/components/01-atoms/Forms/TextField.d.ts +0 -26
  183. package/lib/components/01-atoms/Forms/TextField.js +0 -36
  184. package/lib/components/01-atoms/Forms/TextField.stories.d.ts +0 -7
  185. package/lib/components/01-atoms/Forms/TextField.stories.js +0 -20
  186. package/lib/components/01-atoms/Images/Icons/Icon.d.ts +0 -14
  187. package/lib/components/01-atoms/Images/Icons/Icon.js +0 -38
  188. package/lib/components/01-atoms/Images/Image/Image.d.ts +0 -8
  189. package/lib/components/01-atoms/Images/Image/Image.js +0 -32
  190. package/lib/components/01-atoms/Images/Image/Image.stories.d.ts +0 -8
  191. package/lib/components/01-atoms/Images/Image/Image.stories.js +0 -24
  192. package/lib/components/01-atoms/Links/BasicLink.d.ts +0 -15
  193. package/lib/components/01-atoms/Links/BasicLink.js +0 -50
  194. package/lib/components/01-atoms/Links/BasicLink.stories.d.ts +0 -8
  195. package/lib/components/01-atoms/Links/BasicLink.stories.js +0 -21
  196. package/lib/components/01-atoms/Links/IconLink.d.ts +0 -13
  197. package/lib/components/01-atoms/Links/IconLink.js +0 -44
  198. package/lib/components/01-atoms/Links/IconLink.stories.d.ts +0 -10
  199. package/lib/components/01-atoms/Links/IconLink.stories.js +0 -24
  200. package/lib/components/01-atoms/Links/Link.d.ts +0 -13
  201. package/lib/components/01-atoms/Links/Link.js +0 -51
  202. package/lib/components/01-atoms/Links/UnderlineLink.d.ts +0 -11
  203. package/lib/components/01-atoms/Links/UnderlineLink.js +0 -29
  204. package/lib/components/01-atoms/Links/UnderlineLink.stories.d.ts +0 -8
  205. package/lib/components/01-atoms/Links/UnderlineLink.stories.js +0 -21
  206. package/lib/components/01-atoms/Text/Headings/Heading.d.ts +0 -16
  207. package/lib/components/01-atoms/Text/Headings/Heading.js +0 -40
  208. package/lib/components/01-atoms/Text/Headings/Heading.stories.d.ts +0 -12
  209. package/lib/components/01-atoms/Text/Headings/Heading.stories.js +0 -35
  210. package/lib/components/01-atoms/Text/Headings/RNSectionTitle.d.ts +0 -2
  211. package/lib/components/01-atoms/Text/Headings/RNSectionTitle.js +0 -18
  212. package/lib/components/01-atoms/Text/Headings/RNSectionTitle.stories.d.ts +0 -7
  213. package/lib/components/01-atoms/Text/Headings/RNSectionTitle.stories.js +0 -24
  214. package/lib/components/01-atoms/Text/Text/BodyText.d.ts +0 -12
  215. package/lib/components/01-atoms/Text/Text/BodyText.js +0 -73
  216. package/lib/components/01-atoms/Text/Text/BodyText.stories.d.ts +0 -14
  217. package/lib/components/01-atoms/Text/Text/BodyText.stories.js +0 -54
  218. package/lib/components/02-molecules/Cards/EditionCard.d.ts +0 -31
  219. package/lib/components/02-molecules/Cards/EditionCard.js +0 -51
  220. package/lib/components/02-molecules/Cards/EditionCard.stories.d.ts +0 -13
  221. package/lib/components/02-molecules/Cards/EditionCard.stories.js +0 -26
  222. package/lib/components/02-molecules/Cards/SearchResultItem.d.ts +0 -17
  223. package/lib/components/02-molecules/Cards/SearchResultItem.js +0 -40
  224. package/lib/components/02-molecules/Cards/SearchResultItem.stories.d.ts +0 -8
  225. package/lib/components/02-molecules/Cards/SearchResultItem.stories.js +0 -31
  226. package/lib/components/02-molecules/Dropdown/Dropdown.d.ts +0 -21
  227. package/lib/components/02-molecules/Dropdown/Dropdown.js +0 -55
  228. package/lib/components/02-molecules/Dropdown/Dropdown.stories.d.ts +0 -14
  229. package/lib/components/02-molecules/Dropdown/Dropdown.stories.js +0 -33
  230. package/lib/components/02-molecules/Headings/SectionTitle.d.ts +0 -17
  231. package/lib/components/02-molecules/Headings/SectionTitle.js +0 -42
  232. package/lib/components/02-molecules/Headings/SectionTitle.stories.d.ts +0 -8
  233. package/lib/components/02-molecules/Headings/SectionTitle.stories.js +0 -20
  234. package/lib/components/02-molecules/Menus/Breadcrumbs/Breadcrumbs.d.ts +0 -14
  235. package/lib/components/02-molecules/Menus/Breadcrumbs/Breadcrumbs.js +0 -51
  236. package/lib/components/02-molecules/Menus/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -8
  237. package/lib/components/02-molecules/Menus/Breadcrumbs/Breadcrumbs.stories.js +0 -30
  238. package/lib/components/02-molecules/Menus/Pagination/Pagination.d.ts +0 -11
  239. package/lib/components/02-molecules/Menus/Pagination/Pagination.js +0 -57
  240. package/lib/components/02-molecules/Menus/Pagination/Pagination.stories.d.ts +0 -7
  241. package/lib/components/02-molecules/Menus/Pagination/Pagination.stories.js +0 -20
  242. package/lib/components/02-molecules/SearchBar/SearchBar.d.ts +0 -26
  243. package/lib/components/02-molecules/SearchBar/SearchBar.js +0 -69
  244. package/lib/components/02-molecules/SearchBar/SearchBar.stories.d.ts +0 -11
  245. package/lib/components/02-molecules/SearchBar/SearchBar.stories.js +0 -24
  246. package/lib/components/03-organisms/Accordion/Accordion.d.ts +0 -19
  247. package/lib/components/03-organisms/Accordion/Accordion.js +0 -41
  248. package/lib/components/03-organisms/Accordion/Accordion.stories.d.ts +0 -7
  249. package/lib/components/03-organisms/Accordion/Accordion.stories.js +0 -30
  250. package/lib/components/03-organisms/Headers/HeaderImgRight.d.ts +0 -12
  251. package/lib/components/03-organisms/Headers/HeaderImgRight.js +0 -32
  252. package/lib/components/03-organisms/Headers/HeaderImgRight.stories.d.ts +0 -7
  253. package/lib/components/03-organisms/Headers/HeaderImgRight.stories.js +0 -19
  254. package/lib/components/03-organisms/Headers/RNHeaderWithSearch.d.ts +0 -19
  255. package/lib/components/03-organisms/Headers/RNHeaderWithSearch.js +0 -27
  256. package/lib/components/03-organisms/Headers/RNHeaderWithSearch.stories.d.ts +0 -7
  257. package/lib/components/03-organisms/Headers/RNHeaderWithSearch.stories.js +0 -26
  258. package/lib/components/03-organisms/Hero/Hero.d.ts +0 -31
  259. package/lib/components/03-organisms/Hero/Hero.js +0 -62
  260. package/lib/components/03-organisms/Hero/Hero.stories.d.ts +0 -11
  261. package/lib/components/03-organisms/Hero/Hero.stories.js +0 -35
  262. package/lib/components/03-organisms/Hero/HeroTypes.d.ts +0 -6
  263. package/lib/components/03-organisms/Hero/HeroTypes.js +0 -9
  264. package/lib/components/03-organisms/List/UnorderedList.d.ts +0 -18
  265. package/lib/components/03-organisms/List/UnorderedList.js +0 -28
  266. package/lib/components/03-organisms/List/UnorderedList.stories.d.ts +0 -11
  267. package/lib/components/03-organisms/List/UnorderedList.stories.js +0 -73
  268. package/lib/components/03-organisms/SearchPromo/SearchPromo.d.ts +0 -22
  269. package/lib/components/03-organisms/SearchPromo/SearchPromo.js +0 -30
  270. package/lib/components/03-organisms/SearchPromo/SearchPromo.stories.d.ts +0 -8
  271. package/lib/components/03-organisms/SearchPromo/SearchPromo.stories.js +0 -28
  272. package/lib/helpers/hoc/WithOneChild.d.ts +0 -8
  273. package/lib/helpers/hoc/WithOneChild.js +0 -63
  274. package/lib/index.d.ts +0 -24
  275. package/lib/index.js +0 -51
  276. package/lib/utils/bem.d.ts +0 -1
  277. package/lib/utils/bem.js +0 -35
  278. package/tsd.d.ts +0 -4
  279. package/webpack.prod.js +0 -38
@@ -0,0 +1,137 @@
1
+ import { NotificationTypes } from "../../components/Notification/Notification";
2
+ interface NotificationBaseStyle {
3
+ isCentered: boolean;
4
+ noMargin: boolean;
5
+ notificationHeading: string;
6
+ notificationType: NotificationTypes;
7
+ showIcon: boolean;
8
+ }
9
+ interface NotificationContentBaseStyle {
10
+ alignText: boolean;
11
+ isCentered: boolean;
12
+ notificationHeading: string;
13
+ notificationType: NotificationTypes;
14
+ showIcon: boolean;
15
+ }
16
+ interface NotificationHeadingBaseStyle {
17
+ icon: boolean;
18
+ isCentered: boolean;
19
+ notificationType: NotificationTypes;
20
+ }
21
+ declare const _default: {
22
+ Notification: {
23
+ parts: string[];
24
+ baseStyle: ({ isCentered, noMargin, notificationHeading, notificationType, }: NotificationBaseStyle) => {
25
+ bg: string;
26
+ borderRadius: string;
27
+ display: string;
28
+ fontSize: string;
29
+ m: string;
30
+ position: string;
31
+ p: string;
32
+ textAlign: string;
33
+ _dark: {
34
+ bg: string;
35
+ };
36
+ container: {
37
+ display: string;
38
+ flexDirection: string;
39
+ m: string;
40
+ maxWidth: string;
41
+ paddingEnd: string;
42
+ paddingStart: string;
43
+ w: string;
44
+ };
45
+ dismissibleButton: {
46
+ border: string;
47
+ bgColor: string;
48
+ alignItems: string;
49
+ color: string;
50
+ display: string;
51
+ h: string;
52
+ w: string;
53
+ minWidth: string;
54
+ position: string;
55
+ right: string;
56
+ top: string;
57
+ svg: {
58
+ marginTop: string;
59
+ };
60
+ _dark: {
61
+ color: string;
62
+ };
63
+ _hover: {
64
+ bg: string;
65
+ };
66
+ };
67
+ };
68
+ };
69
+ NotificationContent: {
70
+ parts: string[];
71
+ baseStyle: ({ isCentered, notificationHeading, notificationType, showIcon, }: NotificationContentBaseStyle) => {
72
+ display: string;
73
+ justifyContent: string;
74
+ content: {
75
+ color: string;
76
+ marginTop: string;
77
+ paddingStart: string;
78
+ pt: string;
79
+ w: string;
80
+ _dark: {
81
+ borderLeftColor: string;
82
+ borderLeftStyle: string;
83
+ borderLeftWidth: string;
84
+ marginTop: string;
85
+ paddingStart: string;
86
+ color: string;
87
+ ml: string;
88
+ };
89
+ a: {
90
+ color: string;
91
+ textDecoration: string;
92
+ _dark: {
93
+ color: string;
94
+ _hover: {
95
+ color: string;
96
+ };
97
+ };
98
+ };
99
+ };
100
+ };
101
+ };
102
+ NotificationHeading: {
103
+ parts: string[];
104
+ baseStyle: ({ icon, isCentered, notificationType, }: NotificationHeadingBaseStyle) => {
105
+ display: string;
106
+ flexDirection: string;
107
+ m: string;
108
+ mb: string;
109
+ px: string;
110
+ w: string;
111
+ _dark: {
112
+ borderBottomColor: string;
113
+ borderBottomStyle: string;
114
+ borderBottomWidth: string;
115
+ color: string;
116
+ paddingBottom: string;
117
+ };
118
+ heading: {
119
+ color: string;
120
+ ml: string;
121
+ mt: string;
122
+ _dark: {
123
+ borderLeftColor: string;
124
+ borderLeftStyle: string;
125
+ borderLeftWidth: string;
126
+ paddingLeft: string;
127
+ };
128
+ };
129
+ svg: {
130
+ mx: string;
131
+ mb: string;
132
+ mt: string;
133
+ };
134
+ };
135
+ };
136
+ };
137
+ export default _default;
@@ -0,0 +1,19 @@
1
+ declare const Pagination: {
2
+ parts: string[];
3
+ baseStyle: {
4
+ alignItems: string;
5
+ display: string;
6
+ width: string;
7
+ link: {
8
+ lineHeight: string;
9
+ textDecoration: string;
10
+ _hover: {
11
+ textDecoration: string;
12
+ };
13
+ };
14
+ ul: {
15
+ marginBottom: string;
16
+ };
17
+ };
18
+ };
19
+ export default Pagination;
@@ -0,0 +1,69 @@
1
+ import { ProgressIndicatorSizes } from "../../components/ProgressIndicator/ProgressIndicator";
2
+ interface ProgressIndicatorBaseStyle {
3
+ darkMode: boolean;
4
+ size: ProgressIndicatorSizes;
5
+ }
6
+ declare const ProgressIndicator: {
7
+ parts: string[];
8
+ baseStyle: ({ darkMode, size }: ProgressIndicatorBaseStyle) => {
9
+ color: string;
10
+ fontSize: string;
11
+ _dark: {
12
+ color: string;
13
+ };
14
+ circular: {
15
+ svg: {
16
+ height: string;
17
+ width: string;
18
+ display: string;
19
+ circle: {
20
+ _first: {
21
+ stroke: string;
22
+ _dark: {
23
+ stroke: string;
24
+ };
25
+ };
26
+ _last: {
27
+ stroke: string;
28
+ _dark: {
29
+ stroke: string;
30
+ };
31
+ };
32
+ };
33
+ };
34
+ };
35
+ circularContainer: {
36
+ alignItems: string;
37
+ display: string;
38
+ flexDirection: string;
39
+ width: string;
40
+ };
41
+ linear: {
42
+ "> div": {
43
+ bg: string;
44
+ _dark: {
45
+ bg: string;
46
+ };
47
+ };
48
+ flex: number;
49
+ bg: string;
50
+ height: {
51
+ base: string;
52
+ md: string;
53
+ };
54
+ _dark: {
55
+ bg: string;
56
+ color: string;
57
+ };
58
+ };
59
+ linearContainer: {
60
+ display: string;
61
+ alignItems: string;
62
+ };
63
+ linearPercentage: {
64
+ padding: string;
65
+ flex: number;
66
+ };
67
+ };
68
+ };
69
+ export default ProgressIndicator;
@@ -0,0 +1,202 @@
1
+ declare const Radio: {
2
+ parts: string[];
3
+ baseStyle: {
4
+ control: {
5
+ verticalAlign: string;
6
+ transitionProperty: string;
7
+ transitionDuration: string;
8
+ border: string;
9
+ borderRadius: string;
10
+ borderColor: string;
11
+ backgroundColor: string;
12
+ color: string;
13
+ outline: string;
14
+ _checked: {
15
+ bg: string;
16
+ borderColor: string;
17
+ color: string;
18
+ _disabled: {
19
+ borderColor: string;
20
+ bg: string;
21
+ _before: {
22
+ bg: string;
23
+ };
24
+ };
25
+ _invalid: {
26
+ _hover: {
27
+ borderColor: string;
28
+ };
29
+ _before: {
30
+ borderColor: string;
31
+ bg: string;
32
+ };
33
+ };
34
+ _hover: {
35
+ bg: string;
36
+ };
37
+ _before: {
38
+ content: string;
39
+ display: string;
40
+ w: string;
41
+ h: string;
42
+ borderRadius: string;
43
+ bg: string;
44
+ };
45
+ };
46
+ _disabled: {
47
+ borderColor: string;
48
+ bg: string;
49
+ };
50
+ _focus: {
51
+ boxShadow: string;
52
+ borderColor: string;
53
+ outline: string;
54
+ outlineOffset: string;
55
+ outlineColor: string;
56
+ zIndex: string;
57
+ _dark: {
58
+ outlineColor: string;
59
+ };
60
+ };
61
+ _invalid: {
62
+ borderColor: string;
63
+ };
64
+ _dark: {
65
+ borderColor: string;
66
+ backgroundColor: string;
67
+ _checked: {
68
+ borderColor: string;
69
+ _disabled: {
70
+ borderColor: string;
71
+ _before: {
72
+ bg: string;
73
+ };
74
+ };
75
+ _invalid: {
76
+ borderColor: string;
77
+ _before: {
78
+ borderColor: string;
79
+ bg: string;
80
+ };
81
+ };
82
+ };
83
+ _disabled: {
84
+ borderColor: string;
85
+ _before: {
86
+ bg: string;
87
+ };
88
+ };
89
+ _focus: {
90
+ boxShadow: string;
91
+ outlineColor: string;
92
+ };
93
+ _invalid: {
94
+ borderColor: string;
95
+ };
96
+ _before: {
97
+ bg: string;
98
+ };
99
+ };
100
+ };
101
+ label: {
102
+ userSelect: string;
103
+ fontWeight: string;
104
+ marginBottom: string;
105
+ marginStart: string;
106
+ width: string;
107
+ _disabled: {
108
+ color: string;
109
+ opacity: number;
110
+ fontStyle: string;
111
+ };
112
+ _invalid: {
113
+ color: string;
114
+ };
115
+ _dark: {
116
+ _disabled: {
117
+ color: string;
118
+ };
119
+ _invalid: {
120
+ color: string;
121
+ };
122
+ };
123
+ };
124
+ helperErrorText: {
125
+ marginStart: string;
126
+ _disabled: {
127
+ color: string;
128
+ fontStyle: string;
129
+ };
130
+ };
131
+ hiddenLabel: {
132
+ clip: string;
133
+ height: {
134
+ base: string;
135
+ md: string;
136
+ };
137
+ overflow: string;
138
+ position: {
139
+ base: string;
140
+ md: string;
141
+ };
142
+ width: {
143
+ base: string;
144
+ md: string;
145
+ };
146
+ wordWrap: string;
147
+ };
148
+ };
149
+ sizes: {
150
+ md: {
151
+ control: {
152
+ h: string;
153
+ w: string;
154
+ };
155
+ label: {
156
+ fontSize: string;
157
+ };
158
+ };
159
+ };
160
+ defaultProps: {
161
+ size: string;
162
+ };
163
+ };
164
+ export declare const RadioWrapper: {
165
+ baseStyle: {
166
+ label: {
167
+ _hover: {
168
+ span: {
169
+ _first: {
170
+ borderColor: string;
171
+ };
172
+ _checked: {
173
+ borderColor: string;
174
+ };
175
+ _disabled: {
176
+ borderColor: string;
177
+ };
178
+ _invalid: {
179
+ borderColor: string;
180
+ };
181
+ };
182
+ _dark: {
183
+ span: {
184
+ _first: {
185
+ borderColor: string;
186
+ };
187
+ _checked: {
188
+ borderColor: string;
189
+ };
190
+ _disabled: {
191
+ borderColor: string;
192
+ };
193
+ _invalid: {
194
+ borderColor: string;
195
+ };
196
+ };
197
+ };
198
+ };
199
+ };
200
+ };
201
+ };
202
+ export default Radio;
@@ -0,0 +1,14 @@
1
+ declare const RadioGroup: {
2
+ parts: string[];
3
+ baseStyle: ({ isFullWidth }: {
4
+ isFullWidth?: boolean;
5
+ }) => {
6
+ helperErrorText: {
7
+ marginTop: string;
8
+ };
9
+ label: {
10
+ width: string;
11
+ };
12
+ };
13
+ };
14
+ export default RadioGroup;
@@ -0,0 +1,34 @@
1
+ declare const SearchBar: {
2
+ parts: string[];
3
+ baseStyle: {
4
+ display: string;
5
+ marginBottom: {
6
+ base: string;
7
+ md: string;
8
+ };
9
+ flexFlow: {
10
+ base: string;
11
+ md: string;
12
+ };
13
+ select: {
14
+ flexShrink: string;
15
+ marginBottom: {
16
+ base: string;
17
+ md: string;
18
+ };
19
+ maxWidth: {
20
+ base: any;
21
+ md: string;
22
+ };
23
+ textOverflow: string;
24
+ marginRight: {
25
+ base: any;
26
+ md: string;
27
+ };
28
+ _hover: {
29
+ zIndex: string;
30
+ };
31
+ };
32
+ };
33
+ };
34
+ export default SearchBar;
@@ -0,0 +1,126 @@
1
+ interface SelectBaseStyle {
2
+ labelPosition: string;
3
+ }
4
+ declare const Select: {
5
+ parts: string[];
6
+ baseStyle: ({ labelPosition }: SelectBaseStyle) => {
7
+ inline: {
8
+ display: {
9
+ md: string;
10
+ };
11
+ gap: {
12
+ md: string;
13
+ };
14
+ alignItems: {
15
+ md: string;
16
+ };
17
+ };
18
+ select: {
19
+ flex: {
20
+ md: string;
21
+ };
22
+ backgroundColor: string;
23
+ borderRadius: string;
24
+ borderColor: string;
25
+ fontSize: string;
26
+ minHeight: {
27
+ base: string;
28
+ md: string;
29
+ };
30
+ paddingTop: string;
31
+ paddingEnd: string;
32
+ paddingBottom: string;
33
+ paddingStart: string;
34
+ _hover: {
35
+ borderColor: string;
36
+ };
37
+ _active: {
38
+ borderColor: string;
39
+ _dark: {
40
+ borderColor: string;
41
+ boxShadow: string;
42
+ outline: string;
43
+ outlineOffset: string;
44
+ outlineColor: string;
45
+ zIndex: string;
46
+ _dark: {
47
+ outlineColor: string;
48
+ };
49
+ };
50
+ boxShadow: string;
51
+ outline: string;
52
+ outlineOffset: string;
53
+ outlineColor: string;
54
+ zIndex: string;
55
+ };
56
+ _disabled: {
57
+ bg: string;
58
+ borderColor: string;
59
+ color: string;
60
+ opacity: string;
61
+ _dark: {
62
+ bg: string;
63
+ borderColor: string;
64
+ color: string;
65
+ };
66
+ };
67
+ _focus: {
68
+ "+ .chakra-select__icon-wrapper": {
69
+ zIndex: string;
70
+ };
71
+ borderColor: string;
72
+ _dark: {
73
+ borderColor: string;
74
+ boxShadow: string;
75
+ outline: string;
76
+ outlineOffset: string;
77
+ outlineColor: string;
78
+ zIndex: string;
79
+ _dark: {
80
+ outlineColor: string;
81
+ };
82
+ };
83
+ boxShadow: string;
84
+ outline: string;
85
+ outlineOffset: string;
86
+ outlineColor: string;
87
+ zIndex: string;
88
+ };
89
+ _invalid: {
90
+ border: string;
91
+ borderColor: string;
92
+ boxShadow: string;
93
+ color: string;
94
+ };
95
+ _dark: {
96
+ backgroundColor: string;
97
+ borderColor: string;
98
+ color: string;
99
+ _hover: {
100
+ borderColor: string;
101
+ };
102
+ _invalid: {
103
+ borderColor: string;
104
+ color: string;
105
+ };
106
+ };
107
+ };
108
+ };
109
+ variants: {
110
+ searchbar: {
111
+ select: {
112
+ flex: string;
113
+ borderRightColor: {
114
+ md: string;
115
+ };
116
+ borderRightRadius: {
117
+ md: string;
118
+ };
119
+ };
120
+ };
121
+ };
122
+ defaultProps: {
123
+ size: string;
124
+ };
125
+ };
126
+ export default Select;
@@ -0,0 +1,105 @@
1
+ interface SkeletonLoaderBaseStyle {
2
+ imageAspectRatio: keyof typeof imagePaddingBottomStyles;
3
+ isBordered: boolean;
4
+ showImage?: boolean;
5
+ }
6
+ declare const imagePaddingBottomStyles: {
7
+ landscape: string;
8
+ portrait: string;
9
+ square: string;
10
+ };
11
+ declare const SkeletonLoader: {
12
+ parts: string[];
13
+ baseStyle: ({ imageAspectRatio, isBordered }: SkeletonLoaderBaseStyle) => {
14
+ section: {
15
+ marginBottom: string;
16
+ _last: {
17
+ marginBottom: string;
18
+ };
19
+ };
20
+ image: {
21
+ boxSizing: string;
22
+ flexShrink: string;
23
+ height: string;
24
+ overflow: string;
25
+ paddingBottom: string;
26
+ position: string;
27
+ width: string;
28
+ borderRadius: string;
29
+ marginBottom: string;
30
+ };
31
+ container: {
32
+ marginTop: string;
33
+ width: string;
34
+ };
35
+ heading: {
36
+ height: string;
37
+ borderRadius: string;
38
+ boxSizing: string;
39
+ marginBottom: string;
40
+ };
41
+ content: {
42
+ height: string;
43
+ borderRadius: string;
44
+ boxSizing: string;
45
+ marginBottom: string;
46
+ };
47
+ button: {
48
+ height: string;
49
+ margin: string;
50
+ maxWidth: string;
51
+ width: string;
52
+ };
53
+ margin: string;
54
+ width: string;
55
+ };
56
+ variants: {
57
+ row: ({ imageAspectRatio, showImage }: SkeletonLoaderBaseStyle) => {
58
+ alignItems: string;
59
+ display: {
60
+ md: string;
61
+ };
62
+ image: {
63
+ overflow: {
64
+ md: string;
65
+ };
66
+ paddingBottom: {
67
+ md: string;
68
+ };
69
+ position: {
70
+ md: string;
71
+ };
72
+ width: {
73
+ md: string;
74
+ };
75
+ height: {
76
+ md: string;
77
+ };
78
+ };
79
+ container: {
80
+ marginStart: {
81
+ md: string;
82
+ };
83
+ marginTop: {
84
+ md: string;
85
+ };
86
+ };
87
+ button: {
88
+ margin: {
89
+ md: string;
90
+ };
91
+ };
92
+ };
93
+ };
94
+ };
95
+ declare const Skeleton: {
96
+ baseStyle: {
97
+ borderRadius: string;
98
+ bg: string;
99
+ animation: string;
100
+ _dark: {
101
+ bg: string;
102
+ };
103
+ };
104
+ };
105
+ export { Skeleton, SkeletonLoader };