@luminescent/ui 2.1.0 → 3.0.2
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/package.json +7 -10
- package/src/formatting.css +95 -0
- package/src/index.css +1 -1
package/package.json
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminescent/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Luminescent UI library",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib-types/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
|
-
".":
|
|
8
|
+
".": "./src/index.css",
|
|
9
|
+
"./formatting": "./src/formatting.css",
|
|
10
|
+
"./lum-bg": {
|
|
9
11
|
"import": "./lib/index.js",
|
|
10
12
|
"require": "./lib/index.js",
|
|
11
13
|
"types": "./lib-types/index.d.ts"
|
|
12
|
-
}
|
|
13
|
-
"./components/*": {
|
|
14
|
-
"import": "./lib/components/*",
|
|
15
|
-
"require": "./lib/components/*",
|
|
16
|
-
"types": "./lib-types/components/*"
|
|
17
|
-
},
|
|
18
|
-
"./css": "./src/index.css"
|
|
14
|
+
}
|
|
19
15
|
},
|
|
20
16
|
"files": [
|
|
21
17
|
"lib",
|
|
22
18
|
"lib-types",
|
|
23
|
-
"src/index.css"
|
|
19
|
+
"src/index.css",
|
|
20
|
+
"src/formatting.css"
|
|
24
21
|
],
|
|
25
22
|
"engines": {
|
|
26
23
|
"node": ">=23.11.0",
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
a {
|
|
2
|
+
@apply text-blue-400 no-underline hover:text-blue-500 hover:underline;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
a.lum-btn, a.lum-card {
|
|
6
|
+
@apply text-gray-100! hover:no-underline!;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
blockquote {
|
|
10
|
+
@apply bg-gray-800 border-l-6 border-l-blue-400 rounded-md px-6 py-8 my-4 border border-gray-700;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
blockquote p:first-child {
|
|
14
|
+
@apply mt-0
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
blockquote p:last-child {
|
|
18
|
+
@apply mb-0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
h1, h2, h3, h4, h5, h6 {
|
|
22
|
+
@apply relative text-lg sm:text-xl font-semibold scroll-mt-36;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
h1 {
|
|
26
|
+
@apply text-4xl sm:text-5xl font-extrabold;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
h2 {
|
|
30
|
+
@apply text-3xl sm:text-4xl font-bold;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
h3 {
|
|
34
|
+
@apply text-2xl sm:text-3xl;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
h4 {
|
|
38
|
+
@apply text-xl sm:text-2xl;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
p {
|
|
42
|
+
@apply text-gray-400;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
ul, ol {
|
|
46
|
+
@apply my-4 ml-10 text-gray-400 list-disc;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
ol {
|
|
50
|
+
@apply list-decimal;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
li {
|
|
54
|
+
@apply my-1 pl-2;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
pre {
|
|
58
|
+
@apply rounded-md overflow-auto p-4 bg-gray-800 my-2;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
pre.shiki {
|
|
62
|
+
@apply lum-card;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
pre code {
|
|
66
|
+
@apply border-none select-auto bg-transparent;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
code {
|
|
70
|
+
@apply bg-gray-800 py-0.5 px-1 rounded-md select-all border-b-2 border-b-gray-700 break-all sm:break-none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
table {
|
|
74
|
+
@apply my-5;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
th, td {
|
|
78
|
+
@apply p-2 align-top;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
th:first-child, td:first-child {
|
|
82
|
+
@apply pl-0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
th:last-child, td:last-child {
|
|
86
|
+
@apply pr-0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
img {
|
|
90
|
+
@apply rounded-md overflow-hidden;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
hr {
|
|
94
|
+
@apply my-8 border-t-1 border-t-gray-700;
|
|
95
|
+
}
|
package/src/index.css
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@utility lum-btn {
|
|
27
|
-
@apply flex items-center gap-3 motion-safe:transition duration-300 hover:duration-75 ease-out disabled:opacity-50 hover:drop-shadow-lg motion-safe:active:scale-95 whitespace-nowrap touch-manipulation select-none
|
|
27
|
+
@apply flex items-center gap-3 motion-safe:transition duration-300 hover:duration-75 ease-out disabled:opacity-50 hover:drop-shadow-lg motion-safe:active:scale-95 whitespace-nowrap touch-manipulation select-none lum-btn-p-2 text-base lum-bg-gray-800 hover:lum-bg-gray-700 rounded-md;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
@utility lum-card {
|