запрет на выделение Typography

This commit is contained in:
Nastya 2025-09-30 23:02:35 +03:00
parent 4098f19a52
commit 548980eb4c
7 changed files with 58 additions and 9 deletions

@ -10,7 +10,7 @@ export default function ArrowDownIcon(props: any, { color = "#7E2AEA" }: Color)
<Box
{...props}
sx={{
top: "25% !important",
top: "25%",
height: "24px",
width: "24px",
display: "flex",
@ -18,7 +18,13 @@ export default function ArrowDownIcon(props: any, { color = "#7E2AEA" }: Color)
justifyContent: "center",
}}
>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
>
<path
d="M19.5 9L12 16.5L4.5 9"
stroke="currentColor"

@ -47,7 +47,7 @@ export default function QuestionSelect({ selectedQuestion, setQuestion }: Props)
height: "48px",
borderRadius: "8px",
"& .MuiOutlinedInput-notchedOutline": {
border: `1px solid ${theme.palette.primary.main} !important`,
border: `1px solid ${theme.palette.primary.main}`,
},
"& .MuiSelect-icon": {
color: theme.palette.primary.main,

@ -67,7 +67,7 @@ export const Select = ({
height: "48px",
borderRadius: "8px",
"& .MuiOutlinedInput-notchedOutline": {
border: `1px solid ${colorMain} !important`,
border: `1px solid ${colorMain}`,
borderRadius: "10px",
},
"& .MuiSelect-icon": {

@ -4,6 +4,7 @@ import theme from "../generic";
const themePublic = createTheme({
...theme,
components: {
...theme.components,
MuiButton: {
variants: [
{

@ -33,6 +33,20 @@ const theme = createTheme({
p1: "p",
},
},
styleOverrides: {
root: {
userSelect: "none",
WebkitUserSelect: "none",
MozUserSelect: "none",
msUserSelect: "none",
"& *": {
userSelect: "none",
WebkitUserSelect: "none",
MozUserSelect: "none",
msUserSelect: "none",
},
},
},
},
MuiButton: {
variants: [

28
run-tests.sh Normal file

@ -0,0 +1,28 @@
#!/bin/bash
echo "🧪 Запуск тестов для useQuestionTimer"
echo "======================================"
# Проверяем, установлены ли зависимости
if [ ! -d "node_modules" ]; then
echo "📦 Устанавливаем зависимости..."
npm install
fi
echo ""
echo "🔍 Запускаем все тесты..."
npm run test:run
echo ""
echo "📊 Запускаем тесты с покрытием..."
npm run test:coverage
echo ""
echo "✅ Тесты завершены!"
echo ""
echo "💡 Полезные команды:"
echo " npm run test - Запуск тестов в watch режиме"
echo " npm run test:ui - Запуск тестов с UI интерфейсом"
echo " npm run test:run - Запуск тестов один раз"
echo " npm run test:coverage - Запуск тестов с покрытием"

@ -20520,7 +20520,7 @@ const Ya = Se("MuiInputBase", [
e.vars ? { opacity: e.vars.opacity.inputPlaceholder } : { opacity: n ? 0.42 : 0.5 },
{ transition: e.transitions.create("opacity", { duration: e.transitions.duration.shorter }) }
),
o = { opacity: "0 !important" },
o = { opacity: "0" },
i = e.vars ? { opacity: e.vars.opacity.inputPlaceholder } : { opacity: n ? 0.42 : 0.5 };
return S(
{
@ -21770,7 +21770,7 @@ const uu = Se("MuiDialog", [
return Ee(s, ZF, t);
},
nL = W(t5, { name: "MuiDialog", slot: "Root", overridesResolver: (e, t) => t.root })({
"@media print": { position: "absolute !important" },
"@media print": { position: "absolute" },
}),
rL = W("div", {
name: "MuiDialog",
@ -43655,7 +43655,7 @@ function Oq(e, { color: t = "#7E2AEA" }) {
f.jsx(H, {
...e,
sx: {
top: "25% !important",
top: "25%",
height: "24px",
width: "24px",
display: "flex",
@ -43717,7 +43717,7 @@ const Fq = ({
width: "100%",
height: "48px",
borderRadius: "8px",
"& .MuiOutlinedInput-notchedOutline": { border: `1px solid ${s} !important`, borderRadius: "10px" },
"& .MuiOutlinedInput-notchedOutline": { border: `1px solid ${s}`, borderRadius: "10px" },
"& .MuiSelect-icon": { color: c.palette.primary.main },
},
MenuProps: {
@ -44740,7 +44740,7 @@ function Zq({ selectedQuestion: e, setQuestion: t }) {
sx: {
height: "48px",
borderRadius: "8px",
"& .MuiOutlinedInput-notchedOutline": { border: `1px solid ${n.palette.primary.main} !important` },
"& .MuiOutlinedInput-notchedOutline": { border: `1px solid ${n.palette.primary.main}` },
"& .MuiSelect-icon": { color: n.palette.primary.main },
},
MenuProps: {