@opengovsg/oui 0.0.28 → 0.0.29

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 (131) hide show
  1. package/dist/cjs/badge/badge.cjs +4 -4
  2. package/dist/cjs/badge/use-badge.cjs +6 -6
  3. package/dist/cjs/banner/banner.cjs +3 -3
  4. package/dist/cjs/button/button.cjs +4 -4
  5. package/dist/cjs/calendar/calendar-bottom-content.cjs +3 -3
  6. package/dist/cjs/calendar/calendar-header.cjs +2 -2
  7. package/dist/cjs/calendar/calendar-month-day-selector.cjs +4 -4
  8. package/dist/cjs/calendar/calendar.cjs +4 -4
  9. package/dist/cjs/calendar/hooks/use-calendar-selectors.cjs +4 -4
  10. package/dist/cjs/calendar/utils.cjs +3 -3
  11. package/dist/cjs/combo-box/combo-box-fuzzy.cjs +6 -6
  12. package/dist/cjs/combo-box/combo-box-item.cjs +2 -2
  13. package/dist/cjs/combo-box/combo-box.cjs +4 -4
  14. package/dist/cjs/date-field/date-field.cjs +3 -3
  15. package/dist/cjs/date-picker/date-picker.cjs +3 -3
  16. package/dist/cjs/date-range-picker/date-range-picker.cjs +5 -5
  17. package/dist/cjs/field/field.cjs +2 -2
  18. package/dist/cjs/file-dropzone/file-dropzone.cjs +11 -11
  19. package/dist/cjs/file-dropzone/file-info.cjs +3 -3
  20. package/dist/cjs/govt-banner/govt-banner.cjs +3 -3
  21. package/dist/cjs/hooks/use-callback-ref.cjs +4 -4
  22. package/dist/cjs/hooks/use-controllable-state.cjs +2 -2
  23. package/dist/cjs/hooks/use-draggable.cjs +8 -8
  24. package/dist/cjs/index.cjs +84 -65
  25. package/dist/cjs/input/input.cjs +2 -2
  26. package/dist/cjs/menu/menu.cjs +8 -8
  27. package/dist/cjs/modal/modal-body.cjs +2 -2
  28. package/dist/cjs/modal/modal-content.cjs +3 -3
  29. package/dist/cjs/modal/modal-footer.cjs +2 -2
  30. package/dist/cjs/modal/modal-header.cjs +2 -2
  31. package/dist/cjs/modal/modal.cjs +3 -3
  32. package/dist/cjs/navbar/index.cjs +25 -0
  33. package/dist/cjs/navbar/navbar-brand.cjs +28 -0
  34. package/dist/cjs/navbar/navbar-content.cjs +33 -0
  35. package/dist/cjs/navbar/navbar-context.cjs +14 -0
  36. package/dist/cjs/navbar/navbar-item.cjs +29 -0
  37. package/dist/cjs/navbar/navbar-menu/i18n.cjs +23 -0
  38. package/dist/cjs/navbar/navbar-menu/item.cjs +44 -0
  39. package/dist/cjs/navbar/navbar-menu/menu.cjs +62 -0
  40. package/dist/cjs/navbar/navbar-menu/toggle.cjs +94 -0
  41. package/dist/cjs/navbar/navbar.cjs +26 -0
  42. package/dist/cjs/navbar/use-navbar.cjs +116 -0
  43. package/dist/cjs/node_modules/.pnpm/@react-aria_overlays@3.30.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/overlays/dist/Overlay.cjs +55 -0
  44. package/dist/cjs/node_modules/.pnpm/@react-aria_overlays@3.30.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/overlays/dist/PortalProvider.cjs +23 -0
  45. package/dist/cjs/node_modules/.pnpm/@react-aria_overlays@3.30.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/overlays/dist/usePreventScroll.cjs +208 -0
  46. package/dist/cjs/node_modules/.pnpm/@react-aria_ssr@3.9.10_react@19.2.3/node_modules/@react-aria/ssr/dist/SSRProvider.cjs +104 -0
  47. package/dist/cjs/node_modules/.pnpm/lucide-react@0.475.0_react@19.2.3/node_modules/lucide-react/dist/esm/Icon.cjs +4 -4
  48. package/dist/cjs/node_modules/.pnpm/lucide-react@0.475.0_react@19.2.3/node_modules/lucide-react/dist/esm/createLucideIcon.cjs +3 -3
  49. package/dist/cjs/pagination/hooks/use-pagination.cjs +7 -7
  50. package/dist/cjs/pagination/pagination.cjs +6 -6
  51. package/dist/cjs/pagination/use-pagination-item.cjs +3 -3
  52. package/dist/cjs/pagination/use-pagination.cjs +8 -8
  53. package/dist/cjs/range-calendar/range-calendar.cjs +6 -6
  54. package/dist/cjs/ripple/use-ripple.cjs +4 -4
  55. package/dist/cjs/select/select.cjs +3 -3
  56. package/dist/cjs/spinner/use-spinner.cjs +3 -3
  57. package/dist/cjs/system/react-utils/children.cjs +26 -0
  58. package/dist/cjs/system/react-utils/context.cjs +3 -3
  59. package/dist/cjs/system/react-utils/refs.cjs +3 -3
  60. package/dist/cjs/system/utils.cjs +2 -2
  61. package/dist/cjs/tabs/tabs.cjs +2 -2
  62. package/dist/cjs/tag-field/tag-field-item.cjs +2 -2
  63. package/dist/cjs/tag-field/tag-field-list.cjs +4 -4
  64. package/dist/cjs/tag-field/tag-field-root.cjs +14 -14
  65. package/dist/cjs/tag-field/tag-field-state-context.cjs +2 -2
  66. package/dist/cjs/tag-field/tag-field-tag-list.cjs +3 -3
  67. package/dist/cjs/tag-field/tag-field-trigger.cjs +2 -2
  68. package/dist/cjs/tag-field/tag-field.cjs +3 -3
  69. package/dist/cjs/tag-field/use-tag-field-state.cjs +6 -6
  70. package/dist/cjs/tag-field/use-tag-field.cjs +4 -4
  71. package/dist/cjs/text-area/text-area.cjs +2 -2
  72. package/dist/cjs/toast/toast.cjs +1 -1
  73. package/dist/cjs/toggle/toggle.cjs +3 -3
  74. package/dist/esm/button/button.js +1 -1
  75. package/dist/esm/calendar/calendar-month-day-selector.js +2 -2
  76. package/dist/esm/combo-box/combo-box.js +1 -1
  77. package/dist/esm/date-picker/date-picker.js +1 -1
  78. package/dist/esm/date-range-picker/date-range-picker.js +2 -2
  79. package/dist/esm/file-dropzone/file-dropzone.js +1 -1
  80. package/dist/esm/index.js +33 -24
  81. package/dist/esm/menu/menu.js +2 -2
  82. package/dist/esm/navbar/index.js +10 -0
  83. package/dist/esm/navbar/navbar-brand.js +26 -0
  84. package/dist/esm/navbar/navbar-content.js +31 -0
  85. package/dist/esm/navbar/navbar-context.js +11 -0
  86. package/dist/esm/navbar/navbar-item.js +27 -0
  87. package/dist/esm/navbar/navbar-menu/i18n.js +21 -0
  88. package/dist/esm/navbar/navbar-menu/item.js +42 -0
  89. package/dist/esm/navbar/navbar-menu/menu.js +60 -0
  90. package/dist/esm/navbar/navbar-menu/toggle.js +92 -0
  91. package/dist/esm/navbar/navbar.js +24 -0
  92. package/dist/esm/navbar/use-navbar.js +114 -0
  93. package/dist/esm/node_modules/.pnpm/@react-aria_overlays@3.30.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/overlays/dist/Overlay.js +52 -0
  94. package/dist/esm/node_modules/.pnpm/@react-aria_overlays@3.30.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/overlays/dist/PortalProvider.js +20 -0
  95. package/dist/esm/node_modules/.pnpm/@react-aria_overlays@3.30.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/overlays/dist/usePreventScroll.js +206 -0
  96. package/dist/esm/node_modules/.pnpm/@react-aria_ssr@3.9.10_react@19.2.3/node_modules/@react-aria/ssr/dist/SSRProvider.js +102 -0
  97. package/dist/esm/pagination/use-pagination-item.js +1 -1
  98. package/dist/esm/select/select.js +1 -1
  99. package/dist/esm/system/react-utils/children.js +23 -0
  100. package/dist/esm/tag-field/tag-field.js +1 -1
  101. package/dist/esm/toast/toast.js +1 -1
  102. package/dist/types/index.d.mts +1 -0
  103. package/dist/types/index.d.ts +1 -0
  104. package/dist/types/index.d.ts.map +1 -1
  105. package/dist/types/navbar/index.d.ts +17 -0
  106. package/dist/types/navbar/index.d.ts.map +1 -0
  107. package/dist/types/navbar/navbar-brand.d.ts +6 -0
  108. package/dist/types/navbar/navbar-brand.d.ts.map +1 -0
  109. package/dist/types/navbar/navbar-content.d.ts +14 -0
  110. package/dist/types/navbar/navbar-content.d.ts.map +1 -0
  111. package/dist/types/navbar/navbar-context.d.ts +174 -0
  112. package/dist/types/navbar/navbar-context.d.ts.map +1 -0
  113. package/dist/types/navbar/navbar-item.d.ts +11 -0
  114. package/dist/types/navbar/navbar-item.d.ts.map +1 -0
  115. package/dist/types/navbar/navbar-menu/i18n.d.ts +3 -0
  116. package/dist/types/navbar/navbar-menu/i18n.d.ts.map +1 -0
  117. package/dist/types/navbar/navbar-menu/item.d.ts +16 -0
  118. package/dist/types/navbar/navbar-menu/item.d.ts.map +1 -0
  119. package/dist/types/navbar/navbar-menu/menu.d.ts +11 -0
  120. package/dist/types/navbar/navbar-menu/menu.d.ts.map +1 -0
  121. package/dist/types/navbar/navbar-menu/toggle.d.ts +12 -0
  122. package/dist/types/navbar/navbar-menu/toggle.d.ts.map +1 -0
  123. package/dist/types/navbar/navbar.d.ts +6 -0
  124. package/dist/types/navbar/navbar.d.ts.map +1 -0
  125. package/dist/types/navbar/use-navbar.d.ts +131 -0
  126. package/dist/types/navbar/use-navbar.d.ts.map +1 -0
  127. package/dist/types/system/react-utils/children.d.ts +10 -0
  128. package/dist/types/system/react-utils/children.d.ts.map +1 -0
  129. package/dist/types/system/react-utils/index.d.ts +5 -3
  130. package/dist/types/system/react-utils/index.d.ts.map +1 -1
  131. package/package.json +4 -4
