@atls-ui-admin/sidebar 0.0.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/CHANGELOG.md +25 -0
- package/dist/component.d.ts +8 -0
- package/dist/component.js +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/sidebar-item/component.d.ts +10 -0
- package/dist/sidebar-item/component.js +8 -0
- package/dist/sidebar-item/index.d.ts +1 -0
- package/dist/sidebar-item/index.js +1 -0
- package/dist/sidebar-item/styles.css.d.ts +1 -0
- package/dist/sidebar-item/styles.css.js +9 -0
- package/dist/sidebar-logo/component.d.ts +6 -0
- package/dist/sidebar-logo/component.js +3 -0
- package/dist/sidebar-logo/index.d.ts +1 -0
- package/dist/sidebar-logo/index.js +1 -0
- package/dist/sidebar-logo/styles.css.d.ts +1 -0
- package/dist/sidebar-logo/styles.css.js +9 -0
- package/dist/sidebar-root/component.d.ts +6 -0
- package/dist/sidebar-root/component.js +3 -0
- package/dist/sidebar-root/index.d.ts +1 -0
- package/dist/sidebar-root/index.js +1 -0
- package/dist/sidebar-root/styles.css.d.ts +1 -0
- package/dist/sidebar-root/styles.css.js +14 -0
- package/package.json +57 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
## 0.0.1 (2025-11-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [0.0.3](https://github.com/atls/hyperion/compare/@atls-ui-examples/sidebar@0.0.1...@atls-ui-examples/sidebar@0.0.3) (2025-11-10)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 0.0.1 (2025-11-10)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
* **ui-admin:** sidebar init ([34c3a8e](https://github.com/atls/hyperion/commit/34c3a8e9e7aaeda6ac0f3a9d5fe4444bfd8bac7b))
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { SidebarItemProps } from './sidebar-item/index.js';
|
|
4
|
+
export interface SidebarProps {
|
|
5
|
+
items: Array<SidebarItemProps>;
|
|
6
|
+
logo?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Sidebar: ({ logo, items }: SidebarProps) => ReactElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { SidebarItem } from './sidebar-item/index.js';
|
|
3
|
+
import { SidebarLogo } from './sidebar-logo/index.js';
|
|
4
|
+
import { SidebarRoot } from './sidebar-root/index.js';
|
|
5
|
+
export const Sidebar = ({ logo, items = [] }) => (_jsxs(SidebarRoot, { children: [!!logo && _jsx(SidebarLogo, { children: logo }), items.map((item) => (_jsx(SidebarItem, { icon: item.icon }, item.icon.name)))] }));
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './component.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
3
|
+
export interface SidebarItemProps {
|
|
4
|
+
icon: ComponentType<{
|
|
5
|
+
color?: string;
|
|
6
|
+
width?: number | string;
|
|
7
|
+
height?: number | string;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
export declare const SidebarItem: ({ icon }: SidebarItemProps) => ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createElement } from 'react';
|
|
3
|
+
import { sidebarItemStyles } from './styles.css.js';
|
|
4
|
+
export const SidebarItem = ({ icon }) => (_jsx("div", { className: sidebarItemStyles, children: createElement(icon, {
|
|
5
|
+
color: 'white',
|
|
6
|
+
width: 20,
|
|
7
|
+
height: 20,
|
|
8
|
+
}) }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './component.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sidebarItemStyles: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './component.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sidebarLogoStyles: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './component.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sidebarRootStyles: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { style } from '@vanilla-extract/css';
|
|
2
|
+
import { vars } from '@atls-ui-admin/theme/theme-css';
|
|
3
|
+
export const sidebarRootStyles = style({
|
|
4
|
+
display: 'flex',
|
|
5
|
+
flexDirection: 'column',
|
|
6
|
+
alignItems: 'center',
|
|
7
|
+
boxSizing: 'border-box',
|
|
8
|
+
background: vars.colors.blue,
|
|
9
|
+
height: '100%',
|
|
10
|
+
width: 64,
|
|
11
|
+
borderRightColor: vars.colors.gray,
|
|
12
|
+
borderRightWidth: 1,
|
|
13
|
+
borderRightStyle: 'solid',
|
|
14
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atls-ui-admin/sidebar",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"license": "BSD-3-Clause",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./package.json": "./package.json",
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"main": "dist/index.js",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "yarn library build",
|
|
20
|
+
"prepack": "yarn run build",
|
|
21
|
+
"postpack": "rm -rf dist"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@vanilla-extract/recipes": "0.5.5"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@atls-ui-admin/layout": "1.0.7",
|
|
28
|
+
"@atls-ui-admin/theme": "1.0.7",
|
|
29
|
+
"@radix-ui/react-icons": "1.3.2",
|
|
30
|
+
"@storybook/react": "8.6.12",
|
|
31
|
+
"@types/react": "19.1.2",
|
|
32
|
+
"@vanilla-extract/css": "1.17.1",
|
|
33
|
+
"@vanilla-extract/dynamic": "2.1.2",
|
|
34
|
+
"react": "19.1.0",
|
|
35
|
+
"react-dom": "19.1.0",
|
|
36
|
+
"storybook": "8.6.12"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@vanilla-extract/css": "^1",
|
|
40
|
+
"@vanilla-extract/dynamic": "^2",
|
|
41
|
+
"react": "^19",
|
|
42
|
+
"react-dom": "^19"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"exports": {
|
|
46
|
+
"./package.json": "./package.json",
|
|
47
|
+
".": {
|
|
48
|
+
"import": "./dist/index.js",
|
|
49
|
+
"types": "./dist/index.d.ts",
|
|
50
|
+
"default": "./dist/index.js"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"main": "dist/index.js",
|
|
54
|
+
"typings": "dist/index.d.ts"
|
|
55
|
+
},
|
|
56
|
+
"typings": "dist/index.d.ts"
|
|
57
|
+
}
|