@umami/shiso 0.14.0 → 0.15.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
@@ -34,43 +34,44 @@ pre.CodeBlock_container__YmFmN code {
34
34
  }
35
35
 
36
36
  /* virtual-css:css:0ed498f49b21d225f1b5a4e1685cf2e5 */
37
- .PageLinks_title__ZWYzZ {
37
+ .PageLinks_title__ZmQ4Z {
38
38
  position: sticky;
39
39
  top: 0;
40
40
  }
41
- .PageLinks_links__MjU2M {
41
+ .PageLinks_links__YTk1O {
42
42
  position: sticky;
43
43
  top: 30px;
44
44
  height: max-content;
45
45
  }
46
- .PageLinks_links__MjU2M a {
46
+ .PageLinks_links__YTk1O a.PageLinks_link__ODEzZ {
47
47
  display: block;
48
48
  color: var(--font-color-muted);
49
49
  text-wrap: nowrap;
50
50
  text-decoration: none;
51
51
  }
52
- .PageLinks_links__MjU2M a:hover {
52
+ .PageLinks_links__YTk1O a.PageLinks_link__ODEzZ:hover {
53
53
  color: var(--primary-color);
54
+ text-decoration: none;
54
55
  }
55
- .PageLinks_indent-1__MmYwN {
56
+ .PageLinks_indent-1__ZGRiM {
56
57
  margin-left: 0;
57
58
  }
58
- .PageLinks_indent-2__ODBkZ {
59
+ .PageLinks_indent-2__ZjQwZ {
59
60
  margin-left: 0;
60
61
  }
61
- .PageLinks_indent-3__ZTc4Y {
62
+ .PageLinks_indent-3__YmEzZ {
62
63
  margin-left: 10px;
63
64
  }
64
- .PageLinks_indent-4__ZjNlO {
65
+ .PageLinks_indent-4__ZDFhM {
65
66
  margin-left: 20px;
66
67
  }
67
- .PageLinks_indent-5__NmE5N {
68
+ .PageLinks_indent-5__MjA2M {
68
69
  margin-left: 30px;
69
70
  }
70
- .PageLinks_indent-6__YWUwN {
71
+ .PageLinks_indent-6__ODk5N {
71
72
  margin-left: 40px;
72
73
  }
73
- a.PageLinks_selected__Y2YxY {
74
+ a.PageLinks_selected__YzJmZ {
74
75
  color: var(--primary-color);
75
76
  }
76
77
 
package/dist/index.js CHANGED
@@ -145,7 +145,7 @@ var import_react_zen2 = require("@umami/react-zen");
145
145
  var import_classnames = __toESM(require("classnames"));
146
146
 
147
147
  // css-modules:/Users/mikecao/Development/umami-software/shiso/src/components/PageLinks.module.css
148
- var PageLinks_default = { "title": "PageLinks_title__ZWYzZ", "links": "PageLinks_links__MjU2M", "indent-1": "PageLinks_indent-1__MmYwN", "indent-2": "PageLinks_indent-2__ODBkZ", "indent-3": "PageLinks_indent-3__ZTc4Y", "indent-4": "PageLinks_indent-4__ZjNlO", "indent-5": "PageLinks_indent-5__NmE5N", "indent-6": "PageLinks_indent-6__YWUwN", "selected": "PageLinks_selected__Y2YxY" };
148
+ var PageLinks_default = { "title": "PageLinks_title__ZmQ4Z", "links": "PageLinks_links__YTk1O", "link": "PageLinks_link__ODEzZ", "indent-1": "PageLinks_indent-1__ZGRiM", "indent-2": "PageLinks_indent-2__ZjQwZ", "indent-3": "PageLinks_indent-3__YmEzZ", "indent-4": "PageLinks_indent-4__ZDFhM", "indent-5": "PageLinks_indent-5__MjA2M", "indent-6": "PageLinks_indent-6__ODk5N", "selected": "PageLinks_selected__YzJmZ" };
149
149
 
150
150
  // src/components/PageLinks.tsx
151
151
  var import_jsx_runtime5 = require("react/jsx-runtime");
@@ -174,7 +174,9 @@ function PageLinks({ items, offset = 0 }) {
174
174
  "a",
175
175
  {
176
176
  href: `#${id}`,
177
- className: (0, import_classnames.default)(PageLinks_default[`indent-${size}`], { [PageLinks_default.selected]: hash === id }),
177
+ className: (0, import_classnames.default)(PageLinks_default.link, PageLinks_default[`indent-${size}`], {
178
+ [PageLinks_default.selected]: hash === id
179
+ }),
178
180
  children: name
179
181
  },
180
182
  id
package/dist/index.mjs CHANGED
@@ -109,7 +109,7 @@ import { Column, Text } from "@umami/react-zen";
109
109
  import classNames from "classnames";
110
110
 
111
111
  // css-modules:/Users/mikecao/Development/umami-software/shiso/src/components/PageLinks.module.css
112
- var PageLinks_default = { "title": "PageLinks_title__ZWYzZ", "links": "PageLinks_links__MjU2M", "indent-1": "PageLinks_indent-1__MmYwN", "indent-2": "PageLinks_indent-2__ODBkZ", "indent-3": "PageLinks_indent-3__ZTc4Y", "indent-4": "PageLinks_indent-4__ZjNlO", "indent-5": "PageLinks_indent-5__NmE5N", "indent-6": "PageLinks_indent-6__YWUwN", "selected": "PageLinks_selected__Y2YxY" };
112
+ var PageLinks_default = { "title": "PageLinks_title__ZmQ4Z", "links": "PageLinks_links__YTk1O", "link": "PageLinks_link__ODEzZ", "indent-1": "PageLinks_indent-1__ZGRiM", "indent-2": "PageLinks_indent-2__ZjQwZ", "indent-3": "PageLinks_indent-3__YmEzZ", "indent-4": "PageLinks_indent-4__ZDFhM", "indent-5": "PageLinks_indent-5__MjA2M", "indent-6": "PageLinks_indent-6__ODk5N", "selected": "PageLinks_selected__YzJmZ" };
113
113
 
114
114
  // src/components/PageLinks.tsx
115
115
  import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
@@ -138,7 +138,9 @@ function PageLinks({ items, offset = 0 }) {
138
138
  "a",
139
139
  {
140
140
  href: `#${id}`,
141
- className: classNames(PageLinks_default[`indent-${size}`], { [PageLinks_default.selected]: hash === id }),
141
+ className: classNames(PageLinks_default.link, PageLinks_default[`indent-${size}`], {
142
+ [PageLinks_default.selected]: hash === id
143
+ }),
142
144
  children: name
143
145
  },
144
146
  id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/shiso",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "A content layer for Next.js",
5
5
  "homepage": "https://umami.is/shiso",
6
6
  "repository": {
@@ -46,7 +46,7 @@
46
46
  "@mdx-js/loader": "^3.0.0",
47
47
  "@mdx-js/mdx": "^3.1.0",
48
48
  "@mdx-js/react": "^3.0.0",
49
- "@umami/react-zen": "^0.29.0",
49
+ "@umami/react-zen": "^0.30.0",
50
50
  "classnames": "^2.5.1",
51
51
  "glob": "^10.3.10",
52
52
  "gray-matter": "^4.0.3",
@@ -41,7 +41,9 @@ export function PageLinks(_a) {
41
41
  {items.map(function (_a) {
42
42
  var _b;
43
43
  var name = _a.name, id = _a.id, size = _a.size;
44
- return (<a key={id} href={"#".concat(id)} className={classNames(styles["indent-".concat(size)], (_b = {}, _b[styles.selected] = hash === id, _b))}>
44
+ return (<a key={id} href={"#".concat(id)} className={classNames(styles.link, styles["indent-".concat(size)], (_b = {},
45
+ _b[styles.selected] = hash === id,
46
+ _b))}>
45
47
  {name}
46
48
  </a>);
47
49
  })}