@lumx/react 3.15.1-alpha.1 → 3.15.1-alpha.2
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/index.d.ts +5 -1
- package/index.js +5525 -5530
- package/index.js.map +1 -1
- package/package.json +4 -3
- package/src/components/alert-dialog/AlertDialog.tsx +12 -2
- package/src/components/autocomplete/Autocomplete.tsx +5 -5
- package/src/components/autocomplete/AutocompleteMultiple.tsx +5 -5
- package/src/components/avatar/Avatar.tsx +1 -1
- package/src/components/badge/Badge.tsx +1 -1
- package/src/components/badge/BadgeWrapper.tsx +0 -2
- package/src/components/button/Button.tsx +10 -1
- package/src/components/button/IconButton.tsx +2 -2
- package/src/components/chip/Chip.tsx +1 -1
- package/src/components/comment-block/CommentBlock.tsx +1 -1
- package/src/components/dialog/Dialog.tsx +2 -2
- package/src/components/dropdown/Dropdown.tsx +8 -8
- package/src/components/generic-block/GenericBlock.tsx +2 -2
- package/src/components/grid/Grid.tsx +10 -1
- package/src/components/image-block/ImageBlock.tsx +2 -2
- package/src/components/input-helper/InputHelper.tsx +1 -1
- package/src/components/link-preview/LinkPreview.tsx +2 -2
- package/src/components/list/List.tsx +9 -1
- package/src/components/list/ListItem.tsx +1 -1
- package/src/components/navigation/Navigation.tsx +7 -1
- package/src/components/notification/Notification.tsx +2 -2
- package/src/components/popover/Popover.tsx +5 -5
- package/src/components/post-block/PostBlock.tsx +1 -1
- package/src/components/progress/Progress.tsx +1 -1
- package/src/components/progress-tracker/ProgressTrackerProvider.tsx +1 -0
- package/src/components/select/Select.tsx +2 -0
- package/src/components/select/SelectMultiple.tsx +2 -0
- package/src/components/select/WithSelectContext.tsx +2 -7
- package/src/components/side-navigation/SideNavigationItem.tsx +2 -2
- package/src/components/skeleton/SkeletonRectangle.tsx +10 -1
- package/src/components/slider/Slider.tsx +2 -2
- package/src/components/slideshow/Slideshow.tsx +4 -6
- package/src/components/slideshow/SlideshowControls.tsx +1 -1
- package/src/components/switch/Switch.tsx +1 -1
- package/src/components/table/TableCell.tsx +10 -1
- package/src/components/tabs/TabList.tsx +2 -2
- package/src/components/tabs/TabProvider.tsx +1 -1
- package/src/components/text-field/TextField.tsx +1 -1
- package/src/components/thumbnail/Thumbnail.tsx +2 -2
- package/src/components/tooltip/Tooltip.tsx +4 -4
- package/src/components/uploader/Uploader.tsx +3 -3
- package/src/components/user-block/UserBlock.tsx +2 -2
- package/src/hooks/useSlideshowControls.ts +2 -2
- package/src/testing/utils/queries.ts +1 -1
|
@@ -107,7 +107,7 @@ export const Thumbnail = forwardRef<ThumbnailProps>((props, ref) => {
|
|
|
107
107
|
badge,
|
|
108
108
|
className,
|
|
109
109
|
crossOrigin,
|
|
110
|
-
fallback,
|
|
110
|
+
fallback = DEFAULT_PROPS.fallback,
|
|
111
111
|
fillHeight,
|
|
112
112
|
// `focusPoint` needs to be here to remove it from `forwardedProps`.
|
|
113
113
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -117,7 +117,7 @@ export const Thumbnail = forwardRef<ThumbnailProps>((props, ref) => {
|
|
|
117
117
|
imgRef: propImgRef,
|
|
118
118
|
isLoading: isLoadingProp,
|
|
119
119
|
objectFit,
|
|
120
|
-
loading,
|
|
120
|
+
loading = DEFAULT_PROPS.loading,
|
|
121
121
|
loadingPlaceholderImageRef,
|
|
122
122
|
size,
|
|
123
123
|
theme = defaultTheme,
|
|
@@ -77,11 +77,11 @@ export const Tooltip = forwardRef<TooltipProps, HTMLDivElement>((props, ref) =>
|
|
|
77
77
|
children,
|
|
78
78
|
className,
|
|
79
79
|
delay,
|
|
80
|
-
placement,
|
|
80
|
+
placement = DEFAULT_PROPS.placement,
|
|
81
81
|
forceOpen,
|
|
82
|
-
closeMode,
|
|
83
|
-
ariaLinkMode,
|
|
84
|
-
zIndex,
|
|
82
|
+
closeMode = DEFAULT_PROPS.closeMode,
|
|
83
|
+
ariaLinkMode = DEFAULT_PROPS.ariaLinkMode,
|
|
84
|
+
zIndex = DEFAULT_PROPS.zIndex,
|
|
85
85
|
...forwardedProps
|
|
86
86
|
} = props;
|
|
87
87
|
// Disable in SSR.
|
|
@@ -81,13 +81,13 @@ const DEFAULT_PROPS: Partial<UploaderProps> = {
|
|
|
81
81
|
export const Uploader = forwardRef<UploaderProps>((props, ref) => {
|
|
82
82
|
const defaultTheme = useTheme() || Theme.light;
|
|
83
83
|
const {
|
|
84
|
-
aspectRatio,
|
|
84
|
+
aspectRatio = DEFAULT_PROPS.aspectRatio,
|
|
85
85
|
className,
|
|
86
86
|
label,
|
|
87
87
|
icon,
|
|
88
|
-
size,
|
|
88
|
+
size = DEFAULT_PROPS.size,
|
|
89
89
|
theme = defaultTheme,
|
|
90
|
-
variant,
|
|
90
|
+
variant = DEFAULT_PROPS.variant,
|
|
91
91
|
fileInputProps,
|
|
92
92
|
...forwardedProps
|
|
93
93
|
} = props;
|
|
@@ -92,9 +92,9 @@ export const UserBlock = forwardRef<UserBlockProps, HTMLDivElement>((props, ref)
|
|
|
92
92
|
onClick,
|
|
93
93
|
onMouseEnter,
|
|
94
94
|
onMouseLeave,
|
|
95
|
-
orientation,
|
|
95
|
+
orientation = DEFAULT_PROPS.orientation,
|
|
96
96
|
simpleAction,
|
|
97
|
-
size,
|
|
97
|
+
size = DEFAULT_PROPS.size,
|
|
98
98
|
theme = defaultTheme,
|
|
99
99
|
children,
|
|
100
100
|
additionalFields,
|
|
@@ -66,11 +66,11 @@ export interface UseSlideshowControls {
|
|
|
66
66
|
startAutoPlay: () => void;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export const DEFAULT_OPTIONS
|
|
69
|
+
export const DEFAULT_OPTIONS = {
|
|
70
70
|
activeIndex: 0,
|
|
71
71
|
groupBy: 1,
|
|
72
72
|
interval: AUTOPLAY_DEFAULT_INTERVAL,
|
|
73
|
-
};
|
|
73
|
+
} as const;
|
|
74
74
|
|
|
75
75
|
export const useSlideshowControls = ({
|
|
76
76
|
activeIndex = DEFAULT_OPTIONS.activeIndex,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buildQueries } from '@testing-library/
|
|
1
|
+
import { buildQueries } from '@testing-library/dom';
|
|
2
2
|
|
|
3
3
|
export const queryAllByClassName = (container: HTMLElement, className: string) =>
|
|
4
4
|
Array.from(container.getElementsByClassName(className) as HTMLCollectionOf<HTMLElement>);
|