@nypl/design-system-react-components 4.0.0-remove-matchMedia-test → 4.0.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.
- package/README.md +125 -201
- package/dist/design-system-react-components.cjs +58 -58
- package/dist/design-system-react-components.js +18457 -19086
- package/dist/readme/componentheader.png +0 -0
- package/dist/src/components/Accordion/Accordion.d.ts +7 -9
- package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +2 -6
- package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +4 -13
- package/dist/src/components/Banner/Banner.d.ts +9 -16
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +7 -11
- package/dist/src/components/Button/Button.d.ts +10 -17
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +2 -6
- package/dist/src/components/ButtonGroup/ButtonGroupContext.d.ts +3 -0
- package/dist/src/components/Card/Card.d.ts +3 -7
- package/dist/src/components/Checkbox/Checkbox.d.ts +3 -12
- package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +4 -8
- package/dist/src/components/CheckboxGroup/CheckboxGroupContext.d.ts +10 -0
- package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +2 -7
- package/dist/src/components/DatePicker/DatePicker.d.ts +4 -8
- package/dist/src/components/FeaturedContent/FeaturedContent.d.ts +3 -7
- package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +2 -6
- package/dist/src/components/Fieldset/Fieldset.d.ts +2 -6
- package/dist/src/components/FilterBarInline/FilterBarInline.d.ts +2 -6
- package/dist/src/components/FilterBarPopup/FilterBarPopup.d.ts +2 -6
- package/dist/src/components/Form/Form.d.ts +10 -15
- package/dist/src/components/Grid/SimpleGrid.d.ts +2 -6
- package/dist/src/components/Heading/Heading.d.ts +2 -9
- package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +2 -7
- package/dist/src/components/Hero/Hero.d.ts +11 -13
- package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +2 -6
- package/dist/src/components/Icons/Icon.d.ts +5 -9
- package/dist/src/components/Icons/IconSvgs.d.ts +3 -0
- package/dist/src/components/Icons/iconVariables.d.ts +3 -3
- package/dist/src/components/Image/Image.d.ts +2 -14
- package/dist/src/components/Label/Label.d.ts +3 -9
- package/dist/src/components/Link/Link.d.ts +8 -18
- package/dist/src/components/List/List.d.ts +5 -14
- package/dist/src/components/Logo/Logo.d.ts +2 -6
- package/dist/src/components/Menu/Menu.d.ts +2 -6
- package/dist/src/components/Modal/Modal.d.ts +8 -11
- package/dist/src/components/MultiSelect/MultiSelect.d.ts +9 -10
- package/dist/src/components/MultiSelect/MultiSelectItemsCountButton.d.ts +2 -5
- package/dist/src/components/MultiSelectGroup/MultiSelectGroup.d.ts +2 -6
- package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +6 -11
- package/dist/src/components/Notification/Notification.d.ts +9 -13
- package/dist/src/components/Pagination/Pagination.d.ts +2 -6
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +3 -5
- package/dist/src/components/Radio/Radio.d.ts +4 -13
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +6 -9
- package/dist/src/components/RadioGroup/RadioGroupContext.d.ts +10 -0
- package/dist/src/components/SearchBar/SearchBar.d.ts +5 -15
- package/dist/src/components/Select/Select.d.ts +6 -18
- package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +2 -6
- package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +2 -6
- package/dist/src/components/Slider/Slider.d.ts +3 -7
- package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +4 -8
- package/dist/src/components/StatusBadge/StatusBadge.d.ts +5 -9
- package/dist/src/components/StructuredContent/StructuredContent.d.ts +2 -6
- package/dist/src/components/StyledList/StyledList.d.ts +2 -8
- package/dist/src/components/SubNav/SubNav.d.ts +4 -13
- package/dist/src/components/Table/Table.d.ts +2 -10
- package/dist/src/components/Tabs/Tabs.d.ts +2 -4
- package/dist/src/components/TagSet/TagSet.d.ts +2 -9
- package/dist/src/components/TagSet/TagSetExplore.d.ts +3 -2
- package/dist/src/components/TagSet/TagSetFilter.d.ts +3 -4
- package/dist/src/components/Template/Template.d.ts +31 -41
- package/dist/src/components/Text/Text.d.ts +3 -11
- package/dist/src/components/TextInput/TextInput.d.ts +9 -34
- package/dist/src/components/Toggle/Toggle.d.ts +3 -10
- package/dist/src/components/Tooltip/Tooltip.d.ts +2 -8
- package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +2 -6
- package/dist/src/hooks/useMultiSelect.d.ts +5 -1
- package/dist/src/hooks/useSafeId.d.ts +6 -0
- package/dist/src/index.d.ts +14 -16
- package/dist/src/theme/components/breadcrumb.d.ts +2 -2
- package/dist/src/theme/components/button.d.ts +12 -0
- package/dist/src/theme/components/datePicker.d.ts +4 -0
- package/dist/src/theme/components/feedbackBox.d.ts +15 -3
- package/dist/src/theme/components/fieldset.d.ts +1 -1
- package/dist/src/theme/components/global.d.ts +1 -5
- package/dist/src/theme/components/heading.d.ts +6 -72
- package/dist/src/theme/components/helperErrorText.d.ts +5 -14
- package/dist/src/theme/components/hero.d.ts +14 -15
- package/dist/src/theme/components/horizontalRule.d.ts +0 -2
- package/dist/src/theme/components/icon.d.ts +2 -5
- package/dist/src/theme/components/label.d.ts +0 -1
- package/dist/src/theme/components/list.d.ts +1 -11
- package/dist/src/theme/components/newsletterSignup.d.ts +4 -4
- package/dist/src/theme/components/notification.d.ts +3 -3
- package/dist/src/theme/components/notificationContent.d.ts +3 -3
- package/dist/src/theme/components/notificationHeading.d.ts +3 -3
- package/dist/src/theme/components/radioGroup.d.ts +1 -1
- package/dist/src/theme/components/searchBar.d.ts +3 -3
- package/dist/src/theme/components/select.d.ts +7 -3
- package/dist/src/theme/components/slider.d.ts +5 -1
- package/dist/src/theme/components/socialmedialinks.d.ts +2 -2
- package/dist/src/theme/components/structuredContent.d.ts +2 -69
- package/dist/src/theme/components/styledList.d.ts +0 -1
- package/dist/src/theme/components/subnav.d.ts +1 -1
- package/dist/src/theme/components/{customTable.d.ts → table.d.ts} +7 -13
- package/dist/src/theme/components/template.d.ts +86 -31
- package/dist/src/theme/components/text.d.ts +1 -3
- package/dist/src/theme/foundations/colors.d.ts +1 -1
- package/dist/src/theme/foundations/global.d.ts +0 -12
- package/dist/src/theme/foundations/spacing.d.ts +16 -0
- package/dist/src/theme/sharedStyles.d.ts +4 -0
- package/dist/src/theme/sharedTypes.d.ts +4 -0
- package/dist/src/utils/utils.d.ts +9 -3
- package/dist/styles.css +1 -1
- package/dist/template/templateFluidColumns1.png +0 -0
- package/dist/template/templateFluidColumns2.png +0 -0
- package/dist/template/templateFluidColumns3.png +0 -0
- package/dist/template/templateFluidColumns4.png +0 -0
- package/dist/template/templateFullPageLayout.png +0 -0
- package/dist/template/templateRegionsFooter.png +0 -0
- package/dist/template/templateRegionsHeader.png +0 -0
- package/dist/template/templateRegionsMain.png +0 -0
- package/dist/template/templateSectionBreakout.png +0 -0
- package/dist/template/templateSectionContent.png +0 -0
- package/dist/template/templateSectionFull.png +0 -0
- package/dist/template/templateSectionSidebar.png +0 -0
- package/dist/template/templateVariantFull.png +0 -0
- package/dist/template/templateVariantNarrow.png +0 -0
- package/dist/template/templateVariantSidebarLeft.png +0 -0
- package/dist/template/templateVariantSidebarRight.png +0 -0
- package/dist/useNextjsImage/aspectRatio.png +0 -0
- package/dist/useNextjsImage/containedImageExamples.png +0 -0
- package/dist/useNextjsImage/croppedImageExamples.png +0 -0
- package/dist/useNextjsImage/customWidth.png +0 -0
- package/dist/useNextjsImage/fallbackImageDark.png +0 -0
- package/dist/useNextjsImage/fallbackImageLight.png +0 -0
- package/dist/useNextjsImage/focalPointExamples01.png +0 -0
- package/dist/useNextjsImage/focalPointExamples02.png +0 -0
- package/package.json +14 -18
- package/dist/src/hooks/useCarouselStyles.d.ts +0 -17
- package/dist/src/hooks/useWindowSize.d.ts +0 -10
- package/dist/src/theme/components/filterBar.d.ts +0 -46
- package/dist/template/templateBottom.png +0 -0
- package/dist/template/templateBreakout.png +0 -0
- package/dist/template/templateMain.png +0 -0
- package/dist/template/templateMainNarrow.png +0 -0
- package/dist/template/templateMainWide.png +0 -0
- package/dist/template/templateSidebarLeft.png +0 -0
- package/dist/template/templateSidebarNone.png +0 -0
- package/dist/template/templateSidebarRight.png +0 -0
- package/dist/template/templateTop.png +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
2
|
+
import { iconSizeStyles } from "../sharedStyles";
|
|
2
3
|
declare const align: Record<string, {
|
|
3
4
|
marginEnd?: string;
|
|
4
5
|
marginStart?: string;
|
|
@@ -6,15 +7,11 @@ declare const align: Record<string, {
|
|
|
6
7
|
declare const iconRotation: Record<string, {
|
|
7
8
|
transform: string;
|
|
8
9
|
}>;
|
|
9
|
-
declare const size: Record<string, {
|
|
10
|
-
height?: string;
|
|
11
|
-
width?: string;
|
|
12
|
-
}>;
|
|
13
10
|
interface IconBaseStyle extends StyleFunctionProps {
|
|
14
11
|
align: keyof typeof align;
|
|
15
12
|
color: string;
|
|
16
13
|
iconRotation: keyof typeof iconRotation;
|
|
17
|
-
size: keyof typeof
|
|
14
|
+
size: keyof typeof iconSizeStyles;
|
|
18
15
|
}
|
|
19
16
|
declare const Icon: {
|
|
20
17
|
baseStyle?: (props: IconBaseStyle) => {
|
|
@@ -54,8 +54,6 @@ export declare const unorderedStyles: (props?: ListBaseStyle) => {
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
margin: string;
|
|
58
|
-
marginBottom: string;
|
|
59
57
|
};
|
|
60
58
|
export declare const descriptionStyles: (showRowDividers?: boolean) => {
|
|
61
59
|
dl: {
|
|
@@ -173,14 +171,6 @@ declare const List: {
|
|
|
173
171
|
};
|
|
174
172
|
};
|
|
175
173
|
};
|
|
176
|
-
margin: string;
|
|
177
|
-
marginBottom: string;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
ol: {
|
|
181
|
-
base: {
|
|
182
|
-
margin: string;
|
|
183
|
-
marginBottom: string;
|
|
184
174
|
};
|
|
185
175
|
};
|
|
186
176
|
dl: ({ showRowDividers }: StyleFunctionProps) => {
|
|
@@ -251,7 +241,7 @@ declare const List: {
|
|
|
251
241
|
};
|
|
252
242
|
defaultProps?: {
|
|
253
243
|
size?: string | number;
|
|
254
|
-
variant?: "dl" | "
|
|
244
|
+
variant?: "dl" | "ul";
|
|
255
245
|
colorScheme?: string;
|
|
256
246
|
};
|
|
257
247
|
parts: ("base" | "heading")[];
|
|
@@ -13,10 +13,10 @@ declare const NewsletterSignup: {
|
|
|
13
13
|
pitch: {
|
|
14
14
|
bg: string;
|
|
15
15
|
borderLeftColor: {
|
|
16
|
-
md:
|
|
16
|
+
md: string;
|
|
17
17
|
};
|
|
18
18
|
borderTopColor: {
|
|
19
|
-
base:
|
|
19
|
+
base: string;
|
|
20
20
|
md: "ui.border.default";
|
|
21
21
|
};
|
|
22
22
|
borderWidth: {
|
|
@@ -35,7 +35,7 @@ declare const NewsletterSignup: {
|
|
|
35
35
|
md: "dark.ui.border.default";
|
|
36
36
|
};
|
|
37
37
|
borderLeftColor: {
|
|
38
|
-
md:
|
|
38
|
+
md: `dark.${string}`;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
padding: {
|
|
@@ -62,7 +62,7 @@ declare const NewsletterSignup: {
|
|
|
62
62
|
form: {
|
|
63
63
|
width: string;
|
|
64
64
|
};
|
|
65
|
-
"
|
|
65
|
+
".ds-newslettersignup-form > div": {
|
|
66
66
|
gridTemplateColumns: {
|
|
67
67
|
base: any;
|
|
68
68
|
lg: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NotificationVariants } from "../../components/Notification/Notification";
|
|
2
2
|
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
3
3
|
interface NotificationBaseStyle extends StyleFunctionProps {
|
|
4
4
|
isCentered: boolean;
|
|
5
5
|
notificationHeading: string;
|
|
6
|
-
|
|
6
|
+
variant: NotificationVariants;
|
|
7
7
|
showIcon: boolean;
|
|
8
8
|
}
|
|
9
9
|
declare const Notification: {
|
|
10
|
-
baseStyle?: ({ isCentered, notificationHeading,
|
|
10
|
+
baseStyle?: ({ isCentered, notificationHeading, variant }: NotificationBaseStyle) => {
|
|
11
11
|
bg: string;
|
|
12
12
|
display: string;
|
|
13
13
|
fontSize: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NotificationVariants } from "../../components/Notification/Notification";
|
|
2
2
|
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
3
3
|
interface NotificationContentBaseStyle extends StyleFunctionProps {
|
|
4
4
|
alignText: boolean;
|
|
5
5
|
isCentered: boolean;
|
|
6
6
|
notificationHeading: string;
|
|
7
|
-
|
|
7
|
+
variant: NotificationVariants;
|
|
8
8
|
showIcon: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare const NotificationContent: {
|
|
11
|
-
baseStyle?: ({ isCentered, notificationHeading,
|
|
11
|
+
baseStyle?: ({ isCentered, notificationHeading, variant, showIcon, }: NotificationContentBaseStyle) => {
|
|
12
12
|
display: string;
|
|
13
13
|
justifyContent: string;
|
|
14
14
|
content: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NotificationVariants } from "../../components/Notification/Notification";
|
|
2
2
|
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
3
3
|
interface NotificationHeadingBaseStyle extends StyleFunctionProps {
|
|
4
4
|
icon: boolean;
|
|
5
5
|
isCentered: boolean;
|
|
6
|
-
|
|
6
|
+
variant: NotificationVariants;
|
|
7
7
|
}
|
|
8
8
|
declare const NotificationHeading: {
|
|
9
|
-
baseStyle?: ({ icon, isCentered,
|
|
9
|
+
baseStyle?: ({ icon, isCentered, variant }: NotificationHeadingBaseStyle) => {
|
|
10
10
|
display: string;
|
|
11
11
|
flexDirection: string;
|
|
12
12
|
m: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
declare const SearchBar: {
|
|
2
|
-
baseStyle?: {
|
|
3
|
-
".textInput": {
|
|
2
|
+
baseStyle?: ({ hasSelectElem }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
|
3
|
+
".ds-searchBar-textInput": {
|
|
4
4
|
flexGrow: number;
|
|
5
5
|
"div > input": {
|
|
6
6
|
borderRight: number;
|
|
7
7
|
borderRightRadius: number;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
".
|
|
10
|
+
".ds-searchBar-button": {
|
|
11
11
|
minWidth: string;
|
|
12
12
|
borderLeftRadius: string;
|
|
13
13
|
lineHeight: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
2
2
|
interface SelectBaseStyle extends StyleFunctionProps {
|
|
3
3
|
labelPosition: string;
|
|
4
|
+
showLabel: boolean;
|
|
4
5
|
}
|
|
5
6
|
declare const Select: {
|
|
6
|
-
baseStyle?: ({ labelPosition }: SelectBaseStyle) => {
|
|
7
|
+
baseStyle?: ({ labelPosition, labelWidth, showLabel }: SelectBaseStyle) => {
|
|
7
8
|
inline: {
|
|
8
9
|
display: {
|
|
9
10
|
md: "flex";
|
|
@@ -108,10 +109,13 @@ declare const Select: {
|
|
|
108
109
|
};
|
|
109
110
|
};
|
|
110
111
|
};
|
|
112
|
+
"div[data-testid='ds-helperErrorText']": {
|
|
113
|
+
marginLeft: string;
|
|
114
|
+
};
|
|
111
115
|
};
|
|
112
116
|
sizes?: {
|
|
113
117
|
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
114
|
-
keys: ("select" | "inline"
|
|
118
|
+
keys: ("select" | "inline")[];
|
|
115
119
|
}>;
|
|
116
120
|
};
|
|
117
121
|
variants?: {
|
|
@@ -126,6 +130,6 @@ declare const Select: {
|
|
|
126
130
|
variant?: "searchbar";
|
|
127
131
|
colorScheme?: string;
|
|
128
132
|
};
|
|
129
|
-
parts: ("select" | "inline"
|
|
133
|
+
parts: ("select" | "inline")[];
|
|
130
134
|
};
|
|
131
135
|
export default Select;
|
|
@@ -7,7 +7,7 @@ interface CustomSliderBaseStyle extends StyleFunctionProps {
|
|
|
7
7
|
showValues: boolean;
|
|
8
8
|
}
|
|
9
9
|
declare const CustomSlider: {
|
|
10
|
-
baseStyle?: ({
|
|
10
|
+
baseStyle?: ({ isDisabled, isInvalid, showBoxes, showValues, }: CustomSliderBaseStyle) => {
|
|
11
11
|
container: {
|
|
12
12
|
display: string;
|
|
13
13
|
alignItems: string;
|
|
@@ -40,6 +40,7 @@ declare const CustomSlider: {
|
|
|
40
40
|
};
|
|
41
41
|
_dark: {
|
|
42
42
|
bgColor: string;
|
|
43
|
+
borderColor: string;
|
|
43
44
|
_disabled: {
|
|
44
45
|
bgColor: string;
|
|
45
46
|
borderColor: string;
|
|
@@ -48,6 +49,9 @@ declare const CustomSlider: {
|
|
|
48
49
|
};
|
|
49
50
|
filledTrack: {
|
|
50
51
|
bgColor: string;
|
|
52
|
+
_dark: {
|
|
53
|
+
bgColor: string;
|
|
54
|
+
};
|
|
51
55
|
};
|
|
52
56
|
leftValue: {
|
|
53
57
|
color: string;
|
|
@@ -86,7 +86,7 @@ declare const SocialMediaLinks: {
|
|
|
86
86
|
gap: string;
|
|
87
87
|
a: {
|
|
88
88
|
color: string;
|
|
89
|
-
".
|
|
89
|
+
".ds-socialMediaLinks-icon": {
|
|
90
90
|
minHeight: {
|
|
91
91
|
base: string;
|
|
92
92
|
md: "0";
|
|
@@ -136,7 +136,7 @@ declare const SocialMediaLinks: {
|
|
|
136
136
|
gap: string;
|
|
137
137
|
a: {
|
|
138
138
|
color: string;
|
|
139
|
-
".
|
|
139
|
+
".ds-socialMediaLinks-icon": {
|
|
140
140
|
minHeight: {
|
|
141
141
|
base: string;
|
|
142
142
|
md: "0";
|
|
@@ -6,68 +6,6 @@ interface StructuredContentBaseStyle extends StyleFunctionProps {
|
|
|
6
6
|
}
|
|
7
7
|
declare const StructuredContent: {
|
|
8
8
|
baseStyle?: ({ hasFigureImage, imageAspectRatio, imagePosition, }: StructuredContentBaseStyle) => {
|
|
9
|
-
one: {
|
|
10
|
-
base: {
|
|
11
|
-
width: string;
|
|
12
|
-
a: {
|
|
13
|
-
textUnderlineOffset: string;
|
|
14
|
-
};
|
|
15
|
-
marginTop: string;
|
|
16
|
-
marginStart: string;
|
|
17
|
-
marginEnd: string;
|
|
18
|
-
fontSize: string;
|
|
19
|
-
fontWeight: string;
|
|
20
|
-
letterSpacing: string;
|
|
21
|
-
lineHeight: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
two: {
|
|
25
|
-
base: {
|
|
26
|
-
width: string;
|
|
27
|
-
a: {
|
|
28
|
-
textUnderlineOffset: string;
|
|
29
|
-
};
|
|
30
|
-
marginTop: string;
|
|
31
|
-
marginStart: string;
|
|
32
|
-
marginEnd: string;
|
|
33
|
-
fontSize: string;
|
|
34
|
-
fontWeight: string;
|
|
35
|
-
lineHeight: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
three: {
|
|
39
|
-
base: {
|
|
40
|
-
width: string;
|
|
41
|
-
marginTop: string;
|
|
42
|
-
marginStart: string;
|
|
43
|
-
marginEnd: string;
|
|
44
|
-
fontSize: string;
|
|
45
|
-
fontWeight: string;
|
|
46
|
-
lineHeight: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
four: {
|
|
50
|
-
base: {
|
|
51
|
-
width: string;
|
|
52
|
-
marginTop: string;
|
|
53
|
-
marginStart: string;
|
|
54
|
-
marginEnd: string;
|
|
55
|
-
fontSize: string;
|
|
56
|
-
fontWeight: string;
|
|
57
|
-
lineHeight: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
fallback: {
|
|
61
|
-
base: {
|
|
62
|
-
width: string;
|
|
63
|
-
marginTop: string;
|
|
64
|
-
marginStart: string;
|
|
65
|
-
marginEnd: string;
|
|
66
|
-
fontSize: string;
|
|
67
|
-
fontWeight: string;
|
|
68
|
-
lineHeight: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
9
|
display1: {
|
|
72
10
|
base: {
|
|
73
11
|
fontSize: {
|
|
@@ -242,7 +180,7 @@ declare const StructuredContent: {
|
|
|
242
180
|
* not rendered from the Reservoir DS. Typically, these HTML elements
|
|
243
181
|
* are added from an API response.
|
|
244
182
|
*/
|
|
245
|
-
".
|
|
183
|
+
".ds-structuredContent-body > div": {
|
|
246
184
|
marginTop: string;
|
|
247
185
|
marginInlineEnd: string;
|
|
248
186
|
marginBottom: string;
|
|
@@ -287,7 +225,6 @@ declare const StructuredContent: {
|
|
|
287
225
|
};
|
|
288
226
|
};
|
|
289
227
|
margin: string;
|
|
290
|
-
marginBottom: string;
|
|
291
228
|
marginInlineStart: string;
|
|
292
229
|
paddingStart: string;
|
|
293
230
|
padding: string;
|
|
@@ -344,10 +281,7 @@ declare const StructuredContent: {
|
|
|
344
281
|
base: string;
|
|
345
282
|
md: string;
|
|
346
283
|
};
|
|
347
|
-
paddingTop: string;
|
|
348
|
-
* not rendered from the Reservoir DS. Typically, these HTML elements
|
|
349
|
-
* are added from an API response.
|
|
350
|
-
*/
|
|
284
|
+
paddingTop: string;
|
|
351
285
|
_dark: {
|
|
352
286
|
borderColor: string;
|
|
353
287
|
color: string;
|
|
@@ -470,7 +404,6 @@ declare const StructuredContent: {
|
|
|
470
404
|
base: string;
|
|
471
405
|
md: string;
|
|
472
406
|
};
|
|
473
|
-
fontSize: string;
|
|
474
407
|
gap: string;
|
|
475
408
|
letterSpacing: string;
|
|
476
409
|
lineHeight: number;
|
|
@@ -9,7 +9,7 @@ interface SubNavChildrenStyleProps extends StyleFunctionProps {
|
|
|
9
9
|
declare const SubNav: {
|
|
10
10
|
baseStyle?: ({ backgroundColor, highlightColor }: SubNavStyleProps) => {
|
|
11
11
|
base: {
|
|
12
|
-
".selectedItem": {
|
|
12
|
+
".ds-subNav-selectedItem": {
|
|
13
13
|
color: string;
|
|
14
14
|
fontWeight: string;
|
|
15
15
|
backgroundColor: string;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
2
|
-
import { TableBodyTextSizes } from "../../components/Table/Table";
|
|
3
2
|
interface BaseStyleProps extends StyleFunctionProps {
|
|
4
3
|
columnHeadersBackgroundColor?: string;
|
|
5
4
|
columnHeadersTextColor?: string;
|
|
6
|
-
tableTextSize?: TableBodyTextSizes;
|
|
7
5
|
isScrollable?: boolean;
|
|
8
6
|
showRowDividers?: boolean;
|
|
9
7
|
useRowHeaders?: boolean;
|
|
@@ -57,7 +55,7 @@ export declare const baseTRStyles: (columnHeadersBackgroundColor?: string, isScr
|
|
|
57
55
|
borderColor: string;
|
|
58
56
|
};
|
|
59
57
|
};
|
|
60
|
-
export declare const baseCellStyles: (columnHeadersBackgroundColor?: string, columnHeadersTextColor?: string,
|
|
58
|
+
export declare const baseCellStyles: (columnHeadersBackgroundColor?: string, columnHeadersTextColor?: string, isScrollable?: boolean, showRowDividers?: boolean) => {
|
|
61
59
|
border: string;
|
|
62
60
|
borderBottom: string;
|
|
63
61
|
borderColor: string;
|
|
@@ -65,7 +63,6 @@ export declare const baseCellStyles: (columnHeadersBackgroundColor?: string, col
|
|
|
65
63
|
base: string;
|
|
66
64
|
md: string;
|
|
67
65
|
};
|
|
68
|
-
fontSize: string;
|
|
69
66
|
gap: string;
|
|
70
67
|
letterSpacing: string;
|
|
71
68
|
lineHeight: number;
|
|
@@ -113,7 +110,7 @@ export declare const baseCellStyles: (columnHeadersBackgroundColor?: string, col
|
|
|
113
110
|
};
|
|
114
111
|
};
|
|
115
112
|
};
|
|
116
|
-
export declare const baseTHStyles: (columnHeadersBackgroundColor?: string, columnHeadersTextColor?: string,
|
|
113
|
+
export declare const baseTHStyles: (columnHeadersBackgroundColor?: string, columnHeadersTextColor?: string, isScrollable?: boolean, showRowDividers?: boolean, useRowHeaders?: boolean) => {
|
|
117
114
|
color: string;
|
|
118
115
|
fontWeight: string;
|
|
119
116
|
fontSize: string;
|
|
@@ -189,7 +186,7 @@ export declare const baseTHStyles: (columnHeadersBackgroundColor?: string, colum
|
|
|
189
186
|
};
|
|
190
187
|
};
|
|
191
188
|
};
|
|
192
|
-
export declare const baseTDStyles: (columnHeadersBackgroundColor?: string, columnHeadersTextColor?: string,
|
|
189
|
+
export declare const baseTDStyles: (columnHeadersBackgroundColor?: string, columnHeadersTextColor?: string, isScrollable?: boolean, showRowDividers?: boolean) => {
|
|
193
190
|
_last: {
|
|
194
191
|
borderBottom: string | {
|
|
195
192
|
base: number;
|
|
@@ -203,7 +200,6 @@ export declare const baseTDStyles: (columnHeadersBackgroundColor?: string, colum
|
|
|
203
200
|
base: string;
|
|
204
201
|
md: string;
|
|
205
202
|
};
|
|
206
|
-
fontSize: string;
|
|
207
203
|
gap: string;
|
|
208
204
|
letterSpacing: string;
|
|
209
205
|
lineHeight: number;
|
|
@@ -247,7 +243,7 @@ export declare const baseTDStyles: (columnHeadersBackgroundColor?: string, colum
|
|
|
247
243
|
};
|
|
248
244
|
};
|
|
249
245
|
};
|
|
250
|
-
export declare const baseStyle: ({ columnHeadersBackgroundColor, columnHeadersTextColor,
|
|
246
|
+
export declare const baseStyle: ({ columnHeadersBackgroundColor, columnHeadersTextColor, isScrollable, showRowDividers, useRowHeaders, }: BaseStyleProps) => {
|
|
251
247
|
base: {
|
|
252
248
|
overflow: string;
|
|
253
249
|
maxWidth: string;
|
|
@@ -280,7 +276,6 @@ export declare const baseStyle: ({ columnHeadersBackgroundColor, columnHeadersTe
|
|
|
280
276
|
};
|
|
281
277
|
color: string;
|
|
282
278
|
fontWeight: string;
|
|
283
|
-
fontSize: string;
|
|
284
279
|
textTransform: string;
|
|
285
280
|
verticalAlign: string;
|
|
286
281
|
_dark: {
|
|
@@ -297,6 +292,7 @@ export declare const baseStyle: ({ columnHeadersBackgroundColor, columnHeadersTe
|
|
|
297
292
|
md: "table-header-group";
|
|
298
293
|
};
|
|
299
294
|
th: {
|
|
295
|
+
fontSize: string;
|
|
300
296
|
_first: {
|
|
301
297
|
backgroundColor: string;
|
|
302
298
|
_dark: {
|
|
@@ -424,7 +420,6 @@ export declare const baseStyle: ({ columnHeadersBackgroundColor, columnHeadersTe
|
|
|
424
420
|
base: string;
|
|
425
421
|
md: string;
|
|
426
422
|
};
|
|
427
|
-
fontSize: string;
|
|
428
423
|
gap: string;
|
|
429
424
|
letterSpacing: string;
|
|
430
425
|
lineHeight: number;
|
|
@@ -489,7 +484,7 @@ export declare const baseStyle: ({ columnHeadersBackgroundColor, columnHeadersTe
|
|
|
489
484
|
};
|
|
490
485
|
};
|
|
491
486
|
declare const CustomTable: {
|
|
492
|
-
baseStyle?: ({ columnHeadersBackgroundColor, columnHeadersTextColor,
|
|
487
|
+
baseStyle?: ({ columnHeadersBackgroundColor, columnHeadersTextColor, isScrollable, showRowDividers, useRowHeaders, }: BaseStyleProps) => {
|
|
493
488
|
base: {
|
|
494
489
|
overflow: string;
|
|
495
490
|
maxWidth: string;
|
|
@@ -522,7 +517,6 @@ declare const CustomTable: {
|
|
|
522
517
|
};
|
|
523
518
|
color: string;
|
|
524
519
|
fontWeight: string;
|
|
525
|
-
fontSize: string;
|
|
526
520
|
textTransform: string;
|
|
527
521
|
verticalAlign: string;
|
|
528
522
|
_dark: {
|
|
@@ -539,6 +533,7 @@ declare const CustomTable: {
|
|
|
539
533
|
md: "table-header-group";
|
|
540
534
|
};
|
|
541
535
|
th: {
|
|
536
|
+
fontSize: string;
|
|
542
537
|
_first: {
|
|
543
538
|
backgroundColor: string;
|
|
544
539
|
_dark: {
|
|
@@ -666,7 +661,6 @@ declare const CustomTable: {
|
|
|
666
661
|
base: string;
|
|
667
662
|
md: string;
|
|
668
663
|
};
|
|
669
|
-
fontSize: string;
|
|
670
664
|
gap: string;
|
|
671
665
|
letterSpacing: string;
|
|
672
666
|
lineHeight: number;
|
|
@@ -7,12 +7,11 @@ declare const _default: {
|
|
|
7
7
|
maxWidth: string;
|
|
8
8
|
minWidth: string;
|
|
9
9
|
m: string;
|
|
10
|
-
|
|
10
|
+
px: {
|
|
11
11
|
base: string;
|
|
12
12
|
md: string;
|
|
13
13
|
xl: string;
|
|
14
14
|
};
|
|
15
|
-
gridTemplateAreas: string;
|
|
16
15
|
gridTemplateColumns: string;
|
|
17
16
|
gridTemplateRows: string;
|
|
18
17
|
columnGap: {
|
|
@@ -27,51 +26,77 @@ declare const _default: {
|
|
|
27
26
|
xl: string;
|
|
28
27
|
};
|
|
29
28
|
};
|
|
29
|
+
/** The "content" area should span the full width of the content area from
|
|
30
|
+
* a mobile-first viewpoint. Using -1 for the "last column" value ensures
|
|
31
|
+
* that these elements span all columns in the grid. CSS classes were used
|
|
32
|
+
* for the "content" and "sidebar" ragions in order to simplify how
|
|
33
|
+
* variants are handled.
|
|
34
|
+
* */
|
|
35
|
+
"& .ds-template-content": {
|
|
36
|
+
gridColumn: {
|
|
37
|
+
base: "1 / -1";
|
|
38
|
+
};
|
|
39
|
+
};
|
|
30
40
|
};
|
|
31
41
|
sizes?: {
|
|
32
42
|
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
33
43
|
};
|
|
34
44
|
variants?: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
45
|
+
sidebarLeft: {
|
|
46
|
+
"& .ds-template-content": {
|
|
47
|
+
gridColumn: {
|
|
48
|
+
sm: "7 / -1";
|
|
49
|
+
md: "5 / -1";
|
|
50
|
+
lg: "4 / -1";
|
|
51
|
+
};
|
|
39
52
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
53
|
+
"& .ds-template-sidebar": {
|
|
54
|
+
gridColumn: {
|
|
55
|
+
base: "1 / -1";
|
|
56
|
+
sm: "1 / 7";
|
|
57
|
+
md: "1 / 5";
|
|
58
|
+
lg: "1 / 4";
|
|
59
|
+
};
|
|
45
60
|
};
|
|
46
61
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
62
|
+
sidebarRight: {
|
|
63
|
+
"& .ds-template-content": {
|
|
64
|
+
gridColumn: {
|
|
65
|
+
sm: "1 / 7";
|
|
66
|
+
md: "1 / 9";
|
|
67
|
+
lg: "1 / 10";
|
|
68
|
+
};
|
|
51
69
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
70
|
+
"& .ds-template-sidebar": {
|
|
71
|
+
gridColumn: {
|
|
72
|
+
base: "1 / -1";
|
|
73
|
+
sm: "7 / -1";
|
|
74
|
+
md: "9 / -1";
|
|
75
|
+
lg: "10 / -1";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
narrow: {
|
|
80
|
+
"& .ds-template-content": {
|
|
81
|
+
gridColumn: {
|
|
82
|
+
base: "1 / -1";
|
|
83
|
+
md: "2 / 12";
|
|
84
|
+
lg: "3 / 11";
|
|
85
|
+
};
|
|
57
86
|
};
|
|
58
87
|
};
|
|
59
88
|
};
|
|
60
89
|
defaultProps?: {
|
|
61
90
|
size?: string | number;
|
|
62
|
-
variant?: "
|
|
91
|
+
variant?: "sidebarLeft" | "sidebarRight" | "narrow";
|
|
63
92
|
colorScheme?: string;
|
|
64
93
|
};
|
|
65
94
|
};
|
|
66
95
|
TemplateBreakout: {
|
|
67
96
|
baseStyle?: () => {
|
|
68
|
-
|
|
97
|
+
gridColumn: string;
|
|
69
98
|
ml: string;
|
|
70
|
-
|
|
71
|
-
base: string;
|
|
72
|
-
md: string;
|
|
73
|
-
xl: string;
|
|
74
|
-
};
|
|
99
|
+
width: string;
|
|
75
100
|
};
|
|
76
101
|
sizes?: {
|
|
77
102
|
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
@@ -85,10 +110,40 @@ declare const _default: {
|
|
|
85
110
|
colorScheme?: string;
|
|
86
111
|
};
|
|
87
112
|
};
|
|
88
|
-
|
|
89
|
-
baseStyle?: {
|
|
90
|
-
|
|
91
|
-
|
|
113
|
+
TemplateFull: {
|
|
114
|
+
baseStyle?: () => {
|
|
115
|
+
gridColumn: string;
|
|
116
|
+
};
|
|
117
|
+
sizes?: {
|
|
118
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
119
|
+
};
|
|
120
|
+
variants?: {
|
|
121
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
122
|
+
};
|
|
123
|
+
defaultProps?: {
|
|
124
|
+
size?: string | number;
|
|
125
|
+
variant?: string | number;
|
|
126
|
+
colorScheme?: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
TemplateMain: {
|
|
130
|
+
baseStyle?: () => {
|
|
131
|
+
display: string;
|
|
132
|
+
columnGap: {
|
|
133
|
+
base: string;
|
|
134
|
+
md: string;
|
|
135
|
+
xl: string;
|
|
136
|
+
};
|
|
137
|
+
gridColumn: string;
|
|
138
|
+
gridTemplateColumns: string;
|
|
139
|
+
gridTemplateRows: string;
|
|
140
|
+
"& > *:not(:last-child)": {
|
|
141
|
+
mb: {
|
|
142
|
+
base: string;
|
|
143
|
+
md: string;
|
|
144
|
+
xl: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
92
147
|
};
|
|
93
148
|
sizes?: {
|
|
94
149
|
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|