@nypl/design-system-react-components 1.4.0 → 1.4.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/CHANGELOG.md +22 -2
- package/dist/components/Header/components/HeaderLogin.d.ts +1 -2
- package/dist/components/Header/components/HeaderSearchForm.d.ts +1 -0
- package/dist/components/Header/utils/headerUtils.d.ts +4 -0
- package/dist/components/HelperErrorText/HelperErrorText.d.ts +6 -1
- package/dist/components/SearchBar/SearchBar.d.ts +5 -14
- package/dist/components/TextInput/TextInput.d.ts +2 -0
- package/dist/design-system-react-components.cjs.development.js +567 -821
- package/dist/design-system-react-components.cjs.development.js.map +1 -1
- package/dist/design-system-react-components.cjs.production.min.js +1 -1
- package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
- package/dist/design-system-react-components.esm.js +568 -822
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/theme/components/header/headerLogin.d.ts +1 -8
- package/dist/theme/components/header/headerSearchForm.d.ts +14 -14
- package/dist/utils/utils.d.ts +2 -0
- package/package.json +2 -2
|
@@ -112,16 +112,9 @@ declare const HeaderLogin: {
|
|
|
112
112
|
base: string;
|
|
113
113
|
md: string;
|
|
114
114
|
};
|
|
115
|
-
textAlign: {
|
|
116
|
-
base: string;
|
|
117
|
-
md: string;
|
|
118
|
-
};
|
|
119
115
|
textTransform: string;
|
|
120
116
|
whiteSpace: string;
|
|
121
|
-
width:
|
|
122
|
-
base: string;
|
|
123
|
-
md: string;
|
|
124
|
-
};
|
|
117
|
+
width: string;
|
|
125
118
|
svg: {
|
|
126
119
|
marginRight: {
|
|
127
120
|
base: string;
|
|
@@ -26,6 +26,7 @@ declare const HeaderSearchForm: {
|
|
|
26
26
|
};
|
|
27
27
|
whiteSpace: string;
|
|
28
28
|
"> div": {
|
|
29
|
+
margin: string;
|
|
29
30
|
marginLeft: {
|
|
30
31
|
md: string;
|
|
31
32
|
lg: string;
|
|
@@ -35,7 +36,7 @@ declare const HeaderSearchForm: {
|
|
|
35
36
|
};
|
|
36
37
|
};
|
|
37
38
|
};
|
|
38
|
-
|
|
39
|
+
"#radio-group-search-type": {
|
|
39
40
|
margin: {
|
|
40
41
|
base: string;
|
|
41
42
|
md: string;
|
|
@@ -44,6 +45,7 @@ declare const HeaderSearchForm: {
|
|
|
44
45
|
textInput: {
|
|
45
46
|
label: {
|
|
46
47
|
fontSize: {
|
|
48
|
+
base: string;
|
|
47
49
|
md: string;
|
|
48
50
|
};
|
|
49
51
|
};
|
|
@@ -82,27 +84,26 @@ declare const HeaderSearchForm: {
|
|
|
82
84
|
};
|
|
83
85
|
};
|
|
84
86
|
};
|
|
85
|
-
|
|
86
|
-
display: {
|
|
87
|
-
md: string;
|
|
88
|
-
};
|
|
89
|
-
fill: string;
|
|
90
|
-
left: string;
|
|
91
|
-
position: string;
|
|
92
|
-
top: string;
|
|
93
|
-
};
|
|
94
|
-
desktopSearchBtn: {
|
|
87
|
+
searchBtn: {
|
|
95
88
|
alignSelf: string;
|
|
96
89
|
backgroundColor: string;
|
|
97
90
|
borderColor: string;
|
|
98
91
|
borderRadius: string;
|
|
99
92
|
borderWidth: string;
|
|
100
|
-
height:
|
|
93
|
+
height: {
|
|
94
|
+
base: string;
|
|
95
|
+
md: string;
|
|
96
|
+
};
|
|
97
|
+
marginTop: string;
|
|
98
|
+
marginEnd: string;
|
|
101
99
|
maxHeight: string;
|
|
102
|
-
width: string;
|
|
103
100
|
svg: {
|
|
104
101
|
marginTop: string;
|
|
105
102
|
};
|
|
103
|
+
width: {
|
|
104
|
+
base: string;
|
|
105
|
+
md: string;
|
|
106
|
+
};
|
|
106
107
|
_focus: {
|
|
107
108
|
borderRadius: string;
|
|
108
109
|
outlineColor: string;
|
|
@@ -141,7 +142,6 @@ declare const HeaderSearchForm: {
|
|
|
141
142
|
alignItems: string;
|
|
142
143
|
};
|
|
143
144
|
".chakra-radio__label": {
|
|
144
|
-
fontSize: string;
|
|
145
145
|
fontWeight: string;
|
|
146
146
|
};
|
|
147
147
|
mobileBtns: {
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -34,4 +34,6 @@ export declare const hexToRGB: (hex: string, alpha: number) => string;
|
|
|
34
34
|
export declare const colorLuminance: (r: any, g: any, b: any) => number;
|
|
35
35
|
/** Calculate color contrast ratio */
|
|
36
36
|
export declare const contrastRatio: (hex1: string, hex2: string) => string;
|
|
37
|
+
/** This method will truncate text by centain length. Default length is 60. */
|
|
38
|
+
export declare const truncateText: (text: string, truncateTextLength?: number) => string;
|
|
37
39
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nypl/design-system-react-components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "NYPL Reservoir Design System React Components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"analyze": "size-limit --why",
|
|
33
33
|
"generate-sass-resources": "gulp",
|
|
34
34
|
"storybook": "start-storybook -p 6006 -s ./.storybook/public",
|
|
35
|
-
"build-storybook:v1": "npm run prebuild:storybook &&
|
|
35
|
+
"build-storybook:v1": "npm run prebuild:storybook && build-storybook -c .storybook -o ./reservoir/v1",
|
|
36
36
|
"prebuild:storybook": "npm run test:generate-output"
|
|
37
37
|
},
|
|
38
38
|
"lint-staged": {
|