@umami/shiso 0.29.0 → 0.31.0

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/index.css CHANGED
@@ -1,158 +1,92 @@
1
- /* virtual-css:css:0292bafad22c4cab436655610801c589 */
2
- /* virtual-css:css:85717ba9ea360d365e3f29144820b208 */
3
- .CodeBlock_container__YmFmN {
4
- position: relative;
5
- background: var(--base-color-900);
6
- padding: var(--spacing-5);
7
- border-radius: 6px;
8
- white-space: pre-wrap;
9
- word-wrap: break-word;
10
- }
11
- pre.CodeBlock_container__YmFmN code {
12
- font-family: var(--font-family-code);
13
- color: var(--base-color-300);
14
- padding: 0;
15
- border: 0;
16
- background: transparent;
17
- }
18
- .CodeBlock_button__NDg0Y {
19
- border: 0;
20
- position: absolute;
21
- right: var(--spacing-5);
22
- top: var(--spacing-5);
23
- cursor: pointer;
24
- background: transparent;
25
- }
26
- .CodeBlock_copy__MmQzM {
27
- color: var(--base-color-300);
28
- }
29
- .CodeBlock_copy__MmQzM:hover {
30
- color: var(--base-color-50);
31
- }
32
- .CodeBlock_check__YmI0Z {
33
- color: var(--success-color);
34
- }
35
-
36
- /* virtual-css:css:0ed498f49b21d225f1b5a4e1685cf2e5 */
37
- .PageLinks_links__MjgyM {
1
+ /* virtual-css:css:e01d9571088b882a03b91eb2755da783 */
2
+ .PageLinks_links__YmMzM {
38
3
  position: sticky;
39
4
  top: 30px;
40
5
  height: max-content;
41
6
  }
42
- .PageLinks_links__MjgyM a.PageLinks_link__YWRjO {
7
+ .PageLinks_links__YmMzM a.PageLinks_link__MjIyN {
43
8
  display: block;
44
9
  color: var(--font-color-muted);
45
10
  font-size: var(--font-size);
46
11
  text-wrap: nowrap;
47
12
  text-decoration: none;
48
13
  }
49
- .PageLinks_links__MjgyM a.PageLinks_link__YWRjO:hover {
14
+ .PageLinks_links__YmMzM a.PageLinks_link__MjIyN:hover {
50
15
  color: var(--primary-color);
51
16
  text-decoration: none;
52
17
  }
53
- .PageLinks_indent-1__MDcyM {
18
+ .PageLinks_indent-1__MDg5M {
54
19
  margin-left: 0;
55
20
  }
56
- .PageLinks_indent-2__OWYxZ {
21
+ .PageLinks_indent-2__YTU4M {
57
22
  margin-left: 0;
58
23
  }
59
- .PageLinks_indent-3__ZmYwM {
24
+ .PageLinks_indent-3__NTYxY {
60
25
  margin-left: 10px;
61
26
  }
62
- .PageLinks_indent-4__NzU2Y {
27
+ .PageLinks_indent-4__NjhmY {
63
28
  margin-left: 20px;
64
29
  }
65
- .PageLinks_indent-5__NmVkY {
30
+ .PageLinks_indent-5__ZmFiY {
66
31
  margin-left: 30px;
67
32
  }
68
- .PageLinks_indent-6__NzQ4N {
33
+ .PageLinks_indent-6__MmRkN {
69
34
  margin-left: 40px;
70
35
  }
71
- .PageLinks_links__MjgyM a.PageLinks_selected__YmZhY {
36
+ .PageLinks_links__YmMzM a.PageLinks_selected__NDQxY {
72
37
  color: var(--primary-color);
73
38
  }
74
39
 
75
- /* virtual-css:css:72ce2cfbba7b635b2ff1a5f4f5eeabf3 */
76
- .SideNav_nav__Mjk0M {
77
- overflow-y: auto;
78
- }
79
- .SideNav_nav__Mjk0M.SideNav_sticky__ZmE5M {
80
- position: sticky;
81
- top: 30px;
82
- }
83
- .SideNav_nav__Mjk0M .SideNav_item__ZmE0N {
84
- color: var(--font-color-muted);
85
- padding: 0;
86
- border-radius: 0;
87
- border-left: var(--border-size-1) solid var(--border-color);
88
- }
89
- .SideNav_nav__Mjk0M .SideNav_item__ZmE0N a {
90
- color: currentColor;
91
- width: 100%;
92
- padding: var(--padding-y) var(--padding-x);
93
- text-decoration: none;
94
- }
95
- .SideNav_nav__Mjk0M .SideNav_item__ZmE0N a:hover {
96
- color: var(--primary-color);
97
- }
98
- .SideNav_nav__Mjk0M .SideNav_item__ZmE0N.SideNav_selected__MWRhM {
99
- color: var(--font-color);
100
- border-color: var(--primary-color);
101
- }
102
- .SideNav_items__NjM0Z header {
103
- padding: var(--padding-y) 0;
104
- }
105
-
106
- /* virtual-css:css:7938c95522eda3e1f8244364ad70b38c */
107
- .ContentArea_content__NGFkN {
40
+ /* virtual-css:css:4d0931c84adfae5533b067ea199724f8 */
41
+ .Markdown_content__ZDlhO {
108
42
  font-size: 16px;
109
43
  margin-bottom: 60px;
110
44
  }
111
- .ContentArea_content__NGFkN > p {
45
+ .Markdown_content__ZDlhO > p {
112
46
  color: var(--font-color);
113
47
  line-height: 1.8;
114
48
  }
115
- .ContentArea_content__NGFkN a {
49
+ .Markdown_content__ZDlhO a {
116
50
  color: var(--font-color);
117
51
  font-weight: 600;
118
52
  text-decoration: underline var(--border-color);
119
53
  text-underline-offset: 4px;
120
54
  }
121
- .ContentArea_content__NGFkN a:hover {
55
+ .Markdown_content__ZDlhO a:hover {
122
56
  color: var(--font-color);
123
57
  text-decoration: underline var(--primary-color);
124
58
  }
125
- .ContentArea_content__NGFkN h1 {
59
+ .Markdown_content__ZDlhO h1 {
126
60
  font-size: var(--font-size-8);
127
61
  letter-spacing: var(--letter-spacing-1);
128
62
  margin: 0 0 var(--spacing-4) 0;
129
63
  }
130
- .ContentArea_content__NGFkN h2 {
64
+ .Markdown_content__ZDlhO h2 {
131
65
  font-size: var(--font-size-6);
132
66
  letter-spacing: var(--letter-spacing-1);
133
67
  margin: var(--spacing-8) 0 var(--spacing-4) 0;
134
68
  }
135
- .ContentArea_content__NGFkN h3 {
69
+ .Markdown_content__ZDlhO h3 {
136
70
  font-size: var(--font-size-5);
137
71
  letter-spacing: var(--letter-spacing-1);
138
72
  margin: var(--spacing-7) 0 var(--spacing-4) 0;
139
73
  }
140
- .ContentArea_content__NGFkN *[id] {
74
+ .Markdown_content__ZDlhO *[id] {
141
75
  scroll-margin-top: var(--spacing-4);
142
76
  }
143
- .ContentArea_content__NGFkN ul {
77
+ .Markdown_content__ZDlhO ul {
144
78
  list-style: disc;
145
79
  }
146
- .ContentArea_content__NGFkN ol {
80
+ .Markdown_content__ZDlhO ol {
147
81
  list-style: decimal;
148
82
  }
149
- .ContentArea_content__NGFkN pre {
83
+ .Markdown_content__ZDlhO pre {
150
84
  margin: var(--spacing-5) 0;
151
85
  }
152
- .ContentArea_content__NGFkN code {
86
+ .Markdown_content__ZDlhO code {
153
87
  font-size: 14px;
154
88
  }
155
- .ContentArea_content__NGFkN code:not([class]) {
89
+ .Markdown_content__ZDlhO code:not([class]) {
156
90
  font-family: var(--font-family-code);
157
91
  color: var(--font-color);
158
92
  padding: var(--spacing-1);
@@ -160,3 +94,71 @@ pre.CodeBlock_container__YmFmN code {
160
94
  background: var(--base-color-50);
161
95
  font-weight: var(--font-weight-bold);
162
96
  }
97
+
98
+ /* virtual-css:css:62c31e195181c97259fa56b13d20ea6d */
99
+ .SideNav_nav__YjU1O {
100
+ overflow-y: auto;
101
+ scrollbar-width: thin;
102
+ scrollbar-color: var(--border-color) var(--background-color);
103
+ scrollbar-gutter: stable;
104
+ }
105
+ .SideNav_nav__YjU1O.SideNav_sticky__NjhmY {
106
+ position: sticky;
107
+ top: 30px;
108
+ }
109
+ .SideNav_nav__YjU1O .SideNav_item__ZGRlM {
110
+ color: var(--font-color-muted);
111
+ padding: 0;
112
+ border-radius: 0;
113
+ border-left: var(--border-size-1) solid var(--border-color);
114
+ }
115
+ .SideNav_nav__YjU1O .SideNav_item__ZGRlM a {
116
+ color: currentColor;
117
+ width: 100%;
118
+ padding: var(--padding-y) var(--padding-x);
119
+ text-decoration: none;
120
+ }
121
+ .SideNav_nav__YjU1O .SideNav_item__ZGRlM a:hover {
122
+ color: var(--primary-color);
123
+ }
124
+ .SideNav_nav__YjU1O .SideNav_item__ZGRlM.SideNav_selected__NTMzY {
125
+ color: var(--font-color);
126
+ border-color: var(--primary-color);
127
+ }
128
+ .SideNav_items__MWI3O header {
129
+ padding: var(--padding-y) 0;
130
+ }
131
+
132
+ /* virtual-css:css:2dd9c1a25bf05a14c9a7ab7ce1da6aef */
133
+ .CodeBlock_container__ZTkxY {
134
+ position: relative;
135
+ background: var(--base-color-900);
136
+ padding: var(--spacing-5);
137
+ border-radius: 6px;
138
+ white-space: pre-wrap;
139
+ word-wrap: break-word;
140
+ }
141
+ pre.CodeBlock_container__ZTkxY code {
142
+ font-family: var(--font-family-code);
143
+ color: var(--base-color-300);
144
+ padding: 0;
145
+ border: 0;
146
+ background: transparent;
147
+ }
148
+ .CodeBlock_button__MmZkO {
149
+ border: 0;
150
+ position: absolute;
151
+ right: var(--spacing-5);
152
+ top: var(--spacing-5);
153
+ cursor: pointer;
154
+ background: transparent;
155
+ }
156
+ .CodeBlock_copy__M2I0N {
157
+ color: var(--base-color-300);
158
+ }
159
+ .CodeBlock_copy__M2I0N:hover {
160
+ color: var(--base-color-50);
161
+ }
162
+ .CodeBlock_check__MjkzY {
163
+ color: var(--success-color);
164
+ }
package/dist/index.d.ts CHANGED
@@ -1,48 +1,56 @@
1
- // Generated by dts-bundle v0.7.3
2
- // Dependencies for this module:
3
- // ../../react
4
- // ../../@/lib/types
5
-
6
- declare module '@umami/shiso' {
7
- import '@umami/react-zen/styles.css';
8
- import 'highlight.js/styles/github-dark.css';
9
- import { Blog } from '@umami/shiso/Blog';
10
- import { Docs } from '@umami/shiso/Docs';
11
- import { Shiso } from '@umami/shiso/Shiso';
12
- export { Blog, Docs, Shiso };
13
- }
14
-
15
- declare module '@umami/shiso/Blog' {
16
- export interface BlogProps {
17
- content: any;
18
- config: any;
19
- }
20
- export function Blog({ content }: BlogProps): import("react").JSX.Element;
21
- }
22
-
23
- declare module '@umami/shiso/Docs' {
24
- export function Docs(): import("react").JSX.Element;
25
- }
26
-
27
- declare module '@umami/shiso/Shiso' {
28
- import { JSX } from 'react';
29
- import type { ShisoConfig, ShisoContent } from '@/lib/types';
30
- export interface ShisoProps {
31
- content: ShisoContent;
32
- type: string;
33
- config: ShisoConfig;
34
- components?: {
35
- [key: string]: any;
36
- };
37
- templates?: {
38
- [key: string]: any;
39
- };
40
- }
41
- export type ShisoTemplateComponent = ({ content, config, }: {
42
- content: any;
43
- config: ShisoConfig;
44
- }) => JSX.Element;
45
- export const ShisoContext: import("react").Context<any>;
46
- export function Shiso({ content, type, config, components, templates }: ShisoProps): JSX.Element;
47
- }
48
-
1
+ // Generated by dts-bundle v0.7.3
2
+ // Dependencies for this module:
3
+ // ../../react
4
+ // ../../@/lib/types
5
+
6
+ declare module '@umami/shiso' {
7
+ import '@umami/react-zen/styles.css';
8
+ import 'highlight.js/styles/github-dark.css';
9
+ import { Blog } from '@umami/shiso/Blog';
10
+ import { Docs } from '@umami/shiso/Docs';
11
+ import { Shiso } from '@umami/shiso/Shiso';
12
+ export { Blog, Docs, Shiso };
13
+ }
14
+
15
+ declare module '@umami/shiso/Blog' {
16
+ export interface BlogProps {
17
+ title: string;
18
+ description?: string;
19
+ code: string;
20
+ author?: string;
21
+ date?: string;
22
+ image?: string;
23
+ anchors?: any[];
24
+ }
25
+ export function Blog({ title, description, code, author, date, image, anchors }: BlogProps): import("react").JSX.Element;
26
+ }
27
+
28
+ declare module '@umami/shiso/Docs' {
29
+ export function Docs({ content, config }: {
30
+ content: any;
31
+ config: any;
32
+ }): import("react").JSX.Element;
33
+ }
34
+
35
+ declare module '@umami/shiso/Shiso' {
36
+ import { JSX } from 'react';
37
+ import type { ShisoConfig, ShisoContent } from '@/lib/types';
38
+ export interface ShisoProps {
39
+ type: string;
40
+ config: ShisoConfig;
41
+ content: ShisoContent;
42
+ components?: {
43
+ [key: string]: any;
44
+ };
45
+ templates?: {
46
+ [key: string]: any;
47
+ };
48
+ }
49
+ export type ShisoTemplateComponent = ({ content, config, }: {
50
+ content: any;
51
+ config: ShisoConfig;
52
+ }) => JSX.Element;
53
+ export const ShisoContext: import("react").Context<any>;
54
+ export function Shiso({ type, config, content, components, templates }: ShisoProps): JSX.Element;
55
+ }
56
+