@homefile/components-v2 2.8.32 → 2.8.33
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.
|
@@ -7,7 +7,7 @@ import { House } from '../../assets/images';
|
|
|
7
7
|
export const RoomsMenu = ({ activeRoom, rooms, roomsToAdd, onClick, onHomeClick, onAddRoom, disabled, }) => {
|
|
8
8
|
const { handleDragStart, handleDrop, newRooms } = useRoomList(rooms);
|
|
9
9
|
const { isOpen, onOpen, onClose } = useDisclosure();
|
|
10
|
-
return (_jsx(Show, { breakpoint: "(min-width: 600px)", children: _jsxs(Box, { bg: "neutral.white", minW: "fit-content", children: [_jsxs(Box, { w: "container.roomIcon", minW: "container.roomIcon", transition: "all 0.2s ease-in-out", bg: "lightBlue.4", children: [_jsx(Box, { overflow: "hidden", children: _jsx(Tooltip, { hasArrow: true, isDisabled: false, label: t('addRoom.addBtn'), placement: "right", children: _jsx(Box, { as: "button", w: "full", h: "container.masthead", onClick: onOpen, transition: "all 0.2s ease-in-out", bg: "blue.2", disabled: disabled, overflow: "hidden", _hover: { backgroundColor: 'blue.3' }, _disabled: {
|
|
10
|
+
return (_jsx(Show, { breakpoint: "(min-width: 600px)", children: _jsxs(Box, { bg: "neutral.white", minW: "fit-content", "data-testid": "rooms-menu", children: [_jsxs(Box, { w: "container.roomIcon", minW: "container.roomIcon", transition: "all 0.2s ease-in-out", bg: "lightBlue.4", children: [_jsx(Box, { overflow: "hidden", children: _jsx(Tooltip, { hasArrow: true, isDisabled: false, label: t('addRoom.addBtn'), placement: "right", children: _jsx(Box, { as: "button", w: "full", h: "container.masthead", onClick: onOpen, transition: "all 0.2s ease-in-out", bg: "blue.2", disabled: disabled, overflow: "hidden", _hover: { backgroundColor: 'blue.3' }, _disabled: {
|
|
11
11
|
filter: 'grayscale(100%)',
|
|
12
12
|
pointerEvents: 'none',
|
|
13
13
|
}, children: _jsx(Center, { minW: "container.roomIcon", children: _jsx(Plus, {}) }) }) }) }), _jsx(Tooltip, { hasArrow: true, isDisabled: activeRoom === 'homeboard', label: t('rooms.homeboard'), placement: "right", children: _jsx(Box, { w: "full", as: "button", h: "3.2rem", bg: activeRoom === 'homeboard' ? 'lightGreen.3' : 'neutral.white', onClick: onHomeClick, children: _jsx(Center, { minW: "container.roomIcon", children: _jsx(Image, { src: House, alt: t('ariaLabels.returnHomeBoard'), w: "1.5rem", h: "auto" }) }) }) }), _jsx(Box, { children: newRooms.map((room, i) => {
|
|
@@ -8,7 +8,7 @@ import { House } from '../../assets/images';
|
|
|
8
8
|
export const RoomsMenuMobile = ({ activeRoom, rooms, roomsToAdd, onClick, onHomeClick, onAddRoom, }) => {
|
|
9
9
|
const { newRooms } = useRoomList(rooms);
|
|
10
10
|
const { isOpen, onOpen, onClose } = useDisclosure();
|
|
11
|
-
return (_jsx(Show, { breakpoint: "(max-width: 590px)", children: _jsxs(Box, { mt: "2", w: "full", position: "fixed", bottom: "0", shadow: "0 0 8px 1px #00000010", zIndex: "dropdown", overflow: "hidden", overflowX: "auto", css: {
|
|
11
|
+
return (_jsx(Show, { breakpoint: "(max-width: 590px)", children: _jsxs(Box, { "data-testid": "rooms-menu-mobile", mt: "2", w: "full", position: "fixed", bottom: "0", shadow: "0 0 8px 1px #00000010", zIndex: "dropdown", overflow: "hidden", overflowX: "auto", css: {
|
|
12
12
|
'&::-webkit-scrollbar': {
|
|
13
13
|
height: '0px',
|
|
14
14
|
},
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ export const RoomsMenu = ({
|
|
|
26
26
|
|
|
27
27
|
return (
|
|
28
28
|
<Show breakpoint="(min-width: 600px)">
|
|
29
|
-
<Box bg="neutral.white" minW="fit-content">
|
|
29
|
+
<Box bg="neutral.white" minW="fit-content" data-testid="rooms-menu">
|
|
30
30
|
<Box
|
|
31
31
|
w="container.roomIcon"
|
|
32
32
|
minW="container.roomIcon"
|