@eclass/ui-kit 1.53.2 → 1.53.4
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.
- package/dist/eclass-ui-kit.es.js +159 -60
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +28 -28
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/molecules/NavBarButtons/Icons/CalendarButtonIcon.d.ts.map +1 -0
- package/dist/molecules/NavBarButtons/Icons/HelpIcon.d.ts +3 -0
- package/dist/molecules/NavBarButtons/Icons/HelpIcon.d.ts.map +1 -0
- package/dist/molecules/NavBarButtons/NavBarButton.d.ts +16 -0
- package/dist/molecules/NavBarButtons/NavBarButton.d.ts.map +1 -0
- package/dist/molecules/Tooltip/NewTooltip.d.ts +1 -0
- package/dist/molecules/Tooltip/NewTooltip.d.ts.map +1 -1
- package/dist/molecules/index.d.ts +1 -0
- package/dist/molecules/index.d.ts.map +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/GoToCalendar.d.ts.map +1 -1
- package/dist/organisms/Calendar/EventsList/EventsList.d.ts.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Icons/CalendarButtonIcon.d.ts.map +0 -1
- /package/dist/{organisms/Calendar/Dropdown/CalendarDropdown → molecules/NavBarButtons}/Icons/CalendarButtonIcon.d.ts +0 -0
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -1811,6 +1811,132 @@ function BtnLink({
|
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
1813
|
BtnLink.displayName = "BtnLink";
|
|
1814
|
+
const HelpIcon = () => {
|
|
1815
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
1816
|
+
width: "16",
|
|
1817
|
+
height: "16",
|
|
1818
|
+
viewBox: "0 0 16 16",
|
|
1819
|
+
fill: "none",
|
|
1820
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
1821
|
+
d: "M8 0C3.6 0 0 3.6 0 8C0 12.4 3.6 16 8 16C12.4 16 16 12.4 16 8C16 3.6 12.4 0 8 0ZM8 13C7.448 13 7 12.552 7 12C7 11.448 7.448 11 8 11C8.552 11 9 11.448 9 12C9 12.552 8.552 13 8 13ZM9.623 8.092C9.126 8.519 9 8.663 9 9C9 9.553 8.552 10 8 10C7.448 10 7 9.553 7 9C7 7.706 7.795 7.024 8.322 6.573C8.819 6.148 8.945 6.003 8.945 5.667C8.945 5.484 8.945 5 8.001 5C7.565 5.024 7.1 5.224 6.743 5.561C6.342 5.939 5.708 5.92 5.329 5.52C4.95 5.118 4.968 4.485 5.37 4.106C6.072 3.445 6.987 3.052 7.949 3.002H7.952C9.764 3.002 10.945 4.073 10.945 5.668C10.945 6.961 10.15 7.643 9.624 8.093L9.623 8.092Z",
|
|
1822
|
+
fill: "white"
|
|
1823
|
+
})
|
|
1824
|
+
});
|
|
1825
|
+
};
|
|
1826
|
+
const CalendarButtonIcon = () => /* @__PURE__ */ jsxs("svg", {
|
|
1827
|
+
width: "16px",
|
|
1828
|
+
height: "16px",
|
|
1829
|
+
fill: "none",
|
|
1830
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
1831
|
+
fill: "#fff",
|
|
1832
|
+
d: "M15 2h-2V0h-2v2H9V0H7v2H5V0H3v2H1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1Zm-1 12H2V5h12v9Z"
|
|
1833
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
1834
|
+
fill: "#fff",
|
|
1835
|
+
d: "M6 7H4v2h2V7ZM9 7H7v2h2V7ZM6 10H4v2h2v-2ZM9 10H7v2h2v-2ZM12 7h-2v2h2V7ZM12 10h-2v2h2v-2Z"
|
|
1836
|
+
})]
|
|
1837
|
+
});
|
|
1838
|
+
function Accessibility(props) {
|
|
1839
|
+
return /* @__PURE__ */ jsx(Base, {
|
|
1840
|
+
...props,
|
|
1841
|
+
children: /* @__PURE__ */ jsx("svg", {
|
|
1842
|
+
width: "16",
|
|
1843
|
+
height: "16",
|
|
1844
|
+
viewBox: "0 0 16 16",
|
|
1845
|
+
fill: "none",
|
|
1846
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
1847
|
+
fillRule: "evenodd",
|
|
1848
|
+
clipRule: "evenodd",
|
|
1849
|
+
d: "M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM8 5C8.82843 5 9.5 4.32843 9.5 3.5C9.5 2.67157 8.82843 2 8 2C7.17157 2 6.5 2.67157 6.5 3.5C6.5 4.32843 7.17157 5 8 5ZM2.96967 5.96967C3.11032 5.82902 3.30109 5.75 3.5 5.75H12.5C12.6989 5.75 12.8897 5.82902 13.0303 5.96967C13.171 6.11032 13.25 6.30109 13.25 6.5C13.25 6.69891 13.171 6.88968 13.0303 7.03033C12.8897 7.17098 12.6989 7.25 12.5 7.25H10.25V13.25C10.25 13.4489 10.171 13.6397 10.0303 13.7803C9.88968 13.921 9.69891 14 9.5 14C9.30109 14 9.11032 13.921 8.96967 13.7803C8.82902 13.6397 8.75 13.4489 8.75 13.25V10.25H7.25V13.25C7.25 13.4489 7.17098 13.6397 7.03033 13.7803C6.88968 13.921 6.69891 14 6.5 14C6.30109 14 6.11032 13.921 5.96967 13.7803C5.82902 13.6397 5.75 13.4489 5.75 13.25V7.25H3.5C3.30109 7.25 3.11032 7.17098 2.96967 7.03033C2.82902 6.88968 2.75 6.69891 2.75 6.5C2.75 6.30109 2.82902 6.11032 2.96967 5.96967Z",
|
|
1850
|
+
fill: "white"
|
|
1851
|
+
})
|
|
1852
|
+
})
|
|
1853
|
+
});
|
|
1854
|
+
}
|
|
1855
|
+
const NavBarButton = ({
|
|
1856
|
+
buttonName,
|
|
1857
|
+
onlyLink,
|
|
1858
|
+
onClick,
|
|
1859
|
+
type
|
|
1860
|
+
}) => {
|
|
1861
|
+
var _a;
|
|
1862
|
+
const buttonType = {
|
|
1863
|
+
accessibility: {
|
|
1864
|
+
icon: /* @__PURE__ */ jsx(Accessibility, {}),
|
|
1865
|
+
text: buttonName != null ? buttonName : "ACCESIBILIDAD"
|
|
1866
|
+
},
|
|
1867
|
+
calendar: {
|
|
1868
|
+
icon: /* @__PURE__ */ jsx(CalendarButtonIcon, {}),
|
|
1869
|
+
text: buttonName != null ? buttonName : "CALENDARIO"
|
|
1870
|
+
},
|
|
1871
|
+
help: {
|
|
1872
|
+
icon: /* @__PURE__ */ jsx(HelpIcon, {}),
|
|
1873
|
+
text: buttonName != null ? buttonName : "AYUDA"
|
|
1874
|
+
}
|
|
1875
|
+
};
|
|
1876
|
+
const triggerWidget = () => {
|
|
1877
|
+
const buttonB = document.getElementById("userWayTrigger");
|
|
1878
|
+
if (buttonB == null ? void 0 : buttonB.click) {
|
|
1879
|
+
buttonB.click();
|
|
1880
|
+
}
|
|
1881
|
+
};
|
|
1882
|
+
const activeBg = (_a = vars("colors-main-deepSkyBlue")) != null ? _a : "#0189FF";
|
|
1883
|
+
const hoverBg = "rgba(96, 121, 142, 0.8)";
|
|
1884
|
+
const isAccessibility = type === "accessibility";
|
|
1885
|
+
return /* @__PURE__ */ jsxs(Box, {
|
|
1886
|
+
as: "button",
|
|
1887
|
+
id: isAccessibility ? "UserWayButton" : "",
|
|
1888
|
+
onClick: isAccessibility ? triggerWidget : onClick,
|
|
1889
|
+
sx: {
|
|
1890
|
+
display: "flex",
|
|
1891
|
+
gap: "8px",
|
|
1892
|
+
h: "30px",
|
|
1893
|
+
maxH: "30px",
|
|
1894
|
+
_hover: {
|
|
1895
|
+
".icon": {
|
|
1896
|
+
bg: hoverBg
|
|
1897
|
+
},
|
|
1898
|
+
".text": {
|
|
1899
|
+
color: vars("colors-neutral-white")
|
|
1900
|
+
}
|
|
1901
|
+
},
|
|
1902
|
+
_active: {
|
|
1903
|
+
".icon": {
|
|
1904
|
+
bg: onlyLink || isAccessibility ? hoverBg : activeBg
|
|
1905
|
+
},
|
|
1906
|
+
".text": {
|
|
1907
|
+
color: vars("colors-neutral-white")
|
|
1908
|
+
}
|
|
1909
|
+
},
|
|
1910
|
+
".icon": {
|
|
1911
|
+
alignItems: "center",
|
|
1912
|
+
bg: vars("colors-main-blueGrey"),
|
|
1913
|
+
borderRadius: "100%",
|
|
1914
|
+
border: "1px solid transparent",
|
|
1915
|
+
display: "flex",
|
|
1916
|
+
height: "30px",
|
|
1917
|
+
justifyContent: "center",
|
|
1918
|
+
type: "button",
|
|
1919
|
+
role: "button",
|
|
1920
|
+
width: "30px"
|
|
1921
|
+
},
|
|
1922
|
+
".text": {
|
|
1923
|
+
alignContent: "center",
|
|
1924
|
+
fontSize: "12px",
|
|
1925
|
+
fontWeight: "500",
|
|
1926
|
+
forntFamily: "Roboto",
|
|
1927
|
+
color: vars("colors-neutral-silverSand")
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
children: [/* @__PURE__ */ jsx(Box, {
|
|
1931
|
+
className: "icon",
|
|
1932
|
+
children: buttonType[type].icon
|
|
1933
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
1934
|
+
as: "span",
|
|
1935
|
+
className: "text",
|
|
1936
|
+
children: buttonType[type].text
|
|
1937
|
+
})]
|
|
1938
|
+
});
|
|
1939
|
+
};
|
|
1814
1940
|
const NewTooltip = ({
|
|
1815
1941
|
children,
|
|
1816
1942
|
className = "tooltip",
|
|
@@ -1820,7 +1946,8 @@ const NewTooltip = ({
|
|
|
1820
1946
|
maxWidth = "200px",
|
|
1821
1947
|
placement = "bottom",
|
|
1822
1948
|
isOpen,
|
|
1823
|
-
sx
|
|
1949
|
+
sx,
|
|
1950
|
+
transform
|
|
1824
1951
|
}) => {
|
|
1825
1952
|
return /* @__PURE__ */ jsx(Tooltip, {
|
|
1826
1953
|
isOpen,
|
|
@@ -1832,6 +1959,7 @@ const NewTooltip = ({
|
|
|
1832
1959
|
fontWeight: "400",
|
|
1833
1960
|
maxWidth,
|
|
1834
1961
|
padding: "8px",
|
|
1962
|
+
transform: transform != null ? transform : "",
|
|
1835
1963
|
".chakra-tooltip__arrow": {
|
|
1836
1964
|
bg: `${vars("colors-neutral-darkCharcoal")} !important`
|
|
1837
1965
|
},
|
|
@@ -1849,23 +1977,6 @@ const NewTooltip = ({
|
|
|
1849
1977
|
})
|
|
1850
1978
|
});
|
|
1851
1979
|
};
|
|
1852
|
-
function Accessibility(props) {
|
|
1853
|
-
return /* @__PURE__ */ jsx(Base, {
|
|
1854
|
-
...props,
|
|
1855
|
-
children: /* @__PURE__ */ jsx("svg", {
|
|
1856
|
-
width: "16",
|
|
1857
|
-
height: "16",
|
|
1858
|
-
viewBox: "0 0 16 16",
|
|
1859
|
-
fill: "none",
|
|
1860
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
1861
|
-
fillRule: "evenodd",
|
|
1862
|
-
clipRule: "evenodd",
|
|
1863
|
-
d: "M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM8 5C8.82843 5 9.5 4.32843 9.5 3.5C9.5 2.67157 8.82843 2 8 2C7.17157 2 6.5 2.67157 6.5 3.5C6.5 4.32843 7.17157 5 8 5ZM2.96967 5.96967C3.11032 5.82902 3.30109 5.75 3.5 5.75H12.5C12.6989 5.75 12.8897 5.82902 13.0303 5.96967C13.171 6.11032 13.25 6.30109 13.25 6.5C13.25 6.69891 13.171 6.88968 13.0303 7.03033C12.8897 7.17098 12.6989 7.25 12.5 7.25H10.25V13.25C10.25 13.4489 10.171 13.6397 10.0303 13.7803C9.88968 13.921 9.69891 14 9.5 14C9.30109 14 9.11032 13.921 8.96967 13.7803C8.82902 13.6397 8.75 13.4489 8.75 13.25V10.25H7.25V13.25C7.25 13.4489 7.17098 13.6397 7.03033 13.7803C6.88968 13.921 6.69891 14 6.5 14C6.30109 14 6.11032 13.921 5.96967 13.7803C5.82902 13.6397 5.75 13.4489 5.75 13.25V7.25H3.5C3.30109 7.25 3.11032 7.17098 2.96967 7.03033C2.82902 6.88968 2.75 6.69891 2.75 6.5C2.75 6.30109 2.82902 6.11032 2.96967 5.96967Z",
|
|
1864
|
-
fill: "white"
|
|
1865
|
-
})
|
|
1866
|
-
})
|
|
1867
|
-
});
|
|
1868
|
-
}
|
|
1869
1980
|
function UserWay() {
|
|
1870
1981
|
const triggerWidget = () => {
|
|
1871
1982
|
const buttonB = document.getElementById("userWayTrigger");
|
|
@@ -5830,59 +5941,47 @@ const useParseEvents = (events, now) => {
|
|
|
5830
5941
|
hasMoreNext
|
|
5831
5942
|
};
|
|
5832
5943
|
};
|
|
5833
|
-
const CalendarButtonIcon = () => /* @__PURE__ */ jsxs("svg", {
|
|
5834
|
-
width: "16px",
|
|
5835
|
-
height: "16px",
|
|
5836
|
-
fill: "none",
|
|
5837
|
-
children: [/* @__PURE__ */ jsx("path", {
|
|
5838
|
-
fill: "#fff",
|
|
5839
|
-
d: "M15 2h-2V0h-2v2H9V0H7v2H5V0H3v2H1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1Zm-1 12H2V5h12v9Z"
|
|
5840
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
5841
|
-
fill: "#fff",
|
|
5842
|
-
d: "M6 7H4v2h2V7ZM9 7H7v2h2V7ZM6 10H4v2h2v-2ZM9 10H7v2h2v-2ZM12 7h-2v2h2V7ZM12 10h-2v2h2v-2Z"
|
|
5843
|
-
})]
|
|
5844
|
-
});
|
|
5845
5944
|
const GoToCalendar = ({
|
|
5846
5945
|
text,
|
|
5847
5946
|
tooltipDisabled,
|
|
5848
5947
|
onlyToCalendar,
|
|
5849
5948
|
onClick
|
|
5850
5949
|
}) => {
|
|
5851
|
-
var _a
|
|
5950
|
+
var _a;
|
|
5852
5951
|
const activeBg = (_a = vars("colors-main-deepSkyBlue")) != null ? _a : "#0189FF";
|
|
5952
|
+
const hoverBg = "rgba(96, 121, 142, 0.8)";
|
|
5853
5953
|
return /* @__PURE__ */ jsx(NewTooltip, {
|
|
5854
5954
|
label: text != null ? text : "Calendario",
|
|
5855
|
-
m: "2px 0 0
|
|
5955
|
+
m: "2px 0 0 -59px",
|
|
5856
5956
|
isDisabled: tooltipDisabled,
|
|
5957
|
+
transform: "translateX(-10px) !important",
|
|
5857
5958
|
children: /* @__PURE__ */ jsx(MenuButton, {
|
|
5858
5959
|
onClick: () => onlyToCalendar && onClick && onClick(),
|
|
5859
|
-
background: (_b = vars("colors-main-blueGrey")) != null ? _b : "#60798E",
|
|
5860
|
-
border: "1px solid transparent",
|
|
5861
|
-
borderRadius: "100%",
|
|
5862
|
-
height: "30px !important",
|
|
5863
|
-
width: "30px !important",
|
|
5864
|
-
padding: "0 !important",
|
|
5865
|
-
margin: "0 !important",
|
|
5866
5960
|
position: "relative",
|
|
5867
|
-
_active: {
|
|
5868
|
-
bg: activeBg,
|
|
5869
|
-
"&:hover": {
|
|
5870
|
-
bg: activeBg
|
|
5871
|
-
}
|
|
5872
|
-
},
|
|
5873
|
-
_hover: {
|
|
5874
|
-
bg: "rgba(96, 121, 142, 0.8)"
|
|
5875
|
-
},
|
|
5876
5961
|
sx: {
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5962
|
+
_hover: {
|
|
5963
|
+
".icon": {
|
|
5964
|
+
bg: hoverBg
|
|
5965
|
+
},
|
|
5966
|
+
".text": {
|
|
5967
|
+
color: vars("colors-neutral-white")
|
|
5968
|
+
}
|
|
5969
|
+
},
|
|
5970
|
+
_active: {
|
|
5971
|
+
".icon": {
|
|
5972
|
+
bg: onlyToCalendar ? hoverBg : activeBg
|
|
5973
|
+
},
|
|
5974
|
+
".text": {
|
|
5975
|
+
color: vars("colors-neutral-white")
|
|
5976
|
+
}
|
|
5883
5977
|
}
|
|
5884
5978
|
},
|
|
5885
|
-
children: /* @__PURE__ */ jsx(
|
|
5979
|
+
children: /* @__PURE__ */ jsx(NavBarButton, {
|
|
5980
|
+
type: "calendar",
|
|
5981
|
+
onClick: () => {
|
|
5982
|
+
},
|
|
5983
|
+
buttonName: text.toUpperCase()
|
|
5984
|
+
})
|
|
5886
5985
|
})
|
|
5887
5986
|
});
|
|
5888
5987
|
};
|
|
@@ -6256,7 +6355,7 @@ const CalendarDropdownContainer = ({
|
|
|
6256
6355
|
return /* @__PURE__ */ jsx(Box, {
|
|
6257
6356
|
zIndex: 4,
|
|
6258
6357
|
className: `calendarDropdown ${hasNew && !onlyToCalendar ? "hasNew" : ""}`,
|
|
6259
|
-
width: "
|
|
6358
|
+
width: "fit-content",
|
|
6260
6359
|
height: "30px",
|
|
6261
6360
|
m: m2,
|
|
6262
6361
|
position: "relative",
|
|
@@ -6268,7 +6367,7 @@ const CalendarDropdownContainer = ({
|
|
|
6268
6367
|
content: '""',
|
|
6269
6368
|
display: isMenuOpen ? "block" : "none",
|
|
6270
6369
|
height: "0",
|
|
6271
|
-
left: "
|
|
6370
|
+
left: "14%",
|
|
6272
6371
|
position: "absolute",
|
|
6273
6372
|
top: "30px",
|
|
6274
6373
|
transform: "translateX(-50%)",
|
|
@@ -6326,7 +6425,7 @@ const CalendarDropdownContainer = ({
|
|
|
6326
6425
|
onClose,
|
|
6327
6426
|
children: /* @__PURE__ */ jsxs(Fragment, {
|
|
6328
6427
|
children: [/* @__PURE__ */ jsx(GoToCalendar, {
|
|
6329
|
-
text: (_c = text == null ? void 0 : text.tooltip) != null ? _c : "
|
|
6428
|
+
text: (_c = text == null ? void 0 : text.tooltip) != null ? _c : "Calendario",
|
|
6330
6429
|
tooltipDisabled: isTooltipDisabled,
|
|
6331
6430
|
onlyToCalendar,
|
|
6332
6431
|
onClick: redirectToCalendar
|
|
@@ -6478,7 +6577,7 @@ const EventsList = ({
|
|
|
6478
6577
|
},
|
|
6479
6578
|
children: [/* @__PURE__ */ jsx("span", {
|
|
6480
6579
|
children: name
|
|
6481
|
-
}), hasNotification && /* @__PURE__ */ jsx(NotificationIcon, {})
|
|
6580
|
+
}), hasNotification && /* @__PURE__ */ jsx(NotificationIcon, {})]
|
|
6482
6581
|
}), showCourse && !initOrEnd && /* @__PURE__ */ jsxs(Box, {
|
|
6483
6582
|
as: "span",
|
|
6484
6583
|
sx: detailTextStyle,
|
|
@@ -6498,5 +6597,5 @@ const EventsList = ({
|
|
|
6498
6597
|
})]
|
|
6499
6598
|
});
|
|
6500
6599
|
};
|
|
6501
|
-
export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CalendarDropdown, CourseList, CourseStatus, Eventos, EventsList, FlashNotification, index as Icons, Label, ModalAlert, NewTooltip, Progress, Resources, Ripples, TinyAlert, UserWay, UserWayCookie, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
|
|
6600
|
+
export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CalendarDropdown, CourseList, CourseStatus, Eventos, EventsList, FlashNotification, index as Icons, Label, ModalAlert, NavBarButton, NewTooltip, Progress, Resources, Ripples, TinyAlert, UserWay, UserWayCookie, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
|
|
6502
6601
|
//# sourceMappingURL=eclass-ui-kit.es.js.map
|