fromsrc 0.0.22 → 0.0.23

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.
@@ -138,9 +138,9 @@ const CodeBlock = memo(function CodeBlock2({
138
138
  "aria-label": hasheader ? label : void 0,
139
139
  "data-line-numbers": lines || void 0,
140
140
  style: {
141
- backgroundColor: "#0d0d0d",
142
- border: "1px solid #1c1c1c",
143
- borderRadius: "8px",
141
+ backgroundColor: "#0a0a0a",
142
+ border: "1px solid rgba(255,255,255,0.08)",
143
+ borderRadius: "12px",
144
144
  margin: "24px 0",
145
145
  overflow: "hidden",
146
146
  position: "relative"
@@ -152,8 +152,8 @@ const CodeBlock = memo(function CodeBlock2({
152
152
  {
153
153
  style: {
154
154
  alignItems: "center",
155
- backgroundColor: "#141414",
156
- borderBottom: "1px solid #1c1c1c",
155
+ backgroundColor: "rgba(255,255,255,0.02)",
156
+ borderBottom: "1px solid rgba(255,255,255,0.06)",
157
157
  display: "flex",
158
158
  height: "40px",
159
159
  justifyContent: "space-between",
@@ -11,7 +11,7 @@ const Files = memo(function Files2({
11
11
  {
12
12
  role: "tree",
13
13
  "aria-label": label,
14
- className: "my-6 rounded-lg border border-line bg-fg/[0.02] p-2 font-mono text-sm",
14
+ className: "my-6 rounded-xl border border-line bg-fg/[0.02] p-3 font-mono text-sm",
15
15
  children
16
16
  }
17
17
  );
@@ -29,10 +29,12 @@ const File = memo(function File2({ name, icon }) {
29
29
  "svg",
30
30
  {
31
31
  "aria-hidden": "true",
32
- viewBox: "0 0 16 16",
33
- fill: "currentColor",
34
- className: "size-4 shrink-0",
35
- children: /* @__PURE__ */ jsx("path", { d: "M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0113.25 16h-9.5A1.75 1.75 0 012 14.25V1.75z" })
32
+ viewBox: "0 0 24 24",
33
+ fill: "none",
34
+ stroke: "currentColor",
35
+ strokeWidth: 1.5,
36
+ className: "size-3.5 shrink-0 opacity-40",
37
+ children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z" })
36
38
  }
37
39
  ),
38
40
  /* @__PURE__ */ jsx("span", { children: name })
@@ -140,27 +142,31 @@ function Folder({
140
142
  "svg",
141
143
  {
142
144
  "aria-hidden": "true",
143
- viewBox: "0 0 16 16",
144
- fill: "currentColor",
145
- className: `size-4 shrink-0 transition-transform ${open ? "rotate-90" : ""}`,
146
- children: /* @__PURE__ */ jsx("path", { d: "M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z" })
145
+ viewBox: "0 0 24 24",
146
+ fill: "none",
147
+ stroke: "currentColor",
148
+ strokeWidth: 1.5,
149
+ className: `size-3 shrink-0 opacity-30 transition-transform ${open ? "rotate-90" : ""}`,
150
+ children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" })
147
151
  }
148
152
  ),
149
153
  /* @__PURE__ */ jsx(
150
154
  "svg",
151
155
  {
152
156
  "aria-hidden": "true",
153
- viewBox: "0 0 16 16",
154
- fill: "currentColor",
155
- className: "size-4 shrink-0 text-yellow-500",
156
- children: /* @__PURE__ */ jsx("path", { d: "M.513 1.513A1.75 1.75 0 011.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 00.2.1h6.5A1.75 1.75 0 0116 4.75v8.5A1.75 1.75 0 0114.25 15H1.75A1.75 1.75 0 010 13.25V2.75c0-.465.186-.91.513-1.237z" })
157
+ viewBox: "0 0 24 24",
158
+ fill: "none",
159
+ stroke: "currentColor",
160
+ strokeWidth: 1.5,
161
+ className: "size-3.5 shrink-0 opacity-40",
162
+ children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z" })
157
163
  }
158
164
  ),
159
165
  /* @__PURE__ */ jsx("span", { children: name })
160
166
  ]
161
167
  }
162
168
  ),
163
- open && children && /* @__PURE__ */ jsx("div", { role: "group", className: "ml-4 border-l border-line pl-2", children })
169
+ open && children && /* @__PURE__ */ jsx("div", { role: "group", className: "ml-4 border-l border-line/50 pl-2", children })
164
170
  ] });
165
171
  }
166
172
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fromsrc",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "documentation framework for developers",
5
5
  "homepage": "https://github.com/fromsrc/fromsrc",
6
6
  "bugs": {