@bug-on/m3-expressive 1.3.5 → 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 (80) hide show
  1. package/CHANGELOG.md +12 -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/forms.js +16 -6
  27. package/dist/forms.js.map +1 -1
  28. package/dist/forms.mjs +16 -6
  29. package/dist/forms.mjs.map +1 -1
  30. package/dist/{icon-button-CxyJv7UV.d.mts → icon-button-BpX9_fwZ.d.mts} +1 -1
  31. package/dist/{icon-button-Di8VX6ou.d.ts → icon-button-DFXp9hze.d.ts} +1 -1
  32. package/dist/index.d.mts +11 -10
  33. package/dist/index.d.ts +11 -10
  34. package/dist/index.js +1790 -1133
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +1640 -988
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/layout.d.mts +92 -23
  39. package/dist/layout.d.ts +92 -23
  40. package/dist/layout.js +118 -13
  41. package/dist/layout.js.map +1 -1
  42. package/dist/layout.mjs +118 -15
  43. package/dist/layout.mjs.map +1 -1
  44. package/dist/{md3-expressive-shapes-CPcfl_Hf.d.mts → md3-expressive-shapes-wk_98LJh.d.mts} +20 -1
  45. package/dist/{md3-expressive-shapes-CPcfl_Hf.d.ts → md3-expressive-shapes-wk_98LJh.d.ts} +20 -1
  46. package/dist/md3-xBl4wgND.d.mts +44 -0
  47. package/dist/md3-xBl4wgND.d.ts +44 -0
  48. package/dist/navigation.d.mts +5 -5
  49. package/dist/navigation.d.ts +5 -5
  50. package/dist/navigation.js +74 -21
  51. package/dist/navigation.js.map +1 -1
  52. package/dist/navigation.mjs +74 -21
  53. package/dist/navigation.mjs.map +1 -1
  54. package/dist/overlays.d.mts +4 -2
  55. package/dist/overlays.d.ts +4 -2
  56. package/dist/overlays.js +85 -44
  57. package/dist/overlays.js.map +1 -1
  58. package/dist/overlays.mjs +85 -44
  59. package/dist/overlays.mjs.map +1 -1
  60. package/dist/pickers.js +89 -56
  61. package/dist/pickers.js.map +1 -1
  62. package/dist/pickers.mjs +89 -56
  63. package/dist/pickers.mjs.map +1 -1
  64. package/dist/shapes.d.mts +150 -17
  65. package/dist/shapes.d.ts +150 -17
  66. package/dist/shapes.js +618 -126
  67. package/dist/shapes.js.map +1 -1
  68. package/dist/shapes.mjs +614 -127
  69. package/dist/shapes.mjs.map +1 -1
  70. package/dist/{side-sheet-modal-Bd5Qqvp9.d.ts → side-sheet-modal-BfdgYjd3.d.ts} +70 -0
  71. package/dist/{side-sheet-modal-64FGhDxL.d.mts → side-sheet-modal-kLfHINFZ.d.mts} +70 -0
  72. package/dist/{split-button-trailing-uncheckable-CGzk7KcG.d.ts → split-button-trailing-uncheckable-BpyIlOdn.d.ts} +7 -3
  73. package/dist/{split-button-trailing-uncheckable-gAz6OAIi.d.mts → split-button-trailing-uncheckable-CpT8iPpr.d.mts} +7 -3
  74. package/dist/{text-field-DARNdj14.d.ts → text-field-Ct-LT_2T.d.ts} +23 -4
  75. package/dist/{text-field-4OlT9o8s.d.mts → text-field-D5xiGn-q.d.mts} +23 -4
  76. package/llms-full.txt +25 -3
  77. package/llms.txt +4 -1
  78. package/package.json +1 -1
  79. package/dist/md3-BQhRygSi.d.mts +0 -31
  80. package/dist/md3-BQhRygSi.d.ts +0 -31
