@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.
- package/dist/design-system-react-components.cjs +29 -29
- package/dist/design-system-react-components.js +1390 -1345
- package/dist/src/components/Hero/Hero.d.ts +8 -3
- package/dist/src/theme/components/hero.d.ts +2 -1
- package/dist/src/theme/components/icon.d.ts +6 -5
- package/dist/src/theme/components/select.d.ts +13 -0
- package/dist/src/theme/components/statusBadge.d.ts +0 -1
- package/package.json +1 -1
|
@@ -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
|
|
45
|
-
* the "campaign" variant. If true, the background image will be
|
|
46
|
-
*
|
|
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
|
|
28
|
-
width
|
|
29
|
-
transform
|
|
30
|
-
fill
|
|
28
|
+
height?: string;
|
|
29
|
+
width?: string;
|
|
30
|
+
transform?: string;
|
|
31
|
+
fill?: string;
|
|
31
32
|
marginEnd?: string;
|
|
32
33
|
marginStart?: string;
|
|
33
|
-
display
|
|
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<{
|