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.
- package/dist/components/codeblock.js +5 -5
- package/dist/components/files.js +20 -14
- package/package.json +1 -1
|
@@ -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: "#
|
|
142
|
-
border: "1px solid
|
|
143
|
-
borderRadius: "
|
|
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: "
|
|
156
|
-
borderBottom: "1px solid
|
|
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",
|
package/dist/components/files.js
CHANGED
|
@@ -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-
|
|
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
|
|
33
|
-
fill: "
|
|
34
|
-
|
|
35
|
-
|
|
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
|
|
144
|
-
fill: "
|
|
145
|
-
|
|
146
|
-
|
|
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
|
|
154
|
-
fill: "
|
|
155
|
-
|
|
156
|
-
|
|
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
|
|