@@ -0,0 +1,102 @@
1
+ import $670gB$react, { useContext, useState, useRef } from 'react';
2
+
3
+ /*
4
+ * Copyright 2020 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ */ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is
14
+ // guarded by a check that it only runs on the client side.
15
+ // eslint-disable-next-line rulesdir/useLayoutEffectRule
16
+
17
+ // Default context value to use in case there is no SSRProvider. This is fine for
18
+ // client-only apps. In order to support multiple copies of React Aria potentially
19
+ // being on the page at once, the prefix is set to a random number. SSRProvider
20
+ // will reset this to zero for consistency between server and client, so in the
21
+ // SSR case multiple copies of React Aria is not supported.
22
+ const $b5e257d569688ac6$var$defaultContext = {
23
+ prefix: String(Math.round(Math.random() * 10000000000)),
24
+ current: 0
25
+ };
26
+ const $b5e257d569688ac6$var$SSRContext = /*#__PURE__*/ ($670gB$react).createContext($b5e257d569688ac6$var$defaultContext);
27
+ const $b5e257d569688ac6$var$IsSSRContext = /*#__PURE__*/ ($670gB$react).createContext(false);
28
+ let $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
29
+ let $b5e257d569688ac6$var$componentIds = new WeakMap();
30
+ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
31
+ let ctx = (useContext)($b5e257d569688ac6$var$SSRContext);
32
+ let ref = (useRef)(null);
33
+ // eslint-disable-next-line rulesdir/pure-render
34
+ if (ref.current === null && !isDisabled) {
35
+ var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
36
+ // In strict mode, React renders components twice, and the ref will be reset to null on the second render.
37
+ // This means our id counter will be incremented twice instead of once. This is a problem because on the
38
+ // server, components are only rendered once and so ids generated on the server won't match the client.
39
+ // In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this
40
+ // we need to use some React internals to access the underlying Fiber instance, which is stable between renders.
41
+ // This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.
42
+ // To ensure that we only increment the global counter once, we store the starting id for this component in
43
+ // a weak map associated with the Fiber. On the second render, we reset the global counter to this value.
44
+ // Since React runs the second render immediately after the first, this is safe.
45
+ // @ts-ignore
46
+ let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ($670gB$react).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
47
+ if (currentOwner) {
48
+ let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
49
+ if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.
50
+ $b5e257d569688ac6$var$componentIds.set(currentOwner, {
51
+ id: ctx.current,
52
+ state: currentOwner.memoizedState
53
+ });
54
+ else if (currentOwner.memoizedState !== prevComponentValue.state) {
55
+ // On the second render, the memoizedState gets reset by React.
56
+ // Reset the counter, and remove from the weak map so we don't
57
+ // do this for subsequent useId calls.
58
+ ctx.current = prevComponentValue.id;
59
+ $b5e257d569688ac6$var$componentIds.delete(currentOwner);
60
+ }
61
+ }
62
+ // eslint-disable-next-line rulesdir/pure-render
63
+ ref.current = ++ctx.current;
64
+ }
65
+ // eslint-disable-next-line rulesdir/pure-render
66
+ return ref.current;
67
+ }
68
+ function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
69
+ let ctx = (useContext)($b5e257d569688ac6$var$SSRContext);
70
+ // If we are rendering in a non-DOM environment, and there's no SSRProvider,
71
+ // provide a warning to hint to the developer to add one.
72
+ if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM && process.env.NODE_ENV !== 'production') console.warn('When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.');
73
+ let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);
74
+ let prefix = ctx === $b5e257d569688ac6$var$defaultContext && process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${ctx.prefix}`;
75
+ return defaultId || `${prefix}-${counter}`;
76
+ }
77
+ function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
78
+ let id = ($670gB$react).useId();
79
+ let [didSSR] = (useState)($b5e257d569688ac6$export$535bd6ca7f90a273());
80
+ let prefix = didSSR || process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
81
+ return defaultId || `${prefix}-${id}`;
82
+ }
83
+ typeof ($670gB$react)['useId'] === 'function' ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
84
+ function $b5e257d569688ac6$var$getSnapshot() {
85
+ return false;
86
+ }
87
+ function $b5e257d569688ac6$var$getServerSnapshot() {
88
+ return true;
89
+ }
90
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
91
+ function $b5e257d569688ac6$var$subscribe(onStoreChange) {
92
+ // noop
93
+ return ()=>{};
94
+ }
95
+ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
96
+ // In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.
97
+ if (typeof ($670gB$react)['useSyncExternalStore'] === 'function') return ($670gB$react)['useSyncExternalStore']($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
98
+ // eslint-disable-next-line react-hooks/rules-of-hooks
99
+ return (useContext)($b5e257d569688ac6$var$IsSSRContext);
100
+ }
101
+
102
+ export { $b5e257d569688ac6$export$535bd6ca7f90a273 as useIsSSR };
@@ -5,8 +5,8 @@ import { useFocusRing } from '@react-aria/focus';
5
5
  import { usePress, useHover } from '@react-aria/interactions';
6
6
  import { useRouter, mergeProps, chain, shouldClientNavigate } from '@react-aria/utils';
7
7
  import { cn, dataAttr } from '@opengovsg/oui-theme';
8
- import { filterDOMProps } from '../system/react-utils/filter-dom-props.js';
9
8
  import { useDomRef } from '../system/react-utils/refs.js';
9
+ import { filterDOMProps } from '../system/react-utils/filter-dom-props.js';
10
10
 
11
11
  function usePaginationItem(props) {
12
12
  const {
@@ -4,11 +4,11 @@ import { jsx, jsxs } from 'react/jsx-runtime';
4
4
  import { useMemo } from 'react';
5
5
  import { Provider, Select as Select$1, SelectValue, Virtualizer, ListLayout, ListBox } from 'react-aria-components';
6
6
  import { selectStyles, composeRenderProps } from '@opengovsg/oui-theme';
7
+ import { Popover } from '../popover/popover.js';
7
8
  import { mapPropsVariants } from '../system/utils.js';
8
9
  import { SelectVariantContext } from './select-variant-context.js';
9
10
  import { Label, Description, FieldError } from '../field/field.js';
10
11
  import ChevronDown from '../node_modules/.pnpm/lucide-react@0.475.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/chevron-down.js';
11
- import { Popover } from '../popover/popover.js';
12
12
  import { Button } from '../button/button.js';
13
13
 
14
14
  const calculateEstimatedRowHeight = (size) => {
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ import { Children, isValidElement } from 'react';
3
+
4
+ function getValidChildren(children) {
5
+ return Children.toArray(children).filter(
6
+ (child) => isValidElement(child)
7
+ );
8
+ }
9
+ const pickChildren = (children, targetChild) => {
10
+ const target = [];
11
+ const withoutTargetChildren = Children.map(children, (item) => {
12
+ if (!isValidElement(item)) return item;
13
+ if (item.type === targetChild) {
14
+ target.push(item);
15
+ return null;
16
+ }
17
+ return item;
18
+ })?.filter(Boolean);
19
+ const targetChildren = target.length >= 0 ? target : void 0;
20
+ return [withoutTargetChildren, targetChildren];
21
+ };
22
+
23
+ export { getValidChildren, pickChildren };
@@ -5,6 +5,7 @@ import { createElement } from 'react';
5
5
  import { composeRenderProps } from 'react-aria-components';
6
6
  import { tagFieldStyles } from '@opengovsg/oui-theme';
7
7
  import { Input } from '../input/input.js';
8
+ import { Popover } from '../popover/popover.js';
8
9
  import { TagFieldItem } from './tag-field-item.js';
9
10
  import { TagFieldList } from './tag-field-list.js';
10
11
  import { TagFieldRoot } from './tag-field-root.js';
@@ -12,7 +13,6 @@ import { TagFieldTagList } from './tag-field-tag-list.js';
12
13
  import { TagFieldTrigger } from './tag-field-trigger.js';
13
14
  import ChevronDown from '../node_modules/.pnpm/lucide-react@0.475.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/chevron-down.js';
14
15
  import { Label, FieldGroup, Description, FieldError } from '../field/field.js';
15
- import { Popover } from '../popover/popover.js';
16
16
 
17
17
  function TagField({
18
18
  classNames,
@@ -4,9 +4,9 @@ import { jsx } from 'react/jsx-runtime';
4
4
  import { Toaster as Toaster$1 } from 'sonner';
5
5
  export { toast } from 'sonner';
6
6
  import { toastStyles } from '@opengovsg/oui-theme';
7
+ import { Spinner } from '../spinner/spinner.js';
7
8
  import { mapPropsVariants } from '../system/utils.js';
8
9
  import X from '../node_modules/.pnpm/lucide-react@0.475.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/x.js';
9
- import { Spinner } from '../spinner/spinner.js';
10
10
 
11
11
  function Toaster(originalProps) {
12
12
  const [{ toastOptions, closeButton = true, ...props }, variantProps] = mapPropsVariants(originalProps, toastStyles.variantKeys);
@@ -29,4 +29,5 @@ export * from "./file-dropzone";
29
29
  export * from "./number-field";
30
30
  export * from "./modal";
31
31
  export * from "./toast";
32
+ export * from "./navbar";
32
33
  //# sourceMappingURL=index.d.ts.map
@@ -29,4 +29,5 @@ export * from "./file-dropzone";
29
29
  export * from "./number-field";
30
30
  export * from "./modal";
31
31
  export * from "./toast";
32
+ export * from "./navbar";
32
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}
@@ -0,0 +1,17 @@
1
+ export { Navbar } from "./navbar";
2
+ export { NavbarBrand } from "./navbar-brand";
3
+ export { NavbarContent } from "./navbar-content";
4
+ export { NavbarMenu } from "./navbar-menu/menu";
5
+ export { NavbarMenuItem } from "./navbar-menu/item";
6
+ export { NavbarMenuToggle } from "./navbar-menu/toggle";
7
+ export { NavbarItem } from "./navbar-item";
8
+ export { useNavbar } from "./use-navbar";
9
+ export { NavbarProvider, useNavbarContext } from "./navbar-context";
10
+ export type { NavbarProps } from "./navbar";
11
+ export type { NavbarBrandProps } from "./navbar-brand";
12
+ export type { NavbarContentProps } from "./navbar-content";
13
+ export type { NavbarMenuProps } from "./navbar-menu/menu";
14
+ export type { NavbarMenuItemProps } from "./navbar-menu/item";
15
+ export type { NavbarMenuToggleProps } from "./navbar-menu/toggle";
16
+ export type { NavbarItemProps } from "./navbar-item";
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/navbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAEnE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC3C,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AACjE,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { HtmlUiProps } from "../system/types";
2
+ export interface NavbarBrandProps extends HtmlUiProps<"div"> {
3
+ children?: React.ReactNode | React.ReactNode[];
4
+ }
5
+ export declare const NavbarBrand: import("../system/utils").InternalForwardRefRenderFunction<"div", NavbarBrandProps, never>;
6
+ //# sourceMappingURL=navbar-brand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navbar-brand.d.ts","sourceRoot":"","sources":["../../../src/navbar/navbar-brand.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAKlD,MAAM,WAAW,gBAAiB,SAAQ,WAAW,CAAC,KAAK,CAAC;IAC1D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;CAC/C;AAED,eAAO,MAAM,WAAW,4FAiBtB,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { HtmlUiProps } from "../system/types";
2
+ export interface NavbarContentProps extends HtmlUiProps<"ul"> {
3
+ /**
4
+ * The content of the Navbar.Content. It is usually the `NavbarItem`,
5
+ */
6
+ children?: React.ReactNode | React.ReactNode[];
7
+ /**
8
+ * The justify of the content
9
+ * @default start
10
+ */
11
+ justify?: "start" | "end" | "center";
12
+ }
13
+ export declare const NavbarContent: import("../system/utils").InternalForwardRefRenderFunction<"div", NavbarContentProps, never>;
14
+ //# sourceMappingURL=navbar-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navbar-content.d.ts","sourceRoot":"","sources":["../../../src/navbar/navbar-content.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAKlD,MAAM,WAAW,kBAAmB,SAAQ,WAAW,CAAC,IAAI,CAAC;IAC3D;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAC9C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAA;CACrC;AAED,eAAO,MAAM,aAAa,8FAsBzB,CAAA"}
@@ -0,0 +1,174 @@
1
+ export declare const NavbarProvider: import("react").Context<{
2
+ Component: import("../system/types").As<any>;
3
+ slots: {
4
+ base: (slotProps?: ({
5
+ position?: "static" | "sticky" | undefined;
6
+ hasBorder?: boolean | undefined;
7
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
8
+ wrapper: (slotProps?: ({
9
+ position?: "static" | "sticky" | undefined;
10
+ hasBorder?: boolean | undefined;
11
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
12
+ toggle: (slotProps?: ({
13
+ position?: "static" | "sticky" | undefined;
14
+ hasBorder?: boolean | undefined;
15
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
16
+ toggleIcon: (slotProps?: ({
17
+ position?: "static" | "sticky" | undefined;
18
+ hasBorder?: boolean | undefined;
19
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
20
+ brand: (slotProps?: ({
21
+ position?: "static" | "sticky" | undefined;
22
+ hasBorder?: boolean | undefined;
23
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
24
+ content: (slotProps?: ({
25
+ position?: "static" | "sticky" | undefined;
26
+ hasBorder?: boolean | undefined;
27
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
28
+ item: (slotProps?: ({
29
+ position?: "static" | "sticky" | undefined;
30
+ hasBorder?: boolean | undefined;
31
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
32
+ menu: (slotProps?: ({
33
+ position?: "static" | "sticky" | undefined;
34
+ hasBorder?: boolean | undefined;
35
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
36
+ menuItem: (slotProps?: ({
37
+ position?: "static" | "sticky" | undefined;
38
+ hasBorder?: boolean | undefined;
39
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
40
+ } & {
41
+ base: (slotProps?: ({
42
+ position?: "static" | "sticky" | undefined;
43
+ hasBorder?: boolean | undefined;
44
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
45
+ wrapper: (slotProps?: ({
46
+ position?: "static" | "sticky" | undefined;
47
+ hasBorder?: boolean | undefined;
48
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
49
+ toggle: (slotProps?: ({
50
+ position?: "static" | "sticky" | undefined;
51
+ hasBorder?: boolean | undefined;
52
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
53
+ toggleIcon: (slotProps?: ({
54
+ position?: "static" | "sticky" | undefined;
55
+ hasBorder?: boolean | undefined;
56
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
57
+ brand: (slotProps?: ({
58
+ position?: "static" | "sticky" | undefined;
59
+ hasBorder?: boolean | undefined;
60
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
61
+ content: (slotProps?: ({
62
+ position?: "static" | "sticky" | undefined;
63
+ hasBorder?: boolean | undefined;
64
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
65
+ item: (slotProps?: ({
66
+ position?: "static" | "sticky" | undefined;
67
+ hasBorder?: boolean | undefined;
68
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
69
+ menu: (slotProps?: ({
70
+ position?: "static" | "sticky" | undefined;
71
+ hasBorder?: boolean | undefined;
72
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
73
+ menuItem: (slotProps?: ({
74
+ position?: "static" | "sticky" | undefined;
75
+ hasBorder?: boolean | undefined;
76
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
77
+ } & {};
78
+ domRef: import("react").RefObject<HTMLElement | null>;
79
+ height: string | number;
80
+ isMenuOpen: boolean;
81
+ classNames: import("@opengovsg/oui-theme").SlotsToClasses<"toggle" | "content" | "base" | "wrapper" | "item" | "brand" | "menu" | "menuItem" | "toggleIcon"> | undefined;
82
+ setIsMenuOpen: (value: boolean, ...args: any[]) => void;
83
+ menuRef: import("react").RefObject<HTMLButtonElement | null>;
84
+ getBaseProps: import("../system/types").PropGetter;
85
+ getWrapperProps: import("../system/types").PropGetter;
86
+ position: "static" | "sticky";
87
+ }>, useNavbarContext: () => {
88
+ Component: import("../system/types").As<any>;
89
+ slots: {
90
+ base: (slotProps?: ({
91
+ position?: "static" | "sticky" | undefined;
92
+ hasBorder?: boolean | undefined;
93
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
94
+ wrapper: (slotProps?: ({
95
+ position?: "static" | "sticky" | undefined;
96
+ hasBorder?: boolean | undefined;
97
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
98
+ toggle: (slotProps?: ({
99
+ position?: "static" | "sticky" | undefined;
100
+ hasBorder?: boolean | undefined;
101
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
102
+ toggleIcon: (slotProps?: ({
103
+ position?: "static" | "sticky" | undefined;
104
+ hasBorder?: boolean | undefined;
105
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
106
+ brand: (slotProps?: ({
107
+ position?: "static" | "sticky" | undefined;
108
+ hasBorder?: boolean | undefined;
109
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
110
+ content: (slotProps?: ({
111
+ position?: "static" | "sticky" | undefined;
112
+ hasBorder?: boolean | undefined;
113
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
114
+ item: (slotProps?: ({
115
+ position?: "static" | "sticky" | undefined;
116
+ hasBorder?: boolean | undefined;
117
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
118
+ menu: (slotProps?: ({
119
+ position?: "static" | "sticky" | undefined;
120
+ hasBorder?: boolean | undefined;
121
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
122
+ menuItem: (slotProps?: ({
123
+ position?: "static" | "sticky" | undefined;
124
+ hasBorder?: boolean | undefined;
125
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
126
+ } & {
127
+ base: (slotProps?: ({
128
+ position?: "static" | "sticky" | undefined;
129
+ hasBorder?: boolean | undefined;
130
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
131
+ wrapper: (slotProps?: ({
132
+ position?: "static" | "sticky" | undefined;
133
+ hasBorder?: boolean | undefined;
134
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
135
+ toggle: (slotProps?: ({
136
+ position?: "static" | "sticky" | undefined;
137
+ hasBorder?: boolean | undefined;
138
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
139
+ toggleIcon: (slotProps?: ({
140
+ position?: "static" | "sticky" | undefined;
141
+ hasBorder?: boolean | undefined;
142
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
143
+ brand: (slotProps?: ({
144
+ position?: "static" | "sticky" | undefined;
145
+ hasBorder?: boolean | undefined;
146
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
147
+ content: (slotProps?: ({
148
+ position?: "static" | "sticky" | undefined;
149
+ hasBorder?: boolean | undefined;
150
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
151
+ item: (slotProps?: ({
152
+ position?: "static" | "sticky" | undefined;
153
+ hasBorder?: boolean | undefined;
154
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
155
+ menu: (slotProps?: ({
156
+ position?: "static" | "sticky" | undefined;
157
+ hasBorder?: boolean | undefined;
158
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
159
+ menuItem: (slotProps?: ({
160
+ position?: "static" | "sticky" | undefined;
161
+ hasBorder?: boolean | undefined;
162
+ } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
163
+ } & {};
164
+ domRef: import("react").RefObject<HTMLElement | null>;
165
+ height: string | number;
166
+ isMenuOpen: boolean;
167
+ classNames: import("@opengovsg/oui-theme").SlotsToClasses<"toggle" | "content" | "base" | "wrapper" | "item" | "brand" | "menu" | "menuItem" | "toggleIcon"> | undefined;
168
+ setIsMenuOpen: (value: boolean, ...args: any[]) => void;
169
+ menuRef: import("react").RefObject<HTMLButtonElement | null>;
170
+ getBaseProps: import("../system/types").PropGetter;
171
+ getWrapperProps: import("../system/types").PropGetter;
172
+ position: "static" | "sticky";
173
+ };
174
+ //# sourceMappingURL=navbar-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navbar-context.d.ts","sourceRoot":"","sources":["../../../src/navbar/navbar-context.ts"],"names":[],"mappings":"AAKA,eAAO,MAAO,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM1C,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { HtmlUiProps } from "../system/types";
2
+ export interface NavbarItemProps extends HtmlUiProps<"li"> {
3
+ children?: React.ReactNode;
4
+ /**
5
+ * Whether the item is active or not.
6
+ * @default false
7
+ */
8
+ isActive?: boolean;
9
+ }
10
+ export declare const NavbarItem: import("../system/utils").InternalForwardRefRenderFunction<"div", NavbarItemProps, never>;
11
+ //# sourceMappingURL=navbar-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navbar-item.d.ts","sourceRoot":"","sources":["../../../src/navbar/navbar-item.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAKlD,MAAM,WAAW,eAAgB,SAAQ,WAAW,CAAC,IAAI,CAAC;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,UAAU,2FAkBrB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { LocalizedStrings } from "react-aria";
2
+ export declare const i18nStrings: LocalizedStrings;
3
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/navbar/navbar-menu/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,eAAO,MAAM,WAAW,EAAE,gBAiBzB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import type { ClassNameOrFunction } from "@opengovsg/oui-theme";
2
+ import type { HtmlUiProps } from "../../system/types";
3
+ export interface NavbarMenuItemRenderProps {
4
+ isActive: boolean;
5
+ }
6
+ export interface NavbarMenuItemProps extends Omit<HtmlUiProps<"li">, "className"> {
7
+ /**
8
+ * Whether the item is active or not.
9
+ * @default false
10
+ */
11
+ isActive?: boolean;
12
+ children?: React.ReactNode;
13
+ className?: ClassNameOrFunction<NavbarMenuItemRenderProps>;
14
+ }
15
+ export declare const NavbarMenuItem: import("../../system/utils").InternalForwardRefRenderFunction<"li", NavbarMenuItemProps, never>;
16
+ //# sourceMappingURL=item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../../src/navbar/navbar-menu/item.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAG/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAKrD,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,SAAS,CAAC,EAAE,mBAAmB,CAAC,yBAAyB,CAAC,CAAA;CAC3D;AAED,eAAO,MAAM,cAAc,iGAgC1B,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { HtmlUiProps } from "../../system/types";
2
+ export interface NavbarMenuProps extends HtmlUiProps<"ul"> {
3
+ children?: React.ReactNode;
4
+ /**
5
+ * The container element in which the navbar menu overlay portal will be placed.
6
+ * @default below the navbar element
7
+ */
8
+ portalContainer?: Element;
9
+ }
10
+ export declare const NavbarMenu: import("../../system/utils").InternalForwardRefRenderFunction<"ul", NavbarMenuProps, never>;
11
+ //# sourceMappingURL=menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/navbar/navbar-menu/menu.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAKrD,MAAM,WAAW,eAAgB,SAAQ,WAAW,CAAC,IAAI,CAAC;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,eAAO,MAAM,UAAU,6FAqDtB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from "react";
2
+ import type { ToggleButtonProps } from "react-aria-components";
3
+ import type { ButtonVariantProps, SlotsToClasses } from "@opengovsg/oui-theme";
4
+ export interface NavbarMenuToggleProps extends ToggleButtonProps, Pick<ButtonVariantProps, "size" | "radius" | "isIconOnly"> {
5
+ /**
6
+ * The icon to display.
7
+ */
8
+ icon?: ReactNode | ((isOpen: boolean) => ReactNode) | null;
9
+ classNames?: SlotsToClasses<"toggle" | "toggleIcon">;
10
+ }
11
+ export declare const NavbarMenuToggle: ({ icon, className, onChange, classNames, size, radius, isIconOnly, ...props }: NavbarMenuToggleProps) => import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=toggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../src/navbar/navbar-menu/toggle.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAK9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAM9E,MAAM,WAAW,qBACf,SAAQ,iBAAiB,EACvB,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,QAAQ,GAAG,YAAY,CAAC;IAC5D;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,MAAM,EAAE,OAAO,KAAK,SAAS,CAAC,GAAG,IAAI,CAAA;IAC1D,UAAU,CAAC,EAAE,cAAc,CAAC,QAAQ,GAAG,YAAY,CAAC,CAAA;CACrD;AAED,eAAO,MAAM,gBAAgB,kFAS1B,qBAAqB,4CAiFvB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { UseNavbarProps } from "./use-navbar";
2
+ export interface NavbarProps extends UseNavbarProps {
3
+ children?: React.ReactNode | React.ReactNode[];
4
+ }
5
+ export declare const Navbar: import("../system/utils").InternalForwardRefRenderFunction<"div", NavbarProps, never>;
6
+ //# sourceMappingURL=navbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../src/navbar/navbar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAOlD,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;CAC/C;AAED,eAAO,MAAM,MAAM,uFAuBjB,CAAA"}