@nypl/design-system-react-components 1.5.0-rc2 → 1.5.1

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.
@@ -5187,7 +5187,6 @@ var secondary = function secondary(_ref2) {
5187
5187
  var _ref2$buttonSize = _ref2.buttonSize,
5188
5188
  buttonSize = _ref2$buttonSize === void 0 ? "medium" : _ref2$buttonSize;
5189
5189
  return _extends({
5190
- bg: "ui.white",
5191
5190
  border: "1px solid",
5192
5191
  borderColor: "ui.link.primary",
5193
5192
  color: "ui.link.primary"
@@ -7696,13 +7695,13 @@ var campaign = {
7696
7695
  },
7697
7696
  position: "relative",
7698
7697
  content: {
7699
- alignItems: "center",
7698
+ alignItems: "stretch",
7700
7699
  bg: "ui.black",
7701
7700
  color: "ui.white",
7702
7701
  display: "flex",
7703
7702
  flexFlow: {
7704
7703
  base: "column nowrap",
7705
- md: "row nowrap"
7704
+ lg: "row nowrap"
7706
7705
  },
7707
7706
  minHeight: "320px",
7708
7707
  flex: {
@@ -7726,60 +7725,63 @@ var campaign = {
7726
7725
  color: "inherit",
7727
7726
  display: "inline-block"
7728
7727
  },
7729
- img: {
7730
- flex: {
7731
- base: "1 1 100%",
7732
- md: "0 0 50%"
7733
- },
7734
- minWidth: "0",
7735
- objectFit: "cover",
7736
- width: "100%",
7737
- height: {
7738
- md: "320px"
7728
+ img: /*#__PURE__*/screenreaderOnly(),
7729
+ imgWrapper: {
7730
+ backgroundPosition: "center",
7731
+ backgroundSize: "cover",
7732
+ minHeight: "230px",
7733
+ width: {
7734
+ base: "100%",
7735
+ lg: "50%"
7739
7736
  }
7740
7737
  },
7741
7738
  interior: {
7742
- flex: {
7743
- base: "0 0 100%",
7744
- md: "0 0 50%"
7745
- },
7746
- padding: "inset.wide",
7739
+ alignSelf: "center",
7747
7740
  maxWidth: {
7748
7741
  md: "960px"
7742
+ },
7743
+ padding: {
7744
+ base: "inset.default",
7745
+ md: "inset.wide"
7746
+ },
7747
+ width: {
7748
+ base: "100%",
7749
+ lg: "50%"
7749
7750
  }
7750
7751
  }
7751
7752
  };
7752
7753
  var fiftyFifty = {
7753
7754
  content: /*#__PURE__*/_extends({}, wrapperStyles, {
7754
- alignItems: "center",
7755
+ alignItems: "stretch",
7755
7756
  display: "flex",
7756
7757
  flexFlow: {
7757
7758
  base: "column nowrap",
7758
7759
  lg: "row nowrap"
7759
- },
7760
- paddingBottom: "s",
7761
- paddingEnd: "s",
7762
- paddingStart: "s",
7763
- padding: {
7764
- lg: "unset"
7765
7760
  }
7766
7761
  }),
7767
7762
  imgWrapper: {
7768
- marginBottom: {
7769
- base: "s",
7770
- lg: "unset"
7771
- },
7772
- marginEnd: {
7773
- base: "-15px",
7774
- lg: "s"
7763
+ backgroundPosition: "center",
7764
+ backgroundSize: "cover",
7765
+ minHeight: "160px",
7766
+ width: {
7767
+ base: "100%",
7768
+ lg: "50%"
7769
+ }
7770
+ },
7771
+ img: /*#__PURE__*/screenreaderOnly(),
7772
+ bodyText: {
7773
+ alignSelf: "center",
7774
+ maxWidth: {
7775
+ md: "960px"
7775
7776
  },
7776
- marginStart: {
7777
- base: "-15px"
7777
+ padding: {
7778
+ base: "inset.default",
7779
+ md: "inset.wide"
7778
7780
  },
7779
- maxWidth: {
7781
+ width: {
7782
+ base: "100%",
7780
7783
  lg: "50%"
7781
- },
7782
- width: "auto"
7784
+ }
7783
7785
  }
7784
7786
  };
7785
7787
  var Hero = {
@@ -15535,13 +15537,19 @@ var Hero$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
15535
15537
  } else if (foregroundColor || backgroundColor) {
15536
15538
  console.warn("NYPL Reservoir Hero: The `foregroundColor` and/or `backgroundColor` " + "props have been passed, but the `'secondary'` `heroType` " + "variant will not use them.");
15537
15539
  }
15538
- var childrenToRender = heroType === "campaign" ? React__default.createElement(React__default.Fragment, null, React__default.createElement(Image, {
15540
+ var childrenToRender = heroType === "campaign" ? React__default.createElement(React__default.Fragment, null, React__default.createElement(Box, {
15541
+ __css: _extends({}, styles.imgWrapper, {
15542
+ backgroundImage: "url(" + imageProps.src + ")"
15543
+ })
15544
+ }, React__default.createElement(Image, {
15539
15545
  alt: imageProps.alt,
15540
15546
  src: imageProps.src
15541
- }), React__default.createElement(Box, {
15547
+ })), React__default.createElement(Box, {
15542
15548
  __css: styles.interior
15543
15549
  }, finalHeading, subHeaderText)) : React__default.createElement(React__default.Fragment, null, heroType !== "primary" && heroType !== "tertiary" && React__default.createElement(Box, {
15544
- __css: styles.imgWrapper
15550
+ __css: _extends({}, styles.imgWrapper, {
15551
+ backgroundImage: heroType === "fiftyFifty" ? "url(" + imageProps.src + ")" : undefined
15552
+ })
15545
15553
  }, React__default.createElement(Image, {
15546
15554
  alt: imageProps.alt,
15547
15555
  src: imageProps.src
@@ -16133,6 +16141,7 @@ var SearchBar$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
16133
16141
  }));
16134
16142
  // Render the `TextInput` component.
16135
16143
  var textInputNative = textInputProps && React__default.createElement(TextInput, Object.assign({
16144
+ defaultValue: textInputProps == null ? void 0 : textInputProps.defaultValue,
16136
16145
  id: (textInputProps == null ? void 0 : textInputProps.id) || "searchbar-textinput-" + id,
16137
16146
  isClearable: textInputProps == null ? void 0 : textInputProps.isClearable,
16138
16147
  isClearableCallback: textInputProps == null ? void 0 : textInputProps.isClearableCallback,
@@ -16357,7 +16366,6 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
16357
16366
  _onChange && _onChange(val);
16358
16367
  },
16359
16368
  onChangeEnd: function onChangeEnd(val) {
16360
- setCurrentValue(val);
16361
16369
  _onChangeEnd && _onChangeEnd(val);
16362
16370
  },
16363
16371
  step: step,