@baishuyun/ai-design 2.1.0 → 2.1.4
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/CHANGELOG.md +24 -0
- package/package.json +4 -3
- package/src/components/card.tsx +1 -1
- package/src/components/message-content.tsx +1 -1
- package/src/stories/MemoizedMarkdown.stories.tsx +15 -24
- package/src/style.css +2 -0
- package/style.css +418 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @baishuyun/ai-design
|
|
2
2
|
|
|
3
|
+
## 2.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c73954d: 重新构建发布用的 style.css,带上 Markdown 代码块的排版样式,并去掉无效的颜色规则。
|
|
8
|
+
|
|
9
|
+
## 2.1.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- chore: update dep
|
|
14
|
+
|
|
15
|
+
## 2.1.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- add missing plugin
|
|
20
|
+
|
|
21
|
+
## 2.1.1
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- tailwindcss-animate 与 tw-animate-css 改为开发依赖。业务侧使用已编译的样式,不再因这两个包的 peer 要求安装 Tailwind。
|
|
26
|
+
|
|
3
27
|
## 2.1.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baishuyun/ai-design",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "AI 功能 UI 组件库 - 所有 AI 功能的 UI 表现唯一真相来源",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -57,8 +57,6 @@
|
|
|
57
57
|
"react-markdown": "^10.1.0",
|
|
58
58
|
"remark-breaks": "^4.0.0",
|
|
59
59
|
"tailwind-merge": "^3.4.0",
|
|
60
|
-
"tailwindcss-animate": "^1.0.7",
|
|
61
|
-
"tw-animate-css": "^1.4.0",
|
|
62
60
|
"vaul": "^1.1.2",
|
|
63
61
|
"zod": "^4.1.13",
|
|
64
62
|
"@baishuyun/ai-feat-utils": "2.0.55",
|
|
@@ -79,8 +77,11 @@
|
|
|
79
77
|
"@types/react": "^19.0.0",
|
|
80
78
|
"@types/react-dom": "^19.0.0",
|
|
81
79
|
"@vitejs/plugin-react": "^5.1.1",
|
|
80
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
82
81
|
"storybook": "^10.1.11",
|
|
83
82
|
"tailwindcss": "^4.1.17",
|
|
83
|
+
"tailwindcss-animate": "^1.0.7",
|
|
84
|
+
"tw-animate-css": "^1.4.0",
|
|
84
85
|
"typescript": "^5.5.0",
|
|
85
86
|
"vite": "^5.1.4",
|
|
86
87
|
"vite-plugin-dts": "^4.5.4",
|
package/src/components/card.tsx
CHANGED
|
@@ -15,7 +15,7 @@ export const MessageContent = ({ children, className, isMobile, ...props }: Mess
|
|
|
15
15
|
'group-[.is-assistant]:bg-secondary group-[.is-assistant]:text-foreground',
|
|
16
16
|
'is-user:dark overflow-visible',
|
|
17
17
|
className,
|
|
18
|
-
// 字号放在最后,保证 MessageContent 自身字号权威,外部 className
|
|
18
|
+
// 字号放在最后,保证 MessageContent 自身字号权威,外部 className 里的字号类无法覆盖
|
|
19
19
|
isMobile ? 'text-[16px]' : 'text-[14px]'
|
|
20
20
|
)}
|
|
21
21
|
{...props}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
|
|
3
|
-
import { MemoizedMarkdown } from
|
|
3
|
+
import { MemoizedMarkdown } from '../components/memoized-markdown';
|
|
4
4
|
|
|
5
5
|
const meta = {
|
|
6
|
-
title:
|
|
6
|
+
title: 'Example/Chat/MemoizedMarkdown',
|
|
7
7
|
component: MemoizedMarkdown,
|
|
8
|
-
tags: [
|
|
8
|
+
tags: ['autodocs'],
|
|
9
9
|
parameters: {
|
|
10
|
-
layout:
|
|
10
|
+
layout: 'centered',
|
|
11
11
|
},
|
|
12
12
|
args: {
|
|
13
|
-
id:
|
|
13
|
+
id: 'story-demo',
|
|
14
14
|
},
|
|
15
|
+
render: (args) => <MemoizedMarkdown.Prose {...args} />,
|
|
15
16
|
} satisfies Meta<typeof MemoizedMarkdown>;
|
|
16
17
|
|
|
17
18
|
export default meta;
|
|
@@ -19,32 +20,22 @@ type Story = StoryObj<typeof meta>;
|
|
|
19
20
|
|
|
20
21
|
export const PlainText: Story = {
|
|
21
22
|
args: {
|
|
22
|
-
id:
|
|
23
|
-
content:
|
|
23
|
+
id: 'plain-text',
|
|
24
|
+
content: '这是一段普通的文本内容,支持 **加粗** 和 *斜体* 等 Markdown 格式。',
|
|
24
25
|
},
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
export const CodeBlock: Story = {
|
|
28
29
|
args: {
|
|
29
|
-
id:
|
|
30
|
-
content:
|
|
31
|
-
|
|
32
|
-
interface User {
|
|
33
|
-
name: string;
|
|
34
|
-
age: number;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function greet(user: User): string {
|
|
38
|
-
return \`Hello, \${user.name}!\`;
|
|
39
|
-
}
|
|
40
|
-
\`\`\`
|
|
41
|
-
`.trim(),
|
|
30
|
+
id: 'code-block',
|
|
31
|
+
content:
|
|
32
|
+
'```jsx\ninterface User {\n name: string;\n age: number;\n}\n\nfunction greet(user: User): string {\n return `<div>Hello, ${user.name}!</div>`;\n}\n```',
|
|
42
33
|
},
|
|
43
34
|
};
|
|
44
35
|
|
|
45
36
|
export const WithTable: Story = {
|
|
46
37
|
args: {
|
|
47
|
-
id:
|
|
38
|
+
id: 'with-table',
|
|
48
39
|
content: `
|
|
49
40
|
| 字段名 | 类型 | 必填 | 说明 |
|
|
50
41
|
|--------|------|------|------|
|
|
@@ -57,7 +48,7 @@ export const WithTable: Story = {
|
|
|
57
48
|
|
|
58
49
|
export const LongContent: Story = {
|
|
59
50
|
args: {
|
|
60
|
-
id:
|
|
51
|
+
id: 'long-content',
|
|
61
52
|
content: `
|
|
62
53
|
## 表单分析
|
|
63
54
|
|
|
@@ -85,7 +76,7 @@ export const LongContent: Story = {
|
|
|
85
76
|
|
|
86
77
|
export const JSONCodeBlock: Story = {
|
|
87
78
|
args: {
|
|
88
|
-
id:
|
|
79
|
+
id: 'json-block',
|
|
89
80
|
content: `
|
|
90
81
|
\`\`\`json
|
|
91
82
|
{
|
package/src/style.css
CHANGED
package/style.css
CHANGED
|
@@ -481,6 +481,421 @@
|
|
|
481
481
|
.ms-3 {
|
|
482
482
|
margin-inline-start: calc(3.5px * 3);
|
|
483
483
|
}
|
|
484
|
+
.prose {
|
|
485
|
+
color: var(--tw-prose-body);
|
|
486
|
+
max-width: 65ch;
|
|
487
|
+
:where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
488
|
+
margin-top: 1.25em;
|
|
489
|
+
margin-bottom: 1.25em;
|
|
490
|
+
}
|
|
491
|
+
:where([class~="lead"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
492
|
+
color: var(--tw-prose-lead);
|
|
493
|
+
font-size: 1.25em;
|
|
494
|
+
line-height: 1.6;
|
|
495
|
+
margin-top: 1.2em;
|
|
496
|
+
margin-bottom: 1.2em;
|
|
497
|
+
}
|
|
498
|
+
:where(a):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
499
|
+
color: var(--tw-prose-links);
|
|
500
|
+
text-decoration: underline;
|
|
501
|
+
font-weight: 500;
|
|
502
|
+
}
|
|
503
|
+
:where(strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
504
|
+
color: var(--tw-prose-bold);
|
|
505
|
+
font-weight: 600;
|
|
506
|
+
}
|
|
507
|
+
:where(a strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
508
|
+
color: inherit;
|
|
509
|
+
}
|
|
510
|
+
:where(blockquote strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
511
|
+
color: inherit;
|
|
512
|
+
}
|
|
513
|
+
:where(thead th strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
514
|
+
color: inherit;
|
|
515
|
+
}
|
|
516
|
+
:where(ol):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
517
|
+
list-style-type: decimal;
|
|
518
|
+
margin-top: 1.25em;
|
|
519
|
+
margin-bottom: 1.25em;
|
|
520
|
+
padding-inline-start: 1.625em;
|
|
521
|
+
}
|
|
522
|
+
:where(ol[type="A"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
523
|
+
list-style-type: upper-alpha;
|
|
524
|
+
}
|
|
525
|
+
:where(ol[type="a"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
526
|
+
list-style-type: lower-alpha;
|
|
527
|
+
}
|
|
528
|
+
:where(ol[type="A" s]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
529
|
+
list-style-type: upper-alpha;
|
|
530
|
+
}
|
|
531
|
+
:where(ol[type="a" s]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
532
|
+
list-style-type: lower-alpha;
|
|
533
|
+
}
|
|
534
|
+
:where(ol[type="I"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
535
|
+
list-style-type: upper-roman;
|
|
536
|
+
}
|
|
537
|
+
:where(ol[type="i"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
538
|
+
list-style-type: lower-roman;
|
|
539
|
+
}
|
|
540
|
+
:where(ol[type="I" s]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
541
|
+
list-style-type: upper-roman;
|
|
542
|
+
}
|
|
543
|
+
:where(ol[type="i" s]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
544
|
+
list-style-type: lower-roman;
|
|
545
|
+
}
|
|
546
|
+
:where(ol[type="1"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
547
|
+
list-style-type: decimal;
|
|
548
|
+
}
|
|
549
|
+
:where(ul):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
550
|
+
list-style-type: disc;
|
|
551
|
+
margin-top: 1.25em;
|
|
552
|
+
margin-bottom: 1.25em;
|
|
553
|
+
padding-inline-start: 1.625em;
|
|
554
|
+
}
|
|
555
|
+
:where(ol > li):not(:where([class~="not-prose"], [class~="not-prose"] *))::marker {
|
|
556
|
+
font-weight: 400;
|
|
557
|
+
color: var(--tw-prose-counters);
|
|
558
|
+
}
|
|
559
|
+
:where(ul > li):not(:where([class~="not-prose"], [class~="not-prose"] *))::marker {
|
|
560
|
+
color: var(--tw-prose-bullets);
|
|
561
|
+
}
|
|
562
|
+
:where(dt):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
563
|
+
color: var(--tw-prose-headings);
|
|
564
|
+
font-weight: 600;
|
|
565
|
+
margin-top: 1.25em;
|
|
566
|
+
}
|
|
567
|
+
:where(hr):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
568
|
+
border-color: var(--tw-prose-hr);
|
|
569
|
+
border-top-width: 1px;
|
|
570
|
+
margin-top: 3em;
|
|
571
|
+
margin-bottom: 3em;
|
|
572
|
+
}
|
|
573
|
+
:where(blockquote):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
574
|
+
font-weight: 500;
|
|
575
|
+
font-style: italic;
|
|
576
|
+
color: var(--tw-prose-quotes);
|
|
577
|
+
border-inline-start-width: 0.25rem;
|
|
578
|
+
border-inline-start-color: var(--tw-prose-quote-borders);
|
|
579
|
+
quotes: "\201C""\201D""\2018""\2019";
|
|
580
|
+
margin-top: 1.6em;
|
|
581
|
+
margin-bottom: 1.6em;
|
|
582
|
+
padding-inline-start: 1em;
|
|
583
|
+
}
|
|
584
|
+
:where(blockquote p:first-of-type):not(:where([class~="not-prose"], [class~="not-prose"] *))::before {
|
|
585
|
+
content: open-quote;
|
|
586
|
+
}
|
|
587
|
+
:where(blockquote p:last-of-type):not(:where([class~="not-prose"], [class~="not-prose"] *))::after {
|
|
588
|
+
content: close-quote;
|
|
589
|
+
}
|
|
590
|
+
:where(h1):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
591
|
+
color: var(--tw-prose-headings);
|
|
592
|
+
font-weight: 800;
|
|
593
|
+
font-size: 2.25em;
|
|
594
|
+
margin-top: 0;
|
|
595
|
+
margin-bottom: 0.8888889em;
|
|
596
|
+
line-height: 1.1111111;
|
|
597
|
+
}
|
|
598
|
+
:where(h1 strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
599
|
+
font-weight: 900;
|
|
600
|
+
color: inherit;
|
|
601
|
+
}
|
|
602
|
+
:where(h2):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
603
|
+
color: var(--tw-prose-headings);
|
|
604
|
+
font-weight: 700;
|
|
605
|
+
font-size: 1.5em;
|
|
606
|
+
margin-top: 2em;
|
|
607
|
+
margin-bottom: 1em;
|
|
608
|
+
line-height: 1.3333333;
|
|
609
|
+
}
|
|
610
|
+
:where(h2 strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
611
|
+
font-weight: 800;
|
|
612
|
+
color: inherit;
|
|
613
|
+
}
|
|
614
|
+
:where(h3):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
615
|
+
color: var(--tw-prose-headings);
|
|
616
|
+
font-weight: 600;
|
|
617
|
+
font-size: 1.25em;
|
|
618
|
+
margin-top: 1.6em;
|
|
619
|
+
margin-bottom: 0.6em;
|
|
620
|
+
line-height: 1.6;
|
|
621
|
+
}
|
|
622
|
+
:where(h3 strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
623
|
+
font-weight: 700;
|
|
624
|
+
color: inherit;
|
|
625
|
+
}
|
|
626
|
+
:where(h4):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
627
|
+
color: var(--tw-prose-headings);
|
|
628
|
+
font-weight: 600;
|
|
629
|
+
margin-top: 1.5em;
|
|
630
|
+
margin-bottom: 0.5em;
|
|
631
|
+
line-height: 1.5;
|
|
632
|
+
}
|
|
633
|
+
:where(h4 strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
634
|
+
font-weight: 700;
|
|
635
|
+
color: inherit;
|
|
636
|
+
}
|
|
637
|
+
:where(img):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
638
|
+
margin-top: 2em;
|
|
639
|
+
margin-bottom: 2em;
|
|
640
|
+
}
|
|
641
|
+
:where(picture):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
642
|
+
display: block;
|
|
643
|
+
margin-top: 2em;
|
|
644
|
+
margin-bottom: 2em;
|
|
645
|
+
}
|
|
646
|
+
:where(video):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
647
|
+
margin-top: 2em;
|
|
648
|
+
margin-bottom: 2em;
|
|
649
|
+
}
|
|
650
|
+
:where(kbd):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
651
|
+
font-weight: 500;
|
|
652
|
+
font-family: inherit;
|
|
653
|
+
color: var(--tw-prose-kbd);
|
|
654
|
+
box-shadow: 0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);
|
|
655
|
+
font-size: 0.875em;
|
|
656
|
+
border-radius: 0.3125rem;
|
|
657
|
+
padding-top: 0.1875em;
|
|
658
|
+
padding-inline-end: 0.375em;
|
|
659
|
+
padding-bottom: 0.1875em;
|
|
660
|
+
padding-inline-start: 0.375em;
|
|
661
|
+
}
|
|
662
|
+
:where(code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
663
|
+
color: var(--tw-prose-code);
|
|
664
|
+
font-weight: 600;
|
|
665
|
+
font-size: 0.875em;
|
|
666
|
+
}
|
|
667
|
+
:where(code):not(:where([class~="not-prose"], [class~="not-prose"] *))::before {
|
|
668
|
+
content: "`";
|
|
669
|
+
}
|
|
670
|
+
:where(code):not(:where([class~="not-prose"], [class~="not-prose"] *))::after {
|
|
671
|
+
content: "`";
|
|
672
|
+
}
|
|
673
|
+
:where(a code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
674
|
+
color: inherit;
|
|
675
|
+
}
|
|
676
|
+
:where(h1 code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
677
|
+
color: inherit;
|
|
678
|
+
}
|
|
679
|
+
:where(h2 code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
680
|
+
color: inherit;
|
|
681
|
+
font-size: 0.875em;
|
|
682
|
+
}
|
|
683
|
+
:where(h3 code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
684
|
+
color: inherit;
|
|
685
|
+
font-size: 0.9em;
|
|
686
|
+
}
|
|
687
|
+
:where(h4 code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
688
|
+
color: inherit;
|
|
689
|
+
}
|
|
690
|
+
:where(blockquote code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
691
|
+
color: inherit;
|
|
692
|
+
}
|
|
693
|
+
:where(thead th code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
694
|
+
color: inherit;
|
|
695
|
+
}
|
|
696
|
+
:where(pre):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
697
|
+
color: var(--tw-prose-pre-code);
|
|
698
|
+
background-color: var(--tw-prose-pre-bg);
|
|
699
|
+
overflow-x: auto;
|
|
700
|
+
font-weight: 400;
|
|
701
|
+
font-size: 0.875em;
|
|
702
|
+
line-height: 1.7142857;
|
|
703
|
+
margin-top: 1.7142857em;
|
|
704
|
+
margin-bottom: 1.7142857em;
|
|
705
|
+
border-radius: 0.375rem;
|
|
706
|
+
padding-top: 0.8571429em;
|
|
707
|
+
padding-inline-end: 1.1428571em;
|
|
708
|
+
padding-bottom: 0.8571429em;
|
|
709
|
+
padding-inline-start: 1.1428571em;
|
|
710
|
+
}
|
|
711
|
+
:where(pre code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
712
|
+
background-color: transparent;
|
|
713
|
+
border-width: 0;
|
|
714
|
+
border-radius: 0;
|
|
715
|
+
padding: 0;
|
|
716
|
+
font-weight: inherit;
|
|
717
|
+
color: inherit;
|
|
718
|
+
font-size: inherit;
|
|
719
|
+
font-family: inherit;
|
|
720
|
+
line-height: inherit;
|
|
721
|
+
}
|
|
722
|
+
:where(pre code):not(:where([class~="not-prose"], [class~="not-prose"] *))::before {
|
|
723
|
+
content: none;
|
|
724
|
+
}
|
|
725
|
+
:where(pre code):not(:where([class~="not-prose"], [class~="not-prose"] *))::after {
|
|
726
|
+
content: none;
|
|
727
|
+
}
|
|
728
|
+
:where(table):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
729
|
+
width: 100%;
|
|
730
|
+
table-layout: auto;
|
|
731
|
+
margin-top: 2em;
|
|
732
|
+
margin-bottom: 2em;
|
|
733
|
+
font-size: 0.875em;
|
|
734
|
+
line-height: 1.7142857;
|
|
735
|
+
}
|
|
736
|
+
:where(thead):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
737
|
+
border-bottom-width: 1px;
|
|
738
|
+
border-bottom-color: var(--tw-prose-th-borders);
|
|
739
|
+
}
|
|
740
|
+
:where(thead th):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
741
|
+
color: var(--tw-prose-headings);
|
|
742
|
+
font-weight: 600;
|
|
743
|
+
vertical-align: bottom;
|
|
744
|
+
padding-inline-end: 0.5714286em;
|
|
745
|
+
padding-bottom: 0.5714286em;
|
|
746
|
+
padding-inline-start: 0.5714286em;
|
|
747
|
+
}
|
|
748
|
+
:where(tbody tr):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
749
|
+
border-bottom-width: 1px;
|
|
750
|
+
border-bottom-color: var(--tw-prose-td-borders);
|
|
751
|
+
}
|
|
752
|
+
:where(tbody tr:last-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
753
|
+
border-bottom-width: 0;
|
|
754
|
+
}
|
|
755
|
+
:where(tbody td):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
756
|
+
vertical-align: baseline;
|
|
757
|
+
}
|
|
758
|
+
:where(tfoot):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
759
|
+
border-top-width: 1px;
|
|
760
|
+
border-top-color: var(--tw-prose-th-borders);
|
|
761
|
+
}
|
|
762
|
+
:where(tfoot td):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
763
|
+
vertical-align: top;
|
|
764
|
+
}
|
|
765
|
+
:where(th, td):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
766
|
+
text-align: start;
|
|
767
|
+
}
|
|
768
|
+
:where(figure > *):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
769
|
+
margin-top: 0;
|
|
770
|
+
margin-bottom: 0;
|
|
771
|
+
}
|
|
772
|
+
:where(figcaption):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
773
|
+
color: var(--tw-prose-captions);
|
|
774
|
+
font-size: 0.875em;
|
|
775
|
+
line-height: 1.4285714;
|
|
776
|
+
margin-top: 0.8571429em;
|
|
777
|
+
}
|
|
778
|
+
--tw-prose-body: oklch(37.3% 0.034 259.733);
|
|
779
|
+
--tw-prose-headings: oklch(21% 0.034 264.665);
|
|
780
|
+
--tw-prose-lead: oklch(44.6% 0.03 256.802);
|
|
781
|
+
--tw-prose-links: oklch(21% 0.034 264.665);
|
|
782
|
+
--tw-prose-bold: oklch(21% 0.034 264.665);
|
|
783
|
+
--tw-prose-counters: oklch(55.1% 0.027 264.364);
|
|
784
|
+
--tw-prose-bullets: oklch(87.2% 0.01 258.338);
|
|
785
|
+
--tw-prose-hr: oklch(92.8% 0.006 264.531);
|
|
786
|
+
--tw-prose-quotes: oklch(21% 0.034 264.665);
|
|
787
|
+
--tw-prose-quote-borders: oklch(92.8% 0.006 264.531);
|
|
788
|
+
--tw-prose-captions: oklch(55.1% 0.027 264.364);
|
|
789
|
+
--tw-prose-kbd: oklch(21% 0.034 264.665);
|
|
790
|
+
--tw-prose-kbd-shadows: color-mix(in oklab, oklch(21% 0.034 264.665) 10%, transparent);
|
|
791
|
+
--tw-prose-code: oklch(21% 0.034 264.665);
|
|
792
|
+
--tw-prose-pre-code: oklch(92.8% 0.006 264.531);
|
|
793
|
+
--tw-prose-pre-bg: oklch(27.8% 0.033 256.848);
|
|
794
|
+
--tw-prose-th-borders: oklch(87.2% 0.01 258.338);
|
|
795
|
+
--tw-prose-td-borders: oklch(92.8% 0.006 264.531);
|
|
796
|
+
--tw-prose-invert-body: oklch(87.2% 0.01 258.338);
|
|
797
|
+
--tw-prose-invert-headings: #fff;
|
|
798
|
+
--tw-prose-invert-lead: oklch(70.7% 0.022 261.325);
|
|
799
|
+
--tw-prose-invert-links: #fff;
|
|
800
|
+
--tw-prose-invert-bold: #fff;
|
|
801
|
+
--tw-prose-invert-counters: oklch(70.7% 0.022 261.325);
|
|
802
|
+
--tw-prose-invert-bullets: oklch(44.6% 0.03 256.802);
|
|
803
|
+
--tw-prose-invert-hr: oklch(37.3% 0.034 259.733);
|
|
804
|
+
--tw-prose-invert-quotes: oklch(96.7% 0.003 264.542);
|
|
805
|
+
--tw-prose-invert-quote-borders: oklch(37.3% 0.034 259.733);
|
|
806
|
+
--tw-prose-invert-captions: oklch(70.7% 0.022 261.325);
|
|
807
|
+
--tw-prose-invert-kbd: #fff;
|
|
808
|
+
--tw-prose-invert-kbd-shadows: rgb(255 255 255 / 10%);
|
|
809
|
+
--tw-prose-invert-code: #fff;
|
|
810
|
+
--tw-prose-invert-pre-code: oklch(87.2% 0.01 258.338);
|
|
811
|
+
--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);
|
|
812
|
+
--tw-prose-invert-th-borders: oklch(44.6% 0.03 256.802);
|
|
813
|
+
--tw-prose-invert-td-borders: oklch(37.3% 0.034 259.733);
|
|
814
|
+
font-size: 1rem;
|
|
815
|
+
line-height: 1.75;
|
|
816
|
+
:where(picture > img):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
817
|
+
margin-top: 0;
|
|
818
|
+
margin-bottom: 0;
|
|
819
|
+
}
|
|
820
|
+
:where(li):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
821
|
+
margin-top: 0.5em;
|
|
822
|
+
margin-bottom: 0.5em;
|
|
823
|
+
}
|
|
824
|
+
:where(ol > li):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
825
|
+
padding-inline-start: 0.375em;
|
|
826
|
+
}
|
|
827
|
+
:where(ul > li):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
828
|
+
padding-inline-start: 0.375em;
|
|
829
|
+
}
|
|
830
|
+
:where(.prose > ul > li p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
831
|
+
margin-top: 0.75em;
|
|
832
|
+
margin-bottom: 0.75em;
|
|
833
|
+
}
|
|
834
|
+
:where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
835
|
+
margin-top: 1.25em;
|
|
836
|
+
}
|
|
837
|
+
:where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
838
|
+
margin-bottom: 1.25em;
|
|
839
|
+
}
|
|
840
|
+
:where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
841
|
+
margin-top: 1.25em;
|
|
842
|
+
}
|
|
843
|
+
:where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
844
|
+
margin-bottom: 1.25em;
|
|
845
|
+
}
|
|
846
|
+
:where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
847
|
+
margin-top: 0.75em;
|
|
848
|
+
margin-bottom: 0.75em;
|
|
849
|
+
}
|
|
850
|
+
:where(dl):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
851
|
+
margin-top: 1.25em;
|
|
852
|
+
margin-bottom: 1.25em;
|
|
853
|
+
}
|
|
854
|
+
:where(dd):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
855
|
+
margin-top: 0.5em;
|
|
856
|
+
padding-inline-start: 1.625em;
|
|
857
|
+
}
|
|
858
|
+
:where(hr + *):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
859
|
+
margin-top: 0;
|
|
860
|
+
}
|
|
861
|
+
:where(h2 + *):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
862
|
+
margin-top: 0;
|
|
863
|
+
}
|
|
864
|
+
:where(h3 + *):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
865
|
+
margin-top: 0;
|
|
866
|
+
}
|
|
867
|
+
:where(h4 + *):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
868
|
+
margin-top: 0;
|
|
869
|
+
}
|
|
870
|
+
:where(thead th:first-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
871
|
+
padding-inline-start: 0;
|
|
872
|
+
}
|
|
873
|
+
:where(thead th:last-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
874
|
+
padding-inline-end: 0;
|
|
875
|
+
}
|
|
876
|
+
:where(tbody td, tfoot td):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
877
|
+
padding-top: 0.5714286em;
|
|
878
|
+
padding-inline-end: 0.5714286em;
|
|
879
|
+
padding-bottom: 0.5714286em;
|
|
880
|
+
padding-inline-start: 0.5714286em;
|
|
881
|
+
}
|
|
882
|
+
:where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
883
|
+
padding-inline-start: 0;
|
|
884
|
+
}
|
|
885
|
+
:where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
886
|
+
padding-inline-end: 0;
|
|
887
|
+
}
|
|
888
|
+
:where(figure):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
889
|
+
margin-top: 2em;
|
|
890
|
+
margin-bottom: 2em;
|
|
891
|
+
}
|
|
892
|
+
:where(.prose > :first-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
893
|
+
margin-top: 0;
|
|
894
|
+
}
|
|
895
|
+
:where(.prose > :last-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
896
|
+
margin-bottom: 0;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
484
899
|
.mt-0 {
|
|
485
900
|
margin-top: 0px;
|
|
486
901
|
}
|
|
@@ -514,6 +929,9 @@
|
|
|
514
929
|
.mt-\[16px\] {
|
|
515
930
|
margin-top: 16px;
|
|
516
931
|
}
|
|
932
|
+
.mt-\[40px\] {
|
|
933
|
+
margin-top: 40px;
|
|
934
|
+
}
|
|
517
935
|
.mt-\[42px\] {
|
|
518
936
|
margin-top: 42px;
|
|
519
937
|
}
|
|
@@ -2110,9 +2528,6 @@
|
|
|
2110
2528
|
.\!text-\[\#999\] {
|
|
2111
2529
|
color: #999 !important;
|
|
2112
2530
|
}
|
|
2113
|
-
.\!text-\[\#12111\] {
|
|
2114
|
-
color: #12111 !important;
|
|
2115
|
-
}
|
|
2116
2531
|
.\!text-\[\#121111\] {
|
|
2117
2532
|
color: #121111 !important;
|
|
2118
2533
|
}
|
|
@@ -2182,9 +2597,6 @@
|
|
|
2182
2597
|
.text-\[\#ff5631\] {
|
|
2183
2598
|
color: #ff5631;
|
|
2184
2599
|
}
|
|
2185
|
-
.text-\[\*\] {
|
|
2186
|
-
color: *;
|
|
2187
|
-
}
|
|
2188
2600
|
.text-black {
|
|
2189
2601
|
color: var(--color-black);
|
|
2190
2602
|
}
|