@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.
package/CHANGELOG.md CHANGED
@@ -8,8 +8,11 @@ Currently, this repo is in Prerelease. When it is released, this project will ad
8
8
 
9
9
  ## Prerelease
10
10
 
11
+ ## 1.5.0 (March 16, 2023)
12
+
11
13
  ### Adds
12
14
 
15
+ - Adds `brand` as a `breadcrumbsType` to the `Breadcrumbs` component.
13
16
  - Adds `dark` color mode support for `background-color` and `color` global styles.
14
17
  - Adds `dark` color mode support for the `HelperErrorText` and `StatusBadge` components.
15
18
  - Adds `dark` color mode support for the `Button`, `Checkbox`, `DatePicker`, `ProgressIndicator`, `Radio`, `SearchBar`, `Select`, `Slider` and `Toggle` components.
@@ -26,8 +29,14 @@ Currently, this repo is in Prerelease. When it is released, this project will ad
26
29
 
27
30
  ### Updates
28
31
 
32
+ - Updates background color values available in Storybook.
33
+ - Updates the hex value for `dark.ui.error.primary`.
29
34
  - Updates the `Design Tokens Style Guide` to include more detailed information about the available tokens.
30
35
 
36
+ ### Deprecates
37
+
38
+ - Deprecates the `darkMode` prop in the `ProgressIndicator` component.
39
+
31
40
  ## 1.4.2 (March 2, 2023)
32
41
 
33
42
  ### Updates
@@ -171,16 +180,6 @@ This release is exactly the same as the `1.3.0-rc` release candidate published o
171
180
 
172
181
  ### Adds
173
182
 
174
- - Adds `brand` as a `breadcrumbsType` to the `Breadcrumbs` component.
175
-
176
- ### Updates
177
-
178
- - Updates the hex value for `dark.ui.error.primary`.
179
-
180
- ## 1.2.1 (October 27, 2022)
181
-
182
- ### Adds
183
-
184
183
  - Adds the `"buttonPrimary"`, `"buttonSecondary"`, `"buttonPill"`, `"buttonCallout"`, `"buttonNoBrand"`, `"buttonDisabled"` variants for the the `Link` component, set through the `type` prop.
185
184
 
186
185
  ### Deprecates
@@ -257,7 +256,6 @@ This release is exactly the same as the `1.3.0-rc` release candidate published o
257
256
  ### Deprecates
258
257
 
259
258
  - Deprecates the `link` variant in the `Button` component.
260
- - Deprecates the `darkMode` prop in the `ProgressIndicator` component.
261
259
 
262
260
  ## 1.1.0 (August 30, 2022)
263
261
 
@@ -301,7 +299,6 @@ This release is exactly the same as the `1.1.0-rc5` release candidate which was
301
299
  - Updates the `onClick` event type for the `Pagination` links `onClick` function.
302
300
  - Updates the `Link` component's `onClick` event type.
303
301
  - Makes small, clarifying update to `Color Mode` story in Storybook.
304
- - Updates background color values available in Storybook.
305
302
 
306
303
  ### Fixes
307
304
 
@@ -4950,7 +4950,12 @@ var blogs = {
4950
4950
  },
4951
4951
  a: {
4952
4952
  _hover: {
4953
- color: "ui.gray.x-dark"
4953
+ color: "ui.gray.xx-dark"
4954
+ },
4955
+ _dark: {
4956
+ _hover: {
4957
+ color: "dark.ui.typography.heading"
4958
+ }
4954
4959
  }
4955
4960
  },
