mtxuilib 0.0.369 → 0.0.371
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/esm/connectes/ConnectEs.d.ts +1 -1
- package/dist/esm/connectes/ConnectEs.js +1 -1
- package/dist/styles/globals.css +219 -0
- package/dist/styles/prosemirror.css +171 -0
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/App.cjs +0 -47
- package/dist/MtmButton.cjs +0 -31
- package/dist/NovelEditorLoader.cjs +0 -40
- package/dist/common/FullCenter.cjs +0 -33
- package/dist/common/MtImage.cjs +0 -86
- package/dist/common/mtlink.cjs +0 -86
- package/dist/common/table/cells/ExpenderCell.cjs +0 -60
- package/dist/common/table/cells/SelectCell.cjs +0 -61
- package/dist/common/table/cells/Text.cjs +0 -50
- package/dist/common/table/cells/ViewLink.cjs +0 -61
- package/dist/common/table/cells/container/cellWrapper.cjs +0 -32
- package/dist/common/table/cells/number.cjs +0 -47
- package/dist/common/table/cells/string.cjs +0 -52
- package/dist/common/table/data-table-pagination.cjs +0 -124
- package/dist/common/table/data-table-view-options.cjs +0 -68
- package/dist/common/table/datatable-view-options.cjs +0 -17
- package/dist/common/tailwind-indicator.cjs +0 -41
- package/dist/components/Header.cjs +0 -39
- package/dist/components/PageCmds.cjs +0 -79
- package/dist/components/PageSearchCmd.cjs +0 -98
- package/dist/components/PostCard.cjs +0 -58
- package/dist/components/SideNav.cjs +0 -102
- package/dist/components/common/NotFoundGoBack.cjs +0 -47
- package/dist/components/common/react-markdown/Code.cjs +0 -64
- package/dist/components/common/react-markdown/MarkdownToolbar.cjs +0 -43
- package/dist/components/common/react-markdown/ReactMarkdownExample.cjs +0 -65
- package/dist/components/common/theme/mode-toggle.cjs +0 -48
- package/dist/components/common/theme/theme-toggle.cjs +0 -48
- package/dist/components/common/tiptap/MenuBar.cjs +0 -189
- package/dist/components/common/tiptap/TiptapEditor.cjs +0 -99
- package/dist/components/common/tiptap/examples/Demo-Default.cjs +0 -249
- package/dist/components/common/tiptap/examples/Demo-Tiptap.cjs +0 -50
- package/dist/connectes/ConnectEs.cjs +0 -96
- package/dist/connectes/connectquery/call-unary-method.cjs +0 -71
- package/dist/connectes/connectquery/connect-query-key.cjs +0 -40
- package/dist/connectes/connectquery/create-use-infinite-query-options.cjs +0 -112
- package/dist/connectes/connectquery/create-use-query-options.cjs +0 -96
- package/dist/connectes/connectquery/default-options.cjs +0 -43
- package/dist/connectes/connectquery/index.cjs +0 -65
- package/dist/connectes/connectquery/method-unary-descriptor.cjs +0 -16
- package/dist/connectes/connectquery/use-infinite-query.cjs +0 -107
- package/dist/connectes/connectquery/use-mutation.cjs +0 -101
- package/dist/connectes/connectquery/use-query.cjs +0 -95
- package/dist/connectes/connectquery/use-transport.cjs +0 -49
- package/dist/connectes/connectquery/utils.cjs +0 -51
- package/dist/consts.cjs +0 -109
- package/dist/demos/bigcode/BigCode.cjs +0 -37
- package/dist/demos/suspense-ssr/ExampleLazyComponent.cjs +0 -47
- package/dist/demos/suspense-ssr/ExampleOg.cjs +0 -44
- package/dist/demos/suspense-ssr/ExampleProviderProviders.cjs +0 -36
- package/dist/demos/suspense-ssr/ReadMe.cjs +0 -49
- package/dist/demos/suspense-ssr/examples.cjs +0 -95
- package/dist/demos/suspense-ssr/examplesPostDetail.cjs +0 -50
- package/dist/demos/suspense-ssr/examplesPosts.cjs +0 -59
- package/dist/demos/suspense-ssr/lib.cjs +0 -58
- package/dist/entry-client.cjs +0 -32
- package/dist/entry-server.cjs +0 -48
- package/dist/esm/connectes/connectquery/call-unary-method.d.ts +0 -8
- package/dist/esm/connectes/connectquery/call-unary-method.js +0 -1
- package/dist/esm/connectes/connectquery/connect-query-key.d.ts +0 -16
- package/dist/esm/connectes/connectquery/connect-query-key.js +0 -1
- package/dist/esm/connectes/connectquery/create-use-infinite-query-options.d.ts +0 -21
- package/dist/esm/connectes/connectquery/create-use-infinite-query-options.js +0 -1
- package/dist/esm/connectes/connectquery/create-use-query-options.d.ts +0 -19
- package/dist/esm/connectes/connectquery/create-use-query-options.js +0 -1
- package/dist/esm/connectes/connectquery/default-options.d.ts +0 -6
- package/dist/esm/connectes/connectquery/default-options.js +0 -1
- package/dist/esm/connectes/connectquery/index.d.ts +0 -16
- package/dist/esm/connectes/connectquery/index.js +0 -1
- package/dist/esm/connectes/connectquery/method-unary-descriptor.d.ts +0 -4
- package/dist/esm/connectes/connectquery/method-unary-descriptor.js +0 -0
- package/dist/esm/connectes/connectquery/use-infinite-query.d.ts +0 -12
- package/dist/esm/connectes/connectquery/use-infinite-query.js +0 -1
- package/dist/esm/connectes/connectquery/use-mutation.d.ts +0 -10
- package/dist/esm/connectes/connectquery/use-mutation.js +0 -1
- package/dist/esm/connectes/connectquery/use-query.d.ts +0 -12
- package/dist/esm/connectes/connectquery/use-query.js +0 -1
- package/dist/esm/connectes/connectquery/use-transport.d.ts +0 -7
- package/dist/esm/connectes/connectquery/use-transport.js +0 -1
- package/dist/esm/connectes/connectquery/utils.d.ts +0 -12
- package/dist/esm/connectes/connectquery/utils.js +0 -1
- package/dist/form/EditFormToolbar.cjs +0 -148
- package/dist/form/MtFormPopupHolder.cjs +0 -186
- package/dist/form/MtFormV3.cjs +0 -124
- package/dist/form/SchemaFormViewV2.cjs +0 -153
- package/dist/form/ZodForm.cjs +0 -117
- package/dist/form/deleteConform.cjs +0 -151
- package/dist/hooks/use-local-storage.cjs +0 -39
- package/dist/hooks/use-lock-body.cjs +0 -47
- package/dist/hooks/use-media-query.cjs +0 -82
- package/dist/hooks/use-mounted.cjs +0 -45
- package/dist/hooks/use-mutation-observer.cjs +0 -52
- package/dist/hooks/use-router.cjs +0 -93
- package/dist/hooks/useIsIntersecting.cjs +0 -59
- package/dist/hooks/useScript.cjs +0 -101
- package/dist/icons/DotsHorizontalIcon.cjs +0 -28
- package/dist/icons/icons.cjs +0 -296
- package/dist/index.cjs +0 -29
- package/dist/layouts/mail-layout.cjs +0 -142
- package/dist/lib/clientlib/clientlib.cjs +0 -72
- package/dist/lib/clientlib/domutils.cjs +0 -39
- package/dist/lib/clientlib/selectPath.cjs +0 -69
- package/dist/lib/errors.cjs +0 -37
- package/dist/lib/htmlparse/components/ItemActionButton.cjs +0 -109
- package/dist/lib/htmlparse/htmlParse.cjs +0 -113
- package/dist/lib/http/cors.cjs +0 -151
- package/dist/lib/http/fetchMiddleWithCache.cjs +0 -111
- package/dist/lib/http/fetchMiddleWithUrlProxy.cjs +0 -53
- package/dist/lib/http/mthttp.cjs +0 -88
- package/dist/lib/http/response-cache.test.cjs +0 -73
- package/dist/lib/jotai-helper.cjs +0 -122
- package/dist/lib/mt-logger.cjs +0 -125
- package/dist/lib/queue.cjs +0 -70
- package/dist/lib/render.cjs +0 -59
- package/dist/lib/service-worker.cjs +0 -49
- package/dist/lib/sscore.cjs +0 -77
- package/dist/lib/sslib/github-file.cjs +0 -63
- package/dist/lib/sslib/mtmcore.cjs +0 -46
- package/dist/lib/strings.cjs +0 -34
- package/dist/lib/time.cjs +0 -31
- package/dist/lib/trpc/MutationCallButton.cjs +0 -57
- package/dist/lib/url.cjs +0 -94
- package/dist/lib/useScript.cjs +0 -101
- package/dist/lib/utils.cjs +0 -348
- package/dist/misc/CustomErrorRetry.cjs +0 -39
- package/dist/misc/MtErrorBoundary.cjs +0 -72
- package/dist/misc/MtErrorBoundary.stories.cjs +0 -76
- package/dist/misc/MtErrorBoundaryV2.cjs +0 -47
- package/dist/misc/MtErrorBoundaryV2.stories.cjs +0 -57
- package/dist/types/common.cjs +0 -16
- package/dist/types/index.d.cjs +0 -16
- package/dist/types/page.d.cjs +0 -16
- package/dist/types/process.d.cjs +0 -1
- package/dist/types/types.cjs +0 -16
- package/dist/ui/accordion.cjs +0 -125
- package/dist/ui/alert-dialog.cjs +0 -209
- package/dist/ui/alert.cjs +0 -119
- package/dist/ui/aspect-ratio.cjs +0 -40
- package/dist/ui/avatar.cjs +0 -111
- package/dist/ui/badge.cjs +0 -78
- package/dist/ui/button.cjs +0 -109
- package/dist/ui/calendar.cjs +0 -121
- package/dist/ui/card.cjs +0 -139
- package/dist/ui/checkbox.cjs +0 -94
- package/dist/ui/collapsible.cjs +0 -46
- package/dist/ui/command.cjs +0 -199
- package/dist/ui/context-menu.cjs +0 -251
- package/dist/ui/dialog.cjs +0 -192
- package/dist/ui/drawer.cjs +0 -192
- package/dist/ui/dropdown-menu.cjs +0 -250
- package/dist/ui/form.cjs +0 -179
- package/dist/ui/hover-card.cjs +0 -90
- package/dist/ui/input.cjs +0 -83
- package/dist/ui/label.cjs +0 -83
- package/dist/ui/menubar.cjs +0 -285
- package/dist/ui/navigation-menu.cjs +0 -194
- package/dist/ui/novel/content.cjs +0 -258
- package/dist/ui/novel/novel/src/components/editor-bubble-item.cjs +0 -71
- package/dist/ui/novel/novel/src/components/editor-bubble.cjs +0 -101
- package/dist/ui/novel/novel/src/components/editor-command-item.cjs +0 -84
- package/dist/ui/novel/novel/src/components/editor-command.cjs +0 -136
- package/dist/ui/novel/novel/src/components/editor.cjs +0 -98
- package/dist/ui/novel/novel/src/components/index.cjs +0 -49
- package/dist/ui/novel/novel/src/extensions/ai-highlight.cjs +0 -123
- package/dist/ui/novel/novel/src/extensions/custom-keymap.cjs +0 -60
- package/dist/ui/novel/novel/src/extensions/drag-and-drop.cjs +0 -205
- package/dist/ui/novel/novel/src/extensions/image-resizer.cjs +0 -98
- package/dist/ui/novel/novel/src/extensions/index.cjs +0 -124
- package/dist/ui/novel/novel/src/extensions/slash-command.cjs +0 -140
- package/dist/ui/novel/novel/src/extensions/updated-image.cjs +0 -66
- package/dist/ui/novel/novel/src/plugins/index.cjs +0 -34
- package/dist/ui/novel/novel/src/plugins/upload-images.cjs +0 -139
- package/dist/ui/novel/novel/src/utils/atoms.cjs +0 -32
- package/dist/ui/novel/novel/src/utils/store.cjs +0 -29
- package/dist/ui/novel/novel/src/utils/utils.cjs +0 -56
- package/dist/ui/novel/tailwind/advanced-editor.cjs +0 -179
- package/dist/ui/novel/tailwind/extensions.cjs +0 -155
- package/dist/ui/novel/tailwind/generative/ai-completion-command.cjs +0 -82
- package/dist/ui/novel/tailwind/generative/ai-selector-commands.cjs +0 -93
- package/dist/ui/novel/tailwind/generative/ai-selector.cjs +0 -130
- package/dist/ui/novel/tailwind/generative/generative-menu-switch.cjs +0 -87
- package/dist/ui/novel/tailwind/image-upload.cjs +0 -98
- package/dist/ui/novel/tailwind/selectors/color-selector.cjs +0 -198
- package/dist/ui/novel/tailwind/selectors/link-selector.cjs +0 -128
- package/dist/ui/novel/tailwind/selectors/node-selector.cjs +0 -130
- package/dist/ui/novel/tailwind/selectors/text-buttons.cjs +0 -88
- package/dist/ui/novel/tailwind/slash-command.cjs +0 -168
- package/dist/ui/novel/tailwind/ui/button.cjs +0 -109
- package/dist/ui/novel/tailwind/ui/command.cjs +0 -200
- package/dist/ui/novel/tailwind/ui/dialog.cjs +0 -192
- package/dist/ui/novel/tailwind/ui/icons/crazy-spinner.cjs +0 -32
- package/dist/ui/novel/tailwind/ui/icons/font-default.cjs +0 -52
- package/dist/ui/novel/tailwind/ui/icons/font-mono.cjs +0 -53
- package/dist/ui/novel/tailwind/ui/icons/font-serif.cjs +0 -53
- package/dist/ui/novel/tailwind/ui/icons/github.cjs +0 -38
- package/dist/ui/novel/tailwind/ui/icons/index.cjs +0 -47
- package/dist/ui/novel/tailwind/ui/icons/loading-circle.cjs +0 -52
- package/dist/ui/novel/tailwind/ui/icons/magic.cjs +0 -65
- package/dist/ui/novel/tailwind/ui/menu.cjs +0 -70
- package/dist/ui/novel/tailwind/ui/popover.cjs +0 -90
- package/dist/ui/novel/tailwind/ui/scroll-area.cjs +0 -109
- package/dist/ui/novel/tailwind/ui/separator.cjs +0 -87
- package/dist/ui/novel/tailwind/utils.cjs +0 -42
- package/dist/ui/pagination.cjs +0 -198
- package/dist/ui/popover.cjs +0 -90
- package/dist/ui/progress.cjs +0 -93
- package/dist/ui/radio-group.cjs +0 -102
- package/dist/ui/resizable.cjs +0 -112
- package/dist/ui/scroll-area.cjs +0 -117
- package/dist/ui/select.cjs +0 -176
- package/dist/ui/separator.cjs +0 -87
- package/dist/ui/sheet.cjs +0 -204
- package/dist/ui/skeleton.cjs +0 -68
- package/dist/ui/slider.cjs +0 -90
- package/dist/ui/sonner.cjs +0 -76
- package/dist/ui/switch.cjs +0 -94
- package/dist/ui/table.cjs +0 -171
- package/dist/ui/tabs.cjs +0 -117
- package/dist/ui/textarea.cjs +0 -82
- package/dist/ui/toast.cjs +0 -177
- package/dist/ui/toaster.cjs +0 -77
- package/dist/ui/toggle.cjs +0 -102
- package/dist/ui/tooltip.cjs +0 -92
- package/dist/ui/ui-mt/Button.cjs +0 -70
- package/dist/ui/ui-mt/DropdownMenuItemLink.cjs +0 -61
- package/dist/ui/ui-mt/FullScreenEditPanel.cjs +0 -42
- package/dist/ui/ui-mt/MtForm.cjs +0 -30
- package/dist/ui/ui-mt/NavTag.cjs +0 -59
- package/dist/ui/ui-mt/Separator.cjs +0 -30
- package/dist/ui/ui-mt/SimpleModel.cjs +0 -71
- package/dist/ui/ui-mt/input-field/InputField.cjs +0 -120
- package/dist/ui/ui-mt/input-field/RichEditorInput.cjs +0 -53
- package/dist/ui/ui-mt/input-field/SingleUploadForm.cjs +0 -186
- package/dist/ui/ui-mt/input-field/TextArea.cjs +0 -95
- package/dist/ui/ui-mt/input-field/TextFileInput.cjs +0 -126
- package/dist/ui/ui-mt/input-field/select/InputSelect.cjs +0 -105
- package/dist/ui/ui-mt/input-field/types.cjs +0 -16
- package/dist/ui/ui-mt/inputs/SearchInput.cjs +0 -84
- package/dist/ui/ui-mt/inputs/searchBar.cjs +0 -45
- package/dist/ui/ui-mt/skeleton/skeleton-card.cjs +0 -52
- package/dist/ui/ui-mt/skeleton/skeleton2.cjs +0 -34
- package/dist/ui/ui-mt/skeleton/skeletons.cjs +0 -40
- package/dist/ui/ui-vamp/alert.cjs +0 -161
- package/dist/ui/ui-vamp/avatar.cjs +0 -128
- package/dist/ui/ui-vamp/button.cjs +0 -112
- package/dist/ui/ui-vamp/card.cjs +0 -115
- package/dist/ui/ui-vamp/checkbox.cjs +0 -104
- package/dist/ui/ui-vamp/chip.cjs +0 -91
- package/dist/ui/ui-vamp/dropdown.cjs +0 -128
- package/dist/ui/ui-vamp/external-link.cjs +0 -74
- package/dist/ui/ui-vamp/headline.cjs +0 -34
- package/dist/ui/ui-vamp/input.cjs +0 -103
- package/dist/ui/ui-vamp/keyvalue.cjs +0 -49
- package/dist/ui/ui-vamp/label.cjs +0 -74
- package/dist/ui/ui-vamp/mobile-nav-button.cjs +0 -55
- package/dist/ui/ui-vamp/modal.cjs +0 -113
- package/dist/ui/ui-vamp/pagination.cjs +0 -114
- package/dist/ui/ui-vamp/scroll-area.cjs +0 -112
- package/dist/ui/ui-vamp/skeleton.cjs +0 -67
- package/dist/ui/ui-vamp/stripe-not-connected-modal.cjs +0 -76
- package/dist/ui/ui-vamp/textarea.cjs +0 -99
- package/dist/ui/ui-vamp/toggle-group.cjs +0 -90
- package/dist/ui/use-toast.cjs +0 -187
- package/dist/video-player/mt-video-player.cjs +0 -70
- package/dist/video-player/video-player2/modal-video-player.cjs +0 -95
- package/dist/vite-env.d.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, PropsWithChildren } from "react";
|
|
2
|
-
import { MethodUnaryDescriptor } from "./connectquery";
|
|
3
2
|
import type { Message, PartialMessage } from "@bufbuild/protobuf";
|
|
3
|
+
import { type MethodUnaryDescriptor } from 'gomtm/connectquery';
|
|
4
4
|
export declare function ConnectEsUpdateForm<I extends Message<I>, O extends Message<O>>(props: {
|
|
5
5
|
defaultValues?: any;
|
|
6
6
|
mutationMethodSig: MethodUnaryDescriptor<any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";var b=Object.defineProperty,g=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var l=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var p=(e,t,o)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>{for(var o in t||(t={}))l.call(t,o)&&p(e,o,t[o]);if(a)for(var o of a(t))f.call(t,o)&&p(e,o,t[o]);return e},y=(e,t)=>g(e,M(t));var S=(e,t)=>{var o={};for(var n in e)l.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&a)for(var n of a(e))t.indexOf(n)<0&&f.call(e,n)&&(o[n]=e[n]);return o};import{Fragment as O,jsx as s}from"react/jsx-runtime";import{Suspense as I}from"react";import{useMutation as F,useSuspenseQuery as P}from"
|
|
1
|
+
"use client";var b=Object.defineProperty,g=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var l=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var p=(e,t,o)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>{for(var o in t||(t={}))l.call(t,o)&&p(e,o,t[o]);if(a)for(var o of a(t))f.call(t,o)&&p(e,o,t[o]);return e},y=(e,t)=>g(e,M(t));var S=(e,t)=>{var o={};for(var n in e)l.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&a)for(var n of a(e))t.indexOf(n)<0&&f.call(e,n)&&(o[n]=e[n]);return o};import{Fragment as O,jsx as s}from"react/jsx-runtime";import{Suspense as I}from"react";import{useMutation as F,useSuspenseQuery as P}from"gomtm/connectquery";import{FormProvider as Q,useForm as V}from"react-hook-form";function k(e){const{defaultValues:t,methodQuerySig:o,params:n,children:r,mutationMethodSig:i}=e,u=F(i),d=h=>{u.mutateAsync(h)};return t?s(c,{defaultValues:t,onSubmit:d,children:r}):s(I,{fallback:s(O,{children:"ConnectEsUpdateForm loading"}),children:s(C,{methodQuerySig:o,params:n,onSubmit:d,children:r})})}function c(e){const{defaultValues:t,onSubmit:o,children:n}=e,r=V({defaultValues:t});return s(Q,y(m({},r),{children:s("form",{onSubmit:r.handleSubmit(o),children:n})}))}function C(e){const u=e,{methodQuerySig:t,params:o,onSubmit:n}=u,r=S(u,["methodQuerySig","params","onSubmit"]),i=P(t,o);return s(c,m({defaultValues:i.data,onSubmit:n},r))}export{k as ConnectEsUpdateForm,c as FormInner,C as FormInnerWithSuspenseQuery};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
@layer base {
|
|
6
|
+
:root {
|
|
7
|
+
--background: 0 0% 100%;
|
|
8
|
+
--foreground: 222.2 84% 4.9%;
|
|
9
|
+
|
|
10
|
+
--muted: 210 40% 96.1%;
|
|
11
|
+
--muted-foreground: 215.4 16.3% 46.9%;
|
|
12
|
+
|
|
13
|
+
--popover: 0 0% 100%;
|
|
14
|
+
--popover-foreground: 222.2 84% 4.9%;
|
|
15
|
+
|
|
16
|
+
--card: 0 0% 100%;
|
|
17
|
+
--card-foreground: 222.2 84% 4.9%;
|
|
18
|
+
|
|
19
|
+
--border: 214.3 31.8% 91.4%;
|
|
20
|
+
--input: 214.3 31.8% 91.4%;
|
|
21
|
+
|
|
22
|
+
--primary: 222.2 47.4% 11.2%;
|
|
23
|
+
--primary-foreground: 210 40% 98%;
|
|
24
|
+
|
|
25
|
+
--secondary: 210 40% 96.1%;
|
|
26
|
+
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
27
|
+
|
|
28
|
+
--accent: 210 40% 96.1%;
|
|
29
|
+
--accent-foreground: 222.2 47.4% 11.2%;
|
|
30
|
+
|
|
31
|
+
--destructive: 0 84.2% 60.2%;
|
|
32
|
+
--destructive-foreground: 210 40% 98%;
|
|
33
|
+
|
|
34
|
+
--ring: 215 20.2% 65.1%;
|
|
35
|
+
|
|
36
|
+
--radius: 0.5rem;
|
|
37
|
+
|
|
38
|
+
/* novel editor 相关样式开始 */
|
|
39
|
+
--novel-highlight-default: #ffffff;
|
|
40
|
+
--novel-highlight-purple: #f6f3f8;
|
|
41
|
+
--novel-highlight-red: #fdebeb;
|
|
42
|
+
--novel-highlight-yellow: #fbf4a2;
|
|
43
|
+
--novel-highlight-blue: #c1ecf9;
|
|
44
|
+
--novel-highlight-green: #acf79f;
|
|
45
|
+
--novel-highlight-orange: #faebdd;
|
|
46
|
+
--novel-highlight-pink: #faf1f5;
|
|
47
|
+
--novel-highlight-gray: #f1f1ef;
|
|
48
|
+
/* novel editor 相关样式结束 */
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dark {
|
|
52
|
+
--background: 222.2 84% 4.9%;
|
|
53
|
+
--foreground: 210 40% 98%;
|
|
54
|
+
|
|
55
|
+
--muted: 217.2 32.6% 17.5%;
|
|
56
|
+
--muted-foreground: 215 20.2% 65.1%;
|
|
57
|
+
|
|
58
|
+
--popover: 222.2 84% 4.9%;
|
|
59
|
+
--popover-foreground: 210 40% 98%;
|
|
60
|
+
|
|
61
|
+
--card: 222.2 84% 4.9%;
|
|
62
|
+
--card-foreground: 210 40% 98%;
|
|
63
|
+
|
|
64
|
+
--border: 217.2 32.6% 17.5%;
|
|
65
|
+
--input: 217.2 32.6% 17.5%;
|
|
66
|
+
|
|
67
|
+
--primary: 210 40% 98%;
|
|
68
|
+
--primary-foreground: 222.2 47.4% 11.2%;
|
|
69
|
+
|
|
70
|
+
--secondary: 217.2 32.6% 17.5%;
|
|
71
|
+
--secondary-foreground: 210 40% 98%;
|
|
72
|
+
|
|
73
|
+
--accent: 217.2 32.6% 17.5%;
|
|
74
|
+
--accent-foreground: 210 40% 98%;
|
|
75
|
+
|
|
76
|
+
--destructive: 0 62.8% 30.6%;
|
|
77
|
+
--destructive-foreground: 0 85.7% 97.3%;
|
|
78
|
+
--ring: 217.2 32.6% 17.5%;
|
|
79
|
+
|
|
80
|
+
/* novel editor 相关样式开始 */
|
|
81
|
+
--novel-highlight-default: #000000;
|
|
82
|
+
--novel-highlight-purple: #3f2c4b;
|
|
83
|
+
--novel-highlight-red: #5c1a1a;
|
|
84
|
+
--novel-highlight-yellow: #5c4b1a;
|
|
85
|
+
--novel-highlight-blue: #1a3d5c;
|
|
86
|
+
--novel-highlight-green: #1a5c20;
|
|
87
|
+
--novel-highlight-orange: #5c3a1a;
|
|
88
|
+
--novel-highlight-pink: #5c1a3a;
|
|
89
|
+
--novel-highlight-gray: #3a3a3a;
|
|
90
|
+
/* novel editor 相关样式结束 */
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* @layer base {
|
|
95
|
+
* {
|
|
96
|
+
@apply border-border;
|
|
97
|
+
}
|
|
98
|
+
body {
|
|
99
|
+
@apply bg-background text-foreground;
|
|
100
|
+
}
|
|
101
|
+
} */
|
|
102
|
+
|
|
103
|
+
/*
|
|
104
|
+
细化滚动条。
|
|
105
|
+
参考: https://github.com/mckaywrigley/chatbot-ui/blob/main/styles/globals.css
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
::-webkit-scrollbar-track {
|
|
109
|
+
background-color: transparent;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
::-webkit-scrollbar-thumb {
|
|
113
|
+
background-color: #a4a4a4;
|
|
114
|
+
border-radius: 10px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
::-webkit-scrollbar-thumb:hover {
|
|
118
|
+
background-color: #838385;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
::-webkit-scrollbar-track:hover {
|
|
122
|
+
background-color: #eaeaea;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
::-webkit-scrollbar-corner {
|
|
126
|
+
background-color: transparent;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
::-webkit-scrollbar {
|
|
130
|
+
width: 6px;
|
|
131
|
+
height: 6px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* vamp 样式开始 ***********************************************************************************************/
|
|
135
|
+
|
|
136
|
+
@layer utilities {
|
|
137
|
+
.red-glow {
|
|
138
|
+
text-shadow: 0px 0px 8px hsla(352, 98%, 60%, 0.6);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.button {
|
|
142
|
+
transition:
|
|
143
|
+
border 120ms ease 0s,
|
|
144
|
+
background-color,
|
|
145
|
+
color,
|
|
146
|
+
box-shadow,
|
|
147
|
+
opacity;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.primary-button-hover {
|
|
151
|
+
text-shadow: rgb(0 0 0 / 56%) 0px 3px 12px;
|
|
152
|
+
box-shadow: rgba(253, 52, 88, 0.6) 0px 1px 40px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.dropdown {
|
|
156
|
+
/* backdrop-filter: blur(10px) saturate(190%) contrast(70%) brightness(80%);
|
|
157
|
+
background-color: rgba(29, 30, 43, 0.498);
|
|
158
|
+
border: 0.5px solid rgba(82, 82, 111, 0.44); */
|
|
159
|
+
box-shadow: rgb(0 0 0 / 20%) 0px 4px 24px;
|
|
160
|
+
backdrop-filter: blur(20px) saturate(190%) contrast(70%) brightness(80%);
|
|
161
|
+
background-color: rgba(29, 30, 43, 0.498);
|
|
162
|
+
border: 0.5px solid rgba(82, 82, 111, 0.44);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* clears the ‘X’ from Internet Explorer */
|
|
167
|
+
input[type="search"]::-ms-clear {
|
|
168
|
+
display: none;
|
|
169
|
+
width: 0;
|
|
170
|
+
height: 0;
|
|
171
|
+
}
|
|
172
|
+
input[type="search"]::-ms-reveal {
|
|
173
|
+
display: none;
|
|
174
|
+
width: 0;
|
|
175
|
+
height: 0;
|
|
176
|
+
}
|
|
177
|
+
/* clears the ‘X’ from Chrome */
|
|
178
|
+
input[type="search"]::-webkit-search-decoration,
|
|
179
|
+
input[type="search"]::-webkit-search-cancel-button,
|
|
180
|
+
input[type="search"]::-webkit-search-results-button,
|
|
181
|
+
input[type="search"]::-webkit-search-results-decoration {
|
|
182
|
+
display: none;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.is-editor-empty {
|
|
186
|
+
@apply text-white;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.ProseMirror p.is-editor-empty:first-child::before {
|
|
190
|
+
color: #adb5bd;
|
|
191
|
+
content: attr(data-placeholder);
|
|
192
|
+
float: left;
|
|
193
|
+
height: 0;
|
|
194
|
+
opacity: 0.3;
|
|
195
|
+
pointer-events: none;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
::-webkit-scrollbar {
|
|
199
|
+
width: 8px;
|
|
200
|
+
height: 8px;
|
|
201
|
+
background-color: transparent;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
::-webkit-scrollbar-thumb {
|
|
205
|
+
border-radius: 12px;
|
|
206
|
+
background-color: #616076;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
::-webkit-scrollbar-track {
|
|
210
|
+
padding: 2px;
|
|
211
|
+
background-color: transparent;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
mux-player {
|
|
215
|
+
--controls: none;
|
|
216
|
+
--media-object-fit: cover;
|
|
217
|
+
height: 100%;
|
|
218
|
+
}
|
|
219
|
+
/* vamp 结束 ***********************************************************************************************/
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/* novel editor需要 */
|
|
2
|
+
.ProseMirror {
|
|
3
|
+
@apply p-12 px-8 sm:px-12;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.ProseMirror .is-editor-empty:first-child::before {
|
|
7
|
+
content: attr(data-placeholder);
|
|
8
|
+
float: left;
|
|
9
|
+
color: var(--novel-stone-400);
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
height: 0;
|
|
12
|
+
}
|
|
13
|
+
.ProseMirror .is-empty::before {
|
|
14
|
+
content: attr(data-placeholder);
|
|
15
|
+
float: left;
|
|
16
|
+
color: hsl(var(--muted-foreground));
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
height: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Custom image styles */
|
|
22
|
+
|
|
23
|
+
.ProseMirror img {
|
|
24
|
+
transition: filter 0.1s ease-in-out;
|
|
25
|
+
|
|
26
|
+
&:hover {
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
filter: brightness(90%);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.ProseMirror-selectednode {
|
|
32
|
+
outline: 3px solid #5abbf7;
|
|
33
|
+
filter: brightness(90%);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.img-placeholder {
|
|
38
|
+
position: relative;
|
|
39
|
+
|
|
40
|
+
&:before {
|
|
41
|
+
content: "";
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: 50%;
|
|
45
|
+
left: 50%;
|
|
46
|
+
width: 36px;
|
|
47
|
+
height: 36px;
|
|
48
|
+
border-radius: 50%;
|
|
49
|
+
border: 3px solid var(--novel-stone-200);
|
|
50
|
+
border-top-color: var(--novel-stone-800);
|
|
51
|
+
animation: spinning 0.6s linear infinite;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes spinning {
|
|
56
|
+
to {
|
|
57
|
+
transform: rotate(360deg);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Custom TODO list checkboxes – shoutout to this awesome tutorial: https://moderncss.dev/pure-css-custom-checkbox-style/ */
|
|
62
|
+
|
|
63
|
+
ul[data-type="taskList"] li > label {
|
|
64
|
+
margin-right: 0.2rem;
|
|
65
|
+
user-select: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@media screen and (max-width: 768px) {
|
|
69
|
+
ul[data-type="taskList"] li > label {
|
|
70
|
+
margin-right: 0.5rem;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
ul[data-type="taskList"] li > label input[type="checkbox"] {
|
|
75
|
+
-webkit-appearance: none;
|
|
76
|
+
appearance: none;
|
|
77
|
+
background-color: hsl(var(--background));
|
|
78
|
+
margin: 0;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
width: 1.2em;
|
|
81
|
+
height: 1.2em;
|
|
82
|
+
position: relative;
|
|
83
|
+
top: 5px;
|
|
84
|
+
border: 2px solid hsl(var(--border));
|
|
85
|
+
margin-right: 0.3rem;
|
|
86
|
+
display: grid;
|
|
87
|
+
place-content: center;
|
|
88
|
+
|
|
89
|
+
&:hover {
|
|
90
|
+
background-color: hsl(var(--accent));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:active {
|
|
94
|
+
background-color: hsl(var(--accent));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&::before {
|
|
98
|
+
content: "";
|
|
99
|
+
width: 0.65em;
|
|
100
|
+
height: 0.65em;
|
|
101
|
+
transform: scale(0);
|
|
102
|
+
transition: 120ms transform ease-in-out;
|
|
103
|
+
box-shadow: inset 1em 1em;
|
|
104
|
+
transform-origin: center;
|
|
105
|
+
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:checked::before {
|
|
109
|
+
transform: scale(1);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
ul[data-type="taskList"] li[data-checked="true"] > div > p {
|
|
114
|
+
color: var(--muted-foreground);
|
|
115
|
+
text-decoration: line-through;
|
|
116
|
+
text-decoration-thickness: 2px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Overwrite tippy-box original max-width */
|
|
120
|
+
|
|
121
|
+
.tippy-box {
|
|
122
|
+
max-width: 400px !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.ProseMirror:not(.dragging) .ProseMirror-selectednode {
|
|
126
|
+
outline: none !important;
|
|
127
|
+
background-color: var(--novel-highlight-blue);
|
|
128
|
+
transition: background-color 0.2s;
|
|
129
|
+
box-shadow: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.drag-handle {
|
|
133
|
+
position: fixed;
|
|
134
|
+
opacity: 1;
|
|
135
|
+
transition: opacity ease-in 0.2s;
|
|
136
|
+
border-radius: 0.25rem;
|
|
137
|
+
|
|
138
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' style='fill: rgba(0, 0, 0, 0.5)'%3E%3Cpath d='M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z'%3E%3C/path%3E%3C/svg%3E");
|
|
139
|
+
background-size: calc(0.5em + 0.375rem) calc(0.5em + 0.375rem);
|
|
140
|
+
background-repeat: no-repeat;
|
|
141
|
+
background-position: center;
|
|
142
|
+
width: 1.2rem;
|
|
143
|
+
height: 1.5rem;
|
|
144
|
+
z-index: 50;
|
|
145
|
+
cursor: grab;
|
|
146
|
+
|
|
147
|
+
&:hover {
|
|
148
|
+
background-color: var(--novel-stone-100);
|
|
149
|
+
transition: background-color 0.2s;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&:active {
|
|
153
|
+
background-color: var(--novel-stone-200);
|
|
154
|
+
transition: background-color 0.2s;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&.hide {
|
|
158
|
+
opacity: 0;
|
|
159
|
+
pointer-events: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@media screen and (max-width: 600px) {
|
|
163
|
+
display: none;
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.dark .drag-handle {
|
|
169
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' style='fill: rgba(255, 255, 255, 0.5)'%3E%3Cpath d='M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z'%3E%3C/path%3E%3C/svg%3E");
|
|
170
|
+
}
|
|
171
|
+
|