@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.
Files changed (70) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/buttons.d.mts +3 -3
  3. package/dist/buttons.d.ts +3 -3
  4. package/dist/buttons.js +110 -91
  5. package/dist/buttons.js.map +1 -1
  6. package/dist/buttons.mjs +110 -91
  7. package/dist/buttons.mjs.map +1 -1
  8. package/dist/{core-Cckt8qEm.d.ts → core-DamhB5Yd.d.ts} +1 -1
  9. package/dist/{core-DDfG4pym.d.mts → core-Wsfqn9_N.d.mts} +1 -1
  10. package/dist/core.d.mts +2 -2
  11. package/dist/core.d.ts +2 -2
  12. package/dist/core.js +1 -1
  13. package/dist/core.js.map +1 -1
  14. package/dist/core.mjs +1 -1
  15. package/dist/core.mjs.map +1 -1
  16. package/dist/{fading-blur-mask--uZbBKLj.d.ts → fading-blur-mask-CX-bwjNU.d.mts} +6 -1
  17. package/dist/{fading-blur-mask--uZbBKLj.d.mts → fading-blur-mask-D57UMguz.d.ts} +6 -1
  18. package/dist/feedback.d.mts +17 -5
  19. package/dist/feedback.d.ts +17 -5
  20. package/dist/feedback.js +1 -1
  21. package/dist/feedback.js.map +1 -1
  22. package/dist/feedback.mjs +1 -1
  23. package/dist/feedback.mjs.map +1 -1
  24. package/dist/forms.d.mts +3 -3
  25. package/dist/forms.d.ts +3 -3
  26. package/dist/{icon-button-CxyJv7UV.d.mts → icon-button-BpX9_fwZ.d.mts} +1 -1
  27. package/dist/{icon-button-Di8VX6ou.d.ts → icon-button-DFXp9hze.d.ts} +1 -1
  28. package/dist/index.d.mts +9 -8
  29. package/dist/index.d.ts +9 -8
  30. package/dist/index.js +1098 -976
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +924 -802
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/layout.d.mts +92 -23
  35. package/dist/layout.d.ts +92 -23
  36. package/dist/layout.js +118 -13
  37. package/dist/layout.js.map +1 -1
  38. package/dist/layout.mjs +118 -15
  39. package/dist/layout.mjs.map +1 -1
  40. package/dist/md3-xBl4wgND.d.mts +44 -0
  41. package/dist/md3-xBl4wgND.d.ts +44 -0
  42. package/dist/navigation.d.mts +4 -4
  43. package/dist/navigation.d.ts +4 -4
  44. package/dist/navigation.js +1 -1
  45. package/dist/navigation.js.map +1 -1
  46. package/dist/navigation.mjs +1 -1
  47. package/dist/navigation.mjs.map +1 -1
  48. package/dist/overlays.d.mts +4 -4
  49. package/dist/overlays.d.ts +4 -4
  50. package/dist/overlays.js +1 -1
  51. package/dist/overlays.js.map +1 -1
  52. package/dist/overlays.mjs +1 -1
  53. package/dist/overlays.mjs.map +1 -1
  54. package/dist/pickers.js +1 -1
  55. package/dist/pickers.js.map +1 -1
  56. package/dist/pickers.mjs +1 -1
  57. package/dist/pickers.mjs.map +1 -1
  58. package/dist/shapes.d.mts +9 -2
  59. package/dist/shapes.d.ts +9 -2
  60. package/dist/{side-sheet-modal-Cw4vemKx.d.ts → side-sheet-modal-BfdgYjd3.d.ts} +1 -1
  61. package/dist/{side-sheet-modal-BycxrabB.d.mts → side-sheet-modal-kLfHINFZ.d.mts} +1 -1
  62. package/dist/{split-button-trailing-uncheckable-CGzk7KcG.d.ts → split-button-trailing-uncheckable-BpyIlOdn.d.ts} +7 -3
  63. package/dist/{split-button-trailing-uncheckable-gAz6OAIi.d.mts → split-button-trailing-uncheckable-CpT8iPpr.d.mts} +7 -3
  64. package/dist/{text-field-C0VQLp8Y.d.ts → text-field-Ct-LT_2T.d.ts} +1 -1
  65. package/dist/{text-field-B1fLh5Sh.d.mts → text-field-D5xiGn-q.d.mts} +1 -1
  66. package/llms-full.txt +18 -3
  67. package/llms.txt +4 -1
  68. package/package.json +1 -1
  69. package/dist/md3-BQhRygSi.d.mts +0 -31
  70. 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 };
@@ -1,5 +1,5 @@
1
- import { c as FadingBlurProps } from './fading-blur-mask--uZbBKLj.mjs';
2
- export { F as FadingBlurDirection, a as FadingBlurMask, b as FadingBlurMaskProps } from './fading-blur-mask--uZbBKLj.mjs';
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 { d as MD3SlotWidth } from './md3-BQhRygSi.mjs';
14
- import { B as BaseIconButtonProps } from './icon-button-CxyJv7UV.mjs';
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
@@ -1,5 +1,5 @@
1
- import { c as FadingBlurProps } from './fading-blur-mask--uZbBKLj.js';
2
- export { F as FadingBlurDirection, a as FadingBlurMask, b as FadingBlurMaskProps } from './fading-blur-mask--uZbBKLj.js';
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 { d as MD3SlotWidth } from './md3-BQhRygSi.js';
14
- import { B as BaseIconButtonProps } from './icon-button-Di8VX6ou.js';
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
@@ -7833,7 +7833,7 @@ var WIDTH_SIZE_STYLES = {
7833
7833
  },
7834
7834
  sm: {
7835
7835
  default: "w-10",
7836
- narrow: "w-12",
7836
+ narrow: "w-10",
7837
7837
  wide: "w-[3.25rem]"
7838
7838
  },
7839
7839
  md: {