@bug-on/m3-expressive 1.0.0 → 1.2.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/CHANGELOG.md +41 -2
- package/README.md +20 -18
- package/dist/assets/material-symbols-self-hosted.css +27 -26
- package/dist/buttons.d.mts +2 -2
- package/dist/buttons.d.ts +2 -2
- package/dist/buttons.js +30 -1
- package/dist/buttons.js.map +1 -1
- package/dist/buttons.mjs +30 -1
- package/dist/buttons.mjs.map +1 -1
- package/dist/core-Bc5Wj_pc.d.ts +497 -0
- package/dist/core-D4048_K5.d.mts +497 -0
- package/dist/core.d.mts +6 -422
- package/dist/core.d.ts +6 -422
- package/dist/core.js +137 -68
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +138 -69
- package/dist/core.mjs.map +1 -1
- package/dist/feedback.d.mts +54 -54
- package/dist/feedback.d.ts +54 -54
- package/dist/feedback.js.map +1 -1
- package/dist/feedback.mjs.map +1 -1
- package/dist/index.css +9 -1
- package/dist/index.d.mts +66 -4
- package/dist/index.d.ts +66 -4
- package/dist/index.js +214 -94
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +214 -95
- package/dist/index.mjs.map +1 -1
- package/dist/layout.d.mts +40 -40
- package/dist/layout.d.ts +40 -40
- package/dist/layout.js +34 -5
- package/dist/layout.js.map +1 -1
- package/dist/layout.mjs +34 -5
- package/dist/layout.mjs.map +1 -1
- package/dist/material-symbols-self-hosted.css +27 -26
- package/dist/{md3-DFhj-NZj.d.mts → md3-Dty-Qcad.d.mts} +7 -1
- package/dist/{md3-DFhj-NZj.d.ts → md3-Dty-Qcad.d.ts} +7 -1
- package/dist/navigation.js.map +1 -1
- package/dist/navigation.mjs.map +1 -1
- package/dist/overlays.d.mts +2 -2
- package/dist/overlays.d.ts +2 -2
- package/dist/overlays.js +2 -2
- package/dist/overlays.js.map +1 -1
- package/dist/overlays.mjs +2 -2
- package/dist/overlays.mjs.map +1 -1
- package/dist/pickers.d.mts +241 -243
- package/dist/pickers.d.ts +241 -243
- package/dist/pickers.js +1 -1
- package/dist/pickers.js.map +1 -1
- package/dist/pickers.mjs +1 -1
- package/dist/pickers.mjs.map +1 -1
- package/dist/{side-sheet-modal-BY6VCC8p.d.mts → side-sheet-modal-64FGhDxL.d.mts} +20 -21
- package/dist/{side-sheet-modal-CglP6KYA.d.ts → side-sheet-modal-Bd5Qqvp9.d.ts} +20 -21
- package/dist/{split-button-trailing-uncheckable-C5CLCIKP.d.ts → split-button-trailing-uncheckable-BkPbiBo3.d.ts} +169 -152
- package/dist/{split-button-trailing-uncheckable-MXj_kyNt.d.mts → split-button-trailing-uncheckable-D_PLPb-u.d.mts} +169 -152
- package/dist/typography.css +5 -0
- package/package.json +5 -5
package/dist/feedback.d.mts
CHANGED
|
@@ -145,9 +145,9 @@ declare const LoadingIndicator: React$1.ForwardRefExoticComponent<LoadingIndicat
|
|
|
145
145
|
|
|
146
146
|
interface ProgressBaseProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
148
|
+
* Current progress percentage value (between 0 and 100).
|
|
149
|
+
* If provided, the indicator will display in Determinate state.
|
|
150
|
+
* If omitted (undefined), the indicator defaults to Indeterminate state.
|
|
151
151
|
*
|
|
152
152
|
* @example
|
|
153
153
|
* ```tsx
|
|
@@ -156,85 +156,85 @@ interface ProgressBaseProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>,
|
|
|
156
156
|
*/
|
|
157
157
|
value?: number;
|
|
158
158
|
/**
|
|
159
|
-
*
|
|
159
|
+
* Accessible label describing the purpose of the progress indicator for screen readers (required).
|
|
160
160
|
*/
|
|
161
161
|
"aria-label": string;
|
|
162
162
|
/**
|
|
163
|
-
*
|
|
164
|
-
* -
|
|
165
|
-
* -
|
|
163
|
+
* Track thickness of the progress indicator (in px).
|
|
164
|
+
* - For Linear: height of the progress bar.
|
|
165
|
+
* - For Circular: stroke thickness of the circle outline.
|
|
166
166
|
*
|
|
167
167
|
* @example
|
|
168
|
-
* trackHeight={8} //
|
|
168
|
+
* trackHeight={8} // Thicker than default
|
|
169
169
|
*/
|
|
170
170
|
trackHeight?: number;
|
|
171
171
|
/**
|
|
172
|
-
*
|
|
173
|
-
*
|
|
172
|
+
* Color of the active progress indicator.
|
|
173
|
+
* Defaults to `currentColor` of the parent element for easy styling via utility classes.
|
|
174
174
|
*
|
|
175
175
|
* @example
|
|
176
|
-
* color="var(--md-sys-color-primary)" //
|
|
176
|
+
* color="var(--md-sys-color-primary)" // Custom design token
|
|
177
177
|
*/
|
|
178
178
|
color?: string;
|
|
179
179
|
/**
|
|
180
|
-
*
|
|
181
|
-
*
|
|
180
|
+
* Color of the track (inactive background portion).
|
|
181
|
+
* Defaults to a surface-calculated tone or subtle opacity.
|
|
182
182
|
*/
|
|
183
183
|
trackColor?: string;
|
|
184
184
|
}
|
|
185
185
|
interface LinearProgressProps extends ProgressBaseProps {
|
|
186
|
-
/**
|
|
186
|
+
/** Variant classification for Linear progress bar layout. */
|
|
187
187
|
variant: "linear";
|
|
188
188
|
/**
|
|
189
|
-
*
|
|
190
|
-
* - `flat`:
|
|
191
|
-
* - `wavy`:
|
|
189
|
+
* Shape profile of the active indicator.
|
|
190
|
+
* - `flat`: Smooth solid line (default)
|
|
191
|
+
* - `wavy`: Dynamic animated wave line
|
|
192
192
|
*/
|
|
193
193
|
shape?: "flat" | "wavy";
|
|
194
194
|
/**
|
|
195
|
-
*
|
|
196
|
-
* - `flat`:
|
|
197
|
-
* - `wavy`:
|
|
195
|
+
* Shape profile of the background track.
|
|
196
|
+
* - `flat`: Smooth solid line (default)
|
|
197
|
+
* - `wavy`: Static or dynamic wave line
|
|
198
198
|
*/
|
|
199
199
|
trackShape?: "flat" | "wavy";
|
|
200
200
|
/**
|
|
201
|
-
*
|
|
202
|
-
*
|
|
201
|
+
* Wave amplitude (applies when `shape` or `trackShape` is "wavy").
|
|
202
|
+
* Specifies the height offset of the wave ripples.
|
|
203
203
|
*/
|
|
204
204
|
amplitude?: number;
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
207
|
-
*
|
|
206
|
+
* Wavelength of a single wave cycle (applies when `shape` is "wavy" in determinate mode).
|
|
207
|
+
* Distance between adjacent crests.
|
|
208
208
|
*/
|
|
209
209
|
wavelength?: number;
|
|
210
210
|
/**
|
|
211
|
-
*
|
|
211
|
+
* Wavelength reserved for continuous animation in Indeterminate Wavy mode.
|
|
212
212
|
*/
|
|
213
213
|
indeterminateWavelength?: number;
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
216
|
-
*
|
|
215
|
+
* Gap size between active indicator segments and background track.
|
|
216
|
+
* Can be set to `0` for seamless continuous touching lines.
|
|
217
217
|
*
|
|
218
218
|
* @example
|
|
219
219
|
* ```tsx
|
|
220
|
-
* <ProgressIndicator variant="linear" shape="wavy" gapSize={0} /> //
|
|
220
|
+
* <ProgressIndicator variant="linear" shape="wavy" gapSize={0} /> // Seamless wave
|
|
221
221
|
* ```
|
|
222
222
|
*/
|
|
223
223
|
gapSize?: number;
|
|
224
224
|
/**
|
|
225
|
-
*
|
|
226
|
-
*
|
|
225
|
+
* Wave oscillation speed multiplier. Defaults to `1`.
|
|
226
|
+
* Increase value (e.g. 1.5, 2) for faster wave movement.
|
|
227
227
|
*/
|
|
228
228
|
waveSpeed?: number;
|
|
229
229
|
/**
|
|
230
|
-
*
|
|
231
|
-
*
|
|
230
|
+
* Crawler speed multiplier along the track for Indeterminate mode.
|
|
231
|
+
* Defaults to `1`.
|
|
232
232
|
*/
|
|
233
233
|
crawlerSpeed?: number;
|
|
234
234
|
/**
|
|
235
|
-
*
|
|
236
|
-
* - `md3`:
|
|
237
|
-
* - `continuous`:
|
|
235
|
+
* Configuration for wave damping near edge thresholds (<= 10% or >= 90%).
|
|
236
|
+
* - `md3`: Smoothly flattens wave amplitude to zero near edges (Google MD3 standard).
|
|
237
|
+
* - `continuous`: Ignores damping, preserving wave motion across all percentages.
|
|
238
238
|
*
|
|
239
239
|
* @example
|
|
240
240
|
* ```tsx
|
|
@@ -243,9 +243,9 @@ interface LinearProgressProps extends ProgressBaseProps {
|
|
|
243
243
|
*/
|
|
244
244
|
determinateAnimation?: "md3" | "continuous";
|
|
245
245
|
/**
|
|
246
|
-
*
|
|
247
|
-
* - `md3`:
|
|
248
|
-
* - `continuous`:
|
|
246
|
+
* Physics movement style for Indeterminate Linear mode.
|
|
247
|
+
* - `md3`: Renders two sliding & stretching physics-simulated lines (Google MD3 standard).
|
|
248
|
+
* - `continuous`: Renders a continuous smooth looping bar.
|
|
249
249
|
*
|
|
250
250
|
* @example
|
|
251
251
|
* ```tsx
|
|
@@ -254,18 +254,18 @@ interface LinearProgressProps extends ProgressBaseProps {
|
|
|
254
254
|
*/
|
|
255
255
|
indeterminateAnimation?: "md3" | "continuous";
|
|
256
256
|
/**
|
|
257
|
-
*
|
|
258
|
-
* - `true`:
|
|
259
|
-
* - `false`:
|
|
260
|
-
* - `"auto"`:
|
|
257
|
+
* Toggle stop indicator dot at the end of the track.
|
|
258
|
+
* - `true`: Always displays a tiny stop indicator dot at the end of the path
|
|
259
|
+
* - `false`: Completely disabled
|
|
260
|
+
* - `"auto"`: Stop dot appears and fades in only when progress reaches 100%
|
|
261
261
|
*/
|
|
262
262
|
showStopIndicator?: boolean | "auto";
|
|
263
263
|
}
|
|
264
264
|
interface CircularProgressProps extends ProgressBaseProps {
|
|
265
|
-
/**
|
|
265
|
+
/** Variant classification for Circular progress indicator. */
|
|
266
266
|
variant: "circular";
|
|
267
267
|
/**
|
|
268
|
-
*
|
|
268
|
+
* Display diameter of the circular progress ring in px.
|
|
269
269
|
*
|
|
270
270
|
* @example
|
|
271
271
|
* ```tsx
|
|
@@ -274,30 +274,30 @@ interface CircularProgressProps extends ProgressBaseProps {
|
|
|
274
274
|
*/
|
|
275
275
|
size?: number;
|
|
276
276
|
/**
|
|
277
|
-
*
|
|
278
|
-
* - `flat`:
|
|
279
|
-
* - `wavy`:
|
|
277
|
+
* Stroke style profile of the ring outline.
|
|
278
|
+
* - `flat`: Solid line with rounded caps.
|
|
279
|
+
* - `wavy`: Oscillating wavy line pattern.
|
|
280
280
|
*/
|
|
281
281
|
shape?: "flat" | "wavy";
|
|
282
282
|
/**
|
|
283
|
-
*
|
|
283
|
+
* Wave amplitude profile for `wavy` circular indicators.
|
|
284
284
|
*/
|
|
285
285
|
amplitude?: number;
|
|
286
|
-
/**
|
|
286
|
+
/** Wavelength cycle total around the circumference. */
|
|
287
287
|
wavelength?: number;
|
|
288
|
-
/**
|
|
288
|
+
/** Gap distance separating line ends. */
|
|
289
289
|
gapSize?: number;
|
|
290
290
|
/**
|
|
291
|
-
*
|
|
291
|
+
* Speed multiplier for Indeterminate circular crawler rotation.
|
|
292
292
|
*/
|
|
293
293
|
crawlerSpeed?: number;
|
|
294
294
|
}
|
|
295
295
|
type ProgressIndicatorProps = LinearProgressProps | CircularProgressProps;
|
|
296
296
|
|
|
297
297
|
/**
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
298
|
+
* Progress Indicator component based on Material Design 3 Expressive guidelines.
|
|
299
|
+
* Flexible support for 2 presentation variants: Linear and Circular,
|
|
300
|
+
* with smooth dynamic Wavy shape profiles.
|
|
301
301
|
*
|
|
302
302
|
* @example
|
|
303
303
|
* ```tsx
|
package/dist/feedback.d.ts
CHANGED
|
@@ -145,9 +145,9 @@ declare const LoadingIndicator: React$1.ForwardRefExoticComponent<LoadingIndicat
|
|
|
145
145
|
|
|
146
146
|
interface ProgressBaseProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
148
|
+
* Current progress percentage value (between 0 and 100).
|
|
149
|
+
* If provided, the indicator will display in Determinate state.
|
|
150
|
+
* If omitted (undefined), the indicator defaults to Indeterminate state.
|
|
151
151
|
*
|
|
152
152
|
* @example
|
|
153
153
|
* ```tsx
|
|
@@ -156,85 +156,85 @@ interface ProgressBaseProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>,
|
|
|
156
156
|
*/
|
|
157
157
|
value?: number;
|
|
158
158
|
/**
|
|
159
|
-
*
|
|
159
|
+
* Accessible label describing the purpose of the progress indicator for screen readers (required).
|
|
160
160
|
*/
|
|
161
161
|
"aria-label": string;
|
|
162
162
|
/**
|
|
163
|
-
*
|
|
164
|
-
* -
|
|
165
|
-
* -
|
|
163
|
+
* Track thickness of the progress indicator (in px).
|
|
164
|
+
* - For Linear: height of the progress bar.
|
|
165
|
+
* - For Circular: stroke thickness of the circle outline.
|
|
166
166
|
*
|
|
167
167
|
* @example
|
|
168
|
-
* trackHeight={8} //
|
|
168
|
+
* trackHeight={8} // Thicker than default
|
|
169
169
|
*/
|
|
170
170
|
trackHeight?: number;
|
|
171
171
|
/**
|
|
172
|
-
*
|
|
173
|
-
*
|
|
172
|
+
* Color of the active progress indicator.
|
|
173
|
+
* Defaults to `currentColor` of the parent element for easy styling via utility classes.
|
|
174
174
|
*
|
|
175
175
|
* @example
|
|
176
|
-
* color="var(--md-sys-color-primary)" //
|
|
176
|
+
* color="var(--md-sys-color-primary)" // Custom design token
|
|
177
177
|
*/
|
|
178
178
|
color?: string;
|
|
179
179
|
/**
|
|
180
|
-
*
|
|
181
|
-
*
|
|
180
|
+
* Color of the track (inactive background portion).
|
|
181
|
+
* Defaults to a surface-calculated tone or subtle opacity.
|
|
182
182
|
*/
|
|
183
183
|
trackColor?: string;
|
|
184
184
|
}
|
|
185
185
|
interface LinearProgressProps extends ProgressBaseProps {
|
|
186
|
-
/**
|
|
186
|
+
/** Variant classification for Linear progress bar layout. */
|
|
187
187
|
variant: "linear";
|
|
188
188
|
/**
|
|
189
|
-
*
|
|
190
|
-
* - `flat`:
|
|
191
|
-
* - `wavy`:
|
|
189
|
+
* Shape profile of the active indicator.
|
|
190
|
+
* - `flat`: Smooth solid line (default)
|
|
191
|
+
* - `wavy`: Dynamic animated wave line
|
|
192
192
|
*/
|
|
193
193
|
shape?: "flat" | "wavy";
|
|
194
194
|
/**
|
|
195
|
-
*
|
|
196
|
-
* - `flat`:
|
|
197
|
-
* - `wavy`:
|
|
195
|
+
* Shape profile of the background track.
|
|
196
|
+
* - `flat`: Smooth solid line (default)
|
|
197
|
+
* - `wavy`: Static or dynamic wave line
|
|
198
198
|
*/
|
|
199
199
|
trackShape?: "flat" | "wavy";
|
|
200
200
|
/**
|
|
201
|
-
*
|
|
202
|
-
*
|
|
201
|
+
* Wave amplitude (applies when `shape` or `trackShape` is "wavy").
|
|
202
|
+
* Specifies the height offset of the wave ripples.
|
|
203
203
|
*/
|
|
204
204
|
amplitude?: number;
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
207
|
-
*
|
|
206
|
+
* Wavelength of a single wave cycle (applies when `shape` is "wavy" in determinate mode).
|
|
207
|
+
* Distance between adjacent crests.
|
|
208
208
|
*/
|
|
209
209
|
wavelength?: number;
|
|
210
210
|
/**
|
|
211
|
-
*
|
|
211
|
+
* Wavelength reserved for continuous animation in Indeterminate Wavy mode.
|
|
212
212
|
*/
|
|
213
213
|
indeterminateWavelength?: number;
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
216
|
-
*
|
|
215
|
+
* Gap size between active indicator segments and background track.
|
|
216
|
+
* Can be set to `0` for seamless continuous touching lines.
|
|
217
217
|
*
|
|
218
218
|
* @example
|
|
219
219
|
* ```tsx
|
|
220
|
-
* <ProgressIndicator variant="linear" shape="wavy" gapSize={0} /> //
|
|
220
|
+
* <ProgressIndicator variant="linear" shape="wavy" gapSize={0} /> // Seamless wave
|
|
221
221
|
* ```
|
|
222
222
|
*/
|
|
223
223
|
gapSize?: number;
|
|
224
224
|
/**
|
|
225
|
-
*
|
|
226
|
-
*
|
|
225
|
+
* Wave oscillation speed multiplier. Defaults to `1`.
|
|
226
|
+
* Increase value (e.g. 1.5, 2) for faster wave movement.
|
|
227
227
|
*/
|
|
228
228
|
waveSpeed?: number;
|
|
229
229
|
/**
|
|
230
|
-
*
|
|
231
|
-
*
|
|
230
|
+
* Crawler speed multiplier along the track for Indeterminate mode.
|
|
231
|
+
* Defaults to `1`.
|
|
232
232
|
*/
|
|
233
233
|
crawlerSpeed?: number;
|
|
234
234
|
/**
|
|
235
|
-
*
|
|
236
|
-
* - `md3`:
|
|
237
|
-
* - `continuous`:
|
|
235
|
+
* Configuration for wave damping near edge thresholds (<= 10% or >= 90%).
|
|
236
|
+
* - `md3`: Smoothly flattens wave amplitude to zero near edges (Google MD3 standard).
|
|
237
|
+
* - `continuous`: Ignores damping, preserving wave motion across all percentages.
|
|
238
238
|
*
|
|
239
239
|
* @example
|
|
240
240
|
* ```tsx
|
|
@@ -243,9 +243,9 @@ interface LinearProgressProps extends ProgressBaseProps {
|
|
|
243
243
|
*/
|
|
244
244
|
determinateAnimation?: "md3" | "continuous";
|
|
245
245
|
/**
|
|
246
|
-
*
|
|
247
|
-
* - `md3`:
|
|
248
|
-
* - `continuous`:
|
|
246
|
+
* Physics movement style for Indeterminate Linear mode.
|
|
247
|
+
* - `md3`: Renders two sliding & stretching physics-simulated lines (Google MD3 standard).
|
|
248
|
+
* - `continuous`: Renders a continuous smooth looping bar.
|
|
249
249
|
*
|
|
250
250
|
* @example
|
|
251
251
|
* ```tsx
|
|
@@ -254,18 +254,18 @@ interface LinearProgressProps extends ProgressBaseProps {
|
|
|
254
254
|
*/
|
|
255
255
|
indeterminateAnimation?: "md3" | "continuous";
|
|
256
256
|
/**
|
|
257
|
-
*
|
|
258
|
-
* - `true`:
|
|
259
|
-
* - `false`:
|
|
260
|
-
* - `"auto"`:
|
|
257
|
+
* Toggle stop indicator dot at the end of the track.
|
|
258
|
+
* - `true`: Always displays a tiny stop indicator dot at the end of the path
|
|
259
|
+
* - `false`: Completely disabled
|
|
260
|
+
* - `"auto"`: Stop dot appears and fades in only when progress reaches 100%
|
|
261
261
|
*/
|
|
262
262
|
showStopIndicator?: boolean | "auto";
|
|
263
263
|
}
|
|
264
264
|
interface CircularProgressProps extends ProgressBaseProps {
|
|
265
|
-
/**
|
|
265
|
+
/** Variant classification for Circular progress indicator. */
|
|
266
266
|
variant: "circular";
|
|
267
267
|
/**
|
|
268
|
-
*
|
|
268
|
+
* Display diameter of the circular progress ring in px.
|
|
269
269
|
*
|
|
270
270
|
* @example
|
|
271
271
|
* ```tsx
|
|
@@ -274,30 +274,30 @@ interface CircularProgressProps extends ProgressBaseProps {
|
|
|
274
274
|
*/
|
|
275
275
|
size?: number;
|
|
276
276
|
/**
|
|
277
|
-
*
|
|
278
|
-
* - `flat`:
|
|
279
|
-
* - `wavy`:
|
|
277
|
+
* Stroke style profile of the ring outline.
|
|
278
|
+
* - `flat`: Solid line with rounded caps.
|
|
279
|
+
* - `wavy`: Oscillating wavy line pattern.
|
|
280
280
|
*/
|
|
281
281
|
shape?: "flat" | "wavy";
|
|
282
282
|
/**
|
|
283
|
-
*
|
|
283
|
+
* Wave amplitude profile for `wavy` circular indicators.
|
|
284
284
|
*/
|
|
285
285
|
amplitude?: number;
|
|
286
|
-
/**
|
|
286
|
+
/** Wavelength cycle total around the circumference. */
|
|
287
287
|
wavelength?: number;
|
|
288
|
-
/**
|
|
288
|
+
/** Gap distance separating line ends. */
|
|
289
289
|
gapSize?: number;
|
|
290
290
|
/**
|
|
291
|
-
*
|
|
291
|
+
* Speed multiplier for Indeterminate circular crawler rotation.
|
|
292
292
|
*/
|
|
293
293
|
crawlerSpeed?: number;
|
|
294
294
|
}
|
|
295
295
|
type ProgressIndicatorProps = LinearProgressProps | CircularProgressProps;
|
|
296
296
|
|
|
297
297
|
/**
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
298
|
+
* Progress Indicator component based on Material Design 3 Expressive guidelines.
|
|
299
|
+
* Flexible support for 2 presentation variants: Linear and Circular,
|
|
300
|
+
* with smooth dynamic Wavy shape profiles.
|
|
301
301
|
*
|
|
302
302
|
* @example
|
|
303
303
|
* ```tsx
|