@nuee/registry 0.4.0 → 0.4.1
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.d.ts +5 -0
- package/dist/index.js +8 -0
- package/dist/styles/reset.css +73 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,8 +14,13 @@ export type TokenFile = {
|
|
|
14
14
|
content: string;
|
|
15
15
|
name: string;
|
|
16
16
|
};
|
|
17
|
+
export type FoundationFile = {
|
|
18
|
+
content: string;
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
17
21
|
export declare function getRegistryItem(name: string): Promise<RegistryItem>;
|
|
18
22
|
export declare function getTokenFiles(): Promise<TokenFile[]>;
|
|
23
|
+
export declare function getFoundationFiles(): Promise<FoundationFile[]>;
|
|
19
24
|
export declare const dependencyVersions: {
|
|
20
25
|
"@base-ui/react": string;
|
|
21
26
|
"@phosphor-icons/react": string;
|
package/dist/index.js
CHANGED
|
@@ -36,6 +36,14 @@ export async function getTokenFiles() {
|
|
|
36
36
|
name,
|
|
37
37
|
})));
|
|
38
38
|
}
|
|
39
|
+
export async function getFoundationFiles() {
|
|
40
|
+
const tokenFiles = await getTokenFiles();
|
|
41
|
+
const resetFile = {
|
|
42
|
+
content: await readFile(new URL("./styles/reset.css", import.meta.url), "utf8"),
|
|
43
|
+
name: "reset.css",
|
|
44
|
+
};
|
|
45
|
+
return [...tokenFiles, resetFile];
|
|
46
|
+
}
|
|
39
47
|
export const dependencyVersions = {
|
|
40
48
|
"@base-ui/react": "^1.7.0",
|
|
41
49
|
"@phosphor-icons/react": "^2.1.10",
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@layer reset {
|
|
2
|
+
*,
|
|
3
|
+
*::before,
|
|
4
|
+
*::after {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
html,
|
|
9
|
+
body {
|
|
10
|
+
min-height: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
html {
|
|
14
|
+
-webkit-text-size-adjust: 100%;
|
|
15
|
+
text-size-adjust: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
*:not(dialog) {
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
body {
|
|
23
|
+
-webkit-font-smoothing: antialiased;
|
|
24
|
+
line-height: 1.5;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
img,
|
|
28
|
+
picture,
|
|
29
|
+
video,
|
|
30
|
+
canvas,
|
|
31
|
+
svg {
|
|
32
|
+
display: block;
|
|
33
|
+
max-width: 100%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
button,
|
|
37
|
+
input,
|
|
38
|
+
textarea,
|
|
39
|
+
select {
|
|
40
|
+
color: inherit;
|
|
41
|
+
font: inherit;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
textarea {
|
|
45
|
+
resize: vertical;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
ol,
|
|
49
|
+
ul {
|
|
50
|
+
list-style: none;
|
|
51
|
+
padding: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
table {
|
|
55
|
+
border-collapse: collapse;
|
|
56
|
+
border-spacing: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
p,
|
|
60
|
+
h1,
|
|
61
|
+
h2,
|
|
62
|
+
h3,
|
|
63
|
+
h4,
|
|
64
|
+
h5,
|
|
65
|
+
h6 {
|
|
66
|
+
overflow-wrap: break-word;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
#root,
|
|
70
|
+
#__next {
|
|
71
|
+
isolation: isolate;
|
|
72
|
+
}
|
|
73
|
+
}
|