@nypl/design-system-react-components 2.2.0-react-chakra-rc → 3.0.0-react-chakra-rc
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.
- package/dist/design-system-react-components.cjs +58 -58
- package/dist/design-system-react-components.js +17460 -16512
- package/dist/src/components/Accordion/Accordion.d.ts +2 -1
- package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +6 -3
- package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +6 -3
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +2 -1
- package/dist/src/components/Button/Button.d.ts +23 -1
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +15 -1
- package/dist/src/components/Card/Card.d.ts +2 -1
- package/dist/src/components/Checkbox/Checkbox.d.ts +2 -1
- package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +2 -1
- package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +4 -2
- package/dist/src/components/DatePicker/DatePicker.d.ts +14 -6
- package/dist/src/components/FeaturedContent/FeaturedContent.d.ts +2 -1
- package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +48 -2
- package/dist/src/components/Fieldset/Fieldset.d.ts +17 -1
- package/dist/src/components/Form/Form.d.ts +4 -3
- package/dist/src/components/Grid/SimpleGrid.d.ts +2 -1
- package/dist/src/components/Heading/Heading.d.ts +2 -1
- package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +26 -1
- package/dist/src/components/Hero/Hero.d.ts +6 -1
- package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +2 -1
- package/dist/src/components/Icons/Icon.d.ts +2 -1
- package/dist/src/components/Icons/IconSvgs.d.ts +24 -0
- package/dist/src/components/Icons/iconVariables.d.ts +2 -2
- package/dist/src/components/Image/Image.d.ts +9 -2
- package/dist/src/components/Label/Label.d.ts +19 -1
- package/dist/src/components/Link/Link.d.ts +2 -1
- package/dist/src/components/List/List.d.ts +6 -4
- package/dist/src/components/Logo/Logo.d.ts +5 -4
- package/dist/src/components/Logo/logoVariables.d.ts +0 -1
- package/dist/src/components/Menu/Menu.d.ts +58 -0
- package/dist/src/components/Modal/Modal.d.ts +13 -4
- package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +42 -1
- package/dist/src/components/Notification/Notification.d.ts +11 -5
- package/dist/src/components/Pagination/Pagination.d.ts +2 -1
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -1
- package/dist/src/components/Radio/Radio.d.ts +2 -1
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/src/components/SearchBar/SearchBar.d.ts +4 -2
- package/dist/src/components/Select/Select.d.ts +2 -1
- package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +2 -1
- package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +10 -1
- package/dist/src/components/Slider/Slider.d.ts +2 -1
- package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +2 -1
- package/dist/src/components/StatusBadge/StatusBadge.d.ts +15 -6
- package/dist/src/components/StructuredContent/StructuredContent.d.ts +7 -4
- package/dist/src/components/StyleGuide/ColorCard.d.ts +2 -1
- package/dist/src/components/StyledList/StyledList.d.ts +2 -1
- package/dist/src/components/Table/Table.d.ts +2 -1
- package/dist/src/components/Tabs/Tabs.d.ts +2 -2
- package/dist/src/components/TagSet/TagSet.d.ts +2 -1
- package/dist/src/components/TagSet/TagSetExplore.d.ts +1 -1
- package/dist/src/components/TagSet/TagSetFilter.d.ts +1 -1
- package/dist/src/components/Template/Template.d.ts +3 -2
- package/dist/src/components/Text/Text.d.ts +2 -1
- package/dist/src/components/TextInput/TextInput.d.ts +2 -1
- package/dist/src/components/Toggle/Toggle.d.ts +2 -1
- package/dist/src/components/Tooltip/Tooltip.d.ts +2 -1
- package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +6 -3
- package/dist/src/helpers/types.d.ts +2 -0
- package/dist/src/hooks/useDSHeading.d.ts +16 -0
- package/dist/src/hooks/useScrollTabIntoView.d.ts +9 -0
- package/dist/src/hooks/useStateWithDependencies.d.ts +4 -2
- package/dist/src/index.d.ts +3 -1
- package/dist/src/theme/components/accordion.d.ts +22 -2
- package/dist/src/theme/components/alphabetFilter.d.ts +24 -8
- package/dist/src/theme/components/audioPlayer.d.ts +18 -1
- package/dist/src/theme/components/breadcrumb.d.ts +24 -16
- package/dist/src/theme/components/button.d.ts +39 -0
- package/dist/src/theme/components/buttonGroup.d.ts +12 -3
- package/dist/src/theme/components/card.d.ts +104 -235
- package/dist/src/theme/components/checkbox.d.ts +44 -34
- package/dist/src/theme/components/checkboxGroup.d.ts +18 -4
- package/dist/src/theme/components/datePicker.d.ts +17 -6
- package/dist/src/theme/components/featuredContent.d.ts +75 -36
- package/dist/src/theme/components/feedbackBox.d.ts +28 -9
- package/dist/src/theme/components/fieldset.d.ts +14 -2
- package/dist/src/theme/components/global.d.ts +1 -0
- package/dist/src/theme/components/heading.d.ts +596 -249
- package/dist/src/theme/components/helperErrorText.d.ts +19 -3
- package/dist/src/theme/components/hero.d.ts +198 -176
- package/dist/src/theme/components/horizontalRule.d.ts +14 -2
- package/dist/src/theme/components/icon.d.ts +13 -4
- package/dist/src/theme/components/image.d.ts +326 -223
- package/dist/src/theme/components/label.d.ts +14 -2
- package/dist/src/theme/components/link.d.ts +40 -197
- package/dist/src/theme/components/list.d.ts +130 -101
- package/dist/src/theme/components/logo.d.ts +17 -5
- package/dist/src/theme/components/menu.d.ts +169 -0
- package/dist/src/theme/components/modal.d.ts +19 -4
- package/dist/src/theme/components/newsletterSignup.d.ts +37 -29
- package/dist/src/theme/components/notification.d.ts +51 -116
- package/dist/src/theme/components/notificationContent.d.ts +58 -0
- package/dist/src/theme/components/notificationHeading.d.ts +57 -0
- package/dist/src/theme/components/pagination.d.ts +17 -2
- package/dist/src/theme/components/progressIndicator.d.ts +21 -5
- package/dist/src/theme/components/radio.d.ts +25 -6
- package/dist/src/theme/components/radioGroup.d.ts +18 -4
- package/dist/src/theme/components/searchBar.d.ts +24 -6
- package/dist/src/theme/components/select.d.ts +21 -13
- package/dist/src/theme/components/skeletonLoader.d.ts +34 -12
- package/dist/src/theme/components/skipNavigation.d.ts +12 -1
- package/dist/src/theme/components/slider.d.ts +49 -33
- package/dist/src/theme/components/socialmedialinks.d.ts +22 -16
- package/dist/src/theme/components/statusBadge.d.ts +66 -10
- package/dist/src/theme/components/structuredContent.d.ts +233 -102
- package/dist/src/theme/components/styledList.d.ts +12 -6
- package/dist/src/theme/components/tabs.d.ts +27 -13
- package/dist/src/theme/components/tagSet.d.ts +83 -42
- package/dist/src/theme/components/template.d.ts +76 -25
- package/dist/src/theme/components/text.d.ts +27 -12
- package/dist/src/theme/components/textInput.d.ts +52 -44
- package/dist/src/theme/components/toggle.d.ts +33 -11
- package/dist/src/theme/components/tooltip.d.ts +13 -1
- package/dist/src/theme/components/videoPlayer.d.ts +32 -21
- package/dist/src/theme/foundations/global.d.ts +6 -0
- package/dist/styles.css +1 -1
- package/package.json +6 -9
|
@@ -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
|
-
|
|
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:
|
|
13
|
-
md:
|
|
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,10 @@
|
|
|
1
1
|
import { SectionTypes } from "../../helpers/types";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
3
|
+
interface NewsLetterStyleProps extends StyleFunctionProps {
|
|
4
|
+
newsletterSignupType?: SectionTypes;
|
|
4
5
|
}
|
|
5
6
|
declare const NewsletterSignup: {
|
|
6
|
-
|
|
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:
|
|
18
|
-
primary: string;
|
|
19
|
-
secondary: string;
|
|
20
|
-
};
|
|
17
|
+
md: any;
|
|
21
18
|
};
|
|
22
19
|
borderTopColor: {
|
|
23
|
-
base:
|
|
24
|
-
|
|
25
|
-
secondary: string;
|
|
26
|
-
};
|
|
27
|
-
md: string;
|
|
20
|
+
base: any;
|
|
21
|
+
md: "ui.border.default";
|
|
28
22
|
};
|
|
29
23
|
borderWidth: {
|
|
30
|
-
base:
|
|
31
|
-
md:
|
|
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:
|
|
37
|
-
md:
|
|
30
|
+
base: "100%";
|
|
31
|
+
md: "50%";
|
|
38
32
|
};
|
|
39
33
|
_dark: {
|
|
40
34
|
bg: string;
|
|
41
35
|
borderTopColor: {
|
|
42
|
-
md:
|
|
36
|
+
md: "dark.ui.border.default";
|
|
43
37
|
};
|
|
44
38
|
borderLeftColor: {
|
|
45
|
-
md:
|
|
46
|
-
primary: string;
|
|
47
|
-
secondary: string;
|
|
48
|
-
};
|
|
39
|
+
md: any;
|
|
49
40
|
};
|
|
50
41
|
};
|
|
51
42
|
padding: {
|
|
52
|
-
base:
|
|
53
|
-
md:
|
|
54
|
-
lg:
|
|
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:
|
|
65
|
-
lg:
|
|
55
|
+
base: "l";
|
|
56
|
+
lg: "var(--nypl-space-l) var(--nypl-space-xxl)";
|
|
66
57
|
};
|
|
67
58
|
width: {
|
|
68
|
-
base:
|
|
69
|
-
md:
|
|
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
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
22
|
+
};
|
|
23
|
+
container: {
|
|
27
24
|
display: string;
|
|
28
|
-
|
|
25
|
+
flexDirection: string;
|
|
29
26
|
m: string;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
32
|
+
dismissibleButton: {
|
|
33
|
+
border: string;
|
|
34
|
+
bgColor: string;
|
|
35
|
+
alignItems: string;
|
|
36
|
+
color: string;
|
|
72
37
|
display: string;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
119
|
-
|
|
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
|
|
72
|
+
export default Notification;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { NotificationTypes } from "../../components/Notification/Notification";
|
|
2
|
+
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
3
|
+
interface NotificationContentBaseStyle extends StyleFunctionProps {
|
|
4
|
+
alignText: boolean;
|
|
5
|
+
isCentered: boolean;
|
|
6
|
+
notificationHeading: string;
|
|
7
|
+
notificationType: NotificationTypes;
|
|
8
|
+
showIcon: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const NotificationContent: {
|
|
11
|
+
baseStyle?: ({ isCentered, notificationHeading, notificationType, showIcon, }: NotificationContentBaseStyle) => {
|
|
12
|
+
display: string;
|
|
13
|
+
justifyContent: string;
|
|
14
|
+
content: {
|
|
15
|
+
color: string;
|
|
16
|
+
marginTop: string;
|
|
17
|
+
paddingStart: string;
|
|
18
|
+
pt: string;
|
|
19
|
+
w: string;
|
|
20
|
+
_dark: {
|
|
21
|
+
borderLeftColor: string;
|
|
22
|
+
borderLeftStyle: string;
|
|
23
|
+
borderLeftWidth: string;
|
|
24
|
+
marginTop: string;
|
|
25
|
+
paddingStart: string;
|
|
26
|
+
color: string;
|
|
27
|
+
ml: string;
|
|
28
|
+
};
|
|
29
|
+
a: {
|
|
30
|
+
color: string;
|
|
31
|
+
textDecoration: string;
|
|
32
|
+
_dark: {
|
|
33
|
+
color: string;
|
|
34
|
+
_hover: {
|
|
35
|
+
color: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
sizes?: {
|
|
42
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
43
|
+
keys: "content"[];
|
|
44
|
+
}>;
|
|
45
|
+
};
|
|
46
|
+
variants?: {
|
|
47
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
48
|
+
keys: "content"[];
|
|
49
|
+
}>;
|
|
50
|
+
};
|
|
51
|
+
defaultProps?: {
|
|
52
|
+
size?: string | number;
|
|
53
|
+
variant?: string | number;
|
|
54
|
+
colorScheme?: string;
|
|
55
|
+
};
|
|
56
|
+
parts: "content"[];
|
|
57
|
+
};
|
|
58
|
+
export default NotificationContent;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { NotificationTypes } from "../../components/Notification/Notification";
|
|
2
|
+
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
3
|
+
interface NotificationHeadingBaseStyle extends StyleFunctionProps {
|
|
4
|
+
icon: boolean;
|
|
5
|
+
isCentered: boolean;
|
|
6
|
+
notificationType: NotificationTypes;
|
|
7
|
+
}
|
|
8
|
+
declare const NotificationHeading: {
|
|
9
|
+
baseStyle?: ({ icon, isCentered, notificationType }: NotificationHeadingBaseStyle) => {
|
|
10
|
+
display: string;
|
|
11
|
+
flexDirection: string;
|
|
12
|
+
m: string;
|
|
13
|
+
mb: string;
|
|
14
|
+
px: string;
|
|
15
|
+
w: string;
|
|
16
|
+
_dark: {
|
|
17
|
+
borderBottomColor: string;
|
|
18
|
+
borderBottomStyle: string;
|
|
19
|
+
borderBottomWidth: string;
|
|
20
|
+
color: string;
|
|
21
|
+
paddingBottom: string;
|
|
22
|
+
};
|
|
23
|
+
heading: {
|
|
24
|
+
color: string;
|
|
25
|
+
ml: string;
|
|
26
|
+
mt: string;
|
|
27
|
+
_dark: {
|
|
28
|
+
borderLeftColor: string;
|
|
29
|
+
borderLeftStyle: string;
|
|
30
|
+
borderLeftWidth: string;
|
|
31
|
+
paddingLeft: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
svg: {
|
|
35
|
+
mx: string;
|
|
36
|
+
mb: string;
|
|
37
|
+
mt: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
sizes?: {
|
|
41
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
42
|
+
keys: "heading"[];
|
|
43
|
+
}>;
|
|
44
|
+
};
|
|
45
|
+
variants?: {
|
|
46
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
47
|
+
keys: "heading"[];
|
|
48
|
+
}>;
|
|
49
|
+
};
|
|
50
|
+
defaultProps?: {
|
|
51
|
+
size?: string | number;
|
|
52
|
+
variant?: string | number;
|
|
53
|
+
colorScheme?: string;
|
|
54
|
+
};
|
|
55
|
+
parts: "heading"[];
|
|
56
|
+
};
|
|
57
|
+
export default NotificationHeading;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
declare const Pagination: {
|
|
2
|
-
|
|
3
|
-
baseStyle: {
|
|
2
|
+
baseStyle?: {
|
|
4
3
|
alignItems: string;
|
|
5
4
|
display: string;
|
|
6
5
|
width: string;
|
|
@@ -15,5 +14,21 @@ declare const Pagination: {
|
|
|
15
14
|
marginBottom: string;
|
|
16
15
|
};
|
|
17
16
|
};
|
|
17
|
+
sizes?: {
|
|
18
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
19
|
+
keys: "link"[];
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
variants?: {
|
|
23
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
24
|
+
keys: "link"[];
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
27
|
+
defaultProps?: {
|
|
28
|
+
size?: string | number;
|
|
29
|
+
variant?: string | number;
|
|
30
|
+
colorScheme?: string;
|
|
31
|
+
};
|
|
32
|
+
parts: "link"[];
|
|
18
33
|
};
|
|
19
34
|
export default Pagination;
|