@loomhq/lens 11.15.1 → 11.15.2
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.
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const IconButtonBox: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, IconButtonBoxProps, object>;
|
|
3
|
-
declare const IconButton: ({ altText, icon, onClick, iconColor, isActive, isDisabled, size, ...props }: IconButtonProps & React.ComponentProps<typeof IconButtonBox>) => React.JSX.Element;
|
|
3
|
+
declare const IconButton: ({ altText, icon, onClick, iconColor, backgroundColor, isActive, isDisabled, size, ...props }: IconButtonProps & React.ComponentProps<typeof IconButtonBox>) => React.JSX.Element;
|
|
4
4
|
type IconButtonProps = {
|
|
5
5
|
altText: string;
|
|
6
6
|
icon?: React.ReactNode;
|
|
7
7
|
onClick?: React.ReactEventHandler;
|
|
8
8
|
iconColor?: string;
|
|
9
|
+
backgroundColor?: string;
|
|
9
10
|
isActive?: boolean;
|
|
10
11
|
isDisabled?: boolean;
|
|
11
12
|
size?: 'small' | 'medium' | 'large';
|
|
@@ -13,5 +14,6 @@ type IconButtonProps = {
|
|
|
13
14
|
type IconButtonBoxProps = {
|
|
14
15
|
size?: 'small' | 'medium';
|
|
15
16
|
isActive?: boolean;
|
|
17
|
+
backgroundColor?: string;
|
|
16
18
|
};
|
|
17
19
|
export default IconButton;
|
package/dist/icons/index.js
CHANGED
|
@@ -4360,45 +4360,29 @@ var SvgTask = () => /* @__PURE__ */ React191.createElement("svg", { viewBox: "0
|
|
|
4360
4360
|
|
|
4361
4361
|
// src/components/icon/available-icons/thumbs-down.tsx
|
|
4362
4362
|
import React192 from "react";
|
|
4363
|
-
var SvgThumbsDown = () => /* @__PURE__ */ React192.createElement(
|
|
4364
|
-
"
|
|
4363
|
+
var SvgThumbsDown = () => /* @__PURE__ */ React192.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }, /* @__PURE__ */ React192.createElement(
|
|
4364
|
+
"path",
|
|
4365
4365
|
{
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
d: "M12.2574 9.65011L9.65746 15.5C9.1403 15.5 8.64432 15.2946 8.27863 14.9289C7.91294 14.5632 7.7075 14.0672 7.7075 13.55V10.9501H4.02856C3.84013 10.9522 3.65348 10.9134 3.48155 10.8362C3.30963 10.759 3.15653 10.6454 3.03287 10.5032C2.90922 10.361 2.81796 10.1936 2.76542 10.0126C2.71287 9.83166 2.70031 9.64142 2.72859 9.45511L3.62557 3.60521C3.67258 3.29523 3.83004 3.01268 4.06893 2.80963C4.30781 2.60657 4.61204 2.49669 4.92555 2.50023H12.2574M12.2574 9.65011V2.50023M12.2574 9.65011H13.9929C14.3608 9.65661 14.7182 9.52782 14.9974 9.28818C15.2766 9.04854 15.458 8.71473 15.5074 8.35013V3.80021C15.458 3.43561 15.2766 3.1018 14.9974 2.86216C14.7182 2.62252 14.3608 2.49373 13.9929 2.50023H12.2574",
|
|
4374
|
-
stroke: "#111019",
|
|
4375
|
-
strokeWidth: "1.5",
|
|
4376
|
-
strokeLinecap: "round",
|
|
4377
|
-
strokeLinejoin: "round"
|
|
4378
|
-
}
|
|
4379
|
-
)
|
|
4380
|
-
);
|
|
4366
|
+
d: "M12.2574 9.65011L9.65746 15.5C9.1403 15.5 8.64432 15.2946 8.27863 14.9289C7.91294 14.5632 7.7075 14.0672 7.7075 13.55V10.9501H4.02856C3.84013 10.9522 3.65348 10.9134 3.48155 10.8362C3.30963 10.759 3.15653 10.6454 3.03287 10.5032C2.90922 10.361 2.81796 10.1936 2.76542 10.0126C2.71287 9.83166 2.70031 9.64142 2.72859 9.45511L3.62557 3.60521C3.67258 3.29523 3.83004 3.01268 4.06893 2.80963C4.30781 2.60657 4.61204 2.49669 4.92555 2.50023H12.2574M12.2574 9.65011V2.50023M12.2574 9.65011H13.9929C14.3608 9.65661 14.7182 9.52782 14.9974 9.28818C15.2766 9.04854 15.458 8.71473 15.5074 8.35013V3.80021C15.458 3.43561 15.2766 3.1018 14.9974 2.86216C14.7182 2.62252 14.3608 2.49373 13.9929 2.50023H12.2574",
|
|
4367
|
+
stroke: "currentColor",
|
|
4368
|
+
strokeWidth: "1.5",
|
|
4369
|
+
strokeLinecap: "round",
|
|
4370
|
+
strokeLinejoin: "round"
|
|
4371
|
+
}
|
|
4372
|
+
));
|
|
4381
4373
|
|
|
4382
4374
|
// src/components/icon/available-icons/thumbs-up.tsx
|
|
4383
4375
|
import React193 from "react";
|
|
4384
|
-
var SvgThumbsUp = () => /* @__PURE__ */ React193.createElement(
|
|
4385
|
-
"
|
|
4376
|
+
var SvgThumbsUp = () => /* @__PURE__ */ React193.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }, /* @__PURE__ */ React193.createElement(
|
|
4377
|
+
"path",
|
|
4386
4378
|
{
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
d: "M5.74998 8.34996L8.34996 2.5C8.86713 2.5 9.36312 2.70544 9.72881 3.07114C10.0945 3.43683 10.3 3.93282 10.3 4.44999V7.04997H13.9789C14.1674 7.04784 14.354 7.0867 14.5259 7.16386C14.6979 7.24103 14.851 7.35465 14.9746 7.49685C15.0983 7.63906 15.1895 7.80645 15.2421 7.98743C15.2946 8.16841 15.3072 8.35864 15.2789 8.54496L14.3819 14.3949C14.3349 14.7049 14.1775 14.9875 13.9386 15.1905C13.6997 15.3936 13.3954 15.5035 13.0819 15.4999H5.74998M5.74998 8.34996V15.4999M5.74998 8.34996H3.79999C3.45521 8.34996 3.12455 8.48693 2.88076 8.73072C2.63696 8.97452 2.5 9.30517 2.5 9.64995V14.1999C2.5 14.5447 2.63696 14.8754 2.88076 15.1192C3.12455 15.363 3.45521 15.4999 3.79999 15.4999H5.74998",
|
|
4395
|
-
stroke: "#111019",
|
|
4396
|
-
strokeWidth: "1.5",
|
|
4397
|
-
strokeLinecap: "round",
|
|
4398
|
-
strokeLinejoin: "round"
|
|
4399
|
-
}
|
|
4400
|
-
)
|
|
4401
|
-
);
|
|
4379
|
+
d: "M5.74998 8.34996L8.34996 2.5C8.86713 2.5 9.36312 2.70544 9.72881 3.07114C10.0945 3.43683 10.3 3.93282 10.3 4.44999V7.04997H13.9789C14.1674 7.04784 14.354 7.0867 14.5259 7.16386C14.6979 7.24103 14.851 7.35465 14.9746 7.49685C15.0983 7.63906 15.1895 7.80645 15.2421 7.98743C15.2946 8.16841 15.3072 8.35864 15.2789 8.54496L14.3819 14.3949C14.3349 14.7049 14.1775 14.9875 13.9386 15.1905C13.6997 15.3936 13.3954 15.5035 13.0819 15.4999H5.74998M5.74998 8.34996V15.4999M5.74998 8.34996H3.79999C3.45521 8.34996 3.12455 8.48693 2.88076 8.73072C2.63696 8.97452 2.5 9.30517 2.5 9.64995V14.1999C2.5 14.5447 2.63696 14.8754 2.88076 15.1192C3.12455 15.363 3.45521 15.4999 3.79999 15.4999H5.74998",
|
|
4380
|
+
stroke: "currentColor",
|
|
4381
|
+
strokeWidth: "1.5",
|
|
4382
|
+
strokeLinecap: "round",
|
|
4383
|
+
strokeLinejoin: "round"
|
|
4384
|
+
}
|
|
4385
|
+
));
|
|
4402
4386
|
|
|
4403
4387
|
// src/components/icon/available-icons/timer.tsx
|
|
4404
4388
|
import * as React194 from "react";
|
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
// src/components/icon/available-icons/thumbs-down.tsx
|
|
2
2
|
import React from "react";
|
|
3
|
-
var SvgThumbsDown = () => /* @__PURE__ */ React.createElement(
|
|
4
|
-
"
|
|
3
|
+
var SvgThumbsDown = () => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }, /* @__PURE__ */ React.createElement(
|
|
4
|
+
"path",
|
|
5
5
|
{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
d: "M12.2574 9.65011L9.65746 15.5C9.1403 15.5 8.64432 15.2946 8.27863 14.9289C7.91294 14.5632 7.7075 14.0672 7.7075 13.55V10.9501H4.02856C3.84013 10.9522 3.65348 10.9134 3.48155 10.8362C3.30963 10.759 3.15653 10.6454 3.03287 10.5032C2.90922 10.361 2.81796 10.1936 2.76542 10.0126C2.71287 9.83166 2.70031 9.64142 2.72859 9.45511L3.62557 3.60521C3.67258 3.29523 3.83004 3.01268 4.06893 2.80963C4.30781 2.60657 4.61204 2.49669 4.92555 2.50023H12.2574M12.2574 9.65011V2.50023M12.2574 9.65011H13.9929C14.3608 9.65661 14.7182 9.52782 14.9974 9.28818C15.2766 9.04854 15.458 8.71473 15.5074 8.35013V3.80021C15.458 3.43561 15.2766 3.1018 14.9974 2.86216C14.7182 2.62252 14.3608 2.49373 13.9929 2.50023H12.2574",
|
|
14
|
-
stroke: "#111019",
|
|
15
|
-
strokeWidth: "1.5",
|
|
16
|
-
strokeLinecap: "round",
|
|
17
|
-
strokeLinejoin: "round"
|
|
18
|
-
}
|
|
19
|
-
)
|
|
20
|
-
);
|
|
6
|
+
d: "M12.2574 9.65011L9.65746 15.5C9.1403 15.5 8.64432 15.2946 8.27863 14.9289C7.91294 14.5632 7.7075 14.0672 7.7075 13.55V10.9501H4.02856C3.84013 10.9522 3.65348 10.9134 3.48155 10.8362C3.30963 10.759 3.15653 10.6454 3.03287 10.5032C2.90922 10.361 2.81796 10.1936 2.76542 10.0126C2.71287 9.83166 2.70031 9.64142 2.72859 9.45511L3.62557 3.60521C3.67258 3.29523 3.83004 3.01268 4.06893 2.80963C4.30781 2.60657 4.61204 2.49669 4.92555 2.50023H12.2574M12.2574 9.65011V2.50023M12.2574 9.65011H13.9929C14.3608 9.65661 14.7182 9.52782 14.9974 9.28818C15.2766 9.04854 15.458 8.71473 15.5074 8.35013V3.80021C15.458 3.43561 15.2766 3.1018 14.9974 2.86216C14.7182 2.62252 14.3608 2.49373 13.9929 2.50023H12.2574",
|
|
7
|
+
stroke: "currentColor",
|
|
8
|
+
strokeWidth: "1.5",
|
|
9
|
+
strokeLinecap: "round",
|
|
10
|
+
strokeLinejoin: "round"
|
|
11
|
+
}
|
|
12
|
+
));
|
|
21
13
|
export {
|
|
22
14
|
SvgThumbsDown
|
|
23
15
|
};
|
package/dist/icons/thumbs-up.js
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
// src/components/icon/available-icons/thumbs-up.tsx
|
|
2
2
|
import React from "react";
|
|
3
|
-
var SvgThumbsUp = () => /* @__PURE__ */ React.createElement(
|
|
4
|
-
"
|
|
3
|
+
var SvgThumbsUp = () => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }, /* @__PURE__ */ React.createElement(
|
|
4
|
+
"path",
|
|
5
5
|
{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
d: "M5.74998 8.34996L8.34996 2.5C8.86713 2.5 9.36312 2.70544 9.72881 3.07114C10.0945 3.43683 10.3 3.93282 10.3 4.44999V7.04997H13.9789C14.1674 7.04784 14.354 7.0867 14.5259 7.16386C14.6979 7.24103 14.851 7.35465 14.9746 7.49685C15.0983 7.63906 15.1895 7.80645 15.2421 7.98743C15.2946 8.16841 15.3072 8.35864 15.2789 8.54496L14.3819 14.3949C14.3349 14.7049 14.1775 14.9875 13.9386 15.1905C13.6997 15.3936 13.3954 15.5035 13.0819 15.4999H5.74998M5.74998 8.34996V15.4999M5.74998 8.34996H3.79999C3.45521 8.34996 3.12455 8.48693 2.88076 8.73072C2.63696 8.97452 2.5 9.30517 2.5 9.64995V14.1999C2.5 14.5447 2.63696 14.8754 2.88076 15.1192C3.12455 15.363 3.45521 15.4999 3.79999 15.4999H5.74998",
|
|
14
|
-
stroke: "#111019",
|
|
15
|
-
strokeWidth: "1.5",
|
|
16
|
-
strokeLinecap: "round",
|
|
17
|
-
strokeLinejoin: "round"
|
|
18
|
-
}
|
|
19
|
-
)
|
|
20
|
-
);
|
|
6
|
+
d: "M5.74998 8.34996L8.34996 2.5C8.86713 2.5 9.36312 2.70544 9.72881 3.07114C10.0945 3.43683 10.3 3.93282 10.3 4.44999V7.04997H13.9789C14.1674 7.04784 14.354 7.0867 14.5259 7.16386C14.6979 7.24103 14.851 7.35465 14.9746 7.49685C15.0983 7.63906 15.1895 7.80645 15.2421 7.98743C15.2946 8.16841 15.3072 8.35864 15.2789 8.54496L14.3819 14.3949C14.3349 14.7049 14.1775 14.9875 13.9386 15.1905C13.6997 15.3936 13.3954 15.5035 13.0819 15.4999H5.74998M5.74998 8.34996V15.4999M5.74998 8.34996H3.79999C3.45521 8.34996 3.12455 8.48693 2.88076 8.73072C2.63696 8.97452 2.5 9.30517 2.5 9.64995V14.1999C2.5 14.5447 2.63696 14.8754 2.88076 15.1192C3.12455 15.363 3.45521 15.4999 3.79999 15.4999H5.74998",
|
|
7
|
+
stroke: "currentColor",
|
|
8
|
+
strokeWidth: "1.5",
|
|
9
|
+
strokeLinecap: "round",
|
|
10
|
+
strokeLinejoin: "round"
|
|
11
|
+
}
|
|
12
|
+
));
|
|
21
13
|
export {
|
|
22
14
|
SvgThumbsUp
|
|
23
15
|
};
|
package/dist/index.js
CHANGED
|
@@ -2505,7 +2505,9 @@ var sizeStyles = {
|
|
|
2505
2505
|
}
|
|
2506
2506
|
};
|
|
2507
2507
|
var IconButtonBox = styled13.button`
|
|
2508
|
-
background-color: ${(props) =>
|
|
2508
|
+
background-color: ${(props) => getColorValue(
|
|
2509
|
+
props.isActive ? "backgroundActive" : props.backgroundColor
|
|
2510
|
+
) || "transparent"};
|
|
2509
2511
|
border: none;
|
|
2510
2512
|
appearance: none;
|
|
2511
2513
|
cursor: pointer;
|
|
@@ -2561,6 +2563,7 @@ var IconButton = (_a) => {
|
|
|
2561
2563
|
icon,
|
|
2562
2564
|
onClick,
|
|
2563
2565
|
iconColor = "body",
|
|
2566
|
+
backgroundColor,
|
|
2564
2567
|
isActive,
|
|
2565
2568
|
isDisabled,
|
|
2566
2569
|
size = "medium"
|
|
@@ -2569,6 +2572,7 @@ var IconButton = (_a) => {
|
|
|
2569
2572
|
"icon",
|
|
2570
2573
|
"onClick",
|
|
2571
2574
|
"iconColor",
|
|
2575
|
+
"backgroundColor",
|
|
2572
2576
|
"isActive",
|
|
2573
2577
|
"isDisabled",
|
|
2574
2578
|
"size"
|
|
@@ -2580,7 +2584,8 @@ var IconButton = (_a) => {
|
|
|
2580
2584
|
onClick,
|
|
2581
2585
|
isActive,
|
|
2582
2586
|
disabled: isDisabled,
|
|
2583
|
-
size
|
|
2587
|
+
size,
|
|
2588
|
+
backgroundColor
|
|
2584
2589
|
}, props),
|
|
2585
2590
|
/* @__PURE__ */ React16.createElement(
|
|
2586
2591
|
icon_default,
|