@opencosmos/ui 1.3.2 → 1.3.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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
- package/src/components/layout/AppSidebar.tsx +3 -3
- package/LICENSE +0 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencosmos/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "OpenCosmos UI — Make it Lovable. 100 accessible React components, three themes, user-controlled motion.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -93,6 +93,16 @@
|
|
|
93
93
|
"./globals.css": "./src/globals.css",
|
|
94
94
|
"./theme.css": "./src/theme.css"
|
|
95
95
|
},
|
|
96
|
+
"scripts": {
|
|
97
|
+
"build": "tsup",
|
|
98
|
+
"dev": "tsup --watch",
|
|
99
|
+
"lint": "eslint src/",
|
|
100
|
+
"test": "vitest run",
|
|
101
|
+
"test:watch": "vitest",
|
|
102
|
+
"typecheck": "tsc --noEmit",
|
|
103
|
+
"size": "size-limit",
|
|
104
|
+
"size:check": "size-limit --limit"
|
|
105
|
+
},
|
|
96
106
|
"size-limit": [
|
|
97
107
|
{
|
|
98
108
|
"name": "Core (index)",
|
|
@@ -253,15 +263,5 @@
|
|
|
253
263
|
"typescript-eslint": "^8.54.0",
|
|
254
264
|
"vitest": "^4.0.18",
|
|
255
265
|
"zod": "^3.24.1"
|
|
256
|
-
},
|
|
257
|
-
"scripts": {
|
|
258
|
-
"build": "tsup",
|
|
259
|
-
"dev": "tsup --watch",
|
|
260
|
-
"lint": "eslint src/",
|
|
261
|
-
"test": "vitest run",
|
|
262
|
-
"test:watch": "vitest",
|
|
263
|
-
"typecheck": "tsc --noEmit",
|
|
264
|
-
"size": "size-limit",
|
|
265
|
-
"size:check": "size-limit --limit"
|
|
266
266
|
}
|
|
267
|
-
}
|
|
267
|
+
}
|
|
@@ -211,7 +211,7 @@ export function AppSidebar({
|
|
|
211
211
|
|
|
212
212
|
{/* ── Nav items ──────────────────────────────────────────────────── */}
|
|
213
213
|
{items.length > 0 && (
|
|
214
|
-
<nav className="px-2 py-2 space-y-
|
|
214
|
+
<nav className="px-2 py-2 space-y-1 shrink-0" aria-label="Main navigation">
|
|
215
215
|
{items.map((item) => (
|
|
216
216
|
<a
|
|
217
217
|
key={item.label}
|
|
@@ -224,7 +224,7 @@ export function AppSidebar({
|
|
|
224
224
|
'flex items-center rounded-lg transition-colors duration-150',
|
|
225
225
|
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus)]',
|
|
226
226
|
isOpen
|
|
227
|
-
? 'gap-3 px-3 py-
|
|
227
|
+
? 'gap-3 px-3 py-3'
|
|
228
228
|
: 'justify-center w-9 h-9 mx-auto',
|
|
229
229
|
item.active
|
|
230
230
|
? 'bg-foreground/8 text-foreground font-medium'
|
|
@@ -266,7 +266,7 @@ export function AppSidebar({
|
|
|
266
266
|
<div
|
|
267
267
|
className={cn(
|
|
268
268
|
'shrink-0 border-t border-foreground/8',
|
|
269
|
-
isOpen ? '
|
|
269
|
+
isOpen ? 'px-4 py-4 space-y-3' : 'px-2 py-3 flex justify-center'
|
|
270
270
|
)}
|
|
271
271
|
>
|
|
272
272
|
{footer}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025-2026 Shalom Ormsby
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|