@@ -1,9 +1,11 @@
1
- import { W as SheetValue } from './side-sheet-modal-64FGhDxL.mjs';
2
- export { B as BaseSheetProps, a as BottomSheet, b as BottomSheetHandle, c as BottomSheetModal, d as BottomSheetModalProps, e as BottomSheetProps, f as BottomSheetSnapPoint, D as Dialog, g as DialogBody, h as DialogClose, i as DialogContent, j as DialogContentProps, k as DialogDescription, l as DialogFooter, m as DialogFullScreenContent, n as DialogFullScreenContentProps, o as DialogHeader, p as DialogIcon, q as DialogOverlay, r as DialogPortal, s as DialogProps, t as DialogTitle, u as DialogTrigger, v as DragHandle, w as DragHandleProps, x as Drawer, y as DrawerClose, z as DrawerContent, A as DrawerContentProps, C as DrawerDescription, E as DrawerFooter, F as DrawerHeader, G as DrawerOverlay, H as DrawerPortal, I as DrawerProps, J as DrawerTitle, K as DrawerTrigger, S as Scrim, L as ScrimProps, M as SheetEdge, N as SheetState, O as SideSheet, P as SideSheetModal, Q as SideSheetModalProps, R as SideSheetProps, U as UseBottomSheetOptions, T as UseBottomSheetReturn, V as useBottomSheet } from './side-sheet-modal-64FGhDxL.mjs';
1
+ import { W as SheetValue } from './side-sheet-modal-kLfHINFZ.mjs';
2
+ export { B as BaseSheetProps, a as BottomSheet, b as BottomSheetHandle, c as BottomSheetModal, d as BottomSheetModalProps, e as BottomSheetProps, f as BottomSheetSnapPoint, D as Dialog, g as DialogBody, h as DialogClose, i as DialogContent, j as DialogContentProps, k as DialogDescription, l as DialogFooter, m as DialogFullScreenContent, n as DialogFullScreenContentProps, o as DialogHeader, p as DialogIcon, q as DialogOverlay, r as DialogPortal, s as DialogProps, t as DialogTitle, u as DialogTrigger, v as DragHandle, w as DragHandleProps, x as Drawer, y as DrawerClose, z as DrawerContent, A as DrawerContentProps, C as DrawerDescription, E as DrawerFooter, F as DrawerHeader, G as DrawerOverlay, H as DrawerPortal, I as DrawerProps, J as DrawerTitle, K as DrawerTrigger, S as Scrim, L as ScrimProps, M as SheetEdge, N as SheetState, O as SideSheet, P as SideSheetModal, Q as SideSheetModalProps, R as SideSheetProps, U as UseBottomSheetOptions, T as UseBottomSheetReturn, V as useBottomSheet } from './side-sheet-modal-kLfHINFZ.mjs';
3
3
  import * as React$1 from 'react';
4
4
  import { useMotionValue, PanInfo } from 'motion/react';
5
5
  import 'react/jsx-runtime';
6
6
  import '@radix-ui/react-dialog';
7
+ import './icon-button-BpX9_fwZ.mjs';
8
+ import './md3-xBl4wgND.mjs';
7
9
  import './scroll-area-CVS6HyLl.mjs';
8
10
  import '@radix-ui/react-scroll-area';
9
11
 
@@ -1,9 +1,11 @@
1
- import { W as SheetValue } from './side-sheet-modal-Bd5Qqvp9.js';
2
- export { B as BaseSheetProps, a as BottomSheet, b as BottomSheetHandle, c as BottomSheetModal, d as BottomSheetModalProps, e as BottomSheetProps, f as BottomSheetSnapPoint, D as Dialog, g as DialogBody, h as DialogClose, i as DialogContent, j as DialogContentProps, k as DialogDescription, l as DialogFooter, m as DialogFullScreenContent, n as DialogFullScreenContentProps, o as DialogHeader, p as DialogIcon, q as DialogOverlay, r as DialogPortal, s as DialogProps, t as DialogTitle, u as DialogTrigger, v as DragHandle, w as DragHandleProps, x as Drawer, y as DrawerClose, z as DrawerContent, A as DrawerContentProps, C as DrawerDescription, E as DrawerFooter, F as DrawerHeader, G as DrawerOverlay, H as DrawerPortal, I as DrawerProps, J as DrawerTitle, K as DrawerTrigger, S as Scrim, L as ScrimProps, M as SheetEdge, N as SheetState, O as SideSheet, P as SideSheetModal, Q as SideSheetModalProps, R as SideSheetProps, U as UseBottomSheetOptions, T as UseBottomSheetReturn, V as useBottomSheet } from './side-sheet-modal-Bd5Qqvp9.js';
1
+ import { W as SheetValue } from './side-sheet-modal-BfdgYjd3.js';
2
+ export { B as BaseSheetProps, a as BottomSheet, b as BottomSheetHandle, c as BottomSheetModal, d as BottomSheetModalProps, e as BottomSheetProps, f as BottomSheetSnapPoint, D as Dialog, g as DialogBody, h as DialogClose, i as DialogContent, j as DialogContentProps, k as DialogDescription, l as DialogFooter, m as DialogFullScreenContent, n as DialogFullScreenContentProps, o as DialogHeader, p as DialogIcon, q as DialogOverlay, r as DialogPortal, s as DialogProps, t as DialogTitle, u as DialogTrigger, v as DragHandle, w as DragHandleProps, x as Drawer, y as DrawerClose, z as DrawerContent, A as DrawerContentProps, C as DrawerDescription, E as DrawerFooter, F as DrawerHeader, G as DrawerOverlay, H as DrawerPortal, I as DrawerProps, J as DrawerTitle, K as DrawerTrigger, S as Scrim, L as ScrimProps, M as SheetEdge, N as SheetState, O as SideSheet, P as SideSheetModal, Q as SideSheetModalProps, R as SideSheetProps, U as UseBottomSheetOptions, T as UseBottomSheetReturn, V as useBottomSheet } from './side-sheet-modal-BfdgYjd3.js';
3
3
  import * as React$1 from 'react';
