@thecb/components 8.3.1-beta.0 → 8.3.1-beta.10
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.cjs.js +4 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -9
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/button-with-link/ButtonWithLink.js +0 -4
- package/src/components/atoms/link/Link.theme.js +11 -5
- package/src/constants/colors.d.ts +120 -0
- package/src/constants/index.d.ts +1 -0
- /package/src/components/atoms/icons/{ExternalLinkicon.js → ExternalLinkIcon.js} +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -19712,9 +19712,9 @@ var fontFamily$2 = {
|
|
|
19712
19712
|
primary: "Public Sans",
|
|
19713
19713
|
secondary: "Open Sans"
|
|
19714
19714
|
};
|
|
19715
|
-
var hoverColor$2 =
|
|
19716
|
-
var activeColor$3 =
|
|
19717
|
-
var externalLinkColor =
|
|
19715
|
+
var hoverColor$2 = SAPPHIRE_BLUE;
|
|
19716
|
+
var activeColor$3 = PEACOCK_BLUE;
|
|
19717
|
+
var externalLinkColor = MATISSE_BLUE;
|
|
19718
19718
|
var fallbackValues$a = {
|
|
19719
19719
|
fontFamily: fontFamily$2,
|
|
19720
19720
|
hoverColor: hoverColor$2,
|
|
@@ -21510,13 +21510,11 @@ _curry2(function test(pattern, str) {
|
|
|
21510
21510
|
|
|
21511
21511
|
var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
|
|
21512
21512
|
|
|
21513
|
-
var _excluded$m = ["url", "
|
|
21513
|
+
var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
21514
21514
|
|
|
21515
21515
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
21516
21516
|
var _ref$url = _ref.url,
|
|
21517
21517
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
21518
|
-
_ref$active = _ref.active,
|
|
21519
|
-
active = _ref$active === void 0 ? false : _ref$active,
|
|
21520
21518
|
_ref$disabled = _ref.disabled,
|
|
21521
21519
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
21522
21520
|
_ref$fileLink = _ref.fileLink,
|
|
@@ -21531,7 +21529,6 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
21531
21529
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
21532
21530
|
var children = _ref2.children,
|
|
21533
21531
|
url = _ref2.url,
|
|
21534
|
-
active = _ref2.active,
|
|
21535
21532
|
disabled = _ref2.disabled,
|
|
21536
21533
|
newTab = _ref2.newTab,
|
|
21537
21534
|
dataQa = _ref2.dataQa,
|
|
@@ -21549,7 +21546,6 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
21549
21546
|
dataQa: dataQa
|
|
21550
21547
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null))) : /*#__PURE__*/React__default.createElement(InternalLink, {
|
|
21551
21548
|
to: url,
|
|
21552
|
-
active: active,
|
|
21553
21549
|
tabIndex: "-1",
|
|
21554
21550
|
dataQa: dataQa,
|
|
21555
21551
|
extraStyles: extraStyles
|
|
@@ -21558,7 +21554,6 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
21558
21554
|
|
|
21559
21555
|
return /*#__PURE__*/React__default.createElement(ButtonWithLinkWrapper, {
|
|
21560
21556
|
url: url,
|
|
21561
|
-
active: active,
|
|
21562
21557
|
disabled: disabled,
|
|
21563
21558
|
newTab: newTab,
|
|
21564
21559
|
extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
|