4956
4961
  svg: {
@@ -6374,7 +6379,7 @@ var headerDarkBlue = "#135772";
6374
6379
  var headerFocusColor = "#0F465C";
6375
6380
  var headerLightBlue = "#78CCED";
6376
6381
  var headerRed = "#ED1C24";
6377
- var headerRedDarkMode = "#DC6F73";
6382
+ var headerRedDarkMode = "dark.ui.error.primary";
6378
6383
  var headerRedDonate = "#E32B31";
6379
6384
  var headerYellow = "#FEE34A";
6380
6385
  var headerFocus = {
@@ -6388,9 +6393,6 @@ var Header = {
6388
6393
  parts: ["container", "horizontalRule", "logo"],
6389
6394
  baseStyle: {
6390
6395
  fontFamily: "'system-ui', 'Segoe UI', Tahoma, 'Helvetica', 'arial'",
6391
- _dark: {
6392
- backgroundColor: "dark.ui.bg.default"
6393
- },
6394
6396
  container: {
6395
6397
  marginX: {
6396
6398
  md: "20px",
@@ -6598,12 +6600,29 @@ var HeaderLogin = {
6598
6600
  }
6599
6601
  }),
6600
6602
  _dark: {
6601
- color: "ui.gray.xx-dark",
6603
+ bgColor: {
6604
+ base: "brand.secondary",
6605
+ md: "dark.ui.link.primary"
6606
+ },
6607
+ color: {
6608
+ base: "ui.white",
6609
+ md: "ui.gray.xx-dark"
6610
+ },
6602
6611
  svg: {
6603
- fill: "ui.gray.xx-dark"
6612
+ fill: {
6613
+ base: "ui.white",
6614
+ md: "ui.gray.xx-dark"
6615
+ }
6604
6616
  },
6605
6617
  _hover: {
6606
- color: "ui.gray.xx-dark"
6618
+ bgColor: {
6619
+ base: "brand.primary",
6620
+ md: "dark.ui.link.secondary"
6621
+ },
6622
+ color: {
6623
+ base: "ui.white",
6624
+ md: "ui.gray.xx-dark"
6625
+ }
6607
6626
  }
6608
6627
  }
6609
6628
  },
@@ -6764,8 +6783,8 @@ var HeaderLoginButton = {
6764
6783
  _focus: headerFocus,
6765
6784
  _dark: {
6766
6785
  bg: {
6767
- base: isOpen ? headerBlack : "dark.ui.bg.default",
6768
- md: isOpen ? headerDarkBlue : "dark.ui.bg.default"
6786
+ base: isOpen ? headerBlack : "transparent",
6787
+ md: isOpen ? headerDarkBlue : "transparent"
6769
6788
  },
6770
6789
  color: "dark.ui.typography.heading",
6771
6790
  svg: {
@@ -6904,6 +6923,13 @@ var HeaderMobileNav = {
6904
6923
  backgroundColor: headerRedDonate,
6905
6924
  _hover: {
6906
6925
  backgroundColor: headerRedDonate
6926
+ },
6927
+ _dark: {
6928
+ bgColor: "brand.secondary",
6929
+ color: "ui.white",
6930
+ _hover: {
6931
+ bgColor: "brand.primary"
6932
+ }
6907
6933
  }
6908
6934
  }
6909
6935
  }
@@ -7084,6 +7110,7 @@ var HeaderSearchForm = {
7084
7110
  _focus: headerFocus
7085
7111
  },
7086
7112
  _dark: {
7113
+ bgColor: "section.research.secondary",
7087
7114
  color: "ui.white",
7088
7115
  label: {
7089
7116
  color: "ui.white"
@@ -7110,6 +7137,7 @@ var HeaderSearchButton = {
7110
7137
  },
7111
7138
  textDecoration: "none",
7112
7139
  _dark: {
7140
+ bgColor: isOpen ? "section.research.secondary" : "transparent",
7113
7141
  color: isOpen ? "ui.white" : "dark.ui.link.primary"
7114
7142
  },
7115
7143
  span: {
@@ -7195,17 +7223,20 @@ var SitewideAlerts = {
7195
7223
  marginBottom: "0"
7196
7224
  },
7197
7225
  _dark: {
7198
- color: "ui.typography.heading",
7226
+ color: "dark.ui.typography.heading",
7199
7227
  a: {
7200
- color: "ui.typography.heading",
7228
+ color: "dark.ui.typography.heading",
7201
7229
  _hover: {
7202
- color: "ui.typography.heading"
7230
+ color: "dark.ui.typography.heading"
7203
7231
  }
7204
7232
  }
7205
7233
  }
7206
7234
  },
7207
7235
  _dark: {
7208
- backgroundColor: "dark.ui.status.primary"
7236
+ backgroundColor: "dark.ui.bg.active",
7237
+ borderBottom: "1px solid",
7238
+ borderColor: "dark.ui.status.primary",
7239
+ color: "dark.ui.typography.heading"
7209
7240
  }
7210
7241
  }
7211
7242
  };
@@ -7267,7 +7298,10 @@ var HeaderUpperNav = {
7267
7298
  bg: headerRed
7268
7299
  },
7269
7300
  _dark: {
7270
- color: "var(--nypl-colors-ui-black) !important"
7301
+ bgColor: "brand.secondary",
7302
+ _hover: {
7303
+ bgColor: "brand.primary"
7304
+ }
7271
7305
  }
7272
7306
  }
7273
7307
  }
@@ -7608,7 +7642,7 @@ var primary$1 = {
7608
7642
  marginBottom: "0"
7609
7643
  },
7610
7644
  _dark: {
7611
- bg: "dark.ui.bg.default",
7645
+ bgColor: "dark.ui.bg.default",
7612
7646
  color: "dark.ui.typography.body"
7613
7647
  }
7614
7648
  }
@@ -7756,9 +7790,9 @@ var fiftyFifty = {
7756
7790
  };
7757
7791
  var Hero = {
7758
7792
  baseStyle: {
7759
- bg: "ui.gray.x-light-cool",
7793
+ bgColor: "ui.gray.x-light-cool",
7760
7794
  _dark: {
7761
- bg: "dark.ui.bg.default"
7795
+ bgColor: "dark.ui.bg.default"
7762
7796
  }
7763
7797
  },
7764
7798
  // Available variants:
@@ -8210,6 +8244,9 @@ var MultiSelect = {
8210
8244
  },
8211
8245
  _focus: {
8212
8246
  outline: "0px !important"
8247
+ },
8248
+ _dark: {
8249
+ colorScheme: "dark"
8213
8250
  }
8214
8251
  },
8215
8252
  menuChildren: {
@@ -8392,7 +8429,7 @@ var NotificationContent = {
8392
8429
  pt: !isCentered && notificationHeading ? "xxs" : "0",
8393
8430
  w: "100%",
8394
8431
  _dark: {
8395
- borderLeftColor: notificationType === "standard" ? "ui.status.primary" : notificationType === "announcement" ? "ui.success.primary" : "dark.ui.error.primary",
8432
+ borderLeftColor: notificationType === "standard" ? "ui.status.primary" : notificationType === "announcement" ? "dark.ui.success.primary" : "dark.ui.error.primary",
8396
8433
  borderLeftStyle: !isCentered ? "solid" : "none",
8397
8434
  borderLeftWidth: "2px",
8398
8435
  marginTop: "0",
@@ -8436,7 +8473,7 @@ var NotificationHeading = {
8436
8473
  px: isCentered ? "s" : "0",
8437
8474
  w: "fit-content",
8438
8475
  _dark: {
8439
- borderBottomColor: notificationType === "standard" ? "ui.status.primary" : notificationType === "announcement" ? "ui.success.primary" : "dark.ui.error.primary",
8476
+ borderBottomColor: notificationType === "standard" ? "ui.status.primary" : notificationType === "announcement" ? "dark.ui.success.primary" : "dark.ui.error.primary",
8440
8477
  borderBottomStyle: isCentered ? "solid" : "none",
8441
8478
  borderBottomWidth: "2px",
8442
8479
  color: "dark.ui.typography.heading",
@@ -8447,7 +8484,7 @@ var NotificationHeading = {
8447
8484
  ml: icon && !isCentered ? "xs" : "0",
8448
8485
  mt: icon ? "xxxs" : "0",
8449
8486
  _dark: {
8450
- borderLeftColor: notificationType === "standard" ? "ui.status.primary" : notificationType === "announcement" ? "ui.success.primary" : "dark.ui.error.primary",
8487
+ borderLeftColor: notificationType === "standard" ? "ui.status.primary" : notificationType === "announcement" ? "dark.ui.success.primary" : "dark.ui.error.primary",
8451
8488
  borderLeftStyle: !isCentered ? "solid" : "none",
8452
8489
  borderLeftWidth: "2px",
8453
8490
  paddingLeft: !isCentered ? "xs" : "0"
@@ -8879,10 +8916,13 @@ var SkipNavigation = {
8879
8916
  _focus: {
8880
8917
  height: "auto",
8881
8918
  left: "1rem",
8882
- paddingX: "inset.extranarrow",
8919
+ paddingX: "inset.narrow",
8883
8920
  paddingY: "inset.extranarrow",
8884
8921
  top: "1rem",
8885
8922
  width: "auto"
8923
+ },
8924
+ _dark: {
8925
+ backgroundColor: "dark.ui.bg.page"
8886
8926
  }
8887
8927
  }
8888
8928
  }
@@ -10385,7 +10425,7 @@ var Notification$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fu
10385
10425
  }, baseIconProps));
10386
10426
  var iconProps = {
10387
10427
  announcement: {
10388
- color: colorMode === "dark" ? "ui.gray.medium" : "section.research.secondary",
10428
+ color: colorMode === "dark" ? "dark.ui.success.primary" : "section.research.secondary",
10389
10429
  name: "speakerNotes",
10390
10430
  title: "Notification announcement icon"
10391
10431
  },