@umami/shiso 0.27.0 → 0.29.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 +22 -21
- package/dist/index.js +14 -7
- package/dist/index.mjs +14 -7
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -73,85 +73,86 @@ pre.CodeBlock_container__YmFmN code {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/* virtual-css:css:72ce2cfbba7b635b2ff1a5f4f5eeabf3 */
|
|
76
|
-
.
|
|
76
|
+
.SideNav_nav__Mjk0M {
|
|
77
77
|
overflow-y: auto;
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.SideNav_nav__Mjk0M.SideNav_sticky__ZmE5M {
|
|
80
80
|
position: sticky;
|
|
81
|
+
top: 30px;
|
|
81
82
|
}
|
|
82
|
-
.
|
|
83
|
+
.SideNav_nav__Mjk0M .SideNav_item__ZmE0N {
|
|
83
84
|
color: var(--font-color-muted);
|
|
84
85
|
padding: 0;
|
|
85
86
|
border-radius: 0;
|
|
86
87
|
border-left: var(--border-size-1) solid var(--border-color);
|
|
87
88
|
}
|
|
88
|
-
.
|
|
89
|
+
.SideNav_nav__Mjk0M .SideNav_item__ZmE0N a {
|
|
89
90
|
color: currentColor;
|
|
90
91
|
width: 100%;
|
|
91
92
|
padding: var(--padding-y) var(--padding-x);
|
|
92
93
|
text-decoration: none;
|
|
93
94
|
}
|
|
94
|
-
.
|
|
95
|
+
.SideNav_nav__Mjk0M .SideNav_item__ZmE0N a:hover {
|
|
95
96
|
color: var(--primary-color);
|
|
96
97
|
}
|
|
97
|
-
.
|
|
98
|
+
.SideNav_nav__Mjk0M .SideNav_item__ZmE0N.SideNav_selected__MWRhM {
|
|
98
99
|
color: var(--font-color);
|
|
99
100
|
border-color: var(--primary-color);
|
|
100
101
|
}
|
|
101
|
-
.
|
|
102
|
+
.SideNav_items__NjM0Z header {
|
|
102
103
|
padding: var(--padding-y) 0;
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
/* virtual-css:css:7938c95522eda3e1f8244364ad70b38c */
|
|
106
|
-
.
|
|
107
|
+
.ContentArea_content__NGFkN {
|
|
107
108
|
font-size: 16px;
|
|
108
109
|
margin-bottom: 60px;
|
|
109
110
|
}
|
|
110
|
-
.
|
|
111
|
-
color: var(--font-color
|
|
111
|
+
.ContentArea_content__NGFkN > p {
|
|
112
|
+
color: var(--font-color);
|
|
112
113
|
line-height: 1.8;
|
|
113
114
|
}
|
|
114
|
-
.
|
|
115
|
+
.ContentArea_content__NGFkN a {
|
|
115
116
|
color: var(--font-color);
|
|
116
117
|
font-weight: 600;
|
|
117
118
|
text-decoration: underline var(--border-color);
|
|
118
119
|
text-underline-offset: 4px;
|
|
119
120
|
}
|
|
120
|
-
.
|
|
121
|
+
.ContentArea_content__NGFkN a:hover {
|
|
121
122
|
color: var(--font-color);
|
|
122
123
|
text-decoration: underline var(--primary-color);
|
|
123
124
|
}
|
|
124
|
-
.
|
|
125
|
+
.ContentArea_content__NGFkN h1 {
|
|
125
126
|
font-size: var(--font-size-8);
|
|
126
127
|
letter-spacing: var(--letter-spacing-1);
|
|
127
128
|
margin: 0 0 var(--spacing-4) 0;
|
|
128
129
|
}
|
|
129
|
-
.
|
|
130
|
+
.ContentArea_content__NGFkN h2 {
|
|
130
131
|
font-size: var(--font-size-6);
|
|
131
132
|
letter-spacing: var(--letter-spacing-1);
|
|
132
133
|
margin: var(--spacing-8) 0 var(--spacing-4) 0;
|
|
133
134
|
}
|
|
134
|
-
.
|
|
135
|
+
.ContentArea_content__NGFkN h3 {
|
|
135
136
|
font-size: var(--font-size-5);
|
|
136
137
|
letter-spacing: var(--letter-spacing-1);
|
|
137
138
|
margin: var(--spacing-7) 0 var(--spacing-4) 0;
|
|
138
139
|
}
|
|
139
|
-
.
|
|
140
|
+
.ContentArea_content__NGFkN *[id] {
|
|
140
141
|
scroll-margin-top: var(--spacing-4);
|
|
141
142
|
}
|
|
142
|
-
.
|
|
143
|
+
.ContentArea_content__NGFkN ul {
|
|
143
144
|
list-style: disc;
|
|
144
145
|
}
|
|
145
|
-
.
|
|
146
|
+
.ContentArea_content__NGFkN ol {
|
|
146
147
|
list-style: decimal;
|
|
147
148
|
}
|
|
148
|
-
.
|
|
149
|
+
.ContentArea_content__NGFkN pre {
|
|
149
150
|
margin: var(--spacing-5) 0;
|
|
150
151
|
}
|
|
151
|
-
.
|
|
152
|
+
.ContentArea_content__NGFkN code {
|
|
152
153
|
font-size: 14px;
|
|
153
154
|
}
|
|
154
|
-
.
|
|
155
|
+
.ContentArea_content__NGFkN code:not([class]) {
|
|
155
156
|
font-family: var(--font-family-code);
|
|
156
157
|
color: var(--font-color);
|
|
157
158
|
padding: var(--spacing-1);
|
package/dist/index.js
CHANGED
|
@@ -182,7 +182,7 @@ function PageLinks({ items = [], className, ...props }) {
|
|
|
182
182
|
if (!items?.length) {
|
|
183
183
|
return null;
|
|
184
184
|
}
|
|
185
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_zen5.Box, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_zen5.Column, { gap: "3", minWidth: "240px",
|
|
185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_zen5.Box, { ...props, className: (0, import_classnames.default)(PageLinks_default.links, className), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_zen5.Column, { gap: "3", minWidth: "240px", children: [
|
|
186
186
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_zen5.Text, { size: "2", weight: "bold", children: "On this page" }),
|
|
187
187
|
items.map(({ name, id, size }) => {
|
|
188
188
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
@@ -208,7 +208,7 @@ var import_navigation = require("next/navigation");
|
|
|
208
208
|
var import_link = __toESM(require("next/link"));
|
|
209
209
|
|
|
210
210
|
// css-modules:/Users/mikecao/Development/umami-software/shiso/src/components/SideNav.module.css
|
|
211
|
-
var SideNav_default = { "nav": "
|
|
211
|
+
var SideNav_default = { "nav": "SideNav_nav__Mjk0M", "sticky": "SideNav_sticky__ZmE5M", "item": "SideNav_item__ZmE0N", "selected": "SideNav_selected__MWRhM", "items": "SideNav_items__NjM0Z" };
|
|
212
212
|
|
|
213
213
|
// src/components/SideNav.tsx
|
|
214
214
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
@@ -276,7 +276,7 @@ function TopNav({ tabs }) {
|
|
|
276
276
|
var import_react_zen8 = require("@umami/react-zen");
|
|
277
277
|
|
|
278
278
|
// css-modules:/Users/mikecao/Development/umami-software/shiso/src/components/ContentArea.module.css
|
|
279
|
-
var ContentArea_default = { "content": "
|
|
279
|
+
var ContentArea_default = { "content": "ContentArea_content__NGFkN" };
|
|
280
280
|
|
|
281
281
|
// src/components/ContentArea.tsx
|
|
282
282
|
var import_link3 = __toESM(require("next/link"));
|
|
@@ -284,8 +284,8 @@ var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
|
284
284
|
function ContentArea({ section, title, description, code, next, prev }) {
|
|
285
285
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_react_zen8.Box, { flexGrow: 1, children: [
|
|
286
286
|
section && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_zen8.Text, { color: "primary", weight: "bold", children: section }),
|
|
287
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_zen8.Heading, { size: "2", as: "h1", children: title }),
|
|
288
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_zen8.Text, { color: "muted", children: description }),
|
|
287
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_zen8.Heading, { size: "2", as: "h1", marginY: "3", children: title }),
|
|
288
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_zen8.Text, { color: "muted", size: "3", children: description }),
|
|
289
289
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_zen8.Box, { className: ContentArea_default.content, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Markdown, { code }) }),
|
|
290
290
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_react_zen8.Row, { justifyContent: "space-between", children: [
|
|
291
291
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(NavigationButton, { ...prev, isPrev: true }),
|
|
@@ -352,8 +352,15 @@ function Docs() {
|
|
|
352
352
|
lg: "block",
|
|
353
353
|
xl: "block"
|
|
354
354
|
};
|
|
355
|
+
const linksDisplay = {
|
|
356
|
+
default: "none",
|
|
357
|
+
xs: "none",
|
|
358
|
+
sm: "none",
|
|
359
|
+
md: "none",
|
|
360
|
+
lg: "block",
|
|
361
|
+
xl: "block"
|
|
362
|
+
};
|
|
355
363
|
const menuDisplay = {
|
|
356
|
-
default: "block",
|
|
357
364
|
lg: "none",
|
|
358
365
|
xl: "none"
|
|
359
366
|
};
|
|
@@ -400,7 +407,7 @@ function Docs() {
|
|
|
400
407
|
prev
|
|
401
408
|
}
|
|
402
409
|
),
|
|
403
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(PageLinks, { display:
|
|
410
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(PageLinks, { display: linksDisplay, items: anchors, style: { top } })
|
|
404
411
|
]
|
|
405
412
|
}
|
|
406
413
|
)
|
package/dist/index.mjs
CHANGED
|
@@ -158,7 +158,7 @@ function PageLinks({ items = [], className, ...props }) {
|
|
|
158
158
|
if (!items?.length) {
|
|
159
159
|
return null;
|
|
160
160
|
}
|
|
161
|
-
return /* @__PURE__ */ jsx6(Box, { ...props, children: /* @__PURE__ */ jsxs4(Column3, { gap: "3", minWidth: "240px",
|
|
161
|
+
return /* @__PURE__ */ jsx6(Box, { ...props, className: classNames(PageLinks_default.links, className), children: /* @__PURE__ */ jsxs4(Column3, { gap: "3", minWidth: "240px", children: [
|
|
162
162
|
/* @__PURE__ */ jsx6(Text, { size: "2", weight: "bold", children: "On this page" }),
|
|
163
163
|
items.map(({ name, id, size }) => {
|
|
164
164
|
return /* @__PURE__ */ jsx6(
|
|
@@ -184,7 +184,7 @@ import { usePathname } from "next/navigation";
|
|
|
184
184
|
import Link from "next/link";
|
|
185
185
|
|
|
186
186
|
// css-modules:/Users/mikecao/Development/umami-software/shiso/src/components/SideNav.module.css
|
|
187
|
-
var SideNav_default = { "nav": "
|
|
187
|
+
var SideNav_default = { "nav": "SideNav_nav__Mjk0M", "sticky": "SideNav_sticky__ZmE5M", "item": "SideNav_item__ZmE0N", "selected": "SideNav_selected__MWRhM", "items": "SideNav_items__NjM0Z" };
|
|
188
188
|
|
|
189
189
|
// src/components/SideNav.tsx
|
|
190
190
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
@@ -252,7 +252,7 @@ function TopNav({ tabs }) {
|
|
|
252
252
|
import { Heading, Box as Box3, Text as Text2, Row, Icon as Icon2, Icons as Icons2 } from "@umami/react-zen";
|
|
253
253
|
|
|
254
254
|
// css-modules:/Users/mikecao/Development/umami-software/shiso/src/components/ContentArea.module.css
|
|
255
|
-
var ContentArea_default = { "content": "
|
|
255
|
+
var ContentArea_default = { "content": "ContentArea_content__NGFkN" };
|
|
256
256
|
|
|
257
257
|
// src/components/ContentArea.tsx
|
|
258
258
|
import Link3 from "next/link";
|
|
@@ -260,8 +260,8 @@ import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
|
260
260
|
function ContentArea({ section, title, description, code, next, prev }) {
|
|
261
261
|
return /* @__PURE__ */ jsxs5(Box3, { flexGrow: 1, children: [
|
|
262
262
|
section && /* @__PURE__ */ jsx9(Text2, { color: "primary", weight: "bold", children: section }),
|
|
263
|
-
title && /* @__PURE__ */ jsx9(Heading, { size: "2", as: "h1", children: title }),
|
|
264
|
-
description && /* @__PURE__ */ jsx9(Text2, { color: "muted", children: description }),
|
|
263
|
+
title && /* @__PURE__ */ jsx9(Heading, { size: "2", as: "h1", marginY: "3", children: title }),
|
|
264
|
+
description && /* @__PURE__ */ jsx9(Text2, { color: "muted", size: "3", children: description }),
|
|
265
265
|
/* @__PURE__ */ jsx9(Box3, { className: ContentArea_default.content, children: /* @__PURE__ */ jsx9(Markdown, { code }) }),
|
|
266
266
|
/* @__PURE__ */ jsxs5(Row, { justifyContent: "space-between", children: [
|
|
267
267
|
/* @__PURE__ */ jsx9(NavigationButton, { ...prev, isPrev: true }),
|
|
@@ -328,8 +328,15 @@ function Docs() {
|
|
|
328
328
|
lg: "block",
|
|
329
329
|
xl: "block"
|
|
330
330
|
};
|
|
331
|
+
const linksDisplay = {
|
|
332
|
+
default: "none",
|
|
333
|
+
xs: "none",
|
|
334
|
+
sm: "none",
|
|
335
|
+
md: "none",
|
|
336
|
+
lg: "block",
|
|
337
|
+
xl: "block"
|
|
338
|
+
};
|
|
331
339
|
const menuDisplay = {
|
|
332
|
-
default: "block",
|
|
333
340
|
lg: "none",
|
|
334
341
|
xl: "none"
|
|
335
342
|
};
|
|
@@ -376,7 +383,7 @@ function Docs() {
|
|
|
376
383
|
prev
|
|
377
384
|
}
|
|
378
385
|
),
|
|
379
|
-
/* @__PURE__ */ jsx10(PageLinks, { display:
|
|
386
|
+
/* @__PURE__ */ jsx10(PageLinks, { display: linksDisplay, items: anchors, style: { top } })
|
|
380
387
|
]
|
|
381
388
|
}
|
|
382
389
|
)
|