@nypl/design-system-react-components 2.2.0-react-chakra-rc-2 → 3.0.0-react-chakra-rc2

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 (125) hide show
  1. package/dist/design-system-react-components.cjs +59 -59
  2. package/dist/design-system-react-components.js +18230 -17049
  3. package/dist/src/components/Accordion/Accordion.d.ts +9 -2
  4. package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +6 -3
  5. package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +6 -3
  6. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +2 -1
  7. package/dist/src/components/Button/Button.d.ts +23 -1
  8. package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +15 -1
  9. package/dist/src/components/Card/Card.d.ts +2 -1
  10. package/dist/src/components/Checkbox/Checkbox.d.ts +2 -1
  11. package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +2 -1
  12. package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +4 -2
  13. package/dist/src/components/DatePicker/DatePicker.d.ts +14 -6
  14. package/dist/src/components/FeaturedContent/FeaturedContent.d.ts +2 -1
  15. package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +48 -2
  16. package/dist/src/components/Fieldset/Fieldset.d.ts +17 -1
  17. package/dist/src/components/Form/Form.d.ts +4 -3
  18. package/dist/src/components/Grid/SimpleGrid.d.ts +2 -1
  19. package/dist/src/components/Heading/Heading.d.ts +2 -1
  20. package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +26 -1
  21. package/dist/src/components/Hero/Hero.d.ts +6 -1
  22. package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +2 -1
  23. package/dist/src/components/Icons/Icon.d.ts +2 -1
  24. package/dist/src/components/Icons/IconSvgs.d.ts +24 -0
  25. package/dist/src/components/Icons/iconVariables.d.ts +2 -2
  26. package/dist/src/components/Image/Image.d.ts +9 -2
  27. package/dist/src/components/Label/Label.d.ts +19 -1
  28. package/dist/src/components/Link/Link.d.ts +2 -1
  29. package/dist/src/components/List/List.d.ts +6 -4
  30. package/dist/src/components/Logo/Logo.d.ts +5 -4
  31. package/dist/src/components/Logo/logoVariables.d.ts +0 -1
  32. package/dist/src/components/Menu/Menu.d.ts +58 -0
  33. package/dist/src/components/Modal/Modal.d.ts +13 -4
  34. package/dist/src/components/MultiSelect/MultiSelect.d.ts +55 -0
  35. package/dist/src/components/MultiSelect/MultiSelectItemsCountButton.d.ts +29 -0
  36. package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +42 -1
  37. package/dist/src/components/Notification/Notification.d.ts +11 -5
  38. package/dist/src/components/Pagination/Pagination.d.ts +2 -1
  39. package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -1
  40. package/dist/src/components/Radio/Radio.d.ts +2 -1
  41. package/dist/src/components/RadioGroup/RadioGroup.d.ts +2 -1
  42. package/dist/src/components/SearchBar/SearchBar.d.ts +4 -2
  43. package/dist/src/components/Select/Select.d.ts +2 -1
  44. package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +2 -1
  45. package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +10 -1
  46. package/dist/src/components/Slider/Slider.d.ts +2 -1
  47. package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +2 -1
  48. package/dist/src/components/StatusBadge/StatusBadge.d.ts +15 -6
  49. package/dist/src/components/StructuredContent/StructuredContent.d.ts +7 -4
  50. package/dist/src/components/StyleGuide/ColorCard.d.ts +2 -1
  51. package/dist/src/components/StyledList/StyledList.d.ts +2 -1
  52. package/dist/src/components/Table/Table.d.ts +2 -1
  53. package/dist/src/components/Tabs/Tabs.d.ts +2 -2
  54. package/dist/src/components/TagSet/TagSet.d.ts +2 -1
  55. package/dist/src/components/TagSet/TagSetExplore.d.ts +1 -1
  56. package/dist/src/components/TagSet/TagSetFilter.d.ts +1 -1
  57. package/dist/src/components/Template/Template.d.ts +3 -2
  58. package/dist/src/components/Text/Text.d.ts +2 -1
  59. package/dist/src/components/TextInput/TextInput.d.ts +2 -1
  60. package/dist/src/components/Toggle/Toggle.d.ts +2 -1
  61. package/dist/src/components/Tooltip/Tooltip.d.ts +2 -1
  62. package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +6 -3
  63. package/dist/src/helpers/types.d.ts +2 -0
  64. package/dist/src/hooks/useDSHeading.d.ts +16 -0
  65. package/dist/src/hooks/useMultiSelect.d.ts +18 -0
  66. package/dist/src/hooks/useScrollTabIntoView.d.ts +9 -0
  67. package/dist/src/hooks/useStateWithDependencies.d.ts +4 -2
  68. package/dist/src/index.d.ts +6 -1
  69. package/dist/src/theme/components/accordion.d.ts +25 -2
  70. package/dist/src/theme/components/alphabetFilter.d.ts +24 -8
  71. package/dist/src/theme/components/audioPlayer.d.ts +18 -1
  72. package/dist/src/theme/components/breadcrumb.d.ts +24 -16
  73. package/dist/src/theme/components/button.d.ts +39 -0
  74. package/dist/src/theme/components/buttonGroup.d.ts +12 -3
  75. package/dist/src/theme/components/card.d.ts +104 -235
  76. package/dist/src/theme/components/checkbox.d.ts +44 -34
  77. package/dist/src/theme/components/checkboxGroup.d.ts +18 -4
  78. package/dist/src/theme/components/datePicker.d.ts +17 -6
  79. package/dist/src/theme/components/featuredContent.d.ts +75 -36
  80. package/dist/src/theme/components/feedbackBox.d.ts +28 -9
  81. package/dist/src/theme/components/fieldset.d.ts +14 -2
  82. package/dist/src/theme/components/global.d.ts +1 -0
  83. package/dist/src/theme/components/heading.d.ts +596 -249
  84. package/dist/src/theme/components/helperErrorText.d.ts +19 -3
  85. package/dist/src/theme/components/hero.d.ts +198 -176
  86. package/dist/src/theme/components/horizontalRule.d.ts +14 -2
  87. package/dist/src/theme/components/icon.d.ts +13 -4
  88. package/dist/src/theme/components/image.d.ts +326 -223
  89. package/dist/src/theme/components/label.d.ts +14 -2
  90. package/dist/src/theme/components/link.d.ts +40 -197
  91. package/dist/src/theme/components/list.d.ts +130 -101
  92. package/dist/src/theme/components/logo.d.ts +17 -5
  93. package/dist/src/theme/components/menu.d.ts +169 -0
  94. package/dist/src/theme/components/modal.d.ts +19 -4
  95. package/dist/src/theme/components/multiSelect.d.ts +106 -12
  96. package/dist/src/theme/components/multiSelectItemsCountButton.d.ts +52 -0
  97. package/dist/src/theme/components/newsletterSignup.d.ts +37 -29
  98. package/dist/src/theme/components/notification.d.ts +51 -116
  99. package/dist/src/theme/components/notificationContent.d.ts +58 -0
  100. package/dist/src/theme/components/notificationHeading.d.ts +57 -0
  101. package/dist/src/theme/components/pagination.d.ts +17 -2
  102. package/dist/src/theme/components/progressIndicator.d.ts +21 -5
  103. package/dist/src/theme/components/radio.d.ts +25 -6
  104. package/dist/src/theme/components/radioGroup.d.ts +18 -4
  105. package/dist/src/theme/components/searchBar.d.ts +24 -6
  106. package/dist/src/theme/components/select.d.ts +21 -13
  107. package/dist/src/theme/components/skeletonLoader.d.ts +34 -12
  108. package/dist/src/theme/components/skipNavigation.d.ts +12 -1
  109. package/dist/src/theme/components/slider.d.ts +49 -33
  110. package/dist/src/theme/components/socialmedialinks.d.ts +22 -16
  111. package/dist/src/theme/components/statusBadge.d.ts +66 -10
  112. package/dist/src/theme/components/structuredContent.d.ts +233 -102
  113. package/dist/src/theme/components/styledList.d.ts +12 -6
  114. package/dist/src/theme/components/tabs.d.ts +27 -13
  115. package/dist/src/theme/components/tagSet.d.ts +83 -42
  116. package/dist/src/theme/components/template.d.ts +76 -25
  117. package/dist/src/theme/components/text.d.ts +27 -12
  118. package/dist/src/theme/components/textInput.d.ts +52 -44
  119. package/dist/src/theme/components/toggle.d.ts +33 -11
  120. package/dist/src/theme/components/tooltip.d.ts +13 -1
  121. package/dist/src/theme/components/videoPlayer.d.ts +32 -21
  122. package/dist/src/theme/foundations/global.d.ts +6 -0
  123. package/dist/styles.css +1 -1
  124. package/package.json +4 -7
  125. package/dist/src/theme/components/multiSelectMenuButton.d.ts +0 -99
