mirror of
https://github.com/usememos/memos.git
synced 2025-04-13 00:52:07 +02:00
chore: update input source
This commit is contained in:
parent
12bcf65f7d
commit
db2b34a850
@ -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.14",
|
"@usememos/mui": "0.0.1-alpha.20",
|
||||||
"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.14
|
specifier: 0.0.1-alpha.20
|
||||||
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)
|
version: 0.0.1-alpha.20(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.14':
|
'@usememos/mui@0.0.1-alpha.20':
|
||||||
resolution: {integrity: sha512-KzLIWkTPVisukxfa6j9LtCmlJpO3QxOe9JFwUDV6AkIqw4QKkVK6Rl+DZu8N9uKSoAiNbg6gbu9vj+Ox3crmug==}
|
resolution: {integrity: sha512-O0wvI5z+ndKHLek+Be5t8e+KOSxPf0gHKJh8wu+M05bSzMldqs1dlm0kaP4bSW5rUifOybrEe0IUsesyg+eJzQ==}
|
||||||
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.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)':
|
'@usememos/mui@0.0.1-alpha.20(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,5 +1,4 @@
|
|||||||
import { Input } from "@mui/joy";
|
import { Button, Input } from "@usememos/mui";
|
||||||
import { Button } from "@usememos/mui";
|
|
||||||
import { XIcon } from "lucide-react";
|
import { XIcon } from "lucide-react";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Input, Radio, RadioGroup } from "@mui/joy";
|
import { Radio, RadioGroup } from "@mui/joy";
|
||||||
import { Button } from "@usememos/mui";
|
import { Button, Input } from "@usememos/mui";
|
||||||
import { XIcon } from "lucide-react";
|
import { XIcon } from "lucide-react";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Divider, Input, Option, Select, Typography } from "@mui/joy";
|
import { Divider, Option, Select, Typography } from "@mui/joy";
|
||||||
import { Button } from "@usememos/mui";
|
import { Button, Input } from "@usememos/mui";
|
||||||
import { XIcon } from "lucide-react";
|
import { XIcon } from "lucide-react";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import { Input } from "@mui/joy";
|
import { Button, Input } from "@usememos/mui";
|
||||||
import { Button } from "@usememos/mui";
|
|
||||||
import { XIcon } from "lucide-react";
|
import { XIcon } from "lucide-react";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import { Input } from "@mui/joy";
|
import { Button, Input } from "@usememos/mui";
|
||||||
import { Button } from "@usememos/mui";
|
|
||||||
import { LatLng } from "leaflet";
|
import { LatLng } from "leaflet";
|
||||||
import { MapPinIcon, XIcon } from "lucide-react";
|
import { MapPinIcon, XIcon } from "lucide-react";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
@ -111,19 +110,19 @@ const LocationSelector = (props: Props) => {
|
|||||||
<div className="min-w-80 sm:w-128 flex flex-col justify-start items-start">
|
<div className="min-w-80 sm:w-128 flex flex-col justify-start items-start">
|
||||||
<LeafletMap key={JSON.stringify(state.initilized)} latlng={state.position} onChange={onPositionChanged} />
|
<LeafletMap key={JSON.stringify(state.initilized)} latlng={state.position} onChange={onPositionChanged} />
|
||||||
<div className="mt-2 w-full flex flex-row justify-between items-center gap-2">
|
<div className="mt-2 w-full flex flex-row justify-between items-center gap-2">
|
||||||
<Input
|
<div className="flex flex-row items-center justify-start gap-2">
|
||||||
placeholder="Choose a position first."
|
{state.position && (
|
||||||
value={state.placeholder}
|
<span className="text-sm">
|
||||||
disabled={!state.position}
|
[{state.position.lat.toFixed(2)}, {state.position.lng.toFixed(2)}]
|
||||||
startDecorator={
|
</span>
|
||||||
state.position ? (
|
)}
|
||||||
<span>
|
<Input
|
||||||
[{state.position.lat.toFixed(3)}, {state.position.lng.toFixed(3)}]
|
placeholder="Choose a position first."
|
||||||
</span>
|
value={state.placeholder}
|
||||||
) : null
|
disabled={!state.position}
|
||||||
}
|
onChange={(e) => setState((state) => ({ ...state, placeholder: e.target.value }))}
|
||||||
onChange={(e) => setState((state) => ({ ...state, placeholder: e.target.value }))}
|
/>
|
||||||
/>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
className="shrink-0"
|
className="shrink-0"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import { Input } from "@mui/joy";
|
import { Button, Checkbox, Input } 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";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Input, List, ListItem } from "@mui/joy";
|
import { List, ListItem } from "@mui/joy";
|
||||||
import { Button } from "@usememos/mui";
|
import { Button, Input } from "@usememos/mui";
|
||||||
import { XIcon } from "lucide-react";
|
import { XIcon } from "lucide-react";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
@ -63,18 +63,11 @@ const RenameTagDialog: React.FC<Props> = (props: Props) => {
|
|||||||
<div className="w-full flex flex-col justify-start items-start mb-3">
|
<div className="w-full flex flex-col justify-start items-start mb-3">
|
||||||
<div className="relative w-full mb-2 flex flex-row justify-start items-center space-x-2">
|
<div className="relative w-full mb-2 flex flex-row justify-start items-center space-x-2">
|
||||||
<span className="w-20 text-sm whitespace-nowrap shrink-0 text-right">Old Name</span>
|
<span className="w-20 text-sm whitespace-nowrap shrink-0 text-right">Old Name</span>
|
||||||
<Input className="w-full" readOnly disabled type="text" placeholder="A new tag name" size="md" value={tag} />
|
<Input className="w-full" readOnly disabled type="text" placeholder="A new tag name" value={tag} />
|
||||||
</div>
|
</div>
|
||||||
<div className="relative w-full mb-2 flex flex-row justify-start items-center space-x-2">
|
<div className="relative w-full mb-2 flex flex-row justify-start items-center space-x-2">
|
||||||
<span className="w-20 text-sm whitespace-nowrap shrink-0 text-right">New Name</span>
|
<span className="w-20 text-sm whitespace-nowrap shrink-0 text-right">New Name</span>
|
||||||
<Input
|
<Input className="w-full" type="text" placeholder="A new tag name" value={newName} onChange={handleTagNameInputChange} />
|
||||||
className="w-full"
|
|
||||||
type="text"
|
|
||||||
placeholder="A new tag name"
|
|
||||||
size="md"
|
|
||||||
value={newName}
|
|
||||||
onChange={handleTagNameInputChange}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<List size="sm" marker="disc">
|
<List size="sm" marker="disc">
|
||||||
<ListItem>
|
<ListItem>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Dropdown, Input, Menu, MenuButton, MenuItem, Radio, RadioGroup } from "@mui/joy";
|
import { Dropdown, Menu, MenuButton, MenuItem, Radio, RadioGroup } from "@mui/joy";
|
||||||
import { Button } from "@usememos/mui";
|
import { Button, Input } from "@usememos/mui";
|
||||||
import { sortBy } from "lodash-es";
|
import { sortBy } from "lodash-es";
|
||||||
import { MoreVerticalIcon } from "lucide-react";
|
import { MoreVerticalIcon } from "lucide-react";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Input, Switch, Select, Option, Chip, ChipDelete } from "@mui/joy";
|
import { Switch, Select, Option, Chip, ChipDelete } from "@mui/joy";
|
||||||
import { Button } from "@usememos/mui";
|
import { Button, Input } from "@usememos/mui";
|
||||||
import { isEqual, uniq } from "lodash-es";
|
import { isEqual, uniq } from "lodash-es";
|
||||||
import { CheckIcon } from "lucide-react";
|
import { CheckIcon } from "lucide-react";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Divider, Input, List, ListItem, Radio, RadioGroup, Tooltip } from "@mui/joy";
|
import { Divider, List, ListItem, Radio, RadioGroup, Tooltip } from "@mui/joy";
|
||||||
import { Button } from "@usememos/mui";
|
import { Button, Input } from "@usememos/mui";
|
||||||
import { isEqual } from "lodash-es";
|
import { isEqual } from "lodash-es";
|
||||||
import { HelpCircleIcon } from "lucide-react";
|
import { HelpCircleIcon } from "lucide-react";
|
||||||
import { useMemo, useState } from "react";
|
import { useMemo, useState } from "react";
|
||||||
@ -136,14 +136,7 @@ const StorageSection = () => {
|
|||||||
<HelpCircleIcon className="w-4 h-auto" />
|
<HelpCircleIcon className="w-4 h-auto" />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
<Input
|
<Input className="w-16 font-mono" value={workspaceStorageSetting.uploadSizeLimitMb} onChange={handleMaxUploadSizeChanged} />
|
||||||
className="w-16"
|
|
||||||
sx={{
|
|
||||||
fontFamily: "monospace",
|
|
||||||
}}
|
|
||||||
value={workspaceStorageSetting.uploadSizeLimitMb}
|
|
||||||
onChange={handleMaxUploadSizeChanged}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
{workspaceStorageSetting.storageType !== WorkspaceStorageSetting_StorageType.DATABASE && (
|
{workspaceStorageSetting.storageType !== WorkspaceStorageSetting_StorageType.DATABASE && (
|
||||||
<div className="w-full flex flex-row justify-between items-center">
|
<div className="w-full flex flex-row justify-between items-center">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Input, Textarea } from "@mui/joy";
|
import { Textarea } from "@mui/joy";
|
||||||
import { Button } from "@usememos/mui";
|
import { Button, Input } from "@usememos/mui";
|
||||||
import { isEqual } from "lodash-es";
|
import { isEqual } from "lodash-es";
|
||||||
import { XIcon } from "lucide-react";
|
import { XIcon } from "lucide-react";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
@ -193,7 +193,7 @@ const UpdateAccountDialog: React.FC<Props> = ({ destroy }: Props) => {
|
|||||||
{t("common.email")}
|
{t("common.email")}
|
||||||
<span className="text-sm text-gray-400 ml-1">({t("setting.account-section.email-note")})</span>
|
<span className="text-sm text-gray-400 ml-1">({t("setting.account-section.email-note")})</span>
|
||||||
</p>
|
</p>
|
||||||
<Input className="w-full" type="email" value={state.email} onChange={handleEmailChanged} />
|
<Input fullWidth type="email" value={state.email} onChange={handleEmailChanged} />
|
||||||
<p className="text-sm">{t("common.description")}</p>
|
<p className="text-sm">{t("common.description")}</p>
|
||||||
<Textarea
|
<Textarea
|
||||||
className="w-full"
|
className="w-full"
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { Input } from "@mui/joy";
|
|
||||||
import Textarea from "@mui/joy/Textarea/Textarea";
|
import Textarea from "@mui/joy/Textarea/Textarea";
|
||||||
import { Button } from "@usememos/mui";
|
import { Button, Input } from "@usememos/mui";
|
||||||
import { XIcon } from "lucide-react";
|
import { XIcon } from "lucide-react";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Divider, Input, Tooltip } from "@mui/joy";
|
import { Divider, Tooltip } from "@mui/joy";
|
||||||
import { Button } from "@usememos/mui";
|
import { Button, Input } from "@usememos/mui";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { includes } from "lodash-es";
|
import { includes } from "lodash-es";
|
||||||
import { PaperclipIcon, SearchIcon, TrashIcon } from "lucide-react";
|
import { PaperclipIcon, SearchIcon, TrashIcon } from "lucide-react";
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import { Input } from "@mui/joy";
|
import { Button, Input } from "@usememos/mui";
|
||||||
import { Button } 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 { useState } from "react";
|
import { useState } from "react";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user