@nypl/design-system-react-components 1.1.0-rc5 → 1.1.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.
@@ -1918,6 +1918,10 @@ var Button = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
1918
1918
  console.warn("NYPL Reservoir Button: This component's required `id` prop was not passed.");
1919
1919
  }
1920
1920
 
1921
+ if (buttonType === "link") {
1922
+ console.warn("NYPL Reservoir Button: The 'link' value for the 'buttonType' prop has been deprecated.");
1923
+ }
1924
+
1921
1925
  React__default.Children.map(children, function (child) {
1922
1926
  childCount++;
1923
1927
 
@@ -3811,6 +3815,7 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
3811
3815
 
3812
3816
 
3813
3817
  options = isHidden ? {
3818
+ defaultValue: defaultValue,
3814
3819
  id: id,
3815
3820
  "aria-hidden": isHidden,
3816
3821
  name: name,
@@ -4918,6 +4923,7 @@ var baseStyle = {
4918
4923
  display: "flex",
4919
4924
  cursor: "pointer",
4920
4925
  color: "ui.white",
4926
+ fontWeight: "button.default",
4921
4927
  height: "10",
4922
4928
  justifyContent: "center",
4923
4929
  lineHeight: "1.5",
@@ -4930,7 +4936,6 @@ var baseStyle = {
4930
4936
  px: "inset.default",
4931
4937
  textDecoration: "none",
4932
4938
  wordWrap: "normal",
4933
- fontWeight: "button.default",
4934
4939
  svg: {
4935
4940
  fill: "currentColor"
4936
4941
  },
@@ -4943,17 +4948,17 @@ var baseStyle = {
4943
4948
  _disabled: {
4944
4949
  bg: "ui.gray.light-cool",
4945
4950
  color: "ui.gray.dark",
4946
- pointerEvents: "none",
4947
- opacity: "1"
4951
+ opacity: "1",
4952
+ pointerEvents: "none"
4948
4953
  }
4949
4954
  }; // Styles for different visual variants:
4950
4955
  // primary, secondary, link, pill, iconOnly, callout, searchbar, noBrand
4951
4956
 
4952
4957
  var primary = {
4953
4958
  bg: "ui.link.primary",
4954
- minWidth: "none",
4955
4959
  height: "none",
4956
- fontSize: "button.default"
4960
+ fontSize: "button.default",
4961
+ minWidth: "none"
4957
4962
  };
4958
4963
  var secondary = {
4959
4964
  bg: "ui.white",
@@ -4971,8 +4976,8 @@ var secondary = {
4971
4976
  };
4972
4977
  var link = {
4973
4978
  bg: "transparent",
4974
- lineHeight: "2.5",
4975
4979
  color: "ui.link.primary",
4980
+ lineHeight: "2.5",
4976
4981
  textDecoration: "underline",
4977
4982
  _disabled: {
4978
4983
  bg: "transparent"
@@ -4982,15 +4987,27 @@ var link = {
4982
4987
  color: "ui.link.secondary"
4983
4988
  }
4984
4989
  };
4990
+ var text = {
4991
+ bg: "transparent",
4992
+ color: "ui.link.primary",
4993
+ fontSize: "button.default",
4994
+ _disabled: {
4995
+ bg: "transparent"
4996
+ },
4997
+ _hover: {
4998
+ bg: "transparent",
4999
+ color: "ui.link.secondary"
5000
+ }
5001
+ };
4985
5002
  var pill = {
4986
5003
  bg: "ui.white",
4987
5004
  border: "1px solid",
4988
5005
  borderColor: "ui.gray.light-cool",
4989
- color: "inherit",
4990
5006
  borderRadius: "pill",
5007
+ color: "inherit",
5008
+ fontSize: "button.default",
4991
5009
  py: "inset.narrow",
4992
5010
  px: "inset.wide",
4993
- fontSize: "button.default",
4994
5011
  _hover: {
4995
5012
  bg: "ui.gray.xx-light-cool",
4996
5013
  borderColor: "ui.gray.medium"
@@ -5036,6 +5053,7 @@ var Button$1 = {
5036
5053
  variants: {
5037
5054
  primary: primary,
5038
5055
  secondary: secondary,
5056
+ text: text,
5039
5057
  link: link,
5040
5058
  pill: pill,
5041
5059
  iconOnly: iconOnly,
@@ -6523,6 +6541,7 @@ var HeaderSearchButton = {
6523
6541
  minWidth: {
6524
6542
  md: "80px"
6525
6543
  },
6544
+ px: "0",
6526
6545
  textDecoration: "none",
6527
6546
  span: {
6528
6547
  alignItems: "center",
@@ -12481,7 +12500,7 @@ var HeaderSearchButton$1 = /*#__PURE__*/chakra(function (_ref) {
12481
12500
  "aria-haspopup": "true",
12482
12501
  "aria-label": labelText,
12483
12502
  "aria-expanded": isOpen ? true : null,
12484
- buttonType: "link",
12503
+ buttonType: "text",
12485
12504
  id: "searchButton",
12486
12505
  onClick: function onClick() {
12487
12506
  gaUtils.trackEvent(gaAction, gaLabel);
@@ -12691,7 +12710,7 @@ var HeaderLoginButton$1 = /*#__PURE__*/chakra(function (_ref) {
12691
12710
  isDisabled: !isOpen
12692
12711
  }, React__default.createElement(Button, {
12693
12712
  "aria-label": desktopButtonLabel,
12694
- buttonType: "link",
12713
+ buttonType: "text",
12695
12714
  id: "loginButton",
12696
12715
  onClick: function onClick() {
12697
12716
  gaUtils.trackEvent(gaAction, gaLabel);
@@ -12818,7 +12837,7 @@ var HeaderMobileNavButton$1 = /*#__PURE__*/chakra(function () {
12818
12837
  "aria-haspopup": "true",
12819
12838
  "aria-label": isOpen ? "Close Navigation" : "Open Navigation",
12820
12839
  "aria-expanded": isOpen ? true : null,
12821
- buttonType: "link",
12840
+ buttonType: "text",
12822
12841
  id: "mobileNav-btn",
12823
12842
  onClick: function onClick() {
12824
12843
  gaUtils.trackEvent("Click", "Mobile mobileMenu");
@@ -12985,7 +13004,7 @@ var Notification$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (prop
12985
13004
 
12986
13005
  var dismissibleButton = dismissible && React__default.createElement(Button, {
12987
13006
  "aria-label": "Close the notification",
12988
- buttonType: "link",
13007
+ buttonType: "text",
12989
13008
  id: id + "-notification-dismissible-button",
12990
13009
  onClick: handleClose,
12991
13010
  __css: styles.dismissibleButton