@homefile/components-v2 2.8.18 → 2.8.20

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,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Stack, Text } from '@chakra-ui/react';
3
3
  export const ContactCardAddress = ({ address, city, company, state, zip, }) => {
4
- return (_jsxs(Stack, { spacing: "-1", minH: "full", children: [_jsx(Text, { variant: "address", children: company.toUpperCase() }), _jsx(Text, { variant: "address", children: address }), _jsxs(Text, { variant: "address", children: [city, ", ", state, " ", zip] })] }));
4
+ return (_jsxs(Stack, { spacing: "-1", minH: "full", children: [_jsx(Text, { variant: "address", children: company === null || company === void 0 ? void 0 : company.toUpperCase() }), _jsx(Text, { variant: "address", children: address }), _jsxs(Text, { variant: "address", children: [city, ", ", state, " ", zip] })] }));
5
5
  };
@@ -6,5 +6,5 @@ import { IconMenu, MoreHorizontal } from '..';
6
6
  export const ContactCardHeader = ({ contact, menuItems = [], }) => {
7
7
  var _a;
8
8
  const { category, title } = contact;
9
- return (_jsxs(Flex, { align: "center", justify: "space-between", children: [_jsxs(Flex, { align: "center", gap: "base", children: [_jsx(Image, { src: Contacts, boxSize: "1rem", "aria-label": (_a = t('ariaLabels.contact')) !== null && _a !== void 0 ? _a : ' ' }), _jsxs(Flex, { align: "center", gap: "base", children: [_jsx(Text, { fontSize: "xs", children: category.toUpperCase() }), title && (_jsx(Text, { fontSize: "xs", color: "gray.4", children: "|" })), _jsx(Text, { fontSize: "xs", children: title.toUpperCase() })] })] }), !!menuItems.length && (_jsx(IconMenu, { icon: _jsx(MoreHorizontal, { size: 32 }), itemForm: contact, menuItems: menuItems, disabled: menuItems.length < 1 }))] }));
9
+ return (_jsxs(Flex, { align: "center", justify: "space-between", children: [_jsxs(Flex, { align: "center", gap: "base", children: [_jsx(Image, { src: Contacts, boxSize: "1rem", "aria-label": (_a = t('ariaLabels.contact')) !== null && _a !== void 0 ? _a : ' ' }), _jsxs(Flex, { align: "center", gap: "base", children: [_jsx(Text, { fontSize: "xs", children: category === null || category === void 0 ? void 0 : category.toUpperCase() }), title && (_jsx(Text, { fontSize: "xs", color: "gray.4", children: "|" })), _jsx(Text, { fontSize: "xs", children: title === null || title === void 0 ? void 0 : title.toUpperCase() })] })] }), !!menuItems.length && (_jsx(IconMenu, { icon: _jsx(MoreHorizontal, { size: 32 }), itemForm: contact, menuItems: menuItems, disabled: menuItems.length < 1 }))] }));
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.8.18",
3
+ "version": "2.8.20",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -10,7 +10,7 @@ export const ContactCardAddress = ({
10
10
  }: ContactCardAddressI) => {
11
11
  return (
12
12
  <Stack spacing="-1" minH="full">
13
- <Text variant="address">{company.toUpperCase()}</Text>
13
+ <Text variant="address">{company?.toUpperCase()}</Text>
14
14
  <Text variant="address">{address}</Text>
15
15
  <Text variant="address">
16
16
  {city}, {state} {zip}
@@ -18,13 +18,13 @@ export const ContactCardHeader = ({
18
18
  aria-label={t('ariaLabels.contact') ?? ' '}
19
19
  />
20
20
  <Flex align="center" gap="base">
21
- <Text fontSize="xs">{category.toUpperCase()}</Text>
21
+ <Text fontSize="xs">{category?.toUpperCase()}</Text>
22
22
  {title && (
23
23
  <Text fontSize="xs" color="gray.4">
24
24
  |
25
25
  </Text>
26
26
  )}
27
- <Text fontSize="xs">{title.toUpperCase()}</Text>
27
+ <Text fontSize="xs">{title?.toUpperCase()}</Text>
28
28
  </Flex>
29
29
  </Flex>
30
30
  {!!menuItems.length && (