@bug-on/m3-expressive 1.3.6 → 1.3.7
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 +6 -0
- package/dist/buttons.d.mts +3 -3
- package/dist/buttons.d.ts +3 -3
- package/dist/buttons.js +110 -91
- package/dist/buttons.js.map +1 -1
- package/dist/buttons.mjs +110 -91
- package/dist/buttons.mjs.map +1 -1
- package/dist/{core-Cckt8qEm.d.ts → core-DamhB5Yd.d.ts} +1 -1
- package/dist/{core-DDfG4pym.d.mts → core-Wsfqn9_N.d.mts} +1 -1
- package/dist/core.d.mts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +1 -1
- package/dist/core.mjs.map +1 -1
- package/dist/{fading-blur-mask--uZbBKLj.d.ts → fading-blur-mask-CX-bwjNU.d.mts} +6 -1
- package/dist/{fading-blur-mask--uZbBKLj.d.mts → fading-blur-mask-D57UMguz.d.ts} +6 -1
- package/dist/feedback.d.mts +17 -5
- package/dist/feedback.d.ts +17 -5
- package/dist/feedback.js +1 -1
- package/dist/feedback.js.map +1 -1
- package/dist/feedback.mjs +1 -1
- package/dist/feedback.mjs.map +1 -1
- package/dist/forms.d.mts +3 -3
- package/dist/forms.d.ts +3 -3
- package/dist/{icon-button-CxyJv7UV.d.mts → icon-button-BpX9_fwZ.d.mts} +1 -1
- package/dist/{icon-button-Di8VX6ou.d.ts → icon-button-DFXp9hze.d.ts} +1 -1
- package/dist/index.d.mts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +1098 -976
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +924 -802
- package/dist/index.mjs.map +1 -1
- package/dist/layout.d.mts +92 -23
- package/dist/layout.d.ts +92 -23
- package/dist/layout.js +118 -13
- package/dist/layout.js.map +1 -1
- package/dist/layout.mjs +118 -15
- package/dist/layout.mjs.map +1 -1
- package/dist/md3-xBl4wgND.d.mts +44 -0
- package/dist/md3-xBl4wgND.d.ts +44 -0
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/navigation.js +1 -1
- package/dist/navigation.js.map +1 -1
- package/dist/navigation.mjs +1 -1
- package/dist/navigation.mjs.map +1 -1
- package/dist/overlays.d.mts +4 -4
- package/dist/overlays.d.ts +4 -4
- package/dist/overlays.js +1 -1
- package/dist/overlays.js.map +1 -1
- package/dist/overlays.mjs +1 -1
- package/dist/overlays.mjs.map +1 -1
- 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/shapes.d.mts +9 -2
- package/dist/shapes.d.ts +9 -2
- package/dist/{side-sheet-modal-Cw4vemKx.d.ts → side-sheet-modal-BfdgYjd3.d.ts} +1 -1
- package/dist/{side-sheet-modal-BycxrabB.d.mts → side-sheet-modal-kLfHINFZ.d.mts} +1 -1
- package/dist/{split-button-trailing-uncheckable-CGzk7KcG.d.ts → split-button-trailing-uncheckable-BpyIlOdn.d.ts} +7 -3
- package/dist/{split-button-trailing-uncheckable-gAz6OAIi.d.mts → split-button-trailing-uncheckable-CpT8iPpr.d.mts} +7 -3
- package/dist/{text-field-C0VQLp8Y.d.ts → text-field-Ct-LT_2T.d.ts} +1 -1
- package/dist/{text-field-B1fLh5Sh.d.mts → text-field-D5xiGn-q.d.mts} +1 -1
- package/llms-full.txt +18 -3
- package/llms.txt +4 -1
- package/package.json +1 -1
- package/dist/md3-BQhRygSi.d.mts +0 -31
- package/dist/md3-BQhRygSi.d.ts +0 -31
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ElementType, ComponentPropsWithoutRef, ReactNode, ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
/** MD3 button color variants */
|
|
4
|
+
type MD3ColorStyle = "elevated" | "filled" | "tonal" | "outlined" | "text"
|
|
5
|
+
/** High-chroma tertiary tone — for hero accents, CTAs, expressive moments. */
|
|
6
|
+
| "tertiary"
|
|
7
|
+
/** Brand-stable primary fixed — same hue across light/dark, for badges/pills. */
|
|
8
|
+
| "primary-fixed"
|
|
9
|
+
/** Brand-stable tertiary fixed — same hue across light/dark, for special states. */
|
|
10
|
+
| "tertiary-fixed";
|
|
11
|
+
/** MD3 Expressive button sizes */
|
|
12
|
+
type MD3Size = "xs" | "sm" | "md" | "lg" | "xl";
|
|
13
|
+
/** All MD3 system color token names (`--md-sys-color-*`) */
|
|
14
|
+
type MD3ColorTokenName = "primary" | "on-primary" | "primary-container" | "on-primary-container" | "inverse-primary" | "primary-fixed" | "primary-fixed-dim" | "on-primary-fixed" | "on-primary-fixed-variant" | "secondary" | "on-secondary" | "secondary-container" | "on-secondary-container" | "secondary-fixed" | "secondary-fixed-dim" | "on-secondary-fixed" | "on-secondary-fixed-variant" | "tertiary" | "on-tertiary" | "tertiary-container" | "on-tertiary-container" | "tertiary-fixed" | "tertiary-fixed-dim" | "on-tertiary-fixed" | "on-tertiary-fixed-variant" | "error" | "on-error" | "error-container" | "on-error-container" | "surface" | "on-surface" | "surface-variant" | "on-surface-variant" | "surface-dim" | "surface-bright" | "surface-tint" | "surface-container-lowest" | "surface-container-low" | "surface-container" | "surface-container-high" | "surface-container-highest" | "inverse-surface" | "inverse-on-surface" | "background" | "on-background" | "outline" | "outline-variant" | "scrim" | "shadow" | "indicator-active" | "indicator-container" | "indicator-contained-active" | "indicator-contained-container" | "indicator-track" | "indicator-stop";
|
|
15
|
+
/**
|
|
16
|
+
* MD3 system color token or any arbitrary CSS color string.
|
|
17
|
+
* Provides IDE autocompletion for `var(--md-sys-color-*)` design tokens while
|
|
18
|
+
* allowing custom CSS colors, hex, rgb, or class values without breaking changes.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* color="var(--md-sys-color-surface)"
|
|
22
|
+
* color="var(--md-sys-color-primary)"
|
|
23
|
+
* color="#6750a4"
|
|
24
|
+
*/
|
|
25
|
+
type MD3ColorToken = `var(--md-sys-color-${MD3ColorTokenName})` | (string & {});
|
|
26
|
+
/**
|
|
27
|
+
* MD3 Expressive slot width ratio.
|
|
28
|
+
* Used for icon buttons where width is independent from the size scale.
|
|
29
|
+
* - `"narrow"` – compressed width for dense toolbars.
|
|
30
|
+
* - `"default"` – 1:1 square/round aspect ratio.
|
|
31
|
+
* - `"wide"` – extended width.
|
|
32
|
+
*/
|
|
33
|
+
type MD3SlotWidth = "narrow" | "default" | "wide";
|
|
34
|
+
/** MD3 shape families */
|
|
35
|
+
type MD3Shape = "round" | "square";
|
|
36
|
+
/** Helper: PolyMorphic component ref */
|
|
37
|
+
type PolymorphicRef<C extends ElementType> = ComponentPropsWithRef<C>["ref"];
|
|
38
|
+
/** Helper: Props cho polymorphic components */
|
|
39
|
+
type PolymorphicProps<C extends ElementType, Props = object> = Props & Omit<ComponentPropsWithoutRef<C>, keyof Props> & {
|
|
40
|
+
as?: C;
|
|
41
|
+
children?: ReactNode;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type { MD3ColorStyle as M, PolymorphicProps as P, MD3ColorToken as a, MD3ColorTokenName as b, MD3Shape as c, MD3Size as d, PolymorphicRef as e, MD3SlotWidth as f };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ElementType, ComponentPropsWithoutRef, ReactNode, ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
/** MD3 button color variants */
|
|
4
|
+
type MD3ColorStyle = "elevated" | "filled" | "tonal" | "outlined" | "text"
|
|
5
|
+
/** High-chroma tertiary tone — for hero accents, CTAs, expressive moments. */
|
|
6
|
+
| "tertiary"
|
|
7
|
+
/** Brand-stable primary fixed — same hue across light/dark, for badges/pills. */
|
|
8
|
+
| "primary-fixed"
|
|
9
|
+
/** Brand-stable tertiary fixed — same hue across light/dark, for special states. */
|
|
10
|
+
| "tertiary-fixed";
|
|
11
|
+
/** MD3 Expressive button sizes */
|
|
12
|
+
type MD3Size = "xs" | "sm" | "md" | "lg" | "xl";
|
|
13
|
+
/** All MD3 system color token names (`--md-sys-color-*`) */
|
|
14
|
+
type MD3ColorTokenName = "primary" | "on-primary" | "primary-container" | "on-primary-container" | "inverse-primary" | "primary-fixed" | "primary-fixed-dim" | "on-primary-fixed" | "on-primary-fixed-variant" | "secondary" | "on-secondary" | "secondary-container" | "on-secondary-container" | "secondary-fixed" | "secondary-fixed-dim" | "on-secondary-fixed" | "on-secondary-fixed-variant" | "tertiary" | "on-tertiary" | "tertiary-container" | "on-tertiary-container" | "tertiary-fixed" | "tertiary-fixed-dim" | "on-tertiary-fixed" | "on-tertiary-fixed-variant" | "error" | "on-error" | "error-container" | "on-error-container" | "surface" | "on-surface" | "surface-variant" | "on-surface-variant" | "surface-dim" | "surface-bright" | "surface-tint" | "surface-container-lowest" | "surface-container-low" | "surface-container" | "surface-container-high" | "surface-container-highest" | "inverse-surface" | "inverse-on-surface" | "background" | "on-background" | "outline" | "outline-variant" | "scrim" | "shadow" | "indicator-active" | "indicator-container" | "indicator-contained-active" | "indicator-contained-container" | "indicator-track" | "indicator-stop";
|
|
15
|
+
/**
|
|
16
|
+
* MD3 system color token or any arbitrary CSS color string.
|
|
17
|
+
* Provides IDE autocompletion for `var(--md-sys-color-*)` design tokens while
|
|
18
|
+
* allowing custom CSS colors, hex, rgb, or class values without breaking changes.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* color="var(--md-sys-color-surface)"
|
|
22
|
+
* color="var(--md-sys-color-primary)"
|
|
23
|
+
* color="#6750a4"
|
|
24
|
+
*/
|
|
25
|
+
type MD3ColorToken = `var(--md-sys-color-${MD3ColorTokenName})` | (string & {});
|
|
26
|
+
/**
|
|
27
|
+
* MD3 Expressive slot width ratio.
|
|
28
|
+
* Used for icon buttons where width is independent from the size scale.
|
|
29
|
+
* - `"narrow"` – compressed width for dense toolbars.
|
|
30
|
+
* - `"default"` – 1:1 square/round aspect ratio.
|
|
31
|
+
* - `"wide"` – extended width.
|
|
32
|
+
*/
|
|
33
|
+
type MD3SlotWidth = "narrow" | "default" | "wide";
|
|
34
|
+
/** MD3 shape families */
|
|
35
|
+
type MD3Shape = "round" | "square";
|
|
36
|
+
/** Helper: PolyMorphic component ref */
|
|
37
|
+
type PolymorphicRef<C extends ElementType> = ComponentPropsWithRef<C>["ref"];
|
|
38
|
+
/** Helper: Props cho polymorphic components */
|
|
39
|
+
type PolymorphicProps<C extends ElementType, Props = object> = Props & Omit<ComponentPropsWithoutRef<C>, keyof Props> & {
|
|
40
|
+
as?: C;
|
|
41
|
+
children?: ReactNode;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type { MD3ColorStyle as M, PolymorphicProps as P, MD3ColorToken as a, MD3ColorTokenName as b, MD3Shape as c, MD3Size as d, PolymorphicRef as e, MD3SlotWidth as f };
|
package/dist/navigation.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as FadingBlurProps } from './fading-blur-mask
|
|
2
|
-
export { F as FadingBlurDirection, a as FadingBlurMask, b as FadingBlurMaskProps } from './fading-blur-mask
|
|
1
|
+
import { c as FadingBlurProps } from './fading-blur-mask-CX-bwjNU.mjs';
|
|
2
|
+
export { F as FadingBlurDirection, a as FadingBlurMask, b as FadingBlurMaskProps } from './fading-blur-mask-CX-bwjNU.mjs';
|
|
3
3
|
import * as motion from 'motion';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import { RefObject } from 'react';
|
|
@@ -10,8 +10,8 @@ export { e as MenuGroupPosition, g as MenuItemPosition, n as VerticalMenuGroupPr
|
|
|
10
10
|
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
11
11
|
import { Transition, Variants, HTMLMotionProps } from 'motion/react';
|
|
12
12
|
import { M as MD3ShapeName } from './md3-expressive-shapes-wk_98LJh.mjs';
|
|
13
|
-
import {
|
|
14
|
-
import { B as BaseIconButtonProps } from './icon-button-
|
|
13
|
+
import { f as MD3SlotWidth } from './md3-xBl4wgND.mjs';
|
|
14
|
+
import { B as BaseIconButtonProps } from './icon-button-BpX9_fwZ.mjs';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @file app-bar.tokens.ts
|
package/dist/navigation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as FadingBlurProps } from './fading-blur-mask
|
|
2
|
-
export { F as FadingBlurDirection, a as FadingBlurMask, b as FadingBlurMaskProps } from './fading-blur-mask
|
|
1
|
+
import { c as FadingBlurProps } from './fading-blur-mask-D57UMguz.js';
|
|
2
|
+
export { F as FadingBlurDirection, a as FadingBlurMask, b as FadingBlurMaskProps } from './fading-blur-mask-D57UMguz.js';
|
|
3
3
|
import * as motion from 'motion';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import { RefObject } from 'react';
|
|
@@ -10,8 +10,8 @@ export { e as MenuGroupPosition, g as MenuItemPosition, n as VerticalMenuGroupPr
|
|
|
10
10
|
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
11
11
|
import { Transition, Variants, HTMLMotionProps } from 'motion/react';
|
|
12
12
|
import { M as MD3ShapeName } from './md3-expressive-shapes-wk_98LJh.js';
|
|
13
|
-
import {
|
|
14
|
-
import { B as BaseIconButtonProps } from './icon-button-
|
|
13
|
+
import { f as MD3SlotWidth } from './md3-xBl4wgND.js';
|
|
14
|
+
import { B as BaseIconButtonProps } from './icon-button-DFXp9hze.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @file app-bar.tokens.ts
|