@homefile/components-v2 2.39.0 → 2.39.1

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,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
3
  import { Box, GridItem, Image } from '@chakra-ui/react';
4
- import { ContainerHeader, TileTooltip, moveRightToLeftWithFade, moveRightToLeft, moveLeftToRightAirplane, WeatherTrees, } from '../../components';
4
+ import { ContainerHeader, TileTooltip, moveRightToLeftWithFade, moveRightToLeft, moveLeftToRightAirplane, } from '../../components';
5
5
  import { Airplane, Cloud1, Cloud2, Cloud3, IA } from '../../assets/images';
6
6
  import { colors } from '../../theme/colors';
7
7
  export const HomeAssistantWrapper = ({ children, showAirplane, title, zIndex, }) => {
@@ -19,5 +19,5 @@ export const HomeAssistantWrapper = ({ children, showAirplane, title, zIndex, })
19
19
  // }, 60000)
20
20
  // return () => clearInterval(interval)
21
21
  // }, [])
22
- return (_jsx(GridItem, { colSpan: [1, 2], zIndex: zIndex, children: _jsx(TileTooltip, { label: "homeAssistant", children: _jsxs(Box, { bgGradient: gradients[timeOfDay], boxShadow: "base", position: "relative", overflow: "hidden", transition: "background 1s ease-in-out", h: "full", children: [_jsx(ContainerHeader, { title: title, titleIcon: IA, fontWeight: "normal" }), _jsx(Box, { h: "calc(100% - 60px)", children: children }), _jsx(Image, { src: Cloud1 || null, position: "absolute", w: "auto", h: "80px", top: "80px", animation: `${moveRightToLeftWithFade} 400s linear infinite` }), _jsx(Image, { src: Cloud2 || null, position: "absolute", w: "auto", h: "112px", top: "150px", animation: `${moveRightToLeft} 200s linear infinite` }), _jsx(Image, { src: Cloud3 || null, position: "absolute", w: "auto", h: "160px", top: "200px", animation: `${moveRightToLeft} 130s linear infinite` }), showAirplane && (_jsx(Image, { src: Airplane || null, position: "absolute", w: "auto", h: "40px", top: "85px", animation: `${moveLeftToRightAirplane} 500s cubic-bezier(1, 1, 1, 500) infinite` })), _jsx(WeatherTrees, { timeOfDaySeason: timeOfDaySeason, position: "absolute", bottom: "0", right: "2", w: "auto", h: "100px" })] }) }) }));
22
+ return (_jsx(GridItem, { colSpan: [1, 2], zIndex: zIndex, children: _jsx(TileTooltip, { label: "homeAssistant", children: _jsxs(Box, { bgGradient: gradients[timeOfDay], boxShadow: "base", position: "relative", overflow: "hidden", transition: "background 1s ease-in-out", h: "full", children: [_jsx(ContainerHeader, { title: title, titleIcon: IA, fontWeight: 'normal' }), _jsx(Box, { h: "calc(100% - 60px)", children: children }), _jsx(Image, { src: Cloud1 || null, position: "absolute", w: "auto", h: "80px", top: "80px", animation: `${moveRightToLeftWithFade} 400s linear infinite` }), _jsx(Image, { src: Cloud2 || null, position: "absolute", w: "auto", h: "112px", top: "150px", animation: `${moveRightToLeft} 200s linear infinite` }), _jsx(Image, { src: Cloud3 || null, position: "absolute", w: "auto", h: "160px", top: "200px", animation: `${moveRightToLeft} 130s linear infinite` }), showAirplane && (_jsx(Image, { src: Airplane || null, position: "absolute", w: "auto", h: "40px", top: "85px", animation: `${moveLeftToRightAirplane} 500s cubic-bezier(1, 1, 1, 500) infinite` }))] }) }) }));
23
23
  };
@@ -4,5 +4,5 @@ import { Box, Container, Flex, Text } from '@chakra-ui/react';
4
4
  import { formatCurrency } from '../../utils';
5
5
  export const SubscriptionCard = ({ storage, totalCharged, }) => {
6
6
  const total = formatCurrency({ value: totalCharged });
7
- return (_jsx(Box, { bg: "lightBlue.2", p: "base", w: "100%", children: _jsxs(Container, { border: "1px solid", borderColor: "blue.8", p: "base", children: [_jsx(Text, { fontSize: "lg", fontWeight: "bold", color: "blue.2", children: t('subscription.title') }), _jsx(Text, { fontSize: "sm", children: `${storage} ${t('subscription.space')}` }), _jsxs(Flex, { justify: "space-between", children: [_jsx(Box, {}), _jsx(Text, { fontWeight: "medium", children: total })] })] }) }));
7
+ return (_jsx(Box, { bg: "lightBlue.2", p: "base", w: "100%", children: _jsxs(Container, { border: "1px solid", borderColor: "blue.8", p: "base", children: [_jsx(Text, { fontSize: "lg", color: "blue.2", children: t('subscription.title') }), _jsx(Text, { fontSize: "sm", children: `${storage} ${t('subscription.space')}` }), _jsxs(Flex, { justify: "space-between", children: [_jsx(Box, {}), _jsx(Text, { fontWeight: "medium", children: total })] })] }) }));
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.39.0",
3
+ "version": "2.39.1",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",