@opengovsg/oui 0.0.57 → 0.0.59

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.
@@ -50,7 +50,7 @@ const AvatarGroup = utils.forwardRef((props, ref) => {
50
50
  remainingCount,
51
51
  renderCount
52
52
  ]);
53
- return /* @__PURE__ */ jsxRuntime.jsx(Component, { ...getAvatarGroupProps(), children: /* @__PURE__ */ jsxRuntime.jsxs(avatarGroupContext.AvatarGroupProvider, { value: context, children: [
53
+ return /* @__PURE__ */ jsxRuntime.jsx(Component, { ...getAvatarGroupProps(), children: /* @__PURE__ */ jsxRuntime.jsxs(avatarGroupContext.AvatarGroupProvider.Provider, { value: context, children: [
54
54
  clones,
55
55
  renderedCount
56
56
  ] }) });
@@ -48,7 +48,7 @@ const AvatarRoot = utils.forwardRef(
48
48
  const [imageLoadingStatus, setImageLoadingStatus] = $670gB$react.useState("idle");
49
49
  const Component = as || "span";
50
50
  return /* @__PURE__ */ jsxRuntime.jsx(
51
- avatarContext.AvatarContext,
51
+ avatarContext.AvatarContext.Provider,
52
52
  {
53
53
  value: {
54
54
  imageLoadingStatus,
@@ -26,12 +26,40 @@ function MenuInner(originalProps, ref) {
26
26
  originalProps,
27
27
  ouiTheme.menuStyles.variantKeys
28
28
  );
29
- const { className, classNames, placement, ...rest } = props;
29
+ const {
30
+ className,
31
+ classNames,
32
+ placement,
33
+ boundaryElement,
34
+ scrollRef,
35
+ shouldFlip,
36
+ maxHeight,
37
+ containerPadding,
38
+ offset,
39
+ crossOffset,
40
+ shouldUpdatePosition,
41
+ arrowBoundaryOffset,
42
+ triggerRef,
43
+ ...rest
44
+ } = props;
45
+ const popoverProps = {
46
+ placement,
47
+ boundaryElement,
48
+ scrollRef,
49
+ shouldFlip,
50
+ maxHeight,
51
+ containerPadding,
52
+ offset,
53
+ crossOffset,
54
+ shouldUpdatePosition,
55
+ arrowBoundaryOffset,
56
+ triggerRef
57
+ };
30
58
  const styles = ouiTheme.menuStyles(variantProps);
31
59
  return /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.Provider, { values: [[MenuVariantContext, variantProps]], children: /* @__PURE__ */ jsxRuntime.jsx(
32
60
  popover.Popover,
33
61
  {
34
- placement,
62
+ ...popoverProps,
35
63
  className: styles.popover({ className: classNames?.popover }),
36
64
  children: /* @__PURE__ */ jsxRuntime.jsx(
37
65
  reactAriaComponents.Menu,
@@ -34,7 +34,7 @@ const Navbar = utils.forwardRef((props, ref) => {
34
34
  /* @__PURE__ */ jsxRuntime.jsx("header", { ...context.getWrapperProps(), children: childrenWithoutMenu }),
35
35
  menu
36
36
  ] });
37
- return /* @__PURE__ */ jsxRuntime.jsx(navbarContext.NavbarProvider, { value: context, children: /* @__PURE__ */ jsxRuntime.jsx(reactAria.FocusScope, { contain: context.isMenuOpen, children: context.shouldShowOnScrollUp ? /* @__PURE__ */ jsxRuntime.jsx(react.LazyMotion, { features: react.domAnimation, children: /* @__PURE__ */ jsxRuntime.jsx(
37
+ return /* @__PURE__ */ jsxRuntime.jsx(navbarContext.NavbarProvider.Provider, { value: context, children: /* @__PURE__ */ jsxRuntime.jsx(reactAria.FocusScope, { contain: context.isMenuOpen, children: context.shouldShowOnScrollUp ? /* @__PURE__ */ jsxRuntime.jsx(react.LazyMotion, { features: react.domAnimation, children: /* @__PURE__ */ jsxRuntime.jsx(
38
38
  react.m.nav,
39
39
  {
40
40
  animate: context.isNavbarHidden ? "hidden" : "visible",
@@ -17,30 +17,33 @@ const Popover = ({
17
17
  const isSubmenu = popoverContext?.trigger === "SubmenuTrigger";
18
18
  let offset = showArrow ? 12 : 8;
19
19
  offset = isSubmenu ? offset - 6 : offset;
20
- return /* @__PURE__ */ jsxRuntime.jsxs(
21
- reactAriaComponents.Popover,
22
- {
23
- offset,
24
- ...props,
25
- className: reactAriaComponents.composeRenderProps(
26
- className ?? classNames?.base,
27
- (className2, renderProps) => ouiTheme.popoverStyles({ ...renderProps, className: className2 })
28
- ),
29
- children: [
30
- showArrow && /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.OverlayArrow, { className: "group", children: /* @__PURE__ */ jsxRuntime.jsx(
31
- "svg",
32
- {
33
- width: 12,
34
- height: 12,
35
- viewBox: "0 0 12 12",
36
- className: ouiTheme.popoverArrowStyles({ className: classNames?.arrow }),
37
- children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M0 0 L6 6 L12 0" })
38
- }
39
- ) }),
40
- children
41
- ]
42
- }
20
+ const wrapperClassName = reactAriaComponents.composeRenderProps(
21
+ className ?? classNames?.base,
22
+ (className2) => ouiTheme.popoverStyles({ className: className2 })
43
23
  );
24
+ return /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.Popover, { offset, ...props, className: ouiTheme.popoverOverlayStyles(), children: reactAriaComponents.composeRenderProps(children, (children2, renderProps) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
25
+ showArrow && /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.OverlayArrow, { className: "group", children: /* @__PURE__ */ jsxRuntime.jsx(
26
+ "svg",
27
+ {
28
+ width: 12,
29
+ height: 12,
30
+ viewBox: "0 0 12 12",
31
+ className: ouiTheme.popoverArrowStyles({ className: classNames?.arrow }),
32
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M0 0 L6 6 L12 0" })
33
+ }
34
+ ) }),
35
+ /* @__PURE__ */ jsxRuntime.jsx(
36
+ "div",
37
+ {
38
+ "data-placement": renderProps.placement,
39
+ className: typeof wrapperClassName === "function" ? wrapperClassName({
40
+ ...renderProps,
41
+ defaultClassName: void 0
42
+ }) : wrapperClassName,
43
+ children: children2
44
+ }
45
+ )
46
+ ] })) });
44
47
  };
45
48
 
46
49
  exports.Popover = Popover;
@@ -48,7 +48,7 @@ const AvatarGroup = forwardRef((props, ref) => {
48
48
  remainingCount,
49
49
  renderCount
50
50
  ]);
51
- return /* @__PURE__ */ jsx(Component, { ...getAvatarGroupProps(), children: /* @__PURE__ */ jsxs(AvatarGroupProvider, { value: context, children: [
51
+ return /* @__PURE__ */ jsx(Component, { ...getAvatarGroupProps(), children: /* @__PURE__ */ jsxs(AvatarGroupProvider.Provider, { value: context, children: [
52
52
  clones,
53
53
  renderedCount
54
54
  ] }) });
@@ -46,7 +46,7 @@ const AvatarRoot = forwardRef(
46
46
  const [imageLoadingStatus, setImageLoadingStatus] = useState("idle");
47
47
  const Component = as || "span";
48
48
  return /* @__PURE__ */ jsx(
49
- AvatarContext,
49
+ AvatarContext.Provider,
50
50
  {
51
51
  value: {
52
52
  imageLoadingStatus,
@@ -24,12 +24,40 @@ function MenuInner(originalProps, ref) {
24
24
  originalProps,
25
25
  menuStyles.variantKeys
26
26
  );
27
- const { className, classNames, placement, ...rest } = props;
27
+ const {
28
+ className,
29
+ classNames,
30
+ placement,
31
+ boundaryElement,
32
+ scrollRef,
33
+ shouldFlip,
34
+ maxHeight,
35
+ containerPadding,
36
+ offset,
37
+ crossOffset,
38
+ shouldUpdatePosition,
39
+ arrowBoundaryOffset,
40
+ triggerRef,
41
+ ...rest
42
+ } = props;
43
+ const popoverProps = {
44
+ placement,
45
+ boundaryElement,
46
+ scrollRef,
47
+ shouldFlip,
48
+ maxHeight,
49
+ containerPadding,
50
+ offset,
51
+ crossOffset,
52
+ shouldUpdatePosition,
53
+ arrowBoundaryOffset,
54
+ triggerRef
55
+ };
28
56
  const styles = menuStyles(variantProps);
29
57
  return /* @__PURE__ */ jsx(Provider, { values: [[MenuVariantContext, variantProps]], children: /* @__PURE__ */ jsx(
30
58
  Popover,
31
59
  {
32
- placement,
60
+ ...popoverProps,
33
61
  className: styles.popover({ className: classNames?.popover }),
34
62
  children: /* @__PURE__ */ jsx(
35
63
  Menu$1,
@@ -32,7 +32,7 @@ const Navbar = forwardRef((props, ref) => {
32
32
  /* @__PURE__ */ jsx("header", { ...context.getWrapperProps(), children: childrenWithoutMenu }),
33
33
  menu
34
34
  ] });
35
- return /* @__PURE__ */ jsx(NavbarProvider, { value: context, children: /* @__PURE__ */ jsx(FocusScope, { contain: context.isMenuOpen, children: context.shouldShowOnScrollUp ? /* @__PURE__ */ jsx(LazyMotion, { features: domAnimation, children: /* @__PURE__ */ jsx(
35
+ return /* @__PURE__ */ jsx(NavbarProvider.Provider, { value: context, children: /* @__PURE__ */ jsx(FocusScope, { contain: context.isMenuOpen, children: context.shouldShowOnScrollUp ? /* @__PURE__ */ jsx(LazyMotion, { features: domAnimation, children: /* @__PURE__ */ jsx(
36
36
  m.nav,
37
37
  {
38
38
  animate: context.isNavbarHidden ? "hidden" : "visible",
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  "use client";
3
- import { jsxs, jsx } from 'react/jsx-runtime';
4
- import { useSlottedContext, PopoverContext, Popover as Popover$1, OverlayArrow, composeRenderProps } from 'react-aria-components';
5
- import { popoverArrowStyles, popoverStyles } from '@opengovsg/oui-theme';
3
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
+ import { useSlottedContext, PopoverContext, composeRenderProps, Popover as Popover$1, OverlayArrow } from 'react-aria-components';
5
+ import { popoverStyles, popoverArrowStyles, popoverOverlayStyles } from '@opengovsg/oui-theme';
6
6
 
7
7
  const Popover = ({
8
8
  children,
@@ -15,30 +15,33 @@ const Popover = ({
15
15
  const isSubmenu = popoverContext?.trigger === "SubmenuTrigger";
16
16
  let offset = showArrow ? 12 : 8;
17
17
  offset = isSubmenu ? offset - 6 : offset;
18
- return /* @__PURE__ */ jsxs(
19
- Popover$1,
20
- {
21
- offset,
22
- ...props,
23
- className: composeRenderProps(
24
- className ?? classNames?.base,
25
- (className2, renderProps) => popoverStyles({ ...renderProps, className: className2 })
26
- ),
27
- children: [
28
- showArrow && /* @__PURE__ */ jsx(OverlayArrow, { className: "group", children: /* @__PURE__ */ jsx(
29
- "svg",
30
- {
31
- width: 12,
32
- height: 12,
33
- viewBox: "0 0 12 12",
34
- className: popoverArrowStyles({ className: classNames?.arrow }),
35
- children: /* @__PURE__ */ jsx("path", { d: "M0 0 L6 6 L12 0" })
36
- }
37
- ) }),
38
- children
39
- ]
40
- }
18
+ const wrapperClassName = composeRenderProps(
19
+ className ?? classNames?.base,
20
+ (className2) => popoverStyles({ className: className2 })
41
21
  );
22
+ return /* @__PURE__ */ jsx(Popover$1, { offset, ...props, className: popoverOverlayStyles(), children: composeRenderProps(children, (children2, renderProps) => /* @__PURE__ */ jsxs(Fragment, { children: [
23
+ showArrow && /* @__PURE__ */ jsx(OverlayArrow, { className: "group", children: /* @__PURE__ */ jsx(
24
+ "svg",
25
+ {
26
+ width: 12,
27
+ height: 12,
28
+ viewBox: "0 0 12 12",
29
+ className: popoverArrowStyles({ className: classNames?.arrow }),
30
+ children: /* @__PURE__ */ jsx("path", { d: "M0 0 L6 6 L12 0" })
31
+ }
32
+ ) }),
33
+ /* @__PURE__ */ jsx(
34
+ "div",
35
+ {
36
+ "data-placement": renderProps.placement,
37
+ className: typeof wrapperClassName === "function" ? wrapperClassName({
38
+ ...renderProps,
39
+ defaultClassName: void 0
40
+ }) : wrapperClassName,
41
+ children: children2
42
+ }
43
+ )
44
+ ] })) });
42
45
  };
43
46
 
44
47
  export { Popover };
@@ -3,8 +3,14 @@ import { MenuTrigger as AriaMenuTrigger } from "react-aria-components";
3
3
  import type { ListBoxItemVariantProps, MenuItemVariantSlots, MenuSectionVariantProps, MenuSectionVariantSlots, MenuVariantProps, MenuVariantSlots, SlotsToClasses } from "@opengovsg/oui-theme";
4
4
  import type { PopoverProps } from "../popover";
5
5
  export declare const MenuVariantContext: import("react").Context<ContextValue<MenuVariantProps, any>>, useMenuVariantContext: () => ContextValue<MenuVariantProps, any>;
6
- export interface MenuProps<T> extends AriaMenuProps<T>, MenuVariantProps {
7
- placement?: PopoverProps["placement"];
6
+ /**
7
+ * Popover positioning props forwarded from `Menu` to its underlying `Popover`.
8
+ * These let consumers bound where/how the menu flips — most importantly
9
+ * `boundaryElement`/`scrollRef`, which constrain flipping to a scroll container
10
+ * rather than the whole viewport.
11
+ */
12
+ type ForwardedPopoverProps = Pick<PopoverProps, "placement" | "boundaryElement" | "scrollRef" | "shouldFlip" | "maxHeight" | "containerPadding" | "offset" | "crossOffset" | "shouldUpdatePosition" | "arrowBoundaryOffset" | "triggerRef">;
13
+ export interface MenuProps<T> extends AriaMenuProps<T>, MenuVariantProps, ForwardedPopoverProps {
8
14
  classNames?: SlotsToClasses<MenuVariantSlots>;
9
15
  }
10
16
  export declare const Menu: <T extends object>(props: MenuProps<T> & import("react").RefAttributes<HTMLDivElement>) => React.ReactNode;
@@ -35,4 +41,5 @@ export interface MenuSectionProps<T> extends AriaMenuSectionProps<T>, MenuSectio
35
41
  export declare const MenuSection: <T extends object>(props: MenuSectionProps<T> & import("react").RefAttributes<HTMLElement>) => React.ReactNode;
36
42
  export declare const MenuTrigger: typeof AriaMenuTrigger;
37
43
  export declare const SubmenuTrigger: (props: import("react-aria-components").SubmenuTriggerProps & React.RefAttributes<HTMLDivElement>) => import("react").ReactElement | null;
44
+ export {};
38
45
  //# sourceMappingURL=menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/menu/menu.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,IAAI,iBAAiB,EAClC,SAAS,IAAI,aAAa,EAC1B,gBAAgB,IAAI,oBAAoB,EACxC,YAAY,EAEZ,cAAc,EACf,MAAM,uBAAuB,CAAA;AAG9B,OAAO,EAIL,WAAW,IAAI,eAAe,EAQ/B,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACf,MAAM,sBAAsB,CAAA;AAS7B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAK9C,eAAO,MAAO,kBAAkB,gEAAE,qBAAqB,2CAOrD,CAAA;AACF,MAAM,WAAW,SAAS,CAAC,CAAC,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AE,KAAK,CAAC,SAAS,CAAA;CAC7B;AAED,eAAO,MAAM,QAAQ,0GA+HnB,CAAA;AAEF,wBAAgB,aAAa,CAAC,KAAK,EAAE,cAAc,2CASlD;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,CACjC,SAAQ,oBAAoB,CAAC,CAAC,CAAC,EAC7B,uBAAuB;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,CAAC,EAAE,CAAA;IACX,UAAU,CAAC,EAAE,cAAc,CAAC,uBAAuB,CAAC,CAAA;CACrD;AAwCD,eAAO,MAAM,WAAW,GAtCE,CAAC,SAAS,MAAM,8EAnQ/B,MACT,SAwS4D,CAAA;AAE9D,eAAO,MAAM,WAAW,wBAAkB,CAAA;AAC1C,eAAO,MAAM,cAAc,gEAC8+hE,MAAO,aAAa,wDAD7+hE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/popover/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAS7E,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxE,OAAO,EAAsB,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAExE,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,EACxC,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IAEzB;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,OAAO,GAAG,MAAM,CAAC,CAAA;CAC9C;AAED,eAAO,MAAM,OAAO,6DAMjB,YAAY,4CA8Bd,CAAA"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/popover/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAS7E,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxE,OAAO,EAGL,aAAa,EACd,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,EACxC,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IAEzB;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,OAAO,GAAG,MAAM,CAAC,CAAA;CAC9C;AAED,eAAO,MAAM,OAAO,6DAMjB,YAAY,4CAgDd,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengovsg/oui",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "sideEffects": false,
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "./package.json": "./package.json"
37
37
  },
38
38
  "devDependencies": {
39
- "@storybook/react-vite": "10.2.10",
39
+ "@storybook/react-vite": "10.4.5",
40
40
  "@types/lodash-es": "^4.17.12",
41
41
  "@types/prop-types": "^15.7.15",
42
42
  "@types/react": "^19.2.9",
@@ -48,14 +48,14 @@
48
48
  "prettier": "^3.5.3",
49
49
  "react": "^19.2.3",
50
50
  "react-aria-components": "^1.14.0",
51
- "storybook": "10.2.10",
51
+ "storybook": "10.4.5",
52
52
  "tsx": "^4.21.0",
53
53
  "typescript": "5.7.3",
54
- "@opengovsg/oui-theme": "0.0.57",
55
- "@oui/eslint-config": "0.0.0",
56
54
  "@oui/chromatic": "0.0.0",
55
+ "@oui/eslint-config": "0.0.0",
57
56
  "@oui/prettier-config": "0.0.0",
58
- "@oui/typescript-config": "0.0.0"
57
+ "@oui/typescript-config": "0.0.0",
58
+ "@opengovsg/oui-theme": "0.0.59"
59
59
  },
60
60
  "dependencies": {
61
61
  "@internationalized/date": "^3.10.1",
@@ -75,7 +75,7 @@
75
75
  "downshift": "^9.0.9",
76
76
  "fuzzysort": "^3.1.0",
77
77
  "lodash-es": "^4.18.1",
78
- "nanoid": "^5.1.5",
78
+ "nanoid": "^5.1.11",
79
79
  "react-aria": "^3.41.1",
80
80
  "react-dropzone": "^14.3.8",
81
81
  "react-phone-number-input": "^3.4.14",
@@ -91,7 +91,7 @@
91
91
  "motion": ">=11.12.0 || >=12.0.0-alpha.1",
92
92
  "react": ">= 18",
93
93
  "react-aria-components": "^1.14.0",
94
- "@opengovsg/oui-theme": "0.0.57"
94
+ "@opengovsg/oui-theme": "0.0.59"
95
95
  },
96
96
  "scripts": {
97
97
  "build": "tsx ../../tooling/build-scripts/main.ts --dts --clean",