@thecb/components 10.6.4-beta.2 → 10.6.4
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 +1467 -939
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1467 -939
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/icons/icons.stories.js +2 -0
- package/src/components/atoms/layouts/Box.js +2 -0
- package/src/components/atoms/layouts/Box.styled.js +3 -1
- package/src/components/atoms/placeholder/Placeholder.js +92 -126
- package/src/components/atoms/placeholder/Placeholder.stories.js +1 -0
- package/src/components/molecules/editable-list/EditableList.stories.js +7 -2
- package/src/components/molecules/obligation/icons/AccountBillIcon.js +79 -14
- package/src/components/molecules/obligation/icons/AccountConstructionIcon.js +89 -14
- package/src/components/molecules/obligation/icons/AccountDentalIcon.js +85 -13
- package/src/components/molecules/obligation/icons/AccountElectricIcon.js +90 -13
- package/src/components/molecules/obligation/icons/AccountGarbageIcon.js +84 -14
- package/src/components/molecules/obligation/icons/AccountGasIcon.js +85 -13
- package/src/components/molecules/obligation/icons/AccountGenericIcon.js +79 -14
- package/src/components/molecules/obligation/icons/AccountMedicalIcon.js +84 -14
- package/src/components/molecules/obligation/icons/AccountWaterIcon.js +84 -14
- package/src/components/molecules/obligation/icons/PropertyApartmentIcon.js +90 -13
- package/src/components/molecules/obligation/icons/PropertyBusinessIcon.js +83 -13
- package/src/components/molecules/obligation/icons/PropertyCarIcon.js +89 -12
- package/src/components/molecules/obligation/icons/PropertyCommercialVehicleIcon.js +90 -12
- package/src/components/molecules/obligation/icons/PropertyGarageIcon.js +86 -12
- package/src/components/molecules/obligation/icons/PropertyLandIcon.js +89 -12
- package/src/components/molecules/obligation/icons/PropertyMotorcycleIcon.js +89 -12
- package/src/components/molecules/obligation/icons/PropertyPersonalIcon.js +84 -14
- package/src/components/molecules/obligation/icons/PropertyStorefrontIcon.js +90 -12
- package/src/components/molecules/obligation/icons/index.js +18 -32
- package/src/components/molecules/obligation/modules/IconModule.js +3 -9
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/molecules/.DS_Store +0 -0
- package/src/components/molecules/obligation/.DS_Store +0 -0
|
@@ -2,20 +2,98 @@ import React from "react";
|
|
|
2
2
|
|
|
3
3
|
const PropertyStorefrontIcon = () => (
|
|
4
4
|
<svg
|
|
5
|
-
width="
|
|
6
|
-
height="
|
|
7
|
-
viewBox="0 0
|
|
8
|
-
|
|
5
|
+
width="51px"
|
|
6
|
+
height="51px"
|
|
7
|
+
viewBox="0 0 81 81"
|
|
8
|
+
version="1.1"
|
|
9
9
|
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
10
11
|
>
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
<title>Profile Obligation Icon / Property - Storefront</title>
|
|
13
|
+
<defs>
|
|
14
|
+
<circle id="storefront-path-1" cx="33.5" cy="33.5" r="33.5"></circle>
|
|
15
|
+
<filter
|
|
16
|
+
x="-17.2%"
|
|
17
|
+
y="-14.2%"
|
|
18
|
+
width="134.3%"
|
|
19
|
+
height="134.3%"
|
|
20
|
+
filterUnits="objectBoundingBox"
|
|
21
|
+
id="storefront-filter-2"
|
|
22
|
+
>
|
|
23
|
+
<feOffset
|
|
24
|
+
dx="0"
|
|
25
|
+
dy="-4"
|
|
26
|
+
in="SourceAlpha"
|
|
27
|
+
result="shadowOffsetOuter1"
|
|
28
|
+
></feOffset>
|
|
29
|
+
<feColorMatrix
|
|
30
|
+
values="0 0 0 0 0.964705882 0 0 0 0 0.964705882 0 0 0 0 0.976470588 0 0 0 1 0"
|
|
31
|
+
type="matrix"
|
|
32
|
+
in="shadowOffsetOuter1"
|
|
33
|
+
result="shadowMatrixOuter1"
|
|
34
|
+
></feColorMatrix>
|
|
35
|
+
<feOffset
|
|
36
|
+
dx="0"
|
|
37
|
+
dy="2"
|
|
38
|
+
in="SourceAlpha"
|
|
39
|
+
result="shadowOffsetOuter2"
|
|
40
|
+
></feOffset>
|
|
41
|
+
<feGaussianBlur
|
|
42
|
+
stdDeviation="3.5"
|
|
43
|
+
in="shadowOffsetOuter2"
|
|
44
|
+
result="shadowBlurOuter2"
|
|
45
|
+
></feGaussianBlur>
|
|
46
|
+
<feColorMatrix
|
|
47
|
+
values="0 0 0 0 0.161570617 0 0 0 0 0.163300979 0 0 0 0 0.199501812 0 0 0 0.3 0"
|
|
48
|
+
type="matrix"
|
|
49
|
+
in="shadowBlurOuter2"
|
|
50
|
+
result="shadowMatrixOuter2"
|
|
51
|
+
></feColorMatrix>
|
|
52
|
+
<feMerge>
|
|
53
|
+
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
|
|
54
|
+
<feMergeNode in="shadowMatrixOuter2"></feMergeNode>
|
|
55
|
+
</feMerge>
|
|
56
|
+
</filter>
|
|
57
|
+
</defs>
|
|
58
|
+
<g
|
|
59
|
+
id="storefront-Profile-/-Icons"
|
|
60
|
+
stroke="none"
|
|
61
|
+
strokeWidth="1"
|
|
62
|
+
fill="none"
|
|
63
|
+
fillRule="evenodd"
|
|
64
|
+
>
|
|
65
|
+
<g id="Outlined" transform="translate(7.000000, -341.000000)">
|
|
66
|
+
<g
|
|
67
|
+
id="Potentail-future-property"
|
|
68
|
+
transform="translate(0.000000, 231.000000)"
|
|
69
|
+
>
|
|
70
|
+
<g
|
|
71
|
+
id="storefront-Profile-Obligation-Icon-/-Property---Storefront"
|
|
72
|
+
transform="translate(0.000000, 115.000000)"
|
|
73
|
+
>
|
|
74
|
+
<g id="Oval-Copy-4">
|
|
75
|
+
<use
|
|
76
|
+
fill="black"
|
|
77
|
+
fillOpacity="1"
|
|
78
|
+
filter="url(#storefront-filter-2)"
|
|
79
|
+
xlinkHref="#storefront-path-1"
|
|
80
|
+
></use>
|
|
81
|
+
<use
|
|
82
|
+
fill="#FFFFFF"
|
|
83
|
+
fillRule="evenodd"
|
|
84
|
+
xlinkHref="#storefront-path-1"
|
|
85
|
+
></use>
|
|
86
|
+
</g>
|
|
87
|
+
<path
|
|
88
|
+
d="M51.9999094,30.0000381 C52.4999082,30.0000381 52.9374072,29.8333716 53.3124063,29.5000393 C53.6874054,29.1667071 53.9061549,28.7604581 53.9686547,28.2812922 C54.0311546,27.8021264 53.9374048,27.3333775 53.6874054,26.8750456 L53.6874054,26.8750456 L48.3124182,18.8750647 C47.9374191,18.291733 47.3957534,18.0000668 46.6874221,18.0000668 L46.6874221,18.0000668 L21.3124826,18.0000668 C20.6041512,18.0000668 20.0624855,18.291733 19.6874864,18.8750647 L19.6874864,18.8750647 L14.3749991,26.8750456 C14.0833328,27.3333775 13.9687501,27.8021264 14.0312499,28.2812922 C14.0937498,28.7604581 14.3124993,29.1667071 14.6874984,29.5000393 C15.0624975,29.8333716 15.4999964,30.0000381 15.9999952,30.0000381 L15.9999952,30.0000381 L51.9999094,30.0000381 Z M35.9999475,49.9999905 C36.5416132,49.9999905 37.0103621,49.802074 37.4061942,49.4062419 C37.8020263,49.0104098 37.9999428,48.5416609 37.9999428,47.9999952 L37.9999428,47.9999952 L37.9999428,32.0000334 L33.9999523,32.0000334 L33.9999523,42.0000095 L21.9999905,42.0000095 L21.9999905,32.0000334 L17.9999905,32.0000334 L17.9999905,47.9999952 C17.9999905,48.5416609 18.197907,49.0104098 18.593739,49.4062419 C18.9895711,49.802074 19.45832,49.9999905 19.9999905,49.9999905 L19.9999905,49.9999905 L35.9999475,49.9999905 Z M48.9999237,49.9999905 C49.2915828,49.9999905 49.5311653,49.9062407 49.7186648,49.7187411 C49.9061644,49.5312416 49.9999237,49.2916591 49.9999237,48.9999928 L49.9999237,48.9999928 L49.9999237,32.0000334 L45.9999237,32.0000334 L45.9999237,48.9999928 C45.9999237,49.2916591 46.0936735,49.5312416 46.281173,49.7187411 C46.4686726,49.9062407 46.708255,49.9999905 46.9999237,49.9999905 L46.9999237,49.9999905 L48.9999237,49.9999905 Z"
|
|
89
|
+
id="s"
|
|
90
|
+
fill="#292A33"
|
|
91
|
+
fillRule="nonzero"
|
|
92
|
+
></path>
|
|
93
|
+
</g>
|
|
94
|
+
</g>
|
|
95
|
+
</g>
|
|
96
|
+
</g>
|
|
19
97
|
</svg>
|
|
20
98
|
);
|
|
21
99
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
1
|
import AccountBillIcon from "./AccountBillIcon";
|
|
4
2
|
import AccountGenericIcon from "./AccountGenericIcon";
|
|
5
3
|
import AccountConstructionIcon from "./AccountConstructionIcon";
|
|
@@ -41,34 +39,22 @@ const PROPERTIES_COMMERCIAL_AUTO_ICON = "PROPERTIES_COMMERCIAL_AUTO";
|
|
|
41
39
|
const MISC_BILL_ICON = "MISC_SINGLE_BILL";
|
|
42
40
|
|
|
43
41
|
export const iconsMap = {
|
|
44
|
-
[ACCOUNTS_GENERIC_ICON]:
|
|
45
|
-
[ACCOUNTS_CONSTRUCTION_ICON]:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
[
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
<PropertyStorefrontIcon color={color} />
|
|
63
|
-
),
|
|
64
|
-
[PROPERTIES_APARTMENT_ICON]: color => <PropertyApartmentIcon color={color} />,
|
|
65
|
-
[PROPERTIES_LAND_ICON]: color => <PropertyLandIcon color={color} />,
|
|
66
|
-
[PROPERTIES_CAR_ICON]: color => <PropertyCarIcon color={color} />,
|
|
67
|
-
[PROPERTIES_MOTORCYCLE_ICON]: color => (
|
|
68
|
-
<PropertyMotorcycleIcon color={color} />
|
|
69
|
-
),
|
|
70
|
-
[PROPERTIES_COMMERCIAL_AUTO_ICON]: color => (
|
|
71
|
-
<PropertyCommercialVehicleIcon color={color} />
|
|
72
|
-
),
|
|
73
|
-
[MISC_BILL_ICON]: color => <AccountBillIcon color={color} />
|
|
42
|
+
[ACCOUNTS_GENERIC_ICON]: AccountGenericIcon,
|
|
43
|
+
[ACCOUNTS_CONSTRUCTION_ICON]: AccountConstructionIcon,
|
|
44
|
+
[ACCOUNTS_HEALTH_ICON]: AccountMedicalIcon,
|
|
45
|
+
[ACCOUNTS_DENTAL_ICON]: AccountDentalIcon,
|
|
46
|
+
[ACCOUNTS_UTILITY_ELECTRIC_ICON]: AccountElectricIcon,
|
|
47
|
+
[ACCOUNTS_UTILITY_GARBAGE_ICON]: AccountGarbageIcon,
|
|
48
|
+
[ACCOUNTS_UTILITY_GAS_ICON]: AccountGasIcon,
|
|
49
|
+
[ACCOUNTS_UTILITY_WATER_ICON]: AccountWaterIcon,
|
|
50
|
+
[PROPERTIES_PERSONAL_ICON]: PropertyPersonalIcon,
|
|
51
|
+
[PROPERTIES_GARAGE_ICON]: PropertyGarageIcon,
|
|
52
|
+
[PROPERTIES_BUSINESS_ICON]: PropertyBusinessIcon,
|
|
53
|
+
[PROPERTIES_STOREFRONT_ICON]: PropertyStorefrontIcon,
|
|
54
|
+
[PROPERTIES_APARTMENT_ICON]: PropertyApartmentIcon,
|
|
55
|
+
[PROPERTIES_LAND_ICON]: PropertyLandIcon,
|
|
56
|
+
[PROPERTIES_CAR_ICON]: PropertyCarIcon,
|
|
57
|
+
[PROPERTIES_MOTORCYCLE_ICON]: PropertyMotorcycleIcon,
|
|
58
|
+
[PROPERTIES_COMMERCIAL_AUTO_ICON]: PropertyCommercialVehicleIcon,
|
|
59
|
+
[MISC_BILL_ICON]: AccountBillIcon
|
|
74
60
|
};
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { iconsMap } from "../icons";
|
|
3
3
|
import { Box, Cluster } from "../../../atoms/layouts";
|
|
4
|
-
import { themeComponent } from "../../../../util/themeUtils";
|
|
5
|
-
import { fallbackValues } from "../../../atoms/icons/Icons.theme";
|
|
6
|
-
|
|
7
|
-
// Uses the theme values (singleIconColor) for the other icons, located in /atoms/icons
|
|
8
4
|
|
|
9
5
|
const IconsModule = ({
|
|
10
6
|
icon,
|
|
11
7
|
iconDefault,
|
|
12
8
|
configIconMap,
|
|
13
9
|
iconValue,
|
|
14
|
-
customAttributes
|
|
15
|
-
themeValues
|
|
10
|
+
customAttributes
|
|
16
11
|
}) => {
|
|
17
|
-
console.log("theme values is", themeValues);
|
|
18
12
|
let Icon;
|
|
19
13
|
if (typeof icon === "object") {
|
|
20
14
|
const iconID = customAttributes?.[iconValue];
|
|
@@ -26,10 +20,10 @@ const IconsModule = ({
|
|
|
26
20
|
return (
|
|
27
21
|
<Box padding="0 1rem 0 0">
|
|
28
22
|
<Cluster justify="center" align="center">
|
|
29
|
-
<Icon
|
|
23
|
+
<Icon />
|
|
30
24
|
</Cluster>
|
|
31
25
|
</Box>
|
|
32
26
|
);
|
|
33
27
|
};
|
|
34
28
|
|
|
35
|
-
export default
|
|
29
|
+
export default IconsModule;
|
package/src/.DS_Store
DELETED
|
Binary file
|
package/src/components/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|