@nypl/design-system-react-components 4.1.3 → 4.1.5

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,14 @@ export interface HeroProps extends BoxProps {
41
41
  * Set `isDarkText` to `true` if the `textBackgroundColor` is set to a light
42
42
  * color. */
43
43
  isDarkText?: boolean;
44
- /** Optional boolean used to toggle the treatment of the background image in
45
- * the "campaign" variant. If true, the background image will be converted to
46
- * black & white and darkened to 60% black. */
44
+ /** Optional boolean used to toggle the blur treatment of the background image
45
+ * in the "campaign" variant. If true, the background image will be blurred
46
+ * and darkened slightly.
47
+ */
48
+ isBlurredBackgroundImage?: boolean;
49
+ /** Optional boolean used to toggle the color treatment of the background
50
+ * image in the "campaign" variant. If true, the background image will be
51
+ * converted to black & white and darkened moderately. */
47
52
  isDarkBackgroundImage?: boolean;
48
53
  /** Optional string used for the subheader that displays underneath the
49
54
  * heading element. */
@@ -568,7 +568,7 @@ declare const Hero: {
568
568
  };
569
569
  };
570
570
  };
571
- campaign: ({ foregroundColor, isDarkText, textColor }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
571
+ campaign: ({ foregroundColor, isBlurredBackgroundImage, isDarkBackgroundImage, isDarkText, textColor, }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
572
572
  base: {
573
573
  alignItems: string;
574
574
  display: string;
@@ -603,6 +603,7 @@ declare const Hero: {
603
603
  content: {
604
604
  alignItems: string;
605
605
  bg: string;
606
+ boxShadow: string;
606
607
  color: any;
607
608
  display: string;
608
609
  flexFlow: {
@@ -10,6 +10,7 @@ declare const iconRotation: Record<string, {
10
10
  interface IconBaseStyle extends StyleFunctionProps {
11
11
  align: keyof typeof align;
12
12
  color: string;
13
+ hasChildSVG: boolean;
13
14
  iconRotation: keyof typeof iconRotation;
14
15
  size: keyof typeof iconSizeStyles;
15
16
  }
@@ -24,13 +25,13 @@ declare const Icon: {
24
25
  marginStart?: string;
25
26
  display: string;
26
27
  };
27
- height: string;
28
- width: string;
29
- transform: string;
30
- fill: string;
28
+ height?: string;
29
+ width?: string;
30
+ transform?: string;
31
+ fill?: string;
31
32
  marginEnd?: string;
32
33
  marginStart?: string;
33
- display: string;
34
+ display?: string;
34
35
  };
35
36
  sizes?: {
36
37
  [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
@@ -108,6 +108,19 @@ declare const Select: {
108
108
  "div[data-testid='ds-helperErrorText']": {
109
109
  marginLeft: string;
110
110
  };
111
+ /**
112
+ * Overriding Chakra default styles with styles that are RTL-aware to
113
+ * properly position the dropdown icon.
114
+ *
115
+ * To work properly, the `right` attribute needs to be unset before the
116
+ * `inset-inline-end` attribute is set. Additionally, `insetInlineEnd`
117
+ * which should map to `inset-inline-end` actually maps to `right`,
118
+ * which does not solve the problem. Maybe these are bugs in Chakra.
119
+ * */
120
+ ".chakra-select__icon-wrapper": {
121
+ right: string;
122
+ "inset-inline-end": string;
123
+ };
111
124
  };
112
125
  sizes?: {
113
126
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
@@ -58,7 +58,6 @@ declare const StatusBadge: {
58
58
  py: string;
59
59
  paddingInlineEnd: string;
60
60
  paddingInlineStart: string;
61
- whiteSpace: string;
62
61
  width: string;
63
62
  _dark: {
64
63
  backgroundColor: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",