@homefile/components-v2 2.40.12 → 2.40.13

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.
@@ -20,7 +20,7 @@ export const HomefileMonitoring = ({ alertCount = 0 }) => {
20
20
  }
21
21
  return () => clearTimeout(timeout);
22
22
  }, [alertCount]);
23
- return (_jsxs(Box, { flex: "1", zIndex: "2", children: [showAlerts && (_jsx(MonitoringAlerts, { alertCount: alertCount, showAlerts: showAlerts })), _jsx(SlideFade, { in: showMonitoring, offsetY: "-20px", transition: { enter: { duration: 0.5 }, exit: { duration: 0.5 } }, children: _jsx(Box, { p: "base", borderBottomRadius: "lg", bg: "#C5E9F4", flex: "1", children: _jsxs(Flex, { align: "center", gap: "1", children: [_jsx(CustomCircularLoader, { icon: Brain, color: "#12988C", trackColor: "#A2CFE0", size: "46px", thickness: "6px" }), _jsx(Text, { children: t('homeAssistant.homeMonitoring') })] }) }) })] }));
23
+ return (_jsxs(Box, { flex: "1", zIndex: "1", children: [showAlerts && (_jsx(MonitoringAlerts, { alertCount: alertCount, showAlerts: showAlerts })), _jsx(SlideFade, { in: showMonitoring, offsetY: "-20px", transition: { enter: { duration: 0.5 }, exit: { duration: 0.5 } }, children: _jsx(Box, { p: "base", borderBottomRadius: "lg", bg: "#C5E9F4", flex: "1", children: _jsxs(Flex, { align: "center", gap: "1", children: [_jsx(CustomCircularLoader, { icon: Brain, color: "#12988C", trackColor: "#A2CFE0", size: "46px", thickness: "6px" }), _jsx(Text, { children: t('homeAssistant.homeMonitoring') })] }) }) })] }));
24
24
  };
25
25
  const MonitoringAlerts = ({ alertCount = 0, showAlerts = false }) => {
26
26
  return (_jsx(SlideFade, { in: showAlerts, offsetY: "-20px", transition: { enter: { duration: 0.5 } }, children: _jsx(Box, { px: "base", borderBottomRadius: "lg", bg: "#F444DA", children: _jsxs(Flex, { align: "center", gap: "1", h: "66px", children: [_jsxs(Center, { p: "1", position: "relative", h: "24px", w: "24px", children: [_jsx(Box, { borderRadius: "full", bg: "neutral.white", opacity: 0.3, h: "full", w: "full", position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }), _jsx(Image, { src: Exclamation, h: "100%", w: "auto" })] }), _jsx(Text, { color: "neutral.white", children: t('homeAssistant.homeMonitoringAlerts', { count: alertCount }) })] }) }) }));
@@ -5,7 +5,7 @@ import { Fridge, Register } from '../../../assets/images';
5
5
  import { colors } from '../../../theme/colors';
6
6
  import { Plus } from '../../../components';
7
7
  export const HomieAddItems = ({ onAddReceipt, onAddItem }) => {
8
- return (_jsxs(Stack, { spacing: "base", flex: "1", zIndex: "2", pr: "6", children: [_jsx(Text, { fontSize: "26px", lineHeight: "36px", textAlign: "center", children: t('homieAddItems.title') }), _jsx(Box, { bg: "lightBlue.5", borderRadius: "full", py: "2", children: _jsx(Text, { fontWeight: "medium", textAlign: "center", children: t('homieAddItems.subTitle') }) }), _jsxs(Stack, { spacing: "1", children: [_jsx(AddButton, { icon: Register, text: t('homieAddItems.addReceipt'), onClick: onAddReceipt }), _jsx(AddButton, { icon: Fridge, text: t('homieAddItems.addItem'), onClick: onAddItem })] })] }));
8
+ return (_jsxs(Stack, { spacing: "base", flex: "1", zIndex: "1", pr: "6", children: [_jsx(Text, { fontSize: "26px", lineHeight: "36px", textAlign: "center", children: t('homieAddItems.title') }), _jsx(Box, { bg: "lightBlue.5", borderRadius: "full", py: "2", children: _jsx(Text, { fontWeight: "medium", textAlign: "center", children: t('homieAddItems.subTitle') }) }), _jsxs(Stack, { spacing: "1", children: [_jsx(AddButton, { icon: Register, text: t('homieAddItems.addReceipt'), onClick: onAddReceipt }), _jsx(AddButton, { icon: Fridge, text: t('homieAddItems.addItem'), onClick: onAddItem })] })] }));
9
9
  };
10
10
  const AddButton = ({ icon, text, onClick }) => {
11
11
  return (_jsx(Box, { as: "button", p: "base", bg: "neutral.white", boxShadow: "md", transition: "background 0.2s", _hover: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.40.12",
3
+ "version": "2.40.13",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",