@brillout/docpress 0.16.1 → 0.16.3

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/Layout.tsx CHANGED
@@ -282,6 +282,7 @@ function isNavLeftAlwaysHidden() {
282
282
  const menuLinkStyle: React.CSSProperties = {
283
283
  height: '100%',
284
284
  padding: '0 var(--padding-side)',
285
+ paddingTop: 2,
285
286
  justifyContent: 'center',
286
287
  }
287
288
 
@@ -743,15 +744,25 @@ function DocsIcon() {
743
744
  }
744
745
  function MenuIcon() {
745
746
  return (
746
- <svg
747
- style={{ marginRight: 'calc(var(--icon-text-padding) + 2px)', verticalAlign: 'top', width: '1.3em' }}
748
- className="decolorize-6"
749
- viewBox="0 0 448 512"
750
- >
751
- <path
752
- fill="currentColor"
753
- d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"
754
- ></path>
755
- </svg>
747
+ <div style={{ display: 'inline-block', position: 'relative', top: 2, marginRight: 3, direction: 'rtl' }}>
748
+ {Array(3)
749
+ .fill(0)
750
+ .map((_, i) => (
751
+ <div
752
+ key={i}
753
+ style={{
754
+ background: 'currentColor',
755
+ width: (() => {
756
+ if (i === 0) return 18
757
+ if (i === 1) return 11
758
+ return 14
759
+ })(),
760
+ height: 2,
761
+ opacity: '0.8',
762
+ marginTop: i === 0 ? 0 : 4,
763
+ }}
764
+ />
765
+ ))}
766
+ </div>
756
767
  )
757
768
  }
@@ -36,6 +36,7 @@
36
36
  /* Toggle Labels */
37
37
  &::before,
38
38
  &::after {
39
+ font-family: 'Inter', sans-serif;
39
40
  width: 24px;
40
41
  display: flex;
41
42
  justify-content: center;
@@ -36,7 +36,7 @@ pre {
36
36
  }
37
37
 
38
38
  & svg {
39
- width: 100%;
39
+ width: 15px;
40
40
  height: 100%;
41
41
  fill: none;
42
42
  stroke-linecap: round;
@@ -39,5 +39,4 @@ const config = {
39
39
  // ▲ [WARNING] Transforming this CSS nesting syntax is not supported in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari14") [unsupported-css-nesting]
40
40
  // ```
41
41
  build: { target: 'es2022' },
42
- clearScreen: false,
43
42
  };
@@ -35,8 +35,6 @@ function SearchIcon() {
35
35
  width={18}
36
36
  style={{
37
37
  marginRight: 'var(--icon-text-padding)',
38
- position: 'relative',
39
- top: 1,
40
38
  }}
41
39
  className="decolorize-7"
42
40
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.16.1",
3
+ "version": "0.16.3",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",
@@ -62,9 +62,9 @@
62
62
  "@brillout/release-me": "^0.4.8",
63
63
  "@types/hast": "^3.0.4",
64
64
  "@types/mdast": "^4.0.4",
65
- "@types/node": "^22.5.5",
66
- "@types/react": "^18.3.8",
67
- "@types/react-dom": "^18.3.0",
65
+ "@types/node": "^24.10.0",
66
+ "@types/react": "^19.2.2",
67
+ "@types/react-dom": "^19.2.2",
68
68
  "mdast-util-mdx-jsx": "^3.2.0"
69
69
  },
70
70
  "repository": "https://github.com/brillout/docpress",
package/vite.config.ts CHANGED
@@ -43,5 +43,4 @@ const config: UserConfig = {
43
43
  // ▲ [WARNING] Transforming this CSS nesting syntax is not supported in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari14") [unsupported-css-nesting]
44
44
  // ```
45
45
  build: { target: 'es2022' },
46
- clearScreen: false,
47
46
  }