@nypl/design-system-react-components 3.5.2-rc → 3.5.2

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.
@@ -41,9 +41,9 @@ export interface RadioGroupProps {
41
41
  showRequiredLabel?: boolean;
42
42
  }
43
43
  /**
44
- * RadioGroup is a wrapper for DS `Radio` components that renders as a fieldset
45
- * HTML element along with optional helper text. The `name` prop is essential
46
- * for this form group element and is not needed for individual DS `Radio`
44
+ * `RadioGroup` is a wrapper for DS `Radio` components that render together
45
+ * along with an optional helper text. The `name` prop is essential for this
46
+ * form group element and is not needed for individual DS `Radio`
47
47
  * components when `RadioGroup` is used.
48
48
  */
49
49
  export declare const RadioGroup: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<RadioGroupProps> & React.RefAttributes<HTMLDivElement>>, React.PropsWithChildren<RadioGroupProps>>;
@@ -1,7 +1,10 @@
1
1
  declare const Pagination: {
2
2
  baseStyle?: {
3
- alignItems: string;
4
3
  display: string;
4
+ minWidth: {
5
+ base: string;
6
+ md: string;
7
+ };
5
8
  width: string;
6
9
  link: {
7
10
  lineHeight: string;
@@ -9,19 +12,76 @@ declare const Pagination: {
9
12
  _hover: {
10
13
  textDecoration: string;
11
14
  };
15
+ _visited: {
16
+ color: string;
17
+ };
18
+ _dark: {
19
+ _visited: {
20
+ color: string;
21
+ };
22
+ };
12
23
  };
13
24
  ul: {
25
+ display: string;
26
+ justifyContent: string;
27
+ alignItems: string;
14
28
  marginBottom: string;
29
+ justifyItems: string;
30
+ };
31
+ previousNextElement: {
32
+ alignItems: string;
33
+ color: string;
34
+ _hover: {
35
+ textDecoration: string;
36
+ svg: {
37
+ fill: string;
38
+ };
39
+ color: string;
40
+ };
41
+ _visited: {
42
+ color: string;
43
+ svg: {
44
+ fill: string;
45
+ };
46
+ };
47
+ svg: {
48
+ fill: string;
49
+ };
50
+ _dark: {
51
+ color: string;
52
+ svg: {
53
+ fill: string;
54
+ };
55
+ _visited: {
56
+ color: string;
57
+ svg: {
58
+ fill: string;
59
+ };
60
+ };
61
+ };
62
+ };
63
+ disabledElement: {
64
+ color: string;
65
+ pointerEvents: string;
66
+ svg: {
67
+ fill: string;
68
+ };
69
+ _dark: {
70
+ color: string;
71
+ svg: {
72
+ fill: string;
73
+ };
74
+ };
15
75
  };
16
76
  };
17
77
  sizes?: {
18
78
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
19
- keys: "link"[];
79
+ keys: ("link" | "previousNextElement" | "disabledElement")[];
20
80
  }>;
21
81
  };
22
82
  variants?: {
23
83
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
24
- keys: "link"[];
84
+ keys: ("link" | "previousNextElement" | "disabledElement")[];
25
85
  }>;
26
86
  };
27
87
  defaultProps?: {
@@ -29,6 +89,6 @@ declare const Pagination: {
29
89
  variant?: string | number;
30
90
  colorScheme?: string;
31
91
  };
32
- parts: "link"[];
92
+ parts: ("link" | "previousNextElement" | "disabledElement")[];
33
93
  };
34
94
  export default Pagination;
@@ -1,5 +1,5 @@
1
1
  declare const RadioGroup: {
2
- baseStyle?: ({ isFullWidth }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
2
+ baseStyle?: ({ isFullWidth, isLegendHidden }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
3
3
  helperErrorText: {
4
4
  marginTop: string;
5
5
  };
@@ -7,15 +7,43 @@ declare const RadioGroup: {
7
7
  display: string;
8
8
  width: string;
9
9
  };
10
+ spanLegend: {
11
+ clip?: string;
12
+ height?: {
13
+ base: string;
14
+ md: string;
15
+ };
16
+ overflow?: string;
17
+ position?: {
18
+ base: string;
19
+ md: string;
20
+ };
21
+ width: string | {
22
+ base: string;
23
+ md: string;
24
+ };
25
+ wordWrap?: string;
26
+ display: string;
27
+ color: string;
28
+ fontSize: string;
29
+ fontWeight: string;
30
+ marginBottom: string;
31
+ span: {
32
+ fontWeight: string;
33
+ };
34
+ _dark: {
35
+ color: string;
36
+ };
37
+ };
10
38
  };
11
39
  sizes?: {
12
40
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
13
- keys: ("helperErrorText" | "stack")[];
41
+ keys: ("label" | "legend" | "helperErrorText")[];
14
42
  }>;
15
43
  };
16
44
  variants?: {
17
45
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
18
- keys: ("helperErrorText" | "stack")[];
46
+ keys: ("label" | "legend" | "helperErrorText")[];
19
47
  }>;
20
48
  };
21
49
  defaultProps?: {
@@ -23,6 +51,6 @@ declare const RadioGroup: {
23
51
  variant?: string | number;
24
52
  colorScheme?: string;
25
53
  };
26
- parts: ("helperErrorText" | "stack")[];
54
+ parts: ("label" | "legend" | "helperErrorText")[];
27
55
  };
28
56
  export default RadioGroup;
@@ -43,4 +43,14 @@ export declare const sanitizeStringForAttribute: (str: string) => string;
43
43
  /** Provides a random image to use as a placeholder. */
44
44
  export type GetPlaceholderImageProps = "smaller" | "default";
45
45
  export declare const getPlaceholderImage: (size?: GetPlaceholderImageProps, index?: number) => string;
46
+ /** The default styles for images added as examples within doc pages. */
47
+ export declare const exampleWrapperStyles: {
48
+ bgColor: string;
49
+ borderRadius: string;
50
+ display: string;
51
+ justifyContent: string;
52
+ mb: string;
53
+ overflow: string;
54
+ width: string;
55
+ };
46
56
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "3.5.2-rc",
3
+ "version": "3.5.2",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",