@s3pweb/shell-ui 0.1.0 → 0.1.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/dist/index.js +2544 -1926
- package/dist/index.js.map +1 -1
- package/dist/themes/s3pweb.css +122 -51
- package/package.json +8 -5
package/dist/themes/s3pweb.css
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* Per-module icon chip colours: set `slug` on NavGroup (shell-ui) or
|
|
15
15
|
* `basePath` on SidebarNavGroup (shared-layouts). Recognised values:
|
|
16
16
|
* 'ecodriving' | 'maintenance' | 'incidents' | 'pre-shift' | 'social' |
|
|
17
|
-
* 'mileages-fuel'. Other slugs fall back to a neutral grey chip.
|
|
17
|
+
* 'mileages-fuel' | 'settings'. Other slugs fall back to a neutral grey chip.
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
[data-shell-theme='s3pweb'] {
|
|
@@ -125,60 +125,131 @@
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
/* ============================================================================
|
|
128
|
-
Per-module palettes —
|
|
128
|
+
Per-module palettes — coloured icon chip per slug.
|
|
129
129
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
130
|
+
Each slug needs two selectors for the sidebar (grouped: slug on the wrapping
|
|
131
|
+
`nav-group`; flat leaf: slug on the `nav-item`, `:not(…)` excludes sub-items)
|
|
132
|
+
plus one for the top-bar button. `nav-slug` defaults to the nav `id` with the
|
|
133
|
+
leading `/` stripped (e.g. basePath '/social' -> slug 'social').
|
|
134
|
+
============================================================================ */
|
|
135
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='ecodriving'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
136
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='ecodriving']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon] {
|
|
137
|
+
background: #d6efe2;
|
|
138
|
+
color: #10876a;
|
|
139
|
+
}
|
|
140
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='maintenance'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
141
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='maintenance']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon] {
|
|
142
|
+
background: #f5e2b7;
|
|
143
|
+
color: #8a5806;
|
|
144
|
+
}
|
|
145
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='incidents'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
146
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='incidents']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon] {
|
|
147
|
+
background: #f7cdd0;
|
|
148
|
+
color: #b5364b;
|
|
149
|
+
}
|
|
150
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='pre-shift'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
151
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='social'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
152
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='pre-shift']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon],
|
|
153
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='social']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon] {
|
|
154
|
+
background: #ddd1f3;
|
|
155
|
+
color: #6a47bd;
|
|
156
|
+
}
|
|
157
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='mileages-fuel'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
158
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='mileages-fuel']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon] {
|
|
159
|
+
background: #c5dbf0;
|
|
160
|
+
color: #2e6fb5;
|
|
161
|
+
}
|
|
162
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='settings'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
163
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='settings']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon] {
|
|
164
|
+
background: #dde3ec;
|
|
165
|
+
color: #4b5d76;
|
|
166
|
+
}
|
|
156
167
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
168
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='ecodriving'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
169
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='ecodriving']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon] {
|
|
170
|
+
background: rgba(16, 135, 106, 0.22);
|
|
171
|
+
color: #6ed3ad;
|
|
172
|
+
}
|
|
173
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='maintenance'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
174
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='maintenance']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon] {
|
|
175
|
+
background: rgba(247, 190, 40, 0.22);
|
|
176
|
+
color: #f7be28;
|
|
177
|
+
}
|
|
178
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='incidents'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
179
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='incidents']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon] {
|
|
180
|
+
background: rgba(181, 54, 75, 0.28);
|
|
181
|
+
color: #f7a5af;
|
|
182
|
+
}
|
|
183
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='pre-shift'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
184
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='social'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
185
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='pre-shift']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon],
|
|
186
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='social']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon] {
|
|
187
|
+
background: rgba(106, 71, 189, 0.32);
|
|
188
|
+
color: #bfa9f0;
|
|
189
|
+
}
|
|
190
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='mileages-fuel'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
191
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='mileages-fuel']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon] {
|
|
192
|
+
background: rgba(46, 111, 181, 0.32);
|
|
193
|
+
color: #9bc1e6;
|
|
194
|
+
}
|
|
195
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-slug='settings'] [data-shell-ui-nav-group-button] [data-shell-ui-nav-icon],
|
|
196
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-nav-item][data-shell-ui-nav-slug='settings']:not([data-shell-ui-nav-children] *) [data-shell-ui-nav-icon] {
|
|
197
|
+
background: rgba(75, 93, 118, 0.32);
|
|
198
|
+
color: #a9b8cc;
|
|
199
|
+
}
|
|
161
200
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
201
|
+
/* Top-bar — per-module coloured chip (baseline neutral styling is above). */
|
|
202
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='ecodriving'] {
|
|
203
|
+
background: #d6efe2;
|
|
204
|
+
color: #10876a;
|
|
205
|
+
}
|
|
206
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='maintenance'] {
|
|
207
|
+
background: #f5e2b7;
|
|
208
|
+
color: #8a5806;
|
|
209
|
+
}
|
|
210
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='incidents'] {
|
|
211
|
+
background: #f7cdd0;
|
|
212
|
+
color: #b5364b;
|
|
213
|
+
}
|
|
214
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='pre-shift'],
|
|
215
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='social'] {
|
|
216
|
+
background: #ddd1f3;
|
|
217
|
+
color: #6a47bd;
|
|
218
|
+
}
|
|
219
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='mileages-fuel'] {
|
|
220
|
+
background: #c5dbf0;
|
|
221
|
+
color: #2e6fb5;
|
|
222
|
+
}
|
|
223
|
+
[data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='settings'] {
|
|
224
|
+
background: #dde3ec;
|
|
225
|
+
color: #4b5d76;
|
|
226
|
+
}
|
|
176
227
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
228
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='ecodriving'] {
|
|
229
|
+
background: rgba(16, 135, 106, 0.22);
|
|
230
|
+
color: #6ed3ad;
|
|
231
|
+
}
|
|
232
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='maintenance'] {
|
|
233
|
+
background: rgba(247, 190, 40, 0.22);
|
|
234
|
+
color: #f7be28;
|
|
235
|
+
}
|
|
236
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='incidents'] {
|
|
237
|
+
background: rgba(181, 54, 75, 0.28);
|
|
238
|
+
color: #f7a5af;
|
|
239
|
+
}
|
|
240
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='pre-shift'],
|
|
241
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='social'] {
|
|
242
|
+
background: rgba(106, 71, 189, 0.32);
|
|
243
|
+
color: #bfa9f0;
|
|
244
|
+
}
|
|
245
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='mileages-fuel'] {
|
|
246
|
+
background: rgba(46, 111, 181, 0.32);
|
|
247
|
+
color: #9bc1e6;
|
|
248
|
+
}
|
|
249
|
+
.dark [data-shell-theme='s3pweb'] [data-shell-ui-top-bar-button][data-shell-ui-nav-slug='settings'] {
|
|
250
|
+
background: rgba(75, 93, 118, 0.32);
|
|
251
|
+
color: #a9b8cc;
|
|
252
|
+
}
|
|
182
253
|
|
|
183
254
|
/* ============================================================================
|
|
184
255
|
Sub-item hover — light yellow tint. Mirrors the original SaaS shell rule
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s3pweb/shell-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Stateless sidebar / top-nav components for the s3pweb white-label shell. Consumer owns router, i18n, and active state.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"class-variance-authority": "0.7.1",
|
|
29
29
|
"clsx": "2.1.1",
|
|
30
|
-
"lucide-react": "
|
|
30
|
+
"lucide-react": "1.17.0",
|
|
31
31
|
"radix-ui": "1.4.3",
|
|
32
32
|
"tailwind-merge": "3.5.0",
|
|
33
33
|
"tw-animate-css": "1.4.0"
|
|
@@ -37,18 +37,21 @@
|
|
|
37
37
|
"react-dom": "^19.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
+
"@babel/core": "7.29.7",
|
|
41
|
+
"@rolldown/plugin-babel": "0.2.3",
|
|
40
42
|
"@storybook/react-vite": "10.4.1",
|
|
41
|
-
"@tailwindcss/vite": "4.
|
|
43
|
+
"@tailwindcss/vite": "4.3.0",
|
|
44
|
+
"@types/babel__core": "7.20.5",
|
|
42
45
|
"@types/react": "19.2.14",
|
|
43
46
|
"@types/react-dom": "19.2.3",
|
|
44
|
-
"@vitejs/plugin-react": "
|
|
47
|
+
"@vitejs/plugin-react": "6.0.2",
|
|
45
48
|
"babel-plugin-react-compiler": "1.0.0",
|
|
46
49
|
"react": "19.2.4",
|
|
47
50
|
"react-dom": "19.2.4",
|
|
48
51
|
"storybook": "10.4.1",
|
|
49
52
|
"tailwindcss": "4.2.1",
|
|
50
53
|
"typescript": "5.9.3",
|
|
51
|
-
"vite": "
|
|
54
|
+
"vite": "8.0.16",
|
|
52
55
|
"vite-plugin-dts": "5.0.1"
|
|
53
56
|
},
|
|
54
57
|
"publishConfig": {
|