@nypl/design-system-react-components 1.6.1-test-provider → 1.6.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.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare const breadcrumbTypeArray: readonly ["blogs", "booksAndMore", "brand", "education", "locations", "research", "whatsOn"];
2
+ export declare const breadcrumbTypeArray: readonly ["blogs", "booksAndMore", "brand", "connect", "education", "locations", "research", "whatsOn"];
3
3
  export type BreadcrumbsTypes = typeof breadcrumbTypeArray[number];
4
4
  export interface BreadcrumbsDataProps {
5
5
  url: string;
@@ -1,6 +1,6 @@
1
1
  import React, { ImgHTMLAttributes } from "react";
2
2
  export declare const imageRatiosArray: readonly ["fourByThree", "oneByTwo", "original", "sixteenByNine", "square", "threeByFour", "threeByTwo", "twoByOne"];
3
- export declare const imageSizesArray: readonly ["default", "xxsmall", "xsmall", "small", "medium", "large"];
3
+ export declare const imageSizesArray: readonly ["default", "xxxsmall", "xxsmall", "xsmall", "small", "medium", "large"];
4
4
  export declare const imageTypesArray: readonly ["default", "circle"];
5
5
  export type ImageRatios = typeof imageRatiosArray[number];
6
6
  export type ImageSizes = typeof imageSizesArray[number];
@@ -127,6 +127,12 @@ export declare const cssVars: {
127
127
  dataWhiteColor: string[];
128
128
  textColor: string;
129
129
  }[];
130
+ connect: {
131
+ name: string;
132
+ dataBlackColor: any[];
133
+ dataWhiteColor: any[];
134
+ textColor: string;
135
+ }[];
130
136
  education: {
131
137
  name: string;
132
138
  dataBlackColor: string[];
@@ -122,6 +122,12 @@ declare const Breadcrumb: {
122
122
  bg: string;
123
123
  };
124
124
  };
125
+ connect: {
126
+ bg: string;
127
+ _dark: {
128
+ bg: string;
129
+ };
130
+ };
125
131
  education: {
126
132
  bg: string;
127
133
  _dark: {
@@ -9,6 +9,11 @@ declare const imageSizes: {
9
9
  default: {
10
10
  maxWidth: string;
11
11
  };
12
+ xxxsmall: {
13
+ maxWidth: string;
14
+ marginStart: string;
15
+ marginEnd: string;
16
+ };
12
17
  xxsmall: {
13
18
  maxWidth: string;
14
19
  marginStart: string;
@@ -178,6 +183,19 @@ declare const CustomImage: {
178
183
  marginEnd: string;
179
184
  margin: string;
180
185
  width: string;
186
+ } | {
187
+ img: {
188
+ backgroundColor: string;
189
+ marginBottom: string;
190
+ _dark: {
191
+ backgroundColor: string;
192
+ };
193
+ };
194
+ maxWidth: string;
195
+ marginStart: string;
196
+ marginEnd: string;
197
+ margin: string;
198
+ width: string;
181
199
  };
182
200
  figcaption: {
183
201
  fontStyle: string;
@@ -259,6 +277,19 @@ declare const CustomImage: {
259
277
  objectFit: string;
260
278
  position: string;
261
279
  width: string;
280
+ } | {
281
+ _dark: {
282
+ backgroundColor: string;
283
+ };
284
+ maxWidth: string;
285
+ marginStart: string;
286
+ marginEnd: string;
287
+ display: string;
288
+ backgroundColor: string;
289
+ boxSizing: string;
290
+ objectFit: string;
291
+ position: string;
292
+ width: string;
262
293
  };
263
294
  captionWrappers: {
264
295
  marginTop: string;
@@ -657,6 +688,71 @@ declare const CustomImageWrapper: {
657
688
  marginStart: string;
658
689
  marginEnd: string;
659
690
  width: string;
691
+ } | {
692
+ crop: {
693
+ paddingBottom: string;
694
+ position: string;
695
+ width: string;
696
+ height: string;
697
+ overflow: string;
698
+ } | {
699
+ paddingBottom: string;
700
+ position: string;
701
+ width: string;
702
+ height: string;
703
+ overflow: string;
704
+ } | {
705
+ position: string;
706
+ width: string;
707
+ height: string;
708
+ overflow: string;
709
+ } | {
710
+ paddingBottom: string;
711
+ position: string;
712
+ width: string;
713
+ height: string;
714
+ overflow: string;
715
+ } | {
716
+ paddingBottom: string;
717
+ position: string;
718
+ width: string;
719
+ height: string;
720
+ overflow: string;
721
+ } | {
722
+ paddingBottom: string;
723
+ position: string;
724
+ width: string;
725
+ height: string;
726
+ overflow: string;
727
+ } | {
728
+ paddingBottom: string;
729
+ position: string;
730
+ width: string;
731
+ height: string;
732
+ overflow: string;
733
+ } | {
734
+ paddingBottom: string;
735
+ position: string;
736
+ width: string;
737
+ height: string;
738
+ overflow: string;
739
+ };
740
+ img: {
741
+ backgroundColor: string;
742
+ height: string;
743
+ left: string;
744
+ maxWidth: string;
745
+ position: string;
746
+ top: string;
747
+ width: string;
748
+ _dark: {
749
+ backgroundColor: string;
750
+ };
751
+ };
752
+ maxWidth: string;
753
+ marginStart: string;
754
+ marginEnd: string;
755
+ width: string;
660
756
  };
661
757
  };
662
758
  export { CustomImage, CustomImageWrapper };
@@ -16,5 +16,5 @@
16
16
  * - typography (font, font size, font weight)
17
17
  * - spacing
18
18
  */
19
- declare const theme: import("@chakra-ui/utils").Dict<any>;
19
+ declare const theme: any;
20
20
  export default theme;
@@ -1,3 +1,13 @@
1
+ /**
2
+ * DS Maintainer note:
3
+ * This file is a copy of the ChakraProvider component from the Chakra UI v1.8.8
4
+ * library. The fixes we want are available in v2.7.0 but that is not compatible
5
+ * with our current implementation. The workaround is to copy the entire component
6
+ * and add the fixes ourselves. The prop names are kept the same as the fixed
7
+ * 2.7.0 version to allow an easier upgrade path in the future.
8
+ *
9
+ * https://github.com/chakra-ui/chakra-ui/blob/%40chakra-ui/react%401.8.8/packages/provider/src/chakra-provider.tsx
10
+ */
1
11
  import { ColorModeProviderProps, ThemeProviderProps } from "@chakra-ui/system";
2
12
  import { Dict } from "@chakra-ui/utils";
3
13
  import { EnvironmentProviderProps } from "@chakra-ui/react-env";
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import { ChakraProviderProps } from "./internalProvider";
3
- declare const DSProvider: ({ children, colorModeManager, resetCSS, disableGlobalStyle, }: React.PropsWithChildren<ChakraProviderProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ import { ChakraProviderProps } from "./internalChakraProvider";
3
+ declare const DSProvider: ({ children, colorModeManager, disableGlobalStyle, resetCSS, theme, }: React.PropsWithChildren<ChakraProviderProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
4
4
  export default DSProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "1.6.1-test-provider",
3
+ "version": "1.6.1",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",