listpage-next 0.0.237 → 0.0.238
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/features/ChatClient/ui/Bubble/Bubble.d.ts +2 -1
- package/dist/features/ChatClient/ui/Bubble/Bubble.js +5 -4
- package/dist/features/JsonEditor/JsonEditor.d.ts +1 -1
- package/dist/features/JsonEditor/JsonEditor.js +23 -4
- package/dist/features/JsonEditor/Toolbar.d.ts +2 -1
- package/dist/features/JsonEditor/Toolbar.js +23 -5
- package/dist/ui/PromptEditor/index.d.ts +8 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui.css +366 -0
- package/package.json +19 -5
|
@@ -11,7 +11,8 @@ export type BubbleProps = {
|
|
|
11
11
|
references?: ReferenceListProps['references'];
|
|
12
12
|
placement?: 'start' | 'end';
|
|
13
13
|
role?: 'user' | 'assistant';
|
|
14
|
-
|
|
14
|
+
status?: 'pending' | 'success' | 'error';
|
|
15
|
+
markdownRender?: (text: string, status: BubbleProps['status']) => ReactNode;
|
|
15
16
|
reasoningMarkdownRender?: (text: string) => ReactNode;
|
|
16
17
|
};
|
|
17
18
|
export declare const Bubble: (props: BubbleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,16 +6,17 @@ import { Markdown } from "./Markdown.js";
|
|
|
6
6
|
import { Reasoning } from "./Reasoning.js";
|
|
7
7
|
import { ReferenceList } from "./ReferenceList.js";
|
|
8
8
|
const Bubble = (props)=>{
|
|
9
|
-
const { className, content, reasoning_content, extra, feedback, markdownRender, reasoningMarkdownRender = markdownRender, references, suggests, role = 'user', placement = 'user' === role ? 'end' : 'start', showFeedback = (hovered)=>hovered } = props;
|
|
9
|
+
const { className, content, reasoning_content, extra, feedback, markdownRender, reasoningMarkdownRender = markdownRender, references, suggests, role = 'user', status, placement = 'user' === role ? 'end' : 'start', showFeedback = (hovered)=>hovered } = props;
|
|
10
10
|
const containerRef = useRef(null);
|
|
11
11
|
const feedbackRef = useRef(null);
|
|
12
12
|
const containerHovered = useHover(containerRef);
|
|
13
13
|
const feedbackHovered = useHover(feedbackRef);
|
|
14
14
|
const hovered = containerHovered || feedbackHovered;
|
|
15
|
-
const
|
|
16
|
-
|
|
15
|
+
const cursorPlaceholder = 'pending' === status && 'assistant' === role ? '<placeholder type="pending" />' : '';
|
|
16
|
+
const messageMarkdownEle = markdownRender ? markdownRender(content || '', status) : /*#__PURE__*/ jsx(Markdown, {
|
|
17
|
+
content: (content || '') + cursorPlaceholder
|
|
17
18
|
});
|
|
18
|
-
const reasoningMarkdownEle = reasoningMarkdownRender ? reasoningMarkdownRender(reasoning_content || '') : /*#__PURE__*/ jsx(Markdown, {
|
|
19
|
+
const reasoningMarkdownEle = reasoningMarkdownRender ? reasoningMarkdownRender(reasoning_content || '', status) : /*#__PURE__*/ jsx(Markdown, {
|
|
19
20
|
content: reasoning_content || ''
|
|
20
21
|
});
|
|
21
22
|
const message = 'user' === role ? /*#__PURE__*/ jsx(UserContentWrapper, {
|
|
@@ -3,6 +3,7 @@ import { Flex, message } from "antd";
|
|
|
3
3
|
import { forwardRef, useImperativeHandle, useState } from "react";
|
|
4
4
|
import { Card } from "../../components/index.js";
|
|
5
5
|
import styled_components from "styled-components";
|
|
6
|
+
import { JSONSchemaFaker } from "json-schema-faker";
|
|
6
7
|
import { Toolbar } from "./Toolbar.js";
|
|
7
8
|
import { CodeEditor } from "./CodeEditor.js";
|
|
8
9
|
import { formatJson, minifyJson, validateJson } from "./utils.js";
|
|
@@ -41,8 +42,8 @@ const InfoBar = styled_components.div`
|
|
|
41
42
|
border-radius: 4px;
|
|
42
43
|
`;
|
|
43
44
|
const JsonEditor = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
44
|
-
const { value, onChange,
|
|
45
|
-
const initialText = void 0 !== value ? JSON.stringify(value, null, 2) :
|
|
45
|
+
const { value, onChange, schema } = props;
|
|
46
|
+
const initialText = void 0 !== value ? JSON.stringify(value, null, 2) : '';
|
|
46
47
|
const [jsonInput, setJsonInput] = useState(initialText);
|
|
47
48
|
const [validation, setValidation] = useState({
|
|
48
49
|
isValid: true,
|
|
@@ -61,7 +62,7 @@ const JsonEditor = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
61
62
|
};
|
|
62
63
|
useImperativeHandle(ref, ()=>({
|
|
63
64
|
update: ()=>{
|
|
64
|
-
|
|
65
|
+
setJsonInput(initialText);
|
|
65
66
|
}
|
|
66
67
|
}), [
|
|
67
68
|
initialText,
|
|
@@ -79,7 +80,24 @@ const JsonEditor = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
79
80
|
navigator.clipboard.writeText(jsonInput);
|
|
80
81
|
message.success('复制成功');
|
|
81
82
|
};
|
|
83
|
+
const handleGenerateMock = ()=>{
|
|
84
|
+
if (schema) try {
|
|
85
|
+
JSONSchemaFaker.option({
|
|
86
|
+
alwaysFakeOptionals: true,
|
|
87
|
+
fillProperties: false
|
|
88
|
+
});
|
|
89
|
+
const mock = JSONSchemaFaker.generate(schema);
|
|
90
|
+
const formatted = JSON.stringify(mock, null, 2);
|
|
91
|
+
updateInput(formatted);
|
|
92
|
+
} catch (error) {
|
|
93
|
+
message.error('Mock 数据生成失败');
|
|
94
|
+
console.log(error);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
82
97
|
return /*#__PURE__*/ jsx(Card, {
|
|
98
|
+
style: {
|
|
99
|
+
height: '100%'
|
|
100
|
+
},
|
|
83
101
|
title: /*#__PURE__*/ jsxs(Flex, {
|
|
84
102
|
align: "center",
|
|
85
103
|
gap: 6,
|
|
@@ -99,7 +117,8 @@ const JsonEditor = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
99
117
|
disabled: !validation.isValid,
|
|
100
118
|
onFormat: handleFormat,
|
|
101
119
|
onMinify: handleMinify,
|
|
102
|
-
onCopy: handleCopy
|
|
120
|
+
onCopy: handleCopy,
|
|
121
|
+
onGenerateMock: schema && handleGenerateMock
|
|
103
122
|
})
|
|
104
123
|
}),
|
|
105
124
|
children: /*#__PURE__*/ jsx(EditorWrapper, {
|
|
@@ -3,6 +3,7 @@ interface ToolbarProps {
|
|
|
3
3
|
onFormat: () => void;
|
|
4
4
|
onMinify: () => void;
|
|
5
5
|
onCopy: () => void;
|
|
6
|
+
onGenerateMock: () => void;
|
|
6
7
|
}
|
|
7
|
-
export declare const Toolbar: ({ onFormat, onMinify, onCopy, disabled, }: ToolbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Toolbar: ({ onGenerateMock, onFormat, onMinify, onCopy, disabled, }: ToolbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Tooltip } from "antd";
|
|
3
|
-
import { Braces, Copy, FileArchive } from "lucide-react";
|
|
3
|
+
import { Braces, Copy, FileArchive, Sparkles } from "lucide-react";
|
|
4
4
|
import styled_components from "styled-components";
|
|
5
5
|
const ToolbarContainer = styled_components.div`
|
|
6
6
|
display: flex;
|
|
@@ -12,8 +12,23 @@ const ActionButton = styled_components(Button)`
|
|
|
12
12
|
background-color: rgba(31, 41, 55, 0.5);
|
|
13
13
|
}
|
|
14
14
|
`;
|
|
15
|
-
const Toolbar = ({ onFormat, onMinify, onCopy, disabled })=>/*#__PURE__*/ jsxs(ToolbarContainer, {
|
|
15
|
+
const Toolbar = ({ onGenerateMock, onFormat, onMinify, onCopy, disabled })=>/*#__PURE__*/ jsxs(ToolbarContainer, {
|
|
16
16
|
children: [
|
|
17
|
+
onGenerateMock && /*#__PURE__*/ jsx(Tooltip, {
|
|
18
|
+
title: "随机生成数据",
|
|
19
|
+
children: /*#__PURE__*/ jsx(ActionButton, {
|
|
20
|
+
disabled: disabled,
|
|
21
|
+
size: "small",
|
|
22
|
+
type: "text",
|
|
23
|
+
onClick: onGenerateMock,
|
|
24
|
+
icon: /*#__PURE__*/ jsx(Sparkles, {
|
|
25
|
+
style: {
|
|
26
|
+
width: 14,
|
|
27
|
+
height: 14
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
})
|
|
31
|
+
}),
|
|
17
32
|
/*#__PURE__*/ jsx(Tooltip, {
|
|
18
33
|
title: "格式化",
|
|
19
34
|
children: /*#__PURE__*/ jsx(ActionButton, {
|
|
@@ -23,7 +38,8 @@ const Toolbar = ({ onFormat, onMinify, onCopy, disabled })=>/*#__PURE__*/ jsxs(T
|
|
|
23
38
|
onClick: onFormat,
|
|
24
39
|
icon: /*#__PURE__*/ jsx(Braces, {
|
|
25
40
|
style: {
|
|
26
|
-
|
|
41
|
+
width: 14,
|
|
42
|
+
height: 14
|
|
27
43
|
}
|
|
28
44
|
})
|
|
29
45
|
})
|
|
@@ -37,7 +53,8 @@ const Toolbar = ({ onFormat, onMinify, onCopy, disabled })=>/*#__PURE__*/ jsxs(T
|
|
|
37
53
|
onClick: onMinify,
|
|
38
54
|
icon: /*#__PURE__*/ jsx(FileArchive, {
|
|
39
55
|
style: {
|
|
40
|
-
|
|
56
|
+
width: 14,
|
|
57
|
+
height: 14
|
|
41
58
|
}
|
|
42
59
|
})
|
|
43
60
|
})
|
|
@@ -51,7 +68,8 @@ const Toolbar = ({ onFormat, onMinify, onCopy, disabled })=>/*#__PURE__*/ jsxs(T
|
|
|
51
68
|
onClick: onCopy,
|
|
52
69
|
icon: /*#__PURE__*/ jsx(Copy, {
|
|
53
70
|
style: {
|
|
54
|
-
|
|
71
|
+
width: 14,
|
|
72
|
+
height: 14
|
|
55
73
|
}
|
|
56
74
|
})
|
|
57
75
|
})
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import 'prismjs/components/prism-markdown';
|
|
2
|
+
export interface PromptEditorProps {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const PromptEditor: ({ value, onChange, placeholder, className, }: PromptEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PromptEditor, type PromptEditorProps } from './PromptEditor';
|
package/dist/ui.css
ADDED
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer theme {
|
|
5
|
+
:root, :host {
|
|
6
|
+
--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
|
|
7
|
+
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
8
|
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
|
9
|
+
"Courier New", monospace;
|
|
10
|
+
--color-slate-300: oklch(86.9% 0.022 252.894);
|
|
11
|
+
--text-sm: 0.875rem;
|
|
12
|
+
--text-sm--line-height: calc(1.25 / 0.875);
|
|
13
|
+
--default-transition-duration: 150ms;
|
|
14
|
+
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
15
|
+
--default-font-family: var(--font-sans);
|
|
16
|
+
--default-mono-font-family: var(--font-mono);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
@layer base {
|
|
20
|
+
*, ::after, ::before, ::backdrop, ::file-selector-button {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
border: 0 solid;
|
|
25
|
+
}
|
|
26
|
+
html, :host {
|
|
27
|
+
line-height: 1.5;
|
|
28
|
+
-webkit-text-size-adjust: 100%;
|
|
29
|
+
tab-size: 4;
|
|
30
|
+
font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
|
|
31
|
+
font-feature-settings: var(--default-font-feature-settings, normal);
|
|
32
|
+
font-variation-settings: var(--default-font-variation-settings, normal);
|
|
33
|
+
-webkit-tap-highlight-color: transparent;
|
|
34
|
+
}
|
|
35
|
+
hr {
|
|
36
|
+
height: 0;
|
|
37
|
+
color: inherit;
|
|
38
|
+
border-top-width: 1px;
|
|
39
|
+
}
|
|
40
|
+
abbr:where([title]) {
|
|
41
|
+
-webkit-text-decoration: underline dotted;
|
|
42
|
+
text-decoration: underline dotted;
|
|
43
|
+
}
|
|
44
|
+
h1, h2, h3, h4, h5, h6 {
|
|
45
|
+
font-size: inherit;
|
|
46
|
+
font-weight: inherit;
|
|
47
|
+
}
|
|
48
|
+
a {
|
|
49
|
+
color: inherit;
|
|
50
|
+
-webkit-text-decoration: inherit;
|
|
51
|
+
text-decoration: inherit;
|
|
52
|
+
}
|
|
53
|
+
b, strong {
|
|
54
|
+
font-weight: bolder;
|
|
55
|
+
}
|
|
56
|
+
code, kbd, samp, pre {
|
|
57
|
+
font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
|
|
58
|
+
font-feature-settings: var(--default-mono-font-feature-settings, normal);
|
|
59
|
+
font-variation-settings: var(--default-mono-font-variation-settings, normal);
|
|
60
|
+
font-size: 1em;
|
|
61
|
+
}
|
|
62
|
+
small {
|
|
63
|
+
font-size: 80%;
|
|
64
|
+
}
|
|
65
|
+
sub, sup {
|
|
66
|
+
font-size: 75%;
|
|
67
|
+
line-height: 0;
|
|
68
|
+
position: relative;
|
|
69
|
+
vertical-align: baseline;
|
|
70
|
+
}
|
|
71
|
+
sub {
|
|
72
|
+
bottom: -0.25em;
|
|
73
|
+
}
|
|
74
|
+
sup {
|
|
75
|
+
top: -0.5em;
|
|
76
|
+
}
|
|
77
|
+
table {
|
|
78
|
+
text-indent: 0;
|
|
79
|
+
border-color: inherit;
|
|
80
|
+
border-collapse: collapse;
|
|
81
|
+
}
|
|
82
|
+
:-moz-focusring {
|
|
83
|
+
outline: auto;
|
|
84
|
+
}
|
|
85
|
+
progress {
|
|
86
|
+
vertical-align: baseline;
|
|
87
|
+
}
|
|
88
|
+
summary {
|
|
89
|
+
display: list-item;
|
|
90
|
+
}
|
|
91
|
+
ol, ul, menu {
|
|
92
|
+
list-style: none;
|
|
93
|
+
}
|
|
94
|
+
img, svg, video, canvas, audio, iframe, embed, object {
|
|
95
|
+
display: block;
|
|
96
|
+
vertical-align: middle;
|
|
97
|
+
}
|
|
98
|
+
img, video {
|
|
99
|
+
max-width: 100%;
|
|
100
|
+
height: auto;
|
|
101
|
+
}
|
|
102
|
+
button, input, select, optgroup, textarea, ::file-selector-button {
|
|
103
|
+
font: inherit;
|
|
104
|
+
font-feature-settings: inherit;
|
|
105
|
+
font-variation-settings: inherit;
|
|
106
|
+
letter-spacing: inherit;
|
|
107
|
+
color: inherit;
|
|
108
|
+
border-radius: 0;
|
|
109
|
+
background-color: transparent;
|
|
110
|
+
opacity: 1;
|
|
111
|
+
}
|
|
112
|
+
:where(select:is([multiple], [size])) optgroup {
|
|
113
|
+
font-weight: bolder;
|
|
114
|
+
}
|
|
115
|
+
:where(select:is([multiple], [size])) optgroup option {
|
|
116
|
+
padding-inline-start: 20px;
|
|
117
|
+
}
|
|
118
|
+
::file-selector-button {
|
|
119
|
+
margin-inline-end: 4px;
|
|
120
|
+
}
|
|
121
|
+
::placeholder {
|
|
122
|
+
opacity: 1;
|
|
123
|
+
}
|
|
124
|
+
@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
|
|
125
|
+
::placeholder {
|
|
126
|
+
color: currentcolor;
|
|
127
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
128
|
+
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
textarea {
|
|
133
|
+
resize: vertical;
|
|
134
|
+
}
|
|
135
|
+
::-webkit-search-decoration {
|
|
136
|
+
-webkit-appearance: none;
|
|
137
|
+
}
|
|
138
|
+
::-webkit-date-and-time-value {
|
|
139
|
+
min-height: 1lh;
|
|
140
|
+
text-align: inherit;
|
|
141
|
+
}
|
|
142
|
+
::-webkit-datetime-edit {
|
|
143
|
+
display: inline-flex;
|
|
144
|
+
}
|
|
145
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
146
|
+
padding: 0;
|
|
147
|
+
}
|
|
148
|
+
::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
|
|
149
|
+
padding-block: 0;
|
|
150
|
+
}
|
|
151
|
+
::-webkit-calendar-picker-indicator {
|
|
152
|
+
line-height: 1;
|
|
153
|
+
}
|
|
154
|
+
:-moz-ui-invalid {
|
|
155
|
+
box-shadow: none;
|
|
156
|
+
}
|
|
157
|
+
button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
|
|
158
|
+
appearance: button;
|
|
159
|
+
}
|
|
160
|
+
::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
|
|
161
|
+
height: auto;
|
|
162
|
+
}
|
|
163
|
+
[hidden]:where(:not([hidden="until-found"])) {
|
|
164
|
+
display: none !important;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
@layer utilities {
|
|
168
|
+
.visible {
|
|
169
|
+
visibility: visible;
|
|
170
|
+
}
|
|
171
|
+
.absolute {
|
|
172
|
+
position: absolute;
|
|
173
|
+
}
|
|
174
|
+
.relative {
|
|
175
|
+
position: relative;
|
|
176
|
+
}
|
|
177
|
+
.block {
|
|
178
|
+
display: block;
|
|
179
|
+
}
|
|
180
|
+
.flex {
|
|
181
|
+
display: flex;
|
|
182
|
+
}
|
|
183
|
+
.inline {
|
|
184
|
+
display: inline;
|
|
185
|
+
}
|
|
186
|
+
.inline-flex {
|
|
187
|
+
display: inline-flex;
|
|
188
|
+
}
|
|
189
|
+
.table {
|
|
190
|
+
display: table;
|
|
191
|
+
}
|
|
192
|
+
.h-full {
|
|
193
|
+
height: 100%;
|
|
194
|
+
}
|
|
195
|
+
.flex-1 {
|
|
196
|
+
flex: 1;
|
|
197
|
+
}
|
|
198
|
+
.flex-shrink {
|
|
199
|
+
flex-shrink: 1;
|
|
200
|
+
}
|
|
201
|
+
.flex-grow {
|
|
202
|
+
flex-grow: 1;
|
|
203
|
+
}
|
|
204
|
+
.border-collapse {
|
|
205
|
+
border-collapse: collapse;
|
|
206
|
+
}
|
|
207
|
+
.transform {
|
|
208
|
+
transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
|
|
209
|
+
}
|
|
210
|
+
.resize {
|
|
211
|
+
resize: both;
|
|
212
|
+
}
|
|
213
|
+
.flex-col {
|
|
214
|
+
flex-direction: column;
|
|
215
|
+
}
|
|
216
|
+
.overflow-auto {
|
|
217
|
+
overflow: auto;
|
|
218
|
+
}
|
|
219
|
+
.overflow-hidden {
|
|
220
|
+
overflow: hidden;
|
|
221
|
+
}
|
|
222
|
+
.border {
|
|
223
|
+
border-style: var(--tw-border-style);
|
|
224
|
+
border-width: 1px;
|
|
225
|
+
}
|
|
226
|
+
.bg-\[\#0B1120\] {
|
|
227
|
+
background-color: #0B1120;
|
|
228
|
+
}
|
|
229
|
+
.font-mono {
|
|
230
|
+
font-family: var(--font-mono);
|
|
231
|
+
}
|
|
232
|
+
.text-sm {
|
|
233
|
+
font-size: var(--text-sm);
|
|
234
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
235
|
+
}
|
|
236
|
+
.text-slate-300 {
|
|
237
|
+
color: var(--color-slate-300);
|
|
238
|
+
}
|
|
239
|
+
.outline {
|
|
240
|
+
outline-style: var(--tw-outline-style);
|
|
241
|
+
outline-width: 1px;
|
|
242
|
+
}
|
|
243
|
+
.filter {
|
|
244
|
+
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
245
|
+
}
|
|
246
|
+
.transition {
|
|
247
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
248
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
249
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
250
|
+
}
|
|
251
|
+
.focus\:outline-none {
|
|
252
|
+
&:focus {
|
|
253
|
+
--tw-outline-style: none;
|
|
254
|
+
outline-style: none;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
@property --tw-rotate-x {
|
|
259
|
+
syntax: "*";
|
|
260
|
+
inherits: false;
|
|
261
|
+
}
|
|
262
|
+
@property --tw-rotate-y {
|
|
263
|
+
syntax: "*";
|
|
264
|
+
inherits: false;
|
|
265
|
+
}
|
|
266
|
+
@property --tw-rotate-z {
|
|
267
|
+
syntax: "*";
|
|
268
|
+
inherits: false;
|
|
269
|
+
}
|
|
270
|
+
@property --tw-skew-x {
|
|
271
|
+
syntax: "*";
|
|
272
|
+
inherits: false;
|
|
273
|
+
}
|
|
274
|
+
@property --tw-skew-y {
|
|
275
|
+
syntax: "*";
|
|
276
|
+
inherits: false;
|
|
277
|
+
}
|
|
278
|
+
@property --tw-border-style {
|
|
279
|
+
syntax: "*";
|
|
280
|
+
inherits: false;
|
|
281
|
+
initial-value: solid;
|
|
282
|
+
}
|
|
283
|
+
@property --tw-outline-style {
|
|
284
|
+
syntax: "*";
|
|
285
|
+
inherits: false;
|
|
286
|
+
initial-value: solid;
|
|
287
|
+
}
|
|
288
|
+
@property --tw-blur {
|
|
289
|
+
syntax: "*";
|
|
290
|
+
inherits: false;
|
|
291
|
+
}
|
|
292
|
+
@property --tw-brightness {
|
|
293
|
+
syntax: "*";
|
|
294
|
+
inherits: false;
|
|
295
|
+
}
|
|
296
|
+
@property --tw-contrast {
|
|
297
|
+
syntax: "*";
|
|
298
|
+
inherits: false;
|
|
299
|
+
}
|
|
300
|
+
@property --tw-grayscale {
|
|
301
|
+
syntax: "*";
|
|
302
|
+
inherits: false;
|
|
303
|
+
}
|
|
304
|
+
@property --tw-hue-rotate {
|
|
305
|
+
syntax: "*";
|
|
306
|
+
inherits: false;
|
|
307
|
+
}
|
|
308
|
+
@property --tw-invert {
|
|
309
|
+
syntax: "*";
|
|
310
|
+
inherits: false;
|
|
311
|
+
}
|
|
312
|
+
@property --tw-opacity {
|
|
313
|
+
syntax: "*";
|
|
314
|
+
inherits: false;
|
|
315
|
+
}
|
|
316
|
+
@property --tw-saturate {
|
|
317
|
+
syntax: "*";
|
|
318
|
+
inherits: false;
|
|
319
|
+
}
|
|
320
|
+
@property --tw-sepia {
|
|
321
|
+
syntax: "*";
|
|
322
|
+
inherits: false;
|
|
323
|
+
}
|
|
324
|
+
@property --tw-drop-shadow {
|
|
325
|
+
syntax: "*";
|
|
326
|
+
inherits: false;
|
|
327
|
+
}
|
|
328
|
+
@property --tw-drop-shadow-color {
|
|
329
|
+
syntax: "*";
|
|
330
|
+
inherits: false;
|
|
331
|
+
}
|
|
332
|
+
@property --tw-drop-shadow-alpha {
|
|
333
|
+
syntax: "<percentage>";
|
|
334
|
+
inherits: false;
|
|
335
|
+
initial-value: 100%;
|
|
336
|
+
}
|
|
337
|
+
@property --tw-drop-shadow-size {
|
|
338
|
+
syntax: "*";
|
|
339
|
+
inherits: false;
|
|
340
|
+
}
|
|
341
|
+
@layer properties {
|
|
342
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
343
|
+
*, ::before, ::after, ::backdrop {
|
|
344
|
+
--tw-rotate-x: initial;
|
|
345
|
+
--tw-rotate-y: initial;
|
|
346
|
+
--tw-rotate-z: initial;
|
|
347
|
+
--tw-skew-x: initial;
|
|
348
|
+
--tw-skew-y: initial;
|
|
349
|
+
--tw-border-style: solid;
|
|
350
|
+
--tw-outline-style: solid;
|
|
351
|
+
--tw-blur: initial;
|
|
352
|
+
--tw-brightness: initial;
|
|
353
|
+
--tw-contrast: initial;
|
|
354
|
+
--tw-grayscale: initial;
|
|
355
|
+
--tw-hue-rotate: initial;
|
|
356
|
+
--tw-invert: initial;
|
|
357
|
+
--tw-opacity: initial;
|
|
358
|
+
--tw-saturate: initial;
|
|
359
|
+
--tw-sepia: initial;
|
|
360
|
+
--tw-drop-shadow: initial;
|
|
361
|
+
--tw-drop-shadow-color: initial;
|
|
362
|
+
--tw-drop-shadow-alpha: 100%;
|
|
363
|
+
--tw-drop-shadow-size: initial;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "listpage-next",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.238",
|
|
4
4
|
"description": "A React component library for creating filter forms with Ant Design",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -9,7 +9,12 @@
|
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"import": "./dist/index.js"
|
|
12
|
-
}
|
|
12
|
+
},
|
|
13
|
+
"./ui": {
|
|
14
|
+
"types": "./dist/ui/ui.d.ts",
|
|
15
|
+
"import": "./dist/ui/ui.js"
|
|
16
|
+
},
|
|
17
|
+
"./ui.css": "./dist/ui.css"
|
|
13
18
|
},
|
|
14
19
|
"types": "./dist/index.d.ts",
|
|
15
20
|
"files": [
|
|
@@ -25,7 +30,8 @@
|
|
|
25
30
|
],
|
|
26
31
|
"license": "MIT",
|
|
27
32
|
"scripts": {
|
|
28
|
-
"build": "rslib build",
|
|
33
|
+
"build": "rslib build && npm run build:css || true",
|
|
34
|
+
"build:css": "npx -p @tailwindcss/cli@4.1.17 -p tailwindcss@4.1.17 tailwindcss -c tailwind.config.cjs -i ./src/ui/tailwind.css -o ./dist/ui.css --min",
|
|
29
35
|
"format": "prettier --write .",
|
|
30
36
|
"prepublishOnly": "npm run build"
|
|
31
37
|
},
|
|
@@ -41,7 +47,11 @@
|
|
|
41
47
|
"typescript": "^5.9.2",
|
|
42
48
|
"react": "^19.1.1",
|
|
43
49
|
"react-router-dom": ">=6.0.0",
|
|
44
|
-
"@types/markdown-it": "~14.1.2"
|
|
50
|
+
"@types/markdown-it": "~14.1.2",
|
|
51
|
+
"tailwindcss": "~4.1.17",
|
|
52
|
+
"@tailwindcss/cli": "^4.1.0",
|
|
53
|
+
"postcss": "^8.4.49",
|
|
54
|
+
"autoprefixer": "^10.4.20"
|
|
45
55
|
},
|
|
46
56
|
"peerDependencies": {
|
|
47
57
|
"react": ">=16.9.0",
|
|
@@ -70,6 +80,10 @@
|
|
|
70
80
|
"@tiptap/core": "~3.10.7",
|
|
71
81
|
"@tiptap/pm": "~3.10.7",
|
|
72
82
|
"prosemirror-state": "~1.4.4",
|
|
73
|
-
"lucide-react": "~0.555.0"
|
|
83
|
+
"lucide-react": "~0.555.0",
|
|
84
|
+
"react-simple-code-editor": "~0.14.1",
|
|
85
|
+
"prismjs": "~1.30.0",
|
|
86
|
+
"@types/prismjs": "~1.26.5",
|
|
87
|
+
"json-schema-faker": "~0.5.9"
|
|
74
88
|
}
|
|
75
89
|
}
|