@yamatozhen/design_system 1.0.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.
Files changed (87) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +101 -0
  3. package/package.json +49 -0
  4. package/scripts/postinstall.js +105 -0
  5. package/template/app/ClientNav.tsx +310 -0
  6. package/template/app/globals.css +167 -0
  7. package/template/app/layout.tsx +128 -0
  8. package/template/app/themes/dark-mc.css +51 -0
  9. package/template/app/themes/dark.css +51 -0
  10. package/template/app/themes/light-mc.css +51 -0
  11. package/template/app/themes/light.css +51 -0
  12. package/template/app/themes/theme.css +82 -0
  13. package/template/components/layout/Lightbox/LightboxCard.tsx +100 -0
  14. package/template/components/layout/Lightbox/LightboxGallery.module.css +249 -0
  15. package/template/components/layout/Lightbox/LightboxGallery.tsx +72 -0
  16. package/template/components/layout/Lightbox/LightboxGrid.tsx +186 -0
  17. package/template/components/layout/Lightbox/LightboxModal.module.css +395 -0
  18. package/template/components/layout/Lightbox/LightboxModal.tsx +500 -0
  19. package/template/components/layout/Lightbox/demo.tsx +412 -0
  20. package/template/components/layout/Lightbox/index.ts +30 -0
  21. package/template/components/layout/Lightbox/types.ts +113 -0
  22. package/template/components/layout/Lightbox/useLightboxFilters.ts +140 -0
  23. package/template/components/layout/accordion/Accordion.module.css +149 -0
  24. package/template/components/layout/accordion/Accordion.tsx +114 -0
  25. package/template/components/layout/button/Button.module.css +305 -0
  26. package/template/components/layout/button/ButtonGroup.tsx +503 -0
  27. package/template/components/layout/button/FAB.tsx +118 -0
  28. package/template/components/layout/button/button.tsx +128 -0
  29. package/template/components/layout/button/drop.module.css +229 -0
  30. package/template/components/layout/button/drop.tsx +516 -0
  31. package/template/components/layout/hero/v1/heroSlideshow.module.css +107 -0
  32. package/template/components/layout/hero/v1/heroSlideshow.tsx +233 -0
  33. package/template/components/layout/modals/accessibilityModal/AccessibilityModal.module.css +126 -0
  34. package/template/components/layout/modals/accessibilityModal/AccessibilityModal.tsx +290 -0
  35. package/template/components/layout/modals/alert/Alert.tsx +188 -0
  36. package/template/components/layout/navigation/MioCard.module.css +88 -0
  37. package/template/components/layout/navigation/MioCard.tsx +266 -0
  38. package/template/components/layout/navigation/Wrap.tsx +41 -0
  39. package/template/components/layout/navigation/nav/Nav.module.css +508 -0
  40. package/template/components/layout/navigation/nav/Nav.tsx +167 -0
  41. package/template/components/layout/navigation/nav/NavBar.tsx +419 -0
  42. package/template/components/layout/navigation/nav/NavContext.tsx +259 -0
  43. package/template/components/layout/navigation/nav/NavItem.tsx +173 -0
  44. package/template/components/layout/navigation/nav/NavNew.module.css +373 -0
  45. package/template/components/layout/navigation/nav/NavRail.tsx +315 -0
  46. package/template/components/layout/navigation/nav/NavSection.tsx +102 -0
  47. package/template/components/layout/navigation/nav/NavTab.tsx +25 -0
  48. package/template/components/layout/navigation/nav/navftb/NavFTB.module.css +252 -0
  49. package/template/components/layout/navigation/nav/navftb/NavFTB.tsx +399 -0
  50. package/template/components/layout/navigation/nav/navftb/useTabIndicator.ts +484 -0
  51. package/template/components/layout/navigation/nav/navheader/NavHeader.module.css +59 -0
  52. package/template/components/layout/navigation/nav/navheader/NavHeader.tsx +478 -0
  53. package/template/components/layout/pages/loadingScreen.tsx +102 -0
  54. package/template/components/layout/pages/maintenance/Maintenance.tsx +53 -0
  55. package/template/components/layout/pages/maintenance/maintenance.module.css +163 -0
  56. package/template/components/layout/switch/Switch.module.css +102 -0
  57. package/template/components/layout/switch/Switch.tsx +48 -0
  58. package/template/components/tools/Divider.tsx +11 -0
  59. package/template/components/tools/ProgressiveBlur.tsx +73 -0
  60. package/template/components/tools/ReduceMotionContext.tsx +5 -0
  61. package/template/components/tools/Sinewave.tsx +199 -0
  62. package/template/components/tools/SinewaveProgress.tsx +135 -0
  63. package/template/components/tools/badge/Badge.tsx +28 -0
  64. package/template/components/tools/flubber.d.ts +7 -0
  65. package/template/components/tools/icon/SocialIcons.tsx +88 -0
  66. package/template/components/tools/icon/icon.module.css +0 -0
  67. package/template/components/tools/icon/icon.tsx +125 -0
  68. package/template/components/tools/mobileViewProvider.tsx +58 -0
  69. package/template/components/tools/react-bits/ClickSpark.tsx +177 -0
  70. package/template/components/tools/react-bits/FadeContent.tsx +90 -0
  71. package/template/components/tools/react-bits/GlareHover.tsx +73 -0
  72. package/template/components/tools/react-bits/GradientText/GradientText.css +70 -0
  73. package/template/components/tools/react-bits/GradientText/GradientText.tsx +44 -0
  74. package/template/components/tools/react-bits/Magnet.tsx +118 -0
  75. package/template/components/tools/react-bits/Stepper/Stepper.css +134 -0
  76. package/template/components/tools/react-bits/Stepper/Stepper.tsx +412 -0
  77. package/template/components/tools/ripple/ripple.css +41 -0
  78. package/template/components/tools/ripple/ripple.tsx +53 -0
  79. package/template/components/tools/shape/ShapeLoader.tsx +101 -0
  80. package/template/components/tools/shape/ShapeMorph.tsx +190 -0
  81. package/template/components/tools/shape/ShapePaths.ts +116 -0
  82. package/template/components/tools/switch/Switch.module.css +102 -0
  83. package/template/components/tools/switch/Switch.tsx +48 -0
  84. package/template/components/tools/useBodyScrollLock.tsx +27 -0
  85. package/template/components/tools/useImageColor.ts +47 -0
  86. package/template/components/tools/useNavSheetDrag.tsx +196 -0
  87. package/template/public/fonts/material-symbols/MaterialSymbolsRounded-VariableFont_FILL,GRAD,opsz,wght.woff2 +0 -0
