@nypl/design-system-react-components 3.6.1 → 4.0.0-remove-matchMedia-test
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 +56 -59
- package/dist/design-system-react-components.js +18925 -20667
- package/dist/filteringStyleGuide/activeFiltersList.png +0 -0
- package/dist/filteringStyleGuide/exampleColumn.png +0 -0
- package/dist/filteringStyleGuide/examplePopup.png +0 -0
- package/dist/filteringStyleGuide/exampleRow.png +0 -0
- package/dist/filteringStyleGuide/filterBar.png +0 -0
- package/dist/filteringStyleGuide/focusClearingFilters.gif +0 -0
- package/dist/filteringStyleGuide/focusKeywordSearch.gif +0 -0
- package/dist/filteringStyleGuide/focusLiveFiltering.gif +0 -0
- package/dist/filteringStyleGuide/focusPagination.gif +0 -0
- package/dist/filteringStyleGuide/focusSorting.gif +0 -0
- package/dist/filteringStyleGuide/fullPageExample.png +0 -0
- package/dist/filteringStyleGuide/keywordSearchField.png +0 -0
- package/dist/filteringStyleGuide/paginationMenu.png +0 -0
- package/dist/filteringStyleGuide/resultsList.png +0 -0
- package/dist/filteringStyleGuide/sortingMenu.png +0 -0
- package/dist/filteringStyleGuide/totalResultsHeading.png +0 -0
- package/dist/responsiveGrid/breakpointRangeDesktop.png +0 -0
- package/dist/responsiveGrid/breakpointRangeMobileLarge.png +0 -0
- package/dist/responsiveGrid/breakpointRangeMobileSmall.png +0 -0
- package/dist/responsiveGrid/breakpointRangeTabletLarge.png +0 -0
- package/dist/responsiveGrid/breakpointRangeTabletSmall.png +0 -0
- package/dist/responsiveGrid/cardGridDesktop4Cols.png +0 -0
- package/dist/responsiveGrid/cardGridLargeMobile1Col.png +0 -0
- package/dist/responsiveGrid/cardGridLargeMobile2Cols.png +0 -0
- package/dist/responsiveGrid/cardGridSmallMobile1Col.png +0 -0
- package/dist/responsiveGrid/cardGridSmallTablet1Col.png +0 -0
- package/dist/responsiveGrid/cardGridSmallTablet3Cols.png +0 -0
- package/dist/responsiveGrid/cardGridSmallTablet3ColsSidebar.png +0 -0
- package/dist/responsiveGrid/gridColumns.png +0 -0
- package/dist/responsiveGrid/gridGutters.png +0 -0
- package/dist/responsiveGrid/gridMargins.png +0 -0
- package/dist/responsiveGrid/gridPerceivedColumns1.png +0 -0
- package/dist/responsiveGrid/gridPerceivedColumns2.png +0 -0
- package/dist/responsiveGrid/gridPerceivedColumns3.png +0 -0
- package/dist/responsiveGrid/gridPerceivedColumns4.png +0 -0
- package/dist/src/components/Accordion/Accordion.d.ts +3 -5
- package/dist/src/components/Banner/Banner.d.ts +0 -2
- package/dist/src/components/Button/Button.d.ts +1 -1
- package/dist/src/components/Heading/Heading.d.ts +2 -2
- package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +2 -13
- package/dist/src/components/Hero/Hero.d.ts +5 -9
- package/dist/src/components/Icons/Icon.d.ts +0 -1
- package/dist/src/components/Link/Link.d.ts +3 -3
- package/dist/src/components/Notification/Notification.d.ts +0 -4
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +0 -2
- package/dist/src/components/StatusBadge/StatusBadge.d.ts +1 -6
- package/dist/src/components/StyledList/StyledList.d.ts +1 -1
- package/dist/src/components/Template/Template.d.ts +36 -115
- package/dist/src/hooks/useNYPLBreakpoints.d.ts +6 -1
- package/dist/src/hooks/useResponsiveSpacing.d.ts +23 -0
- package/dist/src/index.d.ts +6 -7
- package/dist/src/theme/components/button.d.ts +1 -4
- package/dist/src/theme/components/heading.d.ts +1 -125
- package/dist/src/theme/components/hero.d.ts +11 -11
- package/dist/src/theme/components/link.d.ts +1 -40
- package/dist/src/theme/components/newsletterSignup.d.ts +1 -1
- package/dist/src/theme/components/notification.d.ts +1 -4
- package/dist/src/theme/components/progressIndicator.d.ts +1 -2
- package/dist/src/theme/components/slider.d.ts +3 -3
- package/dist/src/theme/components/statusBadge.d.ts +1 -14
- package/dist/src/theme/components/template.d.ts +49 -125
- package/dist/src/theme/components/text.d.ts +1 -9
- package/dist/src/theme/foundations/breakpoints.d.ts +21 -8
- package/dist/src/utils/utils.d.ts +3 -0
- package/dist/styles.css +1 -1
- package/dist/template/templateBottom.png +0 -0
- package/dist/template/templateBreakout.png +0 -0
- 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/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
- package/package.json +1 -1
- package/dist/src/components/Header/Header.d.ts +0 -13
- package/dist/src/components/Header/components/HeaderLogin.d.ts +0 -12
- package/dist/src/components/Header/components/HeaderLoginButton.d.ts +0 -10
- package/dist/src/components/Header/components/HeaderLowerNav.d.ts +0 -6
- package/dist/src/components/Header/components/HeaderMobileIconNav.d.ts +0 -6
- package/dist/src/components/Header/components/HeaderMobileNav.d.ts +0 -6
- package/dist/src/components/Header/components/HeaderMobileNavButton.d.ts +0 -6
- package/dist/src/components/Header/components/HeaderSearchButton.d.ts +0 -9
- package/dist/src/components/Header/components/HeaderSearchForm.d.ts +0 -10
- package/dist/src/components/Header/components/HeaderSitewideAlerts.d.ts +0 -7
- package/dist/src/components/Header/components/HeaderUpperNav.d.ts +0 -7
- package/dist/src/components/Header/context/headerContext.d.ts +0 -13
- package/dist/src/components/Header/utils/encoreCatalogLogOutTimer.d.ts +0 -4
- package/dist/src/components/Header/utils/headerUtils.d.ts +0 -70
- package/dist/src/theme/components/header.d.ts +0 -100
- package/dist/src/theme/components/headerLogin.d.ts +0 -333
- package/dist/src/theme/components/headerLoginButton.d.ts +0 -72
- package/dist/src/theme/components/headerLowerNav.d.ts +0 -78
- package/dist/src/theme/components/headerMobileIconNav.d.ts +0 -28
- package/dist/src/theme/components/headerMobileNav.d.ts +0 -92
- package/dist/src/theme/components/headerMobileNavButton.d.ts +0 -36
- package/dist/src/theme/components/headerSearchButton.d.ts +0 -85
- package/dist/src/theme/components/headerSearchForm.d.ts +0 -185
- package/dist/src/theme/components/headerSitewideAlerts.d.ts +0 -43
- package/dist/src/theme/components/headerUpperNav.d.ts +0 -60
|
@@ -353,79 +353,6 @@ declare const Heading: {
|
|
|
353
353
|
width: string;
|
|
354
354
|
};
|
|
355
355
|
};
|
|
356
|
-
one: {
|
|
357
|
-
base: {
|
|
358
|
-
width: string;
|
|
359
|
-
a: {
|
|
360
|
-
textUnderlineOffset: string;
|
|
361
|
-
};
|
|
362
|
-
marginTop: string;
|
|
363
|
-
marginStart: string;
|
|
364
|
-
marginEnd: string;
|
|
365
|
-
fontSize: string;
|
|
366
|
-
fontWeight: string;
|
|
367
|
-
letterSpacing: string;
|
|
368
|
-
lineHeight: string;
|
|
369
|
-
};
|
|
370
|
-
};
|
|
371
|
-
two: {
|
|
372
|
-
base: {
|
|
373
|
-
width: string;
|
|
374
|
-
a: {
|
|
375
|
-
textUnderlineOffset: string;
|
|
376
|
-
};
|
|
377
|
-
marginTop: string;
|
|
378
|
-
marginStart: string;
|
|
379
|
-
marginEnd: string;
|
|
380
|
-
fontSize: string;
|
|
381
|
-
fontWeight: string;
|
|
382
|
-
lineHeight: string;
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
three: {
|
|
386
|
-
base: {
|
|
387
|
-
width: string;
|
|
388
|
-
marginTop: string;
|
|
389
|
-
marginStart: string;
|
|
390
|
-
marginEnd: string;
|
|
391
|
-
fontSize: string;
|
|
392
|
-
fontWeight: string;
|
|
393
|
-
lineHeight: string;
|
|
394
|
-
};
|
|
395
|
-
};
|
|
396
|
-
four: {
|
|
397
|
-
base: {
|
|
398
|
-
width: string;
|
|
399
|
-
marginTop: string;
|
|
400
|
-
marginStart: string;
|
|
401
|
-
marginEnd: string;
|
|
402
|
-
fontSize: string;
|
|
403
|
-
fontWeight: string;
|
|
404
|
-
lineHeight: string;
|
|
405
|
-
};
|
|
406
|
-
};
|
|
407
|
-
five: {
|
|
408
|
-
base: {
|
|
409
|
-
width: string;
|
|
410
|
-
marginTop: string;
|
|
411
|
-
marginStart: string;
|
|
412
|
-
marginEnd: string;
|
|
413
|
-
fontSize: string;
|
|
414
|
-
fontWeight: string;
|
|
415
|
-
lineHeight: string;
|
|
416
|
-
};
|
|
417
|
-
};
|
|
418
|
-
six: {
|
|
419
|
-
base: {
|
|
420
|
-
width: string;
|
|
421
|
-
marginTop: string;
|
|
422
|
-
marginStart: string;
|
|
423
|
-
marginEnd: string;
|
|
424
|
-
fontSize: string;
|
|
425
|
-
fontWeight: string;
|
|
426
|
-
lineHeight: string;
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
356
|
display1: {
|
|
430
357
|
base: {
|
|
431
358
|
fontSize: {
|
|
@@ -573,61 +500,10 @@ declare const Heading: {
|
|
|
573
500
|
width: string;
|
|
574
501
|
};
|
|
575
502
|
};
|
|
576
|
-
primary: {
|
|
577
|
-
base: {
|
|
578
|
-
width: string;
|
|
579
|
-
a: {
|
|
580
|
-
textUnderlineOffset: string;
|
|
581
|
-
};
|
|
582
|
-
marginTop: string;
|
|
583
|
-
marginStart: string;
|
|
584
|
-
marginEnd: string;
|
|
585
|
-
fontSize: string;
|
|
586
|
-
fontWeight: string;
|
|
587
|
-
letterSpacing: string;
|
|
588
|
-
lineHeight: string;
|
|
589
|
-
};
|
|
590
|
-
};
|
|
591
|
-
secondary: {
|
|
592
|
-
base: {
|
|
593
|
-
width: string;
|
|
594
|
-
a: {
|
|
595
|
-
textUnderlineOffset: string;
|
|
596
|
-
};
|
|
597
|
-
marginTop: string;
|
|
598
|
-
marginStart: string;
|
|
599
|
-
marginEnd: string;
|
|
600
|
-
fontSize: string;
|
|
601
|
-
fontWeight: string;
|
|
602
|
-
lineHeight: string;
|
|
603
|
-
};
|
|
604
|
-
};
|
|
605
|
-
tertiary: {
|
|
606
|
-
base: {
|
|
607
|
-
width: string;
|
|
608
|
-
marginTop: string;
|
|
609
|
-
marginStart: string;
|
|
610
|
-
marginEnd: string;
|
|
611
|
-
fontSize: string;
|
|
612
|
-
fontWeight: string;
|
|
613
|
-
lineHeight: string;
|
|
614
|
-
};
|
|
615
|
-
};
|
|
616
|
-
callout: {
|
|
617
|
-
base: {
|
|
618
|
-
width: string;
|
|
619
|
-
marginTop: string;
|
|
620
|
-
marginStart: string;
|
|
621
|
-
marginEnd: string;
|
|
622
|
-
fontSize: string;
|
|
623
|
-
fontWeight: string;
|
|
624
|
-
lineHeight: string;
|
|
625
|
-
};
|
|
626
|
-
};
|
|
627
503
|
};
|
|
628
504
|
defaultProps?: {
|
|
629
505
|
size?: string | number;
|
|
630
|
-
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "display1" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "heading7" | "heading8"
|
|
506
|
+
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "display1" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "heading7" | "heading8";
|
|
631
507
|
colorScheme?: string;
|
|
632
508
|
};
|
|
633
509
|
parts: ("base" | "headingWrapper")[];
|
|
@@ -14,23 +14,23 @@ declare const Hero: {
|
|
|
14
14
|
backgroundSize: string;
|
|
15
15
|
backgroundPosition: string;
|
|
16
16
|
display: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
gridTemplateColumns: string;
|
|
18
|
+
gap: {
|
|
19
|
+
base: string;
|
|
20
|
+
md: string;
|
|
21
|
+
xl: string;
|
|
20
22
|
};
|
|
21
|
-
justifyContent: string;
|
|
22
23
|
minHeight: string;
|
|
23
24
|
p: string;
|
|
25
|
+
paddingInline: string;
|
|
24
26
|
};
|
|
25
27
|
content: {
|
|
26
28
|
bg: string;
|
|
27
29
|
color: any;
|
|
28
|
-
|
|
29
|
-
base:
|
|
30
|
-
md:
|
|
31
|
-
|
|
32
|
-
maxWidth: {
|
|
33
|
-
md: "860px";
|
|
30
|
+
gridColumn: {
|
|
31
|
+
base: "1 / -1";
|
|
32
|
+
md: "2 / 12";
|
|
33
|
+
lg: "3 / 11";
|
|
34
34
|
};
|
|
35
35
|
padding: {
|
|
36
36
|
base: "inset.default";
|
|
@@ -735,7 +735,7 @@ declare const Hero: {
|
|
|
735
735
|
};
|
|
736
736
|
defaultProps?: {
|
|
737
737
|
size?: string | number;
|
|
738
|
-
variant?: "primary" | "secondary" | "
|
|
738
|
+
variant?: "primary" | "secondary" | "secondaryBooksAndMore" | "secondaryLocations" | "secondaryResearch" | "secondaryWhatsOn" | "tertiary" | "campaign" | "fiftyFifty";
|
|
739
739
|
colorScheme?: string;
|
|
740
740
|
};
|
|
741
741
|
parts: ("base" | "content" | "imgWrapper" | "bodyText" | "heading" | "interior")[];
|
|
@@ -90,45 +90,6 @@ declare const Link: {
|
|
|
90
90
|
}>;
|
|
91
91
|
};
|
|
92
92
|
variants?: {
|
|
93
|
-
button: {
|
|
94
|
-
base: {
|
|
95
|
-
width: string;
|
|
96
|
-
borderRadius: string;
|
|
97
|
-
lineHeight: string;
|
|
98
|
-
display: string;
|
|
99
|
-
cursor: string;
|
|
100
|
-
color: string;
|
|
101
|
-
justifyContent: string;
|
|
102
|
-
py: string;
|
|
103
|
-
px: string;
|
|
104
|
-
textDecoration: string;
|
|
105
|
-
fontWeight: string;
|
|
106
|
-
bg: string;
|
|
107
|
-
_dark: {
|
|
108
|
-
color: string;
|
|
109
|
-
bg: string;
|
|
110
|
-
};
|
|
111
|
-
_hover: {
|
|
112
|
-
color: string;
|
|
113
|
-
bg: string;
|
|
114
|
-
textDecoration: string;
|
|
115
|
-
textDecorationStyle: string;
|
|
116
|
-
textDecorationThickness: string;
|
|
117
|
-
_dark: {
|
|
118
|
-
color: string;
|
|
119
|
-
bg: string;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
_visited: {
|
|
123
|
-
color: string;
|
|
124
|
-
_dark: {
|
|
125
|
-
_visited: {
|
|
126
|
-
color: string;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
93
|
buttonCallout: ({ hasVisitedState }: CustomLinkStyleProps) => {
|
|
133
94
|
base: any;
|
|
134
95
|
};
|
|
@@ -182,7 +143,7 @@ declare const Link: {
|
|
|
182
143
|
};
|
|
183
144
|
defaultProps?: {
|
|
184
145
|
size?: string | number;
|
|
185
|
-
variant?: "
|
|
146
|
+
variant?: "buttonCallout" | "buttonDisabled" | "buttonNoBrand" | "buttonPill" | "buttonPrimary" | "buttonSecondary" | "moreLink";
|
|
186
147
|
colorScheme?: string;
|
|
187
148
|
};
|
|
188
149
|
parts: ("base" | "screenreaderOnly")[];
|
|
@@ -35,7 +35,7 @@ declare const NewsletterSignup: {
|
|
|
35
35
|
md: "dark.ui.border.default";
|
|
36
36
|
};
|
|
37
37
|
borderLeftColor: {
|
|
38
|
-
md: "dark.section.blogs.secondary" | "dark.section.locations.primary" | "dark.
|
|
38
|
+
md: "dark.section.blogs.secondary" | "dark.section.locations.primary" | "dark.section.books-and-more.primary" | "dark.brand.primary" | "dark.section.connect.primary" | "dark.section.education.primary" | "dark.section.research.primary" | "dark.section.research-library.lpa" | "dark.section.research-library.schomburg" | "dark.section.whats-on.primary" | "dark.ui.gray.medium" | "dark.section.research-library.schwartzman";
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
padding: {
|
|
@@ -2,18 +2,15 @@ import { NotificationTypes } from "../../components/Notification/Notification";
|
|
|
2
2
|
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
3
3
|
interface NotificationBaseStyle extends StyleFunctionProps {
|
|
4
4
|
isCentered: boolean;
|
|
5
|
-
noMargin: boolean;
|
|
6
5
|
notificationHeading: string;
|
|
7
6
|
notificationType: NotificationTypes;
|
|
8
7
|
showIcon: boolean;
|
|
9
8
|
}
|
|
10
9
|
declare const Notification: {
|
|
11
|
-
baseStyle?: ({ isCentered,
|
|
10
|
+
baseStyle?: ({ isCentered, notificationHeading, notificationType, }: NotificationBaseStyle) => {
|
|
12
11
|
bg: string;
|
|
13
|
-
borderRadius: string;
|
|
14
12
|
display: string;
|
|
15
13
|
fontSize: string;
|
|
16
|
-
m: string;
|
|
17
14
|
position: string;
|
|
18
15
|
p: string;
|
|
19
16
|
textAlign: string;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ProgressIndicatorLabelPlacements, ProgressIndicatorSizes } from "../../components/ProgressIndicator/ProgressIndicator";
|
|
2
2
|
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
3
3
|
interface ProgressIndicatorBaseStyle extends StyleFunctionProps {
|
|
4
|
-
darkMode: boolean;
|
|
5
4
|
size: ProgressIndicatorSizes;
|
|
6
5
|
labelPlacement: ProgressIndicatorLabelPlacements;
|
|
7
6
|
}
|
|
8
7
|
declare const ProgressIndicator: {
|
|
9
|
-
baseStyle?: ({
|
|
8
|
+
baseStyle?: ({ size, labelPlacement }: ProgressIndicatorBaseStyle) => {
|
|
10
9
|
color: string;
|
|
11
10
|
fontSize: string;
|
|
12
11
|
_dark: {
|
|
@@ -79,12 +79,12 @@ declare const CustomSlider: {
|
|
|
79
79
|
};
|
|
80
80
|
sizes?: {
|
|
81
81
|
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
82
|
-
keys: ("track" | "container" | "
|
|
82
|
+
keys: ("track" | "container" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "textInput" | "sliderContainer")[];
|
|
83
83
|
}>;
|
|
84
84
|
};
|
|
85
85
|
variants?: {
|
|
86
86
|
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
87
|
-
keys: ("track" | "container" | "
|
|
87
|
+
keys: ("track" | "container" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "textInput" | "sliderContainer")[];
|
|
88
88
|
}>;
|
|
89
89
|
};
|
|
90
90
|
defaultProps?: {
|
|
@@ -92,6 +92,6 @@ declare const CustomSlider: {
|
|
|
92
92
|
variant?: string | number;
|
|
93
93
|
colorScheme?: string;
|
|
94
94
|
};
|
|
95
|
-
parts: ("track" | "container" | "
|
|
95
|
+
parts: ("track" | "container" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "textInput" | "sliderContainer")[];
|
|
96
96
|
};
|
|
97
97
|
export default CustomSlider;
|
|
@@ -70,19 +70,6 @@ declare const StatusBadge: {
|
|
|
70
70
|
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
71
71
|
};
|
|
72
72
|
variants?: {
|
|
73
|
-
low: {};
|
|
74
|
-
medium: {
|
|
75
|
-
borderColor: string;
|
|
76
|
-
_dark: {
|
|
77
|
-
borderColor: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
high: {
|
|
81
|
-
borderColor: string;
|
|
82
|
-
_dark: {
|
|
83
|
-
borderColor: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
73
|
neutral: {
|
|
87
74
|
borderColor: string;
|
|
88
75
|
_dark: {
|
|
@@ -132,7 +119,7 @@ declare const StatusBadge: {
|
|
|
132
119
|
};
|
|
133
120
|
defaultProps?: {
|
|
134
121
|
size?: string | number;
|
|
135
|
-
variant?: "
|
|
122
|
+
variant?: "neutral" | "informative" | "positive" | "negative" | "warning" | "recommendation";
|
|
136
123
|
colorScheme?: string;
|
|
137
124
|
};
|
|
138
125
|
};
|
|
@@ -1,69 +1,59 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
Template: {
|
|
3
|
-
baseStyle?: {
|
|
3
|
+
baseStyle?: () => {
|
|
4
4
|
boxSizing: string;
|
|
5
5
|
color: string;
|
|
6
6
|
display: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
maxWidth: string;
|
|
8
|
+
minWidth: string;
|
|
9
|
+
m: string;
|
|
10
|
+
p: {
|
|
11
|
+
base: string;
|
|
12
|
+
md: string;
|
|
13
|
+
xl: string;
|
|
11
14
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
variant?: string | number;
|
|
20
|
-
colorScheme?: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
TemplateBreakout: {
|
|
24
|
-
baseStyle?: {
|
|
25
|
-
width: string;
|
|
26
|
-
gridColumn: string;
|
|
27
|
-
};
|
|
28
|
-
sizes?: {
|
|
29
|
-
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
30
|
-
};
|
|
31
|
-
variants?: {
|
|
32
|
-
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
33
|
-
};
|
|
34
|
-
defaultProps?: {
|
|
35
|
-
size?: string | number;
|
|
36
|
-
variant?: string | number;
|
|
37
|
-
colorScheme?: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
TemplateContent: {
|
|
41
|
-
baseStyle?: {
|
|
42
|
-
gridColumn: string;
|
|
43
|
-
display: {
|
|
44
|
-
base: "flex";
|
|
45
|
-
md: "grid";
|
|
15
|
+
gridTemplateAreas: string;
|
|
16
|
+
gridTemplateColumns: string;
|
|
17
|
+
gridTemplateRows: string;
|
|
18
|
+
columnGap: {
|
|
19
|
+
base: string;
|
|
20
|
+
md: string;
|
|
21
|
+
xl: string;
|
|
46
22
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
23
|
+
"& > *:not(:last-child)": {
|
|
24
|
+
mb: {
|
|
25
|
+
base: string;
|
|
26
|
+
md: string;
|
|
27
|
+
xl: string;
|
|
28
|
+
};
|
|
50
29
|
};
|
|
51
|
-
gridTemplateColumns: string;
|
|
52
|
-
paddingY: number;
|
|
53
|
-
rowGap: string;
|
|
54
30
|
};
|
|
55
31
|
sizes?: {
|
|
56
32
|
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
57
33
|
};
|
|
58
34
|
variants?: {
|
|
59
35
|
left: {
|
|
36
|
+
gridTemplateAreas: {
|
|
37
|
+
base: "\"breakout\" \"top\" \"sidebar\" \"main\" \"bottom\"";
|
|
38
|
+
md: "\"breakout breakout\" \"top top\" \"sidebar main\" \"bottom bottom\"";
|
|
39
|
+
};
|
|
60
40
|
gridTemplateColumns: {
|
|
61
|
-
|
|
41
|
+
base: "100%";
|
|
42
|
+
md: "repeat(2, minmax(100px, 1fr))";
|
|
43
|
+
lg: "minmax(100px, 1fr) minmax(200px, 2fr)";
|
|
44
|
+
xl: "minmax(100px, 1fr) minmax(300px, 3fr)";
|
|
62
45
|
};
|
|
63
46
|
};
|
|
64
47
|
right: {
|
|
48
|
+
gridTemplateAreas: {
|
|
49
|
+
base: "\"breakout\" \"top\" \"main\" \"sidebar\" \"bottom\"";
|
|
50
|
+
md: "\"breakout breakout\" \"top top\" \"main sidebar\" \"bottom bottom\"";
|
|
51
|
+
};
|
|
65
52
|
gridTemplateColumns: {
|
|
66
|
-
|
|
53
|
+
base: "100%";
|
|
54
|
+
md: "repeat(2, minmax(100px, 1fr))";
|
|
55
|
+
lg: "minmax(200px, 2fr) minmax(100px, 1fr)";
|
|
56
|
+
xl: "minmax(300px, 3fr) minmax(100px, 1fr)";
|
|
67
57
|
};
|
|
68
58
|
};
|
|
69
59
|
};
|
|
@@ -73,14 +63,15 @@ declare const _default: {
|
|
|
73
63
|
colorScheme?: string;
|
|
74
64
|
};
|
|
75
65
|
};
|
|
76
|
-
|
|
77
|
-
baseStyle?: {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
66
|
+
TemplateBreakout: {
|
|
67
|
+
baseStyle?: () => {
|
|
68
|
+
width: string;
|
|
69
|
+
ml: string;
|
|
70
|
+
px: {
|
|
71
|
+
base: string;
|
|
72
|
+
md: string;
|
|
73
|
+
xl: string;
|
|
81
74
|
};
|
|
82
|
-
height: string;
|
|
83
|
-
paddingX: string;
|
|
84
75
|
};
|
|
85
76
|
sizes?: {
|
|
86
77
|
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
@@ -94,87 +85,20 @@ declare const _default: {
|
|
|
94
85
|
colorScheme?: string;
|
|
95
86
|
};
|
|
96
87
|
};
|
|
97
|
-
|
|
88
|
+
TemplateMainNarrow: {
|
|
98
89
|
baseStyle?: {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
md: "1 / span 2";
|
|
102
|
-
};
|
|
103
|
-
paddingX: string;
|
|
90
|
+
maxWidth: string;
|
|
91
|
+
m: string;
|
|
104
92
|
};
|
|
105
93
|
sizes?: {
|
|
106
94
|
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
107
95
|
};
|
|
108
96
|
variants?: {
|
|
109
|
-
left: {
|
|
110
|
-
gridColumn: {
|
|
111
|
-
base: "1";
|
|
112
|
-
md: "2";
|
|
113
|
-
};
|
|
114
|
-
marginEnd: {
|
|
115
|
-
md: number;
|
|
116
|
-
};
|
|
117
|
-
minWidth: {
|
|
118
|
-
md: number;
|
|
119
|
-
};
|
|
120
|
-
paddingRight: string;
|
|
121
|
-
paddingLeft: {
|
|
122
|
-
base: "s";
|
|
123
|
-
md: "l";
|
|
124
|
-
};
|
|
125
|
-
overflow: {
|
|
126
|
-
base: "unset";
|
|
127
|
-
md: "hidden";
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
right: {
|
|
131
|
-
gridColumn: string;
|
|
132
|
-
paddingRight: {
|
|
133
|
-
base: "s";
|
|
134
|
-
md: "l";
|
|
135
|
-
};
|
|
136
|
-
paddingLeft: string;
|
|
137
|
-
overflow: {
|
|
138
|
-
base: "unset";
|
|
139
|
-
md: "hidden";
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
defaultProps?: {
|
|
144
|
-
size?: string | number;
|
|
145
|
-
variant?: "right" | "left";
|
|
146
|
-
colorScheme?: string;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
TemplateContentSidebar: {
|
|
150
|
-
baseStyle?: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
151
|
-
sizes?: {
|
|
152
97
|
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
153
98
|
};
|
|
154
|
-
variants?: {
|
|
155
|
-
left: {
|
|
156
|
-
gridColumn: string;
|
|
157
|
-
paddingLeft: string;
|
|
158
|
-
paddingRight: {
|
|
159
|
-
base: "s";
|
|
160
|
-
md: number;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
right: {
|
|
164
|
-
gridColumn: {
|
|
165
|
-
base: "1";
|
|
166
|
-
md: "2";
|
|
167
|
-
};
|
|
168
|
-
paddingLeft: {
|
|
169
|
-
base: "s";
|
|
170
|
-
md: number;
|
|
171
|
-
};
|
|
172
|
-
paddingRight: string;
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
99
|
defaultProps?: {
|
|
176
100
|
size?: string | number;
|
|
177
|
-
variant?:
|
|
101
|
+
variant?: string | number;
|
|
178
102
|
colorScheme?: string;
|
|
179
103
|
};
|
|
180
104
|
};
|
|
@@ -56,18 +56,10 @@ declare const Text: {
|
|
|
56
56
|
fontWeight: string;
|
|
57
57
|
lineHeight: number;
|
|
58
58
|
};
|
|
59
|
-
tag: {
|
|
60
|
-
fontSize: string;
|
|
61
|
-
fontWeight: string;
|
|
62
|
-
};
|
|
63
|
-
mini: {
|
|
64
|
-
fontSize: string;
|
|
65
|
-
fontWeight: string;
|
|
66
|
-
};
|
|
67
59
|
};
|
|
68
60
|
defaultProps?: {
|
|
69
61
|
size?: string | number;
|
|
70
|
-
variant?: "caption" | "default" | "body1" | "body2" | "
|
|
62
|
+
variant?: "caption" | "default" | "body1" | "body2" | "overline1" | "overline2" | "subtitle1" | "subtitle2";
|
|
71
63
|
colorScheme?: string;
|
|
72
64
|
};
|
|
73
65
|
};
|
|
@@ -3,19 +3,26 @@ export declare const headerBreakpoints: {
|
|
|
3
3
|
lh: string;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
-
* Breakpoints from "src/styles/base/_01-breakpoints.scss"
|
|
7
6
|
* How to use Chakra responsive styles: https://chakra-ui.com/docs/features/responsive-styles
|
|
8
7
|
*
|
|
9
|
-
* Chakra Value | DS Variable
|
|
10
|
-
*
|
|
11
|
-
* sm | --nypl-breakpoint-small |
|
|
12
|
-
* md | --nypl-breakpoint-medium
|
|
13
|
-
* lg | --nypl-breakpoint-large
|
|
14
|
-
* xl | --nypl-breakpoint-xl
|
|
15
|
-
* 2xl |
|
|
8
|
+
* Chakra Value | DS Variable | EM/PX value | NYPL reference
|
|
9
|
+
* --------------------------------------------------------------------------
|
|
10
|
+
* sm | --nypl-breakpoint-small | 30em / 480px | small mobile
|
|
11
|
+
* md | --nypl-breakpoint-medium | 48em / 768px | large mobile
|
|
12
|
+
* lg | --nypl-breakpoint-large | 64em / 1024px | small tablet
|
|
13
|
+
* xl | --nypl-breakpoint-xl | 80em / 1280px | large tablet
|
|
14
|
+
* 2xl | n/a | 96em / 1536px | n/a
|
|
16
15
|
*
|
|
17
16
|
* @Note Chakra provides a 2xl option while the DS does not. We don't
|
|
18
17
|
* recommend using this value until further notice.
|
|
18
|
+
*
|
|
19
|
+
* ------------ | ------------------------------- | -------------- | --------------
|
|
20
|
+
* smallMobile | --nypl-breakpoint-smallMobile | 30em / 480px | small mobile
|
|
21
|
+
* largeMobile | --nypl-breakpoint-largeMobile | 48em / 768px | large mobile
|
|
22
|
+
* mobile | --nypl-breakpoint-mobile | 48em / 768px | mobile
|
|
23
|
+
* smallTablet | --nypl-breakpoint-smallTablet | 64em / 1024px | small tablet
|
|
24
|
+
* largeTablet | --nypl-breakpoint-xlargeTablet | 80em / 1280px | large tablet
|
|
25
|
+
* tablet | --nypl-breakpoint-tablet | 80em / 1280px | tablet
|
|
19
26
|
*/
|
|
20
27
|
declare const _default: {
|
|
21
28
|
sm: string;
|
|
@@ -25,5 +32,11 @@ declare const _default: {
|
|
|
25
32
|
lh: string;
|
|
26
33
|
xl: string;
|
|
27
34
|
"2xl": string;
|
|
35
|
+
smallMobile: string;
|
|
36
|
+
largeMobile: string;
|
|
37
|
+
mobile: string;
|
|
38
|
+
smallTablet: string;
|
|
39
|
+
largeTablet: string;
|
|
40
|
+
tablet: string;
|
|
28
41
|
};
|
|
29
42
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HelperErrorTextType } from "../components/HelperErrorText/HelperErrorText";
|
|
2
|
+
import { SidebarPlacement } from "../components/Template/Template";
|
|
2
3
|
import { AriaAttributes } from "./interfaces";
|
|
3
4
|
/**
|
|
4
5
|
* range
|
|
@@ -43,6 +44,8 @@ export declare const sanitizeStringForAttribute: (str: string) => string;
|
|
|
43
44
|
/** Provides a random image to use as a placeholder. */
|
|
44
45
|
export type GetPlaceholderImageProps = "smaller" | "default";
|
|
45
46
|
export declare const getPlaceholderImage: (size?: GetPlaceholderImageProps, index?: number) => string;
|
|
47
|
+
/** Creates the correct sidebar label in Template stories or tests */
|
|
48
|
+
export declare const sidebarLabel: (sidebar: SidebarPlacement) => string;
|
|
46
49
|
/** The default styles for images added as examples within doc pages. */
|
|
47
50
|
export declare const exampleWrapperStyles: {
|
|
48
51
|
bgColor: string;
|