@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.
Files changed (35) hide show
  1. package/dist/index.cjs.js +1467 -939
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1467 -939
  4. package/dist/index.esm.js.map +1 -1
  5. package/package.json +1 -1
  6. package/src/components/atoms/icons/icons.stories.js +2 -0
  7. package/src/components/atoms/layouts/Box.js +2 -0
  8. package/src/components/atoms/layouts/Box.styled.js +3 -1
  9. package/src/components/atoms/placeholder/Placeholder.js +92 -126
  10. package/src/components/atoms/placeholder/Placeholder.stories.js +1 -0
  11. package/src/components/molecules/editable-list/EditableList.stories.js +7 -2
  12. package/src/components/molecules/obligation/icons/AccountBillIcon.js +79 -14
  13. package/src/components/molecules/obligation/icons/AccountConstructionIcon.js +89 -14
  14. package/src/components/molecules/obligation/icons/AccountDentalIcon.js +85 -13
  15. package/src/components/molecules/obligation/icons/AccountElectricIcon.js +90 -13
  16. package/src/components/molecules/obligation/icons/AccountGarbageIcon.js +84 -14
  17. package/src/components/molecules/obligation/icons/AccountGasIcon.js +85 -13
  18. package/src/components/molecules/obligation/icons/AccountGenericIcon.js +79 -14
  19. package/src/components/molecules/obligation/icons/AccountMedicalIcon.js +84 -14
  20. package/src/components/molecules/obligation/icons/AccountWaterIcon.js +84 -14
  21. package/src/components/molecules/obligation/icons/PropertyApartmentIcon.js +90 -13
  22. package/src/components/molecules/obligation/icons/PropertyBusinessIcon.js +83 -13
  23. package/src/components/molecules/obligation/icons/PropertyCarIcon.js +89 -12
  24. package/src/components/molecules/obligation/icons/PropertyCommercialVehicleIcon.js +90 -12
  25. package/src/components/molecules/obligation/icons/PropertyGarageIcon.js +86 -12
  26. package/src/components/molecules/obligation/icons/PropertyLandIcon.js +89 -12
  27. package/src/components/molecules/obligation/icons/PropertyMotorcycleIcon.js +89 -12
  28. package/src/components/molecules/obligation/icons/PropertyPersonalIcon.js +84 -14
  29. package/src/components/molecules/obligation/icons/PropertyStorefrontIcon.js +90 -12
  30. package/src/components/molecules/obligation/icons/index.js +18 -32
  31. package/src/components/molecules/obligation/modules/IconModule.js +3 -9
  32. package/src/.DS_Store +0 -0
  33. package/src/components/.DS_Store +0 -0
  34. package/src/components/molecules/.DS_Store +0 -0
  35. 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="48"
6
- height="48"
7
- viewBox="0 0 48 48"
8
- fill="none"
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
- <path
12
- d="M0 18C0 9.51472 0 5.27208 2.63604 2.63604C5.27208 0 9.51472 0 18 0H30C38.4853 0 42.7279 0 45.364 2.63604C48 5.27208 48 9.51472 48 18V30C48 38.4853 48 42.7279 45.364 45.364C42.7279 48 38.4853 48 30 48H18C9.51472 48 5.27208 48 2.63604 45.364C0 42.7279 0 38.4853 0 30V18Z"
13
- fill="#3B5BDB"
14
- />
15
- <path
16
- d="M36.5244 20.7878C36.8705 20.7878 37.1734 20.6724 37.4329 20.4417C37.6925 20.2109 37.8439 19.9297 37.8872 19.5981C37.9305 19.2664 37.8656 18.9419 37.6925 18.6247L33.972 13.0872C33.7124 12.6834 33.3375 12.4815 32.8472 12.4815H15.2829C14.7926 12.4815 14.4177 12.6834 14.1581 13.0872L10.4809 18.6247C10.279 18.9419 10.1997 19.2664 10.243 19.5981C10.2862 19.9297 10.4376 20.2109 10.6972 20.4417C10.9568 20.6724 11.2596 20.7878 11.6057 20.7878H36.5244ZM25.4495 34.6315C25.8244 34.6315 26.1488 34.4945 26.4228 34.2205C26.6968 33.9465 26.8338 33.6221 26.8338 33.2471V22.1721H24.0651V29.094H15.7588V22.1721H12.9901V33.2471C12.9901 33.6221 13.1271 33.9465 13.4011 34.2205C13.6751 34.4945 13.9995 34.6315 14.3745 34.6315H25.4495ZM34.4479 34.6315C34.6498 34.6315 34.8156 34.5666 34.9454 34.4368C35.0752 34.307 35.1401 34.1412 35.1401 33.9393V22.1721H32.3713V33.9393C32.3713 34.1412 32.4362 34.307 32.566 34.4368C32.6958 34.5666 32.8616 34.6315 33.0635 34.6315H34.4479Z"
17
- fill="#FEFEFE"
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]: color => <AccountGenericIcon color={color} />,
45
- [ACCOUNTS_CONSTRUCTION_ICON]: color => (
46
- <AccountConstructionIcon color={color} />
47
- ),
48
- [ACCOUNTS_HEALTH_ICON]: color => <AccountMedicalIcon color={color} />,
49
- [ACCOUNTS_DENTAL_ICON]: color => <AccountDentalIcon color={color} />,
50
- [ACCOUNTS_UTILITY_ELECTRIC_ICON]: color => (
51
- <AccountElectricIcon color={color} />
52
- ),
53
- [ACCOUNTS_UTILITY_GARBAGE_ICON]: color => (
54
- <AccountGarbageIcon color={color} />
55
- ),
56
- [ACCOUNTS_UTILITY_GAS_ICON]: color => <AccountGasIcon color={color} />,
57
- [ACCOUNTS_UTILITY_WATER_ICON]: color => <AccountWaterIcon color={color} />,
58
- [PROPERTIES_PERSONAL_ICON]: color => <PropertyPersonalIcon color={color} />,
59
- [PROPERTIES_GARAGE_ICON]: color => <PropertyGarageIcon color={color} />,
60
- [PROPERTIES_BUSINESS_ICON]: color => <PropertyBusinessIcon color={color} />,
61
- [PROPERTIES_STOREFRONT_ICON]: color => (
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 color={themeValues.singleIconColor} />
23
+ <Icon />
30
24
  </Cluster>
31
25
  </Box>
32
26
  );
33
27
  };
34
28
 
35
- export default themeComponent(IconsModule, "Icon", fallbackValues, "primary");
29
+ export default IconsModule;
package/src/.DS_Store DELETED
Binary file
Binary file
Binary file