@@ -0,0 +1,169 @@
1
+ import { StyleFunctionProps } from "@chakra-ui/system";
2
+ import { SectionTypes } from "../../helpers/types";
3
+ interface MenuStyleProps extends StyleFunctionProps {
4
+ highlightColor: SectionTypes;
5
+ showBorder: boolean;
6
+ showLabel: boolean;
7
+ }
8
+ declare const Menu: {
9
+ baseStyle?: ({ highlightColor, showBorder, showLabel }: MenuStyleProps) => {
10
+ groupItem: {
11
+ paddingY: string;
12
+ paddingX: string;
13
+ lineHeight: string;
14
+ fontWeight: string;
15
+ fontSize: string;
16
+ textColor: string;
17
+ margin: string;
18
+ _dark: {
19
+ textColor: string;
20
+ bg: string;
21
+ };
22
+ };
23
+ dividerItem: {
24
+ margin: string;
25
+ _dark: {
26
+ textColor: string;
27
+ bg: string;
28
+ };
29
+ };
30
+ actionItem: {
31
+ outline: string;
32
+ textColor: string;
33
+ paddingY: string;
34
+ paddingX: string;
35
+ fontSize: string;
36
+ fontWeight: string;
37
+ _hover: {
38
+ fontWeight: number;
39
+ bg: string;
40
+ };
41
+ _focus: {
42
+ fontWeight: number;
43
+ bg: string;
44
+ };
45
+ _dark: {
46
+ textColor: string;
47
+ bg: string;
48
+ "> div > svg": {
49
+ fill: string;
50
+ };
51
+ _hover: {
52
+ bg: string;
53
+ };
54
+ };
55
+ };
56
+ selected: {
57
+ _hover: {
58
+ background: string;
59
+ };
60
+ _active: {
61
+ background: string;
62
+ };
63
+ fontWeight: number;
64
+ borderLeftColor: string | {
65
+ primary: string;
66
+ secondary: string;
67
+ };
68
+ textColor: string | {
69
+ primary: string;
70
+ secondary: string;
71
+ };
72
+ borderWidth: string;
73
+ background: string;
74
+ _dark: {
75
+ textColor: string;
76
+ background: string;
77
+ };
78
+ };
79
+ menuButton: {
80
+ minHeight: {
81
+ base: string;
82
+ md: "40px";
83
+ };
84
+ minWidth: {
85
+ base: string;
86
+ md: "40px";
87
+ };
88
+ whiteSpace: string;
89
+ paddingY: string;
90
+ paddingX: string;
91
+ borderRadius: string;
92
+ fontSize: string;
93
+ textColor: string;
94
+ border: string;
95
+ borderColor: string;
96
+ _hover: {
97
+ bg: string;
98
+ textColor: string;
99
+ borderColor: string;
100
+ "> span > svg ": {
101
+ fill: string;
102
+ };
103
+ };
104
+ _active: {
105
+ bg: string;
106
+ textColor: string;
107
+ borderColor: string;
108
+ "> span > svg ": {
109
+ fill: string;
110
+ };
111
+ };
112
+ "> span ": {
113
+ alignItems: string;
114
+ display: string;
115
+ justifyContent: string;
116
+ };
117
+ "> span > svg ": {
118
+ fill: string;
119
+ };
120
+ _dark: {
121
+ textColor: string;
122
+ borderColor: string;
123
+ _hover: {
124
+ bg: string;
125
+ borderColor: string;
126
+ textColor: string;
127
+ };
128
+ _active: {
129
+ bg: string;
130
+ };
131
+ "> span > svg": {
132
+ fill: string;
133
+ };
134
+ };
135
+ };
136
+ menuList: {
137
+ minWidth: string;
138
+ outline: string;
139
+ maxWidth: string;
140
+ padding: string;
141
+ borderRadius: string;
142
+ border: string;
143
+ borderColor: string;
144
+ _dark: {
145
+ borderColor: string;
146
+ };
147
+ boxShadow: string;
148
+ overflowY: string;
149
+ maxHeight: string;
150
+ };
151
+ };
152
+ sizes?: {
153
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
154
+ keys: ("groupItem" | "actionItem" | "dividerItem" | "selected" | "menuButton" | "menuList")[];
155
+ }>;
156
+ };
157
+ variants?: {
158
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
159
+ keys: ("groupItem" | "actionItem" | "dividerItem" | "selected" | "menuButton" | "menuList")[];
160
+ }>;
161
+ };
162
+ defaultProps?: {
163
+ size?: string | number;
164
+ variant?: string | number;
165
+ colorScheme?: string;
166
+ };
167
+ parts: ("groupItem" | "actionItem" | "dividerItem" | "selected" | "menuButton" | "menuList")[];
168
+ };
169
+ export default Menu;
@@ -1,6 +1,5 @@
1
1
  declare const Modal: {
2
- parts: string[];
3
- baseStyle: {
2
+ baseStyle?: {
4
3
  dialog: {
5
4
  _dark: {
6
5
  bg: string;
@@ -9,8 +8,8 @@ declare const Modal: {
9
8
  header: {
10
9
  color: string;
11
10
  fontSize: {
12
- base: string;
13
- md: string;
11
+ base: "mobile.heading.heading4";
12
+ md: "desktop.heading.heading4";
14
13
  };
15
14
  fontWeight: string;
16
15
  _dark: {
@@ -23,5 +22,21 @@ declare const Modal: {
23
22
  };
24
23
  };
25
24
  };
25
+ sizes?: {
26
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
27
+ keys: ("body" | "dialog" | "footer" | "header" | "overlay" | "closeButton" | "dialogContainer")[];
28
+ }>;
29
+ };
30
+ variants?: {
31
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
32
+ keys: ("body" | "dialog" | "footer" | "header" | "overlay" | "closeButton" | "dialogContainer")[];
33
+ }>;
34
+ };
35
+ defaultProps?: {
36
+ size?: string | number;
37
+ variant?: string | number;
38
+ colorScheme?: string;
39
+ };
40
+ parts: ("body" | "dialog" | "footer" | "header" | "overlay" | "closeButton" | "dialogContainer")[];
26
41
  };
27
42
  export default Modal;
@@ -1,10 +1,4 @@
1
1
  export declare const multiSelectWidths: {
2
- default: {
3
- width: {
4
- base: string;
5
- md: string;
6
- };
7
- };
8
2
  fitContent: {
9
3
  width: {
10
4
  base: string;
@@ -13,17 +7,117 @@ export declare const multiSelectWidths: {
13
7
  minWidth: {
14
8
  md: string;
15
9
  };
10
+ maxWidth: {
11
+ md: string;
12
+ };
16
13
  };
17
14
  full: {
18
15
  width: string;
19
16
  };
20
17
  };
21
18
  declare const MultiSelect: {
22
- parts: string[];
23
- baseStyle: ({ isBlockElement, isOpen, width }: {
24
- isBlockElement: any;
25
- isOpen: any;
26
- width?: string;
27
- }) => any;
19
+ baseStyle?: ({ isBlockElement, width }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
20
+ base: {
21
+ position: string;
22
+ };
23
+ menuChildren: {
24
+ paddingLeft: string;
25
+ marginBottom: number;
26
+ };
27
+ viewAllButton: {
28
+ color: string;
29
+ marginLeft: string;
30
+ px: string;
31
+ py: string;
32
+ _hover: {
33
+ bg: string;
34
+ };
35
+ _dark: {
36
+ color: string;
37
+ _hover: {
38
+ bg: string;
39
+ };
40
+ };
41
+ };
42
+ buttonTextLabel: {
43
+ marginLeft: string;
44
+ textOverflow: string;
45
+ overflow: string;
46
+ marginBottom: number;
47
+ };
48
+ menuSearchInputBox: {
49
+ input: {
50
+ backgroundColor: string;
51
+ border: string;
52
+ };
53
+ };
54
+ accordionStyles: {
55
+ ".chakra-accordion__item": {
56
+ _dark: {
57
+ bgColor: string;
58
+ };
59
+ };
60
+ ".chakra-accordion__button": {
61
+ backgroundColor: string;
62
+ fontWeight: string;
63
+ minWidth: string;
64
+ position: string;
65
+ width: string | {
66
+ base: "100%";
67
+ md: "fit-content";
68
+ };
69
+ overflow: string;
70
+ zIndex: number;
71
+ div: {
72
+ overflow: string;
73
+ textOverflow: string;
74
+ whiteSpace: string;
75
+ };
76
+ span: {
77
+ overflow: string;
78
+ };
79
+ _hover: {
80
+ backgroundColor: string;
81
+ };
82
+ _dark: {
83
+ backgroundColor: string;
84
+ borderStartColor: string;
85
+ borderStartWidth: string;
86
+ _hover: {
87
+ borderStartColor: string;
88
+ };
89
+ };
90
+ _expanded: {
91
+ bgColor: string;
92
+ _dark: {
93
+ bgColor: string;
94
+ };
95
+ };
96
+ };
97
+ ".chakra-collapse": any;
98
+ ".chakra-accordion__panel": {
99
+ bgColor: string;
100
+ _dark: {
101
+ bgColor: string;
102
+ };
103
+ };
104
+ };
105
+ };
106
+ sizes?: {
107
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
108
+ keys: ("base" | "accordionStyles" | "buttonTextLabel" | "menuChildren" | "menuSearchInputBox" | "viewAllButton")[];
109
+ }>;
110
+ };
111
+ variants?: {
112
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
113
+ keys: ("base" | "accordionStyles" | "buttonTextLabel" | "menuChildren" | "menuSearchInputBox" | "viewAllButton")[];
114
+ }>;
115
+ };
116
+ defaultProps?: {
117
+ size?: string | number;
118
+ variant?: string | number;
119
+ colorScheme?: string;
120
+ };
121
+ parts: ("base" | "accordionStyles" | "buttonTextLabel" | "menuChildren" | "menuSearchInputBox" | "viewAllButton")[];
28
122
  };
29
123
  export default MultiSelect;
@@ -0,0 +1,52 @@
1
+ declare const MultiSelectItemsCountButton: {
2
+ baseStyle?: ({ isOpen }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
3
+ alignItems: string;
4
+ backgroundColor: string;
5
+ border: string;
6
+ borderRadius: string;
7
+ borderColor: string;
8
+ display: string;
9
+ flexShrink: number;
10
+ fontSize: string;
11
+ justifyContent: string;
12
+ left: string;
13
+ marginRight: string;
14
+ position: string;
15
+ top: {
16
+ base: "12px";
17
+ md: "10px";
18
+ };
19
+ width: string;
20
+ zIndex: number;
21
+ _hover: {
22
+ borderColor: string;
23
+ };
24
+ svg: {
25
+ marginLeft: string;
26
+ marginRight: string;
27
+ marginTop: string;
28
+ };
29
+ _dark: {
30
+ backgroundColor: string;
31
+ borderColor: string;
32
+ svg: {
33
+ fill: string;
34
+ };
35
+ _hover: {
36
+ borderColor: string;
37
+ };
38
+ };
39
+ };
40
+ sizes?: {
41
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
42
+ };
43
+ variants?: {
44
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
45
+ };
46
+ defaultProps?: {
47
+ size?: string | number;
48
+ variant?: string | number;
49
+ colorScheme?: string;
50
+ };
51
+ };
52
+ export default MultiSelectItemsCountButton;
@@ -1,10 +1,10 @@
1
1
  import { SectionTypes } from "../../helpers/types";
2
- interface NewsLetterStyleProps {
3
- newsletterSignupType: SectionTypes;
2
+ import { StyleFunctionProps } from "@chakra-ui/system";
3
+ interface NewsLetterStyleProps extends StyleFunctionProps {
4
+ newsletterSignupType?: SectionTypes;
4
5
  }
5
6
  declare const NewsletterSignup: {
6
- parts: string[];
7
- baseStyle: ({ newsletterSignupType }: NewsLetterStyleProps) => {
7
+ baseStyle?: ({ newsletterSignupType }: NewsLetterStyleProps) => {
8
8
  borderWidth: {
9
9
  base: string;
10
10
  md: string;
@@ -14,44 +14,35 @@ declare const NewsletterSignup: {
14
14
  alignItems: string;
15
15
  bg: string;
16
16
  borderLeftColor: {
17
- md: string | {
18
- primary: string;
19
- secondary: string;
20
- };
17
+ md: any;
21
18
  };
22
19
  borderTopColor: {
23
- base: string | {
24
- primary: string;
25
- secondary: string;
26
- };
27
- md: string;
20
+ base: any;
21
+ md: "ui.border.default";
28
22
  };
29
23
  borderWidth: {
30
- base: string;
31
- md: string;
24
+ base: ".75rem 0px 0px 0px";
25
+ md: "0px 0px 0px .75rem";
32
26
  };
33
27
  gap: string;
34
28
  justifyContent: string;
35
29
  width: {
36
- base: string;
37
- md: string;
30
+ base: "100%";
31
+ md: "50%";
38
32
  };
39
33
  _dark: {
40
34
  bg: string;
41
35
  borderTopColor: {
42
- md: string;
36
+ md: "dark.ui.border.default";
43
37
  };
44
38
  borderLeftColor: {
45
- md: string | {
46
- primary: string;
47
- secondary: string;
48
- };
39
+ md: any;
49
40
  };
50
41
  };
51
42
  padding: {
52
- base: string;
53
- md: string;
54
- lg: string;
43
+ base: "var(--nypl-space-s) var(--nypl-space-l) var(--nypl-space-l) var(--nypl-space-l)";
44
+ md: "l";
45
+ lg: "var(--nypl-space-l) var(--nypl-space-xxl) var(--nypl-space-l) var(--nypl-space-xl)";
55
46
  };
56
47
  };
57
48
  privacy: {
@@ -61,12 +52,12 @@ declare const NewsletterSignup: {
61
52
  action: {
62
53
  justifyContent: string;
63
54
  padding: {
64
- base: string;
65
- lg: string;
55
+ base: "l";
56
+ lg: "var(--nypl-space-l) var(--nypl-space-xxl)";
66
57
  };
67
58
  width: {
68
- base: string;
69
- md: string;
59
+ base: "100%";
60
+ md: "50%";
70
61
  };
71
62
  };
72
63
  form: {
@@ -87,7 +78,24 @@ declare const NewsletterSignup: {
87
78
  base: any;
88
79
  lg: string;
89
80
  };
81
+ height: string;
90
82
  };
91
83
  };
84
+ sizes?: {
85
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
86
+ keys: ("pitch" | "privacy" | "action")[];
87
+ }>;
88
+ };
89
+ variants?: {
90
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
91
+ keys: ("pitch" | "privacy" | "action")[];
92
+ }>;
93
+ };
94
+ defaultProps?: {
95
+ size?: string | number;
96
+ variant?: string | number;
97
+ colorScheme?: string;
98
+ };
99
+ parts: ("pitch" | "privacy" | "action")[];
92
100
  };
93
101
  export default NewsletterSignup;
@@ -1,137 +1,72 @@
1
1
  import { NotificationTypes } from "../../components/Notification/Notification";
2
- interface NotificationBaseStyle {
2
+ import { StyleFunctionProps } from "@chakra-ui/system";
3
+ interface NotificationBaseStyle extends StyleFunctionProps {
3
4
  isCentered: boolean;
4
5
  noMargin: boolean;
5
6
  notificationHeading: string;
6
7
  notificationType: NotificationTypes;
7
8
  showIcon: boolean;
8
9
  }
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) => {
10
+ declare const Notification: {
11
+ baseStyle?: ({ isCentered, noMargin, notificationHeading, notificationType, }: NotificationBaseStyle) => {
12
+ bg: string;
13
+ borderRadius: string;
14
+ display: string;
15
+ fontSize: string;
16
+ m: string;
17
+ position: string;
18
+ p: string;
19
+ textAlign: string;
20
+ _dark: {
25
21
  bg: string;
26
- borderRadius: string;
22
+ };
23
+ container: {
27
24
  display: string;
28
- fontSize: string;
25
+ flexDirection: string;
29
26
  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
- };
27
+ maxWidth: string;
28
+ paddingEnd: string;
29
+ paddingStart: string;
30
+ w: string;
67
31
  };
68
- };
69
- NotificationContent: {
70
- parts: string[];
71
- baseStyle: ({ isCentered, notificationHeading, notificationType, showIcon, }: NotificationContentBaseStyle) => {
32
+ dismissibleButton: {
33
+ border: string;
34
+ bgColor: string;
35
+ alignItems: string;
36
+ color: string;
72
37
  display: string;
73
- justifyContent: string;
74
- content: {
75
- color: string;
38
+ h: string;
39
+ w: string;
40
+ minWidth: string;
41
+ position: string;
42
+ right: string;
43
+ top: string;
44
+ svg: {
76
45
  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
46
  };
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
47
  _dark: {
112
- borderBottomColor: string;
113
- borderBottomStyle: string;
114
- borderBottomWidth: string;
115
48
  color: string;
116
- paddingBottom: string;
117
49
  };
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;
50
+ _hover: {
51
+ bg: string;
133
52
  };
134
53
  };
135
54
  };
55
+ sizes?: {
56
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
57
+ keys: ("container" | "dismissibleButton")[];
58
+ }>;
59
+ };
60
+ variants?: {
61
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
62
+ keys: ("container" | "dismissibleButton")[];
63
+ }>;
64
+ };
65
+ defaultProps?: {
66
+ size?: string | number;
67
+ variant?: string | number;
68
+ colorScheme?: string;
69
+ };
70
+ parts: ("container" | "dismissibleButton")[];
136
71
  };
137
- export default _default;
72
+ export default Notification;