@lumx/react 3.9.7-alpha.2 → 3.9.7-alpha.3
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/ClickAwayProvider.js +97 -0
- package/_internal/ClickAwayProvider.js.map +1 -0
- package/_internal/{index.d.ts → types.d.ts} +44 -1
- package/index.d.ts +3 -46
- package/index.js +208 -175
- package/index.js.map +1 -1
- package/package.json +12 -11
- package/src/components/tabs/Tab.tsx +10 -4
- package/src/components/tabs/Tabs.stories.tsx +1 -28
- package/utils/index.d.ts +1 -1
- package/utils/index.js +1 -96
- package/utils/index.js.map +1 -1
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import React__default, { useEffect, useContext, useMemo, useRef, createContext } from 'react';
|
|
2
|
+
import isEmpty from 'lodash/isEmpty';
|
|
3
|
+
|
|
4
|
+
const EVENT_TYPES = ['mousedown', 'touchstart'];
|
|
5
|
+
function isClickAway(target, refs) {
|
|
6
|
+
// The target element is not contained in any of the listed element references.
|
|
7
|
+
return !refs.some(e => {
|
|
8
|
+
var _e$current;
|
|
9
|
+
return e === null || e === void 0 ? void 0 : (_e$current = e.current) === null || _e$current === void 0 ? void 0 : _e$current.contains(target);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Listen to clicks away from the given elements and callback the passed in function.
|
|
14
|
+
*
|
|
15
|
+
* Warning: If you need to detect click away on nested React portals, please use the `ClickAwayProvider` component.
|
|
16
|
+
*/
|
|
17
|
+
function useClickAway(_ref) {
|
|
18
|
+
let {
|
|
19
|
+
callback,
|
|
20
|
+
childrenRefs
|
|
21
|
+
} = _ref;
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
const {
|
|
24
|
+
current: currentRefs
|
|
25
|
+
} = childrenRefs;
|
|
26
|
+
if (!callback || !currentRefs || isEmpty(currentRefs)) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
const listener = evt => {
|
|
30
|
+
if (isClickAway(evt.target, currentRefs)) {
|
|
31
|
+
callback(evt);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
EVENT_TYPES.forEach(evtType => document.addEventListener(evtType, listener));
|
|
35
|
+
return () => {
|
|
36
|
+
EVENT_TYPES.forEach(evtType => document.removeEventListener(evtType, listener));
|
|
37
|
+
};
|
|
38
|
+
}, [callback, childrenRefs]);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const ClickAwayAncestorContext = /*#__PURE__*/createContext(null);
|
|
42
|
+
/**
|
|
43
|
+
* Component combining the `useClickAway` hook with a React context to hook into the React component tree and make sure
|
|
44
|
+
* we take into account both the DOM tree and the React tree to detect click away.
|
|
45
|
+
*
|
|
46
|
+
* @return the react component.
|
|
47
|
+
*/
|
|
48
|
+
const ClickAwayProvider = _ref => {
|
|
49
|
+
let {
|
|
50
|
+
children,
|
|
51
|
+
callback,
|
|
52
|
+
childrenRefs,
|
|
53
|
+
parentRef
|
|
54
|
+
} = _ref;
|
|
55
|
+
const parentContext = useContext(ClickAwayAncestorContext);
|
|
56
|
+
const currentContext = useMemo(() => {
|
|
57
|
+
const context = {
|
|
58
|
+
childrenRefs: [],
|
|
59
|
+
/**
|
|
60
|
+
* Add element refs to the current context and propagate to the parent context.
|
|
61
|
+
*/
|
|
62
|
+
addRefs() {
|
|
63
|
+
// Add element refs that should be considered as inside the click away context.
|
|
64
|
+
context.childrenRefs.push(...arguments);
|
|
65
|
+
if (parentContext) {
|
|
66
|
+
// Also add then to the parent context
|
|
67
|
+
parentContext.addRefs(...arguments);
|
|
68
|
+
if (parentRef) {
|
|
69
|
+
// The parent element is also considered as inside the parent click away context but not inside the current context
|
|
70
|
+
parentContext.addRefs(parentRef);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
return context;
|
|
76
|
+
}, [parentContext, parentRef]);
|
|
77
|
+
useEffect(() => {
|
|
78
|
+
const {
|
|
79
|
+
current: currentRefs
|
|
80
|
+
} = childrenRefs;
|
|
81
|
+
if (!currentRefs) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
currentContext.addRefs(...currentRefs);
|
|
85
|
+
}, [currentContext, childrenRefs]);
|
|
86
|
+
useClickAway({
|
|
87
|
+
callback,
|
|
88
|
+
childrenRefs: useRef(currentContext.childrenRefs)
|
|
89
|
+
});
|
|
90
|
+
return /*#__PURE__*/React__default.createElement(ClickAwayAncestorContext.Provider, {
|
|
91
|
+
value: currentContext
|
|
92
|
+
}, children);
|
|
93
|
+
};
|
|
94
|
+
ClickAwayProvider.displayName = 'ClickAwayProvider';
|
|
95
|
+
|
|
96
|
+
export { ClickAwayProvider as C };
|
|
97
|
+
//# sourceMappingURL=ClickAwayProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClickAwayProvider.js","sources":["../../src/hooks/useClickAway.tsx","../../src/utils/ClickAwayProvider/ClickAwayProvider.tsx"],"sourcesContent":["import { RefObject, useEffect } from 'react';\n\nimport { Falsy } from '@lumx/react/utils/type';\n\nimport isEmpty from 'lodash/isEmpty';\n\nconst EVENT_TYPES = ['mousedown', 'touchstart'];\n\nfunction isClickAway(target: HTMLElement, refs: Array<RefObject<HTMLElement>>): boolean {\n // The target element is not contained in any of the listed element references.\n return !refs.some((e) => e?.current?.contains(target));\n}\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 { current: currentRefs } = childrenRefs;\n if (!callback || !currentRefs || isEmpty(currentRefs)) {\n return undefined;\n }\n const listener: EventListener = (evt) => {\n if (isClickAway(evt.target as HTMLElement, currentRefs)) {\n callback(evt);\n }\n };\n\n EVENT_TYPES.forEach((evtType) => document.addEventListener(evtType, listener));\n return () => {\n EVENT_TYPES.forEach((evtType) => document.removeEventListener(evtType, listener));\n };\n }, [callback, childrenRefs]);\n}\n","import React, { 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\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"],"names":["EVENT_TYPES","isClickAway","target","refs","some","e","_e$current","current","contains","useClickAway","_ref","callback","childrenRefs","useEffect","currentRefs","isEmpty","undefined","listener","evt","forEach","evtType","document","addEventListener","removeEventListener","ClickAwayAncestorContext","createContext","ClickAwayProvider","children","parentRef","parentContext","useContext","currentContext","useMemo","context","addRefs","push","arguments","useRef","React","createElement","Provider","value","displayName"],"mappings":"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"}
|
|
@@ -282,4 +282,47 @@ declare const WhiteSpace: {
|
|
|
282
282
|
};
|
|
283
283
|
type WhiteSpace = ValueOf<typeof WhiteSpace>;
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
/**
|
|
286
|
+
* Focal point using vertical alignment, horizontal alignment or coordinates (from -1 to 1).
|
|
287
|
+
*/
|
|
288
|
+
type FocusPoint = {
|
|
289
|
+
x?: number;
|
|
290
|
+
y?: number;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* Loading attribute is not yet supported in typescript, so we need
|
|
294
|
+
* to add it in order to avoid a ts error.
|
|
295
|
+
* https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes
|
|
296
|
+
*/
|
|
297
|
+
declare module 'react' {
|
|
298
|
+
interface ImgHTMLAttributes<T> extends React.HTMLAttributes<T> {
|
|
299
|
+
loading?: 'eager' | 'lazy';
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* All available aspect ratios.
|
|
304
|
+
* @deprecated
|
|
305
|
+
*/
|
|
306
|
+
declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
|
|
307
|
+
/**
|
|
308
|
+
* Thumbnail sizes.
|
|
309
|
+
*/
|
|
310
|
+
type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
311
|
+
/**
|
|
312
|
+
* Thumbnail variants.
|
|
313
|
+
*/
|
|
314
|
+
declare const ThumbnailVariant: {
|
|
315
|
+
readonly squared: "squared";
|
|
316
|
+
readonly rounded: "rounded";
|
|
317
|
+
};
|
|
318
|
+
type ThumbnailVariant = ValueOf<typeof ThumbnailVariant>;
|
|
319
|
+
/**
|
|
320
|
+
* Thumbnail object fit.
|
|
321
|
+
*/
|
|
322
|
+
declare const ThumbnailObjectFit: {
|
|
323
|
+
readonly cover: "cover";
|
|
324
|
+
readonly contain: "contain";
|
|
325
|
+
};
|
|
326
|
+
type ThumbnailObjectFit = ValueOf<typeof ThumbnailObjectFit>;
|
|
327
|
+
|
|
328
|
+
export { Alignment as A, Comp as C, Emphasis as E, Falsy as F, GenericProps as G, HasTheme as H, Kind as K, Orientation as O, Size as S, Typography as T, ValueOf as V, WhiteSpace as W, HorizontalAlignment as a, ColorPalette as b, VerticalAlignment as c, ColorVariant as d, TextElement as e, HeadingElement as f, AspectRatio as g, FocusPoint as h, ThumbnailObjectFit as i, ThumbnailSize as j, ThumbnailVariant as k, HasClassName as l, HasAriaLabelOrLabelledBy as m, ComponentRef as n, HasCloseMode as o, GlobalSize as p, TypographyInterface as q, Color as r, Theme as s, TypographyTitleCustom as t, TypographyCustom as u, Callback as v, ThumbnailAspectRatio as w };
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as Kind, C as Comp, G as GenericProps, H as HasTheme, a as HorizontalAlignment, S as Size, b as ColorPalette, E as Emphasis, V as ValueOf, A as Alignment, c as VerticalAlignment, O as Orientation, d as ColorVariant, T as Typography, e as TextElement, W as WhiteSpace, f as HeadingElement, g as AspectRatio, F as Falsy, h as
|
|
2
|
-
export {
|
|
1
|
+
import { K as Kind, C as Comp, G as GenericProps, H as HasTheme, a as HorizontalAlignment, S as Size, b as ColorPalette, E as Emphasis, V as ValueOf, A as Alignment, c as VerticalAlignment, O as Orientation, d as ColorVariant, T as Typography, e as TextElement, W as WhiteSpace, f as HeadingElement, g as AspectRatio, F as Falsy, h as FocusPoint, i as ThumbnailObjectFit, j as ThumbnailSize, k as ThumbnailVariant, l as HasClassName, m as HasAriaLabelOrLabelledBy, n as ComponentRef, o as HasCloseMode, p as GlobalSize, q as TypographyInterface } from './_internal/types.js';
|
|
2
|
+
export { A as Alignment, g as AspectRatio, v as Callback, r as Color, b as ColorPalette, d as ColorVariant, E as Emphasis, h as FocusPoint, G as GenericProps, p as GlobalSize, f as HeadingElement, a as HorizontalAlignment, K as Kind, O as Orientation, S as Size, e as TextElement, s as Theme, w as ThumbnailAspectRatio, i as ThumbnailObjectFit, j as ThumbnailSize, k as ThumbnailVariant, T as Typography, u as TypographyCustom, q as TypographyInterface, t as TypographyTitleCustom, c as VerticalAlignment, W as WhiteSpace } from './_internal/types.js';
|
|
3
3
|
import React, { ReactNode, SyntheticEvent, ReactElement, MouseEventHandler, KeyboardEventHandler, AriaAttributes, DetailedHTMLProps, ButtonHTMLAttributes, InputHTMLAttributes, Ref, RefObject, ImgHTMLAttributes, CSSProperties, SetStateAction, Key } from 'react';
|
|
4
4
|
|
|
5
5
|
interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
|
|
@@ -1274,49 +1274,6 @@ interface IconProps extends GenericProps, HasTheme {
|
|
|
1274
1274
|
*/
|
|
1275
1275
|
declare const Icon: Comp<IconProps, HTMLElement>;
|
|
1276
1276
|
|
|
1277
|
-
/**
|
|
1278
|
-
* Focal point using vertical alignment, horizontal alignment or coordinates (from -1 to 1).
|
|
1279
|
-
*/
|
|
1280
|
-
type FocusPoint = {
|
|
1281
|
-
x?: number;
|
|
1282
|
-
y?: number;
|
|
1283
|
-
};
|
|
1284
|
-
/**
|
|
1285
|
-
* Loading attribute is not yet supported in typescript, so we need
|
|
1286
|
-
* to add it in order to avoid a ts error.
|
|
1287
|
-
* https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes
|
|
1288
|
-
*/
|
|
1289
|
-
declare module 'react' {
|
|
1290
|
-
interface ImgHTMLAttributes<T> extends React.HTMLAttributes<T> {
|
|
1291
|
-
loading?: 'eager' | 'lazy';
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1294
|
-
/**
|
|
1295
|
-
* All available aspect ratios.
|
|
1296
|
-
* @deprecated
|
|
1297
|
-
*/
|
|
1298
|
-
declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
|
|
1299
|
-
/**
|
|
1300
|
-
* Thumbnail sizes.
|
|
1301
|
-
*/
|
|
1302
|
-
type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1303
|
-
/**
|
|
1304
|
-
* Thumbnail variants.
|
|
1305
|
-
*/
|
|
1306
|
-
declare const ThumbnailVariant: {
|
|
1307
|
-
readonly squared: "squared";
|
|
1308
|
-
readonly rounded: "rounded";
|
|
1309
|
-
};
|
|
1310
|
-
type ThumbnailVariant = ValueOf<typeof ThumbnailVariant>;
|
|
1311
|
-
/**
|
|
1312
|
-
* Thumbnail object fit.
|
|
1313
|
-
*/
|
|
1314
|
-
declare const ThumbnailObjectFit: {
|
|
1315
|
-
readonly cover: "cover";
|
|
1316
|
-
readonly contain: "contain";
|
|
1317
|
-
};
|
|
1318
|
-
type ThumbnailObjectFit = ValueOf<typeof ThumbnailObjectFit>;
|
|
1319
|
-
|
|
1320
1277
|
type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
1321
1278
|
/**
|
|
1322
1279
|
* Defines the props of the component.
|
|
@@ -3036,4 +2993,4 @@ interface UserBlockProps extends GenericProps, HasTheme {
|
|
|
3036
2993
|
*/
|
|
3037
2994
|
declare const UserBlock: Comp<UserBlockProps, HTMLDivElement>;
|
|
3038
2995
|
|
|
3039
|
-
export { AlertDialog,
|
|
2996
|
+
export { AlertDialog, AlertDialogProps, Autocomplete, AutocompleteMultiple, AutocompleteMultipleProps, AutocompleteProps, Avatar, AvatarProps, AvatarSize, Badge, BadgeProps, BadgeWrapper, BadgeWrapperProps, BaseButtonProps, Button, ButtonEmphasis, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, Checkbox, CheckboxProps, Chip, ChipGroup, ChipGroupProps, ChipProps, CommentBlock, CommentBlockProps, CommentBlockVariant, DatePicker, DatePickerControlled, DatePickerControlledProps, DatePickerField, DatePickerFieldProps, DatePickerProps, Dialog, DialogProps, DialogSizes, Divider, DividerProps, DragHandle, DragHandleProps, Dropdown, DropdownProps, Elevation, ExpansionPanel, ExpansionPanelProps, Flag, FlagProps, FlexBox, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, GapSize, GenericBlock, GenericBlockGapSize, GenericBlockProps, Grid, GridColumn, GridColumnGapSize, GridColumnProps, GridItem, GridItemProps, GridProps, Heading, HeadingLevelProvider, HeadingLevelProviderProps, HeadingProps, Icon, IconButton, IconButtonProps, IconProps, IconSizes, ImageBlock, ImageBlockCaptionPosition, ImageBlockProps, ImageBlockSize, ImageLightbox, ImageLightboxProps, InlineList, InlineListProps, InputHelper, InputHelperProps, InputLabel, InputLabelProps, Lightbox, LightboxProps, Link, LinkPreview, LinkPreviewProps, LinkProps, List, ListDivider, ListDividerProps, ListItem, ListItemProps, ListItemSize, ListProps, ListSubheader, ListSubheaderProps, MarginAutoAlignment, Message, MessageProps, Mosaic, MosaicProps, Navigation, NavigationProps, Notification, NotificationProps, Offset, Placement, Popover, PopoverDialog, PopoverDialogProps, PopoverProps, PostBlock, PostBlockProps, Progress, ProgressCircular, ProgressCircularProps, ProgressCircularSize, ProgressLinear, ProgressLinearProps, ProgressProps, ProgressTracker, ProgressTrackerProps, ProgressTrackerProvider, ProgressTrackerProviderProps, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, ProgressVariant, RadioButton, RadioButtonProps, RadioGroup, RadioGroupProps, Select, SelectMultiple, SelectMultipleField, SelectMultipleProps, SelectProps, SelectVariant, SideNavigation, SideNavigationItem, SideNavigationItemProps, SideNavigationProps, SkeletonCircle, SkeletonCircleProps, SkeletonRectangle, SkeletonRectangleProps, SkeletonRectangleVariant, SkeletonTypography, SkeletonTypographyProps, Slider, SliderProps, Slides, SlidesProps, Slideshow, SlideshowControls, SlideshowControlsProps, SlideshowItem, SlideshowItemProps, SlideshowProps, Switch, SwitchProps, Tab, TabList, TabListLayout, TabListProps, TabPanel, TabPanelProps, TabProps, TabProvider, TabProviderProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableCellVariant, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps, Text, TextField, TextFieldProps, TextProps, ThOrder, Thumbnail, ThumbnailProps, Toolbar, ToolbarProps, Tooltip, TooltipPlacement, TooltipProps, Uploader, UploaderProps, UploaderSize, UploaderVariant, UserBlock, UserBlockProps, UserBlockSize, clamp, isClickable, useFocusPointStyle, useHeadingLevel };
|