@eclass/ui-kit 1.53.5 → 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,27 +1890,31 @@ 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",
1895
+ cursor: "pointer",
1892
1896
  display: "flex",
1893
1897
  gap: "8px",
1894
1898
  h: "30px",
1895
1899
  maxH: "30px",
1900
+ p: "0",
1896
1901
  _hover: {
1897
- ".icon": {
1902
+ ".nav-bar-icon": {
1898
1903
  bg: hoverBg
1899
1904
  },
1900
- ".text": {
1905
+ ".nav-bar-text": {
1901
1906
  color: vars("colors-neutral-white")
1902
1907
  }
1903
1908
  },
1904
1909
  _active: {
1905
- ".icon": {
1910
+ ".nav-bar-icon": {
1906
1911
  bg: onlyLink || isAccessibility ? hoverBg : activeBg
1907
1912
  },
1908
- ".text": {
1913
+ ".nav-bar-text": {
1909
1914
  color: vars("colors-neutral-white")
1910
1915
  }
1911
1916
  },
1912
- ".icon": {
1917
+ ".nav-bar-icon": {
1913
1918
  alignItems: "center",
1914
1919
  bg: vars("colors-main-blueGrey"),
1915
1920
  borderRadius: "100%",
@@ -1921,20 +1926,19 @@ const NavBarButton = ({
1921
1926
  role: "button",
1922
1927
  width: "30px"
1923
1928
  },
1924
- ".text": {
1929
+ ".nav-bar-text": {
1925
1930
  alignContent: "center",
1931
+ color: vars("colors-neutral-silverSand"),
1926
1932
  fontSize: "12px",
1927
1933
  fontWeight: "500",
1928
- forntFamily: "Roboto",
1929
- color: vars("colors-neutral-silverSand")
1934
+ fontFamily: "Roboto"
1930
1935
  }
1931
1936
  },
1932
1937
  children: [/* @__PURE__ */ jsx(Box, {
1933
- className: "icon",
1938
+ className: "nav-bar-icon",
1934
1939
  children: buttonType[type].icon
1935
- }), /* @__PURE__ */ jsx(Box, {
1936
- as: "span",
1937
- className: "text",
1940
+ }), !isMobile && /* @__PURE__ */ jsx(Box, {
1941
+ className: "nav-bar-text",
1938
1942
  children: buttonType[type].text
1939
1943
  })]
1940
1944
  });
@@ -5955,19 +5959,21 @@ 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
- ".icon": {
5965
+ ".nav-bar-icon": {
5960
5966
  bg: hoverBg
5961
5967
  },
5962
- ".text": {
5968
+ ".nav-bar-text": {
5963
5969
  color: vars("colors-neutral-white")
5964
5970
  }
5965
5971
  },
5966
5972
  _active: {
5967
- ".icon": {
5973
+ ".nav-bar-icon": {
5968
5974
  bg: onlyToCalendar ? hoverBg : activeBg
5969
5975
  },
5970
- ".text": {
5976
+ ".nav-bar-text": {
5971
5977
  color: vars("colors-neutral-white")
5972
5978
  }
5973
5979
  }
@@ -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"