@nypl/design-system-react-components 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/design-system-react-components.cjs +45 -45
- package/dist/design-system-react-components.js +6708 -6712
- package/dist/src/components/Menu/Menu.d.ts +3 -0
- package/dist/src/theme/components/breadcrumb.d.ts +10 -2
- package/dist/src/theme/components/global.d.ts +18 -1
- package/dist/src/theme/components/hero.d.ts +5 -1
- package/dist/src/theme/components/subnav.d.ts +2 -1
- package/dist/src/theme/components/template.d.ts +12 -20
- package/dist/template/templateChildBreakout.png +0 -0
- package/dist/template/templateChildContent.png +0 -0
- package/dist/template/templateChildFullContent.png +0 -0
- package/dist/template/templateChildFullContentBottom.png +0 -0
- package/dist/template/templateChildFullContentTop.png +0 -0
- package/dist/template/templateChildFullFooter.png +0 -0
- package/dist/template/templateChildFullHeader.png +0 -0
- package/dist/template/templateChildFullInside.png +0 -0
- package/dist/template/templateChildFullOutside.png +0 -0
- package/dist/template/templateChildSidebar.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/templateRegions.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/templateSidebarNone.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/package.json +1 -1
- 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
|
@@ -10,6 +10,9 @@ export interface MenuProps extends BoxProps {
|
|
|
10
10
|
showSelectionAsLabel?: boolean;
|
|
11
11
|
/** Used to set the highlight color for the current item. The values correspond with the NYPL section colors */
|
|
12
12
|
highlightColor?: SectionTypes;
|
|
13
|
+
/** Optional boolean value used to pass the labelText as the button element's aria-label.
|
|
14
|
+
* If false, the aria-label will be built from the labelText and the selected item. */
|
|
15
|
+
labelAsAriaLabel?: boolean;
|
|
13
16
|
/** Required string used to set the label text for the button element. If showLabel is false,
|
|
14
17
|
* this value is instead used to set an aria-label attribute on the button. The labelText prop is
|
|
15
18
|
* required for accessibility compliance. */
|
|
@@ -21,8 +21,16 @@ declare const Breadcrumb: {
|
|
|
21
21
|
};
|
|
22
22
|
margin: string;
|
|
23
23
|
maxWidth: string;
|
|
24
|
-
paddingStart:
|
|
25
|
-
|
|
24
|
+
paddingStart: {
|
|
25
|
+
base: string;
|
|
26
|
+
md: string;
|
|
27
|
+
xl: string;
|
|
28
|
+
};
|
|
29
|
+
paddingEnd: {
|
|
30
|
+
base: string;
|
|
31
|
+
md: string;
|
|
32
|
+
xl: string;
|
|
33
|
+
};
|
|
26
34
|
};
|
|
27
35
|
a: {
|
|
28
36
|
_visited: {
|
|
@@ -148,4 +148,21 @@ declare const textMargin: {
|
|
|
148
148
|
margin: string;
|
|
149
149
|
marginBottom: string;
|
|
150
150
|
};
|
|
151
|
-
|
|
151
|
+
declare const responsiveSpacing: {
|
|
152
|
+
gridGap: {
|
|
153
|
+
base: string;
|
|
154
|
+
md: string;
|
|
155
|
+
xl: string;
|
|
156
|
+
};
|
|
157
|
+
margin: {
|
|
158
|
+
base: string;
|
|
159
|
+
md: string;
|
|
160
|
+
xl: string;
|
|
161
|
+
};
|
|
162
|
+
padding: {
|
|
163
|
+
base: string;
|
|
164
|
+
md: string;
|
|
165
|
+
xl: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
export { activeFocus, checkboxRadioControlSize, checkboxRadioGroupStyles, checkboxRadioHelperErrorTextStyle, checkboxRadioHoverStyles, checkboxRadioLabelStyles, customFocusColor, defaultElementSizes, labelLegendText, responsiveSpacing, selectTextInputDisabledStyles, selectTextInputFocusStyles, textMargin, };
|
|
@@ -4,28 +4,13 @@ declare const _default: {
|
|
|
4
4
|
boxSizing: string;
|
|
5
5
|
color: string;
|
|
6
6
|
display: string;
|
|
7
|
-
|
|
8
|
-
minWidth: string;
|
|
9
|
-
m: string;
|
|
10
|
-
px: {
|
|
7
|
+
gap: {
|
|
11
8
|
base: string;
|
|
12
9
|
md: string;
|
|
13
10
|
xl: string;
|
|
14
11
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
columnGap: {
|
|
18
|
-
base: string;
|
|
19
|
-
md: string;
|
|
20
|
-
xl: string;
|
|
21
|
-
};
|
|
22
|
-
"& > *:not(:last-child)": {
|
|
23
|
-
mb: {
|
|
24
|
-
base: string;
|
|
25
|
-
md: string;
|
|
26
|
-
xl: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
12
|
+
flexDirection: string;
|
|
13
|
+
minWidth: string;
|
|
29
14
|
/** The "content" area should span the full width of the content area from
|
|
30
15
|
* a mobile-first viewpoint. Using -1 for the "last column" value ensures
|
|
31
16
|
* that these elements span all columns in the grid. CSS classes were used
|
|
@@ -128,15 +113,22 @@ declare const _default: {
|
|
|
128
113
|
};
|
|
129
114
|
TemplateMain: {
|
|
130
115
|
baseStyle?: () => {
|
|
131
|
-
display: string;
|
|
132
116
|
columnGap: {
|
|
133
117
|
base: string;
|
|
134
118
|
md: string;
|
|
135
119
|
xl: string;
|
|
136
120
|
};
|
|
137
|
-
|
|
121
|
+
display: string;
|
|
138
122
|
gridTemplateColumns: string;
|
|
139
123
|
gridTemplateRows: string;
|
|
124
|
+
m: string;
|
|
125
|
+
maxWidth: string;
|
|
126
|
+
px: {
|
|
127
|
+
base: string;
|
|
128
|
+
md: string;
|
|
129
|
+
xl: string;
|
|
130
|
+
};
|
|
131
|
+
width: string;
|
|
140
132
|
"& > *:not(:last-child)": {
|
|
141
133
|
mb: {
|
|
142
134
|
base: string;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|