@@ -0,0 +1,173 @@
1
+ "use client";
2
+
3
+ import React, { memo, useId, useCallback, useMemo, useContext } from "react";
4
+ import Icon from "@/components/tools/icon/icon";
5
+ import styles from "./NavNew.module.css";
6
+ import {
7
+ NavItemProps,
8
+ NavTabProps,
9
+ NavTabInfo,
10
+ NavItemContext,
11
+ NavItemContextValue,
12
+ NavRailMenuContext,
13
+ useNavRail,
14
+ } from "./NavContext";
15
+ import NavTab from "./NavTab";
16
+ import { useBreakpoints } from "@/components/tools/mobileViewProvider";
17
+
18
+ // Static style objects – allocated once, shared across all NavItem renders.
19
+ const ICON_BODY_STYLE: React.CSSProperties = { width: "48px" };
20
+ const ACTIVE_ICON_STYLE: React.CSSProperties = {
21
+ fontVariationSettings: '"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24',
22
+ color: "var(--md-sys-color-on-primary-container)",
23
+ };
24
+ const INACTIVE_ICON_STYLE: React.CSSProperties = {};
25
+ const EXPANDED_LABEL_STYLE: React.CSSProperties = {
26
+ opacity: 0,
27
+ height: "28px",
28
+ width: "28px",
29
+ transition: "opacity var(--transition-expressive-color)",
30
+ };
31
+ const COLLAPSED_LABEL_STYLE: React.CSSProperties = {
32
+ opacity: 1,
33
+ transition: "opacity var(--transition-expressive-color)",
34
+ };
35
+
36
+ // memo() ensures NavItem only re-renders when its own props change,
37
+ // not on every Nav re-render. This matters most when the nav has many items.
38
+ const NavItem = memo(function NavItem({
39
+ systemName,
40
+ label,
41
+ path,
42
+ children,
43
+ }: NavItemProps) {
44
+ const { isTablet } = useBreakpoints();
45
+ const itemId = useId();
46
+ const { activePath, navigate, isExpanded, onCollapse } = useNavRail();
47
+ const menuCtx = useContext(NavRailMenuContext);
48
+
49
+ if (process.env.NODE_ENV !== "production" && !systemName) {
50
+ console.warn("Nav.Item: 'systemName' is required.");
51
+ }
52
+
53
+ // Collect NavTab children into tab-info records.
54
+ // Compares child.type === NavTab directly — same reference as Nav.Tab.
55
+ const tabs = useMemo<NavTabInfo[]>(() => {
56
+ const raw = React.Children.toArray(children);
57
+ if (process.env.NODE_ENV !== "production") {
58
+ raw.forEach((child) => {
59
+ if (React.isValidElement(child) && child.type !== NavTab) {
60
+ console.warn(
61
+ "Nav.Item: only Nav.Tab components are accepted as children. Received:",
62
+ (child as React.ReactElement).type,
63
+ );
64
+ }
65
+ });
66
+ }
67
+ return raw
68
+ .filter(
69
+ (child): child is React.ReactElement<NavTabProps> =>
70
+ React.isValidElement(child) && child.type === NavTab,
71
+ )
72
+ .map((child) => {
73
+ if (process.env.NODE_ENV !== "production") {
74
+ if (!child.props.path)
75
+ console.warn("Nav.Tab: 'path' prop must not be empty.");
76
+ if (!child.props.label)
77
+ console.warn("Nav.Tab: 'label' prop must not be empty.");
78
+ }
79
+ return { path: child.props.path, label: child.props.label };
80
+ });
81
+ }, [children]);
82
+
83
+ // Active if this item's own path matches, or any child tab's path matches.
84
+ const isActive =
85
+ path != null
86
+ ? activePath === path
87
+ : tabs.some((t) => t.path === activePath);
88
+
89
+ // True when THIS item's panel is the currently open one.
90
+ const isMenuOpen = menuCtx?.activeMenuItemId === itemId;
91
+ // True when any item has an open panel (activeMenuItemId is set).
92
+ const isPanelOpen = menuCtx?.activeMenuItemId != null;
93
+ // While a panel is open: only the owning item gets the active pill.
94
+ // When the panel closes: path-based active snaps back automatically.
95
+ const isVisuallyActive = isPanelOpen ? isMenuOpen : isActive;
96
+
97
+ const isExpandedOrMobile = isExpanded || isTablet;
98
+
99
+ const handleClick = useCallback(() => {
100
+ if (path) navigate(path);
101
+ if (isTablet && path) onCollapse?.();
102
+ menuCtx?.onItemActivated(itemId, path ?? null, tabs);
103
+ }, [itemId, navigate, path, isTablet, onCollapse, menuCtx, tabs]);
104
+
105
+ const handleKeyDown = useCallback(
106
+ (e: React.KeyboardEvent) => {
107
+ if (e.key === "Enter" || e.key === " ") {
108
+ e.preventDefault();
109
+ handleClick();
110
+ }
111
+ },
112
+ [handleClick],
113
+ );
114
+
115
+ const itemContextValue = useMemo<NavItemContextValue>(
116
+ () => ({ inNavItem: true, itemPath: path ?? null }),
117
+ [path],
118
+ );
119
+
120
+ return (
121
+ <NavItemContext.Provider value={itemContextValue}>
122
+ <div
123
+ className={`${styles.navItem} ${isTablet ? styles.navItemMobile : ""}`}
124
+ onClick={handleClick}
125
+ onKeyDown={handleKeyDown}
126
+ role="button"
127
+ tabIndex={0}
128
+ >
129
+ <div
130
+ className={`${isVisuallyActive ? styles.active : ""} ${styles.iconStyleNavRail}`}
131
+ >
132
+ <Icon
133
+ iconBodyStyle={ICON_BODY_STYLE}
134
+ iconStyle={
135
+ isVisuallyActive ? ACTIVE_ICON_STYLE : INACTIVE_ICON_STYLE
136
+ }
137
+ labelStyle={
138
+ isExpandedOrMobile ? EXPANDED_LABEL_STYLE : COLLAPSED_LABEL_STYLE
139
+ }
140
+ label={label}
141
+ systemName={systemName}
142
+ direction="column"
143
+ />
144
+ </div>
145
+
146
+ <div
147
+ className={`${styles.navItemLabel} ${isExpandedOrMobile ? styles.expanded : ""} ${isVisuallyActive ? styles.active : ""}`}
148
+ >
149
+ {/*Label for expanded state*/}
150
+ <div
151
+ style={{
152
+ color: isActive
153
+ ? "var(--md-sys-color-on-primary-container)"
154
+ : undefined,
155
+ display: "flex",
156
+ alignItems: "center",
157
+ gap: 2,
158
+ }}
159
+ >
160
+ {label}
161
+ <Icon
162
+ systemName="keyboard_arrow_right"
163
+ iconBodyStyle={{ fontSize: 18, opacity: tabs.length > 0 ? 1 : 0 }}
164
+ />
165
+ </div>
166
+ </div>
167
+ </div>
168
+ {children}
169
+ </NavItemContext.Provider>
170
+ );
171
+ });
172
+
173
+ export default NavItem;
@@ -0,0 +1,373 @@
1
+ .navRail {
2
+ --navRailWidth: 78px;
3
+ z-index: 1001;
4
+ width: var(--navRailWidth);
5
+ height: 100dvh;
6
+
7
+ background: transparent;
8
+ border: 1px solid transparent;
9
+ box-shadow: 0 0 0 rgba(0 0 0 0);
10
+ position: fixed;
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: 12px;
14
+ margin: 0;
15
+ padding: 12px 0 0 0;
16
+ border-radius: 0;
17
+
18
+ will-change: auto;
19
+ transition:
20
+ height var(--transition-expressive-slow),
21
+ width var(--transition-expressive-slow),
22
+ margin var(--transition-expressive-slow),
23
+ background 0.2s ease,
24
+ border var(--transition-expressive-color),
25
+ box-shadow var(--transition-expressive-color),
26
+ border-radius var(--transition-expressive-slow);
27
+ }
28
+
29
+ .navRail.navRailExpanded {
30
+ width: 234px;
31
+ height: calc(100dvh - 24px);
32
+ border-radius: 36px;
33
+ background: var(--md-sys-color-surface-container-low);
34
+ border-color: var(--globalUIBorderCard);
35
+ box-shadow:
36
+ 0 1px 1px rgba(0, 0, 0, 0.1),
37
+ 0 2px 2px rgba(0, 0, 0, 0.1),
38
+ 0 4px 4px rgba(0, 0, 0, 0.1),
39
+ 0 6px 6px rgba(0, 0, 0, 0.1);
40
+
41
+ margin: 12px;
42
+ will-change: auto;
43
+ transition:
44
+ height var(--transition-expressive-slow),
45
+ width var(--transition-expressive-slow),
46
+ margin var(--transition-expressive-slow),
47
+ background 0.2s ease,
48
+ border var(--transition-expressive-color),
49
+ box-shadow var(--transition-expressive-color),
50
+ border-radius var(--transition-expressive-slow);
51
+ }
52
+
53
+ .navRailMenuButtonWrapper {
54
+ display: flex;
55
+ justify-content: flex-end;
56
+ width: 100%;
57
+ box-sizing: content-box;
58
+ will-change: auto;
59
+ transition: padding var(--transition-expressive-slow);
60
+ }
61
+ .navRailScrollContainer {
62
+ display: flex;
63
+ flex-direction: column;
64
+ justify-content: space-between;
65
+ padding: 6px 12px 12px 12px;
66
+ overflow-x: clip;
67
+ overflow-y: auto;
68
+ margin-top: -6px;
69
+ gap: 24;
70
+ height: 100%;
71
+
72
+ transition:
73
+ margin var(--transition-expressive-slow),
74
+ padding var(--transition-expressive-slow);
75
+ }
76
+
77
+ .navRail.navRailExpanded .navRailScrollContainer {
78
+ padding-top: 24px;
79
+ }
80
+ /*MARK: NavRail Items*/
81
+
82
+ .navItemsContainer {
83
+ display: flex;
84
+ flex-direction: column;
85
+ gap: 12px;
86
+ }
87
+
88
+ .navItem {
89
+ width: 52px;
90
+ cursor: pointer;
91
+ }
92
+
93
+ .iconStyleNavRail {
94
+ transform: translateY(14px);
95
+ width: 52px;
96
+ display: flex;
97
+ align-items: center;
98
+ justify-content: center;
99
+ position: relative;
100
+ cursor: pointer;
101
+ z-index: 1002;
102
+ }
103
+
104
+ .navRail.navRailExpanded .navItem {
105
+ width: 100%;
106
+ }
107
+
108
+ /*Active state*/
109
+ .iconStyleNavRail::before {
110
+ content: "";
111
+ background: var(--md-sys-color-primary-container);
112
+ border: 1px solid var(--globalUIBorderCard);
113
+ position: absolute;
114
+ width: 0px;
115
+ height: 30px;
116
+ opacity: 0;
117
+ left: 0;
118
+ transform: translate(0, -14px);
119
+ transform-origin: left;
120
+ border-radius: 60px;
121
+ z-index: -1;
122
+ will-change: auto;
123
+ transition:
124
+ opacity 0.2s ease,
125
+ height var(--transition-expressive-slow),
126
+ width var(--transition-expressive-slow),
127
+ transform var(--transition-expressive-slow);
128
+ }
129
+ .iconStyleNavRail.active::before {
130
+ transform: translateY(-14px);
131
+ width: 52px;
132
+ opacity: 1;
133
+ }
134
+
135
+ .navRail.navRailExpanded .iconStyleNavRail.active::before,
136
+ .navItemMobile .iconStyleNavRail.active::before {
137
+ height: 56px;
138
+ width: 208px;
139
+ }
140
+
141
+ /*Hover state*/
142
+ .iconStyleNavRail::after {
143
+ content: "";
144
+ background: var(--globalUIBorderCard);
145
+ position: absolute;
146
+ width: 52px;
147
+ height: 30px;
148
+ transform: translateY(-14px);
149
+ border-radius: 60px;
150
+ left: 0;
151
+ opacity: 0.00001;
152
+ z-index: -2;
153
+ transition:
154
+ opacity 0.2s ease,
155
+ background-color var(--transition-expressive-color);
156
+ }
157
+
158
+ .navRail.navRailExpanded .iconStyleNavRail::after,
159
+ .navItemMobile .iconStyleNavRail::after {
160
+ transform: translateY(-14px);
161
+ height: 56px;
162
+ width: 208px;
163
+ }
164
+
165
+ .navItem:hover .iconStyleNavRail::after {
166
+ opacity: 1;
167
+ }
168
+
169
+ .navItemLabel {
170
+ position: relative;
171
+ transform: translate(36px, -42px);
172
+ z-index: 1002;
173
+ opacity: 0;
174
+ max-height: 0;
175
+ transition:
176
+ opacity 0.2s ease,
177
+ max-height var(--transition-expressive-slow),
178
+ transform var(--transition-expressive-slow);
179
+ }
180
+
181
+ .navRail.navRailExpanded .navItemLabel,
182
+ .navItemLabel.expanded {
183
+ max-height: 2px;
184
+ transform: translate(calc(54px - 8px), -42px);
185
+ opacity: 1;
186
+ }
187
+
188
+ /*MARK: Bottom buttons*/
189
+ .navRailBottomButtons {
190
+ display: flex;
191
+ flex-direction: column;
192
+ width: 100%;
193
+ padding: 4px;
194
+ gap: 6px;
195
+ will-change: auto;
196
+ transition: padding var(--transition-expressive-slow);
197
+ }
198
+
199
+ /*MARK: NavRail menu*/
200
+ .navRailMenu {
201
+ position: fixed;
202
+ z-index: 1001;
203
+ overflow-x: hidden;
204
+ overflow-y: auto;
205
+
206
+ border: 1px solid var(--globalUIBorderCard);
207
+ border-radius: 36px;
208
+ opacity: 0;
209
+ touch-action: none;
210
+
211
+ background: var(--md-sys-color-surface-container-lowest);
212
+
213
+ margin: 0px;
214
+ padding: 12px 0;
215
+ left: 0px;
216
+
217
+ box-shadow:
218
+ 0 1px 1px rgba(0, 0, 0, 0.1),
219
+ 0 2px 2px rgba(0, 0, 0, 0.1),
220
+ 0 4px 4px rgba(0, 0, 0, 0.1),
221
+ 0 6px 6px rgba(0, 0, 0, 0.1);
222
+
223
+ height: calc(100dvh);
224
+ width: 0%;
225
+ min-width: 0;
226
+ max-width: 0;
227
+ will-change: auto;
228
+ transition:
229
+ background-color var(--transition-expressive-color),
230
+ max-width var(--transition-expressive-slow),
231
+ min-width var(--transition-expressive-slow),
232
+ height var(--transition-expressive-slow),
233
+ opacity var(--transition-expressive-color),
234
+ padding var(--transition-expressive-slow);
235
+ }
236
+
237
+ .navRailMenu.navRailExpanded {
238
+ padding-inline: calc(234px + 12px) 12px;
239
+ margin: 12px;
240
+
241
+ min-width: calc(234px * 2 - 12px);
242
+ max-width: calc(234px * 2 - 12px);
243
+ height: calc(100dvh - 24px);
244
+
245
+ opacity: 1;
246
+ touch-action: auto;
247
+ }
248
+
249
+ /*MARK: Li items*/
250
+
251
+ .navRailMenu ul {
252
+ display: flex;
253
+ flex-direction: column;
254
+ justify-content: flex-start;
255
+ margin: 0;
256
+ gap: 6px;
257
+ width: 100%;
258
+ overflow-x: hidden;
259
+ overflow-y: auto;
260
+ }
261
+
262
+ .navRailMenu ul li {
263
+ position: relative;
264
+ list-style: none;
265
+ height: 48px;
266
+ width: 100%;
267
+ padding: 12px 16px;
268
+ border-radius: 36px;
269
+ cursor: pointer;
270
+ transition: background-color var(--transition-expressive-color);
271
+ }
272
+
273
+ .navRailMenu ul li:hover {
274
+ background-color: var(--md-sys-color-surface-container);
275
+ }
276
+
277
+ .navTabActive {
278
+ background-color: var(--md-sys-color-secondary-container) !important;
279
+ border: 1px solid var(--globalUIBorderCard);
280
+ color: var(--md-sys-color-on-secondary-container);
281
+ }
282
+
283
+ /*MARK: Mobile Expanded Rail*/
284
+ .navItem.navItemMobile {
285
+ width: 100%;
286
+ }
287
+
288
+ .navItemMobile .iconStyleNavRail {
289
+ justify-content: flex-start;
290
+ }
291
+
292
+ .navItemMobile .iconStyleNavRail,
293
+ .navItemMobile .iconStyleNavRail.active::before,
294
+ .navItemMobile .iconStyleNavRail::after {
295
+ width: 100% !important;
296
+ }
297
+
298
+ /*MARK: Mobile Bar — two-panel animated layout*/
299
+ .navBarPanel {
300
+ display: grid;
301
+ }
302
+
303
+ .navBarPanelItems,
304
+ .navBarPanelTabs {
305
+ grid-area: 1 / 1;
306
+ display: flex;
307
+ flex-direction: column;
308
+ transition:
309
+ transform var(--transition-expressive-slow),
310
+ opacity var(--transition-expressive-color),
311
+ filter var(--transition-expressive-color);
312
+ }
313
+
314
+ .navBarPanelItems {
315
+ filter: blur(0);
316
+ -webkit-filter: blur(0);
317
+ transform: translateX(0);
318
+ opacity: 1;
319
+ pointer-events: auto;
320
+ }
321
+
322
+ .navBarPanelItems.navBarPanelHidden {
323
+ transform: translateX(-160px);
324
+ filter: blur(24px);
325
+ -webkit-filter: blur(24px);
326
+ transform-origin: right;
327
+ scale: 0.8;
328
+ opacity: 0;
329
+ pointer-events: none;
330
+ }
331
+
332
+ .navBarPanelTabs {
333
+ transform: translateX(160px);
334
+ scale: 0.8;
335
+ transform-origin: left;
336
+ opacity: 0;
337
+ pointer-events: none;
338
+ }
339
+
340
+ .navBarPanelTabs.navBarPanelVisible {
341
+ transform: translateX(0);
342
+ opacity: 1;
343
+ scale: 1;
344
+ pointer-events: auto;
345
+ }
346
+
347
+ .navBarMenu {
348
+ display: flex;
349
+ flex-direction: column;
350
+ list-style: none;
351
+ padding: 8px 12px;
352
+ margin: 0;
353
+ width: 100%;
354
+ gap: 6px;
355
+ overflow-x: hidden;
356
+ overflow-y: auto;
357
+ }
358
+
359
+ .navBarMenu li {
360
+ display: flex;
361
+ align-items: center;
362
+ list-style: none;
363
+ height: 56px;
364
+ width: 100%;
365
+ padding: 12px 16px;
366
+ border-radius: 36px;
367
+ cursor: pointer;
368
+ transition: background-color var(--transition-expressive-color);
369
+ }
370
+
371
+ .navBarMenu li:hover {
372
+ background-color: var(--md-sys-color-surface-container-high);
373
+ }