@bug-on/m3-expressive 1.1.0 → 1.2.1
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 +18 -0
- package/dist/buttons.d.mts +3 -3
- package/dist/buttons.d.ts +3 -3
- package/dist/buttons.js +708 -606
- package/dist/buttons.js.map +1 -1
- package/dist/buttons.mjs +707 -605
- 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 +223 -129
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +224 -130
- package/dist/core.mjs.map +1 -1
- package/dist/feedback.js +85 -61
- package/dist/feedback.js.map +1 -1
- package/dist/feedback.mjs +85 -61
- package/dist/feedback.mjs.map +1 -1
- package/dist/forms.d.mts +2 -2
- package/dist/forms.d.ts +2 -2
- package/dist/forms.js +70 -8
- package/dist/forms.js.map +1 -1
- package/dist/forms.mjs +70 -8
- package/dist/forms.mjs.map +1 -1
- package/dist/{icon-button-D-gs0gfj.d.mts → icon-button-sSt6PPLg.d.mts} +6 -0
- package/dist/{icon-button-D-gs0gfj.d.ts → icon-button-sSt6PPLg.d.ts} +6 -0
- package/dist/index.css +6 -1
- package/dist/index.d.mts +68 -6
- package/dist/index.d.ts +68 -6
- package/dist/index.js +1177 -580
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1172 -583
- package/dist/index.mjs.map +1 -1
- package/dist/layout.d.mts +18 -1
- package/dist/layout.d.ts +18 -1
- package/dist/layout.js +94 -8
- package/dist/layout.js.map +1 -1
- package/dist/layout.mjs +94 -8
- package/dist/layout.mjs.map +1 -1
- 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.d.mts +134 -9
- package/dist/navigation.d.ts +134 -9
- package/dist/navigation.js +403 -93
- package/dist/navigation.js.map +1 -1
- package/dist/navigation.mjs +397 -94
- package/dist/navigation.mjs.map +1 -1
- package/dist/overlays.js +214 -189
- package/dist/overlays.js.map +1 -1
- package/dist/overlays.mjs +176 -151
- package/dist/overlays.mjs.map +1 -1
- package/dist/pickers.js +222 -197
- package/dist/pickers.js.map +1 -1
- package/dist/pickers.mjs +189 -164
- package/dist/pickers.mjs.map +1 -1
- package/dist/{split-button-trailing-uncheckable-BRPuTqi1.d.mts → split-button-trailing-uncheckable-BcPD_7uK.d.ts} +73 -7
- package/dist/{split-button-trailing-uncheckable-CjOFCoyW.d.ts → split-button-trailing-uncheckable-DtFJkTFr.d.mts} +73 -7
- package/dist/{text-field-eAIpz9z1.d.mts → text-field-T4Rg-9Bw.d.mts} +7 -0
- package/dist/{text-field-eAIpz9z1.d.ts → text-field-T4Rg-9Bw.d.ts} +7 -0
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLMotionProps } from 'motion/react';
|
|
2
|
-
import { M as MD3ColorStyle, b as MD3Size, a as MD3Shape } from './md3-
|
|
2
|
+
import { M as MD3ColorStyle, b as MD3Size, a as MD3Shape } from './md3-Dty-Qcad.js';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -170,9 +170,37 @@ declare const BUTTON_COLOR_TOKENS: {
|
|
|
170
170
|
readonly selected: "bg-transparent text-m3-primary";
|
|
171
171
|
readonly unselected: "bg-transparent text-m3-primary";
|
|
172
172
|
};
|
|
173
|
+
/**
|
|
174
|
+
* High-chroma tertiary tone. Use for hero CTAs and expressive moments where
|
|
175
|
+
* a distinct accent beyond primary is needed (e.g., hero chip, highlight fab).
|
|
176
|
+
*/
|
|
177
|
+
readonly tertiary: {
|
|
178
|
+
readonly default: "bg-m3-tertiary text-m3-on-tertiary";
|
|
179
|
+
readonly selected: "bg-m3-tertiary text-m3-on-tertiary";
|
|
180
|
+
readonly unselected: "bg-m3-tertiary-container text-m3-on-tertiary-container";
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Brand-stable primary fixed. Hue stays consistent across light and dark modes.
|
|
184
|
+
* Ideal for badges, pill chips, and elements that must carry the brand color
|
|
185
|
+
* regardless of the active theme.
|
|
186
|
+
*/
|
|
187
|
+
readonly "primary-fixed": {
|
|
188
|
+
readonly default: "bg-m3-primary-fixed text-m3-on-primary-fixed";
|
|
189
|
+
readonly selected: "bg-m3-primary-fixed text-m3-on-primary-fixed";
|
|
190
|
+
readonly unselected: "bg-m3-primary-fixed text-m3-on-primary-fixed-variant";
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Brand-stable tertiary fixed. Use for special-state indicators, achievement
|
|
194
|
+
* badges, or accent pills that need a fixed tertiary hue across themes.
|
|
195
|
+
*/
|
|
196
|
+
readonly "tertiary-fixed": {
|
|
197
|
+
readonly default: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed";
|
|
198
|
+
readonly selected: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed";
|
|
199
|
+
readonly unselected: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed-variant";
|
|
200
|
+
};
|
|
173
201
|
};
|
|
174
202
|
|
|
175
|
-
type ButtonGroupVariant = "standard" | "connected"
|
|
203
|
+
type ButtonGroupVariant = "standard" | "connected";
|
|
176
204
|
type ButtonGroupOrientation = "horizontal" | "vertical";
|
|
177
205
|
/**
|
|
178
206
|
* Props for ButtonGroup component.
|
|
@@ -182,7 +210,6 @@ interface ButtonGroupProps extends React$1.FieldsetHTMLAttributes<HTMLFieldSetEl
|
|
|
182
210
|
* Display variant of the button group:
|
|
183
211
|
* - `standard`: Independent buttons with gap spacing.
|
|
184
212
|
* - `connected`: Connected buttons sharing borders (Segmented Button).
|
|
185
|
-
* - `navbar`: Navigation bar variant with animated active sliding indicator pill.
|
|
186
213
|
* @default "standard"
|
|
187
214
|
*/
|
|
188
215
|
variant?: ButtonGroupVariant;
|
|
@@ -217,14 +244,14 @@ interface ButtonGroupProps extends React$1.FieldsetHTMLAttributes<HTMLFieldSetEl
|
|
|
217
244
|
*/
|
|
218
245
|
showCheck?: boolean;
|
|
219
246
|
/**
|
|
220
|
-
* Controls icon display behavior
|
|
247
|
+
* Controls icon display behavior.
|
|
221
248
|
* - `selected`: Display icon only on selected item.
|
|
222
249
|
* - `all`: Display on all items.
|
|
223
250
|
* - `none`: Hide all icons.
|
|
224
251
|
*/
|
|
225
252
|
iconBehavior?: "selected" | "all" | "none";
|
|
226
253
|
/**
|
|
227
|
-
* Controls label display behavior
|
|
254
|
+
* Controls label display behavior.
|
|
228
255
|
* - `selected`: Display label only on selected item.
|
|
229
256
|
* - `all`: Display on all items.
|
|
230
257
|
* - `none`: Hide all labels.
|
|
@@ -240,7 +267,6 @@ interface ButtonGroupProps extends React$1.FieldsetHTMLAttributes<HTMLFieldSetEl
|
|
|
240
267
|
/**
|
|
241
268
|
* Custom CSS class applied to individual child buttons in group.
|
|
242
269
|
* Useful for customizing padding, min-width, or other layout properties.
|
|
243
|
-
* For `navbar` variant, overrides default padding styles.
|
|
244
270
|
*/
|
|
245
271
|
itemClassName?: string;
|
|
246
272
|
}
|
|
@@ -282,6 +308,13 @@ interface ExtendedFABProps extends MotionButtonProps$2 {
|
|
|
282
308
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
283
309
|
/** Layout ID for Framer Motion Container Transform transitions. */
|
|
284
310
|
layoutId?: string;
|
|
311
|
+
/**
|
|
312
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
313
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
314
|
+
* @default false
|
|
315
|
+
*/
|
|
316
|
+
asChild?: boolean;
|
|
317
|
+
children?: React$1.ReactNode;
|
|
285
318
|
}
|
|
286
319
|
declare const ExtendedFAB: React$1.NamedExoticComponent<Omit<ExtendedFABProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
287
320
|
|
|
@@ -348,6 +381,12 @@ interface FABProps extends MotionButtonProps$1 {
|
|
|
348
381
|
* @default true
|
|
349
382
|
*/
|
|
350
383
|
visible?: boolean;
|
|
384
|
+
/**
|
|
385
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
386
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
387
|
+
* @default false
|
|
388
|
+
*/
|
|
389
|
+
asChild?: boolean;
|
|
351
390
|
}
|
|
352
391
|
/**
|
|
353
392
|
* Props for `FABPosition` layout wrapper component.
|
|
@@ -548,6 +587,13 @@ interface FABMenuItemProps {
|
|
|
548
587
|
totalItems?: number;
|
|
549
588
|
/** Logic `tabIndex` value for manual keyboard navigation. */
|
|
550
589
|
tabIndex?: number;
|
|
590
|
+
/**
|
|
591
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
592
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
593
|
+
* @default false
|
|
594
|
+
*/
|
|
595
|
+
asChild?: boolean;
|
|
596
|
+
children?: React$1.ReactNode;
|
|
551
597
|
}
|
|
552
598
|
/**
|
|
553
599
|
* Toggle FAB button (Morphing FAB) usable as standalone or trigger for `FABMenu`.
|
|
@@ -579,7 +625,7 @@ declare const ToggleFAB: React$1.NamedExoticComponent<ToggleFABProps & React$1.R
|
|
|
579
625
|
* Disabled items use `aria-disabled="true"` rather than native HTML `disabled`
|
|
580
626
|
* so they remain focusable in the tab sequence per MD3 specification.
|
|
581
627
|
*/
|
|
582
|
-
declare function FABMenuItem({ icon, label, onClick, disabled, colorVariant, className, tabIndex, }: FABMenuItemProps): react_jsx_runtime.JSX.Element;
|
|
628
|
+
declare function FABMenuItem({ icon, label, onClick, disabled, colorVariant, className, tabIndex, asChild, children, }: FABMenuItemProps): react_jsx_runtime.JSX.Element;
|
|
583
629
|
/**
|
|
584
630
|
* MD3 Expressive FAB Menu.
|
|
585
631
|
*
|
|
@@ -672,6 +718,12 @@ interface SplitButtonLeadingProps extends MotionButtonProps {
|
|
|
672
718
|
children?: React.ReactNode;
|
|
673
719
|
disabled?: boolean;
|
|
674
720
|
className?: string;
|
|
721
|
+
/**
|
|
722
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
723
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
724
|
+
* @default false
|
|
725
|
+
*/
|
|
726
|
+
asChild?: boolean;
|
|
675
727
|
}
|
|
676
728
|
interface SplitButtonTrailingProps extends Omit<MotionButtonProps, "onChange" | "color" | "children"> {
|
|
677
729
|
variant?: SplitButtonVariant;
|
|
@@ -687,6 +739,13 @@ interface SplitButtonTrailingProps extends Omit<MotionButtonProps, "onChange" |
|
|
|
687
739
|
/** ID of controlled menu element */
|
|
688
740
|
"aria-controls"?: string;
|
|
689
741
|
className?: string;
|
|
742
|
+
/**
|
|
743
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
744
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
745
|
+
* @default false
|
|
746
|
+
*/
|
|
747
|
+
asChild?: boolean;
|
|
748
|
+
children?: React.ReactNode;
|
|
690
749
|
}
|
|
691
750
|
interface SplitButtonTrailingUncheckableProps extends Omit<MotionButtonProps, "color" | "children"> {
|
|
692
751
|
variant?: SplitButtonVariant;
|
|
@@ -695,6 +754,13 @@ interface SplitButtonTrailingUncheckableProps extends Omit<MotionButtonProps, "c
|
|
|
695
754
|
disabled?: boolean;
|
|
696
755
|
"aria-label": string;
|
|
697
756
|
className?: string;
|
|
757
|
+
/**
|
|
758
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
759
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
760
|
+
* @default false
|
|
761
|
+
*/
|
|
762
|
+
asChild?: boolean;
|
|
763
|
+
children?: React.ReactNode;
|
|
698
764
|
}
|
|
699
765
|
|
|
700
766
|
declare const SplitButtonLayout: React$1.NamedExoticComponent<SplitButtonLayoutProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLMotionProps } from 'motion/react';
|
|
2
|
-
import { M as MD3ColorStyle, b as MD3Size, a as MD3Shape } from './md3-
|
|
2
|
+
import { M as MD3ColorStyle, b as MD3Size, a as MD3Shape } from './md3-Dty-Qcad.mjs';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -170,9 +170,37 @@ declare const BUTTON_COLOR_TOKENS: {
|
|
|
170
170
|
readonly selected: "bg-transparent text-m3-primary";
|
|
171
171
|
readonly unselected: "bg-transparent text-m3-primary";
|
|
172
172
|
};
|
|
173
|
+
/**
|
|
174
|
+
* High-chroma tertiary tone. Use for hero CTAs and expressive moments where
|
|
175
|
+
* a distinct accent beyond primary is needed (e.g., hero chip, highlight fab).
|
|
176
|
+
*/
|
|
177
|
+
readonly tertiary: {
|
|
178
|
+
readonly default: "bg-m3-tertiary text-m3-on-tertiary";
|
|
179
|
+
readonly selected: "bg-m3-tertiary text-m3-on-tertiary";
|
|
180
|
+
readonly unselected: "bg-m3-tertiary-container text-m3-on-tertiary-container";
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Brand-stable primary fixed. Hue stays consistent across light and dark modes.
|
|
184
|
+
* Ideal for badges, pill chips, and elements that must carry the brand color
|
|
185
|
+
* regardless of the active theme.
|
|
186
|
+
*/
|
|
187
|
+
readonly "primary-fixed": {
|
|
188
|
+
readonly default: "bg-m3-primary-fixed text-m3-on-primary-fixed";
|
|
189
|
+
readonly selected: "bg-m3-primary-fixed text-m3-on-primary-fixed";
|
|
190
|
+
readonly unselected: "bg-m3-primary-fixed text-m3-on-primary-fixed-variant";
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Brand-stable tertiary fixed. Use for special-state indicators, achievement
|
|
194
|
+
* badges, or accent pills that need a fixed tertiary hue across themes.
|
|
195
|
+
*/
|
|
196
|
+
readonly "tertiary-fixed": {
|
|
197
|
+
readonly default: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed";
|
|
198
|
+
readonly selected: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed";
|
|
199
|
+
readonly unselected: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed-variant";
|
|
200
|
+
};
|
|
173
201
|
};
|
|
174
202
|
|
|
175
|
-
type ButtonGroupVariant = "standard" | "connected"
|
|
203
|
+
type ButtonGroupVariant = "standard" | "connected";
|
|
176
204
|
type ButtonGroupOrientation = "horizontal" | "vertical";
|
|
177
205
|
/**
|
|
178
206
|
* Props for ButtonGroup component.
|
|
@@ -182,7 +210,6 @@ interface ButtonGroupProps extends React$1.FieldsetHTMLAttributes<HTMLFieldSetEl
|
|
|
182
210
|
* Display variant of the button group:
|
|
183
211
|
* - `standard`: Independent buttons with gap spacing.
|
|
184
212
|
* - `connected`: Connected buttons sharing borders (Segmented Button).
|
|
185
|
-
* - `navbar`: Navigation bar variant with animated active sliding indicator pill.
|
|
186
213
|
* @default "standard"
|
|
187
214
|
*/
|
|
188
215
|
variant?: ButtonGroupVariant;
|
|
@@ -217,14 +244,14 @@ interface ButtonGroupProps extends React$1.FieldsetHTMLAttributes<HTMLFieldSetEl
|
|
|
217
244
|
*/
|
|
218
245
|
showCheck?: boolean;
|
|
219
246
|
/**
|
|
220
|
-
* Controls icon display behavior
|
|
247
|
+
* Controls icon display behavior.
|
|
221
248
|
* - `selected`: Display icon only on selected item.
|
|
222
249
|
* - `all`: Display on all items.
|
|
223
250
|
* - `none`: Hide all icons.
|
|
224
251
|
*/
|
|
225
252
|
iconBehavior?: "selected" | "all" | "none";
|
|
226
253
|
/**
|
|
227
|
-
* Controls label display behavior
|
|
254
|
+
* Controls label display behavior.
|
|
228
255
|
* - `selected`: Display label only on selected item.
|
|
229
256
|
* - `all`: Display on all items.
|
|
230
257
|
* - `none`: Hide all labels.
|
|
@@ -240,7 +267,6 @@ interface ButtonGroupProps extends React$1.FieldsetHTMLAttributes<HTMLFieldSetEl
|
|
|
240
267
|
/**
|
|
241
268
|
* Custom CSS class applied to individual child buttons in group.
|
|
242
269
|
* Useful for customizing padding, min-width, or other layout properties.
|
|
243
|
-
* For `navbar` variant, overrides default padding styles.
|
|
244
270
|
*/
|
|
245
271
|
itemClassName?: string;
|
|
246
272
|
}
|
|
@@ -282,6 +308,13 @@ interface ExtendedFABProps extends MotionButtonProps$2 {
|
|
|
282
308
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
283
309
|
/** Layout ID for Framer Motion Container Transform transitions. */
|
|
284
310
|
layoutId?: string;
|
|
311
|
+
/**
|
|
312
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
313
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
314
|
+
* @default false
|
|
315
|
+
*/
|
|
316
|
+
asChild?: boolean;
|
|
317
|
+
children?: React$1.ReactNode;
|
|
285
318
|
}
|
|
286
319
|
declare const ExtendedFAB: React$1.NamedExoticComponent<Omit<ExtendedFABProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
287
320
|
|
|
@@ -348,6 +381,12 @@ interface FABProps extends MotionButtonProps$1 {
|
|
|
348
381
|
* @default true
|
|
349
382
|
*/
|
|
350
383
|
visible?: boolean;
|
|
384
|
+
/**
|
|
385
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
386
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
387
|
+
* @default false
|
|
388
|
+
*/
|
|
389
|
+
asChild?: boolean;
|
|
351
390
|
}
|
|
352
391
|
/**
|
|
353
392
|
* Props for `FABPosition` layout wrapper component.
|
|
@@ -548,6 +587,13 @@ interface FABMenuItemProps {
|
|
|
548
587
|
totalItems?: number;
|
|
549
588
|
/** Logic `tabIndex` value for manual keyboard navigation. */
|
|
550
589
|
tabIndex?: number;
|
|
590
|
+
/**
|
|
591
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
592
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
593
|
+
* @default false
|
|
594
|
+
*/
|
|
595
|
+
asChild?: boolean;
|
|
596
|
+
children?: React$1.ReactNode;
|
|
551
597
|
}
|
|
552
598
|
/**
|
|
553
599
|
* Toggle FAB button (Morphing FAB) usable as standalone or trigger for `FABMenu`.
|
|
@@ -579,7 +625,7 @@ declare const ToggleFAB: React$1.NamedExoticComponent<ToggleFABProps & React$1.R
|
|
|
579
625
|
* Disabled items use `aria-disabled="true"` rather than native HTML `disabled`
|
|
580
626
|
* so they remain focusable in the tab sequence per MD3 specification.
|
|
581
627
|
*/
|
|
582
|
-
declare function FABMenuItem({ icon, label, onClick, disabled, colorVariant, className, tabIndex, }: FABMenuItemProps): react_jsx_runtime.JSX.Element;
|
|
628
|
+
declare function FABMenuItem({ icon, label, onClick, disabled, colorVariant, className, tabIndex, asChild, children, }: FABMenuItemProps): react_jsx_runtime.JSX.Element;
|
|
583
629
|
/**
|
|
584
630
|
* MD3 Expressive FAB Menu.
|
|
585
631
|
*
|
|
@@ -672,6 +718,12 @@ interface SplitButtonLeadingProps extends MotionButtonProps {
|
|
|
672
718
|
children?: React.ReactNode;
|
|
673
719
|
disabled?: boolean;
|
|
674
720
|
className?: string;
|
|
721
|
+
/**
|
|
722
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
723
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
724
|
+
* @default false
|
|
725
|
+
*/
|
|
726
|
+
asChild?: boolean;
|
|
675
727
|
}
|
|
676
728
|
interface SplitButtonTrailingProps extends Omit<MotionButtonProps, "onChange" | "color" | "children"> {
|
|
677
729
|
variant?: SplitButtonVariant;
|
|
@@ -687,6 +739,13 @@ interface SplitButtonTrailingProps extends Omit<MotionButtonProps, "onChange" |
|
|
|
687
739
|
/** ID of controlled menu element */
|
|
688
740
|
"aria-controls"?: string;
|
|
689
741
|
className?: string;
|
|
742
|
+
/**
|
|
743
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
744
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
745
|
+
* @default false
|
|
746
|
+
*/
|
|
747
|
+
asChild?: boolean;
|
|
748
|
+
children?: React.ReactNode;
|
|
690
749
|
}
|
|
691
750
|
interface SplitButtonTrailingUncheckableProps extends Omit<MotionButtonProps, "color" | "children"> {
|
|
692
751
|
variant?: SplitButtonVariant;
|
|
@@ -695,6 +754,13 @@ interface SplitButtonTrailingUncheckableProps extends Omit<MotionButtonProps, "c
|
|
|
695
754
|
disabled?: boolean;
|
|
696
755
|
"aria-label": string;
|
|
697
756
|
className?: string;
|
|
757
|
+
/**
|
|
758
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
759
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
760
|
+
* @default false
|
|
761
|
+
*/
|
|
762
|
+
asChild?: boolean;
|
|
763
|
+
children?: React.ReactNode;
|
|
698
764
|
}
|
|
699
765
|
|
|
700
766
|
declare const SplitButtonLayout: React$1.NamedExoticComponent<SplitButtonLayoutProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -145,6 +145,13 @@ interface ChipProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
145
145
|
* When provided, a dedicated tabbable close button with `aria-label="Remove {label}"` is rendered.
|
|
146
146
|
*/
|
|
147
147
|
onRemove?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
148
|
+
/**
|
|
149
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
150
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
151
|
+
* @default false
|
|
152
|
+
*/
|
|
153
|
+
asChild?: boolean;
|
|
154
|
+
children?: React.ReactNode;
|
|
148
155
|
}
|
|
149
156
|
/**
|
|
150
157
|
* MD3 Expressive Chip — 4-variant interactive tag component.
|
|
@@ -145,6 +145,13 @@ interface ChipProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
145
145
|
* When provided, a dedicated tabbable close button with `aria-label="Remove {label}"` is rendered.
|
|
146
146
|
*/
|
|
147
147
|
onRemove?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
148
|
+
/**
|
|
149
|
+
* Change the component to the underlying child element and merge props/behavior.
|
|
150
|
+
* Useful when wrapping in Next.js `<Link>` or custom anchor tags.
|
|
151
|
+
* @default false
|
|
152
|
+
*/
|
|
153
|
+
asChild?: boolean;
|
|
154
|
+
children?: React.ReactNode;
|
|
148
155
|
}
|
|
149
156
|
/**
|
|
150
157
|
* MD3 Expressive Chip — 4-variant interactive tag component.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bug-on/m3-expressive",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Material Design 3 Expressive React components",
|
|
5
5
|
"author": "Bug On",
|
|
6
6
|
"license": "MIT",
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"@dnd-kit/core": "^6.3.1",
|
|
170
170
|
"@dnd-kit/sortable": "^10.0.0",
|
|
171
171
|
"@dnd-kit/utilities": "^3.2.2",
|
|
172
|
-
"@material/material-color-utilities": "^0.
|
|
172
|
+
"@material/material-color-utilities": "^0.4.0",
|
|
173
173
|
"@radix-ui/react-context-menu": "^2.2.16",
|
|
174
174
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
175
175
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
@@ -179,8 +179,8 @@
|
|
|
179
179
|
"class-variance-authority": "^0.7.1",
|
|
180
180
|
"clsx": "^2.1.1",
|
|
181
181
|
"tailwind-merge": "^3.3.1",
|
|
182
|
-
"@bug-on/m3-tailwind": "1.
|
|
183
|
-
"@bug-on/m3-tokens": "1.
|
|
182
|
+
"@bug-on/m3-tailwind": "1.2.0",
|
|
183
|
+
"@bug-on/m3-tokens": "1.2.0"
|
|
184
184
|
},
|
|
185
185
|
"devDependencies": {
|
|
186
186
|
"@testing-library/jest-dom": "^6.9.1",
|