4
4
  import { useMotionValue, PanInfo } from 'motion/react';
5
5
  import 'react/jsx-runtime';
6
6
  import '@radix-ui/react-dialog';
7
+ import './icon-button-DFXp9hze.js';
8
+ import './md3-xBl4wgND.js';
7
9
  import './scroll-area-CVS6HyLl.js';
8
10
  import '@radix-ui/react-scroll-area';
9
11
 
package/dist/overlays.js CHANGED
@@ -1479,7 +1479,7 @@ var WIDTH_SIZE_STYLES = {
1479
1479
  },
1480
1480
  sm: {
1481
1481
  default: "w-10",
1482
- narrow: "w-12",
1482
+ narrow: "w-10",
1483
1483
  wide: "w-[3.25rem]"
1484
1484
  },
1485
1485
  md: {
@@ -2031,45 +2031,64 @@ var DialogOverlay = React2__namespace.forwardRef((_a, ref) => {
2031
2031
  ) }));
2032
2032
  });
2033
2033
  DialogOverlay.displayName = "DialogOverlay";
2034
- var DialogContent = React2__namespace.forwardRef((_a, ref) => {
2035
- var _b = _a, { className, children, hideCloseButton = false } = _b, props = __objRest(_b, ["className", "children", "hideCloseButton"]);
2036
- return /* @__PURE__ */ jsxRuntime.jsx(
2037
- RadixDialog__namespace.Content,
2038
- __spreadProps(__spreadValues({
2039
- ref,
2040
- asChild: true,
2041
- "aria-describedby": void 0
2042
- }, props), {
2043
- children: /* @__PURE__ */ jsxRuntime.jsxs(
2044
- react.m.div,
2045
- __spreadProps(__spreadValues({
2046
- className: cn(
2047
- "fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
2048
- "w-[calc(100%-2rem)] max-w-140",
2049
- "rounded-[28px] bg-m3-surface-container-high p-6",
2050
- "shadow-lg outline-none focus-visible:ring-2 focus-visible:ring-m3-primary",
2051
- className
2052
- ),
2053
- role: "dialog"
2054
- }, MD3_CONTENT_ANIM), {
2055
- children: [
2056
- children,
2057
- !hideCloseButton && /* @__PURE__ */ jsxRuntime.jsx(RadixDialog__namespace.Close, { asChild: true, "aria-label": "Close dialog", children: /* @__PURE__ */ jsxRuntime.jsx(
2058
- IconButton,
2059
- {
2060
- size: "sm",
2061
- colorStyle: "filled",
2062
- className: "absolute right-4 top-4",
2063
- "aria-label": "Close",
2064
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "close", "aria-hidden": "true" })
2065
- }
2066
- ) })
2067
- ]
2068
- })
2069
- )
2070
- })
2071
- );
2072
- });
2034
+ var DEFAULT_CLOSE_BTN_PROPS = {
2035
+ size: "sm",
2036
+ colorStyle: "standard",
2037
+ className: "absolute right-4 top-4",
2038
+ "aria-label": "Close"
2039
+ };
2040
+ var DialogContent = React2__namespace.forwardRef(
2041
+ (_a, ref) => {
2042
+ var _b = _a, {
2043
+ className,
2044
+ children,
2045
+ hideCloseButton = false,
2046
+ closeButtonProps,
2047
+ closeButton
2048
+ } = _b, props = __objRest(_b, [
2049
+ "className",
2050
+ "children",
2051
+ "hideCloseButton",
2052
+ "closeButtonProps",
2053
+ "closeButton"
2054
+ ]);
2055
+ const closeAriaLabel = (() => {
2056
+ var _a2, _b2, _c;
2057
+ if (closeButton == null) {
2058
+ return (_a2 = closeButtonProps == null ? void 0 : closeButtonProps["aria-label"]) != null ? _a2 : DEFAULT_CLOSE_BTN_PROPS["aria-label"];
2059
+ }
2060
+ const el = closeButton;
2061
+ return (_c = (_b2 = el == null ? void 0 : el.props) == null ? void 0 : _b2["aria-label"]) != null ? _c : "Close";
2062
+ })();
2063
+ return /* @__PURE__ */ jsxRuntime.jsx(
2064
+ RadixDialog__namespace.Content,
2065
+ __spreadProps(__spreadValues({
2066
+ ref,
2067
+ asChild: true,
2068
+ "aria-describedby": void 0
2069
+ }, props), {
2070
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
2071
+ react.m.div,
2072
+ __spreadProps(__spreadValues({
2073
+ className: cn(
2074
+ "fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
2075
+ "w-[calc(100%-2rem)] max-w-140",
2076
+ "rounded-[28px] bg-m3-surface-container-high p-6",
2077
+ "shadow-lg outline-none focus-visible:ring-2 focus-visible:ring-m3-primary",
2078
+ className
2079
+ ),
2080
+ role: "dialog"
2081
+ }, MD3_CONTENT_ANIM), {
2082
+ children: [
2083
+ children,
2084
+ closeButton != null ? /* @__PURE__ */ jsxRuntime.jsx(RadixDialog__namespace.Close, { asChild: true, "aria-label": closeAriaLabel, children: closeButton }) : !hideCloseButton ? /* @__PURE__ */ jsxRuntime.jsx(RadixDialog__namespace.Close, { asChild: true, "aria-label": closeAriaLabel, children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_CLOSE_BTN_PROPS), closeButtonProps), { children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "close", "aria-hidden": "true" }) })) }) : null
2085
+ ]
2086
+ })
2087
+ )
2088
+ })
2089
+ );
2090
+ }
2091
+ );
2073
2092
  DialogContent.displayName = "DialogContent";
