@nypl/design-system-react-components 1.5.0-rc → 1.5.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.
@@ -4944,7 +4944,12 @@ var blogs = {
4944
4944
  },
4945
4945
  a: {
4946
4946
  _hover: {
4947
- color: "ui.gray.x-dark"
4947
+ color: "ui.gray.xx-dark"
4948
+ },
4949
+ _dark: {
4950
+ _hover: {
4951
+ color: "dark.ui.typography.heading"
4952
+ }
4948
4953
  }
4949
4954
  },
4950
4955
  svg: {
@@ -6368,7 +6373,7 @@ var headerDarkBlue = "#135772";
6368
6373
  var headerFocusColor = "#0F465C";
6369
6374
  var headerLightBlue = "#78CCED";
6370
6375
  var headerRed = "#ED1C24";
6371
- var headerRedDarkMode = "#DC6F73";
6376
+ var headerRedDarkMode = "dark.ui.error.primary";
6372
6377
  var headerRedDonate = "#E32B31";
6373
6378
  var headerYellow = "#FEE34A";
6374
6379
  var headerFocus = {
@@ -6382,9 +6387,6 @@ var Header = {
6382
6387
  parts: ["container", "horizontalRule", "logo"],
6383
6388
  baseStyle: {
6384
6389
  fontFamily: "'system-ui', 'Segoe UI', Tahoma, 'Helvetica', 'arial'",
6385
- _dark: {
6386
- backgroundColor: "dark.ui.bg.default"
6387
- },
6388
6390
  container: {
6389
6391
  marginX: {
6390
6392
  md: "20px",
@@ -6592,12 +6594,29 @@ var HeaderLogin = {
6592
6594
  }
6593
6595
  }),
6594
6596
  _dark: {
6595
- color: "ui.gray.xx-dark",
6597
+ bgColor: {
6598
+ base: "brand.secondary",
6599
+ md: "dark.ui.link.primary"
6600
+ },
6601
+ color: {
6602
+ base: "ui.white",
6603
+ md: "ui.gray.xx-dark"
6604
+ },
6596
6605
  svg: {
6597
- fill: "ui.gray.xx-dark"
6606
+ fill: {
6607
+ base: "ui.white",
6608
+ md: "ui.gray.xx-dark"
6609
+ }
6598
6610
  },
6599
6611
  _hover: {
6600
- color: "ui.gray.xx-dark"
6612
+ bgColor: {
6613
+ base: "brand.primary",
6614
+ md: "dark.ui.link.secondary"
6615
+ },
6616
+ color: {
6617
+ base: "ui.white",
6618
+ md: "ui.gray.xx-dark"
6619
+ }
6601
6620
  }
6602
6621
  }
6603
6622
  },
@@ -6758,8 +6777,8 @@ var HeaderLoginButton = {
6758
6777
  _focus: headerFocus,
6759
6778
  _dark: {
6760
6779
  bg: {
6761
- base: isOpen ? headerBlack : "dark.ui.bg.default",
6762
- md: isOpen ? headerDarkBlue : "dark.ui.bg.default"
6780
+ base: isOpen ? headerBlack : "transparent",
6781
+ md: isOpen ? headerDarkBlue : "transparent"
6763
6782
  },
6764
6783
  color: "dark.ui.typography.heading",
6765
6784
  svg: {
@@ -6898,6 +6917,13 @@ var HeaderMobileNav = {
6898
6917
  backgroundColor: headerRedDonate,
6899
6918
  _hover: {
6900
6919
  backgroundColor: headerRedDonate
6920
+ },
6921
+ _dark: {
6922
+ bgColor: "brand.secondary",
6923
+ color: "ui.white",
6924
+ _hover: {
6925
+ bgColor: "brand.primary"
6926
+ }
6901
6927
  }
6902
6928
  }
6903
6929
  }
@@ -7078,6 +7104,7 @@ var HeaderSearchForm = {
7078
7104
  _focus: headerFocus
7079
7105
  },
7080
7106
  _dark: {
7107
+ bgColor: "section.research.secondary",
7081
7108
  color: "ui.white",
7082
7109
  label: {
7083
7110
  color: "ui.white"
@@ -7104,6 +7131,7 @@ var HeaderSearchButton = {
7104
7131
  },
7105
7132
  textDecoration: "none",
7106
7133
  _dark: {
7134
+ bgColor: isOpen ? "section.research.secondary" : "transparent",
7107
7135
  color: isOpen ? "ui.white" : "dark.ui.link.primary"
7108
7136
  },
7109
7137
  span: {
@@ -7189,17 +7217,20 @@ var SitewideAlerts = {
7189
7217
  marginBottom: "0"
7190
7218
  },
7191
7219
  _dark: {
7192
- color: "ui.typography.heading",
7220
+ color: "dark.ui.typography.heading",
7193
7221
  a: {
7194
- color: "ui.typography.heading",
7222
+ color: "dark.ui.typography.heading",
7195
7223
  _hover: {
7196
- color: "ui.typography.heading"
7224
+ color: "dark.ui.typography.heading"
7197
7225
  }
7198
7226
  }
7199
7227
  }
7200
7228
  },
7201
7229
  _dark: {
7202
- backgroundColor: "dark.ui.status.primary"
7230
+ backgroundColor: "dark.ui.bg.active",
7231
+ borderBottom: "1px solid",
7232
+ borderColor: "dark.ui.status.primary",
7233
+ color: "dark.ui.typography.heading"
7203
7234
  }
7204
7235
  }
7205
7236
  };
@@ -7261,7 +7292,10 @@ var HeaderUpperNav = {
7261
7292
  bg: headerRed
7262
7293
  },
7263
7294
  _dark: {
7264
- color: "var(--nypl-colors-ui-black) !important"
7295
+ bgColor: "brand.secondary",
7296
+ _hover: {
7297
+ bgColor: "brand.primary"
7298
+ }
7265
7299
  }
7266
7300
  }
7267
7301
  }
@@ -7602,7 +7636,7 @@ var primary$1 = {
7602
7636
  marginBottom: "0"
7603
7637
  },
7604
7638
  _dark: {
7605
- bg: "dark.ui.bg.default",
7639
+ bgColor: "dark.ui.bg.default",
7606
7640
  color: "dark.ui.typography.body"
7607
7641
  }
7608
7642
  }
@@ -7750,9 +7784,9 @@ var fiftyFifty = {
7750
7784
  };
7751
7785
  var Hero = {
7752
7786
  baseStyle: {
7753
- bg: "ui.gray.x-light-cool",
7787
+ bgColor: "ui.gray.x-light-cool",
7754
7788
  _dark: {
7755
- bg: "dark.ui.bg.default"
7789
+ bgColor: "dark.ui.bg.default"
7756
7790
  }
7757
7791
  },
7758
7792
  // Available variants:
@@ -8204,6 +8238,9 @@ var MultiSelect = {
8204
8238
  },
8205
8239
  _focus: {
8206
8240
  outline: "0px !important"
8241
+ },
8242
+ _dark: {
8243
+ colorScheme: "dark"
8207
8244
  }
8208
8245
  },
8209
8246
  menuChildren: {
@@ -8386,7 +8423,7 @@ var NotificationContent = {
8386
8423
  pt: !isCentered && notificationHeading ? "xxs" : "0",
8387
8424
  w: "100%",
8388
8425
  _dark: {
8389
- borderLeftColor: notificationType === "standard" ? "ui.status.primary" : notificationType === "announcement" ? "ui.success.primary" : "dark.ui.error.primary",
8426
+ borderLeftColor: notificationType === "standard" ? "ui.status.primary" : notificationType === "announcement" ? "dark.ui.success.primary" : "dark.ui.error.primary",
8390
8427
  borderLeftStyle: !isCentered ? "solid" : "none",
8391
8428
  borderLeftWidth: "2px",
8392
8429
  marginTop: "0",
@@ -8430,7 +8467,7 @@ var NotificationHeading = {
8430
8467
  px: isCentered ? "s" : "0",
8431
8468
  w: "fit-content",
8432
8469
  _dark: {
8433
- borderBottomColor: notificationType === "standard" ? "ui.status.primary" : notificationType === "announcement" ? "ui.success.primary" : "dark.ui.error.primary",
8470
+ borderBottomColor: notificationType === "standard" ? "ui.status.primary" : notificationType === "announcement" ? "dark.ui.success.primary" : "dark.ui.error.primary",
8434
8471
  borderBottomStyle: isCentered ? "solid" : "none",
8435
8472
  borderBottomWidth: "2px",
8436
8473
  color: "dark.ui.typography.heading",
@@ -8441,7 +8478,7 @@ var NotificationHeading = {
8441
8478
  ml: icon && !isCentered ? "xs" : "0",
8442
8479
  mt: icon ? "xxxs" : "0",
8443
8480
  _dark: {
8444
- borderLeftColor: notificationType === "standard" ? "ui.status.primary" : notificationType === "announcement" ? "ui.success.primary" : "dark.ui.error.primary",
8481
+ borderLeftColor: notificationType === "standard" ? "ui.status.primary" : notificationType === "announcement" ? "dark.ui.success.primary" : "dark.ui.error.primary",
8445
8482
  borderLeftStyle: !isCentered ? "solid" : "none",
8446
8483
  borderLeftWidth: "2px",
8447
8484
  paddingLeft: !isCentered ? "xs" : "0"
@@ -8873,10 +8910,13 @@ var SkipNavigation = {
8873
8910
  _focus: {
8874
8911
  height: "auto",
8875
8912
  left: "1rem",
8876
- paddingX: "inset.extranarrow",
8913
+ paddingX: "inset.narrow",
8877
8914
  paddingY: "inset.extranarrow",
8878
8915
  top: "1rem",
8879
8916
  width: "auto"
8917
+ },
8918
+ _dark: {
8919
+ backgroundColor: "dark.ui.bg.page"
8880
8920
  }
8881
8921
  }
8882
8922
  }
@@ -10379,7 +10419,7 @@ var Notification$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (prop
10379
10419
  }, baseIconProps));
10380
10420
  var iconProps = {
10381
10421
  announcement: {
10382
- color: colorMode === "dark" ? "ui.gray.medium" : "section.research.secondary",
10422
+ color: colorMode === "dark" ? "dark.ui.success.primary" : "section.research.secondary",
10383
10423
  name: "speakerNotes",
10384
10424
  title: "Notification announcement icon"
10385
10425
  },