tiwari-shell 1.0.0 → 1.1.0
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/styles/layout.css +204 -0
- package/package.json +9 -5
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--zs-sidebar-width: 98px;
|
|
3
|
+
--zs-header-height: 70px;
|
|
4
|
+
--zs-border: #bdddeb;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.zs-layout-root {
|
|
8
|
+
min-height: 100vh;
|
|
9
|
+
background: #f8fcff;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.zs-header {
|
|
13
|
+
position: fixed;
|
|
14
|
+
right: 0;
|
|
15
|
+
top: 0;
|
|
16
|
+
z-index: 20;
|
|
17
|
+
display: flex;
|
|
18
|
+
height: var(--zs-header-height);
|
|
19
|
+
width: calc(100% - var(--zs-sidebar-width));
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
border-bottom: 0.5px solid var(--zs-border);
|
|
23
|
+
background: #fff;
|
|
24
|
+
padding: 0 16px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.zs-header-search {
|
|
28
|
+
display: flex;
|
|
29
|
+
height: 28px;
|
|
30
|
+
width: min(354px, 48vw);
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: 4px;
|
|
33
|
+
border: 1px solid rgb(66 139 177 / 50%);
|
|
34
|
+
border-radius: 999px;
|
|
35
|
+
background: #fff;
|
|
36
|
+
padding: 4px 8px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.zs-header-search-icon {
|
|
40
|
+
color: #428bb1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.zs-header-search-input {
|
|
44
|
+
width: 100%;
|
|
45
|
+
border: 0;
|
|
46
|
+
outline: none;
|
|
47
|
+
background: transparent;
|
|
48
|
+
color: #0f172a;
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.zs-header-search-input::placeholder {
|
|
53
|
+
color: #6b7280;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.zs-header-actions {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
gap: 12px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.zs-header-icon-button {
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
height: 32px;
|
|
65
|
+
width: 32px;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
border: 0;
|
|
69
|
+
border-radius: 999px;
|
|
70
|
+
background: transparent;
|
|
71
|
+
color: #1e293b;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.zs-header-icon-button:hover,
|
|
76
|
+
.zs-header-profile-button:hover {
|
|
77
|
+
background: #f1f5f9;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.zs-header-divider {
|
|
81
|
+
height: 24px;
|
|
82
|
+
width: 1px;
|
|
83
|
+
background: #d1d5db;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.zs-header-profile-button {
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: 8px;
|
|
90
|
+
border: 0;
|
|
91
|
+
border-radius: 999px;
|
|
92
|
+
padding: 4px;
|
|
93
|
+
background: transparent;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.zs-header-profile-image {
|
|
98
|
+
border-radius: 999px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.zs-header-profile-name {
|
|
102
|
+
color: #0f172a;
|
|
103
|
+
font-size: 14px;
|
|
104
|
+
font-weight: 500;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.zs-header-profile-chevron {
|
|
108
|
+
color: #64748b;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.zs-sidebar {
|
|
112
|
+
position: fixed;
|
|
113
|
+
left: 0;
|
|
114
|
+
top: 0;
|
|
115
|
+
z-index: 30;
|
|
116
|
+
height: 100vh;
|
|
117
|
+
width: var(--zs-sidebar-width);
|
|
118
|
+
border-right: 0.5px solid var(--zs-border);
|
|
119
|
+
background: #f2f9fc;
|
|
120
|
+
box-shadow: 0 0 4px 0 rgb(0 0 0 / 8%);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.zs-sidebar-logo-wrap {
|
|
124
|
+
display: flex;
|
|
125
|
+
height: var(--zs-header-height);
|
|
126
|
+
align-items: center;
|
|
127
|
+
justify-content: center;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.zs-sidebar-logo-pill {
|
|
131
|
+
display: flex;
|
|
132
|
+
height: 38px;
|
|
133
|
+
width: 38px;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
border-radius: 8.769px;
|
|
137
|
+
background: linear-gradient(135deg, #0094da 0%, #33b3f0 100%);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.zs-sidebar-logo-image {
|
|
141
|
+
height: auto;
|
|
142
|
+
width: auto;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.zs-sidebar-body {
|
|
146
|
+
height: calc(100% - var(--zs-header-height));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.zs-sidebar-nav {
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
gap: 4px;
|
|
153
|
+
padding: 4px 8px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.zs-sidebar-item {
|
|
157
|
+
display: flex;
|
|
158
|
+
height: 71px;
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
align-items: center;
|
|
161
|
+
justify-content: center;
|
|
162
|
+
gap: 0.3rem;
|
|
163
|
+
text-align: center;
|
|
164
|
+
text-decoration: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.zs-sidebar-item-default {
|
|
168
|
+
border-radius: 6px;
|
|
169
|
+
padding: 6px 0;
|
|
170
|
+
box-shadow: 0 0 4px 0 rgb(169 214 255 / 8%);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.zs-sidebar-item-selected {
|
|
174
|
+
border: 1px solid var(--zs-border);
|
|
175
|
+
border-radius: 8px;
|
|
176
|
+
background: #fff;
|
|
177
|
+
padding: 8px 0;
|
|
178
|
+
box-shadow: 0 0 4px 0 rgb(0 0 0 / 12%);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.zs-sidebar-item-disabled {
|
|
182
|
+
cursor: not-allowed;
|
|
183
|
+
opacity: 0.6;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.zs-sidebar-item-label {
|
|
187
|
+
color: #01334d;
|
|
188
|
+
font-size: 10px;
|
|
189
|
+
font-weight: 400;
|
|
190
|
+
line-height: 12px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.zs-sidebar-item-label-active {
|
|
194
|
+
color: #0284b5;
|
|
195
|
+
font-size: 10px;
|
|
196
|
+
font-weight: 700;
|
|
197
|
+
line-height: 12px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.zs-layout-content {
|
|
201
|
+
margin-left: var(--zs-sidebar-width);
|
|
202
|
+
padding-top: var(--zs-header-height);
|
|
203
|
+
min-height: 100vh;
|
|
204
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tiwari-shell",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Shared shell layout components for Next.js applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -12,11 +12,15 @@
|
|
|
12
12
|
"import": "./dist/index.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
"files": [
|
|
16
|
-
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"**/*.css"
|
|
20
|
+
],
|
|
17
21
|
"scripts": {
|
|
18
22
|
"dev": "vite",
|
|
19
|
-
"build": "tsc -p tsconfig.build.json",
|
|
23
|
+
"build": "tsc -p tsconfig.build.json && node scripts/copy-styles.mjs",
|
|
20
24
|
"lint": "eslint .",
|
|
21
25
|
"preview": "vite preview",
|
|
22
26
|
"prepublishOnly": "npm run build"
|
|
@@ -43,4 +47,4 @@
|
|
|
43
47
|
"typescript-eslint": "^8.59.2",
|
|
44
48
|
"vite": "^8.0.12"
|
|
45
49
|
}
|
|
46
|
-
}
|
|
50
|
+
}
|