2074
2093
  var DialogIcon = React2__namespace.forwardRef((_a, ref) => {
2075
2094
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
@@ -2160,6 +2179,8 @@ var DialogFullScreenContent = React2__namespace.forwardRef(
2160
2179
  title,
2161
2180
  actionLabel,
2162
2181
  onAction,
2182
+ actionButtonProps,
2183
+ closeButtonProps,
2163
2184
  showDivider
2164
2185
  } = _b, props = __objRest(_b, [
2165
2186
  "className",
@@ -2167,8 +2188,11 @@ var DialogFullScreenContent = React2__namespace.forwardRef(
2167
2188
  "title",
2168
2189
  "actionLabel",
2169
2190
  "onAction",
2191
+ "actionButtonProps",
2192
+ "closeButtonProps",
2170
2193
  "showDivider"
2171
2194
  ]);
2195
+ var _a2;
2172
2196
  return /* @__PURE__ */ jsxRuntime.jsx(
2173
2197
  RadixDialog__namespace.Content,
2174
2198
  __spreadProps(__spreadValues({
@@ -2188,16 +2212,33 @@ var DialogFullScreenContent = React2__namespace.forwardRef(
2188
2212
  }, MD3_FULLSCREEN_ANIM), {
2189
2213
  children: [
2190
2214
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center px-4 h-14 gap-2 bg-m3-surface", children: [
2191
- /* @__PURE__ */ jsxRuntime.jsx(RadixDialog__namespace.Close, { asChild: true, "aria-label": "Close dialog", children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { size: "sm", colorStyle: "filled", "aria-label": "Close", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "close", "aria-hidden": "true" }) }) }),
2215
+ /* @__PURE__ */ jsxRuntime.jsx(
2216
+ RadixDialog__namespace.Close,
2217
+ {
2218
+ asChild: true,
2219
+ "aria-label": (_a2 = closeButtonProps == null ? void 0 : closeButtonProps["aria-label"]) != null ? _a2 : "Close",
2220
+ children: /* @__PURE__ */ jsxRuntime.jsx(
2221
+ IconButton,
2222
+ __spreadProps(__spreadValues({
2223
+ size: "sm",
2224
+ colorStyle: "standard",
2225
+ "aria-label": "Close"
2226
+ }, closeButtonProps), {
2227
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "close", "aria-hidden": "true" })
2228
+ })
2229
+ )
2230
+ }
2231
+ ),
2192
2232
  title && /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "flex-1 text-[22px] leading-7 font-medium truncate pr-2", children: title }),
2193
2233
  actionLabel && onAction && /* @__PURE__ */ jsxRuntime.jsx(
2194
2234
  "button",
2195
- {
2235
+ __spreadProps(__spreadValues({
2196
2236
  type: "button",
2197
2237
  onClick: onAction,
2198
- className: "text-sm font-medium text-m3-primary px-3 py-2 rounded-full hover:bg-m3-primary/8 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-m3-primary transition-colors whitespace-nowrap",
2238
+ className: "text-sm font-medium text-m3-primary px-3 py-2 rounded-full hover:bg-m3-primary/8 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-m3-primary transition-colors whitespace-nowrap disabled:opacity-[0.38] disabled:pointer-events-none"
2239
+ }, actionButtonProps), {
2199
2240
  children: actionLabel
2200
- }
2241
+ })
2201
2242
  )
2202
2243
  ] }),
2203
2244
  showDivider && /* @__PURE__ */ jsxRuntime.jsx("hr", { className: "border-m3-outline-variant w-full shrink-0 m-0" }),