@bug-on/md3-react 3.0.0 → 3.0.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/.turbo/turbo-build.log +20 -12
- package/CHANGELOG.md +24 -0
- package/dist/index.css +178 -0
- package/dist/index.d.mts +65 -6
- package/dist/index.d.ts +65 -6
- package/dist/index.js +796 -487
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +742 -436
- package/dist/index.mjs.map +1 -1
- package/dist/plugin.d.mts +1 -0
- package/dist/plugin.d.ts +1 -0
- package/dist/plugin.js +13 -0
- package/dist/plugin.js.map +1 -0
- package/dist/plugin.mjs +3 -0
- package/dist/plugin.mjs.map +1 -0
- package/package.json +8 -2
- package/scripts/copy-assets.js +36 -3
- package/src/index.ts +9 -1
- package/src/lib/theme-utils.ts +19 -4
- package/src/plugin.ts +12 -0
- package/src/ui/button.test.tsx +19 -10
- package/src/ui/button.tsx +2 -6
- package/src/ui/navigation-bar.test.tsx +111 -0
- package/src/ui/navigation-bar.tsx +448 -0
- package/src/ui/navigation-rail.test.tsx +5 -4
- package/src/ui/navigation-rail.tsx +28 -26
- package/src/ui/scroll-area.tsx +4 -0
- package/src/ui/shared/constants.ts +13 -0
- package/src/ui/theme-provider/index.tsx +32 -7
- package/tsup.config.ts +3 -3
- package/test_output.txt +0 -164
- package/test_output_v2.txt +0 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @bug-on/md3-react@3.0.
|
|
2
|
+
> @bug-on/md3-react@3.0.2 build /home/runner/work/bug-on-md3-expressive/bug-on-md3-expressive/packages/react
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
|
-
[34mCLI[39m Building entry: src/index.ts
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts, src/plugin.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.5.1
|
|
8
8
|
[34mCLI[39m Using tsup config: /home/runner/work/bug-on-md3-expressive/bug-on-md3-expressive/packages/react/tsup.config.ts
|
|
@@ -10,16 +10,22 @@
|
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[32mCJS[39m [1mdist/index.js
|
|
17
|
-
[32mCJS[39m
|
|
18
|
-
[
|
|
13
|
+
[32mCJS[39m [1mdist/plugin.js [22m[32m337.00 B[39m
|
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m511.81 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/plugin.js.map [22m[32m90.00 B[39m
|
|
16
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m1.13 MB[39m
|
|
17
|
+
[32mCJS[39m ⚡️ Build success in 1702ms
|
|
18
|
+
[32mESM[39m [1mdist/plugin.mjs [22m[32m119.00 B[39m
|
|
19
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m492.39 KB[39m
|
|
20
|
+
[32mESM[39m [1mdist/plugin.mjs.map [22m[32m91.00 B[39m
|
|
21
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m1.13 MB[39m
|
|
22
|
+
[32mESM[39m ⚡️ Build success in 1703ms
|
|
19
23
|
Copying assets to dist...
|
|
20
24
|
✅ Copied src/assets to dist/assets
|
|
21
25
|
✅ Copied typography.css to dist/typography.css
|
|
22
|
-
✅
|
|
26
|
+
✅ Bundled colors.css from md3-tokens into index.css
|
|
27
|
+
✅ Bundled shape.css from md3-tokens into index.css
|
|
28
|
+
✅ Built bundled index.css (tokens + component base) to dist/index.css
|
|
23
29
|
✅ Copied material-symbols-cdn.css to dist/material-symbols-cdn.css
|
|
24
30
|
✅ Copied material-symbols-self-hosted.css to dist/material-symbols-self-hosted.css
|
|
25
31
|
✅ Generated index.css.d.ts
|
|
@@ -28,6 +34,8 @@ Copying assets to dist...
|
|
|
28
34
|
✅ Generated material-symbols-self-hosted.css.d.ts
|
|
29
35
|
✅ Prepended "use client" to index.js
|
|
30
36
|
✅ Prepended "use client" to index.mjs
|
|
31
|
-
[32mDTS[39m ⚡️ Build success in
|
|
32
|
-
[32mDTS[39m [1mdist/
|
|
33
|
-
[32mDTS[39m [1mdist/index.d.
|
|
37
|
+
[32mDTS[39m ⚡️ Build success in 5006ms
|
|
38
|
+
[32mDTS[39m [1mdist/plugin.d.ts [22m[32m48.00 B[39m
|
|
39
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m236.31 KB[39m
|
|
40
|
+
[32mDTS[39m [1mdist/plugin.d.mts [22m[32m48.00 B[39m
|
|
41
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m236.31 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @bug-on/md3-react
|
|
2
2
|
|
|
3
|
+
## 3.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- **Motion**: Improved `SPRING_TRANSITION_EXPRESSIVE` with a stronger bounce (0.35 → 0.45) to match MD3 Expressive standards.
|
|
8
|
+
- **Navigation**: Added `activeIndicatorTransition` prop to `NavigationBar` and `NavigationRail` for custom spring configuration.
|
|
9
|
+
- **Navigation**: Enhanced active indicator pill with a stronger "pop" scale animation.
|
|
10
|
+
- **Documentation**: Added custom animation examples for Navigation components and updated API references.
|
|
11
|
+
- **AI Context**: Updated `llms.txt` and `llms-full.txt` with the latest motion specs and Navigation Bar reference.
|
|
12
|
+
|
|
13
|
+
## 3.0.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- - **React**: Automatically bundle CSS tokens into `index.css` for easier setup.
|
|
18
|
+
- **React**: Re-export Tailwind plugin via `@bug-on/md3-react/plugin`.
|
|
19
|
+
- **React**: Add `@bug-on/md3-tailwind` and `@bug-on/md3-tokens` as direct dependencies.
|
|
20
|
+
- **Tokens**: Fix build warning when `index.css` is missing in src.
|
|
21
|
+
- **Tailwind**: Improved compatibility for Tailwind v3 and v4.
|
|
22
|
+
- **Build**: Optimized build process using native tsup features.
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- @bug-on/md3-tailwind@3.0.1
|
|
25
|
+
- @bug-on/md3-tokens@3.0.1
|
|
26
|
+
|
|
3
27
|
## 3.0.0
|
|
4
28
|
|
|
5
29
|
### Major Changes
|
package/dist/index.css
CHANGED
|
@@ -1,3 +1,181 @@
|
|
|
1
|
+
/* @bug-on/md3-tokens — MD3 System Color Tokens */
|
|
2
|
+
/* MD3 System Color Tokens — Light Theme (Baseline Scheme)
|
|
3
|
+
*
|
|
4
|
+
* Mapping: PaletteTokens → ColorLightTokens → CSS variable
|
|
5
|
+
* Reference: ColorLightTokens.kt, ColorDarkTokens.kt, PaletteTokens.kt
|
|
6
|
+
*/
|
|
7
|
+
:root {
|
|
8
|
+
/* ── Primary ─────────────────────────────────────────────────────────── */
|
|
9
|
+
--md-sys-color-primary: #6750a4; /* Primary40 */
|
|
10
|
+
--md-sys-color-on-primary: #ffffff; /* Primary100 */
|
|
11
|
+
--md-sys-color-primary-container: #eaddff; /* Primary90 */
|
|
12
|
+
--md-sys-color-on-primary-container: #21005d; /* Primary10 */
|
|
13
|
+
--md-sys-color-inverse-primary: #d0bcff; /* Primary80 */
|
|
14
|
+
|
|
15
|
+
/* ── Primary Fixed (stable across light/dark) ────────────────────────── */
|
|
16
|
+
--md-sys-color-primary-fixed: #eaddff; /* Primary90 */
|
|
17
|
+
--md-sys-color-primary-fixed-dim: #d0bcff; /* Primary80 */
|
|
18
|
+
--md-sys-color-on-primary-fixed: #21005d; /* Primary10 */
|
|
19
|
+
--md-sys-color-on-primary-fixed-variant: #4f378b; /* Primary30 */
|
|
20
|
+
|
|
21
|
+
/* ── Secondary ───────────────────────────────────────────────────────── */
|
|
22
|
+
--md-sys-color-secondary: #625b71; /* Secondary40 */
|
|
23
|
+
--md-sys-color-on-secondary: #ffffff; /* Secondary100 */
|
|
24
|
+
--md-sys-color-secondary-container: #e8def8; /* Secondary90 */
|
|
25
|
+
--md-sys-color-on-secondary-container: #1d192b; /* Secondary10 */
|
|
26
|
+
|
|
27
|
+
/* ── Secondary Fixed (stable across light/dark) ──────────────────────── */
|
|
28
|
+
--md-sys-color-secondary-fixed: #e8def8; /* Secondary90 */
|
|
29
|
+
--md-sys-color-secondary-fixed-dim: #ccc2dc; /* Secondary80 */
|
|
30
|
+
--md-sys-color-on-secondary-fixed: #1d192b; /* Secondary10 */
|
|
31
|
+
--md-sys-color-on-secondary-fixed-variant: #4a4458; /* Secondary30 */
|
|
32
|
+
|
|
33
|
+
/* ── Tertiary ────────────────────────────────────────────────────────── */
|
|
34
|
+
--md-sys-color-tertiary: #7d5260; /* Tertiary40 */
|
|
35
|
+
--md-sys-color-on-tertiary: #ffffff; /* Tertiary100 */
|
|
36
|
+
--md-sys-color-tertiary-container: #ffd8e4; /* Tertiary90 */
|
|
37
|
+
--md-sys-color-on-tertiary-container: #31111d; /* Tertiary10 */
|
|
38
|
+
|
|
39
|
+
/* ── Tertiary Fixed (stable across light/dark) ───────────────────────── */
|
|
40
|
+
--md-sys-color-tertiary-fixed: #ffd8e4; /* Tertiary90 */
|
|
41
|
+
--md-sys-color-tertiary-fixed-dim: #efb8c8; /* Tertiary80 */
|
|
42
|
+
--md-sys-color-on-tertiary-fixed: #31111d; /* Tertiary10 */
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: #633b48; /* Tertiary30 */
|
|
44
|
+
|
|
45
|
+
/* ── Error ───────────────────────────────────────────────────────────── */
|
|
46
|
+
--md-sys-color-error: #b3261e; /* Error40 */
|
|
47
|
+
--md-sys-color-on-error: #ffffff; /* Error100 */
|
|
48
|
+
--md-sys-color-error-container: #f9dedc; /* Error90 */
|
|
49
|
+
--md-sys-color-on-error-container: #410e0b; /* Error10 */
|
|
50
|
+
|
|
51
|
+
/* ── Surface ─────────────────────────────────────────────────────────── */
|
|
52
|
+
--md-sys-color-surface: #fef7ff; /* Neutral98 */
|
|
53
|
+
--md-sys-color-on-surface: #1c1b1f; /* Neutral10 */
|
|
54
|
+
--md-sys-color-surface-variant: #e7e0eb; /* NeutralVariant90 */
|
|
55
|
+
--md-sys-color-on-surface-variant: #49454f; /* NeutralVariant30 */
|
|
56
|
+
--md-sys-color-surface-dim: #ded8e1; /* Neutral87 */
|
|
57
|
+
--md-sys-color-surface-bright: #fef7ff; /* Neutral98 */
|
|
58
|
+
--md-sys-color-surface-tint: #6750a4; /* = primary */
|
|
59
|
+
--md-sys-color-surface-container-lowest: #ffffff; /* Neutral100 */
|
|
60
|
+
--md-sys-color-surface-container-low: #f7f2fa; /* Neutral96 */
|
|
61
|
+
--md-sys-color-surface-container: #f3edf7; /* Neutral94 */
|
|
62
|
+
--md-sys-color-surface-container-high: #ece6f0; /* Neutral92 */
|
|
63
|
+
--md-sys-color-surface-container-highest: #e6e0e9; /* Neutral90 */
|
|
64
|
+
|
|
65
|
+
/* ── Inverse Surface ─────────────────────────────────────────────────── */
|
|
66
|
+
--md-sys-color-inverse-surface: #313033; /* Neutral20 */
|
|
67
|
+
--md-sys-color-inverse-on-surface: #f4eff4; /* Neutral95 */
|
|
68
|
+
|
|
69
|
+
/* ── Background ──────────────────────────────────────────────────────── */
|
|
70
|
+
--md-sys-color-background: #fef7ff; /* Neutral98 — same as surface */
|
|
71
|
+
--md-sys-color-on-background: #1c1b1f; /* Neutral10 */
|
|
72
|
+
|
|
73
|
+
/* ── Outline ─────────────────────────────────────────────────────────── */
|
|
74
|
+
--md-sys-color-outline: #79747e; /* NeutralVariant50 */
|
|
75
|
+
--md-sys-color-outline-variant: #cac4d0; /* NeutralVariant80 */
|
|
76
|
+
|
|
77
|
+
/* ── Utility ─────────────────────────────────────────────────────────── */
|
|
78
|
+
--md-sys-color-scrim: #000000; /* Neutral0 */
|
|
79
|
+
--md-sys-color-shadow: #000000; /* Neutral0 */
|
|
80
|
+
|
|
81
|
+
/* ── Indicator tokens — Loading & Progress ───────────────────────────── */
|
|
82
|
+
--md-sys-color-indicator-active: var(--md-sys-color-primary);
|
|
83
|
+
--md-sys-color-indicator-container: var(--md-sys-color-secondary-container);
|
|
84
|
+
--md-sys-color-indicator-contained-active: var(
|
|
85
|
+
--md-sys-color-on-primary-container
|
|
86
|
+
);
|
|
87
|
+
--md-sys-color-indicator-contained-container: var(
|
|
88
|
+
--md-sys-color-primary-container
|
|
89
|
+
);
|
|
90
|
+
--md-sys-color-indicator-track: var(--md-sys-color-surface-variant);
|
|
91
|
+
--md-sys-color-indicator-stop: var(--md-sys-color-primary);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Dark Theme overrides
|
|
95
|
+
* Mapping: PaletteTokens → ColorDarkTokens → CSS variable
|
|
96
|
+
*/
|
|
97
|
+
[data-theme="dark"],
|
|
98
|
+
.dark {
|
|
99
|
+
/* ── Primary ─────────────────────────────────────────────────────────── */
|
|
100
|
+
--md-sys-color-primary: #d0bcff; /* Primary80 */
|
|
101
|
+
--md-sys-color-on-primary: #381e72; /* Primary20 */
|
|
102
|
+
--md-sys-color-primary-container: #4f378b; /* Primary30 */
|
|
103
|
+
--md-sys-color-on-primary-container: #eaddff; /* Primary90 */
|
|
104
|
+
--md-sys-color-inverse-primary: #6750a4; /* Primary40 */
|
|
105
|
+
|
|
106
|
+
/* ── Secondary ───────────────────────────────────────────────────────── */
|
|
107
|
+
--md-sys-color-secondary: #ccc2dc; /* Secondary80 */
|
|
108
|
+
--md-sys-color-on-secondary: #332d41; /* Secondary20 */
|
|
109
|
+
--md-sys-color-secondary-container: #4a4458; /* Secondary30 */
|
|
110
|
+
--md-sys-color-on-secondary-container: #e8def8; /* Secondary90 */
|
|
111
|
+
|
|
112
|
+
/* ── Tertiary ────────────────────────────────────────────────────────── */
|
|
113
|
+
--md-sys-color-tertiary: #efb8c8; /* Tertiary80 */
|
|
114
|
+
--md-sys-color-on-tertiary: #492532; /* Tertiary20 */
|
|
115
|
+
--md-sys-color-tertiary-container: #633b48; /* Tertiary30 */
|
|
116
|
+
--md-sys-color-on-tertiary-container: #ffd8e4; /* Tertiary90 */
|
|
117
|
+
|
|
118
|
+
/* ── Error ───────────────────────────────────────────────────────────── */
|
|
119
|
+
--md-sys-color-error: #f2b8b5; /* Error80 */
|
|
120
|
+
--md-sys-color-on-error: #601410; /* Error20 */
|
|
121
|
+
--md-sys-color-error-container: #8c1d18; /* Error30 */
|
|
122
|
+
--md-sys-color-on-error-container: #f9dedc; /* Error90 */
|
|
123
|
+
|
|
124
|
+
/* ── Surface ─────────────────────────────────────────────────────────── */
|
|
125
|
+
--md-sys-color-surface: #141218; /* Neutral6 */
|
|
126
|
+
--md-sys-color-on-surface: #e6e1e5; /* Neutral90 */
|
|
127
|
+
--md-sys-color-surface-variant: #49454f; /* NeutralVariant30 */
|
|
128
|
+
--md-sys-color-on-surface-variant: #cac4d0; /* NeutralVariant80 */
|
|
129
|
+
--md-sys-color-surface-dim: #141218; /* Neutral6 */
|
|
130
|
+
--md-sys-color-surface-bright: #3b383e; /* Neutral24 */
|
|
131
|
+
--md-sys-color-surface-tint: #d0bcff; /* = primary (dark) */
|
|
132
|
+
--md-sys-color-surface-container-lowest: #0f0d13; /* Neutral4 */
|
|
133
|
+
--md-sys-color-surface-container-low: #1d1b20; /* Neutral10 */
|
|
134
|
+
--md-sys-color-surface-container: #211f26; /* Neutral12 */
|
|
135
|
+
--md-sys-color-surface-container-high: #2b2930; /* Neutral17 */
|
|
136
|
+
--md-sys-color-surface-container-highest: #36343b; /* Neutral22 */
|
|
137
|
+
|
|
138
|
+
/* ── Inverse Surface ─────────────────────────────────────────────────── */
|
|
139
|
+
--md-sys-color-inverse-surface: #e6e1e5; /* Neutral90 */
|
|
140
|
+
--md-sys-color-inverse-on-surface: #313033; /* Neutral20 */
|
|
141
|
+
|
|
142
|
+
/* ── Background ──────────────────────────────────────────────────────── */
|
|
143
|
+
--md-sys-color-background: #141218; /* Neutral6 — same as dark surface */
|
|
144
|
+
--md-sys-color-on-background: #e6e1e5; /* Neutral90 */
|
|
145
|
+
|
|
146
|
+
/* ── Outline ─────────────────────────────────────────────────────────── */
|
|
147
|
+
--md-sys-color-outline: #938f99; /* NeutralVariant60 */
|
|
148
|
+
--md-sys-color-outline-variant: #49454f; /* NeutralVariant30 */
|
|
149
|
+
|
|
150
|
+
/* ── Utility ─────────────────────────────────────────────────────────── */
|
|
151
|
+
--md-sys-color-scrim: #000000;
|
|
152
|
+
--md-sys-color-shadow: #000000;
|
|
153
|
+
|
|
154
|
+
/* ── Indicator tokens — Dark ─────────────────────────────────────────── */
|
|
155
|
+
--md-sys-color-indicator-active: var(--md-sys-color-primary);
|
|
156
|
+
--md-sys-color-indicator-container: var(--md-sys-color-secondary-container);
|
|
157
|
+
--md-sys-color-indicator-contained-active: var(
|
|
158
|
+
--md-sys-color-on-primary-container
|
|
159
|
+
);
|
|
160
|
+
--md-sys-color-indicator-contained-container: var(
|
|
161
|
+
--md-sys-color-primary-container
|
|
162
|
+
);
|
|
163
|
+
--md-sys-color-indicator-track: var(--md-sys-color-surface-variant);
|
|
164
|
+
--md-sys-color-indicator-stop: var(--md-sys-color-primary);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:root {
|
|
168
|
+
--md-sys-shape-corner-none: 0px;
|
|
169
|
+
--md-sys-shape-corner-extra-small: 4px;
|
|
170
|
+
--md-sys-shape-corner-small: 8px;
|
|
171
|
+
--md-sys-shape-corner-medium: 12px;
|
|
172
|
+
--md-sys-shape-corner-large: 16px;
|
|
173
|
+
--md-sys-shape-corner-extra-large: 28px;
|
|
174
|
+
--md-sys-shape-corner-full: 9999px;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
/* @bug-on/md3-react — Component Base Reset */
|
|
1
179
|
/* @bug-on/md3-react - Base Reset Styles */
|
|
2
180
|
|
|
3
181
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -92,7 +92,13 @@ interface MaterialSymbolsPreconnectProps {
|
|
|
92
92
|
}
|
|
93
93
|
declare function MaterialSymbolsPreconnect({ variants, }: MaterialSymbolsPreconnectProps): react_jsx_runtime.JSX.Element;
|
|
94
94
|
|
|
95
|
-
type ThemeMode = "light" | "dark";
|
|
95
|
+
type ThemeMode = "light" | "dark" | "system";
|
|
96
|
+
/**
|
|
97
|
+
* Resolves the effective color scheme from a ThemeMode.
|
|
98
|
+
* When mode is "system", reads the OS preference via matchMedia.
|
|
99
|
+
* Returns "light" as the safe default in SSR environments.
|
|
100
|
+
*/
|
|
101
|
+
declare function resolveMode(mode: ThemeMode): "light" | "dark";
|
|
96
102
|
interface MD3ColorScheme {
|
|
97
103
|
primary: string;
|
|
98
104
|
onPrimary: string;
|
|
@@ -146,7 +152,7 @@ interface MD3ColorScheme {
|
|
|
146
152
|
* Generate a complete MD3 color scheme from a source color hex string.
|
|
147
153
|
* Uses the HCT color space algorithm — same as Material You on Android.
|
|
148
154
|
*/
|
|
149
|
-
declare function generateM3Theme(sourceColorHex: string, mode?:
|
|
155
|
+
declare function generateM3Theme(sourceColorHex: string, mode?: "light" | "dark"): MD3ColorScheme;
|
|
150
156
|
/**
|
|
151
157
|
* Apply an MD3 dynamic color scheme to the document root as CSS custom properties.
|
|
152
158
|
* Sets both `--md-sys-color-*` tokens (used by components) and
|
|
@@ -3186,7 +3192,55 @@ declare const VerticalMenuContent: React$1.ForwardRefExoticComponent<VerticalMen
|
|
|
3186
3192
|
*/
|
|
3187
3193
|
declare const VerticalMenu: React$1.ForwardRefExoticComponent<VerticalMenuProps & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
3188
3194
|
|
|
3189
|
-
|
|
3195
|
+
/**
|
|
3196
|
+
* Layout styling for navigation bar items.
|
|
3197
|
+
* - vertical: Icon above label (default for mobile)
|
|
3198
|
+
* - horizontal: Icon beside label (forced)
|
|
3199
|
+
*/
|
|
3200
|
+
type NavigationBarItemLayout = "vertical" | "horizontal";
|
|
3201
|
+
/**
|
|
3202
|
+
* Visual variant of the Navigation Bar.
|
|
3203
|
+
* - flexible: Default MD3 behavior (h-16), becomes horizontal on desktop.
|
|
3204
|
+
* - baseline: Taller MD3 behavior (h-20), always vertical.
|
|
3205
|
+
* - xr: Floating orbiter variant for spatial interfaces (detached from bottom).
|
|
3206
|
+
*/
|
|
3207
|
+
type NavigationBarVariant = "flexible" | "baseline" | "xr";
|
|
3208
|
+
interface NavigationBarItemProps {
|
|
3209
|
+
selected: boolean;
|
|
3210
|
+
icon: React$1.ReactNode;
|
|
3211
|
+
label: React$1.ReactNode;
|
|
3212
|
+
onClick?: () => void;
|
|
3213
|
+
disabled?: boolean;
|
|
3214
|
+
badge?: React$1.ReactNode;
|
|
3215
|
+
"aria-label"?: string;
|
|
3216
|
+
className?: string;
|
|
3217
|
+
}
|
|
3218
|
+
interface NavigationBarProps {
|
|
3219
|
+
/** Visual variant of the Navigation Bar */
|
|
3220
|
+
variant?: NavigationBarVariant;
|
|
3221
|
+
/** Forces a specific item layout (horizontal/vertical) */
|
|
3222
|
+
itemLayout?: NavigationBarItemLayout;
|
|
3223
|
+
/** Whether the bar should hide when scrolling down */
|
|
3224
|
+
hideOnScroll?: boolean;
|
|
3225
|
+
/** Whether the bar should have an elevation shadow */
|
|
3226
|
+
elevated?: boolean;
|
|
3227
|
+
/** Whether the bar is fixed to the viewport (default) or absolute */
|
|
3228
|
+
fixed?: boolean;
|
|
3229
|
+
/** Container ref to track scrolling for hideOnScroll */
|
|
3230
|
+
scrollContainerRef?: React$1.RefObject<HTMLElement | null>;
|
|
3231
|
+
/** Transition for the active indicator pill */
|
|
3232
|
+
activeIndicatorTransition?: Transition;
|
|
3233
|
+
/** Navigation items */
|
|
3234
|
+
children: React$1.ReactNode;
|
|
3235
|
+
/** Optional additional classes */
|
|
3236
|
+
className?: string;
|
|
3237
|
+
/** Optional inline styles */
|
|
3238
|
+
style?: React$1.CSSProperties;
|
|
3239
|
+
}
|
|
3240
|
+
declare const NavigationBarItem: React$1.NamedExoticComponent<NavigationBarItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3241
|
+
declare const NavigationBar: React$1.NamedExoticComponent<NavigationBarProps & React$1.RefAttributes<HTMLElement>>;
|
|
3242
|
+
|
|
3243
|
+
type NavigationRailVariant = "collapsed" | "expanded" | "modal" | "xr";
|
|
3190
3244
|
type NavigationRailLabelVisibility = "labeled" | "auto" | "unlabeled";
|
|
3191
3245
|
interface NavigationRailItemProps {
|
|
3192
3246
|
selected: boolean;
|
|
@@ -3203,11 +3257,12 @@ interface NavigationRailProps {
|
|
|
3203
3257
|
labelVisibility?: NavigationRailLabelVisibility;
|
|
3204
3258
|
header?: React$1.ReactNode;
|
|
3205
3259
|
fab?: React$1.ReactNode;
|
|
3260
|
+
fabPlacement?: "contained" | "spatialized";
|
|
3206
3261
|
footer?: React$1.ReactNode;
|
|
3207
3262
|
narrow?: boolean;
|
|
3208
3263
|
open?: boolean;
|
|
3209
|
-
xr?: boolean | "contained" | "spatialized";
|
|
3210
3264
|
onClose?: () => void;
|
|
3265
|
+
activeIndicatorTransition?: Transition;
|
|
3211
3266
|
children: React$1.ReactNode;
|
|
3212
3267
|
className?: string;
|
|
3213
3268
|
style?: React$1.CSSProperties;
|
|
@@ -3639,6 +3694,8 @@ interface ScrollAreaProps extends Omit<React$1.ComponentPropsWithoutRef<typeof R
|
|
|
3639
3694
|
scrollHideDelay?: number;
|
|
3640
3695
|
/** Extra classes applied to the inner viewport element. */
|
|
3641
3696
|
viewportClassName?: string;
|
|
3697
|
+
/** Ref to the scrolling viewport element. */
|
|
3698
|
+
viewportRef?: React$1.Ref<HTMLDivElement>;
|
|
3642
3699
|
}
|
|
3643
3700
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3644
3701
|
declare const ScrollAreaScrollbar: React$1.ForwardRefExoticComponent<Omit<RadixScrollArea.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -5750,6 +5807,8 @@ interface ThemeContextValue {
|
|
|
5750
5807
|
setSourceColor: (color: string) => void;
|
|
5751
5808
|
mode: ThemeMode;
|
|
5752
5809
|
setMode: (mode: ThemeMode) => void;
|
|
5810
|
+
/** The resolved color scheme actually applied — always "light" or "dark". */
|
|
5811
|
+
effectiveMode: "light" | "dark";
|
|
5753
5812
|
}
|
|
5754
5813
|
interface MD3ThemeProviderProps {
|
|
5755
5814
|
children: ReactNode;
|
|
@@ -5787,7 +5846,7 @@ interface MD3ThemeProviderProps {
|
|
|
5787
5846
|
}
|
|
5788
5847
|
declare function MD3ThemeProvider({ children, sourceColor: initialSourceColor, defaultMode, persistToLocalStorage, typography: typographyProp, fontFamily, fontVariationAxes, enableSnackbar, }: MD3ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
5789
5848
|
declare function useTheme(): ThemeContextValue;
|
|
5790
|
-
declare function useThemeMode(): Pick<ThemeContextValue, "mode" | "setMode">;
|
|
5849
|
+
declare function useThemeMode(): Pick<ThemeContextValue, "mode" | "setMode" | "effectiveMode">;
|
|
5791
5850
|
|
|
5792
5851
|
/**
|
|
5793
5852
|
* A single entry in the Table of Contents.
|
|
@@ -6124,4 +6183,4 @@ declare const TypeScaleTokens: {
|
|
|
6124
6183
|
};
|
|
6125
6184
|
type TypeScaleTokensType = typeof TypeScaleTokens;
|
|
6126
6185
|
|
|
6127
|
-
export { APP_BAR_BOTTOM_SPRING, APP_BAR_COLORS, APP_BAR_COLOR_TRANSITION, APP_BAR_ENTER_ALWAYS_SPRING, APP_BAR_TITLE_FADE, type AppBarColors, AppBarColumn, type AppBarColumnProps, type AppBarItem, type AppBarItemType, type AppBarMenuState, AppBarOverflowIndicator, type AppBarOverflowIndicatorProps, AppBarRow, type AppBarRowProps, type AppBarScrollBehavior, AppBarTokens, Badge, type BadgeProps, BadgedBox, type BadgedBoxProps, type BaseAppBarProps, type BaseButtonProps, type BaseIconButtonProps, BottomAppBar, type BottomAppBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CHECK_ICON_VARIANTS, Card, type CardProps, type CaretConfig, Checkbox, type CheckboxProps, type CheckboxState, Chip, type ChipProps, type CircularProgressProps, CodeBlock, type CodeBlockProps, ContextMenu, ContextMenuContent, type ContextMenuContentProps, type ContextMenuProps, ContextMenuTrigger, type ContextMenuTriggerProps, DIVIDER_COLOR, DIVIDER_PADDING, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogFullScreenContent, type DialogFullScreenContentProps, DialogHeader, DialogIcon, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, DialogTrigger, Divider, type DividerProps, DockedToolbar, type DockedToolbarProps, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerProps, DrawerTitle, DrawerTrigger, FAB, FABMenu, FABMenuItem, type FABMenuItemData, type FABMenuItemProps, type FABMenuProps, FABPosition, type FABPositionProps, type FABProps, FAST_EFFECTS_TRANSITION, FAST_SPATIAL_SPRING, type FlexibleAppBarProps, GROUP_SHAPES, ITEM_SHAPE_CLASSES, Icon, IconButton, type IconButtonProps, type IconProps, LargeFlexibleAppBar, type LinearProgressProps, LoadingIndicator, type LoadingIndicatorProps, type MD3ColorScheme, type MD3ColorStyle, type MD3Shape, type MD3Size, MD3ThemeProvider, type MD3ThemeProviderProps, MD3_EXPRESSIVE_FONT_VARIATION, MENU_CHECK_ICON_SIZE, MENU_CONTAINER_VARIANTS, MENU_GROUP_GAP, MENU_ICON_SIZE, MENU_ITEM_MIN_HEIGHT, MENU_MAX_WIDTH, MENU_MIN_WIDTH, MaterialSymbolsPreconnect, MediumFlexibleAppBar, Menu, type MenuColorVariant, MenuContent, type MenuContentProps, MenuDivider, type MenuDividerProps, MenuGroup, type MenuGroupPosition, type MenuGroupProps, MenuItem, type MenuItemPosition, type MenuItemProps, type MenuPrimitive, type MenuProps, MenuProvider, MenuTrigger, type MenuTriggerProps, type MenuVariant, NavigationRail, NavigationRailItem, type NavigationRailItemProps, type NavigationRailLabelVisibility, type NavigationRailProps, type NavigationRailVariant, PlainTooltip, type PlainTooltipProps, type PolymorphicProps, type PolymorphicRef, ProgressIndicator, type ProgressIndicatorProps, RadioButton, type RadioButtonColors, type RadioButtonProps, RadioGroup, type RadioGroupProps, RangeSlider, type RangeSliderProps, RichTooltip, type RichTooltipProps, Ripple, type RippleOrigin, type RippleProps, SEARCH_BAR_EXPAND_SPRING, SEARCH_COLORS, SEARCH_DOCKED_REVEAL_SPRING, SEARCH_FULLSCREEN_SPRING, SEARCH_TYPOGRAPHY, SEARCH_VIEW_SPRING, STANDARD_COLORS, SUBMENU_CONTAINER_VARIANTS, ScrollArea, type ScrollAreaOrientation, type ScrollAreaProps, ScrollAreaScrollbar, type ScrollAreaType, Search, SearchAppBar, type SearchAppBarProps, SearchBar, type SearchBarVariant, type SearchProps, type SearchStyleType, SearchTokens, type SearchVariant, SearchView, SearchViewContainer, SearchViewDocked, SearchViewFullScreen, type SearchViewProps, Slider, SliderColors, type SliderOrientation, type SliderProps, SliderTokens, type SliderTrackSize, type SliderVariant, SmallAppBar, type SmallAppBarProps, Snackbar, type SnackbarData, type SnackbarDuration, SnackbarHost, type SnackbarHostProps, type SnackbarProps, SnackbarProvider, type SnackbarResult, type SnackbarVisuals, SubMenu, type SubMenuProps, Switch, SwitchColors, type SwitchProps, SwitchTokens, Tab, type TabProps, TableOfContents, type TableOfContentsProps, Tabs, TabsColors, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTokens, type TabsVariant, Text, TextField, type TextFieldHandle, type TextFieldInputType, type TextFieldProps, type TextFieldTrailingIconMode, type TextFieldVariant, type TextProps, type TextStyle, type ThemeMode, type TitleAlignment, type ToCItem, ToggleFAB, type ToggleFABProps, TooltipBox, type TooltipBoxProps, TooltipCaretShape, type TooltipPlacement, type TooltipState, type TooltipStateConfig, TooltipTokens, type TooltipTrigger, TriStateCheckbox, type TriStateCheckboxProps, TypeScaleTokens, type TypeScaleTokensType, Typography, TypographyContext, TypographyKeyTokens, TypographyProvider, type TypographyProviderProps, TypographyTokens, type UseAppBarScrollReturn, type UseRippleStateOptions, type UseSnackbarStateReturn, VIBRANT_COLORS, VerticalMenu, VerticalMenuContent, type VerticalMenuContentProps, VerticalMenuDivider, type VerticalMenuDividerProps, VerticalMenuGroup, type VerticalMenuGroupProps, type VerticalMenuProps, type VerticalMenuSeparatorStyle, appBarTypography, applyTheme, buildWavePath, cn, generateM3Theme, useAppBarScroll, useRipple$1 as useDOMRipple, useMediaQuery, useMenuContext, useRipple, useRippleState, useSearchKeyboard, useSnackbar, useSnackbarState, useTheme, useThemeMode, useTooltipPosition, useTooltipState, useTypography };
|
|
6186
|
+
export { APP_BAR_BOTTOM_SPRING, APP_BAR_COLORS, APP_BAR_COLOR_TRANSITION, APP_BAR_ENTER_ALWAYS_SPRING, APP_BAR_TITLE_FADE, type AppBarColors, AppBarColumn, type AppBarColumnProps, type AppBarItem, type AppBarItemType, type AppBarMenuState, AppBarOverflowIndicator, type AppBarOverflowIndicatorProps, AppBarRow, type AppBarRowProps, type AppBarScrollBehavior, AppBarTokens, Badge, type BadgeProps, BadgedBox, type BadgedBoxProps, type BaseAppBarProps, type BaseButtonProps, type BaseIconButtonProps, BottomAppBar, type BottomAppBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CHECK_ICON_VARIANTS, Card, type CardProps, type CaretConfig, Checkbox, type CheckboxProps, type CheckboxState, Chip, type ChipProps, type CircularProgressProps, CodeBlock, type CodeBlockProps, ContextMenu, ContextMenuContent, type ContextMenuContentProps, type ContextMenuProps, ContextMenuTrigger, type ContextMenuTriggerProps, DIVIDER_COLOR, DIVIDER_PADDING, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogFullScreenContent, type DialogFullScreenContentProps, DialogHeader, DialogIcon, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, DialogTrigger, Divider, type DividerProps, DockedToolbar, type DockedToolbarProps, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerProps, DrawerTitle, DrawerTrigger, FAB, FABMenu, FABMenuItem, type FABMenuItemData, type FABMenuItemProps, type FABMenuProps, FABPosition, type FABPositionProps, type FABProps, FAST_EFFECTS_TRANSITION, FAST_SPATIAL_SPRING, type FlexibleAppBarProps, GROUP_SHAPES, ITEM_SHAPE_CLASSES, Icon, IconButton, type IconButtonProps, type IconProps, LargeFlexibleAppBar, type LinearProgressProps, LoadingIndicator, type LoadingIndicatorProps, type MD3ColorScheme, type MD3ColorStyle, type MD3Shape, type MD3Size, MD3ThemeProvider, type MD3ThemeProviderProps, MD3_EXPRESSIVE_FONT_VARIATION, MENU_CHECK_ICON_SIZE, MENU_CONTAINER_VARIANTS, MENU_GROUP_GAP, MENU_ICON_SIZE, MENU_ITEM_MIN_HEIGHT, MENU_MAX_WIDTH, MENU_MIN_WIDTH, MaterialSymbolsPreconnect, MediumFlexibleAppBar, Menu, type MenuColorVariant, MenuContent, type MenuContentProps, MenuDivider, type MenuDividerProps, MenuGroup, type MenuGroupPosition, type MenuGroupProps, MenuItem, type MenuItemPosition, type MenuItemProps, type MenuPrimitive, type MenuProps, MenuProvider, MenuTrigger, type MenuTriggerProps, type MenuVariant, NavigationBar, NavigationBarItem, type NavigationBarItemLayout, type NavigationBarItemProps, type NavigationBarProps, type NavigationBarVariant, NavigationRail, NavigationRailItem, type NavigationRailItemProps, type NavigationRailLabelVisibility, type NavigationRailProps, type NavigationRailVariant, PlainTooltip, type PlainTooltipProps, type PolymorphicProps, type PolymorphicRef, ProgressIndicator, type ProgressIndicatorProps, RadioButton, type RadioButtonColors, type RadioButtonProps, RadioGroup, type RadioGroupProps, RangeSlider, type RangeSliderProps, RichTooltip, type RichTooltipProps, Ripple, type RippleOrigin, type RippleProps, SEARCH_BAR_EXPAND_SPRING, SEARCH_COLORS, SEARCH_DOCKED_REVEAL_SPRING, SEARCH_FULLSCREEN_SPRING, SEARCH_TYPOGRAPHY, SEARCH_VIEW_SPRING, STANDARD_COLORS, SUBMENU_CONTAINER_VARIANTS, ScrollArea, type ScrollAreaOrientation, type ScrollAreaProps, ScrollAreaScrollbar, type ScrollAreaType, Search, SearchAppBar, type SearchAppBarProps, SearchBar, type SearchBarVariant, type SearchProps, type SearchStyleType, SearchTokens, type SearchVariant, SearchView, SearchViewContainer, SearchViewDocked, SearchViewFullScreen, type SearchViewProps, Slider, SliderColors, type SliderOrientation, type SliderProps, SliderTokens, type SliderTrackSize, type SliderVariant, SmallAppBar, type SmallAppBarProps, Snackbar, type SnackbarData, type SnackbarDuration, SnackbarHost, type SnackbarHostProps, type SnackbarProps, SnackbarProvider, type SnackbarResult, type SnackbarVisuals, SubMenu, type SubMenuProps, Switch, SwitchColors, type SwitchProps, SwitchTokens, Tab, type TabProps, TableOfContents, type TableOfContentsProps, Tabs, TabsColors, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTokens, type TabsVariant, Text, TextField, type TextFieldHandle, type TextFieldInputType, type TextFieldProps, type TextFieldTrailingIconMode, type TextFieldVariant, type TextProps, type TextStyle, type ThemeMode, type TitleAlignment, type ToCItem, ToggleFAB, type ToggleFABProps, TooltipBox, type TooltipBoxProps, TooltipCaretShape, type TooltipPlacement, type TooltipState, type TooltipStateConfig, TooltipTokens, type TooltipTrigger, TriStateCheckbox, type TriStateCheckboxProps, TypeScaleTokens, type TypeScaleTokensType, Typography, TypographyContext, TypographyKeyTokens, TypographyProvider, type TypographyProviderProps, TypographyTokens, type UseAppBarScrollReturn, type UseRippleStateOptions, type UseSnackbarStateReturn, VIBRANT_COLORS, VerticalMenu, VerticalMenuContent, type VerticalMenuContentProps, VerticalMenuDivider, type VerticalMenuDividerProps, VerticalMenuGroup, type VerticalMenuGroupProps, type VerticalMenuProps, type VerticalMenuSeparatorStyle, appBarTypography, applyTheme, buildWavePath, cn, generateM3Theme, resolveMode, useAppBarScroll, useRipple$1 as useDOMRipple, useMediaQuery, useMenuContext, useRipple, useRippleState, useSearchKeyboard, useSnackbar, useSnackbarState, useTheme, useThemeMode, useTooltipPosition, useTooltipState, useTypography };
|
package/dist/index.d.ts
CHANGED
|
@@ -92,7 +92,13 @@ interface MaterialSymbolsPreconnectProps {
|
|
|
92
92
|
}
|
|
93
93
|
declare function MaterialSymbolsPreconnect({ variants, }: MaterialSymbolsPreconnectProps): react_jsx_runtime.JSX.Element;
|
|
94
94
|
|
|
95
|
-
type ThemeMode = "light" | "dark";
|
|
95
|
+
type ThemeMode = "light" | "dark" | "system";
|
|
96
|
+
/**
|
|
97
|
+
* Resolves the effective color scheme from a ThemeMode.
|
|
98
|
+
* When mode is "system", reads the OS preference via matchMedia.
|
|
99
|
+
* Returns "light" as the safe default in SSR environments.
|
|
100
|
+
*/
|
|
101
|
+
declare function resolveMode(mode: ThemeMode): "light" | "dark";
|
|
96
102
|
interface MD3ColorScheme {
|
|
97
103
|
primary: string;
|
|
98
104
|
onPrimary: string;
|
|
@@ -146,7 +152,7 @@ interface MD3ColorScheme {
|
|
|
146
152
|
* Generate a complete MD3 color scheme from a source color hex string.
|
|
147
153
|
* Uses the HCT color space algorithm — same as Material You on Android.
|
|
148
154
|
*/
|
|
149
|
-
declare function generateM3Theme(sourceColorHex: string, mode?:
|
|
155
|
+
declare function generateM3Theme(sourceColorHex: string, mode?: "light" | "dark"): MD3ColorScheme;
|
|
150
156
|
/**
|
|
151
157
|
* Apply an MD3 dynamic color scheme to the document root as CSS custom properties.
|
|
152
158
|
* Sets both `--md-sys-color-*` tokens (used by components) and
|
|
@@ -3186,7 +3192,55 @@ declare const VerticalMenuContent: React$1.ForwardRefExoticComponent<VerticalMen
|
|
|
3186
3192
|
*/
|
|
3187
3193
|
declare const VerticalMenu: React$1.ForwardRefExoticComponent<VerticalMenuProps & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
3188
3194
|
|
|
3189
|
-
|
|
3195
|
+
/**
|
|
3196
|
+
* Layout styling for navigation bar items.
|
|
3197
|
+
* - vertical: Icon above label (default for mobile)
|
|
3198
|
+
* - horizontal: Icon beside label (forced)
|
|
3199
|
+
*/
|
|
3200
|
+
type NavigationBarItemLayout = "vertical" | "horizontal";
|
|
3201
|
+
/**
|
|
3202
|
+
* Visual variant of the Navigation Bar.
|
|
3203
|
+
* - flexible: Default MD3 behavior (h-16), becomes horizontal on desktop.
|
|
3204
|
+
* - baseline: Taller MD3 behavior (h-20), always vertical.
|
|
3205
|
+
* - xr: Floating orbiter variant for spatial interfaces (detached from bottom).
|
|
3206
|
+
*/
|
|
3207
|
+
type NavigationBarVariant = "flexible" | "baseline" | "xr";
|
|
3208
|
+
interface NavigationBarItemProps {
|
|
3209
|
+
selected: boolean;
|
|
3210
|
+
icon: React$1.ReactNode;
|
|
3211
|
+
label: React$1.ReactNode;
|
|
3212
|
+
onClick?: () => void;
|
|
3213
|
+
disabled?: boolean;
|
|
3214
|
+
badge?: React$1.ReactNode;
|
|
3215
|
+
"aria-label"?: string;
|
|
3216
|
+
className?: string;
|
|
3217
|
+
}
|
|
3218
|
+
interface NavigationBarProps {
|
|
3219
|
+
/** Visual variant of the Navigation Bar */
|
|
3220
|
+
variant?: NavigationBarVariant;
|
|
3221
|
+
/** Forces a specific item layout (horizontal/vertical) */
|
|
3222
|
+
itemLayout?: NavigationBarItemLayout;
|
|
3223
|
+
/** Whether the bar should hide when scrolling down */
|
|
3224
|
+
hideOnScroll?: boolean;
|
|
3225
|
+
/** Whether the bar should have an elevation shadow */
|
|
3226
|
+
elevated?: boolean;
|
|
3227
|
+
/** Whether the bar is fixed to the viewport (default) or absolute */
|
|
3228
|
+
fixed?: boolean;
|
|
3229
|
+
/** Container ref to track scrolling for hideOnScroll */
|
|
3230
|
+
scrollContainerRef?: React$1.RefObject<HTMLElement | null>;
|
|
3231
|
+
/** Transition for the active indicator pill */
|
|
3232
|
+
activeIndicatorTransition?: Transition;
|
|
3233
|
+
/** Navigation items */
|
|
3234
|
+
children: React$1.ReactNode;
|
|
3235
|
+
/** Optional additional classes */
|
|
3236
|
+
className?: string;
|
|
3237
|
+
/** Optional inline styles */
|
|
3238
|
+
style?: React$1.CSSProperties;
|
|
3239
|
+
}
|
|
3240
|
+
declare const NavigationBarItem: React$1.NamedExoticComponent<NavigationBarItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3241
|
+
declare const NavigationBar: React$1.NamedExoticComponent<NavigationBarProps & React$1.RefAttributes<HTMLElement>>;
|
|
3242
|
+
|
|
3243
|
+
type NavigationRailVariant = "collapsed" | "expanded" | "modal" | "xr";
|
|
3190
3244
|
type NavigationRailLabelVisibility = "labeled" | "auto" | "unlabeled";
|
|
3191
3245
|
interface NavigationRailItemProps {
|
|
3192
3246
|
selected: boolean;
|
|
@@ -3203,11 +3257,12 @@ interface NavigationRailProps {
|
|
|
3203
3257
|
labelVisibility?: NavigationRailLabelVisibility;
|
|
3204
3258
|
header?: React$1.ReactNode;
|
|
3205
3259
|
fab?: React$1.ReactNode;
|
|
3260
|
+
fabPlacement?: "contained" | "spatialized";
|
|
3206
3261
|
footer?: React$1.ReactNode;
|
|
3207
3262
|
narrow?: boolean;
|
|
3208
3263
|
open?: boolean;
|
|
3209
|
-
xr?: boolean | "contained" | "spatialized";
|
|
3210
3264
|
onClose?: () => void;
|
|
3265
|
+
activeIndicatorTransition?: Transition;
|
|
3211
3266
|
children: React$1.ReactNode;
|
|
3212
3267
|
className?: string;
|
|
3213
3268
|
style?: React$1.CSSProperties;
|
|
@@ -3639,6 +3694,8 @@ interface ScrollAreaProps extends Omit<React$1.ComponentPropsWithoutRef<typeof R
|
|
|
3639
3694
|
scrollHideDelay?: number;
|
|
3640
3695
|
/** Extra classes applied to the inner viewport element. */
|
|
3641
3696
|
viewportClassName?: string;
|
|
3697
|
+
/** Ref to the scrolling viewport element. */
|
|
3698
|
+
viewportRef?: React$1.Ref<HTMLDivElement>;
|
|
3642
3699
|
}
|
|
3643
3700
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3644
3701
|
declare const ScrollAreaScrollbar: React$1.ForwardRefExoticComponent<Omit<RadixScrollArea.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -5750,6 +5807,8 @@ interface ThemeContextValue {
|
|
|
5750
5807
|
setSourceColor: (color: string) => void;
|
|
5751
5808
|
mode: ThemeMode;
|
|
5752
5809
|
setMode: (mode: ThemeMode) => void;
|
|
5810
|
+
/** The resolved color scheme actually applied — always "light" or "dark". */
|
|
5811
|
+
effectiveMode: "light" | "dark";
|
|
5753
5812
|
}
|
|
5754
5813
|
interface MD3ThemeProviderProps {
|
|
5755
5814
|
children: ReactNode;
|
|
@@ -5787,7 +5846,7 @@ interface MD3ThemeProviderProps {
|
|
|
5787
5846
|
}
|
|
5788
5847
|
declare function MD3ThemeProvider({ children, sourceColor: initialSourceColor, defaultMode, persistToLocalStorage, typography: typographyProp, fontFamily, fontVariationAxes, enableSnackbar, }: MD3ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
5789
5848
|
declare function useTheme(): ThemeContextValue;
|
|
5790
|
-
declare function useThemeMode(): Pick<ThemeContextValue, "mode" | "setMode">;
|
|
5849
|
+
declare function useThemeMode(): Pick<ThemeContextValue, "mode" | "setMode" | "effectiveMode">;
|
|
5791
5850
|
|
|
5792
5851
|
/**
|
|
5793
5852
|
* A single entry in the Table of Contents.
|
|
@@ -6124,4 +6183,4 @@ declare const TypeScaleTokens: {
|
|
|
6124
6183
|
};
|
|
6125
6184
|
type TypeScaleTokensType = typeof TypeScaleTokens;
|
|
6126
6185
|
|
|
6127
|
-
export { APP_BAR_BOTTOM_SPRING, APP_BAR_COLORS, APP_BAR_COLOR_TRANSITION, APP_BAR_ENTER_ALWAYS_SPRING, APP_BAR_TITLE_FADE, type AppBarColors, AppBarColumn, type AppBarColumnProps, type AppBarItem, type AppBarItemType, type AppBarMenuState, AppBarOverflowIndicator, type AppBarOverflowIndicatorProps, AppBarRow, type AppBarRowProps, type AppBarScrollBehavior, AppBarTokens, Badge, type BadgeProps, BadgedBox, type BadgedBoxProps, type BaseAppBarProps, type BaseButtonProps, type BaseIconButtonProps, BottomAppBar, type BottomAppBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CHECK_ICON_VARIANTS, Card, type CardProps, type CaretConfig, Checkbox, type CheckboxProps, type CheckboxState, Chip, type ChipProps, type CircularProgressProps, CodeBlock, type CodeBlockProps, ContextMenu, ContextMenuContent, type ContextMenuContentProps, type ContextMenuProps, ContextMenuTrigger, type ContextMenuTriggerProps, DIVIDER_COLOR, DIVIDER_PADDING, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogFullScreenContent, type DialogFullScreenContentProps, DialogHeader, DialogIcon, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, DialogTrigger, Divider, type DividerProps, DockedToolbar, type DockedToolbarProps, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerProps, DrawerTitle, DrawerTrigger, FAB, FABMenu, FABMenuItem, type FABMenuItemData, type FABMenuItemProps, type FABMenuProps, FABPosition, type FABPositionProps, type FABProps, FAST_EFFECTS_TRANSITION, FAST_SPATIAL_SPRING, type FlexibleAppBarProps, GROUP_SHAPES, ITEM_SHAPE_CLASSES, Icon, IconButton, type IconButtonProps, type IconProps, LargeFlexibleAppBar, type LinearProgressProps, LoadingIndicator, type LoadingIndicatorProps, type MD3ColorScheme, type MD3ColorStyle, type MD3Shape, type MD3Size, MD3ThemeProvider, type MD3ThemeProviderProps, MD3_EXPRESSIVE_FONT_VARIATION, MENU_CHECK_ICON_SIZE, MENU_CONTAINER_VARIANTS, MENU_GROUP_GAP, MENU_ICON_SIZE, MENU_ITEM_MIN_HEIGHT, MENU_MAX_WIDTH, MENU_MIN_WIDTH, MaterialSymbolsPreconnect, MediumFlexibleAppBar, Menu, type MenuColorVariant, MenuContent, type MenuContentProps, MenuDivider, type MenuDividerProps, MenuGroup, type MenuGroupPosition, type MenuGroupProps, MenuItem, type MenuItemPosition, type MenuItemProps, type MenuPrimitive, type MenuProps, MenuProvider, MenuTrigger, type MenuTriggerProps, type MenuVariant, NavigationRail, NavigationRailItem, type NavigationRailItemProps, type NavigationRailLabelVisibility, type NavigationRailProps, type NavigationRailVariant, PlainTooltip, type PlainTooltipProps, type PolymorphicProps, type PolymorphicRef, ProgressIndicator, type ProgressIndicatorProps, RadioButton, type RadioButtonColors, type RadioButtonProps, RadioGroup, type RadioGroupProps, RangeSlider, type RangeSliderProps, RichTooltip, type RichTooltipProps, Ripple, type RippleOrigin, type RippleProps, SEARCH_BAR_EXPAND_SPRING, SEARCH_COLORS, SEARCH_DOCKED_REVEAL_SPRING, SEARCH_FULLSCREEN_SPRING, SEARCH_TYPOGRAPHY, SEARCH_VIEW_SPRING, STANDARD_COLORS, SUBMENU_CONTAINER_VARIANTS, ScrollArea, type ScrollAreaOrientation, type ScrollAreaProps, ScrollAreaScrollbar, type ScrollAreaType, Search, SearchAppBar, type SearchAppBarProps, SearchBar, type SearchBarVariant, type SearchProps, type SearchStyleType, SearchTokens, type SearchVariant, SearchView, SearchViewContainer, SearchViewDocked, SearchViewFullScreen, type SearchViewProps, Slider, SliderColors, type SliderOrientation, type SliderProps, SliderTokens, type SliderTrackSize, type SliderVariant, SmallAppBar, type SmallAppBarProps, Snackbar, type SnackbarData, type SnackbarDuration, SnackbarHost, type SnackbarHostProps, type SnackbarProps, SnackbarProvider, type SnackbarResult, type SnackbarVisuals, SubMenu, type SubMenuProps, Switch, SwitchColors, type SwitchProps, SwitchTokens, Tab, type TabProps, TableOfContents, type TableOfContentsProps, Tabs, TabsColors, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTokens, type TabsVariant, Text, TextField, type TextFieldHandle, type TextFieldInputType, type TextFieldProps, type TextFieldTrailingIconMode, type TextFieldVariant, type TextProps, type TextStyle, type ThemeMode, type TitleAlignment, type ToCItem, ToggleFAB, type ToggleFABProps, TooltipBox, type TooltipBoxProps, TooltipCaretShape, type TooltipPlacement, type TooltipState, type TooltipStateConfig, TooltipTokens, type TooltipTrigger, TriStateCheckbox, type TriStateCheckboxProps, TypeScaleTokens, type TypeScaleTokensType, Typography, TypographyContext, TypographyKeyTokens, TypographyProvider, type TypographyProviderProps, TypographyTokens, type UseAppBarScrollReturn, type UseRippleStateOptions, type UseSnackbarStateReturn, VIBRANT_COLORS, VerticalMenu, VerticalMenuContent, type VerticalMenuContentProps, VerticalMenuDivider, type VerticalMenuDividerProps, VerticalMenuGroup, type VerticalMenuGroupProps, type VerticalMenuProps, type VerticalMenuSeparatorStyle, appBarTypography, applyTheme, buildWavePath, cn, generateM3Theme, useAppBarScroll, useRipple$1 as useDOMRipple, useMediaQuery, useMenuContext, useRipple, useRippleState, useSearchKeyboard, useSnackbar, useSnackbarState, useTheme, useThemeMode, useTooltipPosition, useTooltipState, useTypography };
|
|
6186
|
+
export { APP_BAR_BOTTOM_SPRING, APP_BAR_COLORS, APP_BAR_COLOR_TRANSITION, APP_BAR_ENTER_ALWAYS_SPRING, APP_BAR_TITLE_FADE, type AppBarColors, AppBarColumn, type AppBarColumnProps, type AppBarItem, type AppBarItemType, type AppBarMenuState, AppBarOverflowIndicator, type AppBarOverflowIndicatorProps, AppBarRow, type AppBarRowProps, type AppBarScrollBehavior, AppBarTokens, Badge, type BadgeProps, BadgedBox, type BadgedBoxProps, type BaseAppBarProps, type BaseButtonProps, type BaseIconButtonProps, BottomAppBar, type BottomAppBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CHECK_ICON_VARIANTS, Card, type CardProps, type CaretConfig, Checkbox, type CheckboxProps, type CheckboxState, Chip, type ChipProps, type CircularProgressProps, CodeBlock, type CodeBlockProps, ContextMenu, ContextMenuContent, type ContextMenuContentProps, type ContextMenuProps, ContextMenuTrigger, type ContextMenuTriggerProps, DIVIDER_COLOR, DIVIDER_PADDING, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogFullScreenContent, type DialogFullScreenContentProps, DialogHeader, DialogIcon, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, DialogTrigger, Divider, type DividerProps, DockedToolbar, type DockedToolbarProps, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerProps, DrawerTitle, DrawerTrigger, FAB, FABMenu, FABMenuItem, type FABMenuItemData, type FABMenuItemProps, type FABMenuProps, FABPosition, type FABPositionProps, type FABProps, FAST_EFFECTS_TRANSITION, FAST_SPATIAL_SPRING, type FlexibleAppBarProps, GROUP_SHAPES, ITEM_SHAPE_CLASSES, Icon, IconButton, type IconButtonProps, type IconProps, LargeFlexibleAppBar, type LinearProgressProps, LoadingIndicator, type LoadingIndicatorProps, type MD3ColorScheme, type MD3ColorStyle, type MD3Shape, type MD3Size, MD3ThemeProvider, type MD3ThemeProviderProps, MD3_EXPRESSIVE_FONT_VARIATION, MENU_CHECK_ICON_SIZE, MENU_CONTAINER_VARIANTS, MENU_GROUP_GAP, MENU_ICON_SIZE, MENU_ITEM_MIN_HEIGHT, MENU_MAX_WIDTH, MENU_MIN_WIDTH, MaterialSymbolsPreconnect, MediumFlexibleAppBar, Menu, type MenuColorVariant, MenuContent, type MenuContentProps, MenuDivider, type MenuDividerProps, MenuGroup, type MenuGroupPosition, type MenuGroupProps, MenuItem, type MenuItemPosition, type MenuItemProps, type MenuPrimitive, type MenuProps, MenuProvider, MenuTrigger, type MenuTriggerProps, type MenuVariant, NavigationBar, NavigationBarItem, type NavigationBarItemLayout, type NavigationBarItemProps, type NavigationBarProps, type NavigationBarVariant, NavigationRail, NavigationRailItem, type NavigationRailItemProps, type NavigationRailLabelVisibility, type NavigationRailProps, type NavigationRailVariant, PlainTooltip, type PlainTooltipProps, type PolymorphicProps, type PolymorphicRef, ProgressIndicator, type ProgressIndicatorProps, RadioButton, type RadioButtonColors, type RadioButtonProps, RadioGroup, type RadioGroupProps, RangeSlider, type RangeSliderProps, RichTooltip, type RichTooltipProps, Ripple, type RippleOrigin, type RippleProps, SEARCH_BAR_EXPAND_SPRING, SEARCH_COLORS, SEARCH_DOCKED_REVEAL_SPRING, SEARCH_FULLSCREEN_SPRING, SEARCH_TYPOGRAPHY, SEARCH_VIEW_SPRING, STANDARD_COLORS, SUBMENU_CONTAINER_VARIANTS, ScrollArea, type ScrollAreaOrientation, type ScrollAreaProps, ScrollAreaScrollbar, type ScrollAreaType, Search, SearchAppBar, type SearchAppBarProps, SearchBar, type SearchBarVariant, type SearchProps, type SearchStyleType, SearchTokens, type SearchVariant, SearchView, SearchViewContainer, SearchViewDocked, SearchViewFullScreen, type SearchViewProps, Slider, SliderColors, type SliderOrientation, type SliderProps, SliderTokens, type SliderTrackSize, type SliderVariant, SmallAppBar, type SmallAppBarProps, Snackbar, type SnackbarData, type SnackbarDuration, SnackbarHost, type SnackbarHostProps, type SnackbarProps, SnackbarProvider, type SnackbarResult, type SnackbarVisuals, SubMenu, type SubMenuProps, Switch, SwitchColors, type SwitchProps, SwitchTokens, Tab, type TabProps, TableOfContents, type TableOfContentsProps, Tabs, TabsColors, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTokens, type TabsVariant, Text, TextField, type TextFieldHandle, type TextFieldInputType, type TextFieldProps, type TextFieldTrailingIconMode, type TextFieldVariant, type TextProps, type TextStyle, type ThemeMode, type TitleAlignment, type ToCItem, ToggleFAB, type ToggleFABProps, TooltipBox, type TooltipBoxProps, TooltipCaretShape, type TooltipPlacement, type TooltipState, type TooltipStateConfig, TooltipTokens, type TooltipTrigger, TriStateCheckbox, type TriStateCheckboxProps, TypeScaleTokens, type TypeScaleTokensType, Typography, TypographyContext, TypographyKeyTokens, TypographyProvider, type TypographyProviderProps, TypographyTokens, type UseAppBarScrollReturn, type UseRippleStateOptions, type UseSnackbarStateReturn, VIBRANT_COLORS, VerticalMenu, VerticalMenuContent, type VerticalMenuContentProps, VerticalMenuDivider, type VerticalMenuDividerProps, VerticalMenuGroup, type VerticalMenuGroupProps, type VerticalMenuProps, type VerticalMenuSeparatorStyle, appBarTypography, applyTheme, buildWavePath, cn, generateM3Theme, resolveMode, useAppBarScroll, useRipple$1 as useDOMRipple, useMediaQuery, useMenuContext, useRipple, useRippleState, useSearchKeyboard, useSnackbar, useSnackbarState, useTheme, useThemeMode, useTooltipPosition, useTooltipState, useTypography };
|