@lumx/react 4.19.1-alpha.4 → 4.19.1-alpha.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.
- package/_internal/{BvaFEHZn.js → CcLi-Wuu.js} +6 -3
- package/_internal/CcLi-Wuu.js.map +1 -0
- package/index.d.ts +78 -72
- package/index.js +828 -576
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/utils/index.d.ts +6 -2
- package/utils/index.js +1 -1
- package/_internal/BvaFEHZn.js.map +0 -1
|
@@ -210,12 +210,15 @@ const InfiniteScroll = ({
|
|
|
210
210
|
const {
|
|
211
211
|
current: element
|
|
212
212
|
} = elementRef;
|
|
213
|
-
if (!element) {
|
|
213
|
+
if (!element || !callback) {
|
|
214
214
|
return undefined;
|
|
215
215
|
}
|
|
216
216
|
return setupInfiniteScrollObserver(element, callback, options);
|
|
217
|
+
// `options?.root` starts as `null` (before the scrollable list's ref attaches) and is
|
|
218
|
+
// then set to the real element — must be a dep, or the observer gets stuck watching
|
|
219
|
+
// the wrong root (falling back to the viewport) for the component's whole lifetime.
|
|
217
220
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
218
|
-
}, [elementRef.current, callback]);
|
|
221
|
+
}, [elementRef.current, callback, options?.root]);
|
|
219
222
|
return InfiniteScroll$1({
|
|
220
223
|
ref: elementRef
|
|
221
224
|
});
|
|
@@ -259,4 +262,4 @@ const Portal = ({
|
|
|
259
262
|
};
|
|
260
263
|
|
|
261
264
|
export { ClickAwayProvider as C, DisabledStateProvider as D, InfiniteScroll as I, Portal as P, PortalProvider as a, useDisabledStateContext as u };
|
|
262
|
-
//# sourceMappingURL=
|
|
265
|
+
//# sourceMappingURL=CcLi-Wuu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CcLi-Wuu.js","sources":["../../src/utils/disabled/DisabledStateContext.tsx","../../../lumx-core/src/js/utils/ClickAway/index.ts","../../src/hooks/useClickAway.tsx","../../src/utils/ClickAwayProvider/ClickAwayProvider.tsx","../../../lumx-core/src/js/utils/InfiniteScroll/setupInfiniteScrollObserver.ts","../../../lumx-core/src/js/utils/InfiniteScroll/index.tsx","../../src/utils/InfiniteScroll/InfiniteScroll.tsx","../../src/utils/Portal/PortalProvider.tsx","../../src/utils/Portal/Portal.tsx"],"sourcesContent":["import React, { useContext } from 'react';\n\nimport { DisabledStateContextValue } from '@lumx/core/js/utils/disabledState';\n\nexport const DisabledStateContext = React.createContext<DisabledStateContextValue>({ state: null });\n\nexport type DisabledStateProviderProps = DisabledStateContextValue & {\n children: React.ReactNode;\n};\n\n/**\n * Disabled state provider.\n * All nested LumX Design System components inherit this disabled state.\n */\nexport function DisabledStateProvider({ children, ...value }: DisabledStateProviderProps) {\n return <DisabledStateContext.Provider value={value}>{children}</DisabledStateContext.Provider>;\n}\n\n/**\n * Get DisabledState context value\n */\nexport function useDisabledStateContext(): DisabledStateContextValue {\n return useContext(DisabledStateContext);\n}\n","/**\n * Shared types and logic for ClickAway detection.\n *\n * ClickAway detects clicks outside a set of elements and triggers a callback.\n * The core logic (event listening + target checking) is framework-agnostic.\n * Framework-specific wrappers (React hook, Vue composable) and context providers\n * (React context, Vue provide/inject) are implemented in each framework package.\n */\n\nimport type { Falsy } from '@lumx/core/js/types';\n\n/** Event types that trigger click away detection. */\nexport const CLICK_AWAY_EVENT_TYPES = ['mousedown', 'touchstart'] as const;\n\n/** Callback triggered when a click away is detected. */\nexport type ClickAwayCallback = EventListener | Falsy;\n\n/**\n * Check if the click event targets are outside all the given elements.\n *\n * @param targets - The event target elements (from `event.target` and `event.composedPath()`).\n * @param elements - The elements considered \"inside\" the click away context.\n * @returns `true` if the click is outside all elements (i.e. a click away).\n */\nexport function isClickAway(targets: HTMLElement[], elements: HTMLElement[]): boolean {\n return !elements.some((element) => element instanceof Node && targets.some((target) => element.contains(target)));\n}\n\n/**\n * Imperative setup for click away detection.\n * Adds mousedown/touchstart listeners on `document` and calls the callback when a click\n * occurs outside the elements returned by `getElements`.\n *\n * Note: when `getElements` returns an empty array, any click is considered a click away.\n * Callers should guard against calling `setupClickAway` when no refs are registered.\n *\n * @param getElements - Getter returning the current list of elements considered \"inside\".\n * @param callback - Callback to invoke on click away.\n * @returns A teardown function that removes the event listeners.\n */\nexport function setupClickAway(\n getElements: () => HTMLElement[],\n callback: ClickAwayCallback,\n): (() => void) | undefined {\n if (!callback) {\n return undefined;\n }\n\n const listener: EventListener = (evt) => {\n const targets = [evt.composedPath?.()[0], evt.target].filter((t): t is HTMLElement => t instanceof Node);\n const elements = getElements();\n if (isClickAway(targets, elements)) {\n callback(evt);\n }\n };\n\n CLICK_AWAY_EVENT_TYPES.forEach((evtType) => document.addEventListener(evtType, listener));\n return () => {\n CLICK_AWAY_EVENT_TYPES.forEach((evtType) => document.removeEventListener(evtType, listener));\n };\n}\n","import { RefObject, useEffect } from 'react';\n\nimport { Falsy } from '@lumx/react/utils/type';\nimport { setupClickAway } from '@lumx/core/js/utils/ClickAway';\n\nexport interface ClickAwayParameters {\n /**\n * A callback function to call when the user clicks away from the elements.\n */\n callback: EventListener | Falsy;\n /**\n * Elements considered within the click away context (clicking outside them will trigger the click away callback).\n */\n childrenRefs: RefObject<Array<RefObject<HTMLElement>>>;\n}\n\n/**\n * Listen to clicks away from the given elements and callback the passed in function.\n *\n * Warning: If you need to detect click away on nested React portals, please use the `ClickAwayProvider` component.\n */\nexport function useClickAway({ callback, childrenRefs }: ClickAwayParameters): void {\n useEffect(() => {\n const getElements = () => {\n const refs = childrenRefs.current;\n if (!refs) return [];\n return refs.map((ref) => ref?.current).filter(Boolean) as HTMLElement[];\n };\n return setupClickAway(getElements, callback);\n }, [callback, childrenRefs]);\n}\n","import { createContext, RefObject, useContext, useEffect, useMemo, useRef } from 'react';\nimport { ClickAwayParameters, useClickAway } from '@lumx/react/hooks/useClickAway';\n\ninterface ContextValue {\n childrenRefs: Array<RefObject<HTMLElement>>;\n addRefs(...newChildrenRefs: Array<RefObject<HTMLElement>>): void;\n}\n\nconst ClickAwayAncestorContext = createContext<ContextValue | null>(null);\n\ninterface ClickAwayProviderProps extends ClickAwayParameters {\n /**\n * (Optional) Element that should be considered as part of the parent\n */\n parentRef?: RefObject<HTMLElement>;\n /**\n * Children\n */\n children?: React.ReactNode;\n}\n\n/**\n * Component combining the `useClickAway` hook with a React context to hook into the React component tree and make sure\n * we take into account both the DOM tree and the React tree to detect click away.\n *\n * @return the react component.\n */\nexport const ClickAwayProvider: React.FC<ClickAwayProviderProps> = ({\n children,\n callback,\n childrenRefs,\n parentRef,\n}) => {\n const parentContext = useContext(ClickAwayAncestorContext);\n const currentContext = useMemo(() => {\n const context: ContextValue = {\n childrenRefs: [],\n /**\n * Add element refs to the current context and propagate to the parent context.\n */\n addRefs(...newChildrenRefs) {\n // Add element refs that should be considered as inside the click away context.\n context.childrenRefs.push(...newChildrenRefs);\n\n if (parentContext) {\n // Also add then to the parent context\n parentContext.addRefs(...newChildrenRefs);\n if (parentRef) {\n // The parent element is also considered as inside the parent click away context but not inside the current context\n parentContext.addRefs(parentRef);\n }\n }\n },\n };\n return context;\n }, [parentContext, parentRef]);\n\n useEffect(() => {\n const { current: currentRefs } = childrenRefs;\n if (!currentRefs) {\n return;\n }\n currentContext.addRefs(...currentRefs);\n }, [currentContext, childrenRefs]);\n\n useClickAway({ callback, childrenRefs: useRef(currentContext.childrenRefs) });\n return <ClickAwayAncestorContext.Provider value={currentContext}>{children}</ClickAwayAncestorContext.Provider>;\n};\nClickAwayProvider.displayName = 'ClickAwayProvider';\n","type EventCallback = (evt?: Event) => void;\n\n/**\n * Sets up an IntersectionObserver on the given element.\n * Calls `callback` when at least one observed entry is intersecting.\n * Returns a cleanup function that unobserves the element.\n */\nexport function setupInfiniteScrollObserver(\n element: Element,\n callback: EventCallback,\n options?: IntersectionObserverInit,\n): () => void {\n const observer = new IntersectionObserver((entries = []) => {\n const hasIntersection = entries.some((entry) => entry.isIntersecting);\n\n if (!hasIntersection) {\n return;\n }\n\n callback();\n }, options);\n\n observer.observe(element);\n\n return () => {\n observer.unobserve(element);\n };\n}\n","import type { CommonRef } from '../../types';\n\nexport { setupInfiniteScrollObserver } from './setupInfiniteScrollObserver';\n\nexport const INFINITE_SCROLL_CLASSNAME = 'lumx-infinite-scroll-anchor';\n\nexport interface InfiniteScrollProps {\n /**\n * Callback when infinite scroll component is in view.\n * Omit (e.g. while loading) to temporarily disable without changing the callback's\n * identity when re-enabled — keeps the underlying observer stable.\n */\n // eslint-disable-next-line react/no-unused-prop-types\n callback?(evt?: Event): void;\n /** Customize intersection observer option */\n // eslint-disable-next-line react/no-unused-prop-types\n options?: IntersectionObserverInit;\n}\n\n/**\n * Framework-agnostic InfiniteScroll sentinel component.\n *\n * Renders a tiny invisible div that triggers a callback when it enters the viewport\n * (or intersects its root element) via IntersectionObserver.\n *\n * The div has a small height (4px) to avoid issues when a browser zoom is applied,\n * where a zero-height element might not trigger IntersectionObserver reliably.\n */\nexport const InfiniteScroll = ({ ref }: { ref?: CommonRef }) => (\n // In order to avoid issues when a zoom is added to the browser, we add a small height to the div so that\n // the intersection has a higher chance of working correctly.\n <div ref={ref} aria-hidden=\"true\" className={INFINITE_SCROLL_CLASSNAME} style={{ height: '4px' }} />\n);\n","import React, { useEffect } from 'react';\nimport {\n InfiniteScroll as UI,\n type InfiniteScrollProps,\n setupInfiniteScrollObserver,\n} from '@lumx/core/js/utils/InfiniteScroll';\n\nexport type { InfiniteScrollProps };\n\n/**\n * Handles basic callback pattern by using intersection observers.\n */\nexport const InfiniteScroll: React.FC<InfiniteScrollProps> = ({ callback, options }) => {\n const elementRef = React.useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n const { current: element } = elementRef;\n if (!element || !callback) {\n return undefined;\n }\n\n return setupInfiniteScrollObserver(element, callback, options);\n // `options?.root` starts as `null` (before the scrollable list's ref attaches) and is\n // then set to the real element — must be a dep, or the observer gets stuck watching\n // the wrong root (falling back to the viewport) for the component's whole lifetime.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [elementRef.current, callback, options?.root]);\n\n return UI({ ref: elementRef });\n};\n","import React from 'react';\nimport type { PortalInit } from '@lumx/core/js/utils/Portal';\n\nexport type { PortalInit, PortalProviderProps } from '@lumx/core/js/utils/Portal';\n\nexport const PortalContext = React.createContext<PortalInit>(() => ({ container: document.body }));\n\nexport interface ReactPortalProviderProps {\n children?: React.ReactNode;\n value: PortalInit;\n}\n\n/**\n * Customize where <Portal> wrapped elements render (tooltip, popover, dialog, etc.)\n */\nexport const PortalProvider: React.FC<ReactPortalProviderProps> = PortalContext.Provider;\n","import React from 'react';\nimport { createPortal } from 'react-dom';\nimport { PortalContext } from './PortalProvider';\n\nexport type { PortalProps } from '@lumx/core/js/utils/Portal';\n\nexport interface ReactPortalProps {\n enabled?: boolean;\n children: React.ReactNode;\n}\n\n/**\n * Render children in a portal outside the current DOM position\n * (defaults to `document.body` but can be customized with the PortalContextProvider)\n */\nexport const Portal: React.FC<ReactPortalProps> = ({ children, enabled = true }) => {\n const init = React.useContext(PortalContext);\n const context = React.useMemo(\n () => {\n return enabled ? init() : null;\n },\n // Only update on 'enabled'\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [enabled],\n );\n\n React.useLayoutEffect(() => {\n return context?.teardown;\n }, [context?.teardown, enabled]);\n\n const { container } = context ?? {};\n if (!container || typeof container === 'string') {\n return <>{children}</>;\n }\n return createPortal(children, container);\n};\n"],"names":["DisabledStateContext","React","createContext","state","DisabledStateProvider","children","value","_jsx","Provider","useDisabledStateContext","useContext","CLICK_AWAY_EVENT_TYPES","isClickAway","targets","elements","some","element","Node","target","contains","setupClickAway","getElements","callback","undefined","listener","evt","composedPath","filter","t","forEach","evtType","document","addEventListener","removeEventListener","useClickAway","childrenRefs","useEffect","refs","current","map","ref","Boolean","ClickAwayAncestorContext","ClickAwayProvider","parentRef","parentContext","currentContext","useMemo","context","addRefs","newChildrenRefs","push","currentRefs","useRef","displayName","setupInfiniteScrollObserver","options","observer","IntersectionObserver","entries","hasIntersection","entry","isIntersecting","observe","unobserve","INFINITE_SCROLL_CLASSNAME","InfiniteScroll","className","style","height","elementRef","root","UI","PortalContext","container","body","PortalProvider","Portal","enabled","init","useLayoutEffect","teardown","_Fragment","createPortal"],"mappings":";;;;AAIO,MAAMA,oBAAoB,gBAAGC,cAAK,CAACC,aAAa,CAA4B;AAAEC,EAAAA,KAAK,EAAE;AAAK,CAAC,CAAC;AAMnG;AACA;AACA;AACA;AACO,SAASC,qBAAqBA,CAAC;EAAEC,QAAQ;EAAE,GAAGC;AAAkC,CAAC,EAAE;AACtF,EAAA,oBAAOC,GAAA,CAACP,oBAAoB,CAACQ,QAAQ,EAAA;AAACF,IAAAA,KAAK,EAAEA,KAAM;AAAAD,IAAAA,QAAA,EAAEA;AAAQ,GAAgC,CAAC;AAClG;;AAEA;AACA;AACA;AACO,SAASI,uBAAuBA,GAA8B;EACjE,OAAOC,UAAU,CAACV,oBAAoB,CAAC;AAC3C;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA;AACO,MAAMW,sBAAsB,GAAG,CAAC,WAAW,EAAE,YAAY,CAAU;;AAE1E;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,WAAWA,CAACC,OAAsB,EAAEC,QAAuB,EAAW;EAClF,OAAO,CAACA,QAAQ,CAACC,IAAI,CAAEC,OAAO,IAAKA,OAAO,YAAYC,IAAI,IAAIJ,OAAO,CAACE,IAAI,CAAEG,MAAM,IAAKF,OAAO,CAACG,QAAQ,CAACD,MAAM,CAAC,CAAC,CAAC;AACrH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,cAAcA,CAC1BC,WAAgC,EAChCC,QAA2B,EACH;EACxB,IAAI,CAACA,QAAQ,EAAE;AACX,IAAA,OAAOC,SAAS;AACpB,EAAA;EAEA,MAAMC,QAAuB,GAAIC,GAAG,IAAK;IACrC,MAAMZ,OAAO,GAAG,CAACY,GAAG,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AA;AAAA7E,MAAAA,QAAA,EAAGA;AAAQ,KAAG,CAAC;AAC1B,EAAA;AACA,EAAA,oBAAO8E,YAAY,CAAC9E,QAAQ,EAAEqE,SAAS,CAAC;AAC5C;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HorizontalAlignment as HorizontalAlignment$1, Orientation as Orientation$1, Alignment as Alignment$1, Size as Size$1, AspectRatio as AspectRatio$1, ColorPalette as ColorPalette$1, Kind as Kind$1, Emphasis as Emphasis$1, Theme as Theme$1 } from '@lumx/core/js/constants';
|
|
2
2
|
export * from '@lumx/core/js/constants';
|
|
3
3
|
import * as _lumx_core_js_types from '@lumx/core/js/types';
|
|
4
|
-
import { ValueOf as ValueOf$1, GenericProps as GenericProps$1, HasTheme as HasTheme$1, PropsToOverride, HasAriaDisabled as HasAriaDisabled$1, HasRequiredLinkHref as HasRequiredLinkHref$1, HasClassName as HasClassName$1, HasCloseMode as HasCloseMode$1, JSXElement as JSXElement$1, CommonRef as CommonRef$1, Falsy, HeadingElement as HeadingElement$1, HasAriaLabelOrLabelledBy
|
|
4
|
+
import { ValueOf as ValueOf$1, GenericProps as GenericProps$1, HasTheme as HasTheme$1, PropsToOverride, HasAriaDisabled as HasAriaDisabled$1, HasRequiredLinkHref as HasRequiredLinkHref$1, HasClassName as HasClassName$1, HasCloseMode as HasCloseMode$1, JSXElement as JSXElement$1, CommonRef as CommonRef$1, Falsy, HeadingElement as HeadingElement$1, HasAriaLabelOrLabelledBy, NamedProps } from '@lumx/core/js/types';
|
|
5
5
|
export * from '@lumx/core/js/types';
|
|
6
6
|
import * as React$1 from 'react';
|
|
7
7
|
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, RefObject, SetStateAction, Key, CSSProperties, ElementType as ElementType$1, HTMLInputTypeAttribute, ComponentProps, ImgHTMLAttributes } from 'react';
|
|
@@ -226,24 +226,6 @@ type ColorVariant = ValueOf$1<typeof ColorVariant>;
|
|
|
226
226
|
/** ColorPalette with all possible color variant combination */
|
|
227
227
|
type ColorWithVariants = ColorPalette | Exclude<`${ColorPalette}-${ColorVariant}`, `light-D${number}` | `dark-D${number}`>;
|
|
228
228
|
|
|
229
|
-
/**
|
|
230
|
-
* Require either `aria-label` or `arial-labelledby` prop.
|
|
231
|
-
* If none are set, the order will prioritize `aria-labelledby` over `aria-label` as it
|
|
232
|
-
* needs a visible element.
|
|
233
|
-
*/
|
|
234
|
-
type HasAriaLabelOrLabelledBy<T = string | undefined> = T extends string ? {
|
|
235
|
-
/**
|
|
236
|
-
* The id of the element to use as title of the dialog. Can be within or out of the dialog.
|
|
237
|
-
* Although it is not recommended, aria-label can be used instead if no visible element is available.
|
|
238
|
-
*/
|
|
239
|
-
'aria-labelledby': T;
|
|
240
|
-
/** The label of the dialog. */
|
|
241
|
-
'aria-label'?: undefined;
|
|
242
|
-
} : {
|
|
243
|
-
'aria-label': string;
|
|
244
|
-
'aria-labelledby'?: undefined;
|
|
245
|
-
};
|
|
246
|
-
|
|
247
229
|
interface HasClassName {
|
|
248
230
|
/**
|
|
249
231
|
* Class name forwarded to the root element of the component.
|
|
@@ -815,7 +797,7 @@ interface ButtonProps extends GenericProps$1, ReactToJSX<ButtonProps$1> {
|
|
|
815
797
|
* @param ref Component ref.
|
|
816
798
|
* @return React element.
|
|
817
799
|
*/
|
|
818
|
-
declare const Button: Comp<ButtonProps,
|
|
800
|
+
declare const Button: Comp<ButtonProps, HTMLAnchorElement | HTMLButtonElement>;
|
|
819
801
|
|
|
820
802
|
interface IconButtonProps$1 extends BaseButtonProps {
|
|
821
803
|
/**
|
|
@@ -1231,6 +1213,10 @@ declare const ListDivider: Comp<ListDividerProps, HTMLLIElement>;
|
|
|
1231
1213
|
* Defines the props of the component.
|
|
1232
1214
|
*/
|
|
1233
1215
|
interface TextProps$1 extends HasClassName {
|
|
1216
|
+
/**
|
|
1217
|
+
* HTML id.
|
|
1218
|
+
*/
|
|
1219
|
+
id?: string;
|
|
1234
1220
|
/**
|
|
1235
1221
|
* Color variant.
|
|
1236
1222
|
*/
|
|
@@ -2214,7 +2200,7 @@ declare const Combobox: {
|
|
|
2214
2200
|
/** Provides shared combobox context (handle, listbox ID, anchor ref) to all sub-components. */
|
|
2215
2201
|
Provider: typeof ComboboxProvider;
|
|
2216
2202
|
/** Button trigger for select-only combobox mode with keyboard navigation and typeahead. */
|
|
2217
|
-
Button: (<E extends React$1.ElementType = Comp<ButtonProps,
|
|
2203
|
+
Button: (<E extends React$1.ElementType = Comp<ButtonProps, HTMLAnchorElement | HTMLButtonElement>>(props: Omit<HasPolymorphicAs$1<E>, "children" | "role" | "aria-activedescendant" | "aria-controls" | "aria-expanded" | "aria-haspopup"> & _lumx_core_js_types.HasRequiredLinkHref<E> & ReactToJSX<ComboboxButtonProps$1> & React$1.ComponentProps<E> & {
|
|
2218
2204
|
ref?: ComponentRef<E> | undefined;
|
|
2219
2205
|
}) => React.JSX.Element) & {
|
|
2220
2206
|
displayName: string;
|
|
@@ -2448,14 +2434,64 @@ interface DialogProps extends GenericProps$1, HasCloseMode$1, BaseDialogProps {
|
|
|
2448
2434
|
/** Children */
|
|
2449
2435
|
children?: React__default.ReactNode;
|
|
2450
2436
|
}
|
|
2437
|
+
declare const Dialog: Comp<DialogProps, HTMLDivElement>;
|
|
2438
|
+
|
|
2439
|
+
/**
|
|
2440
|
+
* Defines the props of the component.
|
|
2441
|
+
*/
|
|
2442
|
+
interface HeadingProps$1 extends Partial<TextProps$1> {
|
|
2443
|
+
/**
|
|
2444
|
+
* Display a specific heading level instead of the one provided by parent context provider.
|
|
2445
|
+
*/
|
|
2446
|
+
as?: HeadingElement;
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
interface HeadingProps extends GenericProps$1, HeadingProps$1 {
|
|
2450
|
+
}
|
|
2451
|
+
/**
|
|
2452
|
+
* Renders a heading component.
|
|
2453
|
+
* Extends the `Text` Component with the heading level automatically computed based on
|
|
2454
|
+
* the current level provided by the context.
|
|
2455
|
+
*/
|
|
2456
|
+
declare const Heading: Comp<HeadingProps, HTMLElement>;
|
|
2457
|
+
|
|
2458
|
+
interface HeadingLevelProviderProps {
|
|
2459
|
+
/** The heading level to start at. If left undefined, the parent context will be used, if any. */
|
|
2460
|
+
level?: number;
|
|
2461
|
+
/** The children to display */
|
|
2462
|
+
children: ReactNode;
|
|
2463
|
+
}
|
|
2464
|
+
/**
|
|
2465
|
+
* Provide a new heading level context.
|
|
2466
|
+
*/
|
|
2467
|
+
declare const HeadingLevelProvider: React.FC<HeadingLevelProviderProps>;
|
|
2468
|
+
|
|
2469
|
+
declare const useHeadingLevel: () => {
|
|
2470
|
+
level: number;
|
|
2471
|
+
headingElement: _lumx_core_js_types.HeadingElement;
|
|
2472
|
+
};
|
|
2473
|
+
|
|
2474
|
+
type DialogHeadingProps = HeadingProps;
|
|
2451
2475
|
/**
|
|
2452
|
-
* Dialog
|
|
2476
|
+
* Names the enclosing dialog-like container (`Dialog`, `Lightbox`, `PopoverDialog`, ...).
|
|
2453
2477
|
*
|
|
2454
|
-
*
|
|
2455
|
-
*
|
|
2456
|
-
*
|
|
2478
|
+
* Thin wrapper over `Heading` that generates its own id (or uses the consumer-supplied `id`),
|
|
2479
|
+
* and registers it with the nearest ids registry on mount so the container can link itself to
|
|
2480
|
+
* this heading via `aria-labelledby`. Deregisters on unmount.
|
|
2481
|
+
*
|
|
2482
|
+
* Defaults its typography to `Typography.title` (overridable via the `typography` prop).
|
|
2483
|
+
*
|
|
2484
|
+
* If two `DialogHeading`s are rendered within the same container, the last one registered wins.
|
|
2485
|
+
*
|
|
2486
|
+
* @example
|
|
2487
|
+
* <Dialog isOpen={isOpen}>
|
|
2488
|
+
* <header>
|
|
2489
|
+
* <Toolbar label={<DialogHeading>My dialog</DialogHeading>} />
|
|
2490
|
+
* </header>
|
|
2491
|
+
* ...
|
|
2492
|
+
* </Dialog>
|
|
2457
2493
|
*/
|
|
2458
|
-
declare const
|
|
2494
|
+
declare const DialogHeading: Comp<HeadingProps, HTMLElement>;
|
|
2459
2495
|
|
|
2460
2496
|
/**
|
|
2461
2497
|
* Defines the props of the component.
|
|
@@ -2740,7 +2776,7 @@ declare const GenericBlockGapSize: Pick<{
|
|
|
2740
2776
|
readonly medium: "medium";
|
|
2741
2777
|
readonly big: "big";
|
|
2742
2778
|
readonly huge: "huge";
|
|
2743
|
-
}, "big" | "
|
|
2779
|
+
}, "big" | "tiny" | "medium" | "regular" | "huge">;
|
|
2744
2780
|
type GenericBlockGapSize = ValueOf<typeof GenericBlockGapSize>;
|
|
2745
2781
|
|
|
2746
2782
|
interface GenericBlockProps$1 extends FlexBoxProps$1 {
|
|
@@ -2845,41 +2881,6 @@ interface GenericBlock extends BaseGenericBlock {
|
|
|
2845
2881
|
}
|
|
2846
2882
|
declare const GenericBlock: GenericBlock;
|
|
2847
2883
|
|
|
2848
|
-
/**
|
|
2849
|
-
* Defines the props of the component.
|
|
2850
|
-
*/
|
|
2851
|
-
interface HeadingProps$1 extends Partial<TextProps$1> {
|
|
2852
|
-
/**
|
|
2853
|
-
* Display a specific heading level instead of the one provided by parent context provider.
|
|
2854
|
-
*/
|
|
2855
|
-
as?: HeadingElement;
|
|
2856
|
-
}
|
|
2857
|
-
|
|
2858
|
-
interface HeadingProps extends GenericProps$1, HeadingProps$1 {
|
|
2859
|
-
}
|
|
2860
|
-
/**
|
|
2861
|
-
* Renders a heading component.
|
|
2862
|
-
* Extends the `Text` Component with the heading level automatically computed based on
|
|
2863
|
-
* the current level provided by the context.
|
|
2864
|
-
*/
|
|
2865
|
-
declare const Heading: Comp<HeadingProps, HTMLElement>;
|
|
2866
|
-
|
|
2867
|
-
interface HeadingLevelProviderProps {
|
|
2868
|
-
/** The heading level to start at. If left undefined, the parent context will be used, if any. */
|
|
2869
|
-
level?: number;
|
|
2870
|
-
/** The children to display */
|
|
2871
|
-
children: ReactNode;
|
|
2872
|
-
}
|
|
2873
|
-
/**
|
|
2874
|
-
* Provide a new heading level context.
|
|
2875
|
-
*/
|
|
2876
|
-
declare const HeadingLevelProvider: React.FC<HeadingLevelProviderProps>;
|
|
2877
|
-
|
|
2878
|
-
declare const useHeadingLevel: () => {
|
|
2879
|
-
level: number;
|
|
2880
|
-
headingElement: _lumx_core_js_types.HeadingElement;
|
|
2881
|
-
};
|
|
2882
|
-
|
|
2883
2884
|
type GridGutterSize = Extract<Size$1, 'regular' | 'big' | 'huge'>;
|
|
2884
2885
|
/**
|
|
2885
2886
|
* Defines the props of the component.
|
|
@@ -2970,7 +2971,7 @@ interface GridColumnProps extends GenericProps$1, ReactToJSX<GridColumnProps$1>
|
|
|
2970
2971
|
*/
|
|
2971
2972
|
declare const GridColumn: Comp<GridColumnProps, HTMLElement>;
|
|
2972
2973
|
|
|
2973
|
-
declare const ICON_SIZES: ("
|
|
2974
|
+
declare const ICON_SIZES: ("s" | "m" | "xxs" | "xs" | "l" | "xl" | "xxl")[];
|
|
2974
2975
|
|
|
2975
2976
|
type IconSizes = (typeof ICON_SIZES)[number];
|
|
2976
2977
|
/**
|
|
@@ -3410,6 +3411,7 @@ interface LightboxProps extends GenericProps$1, ReactToJSX<BaseLightboxProps> {
|
|
|
3410
3411
|
/** Children */
|
|
3411
3412
|
children?: React.ReactNode;
|
|
3412
3413
|
}
|
|
3414
|
+
|
|
3413
3415
|
/**
|
|
3414
3416
|
* Lightbox component.
|
|
3415
3417
|
*
|
|
@@ -3471,7 +3473,7 @@ interface LinkProps extends GenericProps$1, ReactToJSX<LinkProps$1> {
|
|
|
3471
3473
|
* @param ref Component ref.
|
|
3472
3474
|
* @return React element.
|
|
3473
3475
|
*/
|
|
3474
|
-
declare const Link: Comp<LinkProps,
|
|
3476
|
+
declare const Link: Comp<LinkProps, HTMLAnchorElement | HTMLButtonElement>;
|
|
3475
3477
|
|
|
3476
3478
|
/**
|
|
3477
3479
|
* Defines the props of the component.
|
|
@@ -3742,7 +3744,7 @@ type NavigationProps = React.ComponentProps<'nav'> & HasClassName$1 & HasTheme$1
|
|
|
3742
3744
|
/** Content of the navigation. These components should be of type NavigationItem to be rendered */
|
|
3743
3745
|
children?: React.ReactNode;
|
|
3744
3746
|
orientation?: Orientation$1;
|
|
3745
|
-
} & HasAriaLabelOrLabelledBy
|
|
3747
|
+
} & HasAriaLabelOrLabelledBy;
|
|
3746
3748
|
type SubComponents = {
|
|
3747
3749
|
Section: typeof NavigationSection;
|
|
3748
3750
|
Item: typeof NavigationItem;
|
|
@@ -3781,18 +3783,24 @@ declare const Notification: Comp<NotificationProps, HTMLDivElement>;
|
|
|
3781
3783
|
|
|
3782
3784
|
/**
|
|
3783
3785
|
* PopoverDialog props.
|
|
3784
|
-
* The PopoverDialog has the same props as the Popover
|
|
3786
|
+
* The PopoverDialog has the same props as the Popover, plus optional accessible-name props.
|
|
3787
|
+
* An accessible name can be provided via `label`, `aria-label`, `aria-labelledby`, or by
|
|
3788
|
+
* rendering a `DialogHeading` inside the dialog (which names it via the internal label
|
|
3789
|
+
* registry) - at least one of these should be used.
|
|
3785
3790
|
*/
|
|
3786
|
-
type PopoverDialogProps$1 = PopoverProps$1 &
|
|
3791
|
+
type PopoverDialogProps$1 = PopoverProps$1 & Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> & {
|
|
3787
3792
|
/** Accessible label for the dialog (alternative to aria-label prop). */
|
|
3788
3793
|
label?: string;
|
|
3789
3794
|
};
|
|
3790
3795
|
|
|
3791
3796
|
/**
|
|
3792
3797
|
* PopoverDialog props.
|
|
3793
|
-
* The PopoverDialog has the same props as the Popover
|
|
3798
|
+
* The PopoverDialog has the same props as the Popover, plus optional accessible-name props
|
|
3799
|
+
* (`label`/`aria-label`/`aria-labelledby`). An accessible name can also be provided by rendering
|
|
3800
|
+
* a `DialogHeading` inside the dialog - at least one of these should be used.
|
|
3794
3801
|
*/
|
|
3795
3802
|
type PopoverDialogProps = PopoverProps & Omit<PopoverDialogProps$1, keyof PopoverProps$1>;
|
|
3803
|
+
|
|
3796
3804
|
/**
|
|
3797
3805
|
* PopoverDialog component.
|
|
3798
3806
|
* Defines a popover that acts like a dialog:
|
|
@@ -5316,8 +5324,6 @@ interface CommonTabProps extends HasClassName {
|
|
|
5316
5324
|
id?: string;
|
|
5317
5325
|
/** Whether the tab is active or not. */
|
|
5318
5326
|
isActive?: boolean;
|
|
5319
|
-
/** Synonym for `isActive` — `'page'` marks the tab as active (WAI-ARIA nav-link convention). */
|
|
5320
|
-
'aria-current'?: 'page' | boolean;
|
|
5321
5327
|
/**
|
|
5322
5328
|
* WAI-ARIA `tab` role, resolved by the framework wrapper from `TabProvider` presence:
|
|
5323
5329
|
* `'tab'` inside a provider (classic tab mode), `undefined` outside (nav-link mode).
|
|
@@ -5858,5 +5864,5 @@ declare const ThemeProvider: React__default.FC<{
|
|
|
5858
5864
|
/** Get the theme in the current context. */
|
|
5859
5865
|
declare function useTheme(): ThemeContextValue;
|
|
5860
5866
|
|
|
5861
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, CLASSNAME$2 as CLASSNAME, COMPONENT_NAME$2 as COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, MenuButton, ListDivider as MenuDivider, MenuItem, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectButton, SelectMultiple, SelectMultipleField, SelectTextField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, CLASSNAME as TIME_PICKER_FIELD_CLASSNAME, COMPONENT_NAME as TIME_PICKER_FIELD_COMPONENT_NAME, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableCellVariant as TableCellVariantType, TableHeader, TableRow, Text, TextField, ThOrder, ThOrder as ThOrderType, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, TimePickerField, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
5862
|
-
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, ComboboxButtonProps, ComboboxInputProps, ComboboxListProps, ComboboxOptionActionProps, ComboboxOptionMoreInfoProps, ComboboxOptionProps, ComboboxOptionSkeletonProps, ComboboxPopoverComponentProps, ComboboxPopoverProps, ComboboxProviderProps, ComboboxSectionProps, ComboboxStateProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GenericBlockSectionProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSectionProps, ListSubheaderProps, MarginAutoAlignment, MenuButtonProps, ListDividerProps as MenuDividerProps, MenuItemActionProps, MenuItemProps, MessageProps, MosaicProps, MultipleSelectButtonProps, MultipleSelectTextFieldProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverHeight, PopoverProps, PopoverWidth, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectButtonProps, SelectListStatus as SelectButtonStatus, SelectButtonTranslations, SelectListStatus, SelectMultipleProps, SelectProps, SelectTextFieldProps, SelectListStatus as SelectTextFieldStatus, SelectTextFieldTranslations, SelectionChipGroupProps, SideNavigationItemProps, SideNavigationProps, SingleSelectButtonProps, SingleSelectTextFieldProps, SkeletonCircleProps, SkeletonRectangleProps, SkeletonTypographyProps, SliderProps, SlidesProps, SlideshowControlsProps, SlideshowItemProps, SlideshowProps, SwitchProps, TabListProps, TabPanelProps, TabProps, TabProviderProps, TableBodyProps, TableCellProps, TableHeaderProps, TableProps, TableRowProps, TextFieldProps, TextProps, ThumbnailProps, ThumbnailSize, TimePickerFieldProps, ToolbarProps, TooltipPlacement, TooltipProps, UploaderProps, UploaderSize, UserBlockProps, UserBlockSize };
|
|
5867
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, CLASSNAME$2 as CLASSNAME, COMPONENT_NAME$2 as COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, DialogHeading, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, MenuButton, ListDivider as MenuDivider, MenuItem, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectButton, SelectMultiple, SelectMultipleField, SelectTextField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, CLASSNAME as TIME_PICKER_FIELD_CLASSNAME, COMPONENT_NAME as TIME_PICKER_FIELD_COMPONENT_NAME, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableCellVariant as TableCellVariantType, TableHeader, TableRow, Text, TextField, ThOrder, ThOrder as ThOrderType, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, TimePickerField, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
5868
|
+
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, ComboboxButtonProps, ComboboxInputProps, ComboboxListProps, ComboboxOptionActionProps, ComboboxOptionMoreInfoProps, ComboboxOptionProps, ComboboxOptionSkeletonProps, ComboboxPopoverComponentProps, ComboboxPopoverProps, ComboboxProviderProps, ComboboxSectionProps, ComboboxStateProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogHeadingProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GenericBlockSectionProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSectionProps, ListSubheaderProps, MarginAutoAlignment, MenuButtonProps, ListDividerProps as MenuDividerProps, MenuItemActionProps, MenuItemProps, MessageProps, MosaicProps, MultipleSelectButtonProps, MultipleSelectTextFieldProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverHeight, PopoverProps, PopoverWidth, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectButtonProps, SelectListStatus as SelectButtonStatus, SelectButtonTranslations, SelectListStatus, SelectMultipleProps, SelectProps, SelectTextFieldProps, SelectListStatus as SelectTextFieldStatus, SelectTextFieldTranslations, SelectionChipGroupProps, SideNavigationItemProps, SideNavigationProps, SingleSelectButtonProps, SingleSelectTextFieldProps, SkeletonCircleProps, SkeletonRectangleProps, SkeletonTypographyProps, SliderProps, SlidesProps, SlideshowControlsProps, SlideshowItemProps, SlideshowProps, SwitchProps, TabListProps, TabPanelProps, TabProps, TabProviderProps, TableBodyProps, TableCellProps, TableHeaderProps, TableProps, TableRowProps, TextFieldProps, TextProps, ThumbnailProps, ThumbnailSize, TimePickerFieldProps, ToolbarProps, TooltipPlacement, TooltipProps, UploaderProps, UploaderSize, UserBlockProps, UserBlockSize };
|