@thecb/components 8.3.1-beta.3 → 8.3.1-beta.5

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/dist/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import React, { createContext, createElement, PureComponent, forwardRef, Component, cloneElement, Children, useContext, Fragment as Fragment$1, useRef, useState, useLayoutEffect, memo, useEffect as useEffect$1, useMemo, useCallback, isValidElement, createRef } from 'react';
2
2
  import styled, { ThemeContext, css, ThemeProvider, keyframes as keyframes$3 } from 'styled-components';
3
3
  import theme from 'styled-theming';
4
- import { Link, useNavigate, useLocation } from 'react-router-dom';
4
+ import { useMatch, Link, useNavigate, useLocation } from 'react-router-dom';
5
5
  import reactDom from 'react-dom';
6
6
 
7
7
  function ownKeys(object, enumerableOnly) {
@@ -19820,13 +19820,16 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
19820
19820
  extrastyles = _ref.extrastyles,
19821
19821
  props = _objectWithoutProperties(_ref, _excluded$l);
19822
19822
 
19823
+ var match = useMatch();
19824
+ console.log("🚀 ~ file: InternalLink.styled.js:18 ~ match:", match);
19823
19825
  return /*#__PURE__*/React.createElement(Link, _extends({}, props, {
19826
+ match: match,
19824
19827
  ref: ref
19825
19828
  }));
19826
19829
  })).withConfig({
19827
19830
  displayName: "InternalLinkstyled__StyledInternalLink",
19828
19831
  componentId: "sc-cuqxud-0"
19829
- })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";background-color:", ";}", ""], function (_ref2) {
19832
+ })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";background-color:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";background-color:", ";}", ""], function (_ref2) {
19830
19833
  var color = _ref2.color,
19831
19834
  active = _ref2.active,
19832
19835
  activeColor = _ref2.activeColor;
@@ -19847,16 +19850,19 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
19847
19850
  var margin = _ref7.margin;
19848
19851
  return margin;
19849
19852
  }, function (_ref8) {
19850
- var hoverColor = _ref8.hoverColor;
19853
+ var match = _ref8.match;
19854
+ return match ? INFO_BLUE : 'transparent';
19855
+ }, function (_ref9) {
19856
+ var hoverColor = _ref9.hoverColor;
19851
19857
  return hoverColor;
19852
- }, ROYAL_BLUE, function (_ref9) {
19853
- var activeColor = _ref9.activeColor;
19858
+ }, ROYAL_BLUE, function (_ref10) {
19859
+ var activeColor = _ref10.activeColor;
19854
19860
  return activeColor;
19855
- }, function (_ref10) {
19856
- var activeBackgroundColor = _ref10.activeBackgroundColor;
19857
- return activeBackgroundColor ? activeBackgroundColor : 'transparent';
19858
19861
  }, function (_ref11) {
19859
- var extrastyles = _ref11.extrastyles;
19862
+ var activeBackgroundColor = _ref11.activeBackgroundColor;
19863
+ return activeBackgroundColor ? activeBackgroundColor : 'transparent';
19864
+ }, function (_ref12) {
19865
+ var extrastyles = _ref12.extrastyles;
19860
19866
  return extrastyles;
19861
19867
  });
19862
19868
  /* eslint-enable no-unused-vars */