@homefile/components-v2 2.8.52 → 2.8.54

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.
@@ -3,8 +3,8 @@ import { t } from 'i18next';
3
3
  import { AspectRatio, Flex, Image, Text } from '@chakra-ui/react';
4
4
  import { TextBadge } from '..';
5
5
  export const InboxCard = ({ box, onClick }) => {
6
- const { image, name, newMessages = 0, totalMessages } = box;
6
+ const { image, name, newMessages = 0, totalMessages, id } = box;
7
7
  const hasNewMessages = newMessages > 0;
8
8
  const message = `${newMessages} ${t('badges.new')}`;
9
- return (_jsxs(Flex, { as: "button", align: "center", justify: "space-between", px: "base", py: "6", bg: "neutral.white", transition: "background-color 0.2s", _hover: { bg: 'lightGreen.1' }, onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(name), children: [_jsxs(Flex, { align: "center", gap: "base", children: [_jsx(AspectRatio, { ratio: 1, w: "34px", h: "auto", children: _jsx(Image, { src: image, alt: name }) }), _jsx(Text, { children: name })] }), _jsxs(Flex, { align: "center", gap: "6", children: [hasNewMessages && (_jsx(TextBadge, { text: message, showAnimation: false, bgColor: "violet.1" })), _jsx(Text, { fontSize: "30px", fontWeight: "medium", color: "blue.2", children: totalMessages })] })] }));
9
+ return (_jsxs(Flex, { as: "button", align: "center", justify: "space-between", px: "base", py: "6", bg: "neutral.white", transition: "background-color 0.2s", _hover: { bg: 'lightGreen.1' }, onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(name), id: id, children: [_jsxs(Flex, { align: "center", gap: "base", children: [_jsx(AspectRatio, { ratio: 1, w: "34px", h: "auto", children: _jsx(Image, { src: image, alt: name }) }), _jsx(Text, { children: name })] }), _jsxs(Flex, { align: "center", gap: "6", children: [hasNewMessages && (_jsx(TextBadge, { text: message, showAnimation: false, bgColor: "violet.1" })), _jsx(Text, { fontSize: "30px", fontWeight: "medium", color: "blue.2", children: totalMessages })] })] }));
10
10
  };
@@ -3,5 +3,5 @@ import { t } from 'i18next';
3
3
  import { AspectRatio, Flex, Text, Image, chakra } from '@chakra-ui/react';
4
4
  import { IA } from '../../assets/images';
5
5
  export const InboxForwardBanner = () => {
6
- return (_jsxs(Flex, { p: "base", gap: "base", align: "center", bg: "lightBlue.2", children: [_jsx(AspectRatio, { ratio: 1, minW: "35px", h: "auto", children: _jsx(Image, { src: IA, alt: "IA" }) }), _jsxs(Text, { variant: "home", lineHeight: "1", children: [t('inbox.forwardTo'), _jsx(chakra.span, { fontFamily: "secondary", fontSize: "sm", lineHeight: "1", color: "neutral.black", fontWeight: "bold", display: "inline", children: "homefileit@homefile.com." })] })] }));
6
+ return (_jsxs(Flex, { p: "base", gap: "base", align: "center", bg: "lightBlue.2", id: 'forwardReceipts', children: [_jsx(AspectRatio, { ratio: 1, minW: "35px", h: "auto", children: _jsx(Image, { src: IA, alt: "IA" }) }), _jsxs(Text, { variant: "home", lineHeight: "1", children: [t('inbox.forwardTo'), _jsx(chakra.span, { fontFamily: "secondary", fontSize: "sm", lineHeight: "1", color: "neutral.black", fontWeight: "bold", display: "inline", children: "homefileit@homefile.com." })] })] }));
7
7
  };
@@ -76,7 +76,7 @@ export const HomeBoardTour = ({ currentStep = 'homeboard', bubbleWidth = '300px'
76
76
  editFile: {
77
77
  arrowRight: 'right-top',
78
78
  leftRef: getXPosition(width, panelBubbleArrowSize - 80),
79
- topRef: getYPosition(height, height - 360),
79
+ topRef: getYPosition(height, height - 214),
80
80
  component: (_jsx(BubbleText, { title: t('tour.steps.editFile.title'), description: t('tour.steps.editFile.description') })),
81
81
  },
82
82
  // Reference component id -> appBar/PeopleConnected
@@ -3,6 +3,7 @@ export interface BoxI {
3
3
  name: string;
4
4
  newMessages?: number;
5
5
  totalMessages: number;
6
+ id?: string;
6
7
  }
7
8
  export interface InboxCardI {
8
9
  box: BoxI;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.8.52",
3
+ "version": "2.8.54",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -4,7 +4,7 @@ import { TextBadge } from '@/components'
4
4
  import { InboxCardI } from '@/interfaces'
5
5
 
6
6
  export const InboxCard = ({ box, onClick }: InboxCardI) => {
7
- const { image, name, newMessages = 0, totalMessages } = box
7
+ const { image, name, newMessages = 0, totalMessages, id } = box
8
8
  const hasNewMessages = newMessages > 0
9
9
  const message = `${newMessages} ${t('badges.new')}`
10
10
  return (
@@ -18,6 +18,7 @@ export const InboxCard = ({ box, onClick }: InboxCardI) => {
18
18
  transition="background-color 0.2s"
19
19
  _hover={{ bg: 'lightGreen.1' }}
20
20
  onClick={() => onClick?.(name)}
21
+ id={id}
21
22
  >
22
23
  <Flex align="center" gap="base">
23
24
  <AspectRatio ratio={1} w="34px" h="auto">
@@ -4,7 +4,7 @@ import { IA } from '@/assets/images'
4
4
 
5
5
  export const InboxForwardBanner = () => {
6
6
  return (
7
- <Flex p="base" gap="base" align="center" bg="lightBlue.2">
7
+ <Flex p="base" gap="base" align="center" bg="lightBlue.2" id='forwardReceipts'>
8
8
  <AspectRatio ratio={1} minW="35px" h="auto">
9
9
  <Image src={IA} alt="IA" />
10
10
  </AspectRatio>
@@ -145,7 +145,7 @@ export const HomeBoardTour = ({
145
145
  editFile: {
146
146
  arrowRight: 'right-top',
147
147
  leftRef: getXPosition(width, panelBubbleArrowSize - 80),
148
- topRef: getYPosition(height, height - 360),
148
+ topRef: getYPosition(height, height - 214),
149
149
  component: (
150
150
  <BubbleText
151
151
  title={t('tour.steps.editFile.title')}
@@ -3,6 +3,7 @@ export interface BoxI {
3
3
  name: string
4
4
  newMessages?: number
5
5
  totalMessages: number
6
+ id?: string
6
7
  }
7
8
 
8
9
  export interface InboxCardI {