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

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.
@@ -22,6 +22,8 @@ export interface BannerProps extends Omit<BoxProps, "content"> {
22
22
  /** Optional prop to control whether a `Banner` can be dismissed
23
23
  * (closed) by a user. */
24
24
  isDismissible?: boolean;
25
+ /** Function to call when the banner is closed. */
26
+ onClose?: () => void;
25
27
  /** Used to control the component's semantic coloring and iconography. */
26
28
  variant?: BannerVariants;
27
29
  }
@@ -573,9 +573,18 @@ declare const Hero: {
573
573
  alignItems: string;
574
574
  display: string;
575
575
  justifyContent: string;
576
- padding: {
576
+ paddingTop: {
577
+ base: "inset.wide";
578
+ md: "calc(var(--nypl-space-xxl) + var(--nypl-space-s))";
579
+ };
580
+ paddingBottom: {
577
581
  base: "inset.wide";
578
- md: "calc(var(--nypl-space-xxl) + var(--nypl-space-s)) var(--nypl-space-s) 0";
582
+ md: number;
583
+ };
584
+ paddingX: {
585
+ base: string;
586
+ md: string;
587
+ xl: string;
579
588
  };
580
589
  position: string;
581
590
  a: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "4.3.0-rc",
3
+ "version": "4.3.0",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",