@thecb/components 4.1.8 → 4.1.9
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
CHANGED
|
@@ -14720,6 +14720,47 @@ var StatusUnknownIcon = function StatusUnknownIcon() {
|
|
|
14720
14720
|
}))));
|
|
14721
14721
|
};
|
|
14722
14722
|
|
|
14723
|
+
var CarrotIcon = function CarrotIcon(_ref) {
|
|
14724
|
+
var themeValues = _ref.themeValues;
|
|
14725
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
14726
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14727
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
14728
|
+
width: "10",
|
|
14729
|
+
height: "5",
|
|
14730
|
+
viewBox: "0 0 10 5"
|
|
14731
|
+
}, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
|
|
14732
|
+
id: "carrot-path-1",
|
|
14733
|
+
d: "M6.99999958 9.9999994L11.9999993 14.9999991 16.999999 9.9999994z"
|
|
14734
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
14735
|
+
fill: "none",
|
|
14736
|
+
fillRule: "evenodd",
|
|
14737
|
+
stroke: "none",
|
|
14738
|
+
strokeWidth: "1"
|
|
14739
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14740
|
+
transform: "translate(-423 -974)"
|
|
14741
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14742
|
+
transform: "translate(372 958)"
|
|
14743
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14744
|
+
transform: "translate(44 6)"
|
|
14745
|
+
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
14746
|
+
id: "carrot-mask-2",
|
|
14747
|
+
fill: "#fff"
|
|
14748
|
+
}, /*#__PURE__*/React__default.createElement("use", {
|
|
14749
|
+
xlinkHref: "#carrot-path-1"
|
|
14750
|
+
})), /*#__PURE__*/React__default.createElement("use", {
|
|
14751
|
+
fill: "#000",
|
|
14752
|
+
xlinkHref: "#carrot-path-1"
|
|
14753
|
+
}), /*#__PURE__*/React__default.createElement("g", {
|
|
14754
|
+
fill: themeValues.singleIconColor,
|
|
14755
|
+
fillRule: "nonzero",
|
|
14756
|
+
mask: "url(#carrot-mask-2)"
|
|
14757
|
+
}, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("path", {
|
|
14758
|
+
d: "M0 0H24V24H0z"
|
|
14759
|
+
}))))))));
|
|
14760
|
+
};
|
|
14761
|
+
|
|
14762
|
+
var CarrotIcon$1 = themeComponent(CarrotIcon, "Icons", fallbackValues$2, "darkMode");
|
|
14763
|
+
|
|
14723
14764
|
var color$2 = "#15749D";
|
|
14724
14765
|
var hoverColor$1 = "#116285";
|
|
14725
14766
|
var activeColor$1 = "#0E506D";
|
|
@@ -36534,9 +36575,9 @@ var fallbackValues$u = {
|
|
|
36534
36575
|
var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
36535
36576
|
var id = _ref.id,
|
|
36536
36577
|
_ref$top = _ref.top,
|
|
36537
|
-
top = _ref$top === void 0 ? "
|
|
36578
|
+
top = _ref$top === void 0 ? "115%" : _ref$top,
|
|
36538
36579
|
_ref$left = _ref.left,
|
|
36539
|
-
left = _ref$left === void 0 ? "-
|
|
36580
|
+
left = _ref$left === void 0 ? "-165%" : _ref$left,
|
|
36540
36581
|
_ref$menuContent = _ref.menuContent,
|
|
36541
36582
|
menuContent = _ref$menuContent === void 0 ? [] : _ref$menuContent,
|
|
36542
36583
|
_ref$visible = _ref.visible,
|
|
@@ -36559,7 +36600,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
|
36559
36600
|
extraStyles: "position: relative; ".concat(menuCarat),
|
|
36560
36601
|
background: themeValues.backgroundColor,
|
|
36561
36602
|
borderRadius: "5px",
|
|
36562
|
-
boxShadow: "0px
|
|
36603
|
+
boxShadow: "0px 1px 8px -1px rgba(0, 0, 0, 0.3), 0px 1px 4px 0px ".concat(themeValues.shadowColor, ", 0px 7px 32px 0px ").concat(themeValues.shadowColor),
|
|
36563
36604
|
onMouseEnter: onMouseEnter,
|
|
36564
36605
|
onMouseLeave: onMouseLeave,
|
|
36565
36606
|
onFocus: onFocus,
|
|
@@ -40674,6 +40715,7 @@ exports.Breadcrumb = Breadcrumbs;
|
|
|
40674
40715
|
exports.ButtonWithAction = ButtonWithAction;
|
|
40675
40716
|
exports.ButtonWithLink = ButtonWithLink;
|
|
40676
40717
|
exports.CalendarIcon = CalendarIcon;
|
|
40718
|
+
exports.CarrotIcon = CarrotIcon$1;
|
|
40677
40719
|
exports.Center = Center;
|
|
40678
40720
|
exports.CenterSingle = CenterSingle$1;
|
|
40679
40721
|
exports.CenterStack = CenterStack$1;
|
package/package.json
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { fallbackValues } from "./Icons.theme";
|
|
3
|
+
import { themeComponent } from "../../../util/themeUtils";
|
|
4
|
+
|
|
5
|
+
const CarrotIcon = ({ themeValues }) => {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
10
|
+
width="10"
|
|
11
|
+
height="5"
|
|
12
|
+
viewBox="0 0 10 5"
|
|
13
|
+
>
|
|
14
|
+
<defs>
|
|
15
|
+
<path
|
|
16
|
+
id="carrot-path-1"
|
|
17
|
+
d="M6.99999958 9.9999994L11.9999993 14.9999991 16.999999 9.9999994z"
|
|
18
|
+
></path>
|
|
19
|
+
</defs>
|
|
20
|
+
<g fill="none" fillRule="evenodd" stroke="none" strokeWidth="1">
|
|
21
|
+
<g transform="translate(-423 -974)">
|
|
22
|
+
<g transform="translate(372 958)">
|
|
23
|
+
<g transform="translate(44 6)">
|
|
24
|
+
<mask id="carrot-mask-2" fill="#fff">
|
|
25
|
+
<use xlinkHref="#carrot-path-1"></use>
|
|
26
|
+
</mask>
|
|
27
|
+
<use fill="#000" xlinkHref="#carrot-path-1"></use>
|
|
28
|
+
<g
|
|
29
|
+
fill={themeValues.singleIconColor}
|
|
30
|
+
fillRule="nonzero"
|
|
31
|
+
mask="url(#carrot-mask-2)"
|
|
32
|
+
>
|
|
33
|
+
<g>
|
|
34
|
+
<path d="M0 0H24V24H0z"></path>
|
|
35
|
+
</g>
|
|
36
|
+
</g>
|
|
37
|
+
</g>
|
|
38
|
+
</g>
|
|
39
|
+
</g>
|
|
40
|
+
</g>
|
|
41
|
+
</svg>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export default themeComponent(CarrotIcon, "Icons", fallbackValues, "darkMode");
|
|
@@ -39,6 +39,7 @@ import RejectedVelocityIcon from "./RejectedVelocityIcon";
|
|
|
39
39
|
import SuccessfulIcon from "./SuccessfulIcon";
|
|
40
40
|
import VoidedIcon from "./VoidedIcon";
|
|
41
41
|
import StatusUnknownIcon from "./StatusUnknownIcon";
|
|
42
|
+
import CarrotIcon from "./CarrotIcon";
|
|
42
43
|
|
|
43
44
|
export {
|
|
44
45
|
AccountsIcon,
|
|
@@ -81,5 +82,6 @@ export {
|
|
|
81
82
|
RejectedVelocityIcon,
|
|
82
83
|
SuccessfulIcon,
|
|
83
84
|
VoidedIcon,
|
|
84
|
-
StatusUnknownIcon
|
|
85
|
+
StatusUnknownIcon,
|
|
86
|
+
CarrotIcon
|
|
85
87
|
};
|
|
@@ -5,8 +5,8 @@ import { themeComponent } from "../../../util/themeUtils";
|
|
|
5
5
|
|
|
6
6
|
const NavMenuDesktop = ({
|
|
7
7
|
id,
|
|
8
|
-
top = "
|
|
9
|
-
left = "-
|
|
8
|
+
top = "115%",
|
|
9
|
+
left = "-165%",
|
|
10
10
|
menuContent = [],
|
|
11
11
|
visible = true,
|
|
12
12
|
onMouseEnter,
|
|
@@ -25,7 +25,7 @@ const NavMenuDesktop = ({
|
|
|
25
25
|
extraStyles={`position: relative; ${menuCarat}`}
|
|
26
26
|
background={themeValues.backgroundColor}
|
|
27
27
|
borderRadius="5px"
|
|
28
|
-
boxShadow={`0px
|
|
28
|
+
boxShadow={`0px 1px 8px -1px rgba(0, 0, 0, 0.3), 0px 1px 4px 0px ${themeValues.shadowColor}, 0px 7px 32px 0px ${themeValues.shadowColor}`}
|
|
29
29
|
onMouseEnter={onMouseEnter}
|
|
30
30
|
onMouseLeave={onMouseLeave}
|
|
31
31
|
onFocus={onFocus}
|