@eclass/ui-kit 1.53.6 → 1.53.7

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,4 +1,4 @@
1
- import { extendTheme, Box, CircularProgress, Icon, Button, Tooltip, Flex, Stack, Center, Image, Text, HStack, Heading, List, ListItem, Link, Modal, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, ModalOverlay, useDisclosure, LinkBox, LinkOverlay, useMediaQuery, MenuButton, MenuGroup, Menu, MenuList } from "@chakra-ui/react";
1
+ import { extendTheme, Box, CircularProgress, Icon, Button, useMediaQuery, Tooltip, Flex, Stack, Center, Image, Text, HStack, Heading, List, ListItem, Link, Modal, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, ModalOverlay, useDisclosure, LinkBox, LinkOverlay, MenuButton, MenuGroup, Menu, MenuList } from "@chakra-ui/react";
2
2
  import * as React from "react";
3
3
  import React__default, { useEffect, useCallback, useState } from "react";
4
4
  const main = {
@@ -1860,6 +1860,7 @@ const NavBarButton = ({
1860
1860
  type
1861
1861
  }) => {
1862
1862
  var _a;
1863
+ const [isMobile] = useMediaQuery("(max-width: 640px)");
1863
1864
  const buttonType = {
1864
1865
  accessibility: {
1865
1866
  icon: /* @__PURE__ */ jsx(Accessibility, {}),
@@ -1889,11 +1890,14 @@ const NavBarButton = ({
1889
1890
  id: isAccessibility ? "UserWayButton" : "",
1890
1891
  onClick: isAccessibility ? triggerWidget : onClick,
1891
1892
  sx: {
1893
+ background: "none !important",
1894
+ border: "1px transparent !important",
1892
1895
  cursor: "pointer",
1893
1896
  display: "flex",
1894
1897
  gap: "8px",
1895
1898
  h: "30px",
1896
1899
  maxH: "30px",
1900
+ p: "0",
1897
1901
  _hover: {
1898
1902
  ".nav-bar-icon": {
1899
1903
  bg: hoverBg
@@ -1933,7 +1937,7 @@ const NavBarButton = ({
1933
1937
  children: [/* @__PURE__ */ jsx(Box, {
1934
1938
  className: "nav-bar-icon",
1935
1939
  children: buttonType[type].icon
1936
- }), /* @__PURE__ */ jsx(Box, {
1940
+ }), !isMobile && /* @__PURE__ */ jsx(Box, {
1937
1941
  className: "nav-bar-text",
1938
1942
  children: buttonType[type].text
1939
1943
  })]
@@ -5955,6 +5959,8 @@ const GoToCalendar = ({
5955
5959
  onClick: () => onlyToCalendar && onClick && onClick(),
5956
5960
  position: "relative",
5957
5961
  sx: {
5962
+ background: "none",
5963
+ border: "1px transparent",
5958
5964
  _hover: {
5959
5965
  ".nav-bar-icon": {
5960
5966
  bg: hoverBg
@@ -6352,7 +6358,7 @@ const CalendarDropdownContainer = ({
6352
6358
  content: '""',
6353
6359
  display: isMenuOpen ? "block" : "none",
6354
6360
  height: "0",
6355
- left: "14%",
6361
+ left: "11%",
6356
6362
  position: "absolute",
6357
6363
  top: "30px",
6358
6364
  transform: "translateX(-50%)",
@@ -6382,13 +6388,13 @@ const CalendarDropdownContainer = ({
6382
6388
  border: "none",
6383
6389
  borderRadius: isMobile ? "0" : "10px",
6384
6390
  boxShadow: isMobile ? "none" : "rgba(47, 47, 47, 0.2) -1px 6px 40px 0px",
6385
- left: isMobile ? "auto" : "-30px",
6391
+ left: isMobile ? "auto" : "34pxpx",
6386
6392
  maxHeight: isMobile ? "calc(100vh - 62px)" : "auto",
6387
6393
  opacity: "1 !important",
6388
6394
  overflowY: isMobile ? "auto" : "hidden",
6389
6395
  padding: "0",
6390
6396
  position: "absolute",
6391
- top: isMobile ? "-6px !important" : "auto",
6397
+ top: isMobile ? "-6px !important" : "1px",
6392
6398
  transform: "none !important",
6393
6399
  transition: "none !important",
6394
6400
  width: isMobile ? "100vw" : "500px"