mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update checkbox source
This commit is contained in:
@ -19,7 +19,7 @@
|
|||||||
"@mui/joy": "5.0.0-beta.48",
|
"@mui/joy": "5.0.0-beta.48",
|
||||||
"@radix-ui/react-popover": "^1.1.2",
|
"@radix-ui/react-popover": "^1.1.2",
|
||||||
"@reduxjs/toolkit": "^2.3.0",
|
"@reduxjs/toolkit": "^2.3.0",
|
||||||
"@usememos/mui": "0.0.1-alpha.10",
|
"@usememos/mui": "0.0.1-alpha.14",
|
||||||
"class-variance-authority": "^0.7.0",
|
"class-variance-authority": "^0.7.0",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"copy-to-clipboard": "^3.3.3",
|
"copy-to-clipboard": "^3.3.3",
|
||||||
|
10
web/pnpm-lock.yaml
generated
10
web/pnpm-lock.yaml
generated
@ -39,8 +39,8 @@ importers:
|
|||||||
specifier: ^2.3.0
|
specifier: ^2.3.0
|
||||||
version: 2.3.0(react-redux@9.1.2(@types/react@18.3.12)(react@18.3.1)(redux@5.0.1))(react@18.3.1)
|
version: 2.3.0(react-redux@9.1.2(@types/react@18.3.12)(react@18.3.1)(redux@5.0.1))(react@18.3.1)
|
||||||
'@usememos/mui':
|
'@usememos/mui':
|
||||||
specifier: 0.0.1-alpha.10
|
specifier: 0.0.1-alpha.14
|
||||||
version: 0.0.1-alpha.10(lucide-react@0.453.0(react@18.3.1))(postcss@8.4.47)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(tailwind-merge@2.5.4)(tailwindcss@3.4.14)
|
version: 0.0.1-alpha.14(lucide-react@0.453.0(react@18.3.1))(postcss@8.4.47)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(tailwind-merge@2.5.4)(tailwindcss@3.4.14)
|
||||||
class-variance-authority:
|
class-variance-authority:
|
||||||
specifier: ^0.7.0
|
specifier: ^0.7.0
|
||||||
version: 0.7.0
|
version: 0.7.0
|
||||||
@ -1409,8 +1409,8 @@ packages:
|
|||||||
'@ungap/structured-clone@1.2.0':
|
'@ungap/structured-clone@1.2.0':
|
||||||
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
|
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
|
||||||
|
|
||||||
'@usememos/mui@0.0.1-alpha.10':
|
'@usememos/mui@0.0.1-alpha.14':
|
||||||
resolution: {integrity: sha512-jyEQ4sgmYCxOWEyuUat7MqQN7Gy4PohQxnLvIje0upqu2zT2AaI0GhOPs/t2HkYK09tFXLAVnhp2I+6jBBhfIg==}
|
resolution: {integrity: sha512-KzLIWkTPVisukxfa6j9LtCmlJpO3QxOe9JFwUDV6AkIqw4QKkVK6Rl+DZu8N9uKSoAiNbg6gbu9vj+Ox3crmug==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
lucide-react: ^0.453.0
|
lucide-react: ^0.453.0
|
||||||
postcss: ^8.4.47
|
postcss: ^8.4.47
|
||||||
@ -4642,7 +4642,7 @@ snapshots:
|
|||||||
|
|
||||||
'@ungap/structured-clone@1.2.0': {}
|
'@ungap/structured-clone@1.2.0': {}
|
||||||
|
|
||||||
'@usememos/mui@0.0.1-alpha.10(lucide-react@0.453.0(react@18.3.1))(postcss@8.4.47)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(tailwind-merge@2.5.4)(tailwindcss@3.4.14)':
|
'@usememos/mui@0.0.1-alpha.14(lucide-react@0.453.0(react@18.3.1))(postcss@8.4.47)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(tailwind-merge@2.5.4)(tailwindcss@3.4.14)':
|
||||||
dependencies:
|
dependencies:
|
||||||
lucide-react: 0.453.0(react@18.3.1)
|
lucide-react: 0.453.0(react@18.3.1)
|
||||||
postcss: 8.4.47
|
postcss: 8.4.47
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Checkbox } from "@mui/joy";
|
import { Checkbox } from "@usememos/mui";
|
||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
import { useContext, useState } from "react";
|
import { useContext, useState } from "react";
|
||||||
import { markdownServiceClient } from "@/grpcweb";
|
import { markdownServiceClient } from "@/grpcweb";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Autocomplete, AutocompleteOption, Checkbox, Chip } from "@mui/joy";
|
import { Autocomplete, AutocompleteOption, Chip } from "@mui/joy";
|
||||||
import { Button } from "@usememos/mui";
|
import { Button, Checkbox } from "@usememos/mui";
|
||||||
import { uniqBy } from "lodash-es";
|
import { uniqBy } from "lodash-es";
|
||||||
import { LinkIcon } from "lucide-react";
|
import { LinkIcon } from "lucide-react";
|
||||||
import React, { useContext, useState } from "react";
|
import React, { useContext, useState } from "react";
|
||||||
@ -130,7 +130,7 @@ const AddMemoRelationPopover = (props: Props) => {
|
|||||||
return (
|
return (
|
||||||
<Popover open={popoverOpen} onOpenChange={setPopoverOpen}>
|
<Popover open={popoverOpen} onOpenChange={setPopoverOpen}>
|
||||||
<PopoverTrigger>
|
<PopoverTrigger>
|
||||||
<Button className="px-2" variant="plain">
|
<Button size="sm" variant="plain">
|
||||||
<LinkIcon className="w-5 h-5 mx-auto" />
|
<LinkIcon className="w-5 h-5 mx-auto" />
|
||||||
</Button>
|
</Button>
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
|
@ -95,7 +95,7 @@ const LocationSelector = (props: Props) => {
|
|||||||
return (
|
return (
|
||||||
<Popover open={popoverOpen} onOpenChange={setPopoverOpen}>
|
<Popover open={popoverOpen} onOpenChange={setPopoverOpen}>
|
||||||
<PopoverTrigger>
|
<PopoverTrigger>
|
||||||
<Button className="group px-2" variant="plain">
|
<Button className="group" size="sm" variant="plain">
|
||||||
<MapPinIcon className="w-5 h-5 mx-auto shrink-0" />
|
<MapPinIcon className="w-5 h-5 mx-auto shrink-0" />
|
||||||
{props.location && (
|
{props.location && (
|
||||||
<>
|
<>
|
||||||
|
@ -65,7 +65,6 @@ const MarkdownMenu = (props: Props) => {
|
|||||||
root: {
|
root: {
|
||||||
size: "sm",
|
size: "sm",
|
||||||
variant: "plain",
|
variant: "plain",
|
||||||
className: "px-2",
|
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
@ -47,7 +47,6 @@ const TagSelector = (props: Props) => {
|
|||||||
root: {
|
root: {
|
||||||
size: "sm",
|
size: "sm",
|
||||||
variant: "plain",
|
variant: "plain",
|
||||||
className: "px-2",
|
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
@ -66,7 +66,7 @@ const UploadResourceButton = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button className="px-2 relative" size="sm" variant="plain" disabled={state.uploadingFlag}>
|
<Button className="relative" size="sm" variant="plain" disabled={state.uploadingFlag}>
|
||||||
<PaperclipIcon className="w-5 h-5 mx-auto" />
|
<PaperclipIcon className="w-5 h-5 mx-auto" />
|
||||||
<input
|
<input
|
||||||
className="absolute inset-0 w-full h-full opacity-0 cursor-pointer"
|
className="absolute inset-0 w-full h-full opacity-0 cursor-pointer"
|
||||||
|
@ -465,7 +465,9 @@ const MemoEditor = (props: Props) => {
|
|||||||
<div className="w-full flex flex-row justify-between items-center py-3 dark:border-t-zinc-500">
|
<div className="w-full flex flex-row justify-between items-center py-3 dark:border-t-zinc-500">
|
||||||
<div className="relative flex flex-row justify-start items-center" onFocus={(e) => e.stopPropagation()}>
|
<div className="relative flex flex-row justify-start items-center" onFocus={(e) => e.stopPropagation()}>
|
||||||
<Select
|
<Select
|
||||||
|
className="!text-sm"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
|
size="md"
|
||||||
value={state.memoVisibility}
|
value={state.memoVisibility}
|
||||||
startDecorator={<VisibilityIcon visibility={state.memoVisibility} />}
|
startDecorator={<VisibilityIcon visibility={state.memoVisibility} />}
|
||||||
onChange={(_, visibility) => {
|
onChange={(_, visibility) => {
|
||||||
@ -475,7 +477,7 @@ const MemoEditor = (props: Props) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{[Visibility.PRIVATE, Visibility.PROTECTED, Visibility.PUBLIC].map((item) => (
|
{[Visibility.PRIVATE, Visibility.PROTECTED, Visibility.PUBLIC].map((item) => (
|
||||||
<Option key={item} value={item} className="whitespace-nowrap">
|
<Option key={item} value={item} className="whitespace-nowrap !text-sm">
|
||||||
{t(`memo.visibility.${convertVisibilityToString(item).toLowerCase()}` as any)}
|
{t(`memo.visibility.${convertVisibilityToString(item).toLowerCase()}` as any)}
|
||||||
</Option>
|
</Option>
|
||||||
))}
|
))}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Checkbox, Input } from "@mui/joy";
|
import { Input } from "@mui/joy";
|
||||||
import { Button } from "@usememos/mui";
|
import { Button, Checkbox } from "@usememos/mui";
|
||||||
import { LoaderIcon } from "lucide-react";
|
import { LoaderIcon } from "lucide-react";
|
||||||
import { ClientError } from "nice-grpc-web";
|
import { ClientError } from "nice-grpc-web";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
@ -101,12 +101,7 @@ const PasswordSignInForm = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-row justify-start items-center w-full mt-6">
|
<div className="flex flex-row justify-start items-center w-full mt-6">
|
||||||
<Checkbox
|
<Checkbox label={t("common.remember-me")} checked={remember} onChange={(e) => setRemember(e.target.checked)} />
|
||||||
className="dark:!text-gray-400"
|
|
||||||
label={t("common.remember-me")}
|
|
||||||
checked={remember}
|
|
||||||
onChange={(e) => setRemember(e.target.checked)}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-row justify-end items-center w-full mt-6">
|
<div className="flex flex-row justify-end items-center w-full mt-6">
|
||||||
<Button
|
<Button
|
||||||
|
@ -97,7 +97,6 @@ const SignIn = () => {
|
|||||||
{identityProviderList.map((identityProvider) => (
|
{identityProviderList.map((identityProvider) => (
|
||||||
<Button
|
<Button
|
||||||
key={identityProvider.name}
|
key={identityProvider.name}
|
||||||
color="primary"
|
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
fullWidth
|
fullWidth
|
||||||
onClick={() => handleSignInWithIdentityProvider(identityProvider)}
|
onClick={() => handleSignInWithIdentityProvider(identityProvider)}
|
||||||
|
Reference in New Issue
Block a user