@bug-on/m3-expressive 1.3.4 → 1.3.6

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 (76) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +31 -7
  3. package/dist/assets/material-symbols-cdn.css +17 -23
  4. package/dist/buttons.js +129 -35
  5. package/dist/buttons.js.map +1 -1
  6. package/dist/buttons.mjs +129 -35
  7. package/dist/buttons.mjs.map +1 -1
  8. package/dist/{core-COvZHQ_k.d.ts → core-Cckt8qEm.d.ts} +10 -4
  9. package/dist/{core-CRkixy1y.d.mts → core-DDfG4pym.d.mts} +10 -4
  10. package/dist/core.d.mts +2 -2
  11. package/dist/core.d.ts +2 -2
  12. package/dist/core.js +6 -5
  13. package/dist/core.js.map +1 -1
  14. package/dist/core.mjs +6 -5
  15. package/dist/core.mjs.map +1 -1
  16. package/dist/fading-blur-mask--uZbBKLj.d.mts +77 -0
  17. package/dist/fading-blur-mask--uZbBKLj.d.ts +77 -0
  18. package/dist/feedback.js +1 -1
  19. package/dist/feedback.js.map +1 -1
  20. package/dist/feedback.mjs +1 -1
  21. package/dist/feedback.mjs.map +1 -1
  22. package/dist/forms.d.mts +2 -2
  23. package/dist/forms.d.ts +2 -2
  24. package/dist/forms.js +17 -7
  25. package/dist/forms.js.map +1 -1
  26. package/dist/forms.mjs +17 -7
  27. package/dist/forms.mjs.map +1 -1
  28. package/dist/index.d.mts +9 -8
  29. package/dist/index.d.ts +9 -8
  30. package/dist/index.js +988 -309
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +984 -310
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/layout.d.mts +5 -3
  35. package/dist/layout.d.ts +5 -3
  36. package/dist/layout.js +61 -6
  37. package/dist/layout.js.map +1 -1
  38. package/dist/layout.mjs +61 -7
  39. package/dist/layout.mjs.map +1 -1
  40. package/dist/material-symbols-cdn.css +17 -23
  41. package/dist/{md3-expressive-shapes-CPcfl_Hf.d.mts → md3-expressive-shapes-wk_98LJh.d.mts} +20 -1
  42. package/dist/{md3-expressive-shapes-CPcfl_Hf.d.ts → md3-expressive-shapes-wk_98LJh.d.ts} +20 -1
  43. package/dist/navigation.d.mts +26 -84
  44. package/dist/navigation.d.ts +26 -84
  45. package/dist/navigation.js +95 -29
  46. package/dist/navigation.js.map +1 -1
  47. package/dist/navigation.mjs +95 -29
  48. package/dist/navigation.mjs.map +1 -1
  49. package/dist/overlays.d.mts +4 -2
  50. package/dist/overlays.d.ts +4 -2
  51. package/dist/overlays.js +85 -44
  52. package/dist/overlays.js.map +1 -1
  53. package/dist/overlays.mjs +85 -44
  54. package/dist/overlays.mjs.map +1 -1
  55. package/dist/pickers.d.mts +12 -0
  56. package/dist/pickers.d.ts +12 -0
  57. package/dist/pickers.js +186 -120
  58. package/dist/pickers.js.map +1 -1
  59. package/dist/pickers.mjs +186 -120
  60. package/dist/pickers.mjs.map +1 -1
  61. package/dist/shapes.d.mts +141 -15
  62. package/dist/shapes.d.ts +141 -15
  63. package/dist/shapes.js +618 -126
  64. package/dist/shapes.js.map +1 -1
  65. package/dist/shapes.mjs +614 -127
  66. package/dist/shapes.mjs.map +1 -1
  67. package/dist/{side-sheet-modal-64FGhDxL.d.mts → side-sheet-modal-BycxrabB.d.mts} +70 -0
  68. package/dist/{side-sheet-modal-Bd5Qqvp9.d.ts → side-sheet-modal-Cw4vemKx.d.ts} +70 -0
  69. package/dist/{text-field-4OlT9o8s.d.mts → text-field-B1fLh5Sh.d.mts} +22 -3
  70. package/dist/{text-field-DARNdj14.d.ts → text-field-C0VQLp8Y.d.ts} +22 -3
  71. package/dist/{typography-339RV6v7.d.mts → typography-CKTjvlZ4.d.mts} +25 -0
  72. package/dist/{typography-339RV6v7.d.ts → typography-CKTjvlZ4.d.ts} +25 -0
  73. package/dist/typography.css +1 -1
  74. package/llms-full.txt +24 -13
  75. package/llms.txt +11 -6
  76. package/package.json +3 -3
@@ -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-BycxrabB.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-BycxrabB.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-CxyJv7UV.mjs';
8
+ import './md3-BQhRygSi.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-Cw4vemKx.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-Cw4vemKx.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-Di8VX6ou.js';
8
+ import './md3-BQhRygSi.js';
7
9
  import './scroll-area-CVS6HyLl.js';
8
10
  import '@radix-ui/react-scroll-area';
9
11
 
package/dist/overlays.js CHANGED
@@ -1803,7 +1803,7 @@ var IconComponent = React2__namespace.forwardRef(
1803
1803
  (_a, ref) => {
1804
1804
  var _b = _a, {
1805
1805
  name,
1806
- variant = "outlined",
1806
+ variant = "rounded",
1807
1807
  fill = 0,
1808
1808
  weight = 400,
1809
1809
  grade = 0,
@@ -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" }),