@flipdish/ui-library 0.72.0 → 0.73.0
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/dist/components/atoms/Avatar/components/AvatarBase.cjs +3 -1
- package/dist/components/atoms/Avatar/components/AvatarBase.cjs.map +1 -1
- package/dist/components/atoms/Avatar/components/AvatarBase.d.ts.map +1 -1
- package/dist/components/atoms/Avatar/components/AvatarBase.js +3 -1
- package/dist/components/atoms/Avatar/components/AvatarBase.js.map +1 -1
- package/dist/components/atoms/Badges/Badge/Badge.cjs +5 -2
- package/dist/components/atoms/Badges/Badge/Badge.cjs.map +1 -1
- package/dist/components/atoms/Badges/Badge/Badge.d.ts +4 -0
- package/dist/components/atoms/Badges/Badge/Badge.d.ts.map +1 -1
- package/dist/components/atoms/Badges/Badge/Badge.js +5 -2
- package/dist/components/atoms/Badges/Badge/Badge.js.map +1 -1
- package/dist/components/atoms/Inputs/Input/Input.cjs +1 -1
- package/dist/components/atoms/Inputs/Input/Input.cjs.map +1 -1
- package/dist/components/atoms/Inputs/Input/Input.js +1 -1
- package/dist/components/atoms/Inputs/Input/Input.js.map +1 -1
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.cjs +1 -1
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.cjs.map +1 -1
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.js +1 -1
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.js.map +1 -1
- package/dist/components/atoms/PhoneInput/index.cjs +1 -1
- package/dist/components/atoms/PhoneInput/index.cjs.map +1 -1
- package/dist/components/atoms/PhoneInput/index.js +1 -1
- package/dist/components/atoms/PhoneInput/index.js.map +1 -1
- package/dist/components/molecules/DetailList/detailList.types.d.ts +2 -0
- package/dist/components/molecules/DetailList/detailList.types.d.ts.map +1 -1
- package/dist/components/molecules/DetailList/index.cjs +10 -1
- package/dist/components/molecules/DetailList/index.cjs.map +1 -1
- package/dist/components/molecules/DetailList/index.d.ts.map +1 -1
- package/dist/components/molecules/DetailList/index.js +10 -1
- package/dist/components/molecules/DetailList/index.js.map +1 -1
- package/dist/components/molecules/DetailList/utilities/detailList.utils.cjs +17 -0
- package/dist/components/molecules/DetailList/utilities/detailList.utils.cjs.map +1 -0
- package/dist/components/molecules/DetailList/utilities/detailList.utils.d.ts +10 -0
- package/dist/components/molecules/DetailList/utilities/detailList.utils.d.ts.map +1 -0
- package/dist/components/molecules/DetailList/utilities/detailList.utils.js +15 -0
- package/dist/components/molecules/DetailList/utilities/detailList.utils.js.map +1 -0
- package/dist/components/molecules/EmptyState/index.cjs +8 -165
- package/dist/components/molecules/EmptyState/index.cjs.map +1 -1
- package/dist/components/molecules/EmptyState/index.d.ts +33 -105
- package/dist/components/molecules/EmptyState/index.d.ts.map +1 -1
- package/dist/components/molecules/EmptyState/index.js +8 -165
- package/dist/components/molecules/EmptyState/index.js.map +1 -1
- package/dist/components/molecules/EmptyStates/EmptyState/EmptyState.cjs +168 -0
- package/dist/components/molecules/EmptyStates/EmptyState/EmptyState.cjs.map +1 -0
- package/dist/components/molecules/EmptyStates/EmptyState/EmptyState.d.ts +98 -0
- package/dist/components/molecules/EmptyStates/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/components/molecules/EmptyStates/EmptyState/EmptyState.js +166 -0
- package/dist/components/molecules/EmptyStates/EmptyState/EmptyState.js.map +1 -0
- package/dist/components/molecules/EmptyStates/EmptyState/utilities/emptyState.utils.cjs.map +1 -0
- package/dist/components/molecules/EmptyStates/EmptyState/utilities/emptyState.utils.d.ts.map +1 -0
- package/dist/components/molecules/EmptyStates/EmptyState/utilities/emptyState.utils.js.map +1 -0
- package/dist/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.cjs +22 -0
- package/dist/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.cjs.map +1 -0
- package/dist/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.d.ts +25 -0
- package/dist/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.d.ts.map +1 -0
- package/dist/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.js +20 -0
- package/dist/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.js.map +1 -0
- package/dist/components/molecules/EmptyStates/NoResultsState/NoResultsState.cjs +22 -0
- package/dist/components/molecules/EmptyStates/NoResultsState/NoResultsState.cjs.map +1 -0
- package/dist/components/molecules/EmptyStates/NoResultsState/NoResultsState.d.ts +23 -0
- package/dist/components/molecules/EmptyStates/NoResultsState/NoResultsState.d.ts.map +1 -0
- package/dist/components/molecules/EmptyStates/NoResultsState/NoResultsState.js +20 -0
- package/dist/components/molecules/EmptyStates/NoResultsState/NoResultsState.js.map +1 -0
- package/dist/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.cjs +24 -0
- package/dist/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.cjs.map +1 -0
- package/dist/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.d.ts +28 -0
- package/dist/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.d.ts.map +1 -0
- package/dist/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.js +22 -0
- package/dist/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.js.map +1 -0
- package/dist/components/molecules/EmptyStates/components/EmptyStateReadyMade.cjs +12 -0
- package/dist/components/molecules/EmptyStates/components/EmptyStateReadyMade.cjs.map +1 -0
- package/dist/components/molecules/EmptyStates/components/EmptyStateReadyMade.d.ts +20 -0
- package/dist/components/molecules/EmptyStates/components/EmptyStateReadyMade.d.ts.map +1 -0
- package/dist/components/molecules/EmptyStates/components/EmptyStateReadyMade.js +10 -0
- package/dist/components/molecules/EmptyStates/components/EmptyStateReadyMade.js.map +1 -0
- package/dist/components/molecules/EmptyStates/index.cjs +14 -0
- package/dist/components/molecules/EmptyStates/index.cjs.map +1 -0
- package/dist/components/molecules/EmptyStates/index.d.ts +19 -0
- package/dist/components/molecules/EmptyStates/index.d.ts.map +1 -0
- package/dist/components/molecules/EmptyStates/index.js +5 -0
- package/dist/components/molecules/EmptyStates/index.js.map +1 -0
- package/dist/components/molecules/EmptyStates/utilities/emptyStates.utils.cjs +12 -0
- package/dist/components/molecules/EmptyStates/utilities/emptyStates.utils.cjs.map +1 -0
- package/dist/components/molecules/EmptyStates/utilities/emptyStates.utils.d.ts +8 -0
- package/dist/components/molecules/EmptyStates/utilities/emptyStates.utils.d.ts.map +1 -0
- package/dist/components/molecules/EmptyStates/utilities/emptyStates.utils.js +10 -0
- package/dist/components/molecules/EmptyStates/utilities/emptyStates.utils.js.map +1 -0
- package/dist/components/molecules/Selects/MultiSelect/MultiSelect.cjs +1 -1
- package/dist/components/molecules/Selects/MultiSelect/MultiSelect.cjs.map +1 -1
- package/dist/components/molecules/Selects/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/molecules/Selects/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/components/molecules/Tabs/index.cjs +31 -9
- package/dist/components/molecules/Tabs/index.cjs.map +1 -1
- package/dist/components/molecules/Tabs/index.d.ts +10 -6
- package/dist/components/molecules/Tabs/index.d.ts.map +1 -1
- package/dist/components/molecules/Tabs/index.js +33 -11
- package/dist/components/molecules/Tabs/index.js.map +1 -1
- package/dist/components/molecules/Tabs/utilities/tabs.utils.cjs +40 -0
- package/dist/components/molecules/Tabs/utilities/tabs.utils.cjs.map +1 -0
- package/dist/components/molecules/Tabs/utilities/tabs.utils.d.ts +23 -0
- package/dist/components/molecules/Tabs/utilities/tabs.utils.d.ts.map +1 -0
- package/dist/components/molecules/Tabs/utilities/tabs.utils.js +37 -0
- package/dist/components/molecules/Tabs/utilities/tabs.utils.js.map +1 -0
- package/dist/components/organisms/CommandMenu/components/CommandInput.cjs +1 -1
- package/dist/components/organisms/CommandMenu/components/CommandInput.cjs.map +1 -1
- package/dist/components/organisms/CommandMenu/components/CommandInput.js +1 -1
- package/dist/components/organisms/CommandMenu/components/CommandInput.js.map +1 -1
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.cjs +4 -1
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.cjs.map +1 -1
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.js +6 -3
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.cjs +32 -11
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.cjs.map +1 -1
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.d.ts +5 -5
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.js +35 -14
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.cjs +14 -3
- package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.cjs.map +1 -1
- package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.d.ts +3 -8
- package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.d.ts.map +1 -1
- package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.js +14 -3
- package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.js.map +1 -1
- package/dist/components/organisms/DatePickers/datePickers.types.d.ts +17 -0
- package/dist/components/organisms/DatePickers/datePickers.types.d.ts.map +1 -0
- package/dist/components/organisms/DatePickers/hooks/useDateRangePresets.cjs +23 -0
- package/dist/components/organisms/DatePickers/hooks/useDateRangePresets.cjs.map +1 -0
- package/dist/components/organisms/DatePickers/hooks/useDateRangePresets.d.ts +11 -0
- package/dist/components/organisms/DatePickers/hooks/useDateRangePresets.d.ts.map +1 -0
- package/dist/components/organisms/DatePickers/hooks/useDateRangePresets.js +21 -0
- package/dist/components/organisms/DatePickers/hooks/useDateRangePresets.js.map +1 -0
- package/dist/components/organisms/DatePickers/hooks/useToday.cjs +18 -0
- package/dist/components/organisms/DatePickers/hooks/useToday.cjs.map +1 -0
- package/dist/components/organisms/DatePickers/hooks/useToday.d.ts +9 -0
- package/dist/components/organisms/DatePickers/hooks/useToday.d.ts.map +1 -0
- package/dist/components/organisms/DatePickers/hooks/useToday.js +16 -0
- package/dist/components/organisms/DatePickers/hooks/useToday.js.map +1 -0
- package/dist/components/organisms/DatePickers/index.d.ts +1 -0
- package/dist/components/organisms/DatePickers/index.d.ts.map +1 -1
- package/dist/components/organisms/DatePickers/providers/CalendarSurface.context.cjs +1 -1
- package/dist/components/organisms/DatePickers/providers/CalendarSurface.context.d.ts +1 -1
- package/dist/components/organisms/DatePickers/providers/CalendarSurface.context.js +1 -1
- package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.cjs +84 -23
- package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.cjs.map +1 -1
- package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.d.ts +70 -5
- package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.d.ts.map +1 -1
- package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.js +82 -24
- package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.js.map +1 -1
- package/dist/components/organisms/HeaderNavigation/index.cjs +1 -1
- package/dist/components/organisms/HeaderNavigation/index.cjs.map +1 -1
- package/dist/components/organisms/HeaderNavigation/index.js +1 -1
- package/dist/components/organisms/HeaderNavigation/index.js.map +1 -1
- package/dist/hooks/useClipboard/clipboard.utils.cjs +33 -0
- package/dist/hooks/useClipboard/clipboard.utils.cjs.map +1 -0
- package/dist/hooks/useClipboard/clipboard.utils.d.ts +15 -0
- package/dist/hooks/useClipboard/clipboard.utils.d.ts.map +1 -0
- package/dist/hooks/useClipboard/clipboard.utils.js +31 -0
- package/dist/hooks/useClipboard/clipboard.utils.js.map +1 -0
- package/dist/hooks/useClipboard/index.cjs +17 -42
- package/dist/hooks/useClipboard/index.cjs.map +1 -1
- package/dist/hooks/useClipboard/index.d.ts.map +1 -1
- package/dist/hooks/useClipboard/index.js +17 -42
- package/dist/hooks/useClipboard/index.js.map +1 -1
- package/dist/native/components/atoms/Badges/Badge/Badge.d.ts +5 -1
- package/dist/native/components/atoms/Badges/Badge/Badge.d.ts.map +1 -1
- package/dist/native/components/atoms/Badges/Badge/Badge.js +5 -2
- package/dist/native/components/atoms/Badges/Badge/Badge.js.map +1 -1
- package/dist/native/components/molecules/EmptyStates/index.d.ts +12 -0
- package/dist/utilities/searchParamsUtils/index.cjs +40 -2
- package/dist/utilities/searchParamsUtils/index.cjs.map +1 -1
- package/dist/utilities/searchParamsUtils/index.d.ts +40 -2
- package/dist/utilities/searchParamsUtils/index.d.ts.map +1 -1
- package/dist/utilities/searchParamsUtils/index.js +39 -3
- package/dist/utilities/searchParamsUtils/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/molecules/EmptyState/utilities/emptyState.utils.cjs.map +0 -1
- package/dist/components/molecules/EmptyState/utilities/emptyState.utils.d.ts.map +0 -1
- package/dist/components/molecules/EmptyState/utilities/emptyState.utils.js.map +0 -1
- /package/dist/components/molecules/{EmptyState → EmptyStates/EmptyState}/utilities/emptyState.utils.cjs +0 -0
- /package/dist/components/molecules/{EmptyState → EmptyStates/EmptyState}/utilities/emptyState.utils.d.ts +0 -0
- /package/dist/components/molecules/{EmptyState → EmptyStates/EmptyState}/utilities/emptyState.utils.js +0 -0
|
@@ -1,173 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SearchLg, FileIcon, AlertCircle } from '@flipdish/ui-icons';
|
|
3
|
-
import { BackgroundPattern } from '@flipdish/ui-library/components/atoms/BackgroundPattern';
|
|
4
|
-
import { Button } from '@flipdish/ui-library/components/atoms/Buttons';
|
|
5
|
-
import { FeaturedIcon as FeaturedIcon$1 } from '@flipdish/ui-library/components/atoms/FeaturedIcon';
|
|
6
|
-
import { Illustration as Illustration$1 } from '@flipdish/ui-library/components/atoms/Illustration';
|
|
7
|
-
import { cx } from '@flipdish/ui-library/utilities/cx';
|
|
8
|
-
import { useResolvedTestId, TestIdProvider, useTestIdPrefix, joinTestId } from '@flipdish/ui-library/utilities/testIdUtils';
|
|
9
|
-
import { mergeRefs } from '@react-aria/utils';
|
|
10
|
-
import { createContext, forwardRef, useContext, isValidElement, useMemo } from 'react';
|
|
11
|
-
import { FocusHandOffTargetContext } from '../../__internal__/focusHandOff/focusHandOff.context.js';
|
|
12
|
-
import { flattenChildren } from '../../../utilities/__internal__/childrenUtils/children.utils.js';
|
|
13
|
-
import { featuredIconSize, titleTextOf, avatarRingOffset, placeAvatarRow, avatarGridRows, illustrationSize, headerBackgroundPattern } from './utilities/emptyState.utils.js';
|
|
1
|
+
import { EmptyState as EmptyState$1, LoadErrorState as LoadErrorState$1 } from '@flipdish/ui-library/components/molecules/EmptyStates';
|
|
14
2
|
|
|
15
|
-
|
|
16
|
-
const Root = forwardRef(({ size = 'lg', 'data-testid': dataTestId, ...props }, ref) => {
|
|
17
|
-
const rootTestId = useResolvedTestId({ testId: dataTestId, segment: 'empty-state', rootName: 'empty-state' });
|
|
18
|
-
return (jsx(RootContext.Provider, { value: { size }, children: jsx(TestIdProvider, { value: rootTestId, children: jsx("div", { ...props, ref: ref, "data-testid": rootTestId, className: cx('mx-auto flex w-full flex-col items-center justify-center', props.className) }) }) }));
|
|
19
|
-
});
|
|
20
|
-
const FeaturedIcon = forwardRef(({ color = 'gray', theme = 'modern', icon = SearchLg, size, ...props }, ref) => {
|
|
21
|
-
const { size: rootSize } = useContext(RootContext);
|
|
22
|
-
return jsx(FeaturedIcon$1, { ...props, ref: ref, color, theme, icon, size: featuredIconSize(size, rootSize) });
|
|
23
|
-
});
|
|
24
|
-
const Illustration = ({ type = 'cloud', color = 'gray', size = 'lg', ...props }) => {
|
|
25
|
-
const { size: rootSize } = useContext(RootContext);
|
|
26
|
-
return (jsx(Illustration$1, { ...props, "aria-hidden": "true", type: type, size: illustrationSize(size, rootSize), className: cx('z-10', props.className) }));
|
|
27
|
-
};
|
|
28
|
-
const FileTypeIcon = forwardRef(({ type = 'folder', theme = 'solid', ...props }, ref) => {
|
|
29
|
-
return (jsx("div", { ...props, ref: ref, className: cx('relative z-10 flex rounded-full bg-linear-to-b from-neutral-50 to-neutral-200 p-8', props.className), children: jsx(FileIcon, { type: type, variant: theme, className: "size-10 drop-shadow-sm" }) }));
|
|
30
|
-
});
|
|
31
|
-
const Header = forwardRef(({ pattern = 'circle', patternSize = 'md', 'data-testid': dataTestId, ...props }, ref) => {
|
|
32
|
-
const { size } = useContext(RootContext);
|
|
33
|
-
const prefix = useTestIdPrefix();
|
|
34
|
-
const headerTestId = dataTestId ?? (prefix ? joinTestId(prefix, 'header') : undefined);
|
|
35
|
-
const backgroundPattern = headerBackgroundPattern(pattern, patternSize);
|
|
36
|
-
// Whether we are passing `Illustration` component as children.
|
|
37
|
-
const hasIllustration = flattenChildren(props.children).some((headerChild) => isValidElement(headerChild) && headerChild.type === Illustration);
|
|
38
|
-
return (jsxs("header", { ...props, ref: ref, "data-testid": headerTestId, className: cx('relative mb-4', (size === 'md' || size === 'lg') && 'mb-5', hasIllustration && size === 'lg' && 'mb-6!', props.className), children: [backgroundPattern && jsx(BackgroundPattern, { ...backgroundPattern, className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" }), props.children] }));
|
|
39
|
-
});
|
|
40
|
-
const Content = forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
|
|
41
|
-
const { size } = useContext(RootContext);
|
|
42
|
-
const prefix = useTestIdPrefix();
|
|
43
|
-
const contentTestId = dataTestId ?? (prefix ? joinTestId(prefix, 'content') : undefined);
|
|
44
|
-
return (jsx("div", { ...props, ref: ref, "data-testid": contentTestId, className: cx(
|
|
45
|
-
// Fixed and capped by the parent rather than `w-full`, which shrinks to the text in a parent that sizes to its content.
|
|
46
|
-
'z-10 mb-6 flex w-88 max-w-full flex-col items-center justify-center gap-1', (size === 'md' || size === 'lg') && 'mb-8 gap-2', props.className) }));
|
|
47
|
-
});
|
|
48
|
-
const Footer = forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
|
|
49
|
-
const prefix = useTestIdPrefix();
|
|
50
|
-
const footerTestId = dataTestId ?? (prefix ? joinTestId(prefix, 'footer') : undefined);
|
|
51
|
-
return jsx("footer", { ...props, ref: ref, "data-testid": footerTestId, className: cx('z-10 flex gap-3', props.className) });
|
|
52
|
-
});
|
|
53
|
-
const Title = forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
|
|
54
|
-
const { size } = useContext(RootContext);
|
|
55
|
-
const prefix = useTestIdPrefix();
|
|
56
|
-
const titleTestId = dataTestId ?? (prefix ? joinTestId(prefix, 'title') : undefined);
|
|
57
|
-
// Set only in a table's empty state; memoised so a title already on screen never spends a hand-off.
|
|
58
|
-
const focusTargetRef = useContext(FocusHandOffTargetContext);
|
|
59
|
-
// Its text only, so other children never change the memo: a title React keeps takes a pending hand-off when its text changes.
|
|
60
|
-
const titleText = titleTextOf(props.children);
|
|
61
|
-
// biome-ignore lint/correctness/useExhaustiveDependencies: a new title text attaches the ref again, as a newly mounted title would.
|
|
62
|
-
const titleRef = useMemo(() => (focusTargetRef ? mergeRefs(ref, focusTargetRef) : ref), [ref, focusTargetRef, titleText]);
|
|
63
|
-
return (jsx("h1", { ...props, ref: titleRef, "data-testid": titleTestId, className: cx('text-md font-semibold text-primary', size === 'md' && 'text-lg font-semibold', size === 'lg' && 'text-xl font-semibold', props.className) }));
|
|
64
|
-
});
|
|
65
|
-
const Description = forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
|
|
66
|
-
const { size } = useContext(RootContext);
|
|
67
|
-
const prefix = useTestIdPrefix();
|
|
68
|
-
const descriptionTestId = dataTestId ?? (prefix ? joinTestId(prefix, 'description') : undefined);
|
|
69
|
-
return (jsx("p", { ...props, ref: ref, "data-testid": descriptionTestId, className: cx('text-center text-sm text-tertiary', size === 'lg' && 'text-md', props.className) }));
|
|
70
|
-
});
|
|
3
|
+
// `typeof` keeps the compound's parts.
|
|
71
4
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
5
|
+
* @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major.
|
|
6
|
+
* `EmptyState.Title` renders an `h2` on this path too, not the `h1` of earlier versions.
|
|
74
7
|
*/
|
|
75
|
-
const
|
|
76
|
-
{ ring: 80, angle: 330, size: 'size-8' },
|
|
77
|
-
{ ring: 80, angle: 56, size: 'size-8' },
|
|
78
|
-
{ ring: 144, angle: 82, size: 'size-7' },
|
|
79
|
-
{ ring: 144, angle: 299, size: 'size-7' },
|
|
80
|
-
{ ring: 144, angle: 241, size: 'size-7' },
|
|
81
|
-
{ ring: 176, angle: 64, size: 'size-6' },
|
|
82
|
-
{ ring: 176, angle: 270, size: 'size-6' },
|
|
83
|
-
{ ring: 144, angle: 112, size: 'size-7' },
|
|
84
|
-
{ ring: 80, angle: 249, size: 'size-8' },
|
|
85
|
-
];
|
|
86
|
-
const RING_RADII = [48, 80, 112, 144, 176];
|
|
87
|
-
const AvatarRadius = forwardRef(({ avatars = [], ...props }, ref) => {
|
|
88
|
-
return (jsxs("div", { "aria-hidden": "true", ...props, ref: ref, className: cx('pointer-events-none absolute top-1/2 left-1/2 size-120 -translate-x-1/2 -translate-y-1/2', props.className), style: {
|
|
89
|
-
maskImage: 'radial-gradient(circle, black 10%, transparent 70%)',
|
|
90
|
-
WebkitMaskImage: 'radial-gradient(circle, black 10%, transparent 70%)',
|
|
91
|
-
...props.style,
|
|
92
|
-
}, children: [RING_RADII.map((radius) => (jsx("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full border border-secondary", style: { width: radius * 2, height: radius * 2 } }, radius))), avatars.slice(0, avatarSlots.length).map((avatar, i) => {
|
|
93
|
-
const slot = avatarSlots[i];
|
|
94
|
-
const { x, y } = avatarRingOffset(slot.angle, slot.ring);
|
|
95
|
-
return (jsx("div", { className: cx('absolute top-1/2 left-1/2 rounded-full bg-primary p-px shadow-xs ring-[0.5px] ring-black/10', slot.size), style: { transform: `translate(calc(-50% + ${x}px), calc(-50% + ${y}px))` }, children: jsx("img", { src: avatar.src, alt: "", className: "size-full rounded-full object-cover outline-[0.5px] -outline-offset-[0.5px] outline-black/16" }) }, i));
|
|
96
|
-
})] }));
|
|
97
|
-
});
|
|
98
|
-
/** Avatar sizes per root size — ordered smallest to largest (left edge → center). */
|
|
99
|
-
const rowStyles = {
|
|
100
|
-
sm: ['size-8 rounded-md', 'size-9 rounded-[7px]', 'size-10 rounded-lg', 'size-11 rounded-[9px]'],
|
|
101
|
-
md: ['size-10 rounded-lg', 'size-11 rounded-[9px]', 'size-12 rounded-[10px]'],
|
|
102
|
-
lg: ['size-10 rounded-lg', 'size-11 rounded-[9px]', 'size-12 rounded-[10px]'],
|
|
103
|
-
};
|
|
104
|
-
const ROW_GAP_CLASS = { sm: 'gap-4', md: 'gap-5', lg: 'gap-6' };
|
|
105
|
-
const AvatarRow = forwardRef(({ avatars = [], children, ...props }, ref) => {
|
|
106
|
-
const { size: rootSize } = useContext(RootContext);
|
|
107
|
-
const sizeKey = rootSize || 'md';
|
|
108
|
-
const sizes = rowStyles[sizeKey];
|
|
109
|
-
const { left: leftAvatars, right: rightAvatars } = placeAvatarRow(avatars, sizes.length);
|
|
110
|
-
const renderAvatar = (avatar, sizeClass, key) => (jsx("div", { className: cx('relative shrink-0 overflow-hidden outline-[0.5px] -outline-offset-[0.5px] outline-black/16 before:absolute before:inset-0 before:rounded-[inherit] before:border before:border-white/32 before:mask-[linear-gradient(to_bottom,black_0%,transparent_25%,transparent_75%,black_100%)]', sizeClass), children: jsx("img", { src: avatar.src, alt: avatar.alt || '', className: "size-full object-cover" }) }, key));
|
|
111
|
-
return (jsxs("div", { "aria-hidden": "true", ...props, ref: ref, className: cx('-m-1 flex items-center justify-center p-1', ROW_GAP_CLASS[sizeKey], props.className), style: {
|
|
112
|
-
maskImage: 'radial-gradient(circle, black 5%, transparent 105%)',
|
|
113
|
-
WebkitMaskImage: 'radial-gradient(circle, black 5%, transparent 105%)',
|
|
114
|
-
...props.style,
|
|
115
|
-
}, children: [jsx("div", { className: cx('flex items-center', sizeKey === 'sm' ? 'gap-3' : 'gap-4'), children: leftAvatars.map(({ avatar, sizeIndex, key }) => renderAvatar(avatar, sizes[sizeIndex], key)) }), children, jsx("div", { className: cx('flex items-center', sizeKey === 'sm' ? 'gap-3' : 'gap-4'), children: rightAvatars.map(({ avatar, sizeIndex, key }) => renderAvatar(avatar, sizes[sizeIndex], key)) })] }));
|
|
116
|
-
});
|
|
117
|
-
const gridStyles = {
|
|
118
|
-
sm: { avatar: 'size-8 rounded-md', inner: 'rounded-[5px]', gap: 'gap-2 pl-2', rowGap: 'gap-2' },
|
|
119
|
-
md: { avatar: 'size-10 rounded-lg', inner: 'rounded-[7px]', gap: 'gap-3 pl-3', rowGap: 'gap-3' },
|
|
120
|
-
lg: { avatar: 'size-12 rounded-[10px]', inner: 'rounded-[9px]', gap: 'gap-3 pl-3', rowGap: 'gap-3' },
|
|
121
|
-
};
|
|
122
|
-
const AvatarGrid = forwardRef(({ avatars = [], ...props }, ref) => {
|
|
123
|
-
const { size: rootSize } = useContext(RootContext);
|
|
124
|
-
const sizeKey = rootSize || 'md';
|
|
125
|
-
const config = gridStyles[sizeKey];
|
|
126
|
-
const { leading, trailing, splitAt } = avatarGridRows(avatars);
|
|
127
|
-
const renderGridAvatar = (avatar, key) => (jsx("div", { className: cx('shrink-0 bg-primary p-px shadow-xs ring-[0.75px] ring-black/10', config.avatar), children: jsx("div", { className: cx('relative size-full overflow-hidden outline-[0.5px] -outline-offset-[0.5px] outline-black/16 before:absolute before:inset-0 before:rounded-[inherit] before:border before:border-white/32 before:mask-[linear-gradient(to_bottom,black_0%,transparent_25%,transparent_75%,black_100%)]', config.inner), children: jsx("img", { src: avatar.src, alt: avatar.alt || '', className: "size-full object-cover" }) }) }, key));
|
|
128
|
-
const renderMarquee = (row, className, keyOffset) => (jsxs("div", { className: "flex", children: [jsx("div", { className: cx(className, config.gap), children: row.map((avatar, index) => renderGridAvatar(avatar, index + keyOffset)) }), jsx("div", { className: cx(className, config.gap), children: row.map((avatar, index) => renderGridAvatar(avatar, index + keyOffset)) })] }));
|
|
129
|
-
return (jsxs("div", { "aria-hidden": "true", ...props, ref: ref, className: cx('-m-1 flex max-w-lg flex-col items-center overflow-x-clip p-1', config.rowGap, props.className), style: {
|
|
130
|
-
maskImage: 'radial-gradient(circle, black 10%, transparent 100%)',
|
|
131
|
-
WebkitMaskImage: 'radial-gradient(circle, black 10%, transparent 100%)',
|
|
132
|
-
...props.style,
|
|
133
|
-
}, children: [renderMarquee(leading, 'flex w-auto max-w-none shrink-0 animate-marquee [animation-duration:240s] motion-reduce:animate-none', 0), renderMarquee(trailing, 'flex w-auto max-w-none shrink-0 animate-marquee [animation-delay:-120s] [animation-duration:240s] direction-reverse motion-reduce:-translate-x-1/2 motion-reduce:animate-none', splitAt)] }));
|
|
134
|
-
});
|
|
8
|
+
const EmptyState = EmptyState$1;
|
|
135
9
|
/**
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
* @summary placeholder for a list, table or page with no data
|
|
10
|
+
* @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major.
|
|
11
|
+
* Its title renders an `h2` on this path too, not the `h1` of earlier versions.
|
|
140
12
|
*/
|
|
141
|
-
const
|
|
142
|
-
EmptyState.Title = Title;
|
|
143
|
-
EmptyState.Header = Header;
|
|
144
|
-
EmptyState.Footer = Footer;
|
|
145
|
-
EmptyState.Content = Content;
|
|
146
|
-
EmptyState.Description = Description;
|
|
147
|
-
EmptyState.Illustration = Illustration;
|
|
148
|
-
EmptyState.FeaturedIcon = FeaturedIcon;
|
|
149
|
-
EmptyState.FileTypeIcon = FileTypeIcon;
|
|
150
|
-
EmptyState.AvatarRadius = AvatarRadius;
|
|
151
|
-
EmptyState.AvatarRow = AvatarRow;
|
|
152
|
-
EmptyState.AvatarGrid = AvatarGrid;
|
|
153
|
-
EmptyState.displayName = 'EmptyState';
|
|
154
|
-
EmptyState.Title.displayName = 'EmptyState.Title';
|
|
155
|
-
EmptyState.Header.displayName = 'EmptyState.Header';
|
|
156
|
-
EmptyState.Footer.displayName = 'EmptyState.Footer';
|
|
157
|
-
EmptyState.Content.displayName = 'EmptyState.Content';
|
|
158
|
-
EmptyState.Description.displayName = 'EmptyState.Description';
|
|
159
|
-
EmptyState.Illustration.displayName = 'EmptyState.Illustration';
|
|
160
|
-
EmptyState.FeaturedIcon.displayName = 'EmptyState.FeaturedIcon';
|
|
161
|
-
EmptyState.FileTypeIcon.displayName = 'EmptyState.FileTypeIcon';
|
|
162
|
-
EmptyState.AvatarRadius.displayName = 'EmptyState.AvatarRadius';
|
|
163
|
-
EmptyState.AvatarRow.displayName = 'EmptyState.AvatarRow';
|
|
164
|
-
EmptyState.AvatarGrid.displayName = 'EmptyState.AvatarGrid';
|
|
165
|
-
/** Ready-made `EmptyState` for a request that failed: it names what could not be loaded and offers one retry button. */
|
|
166
|
-
const LoadErrorState = ({ title, description = 'Something went wrong on our side. Check your connection and try again.', isRetrying, onRetry, className, 'data-testid': dataTestId, }) => {
|
|
167
|
-
const rootTestId = useResolvedTestId({ testId: dataTestId, segment: 'empty-state', rootName: 'empty-state' });
|
|
168
|
-
return (jsx("div", { className: cx('flex w-full items-center justify-center px-8 py-16', className), children: jsxs(EmptyState, { size: "sm", "data-testid": rootTestId, className: "min-w-0", children: [jsx(EmptyState.Header, { pattern: "none", children: jsx(EmptyState.FeaturedIcon, { icon: AlertCircle, color: "error", theme: "modern" }) }), jsxs(EmptyState.Content, { children: [jsx(EmptyState.Title, { children: title }), jsx(EmptyState.Description, { children: description })] }), jsx(EmptyState.Footer, { children: jsx(Button, { color: "secondary", size: "md", isLoading: isRetrying, onPress: onRetry, "data-testid": joinTestId(rootTestId, 'retry'), children: "Try again" }) })] }) }));
|
|
169
|
-
};
|
|
170
|
-
LoadErrorState.displayName = 'LoadErrorState';
|
|
13
|
+
const LoadErrorState = LoadErrorState$1;
|
|
171
14
|
|
|
172
15
|
export { EmptyState, LoadErrorState };
|
|
173
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/molecules/EmptyState/index.tsx"],"sourcesContent":[null],"names":["_jsx","FeaturedIconbase","Illustrations","_jsxs"],"mappings":";;;;;;;;;;;;;;AAuCA,MAAM,WAAW,GAAG,aAAa,CAAmB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAOnE,MAAM,IAAI,GAAG,UAAU,CAA4B,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;AAC/G,IAAA,MAAM,UAAU,GAAG,iBAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;AAE7G,IAAA,QACEA,GAAA,CAAC,WAAW,CAAC,QAAQ,EAAA,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAA,QAAA,EACnCA,IAAC,cAAc,EAAA,EAAC,KAAK,EAAE,UAAU,YAC/BA,GAAA,CAAA,KAAA,EAAA,EAAA,GACM,KAAK,EACT,GAAG,EAAE,GAAG,EAAA,aAAA,EACK,UAAU,EACvB,SAAS,EAAE,EAAE,CAAC,0DAA0D,EAAE,KAAK,CAAC,SAAS,CAAC,GAC1F,EAAA,CACa,EAAA,CACI;AAE3B,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,UAAU,CAC7B,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,GAAG,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;IAC7E,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC,WAAW,CAA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,CACT;AAEV;AACA,cAAc,CAAC,WAAW,GAAG,gBAAgB;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/molecules/EmptyState/index.tsx"],"sourcesContent":[null],"names":["EmptyStateNext","LoadErrorStateNext"],"mappings":";;AAsBA;AACA;;;AAGG;AACI,MAAM,UAAU,GAA0BA;AACjD;;;AAGG;AACI,MAAM,cAAc,GAA0EC;;"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var uiIcons = require('@flipdish/ui-icons');
|
|
5
|
+
var BackgroundPattern = require('@flipdish/ui-library/components/atoms/BackgroundPattern');
|
|
6
|
+
var FeaturedIcon$1 = require('@flipdish/ui-library/components/atoms/FeaturedIcon');
|
|
7
|
+
var Illustration$1 = require('@flipdish/ui-library/components/atoms/Illustration');
|
|
8
|
+
var cx = require('@flipdish/ui-library/utilities/cx');
|
|
9
|
+
var testIdUtils = require('@flipdish/ui-library/utilities/testIdUtils');
|
|
10
|
+
var utils = require('@react-aria/utils');
|
|
11
|
+
var React = require('react');
|
|
12
|
+
var focusHandOff_context = require('../../../__internal__/focusHandOff/focusHandOff.context.cjs');
|
|
13
|
+
var children_utils = require('../../../../utilities/__internal__/childrenUtils/children.utils.cjs');
|
|
14
|
+
var emptyState_utils = require('./utilities/emptyState.utils.cjs');
|
|
15
|
+
|
|
16
|
+
const RootContext = React.createContext({ size: 'lg' });
|
|
17
|
+
const Root = React.forwardRef(({ size = 'lg', 'data-testid': dataTestId, ...props }, ref) => {
|
|
18
|
+
const rootTestId = testIdUtils.useResolvedTestId({ testId: dataTestId, segment: 'empty-state', rootName: 'empty-state' });
|
|
19
|
+
return (jsxRuntime.jsx(RootContext.Provider, { value: { size }, children: jsxRuntime.jsx(testIdUtils.TestIdProvider, { value: rootTestId, children: jsxRuntime.jsx("div", { ...props, ref: ref, "data-testid": rootTestId, className: cx.cx('mx-auto flex w-full flex-col items-center justify-center', props.className) }) }) }));
|
|
20
|
+
});
|
|
21
|
+
const FeaturedIcon = React.forwardRef(({ color = 'gray', theme = 'modern', icon = uiIcons.SearchLg, size, ...props }, ref) => {
|
|
22
|
+
const { size: rootSize } = React.useContext(RootContext);
|
|
23
|
+
return jsxRuntime.jsx(FeaturedIcon$1.FeaturedIcon, { ...props, ref: ref, color, theme, icon, size: emptyState_utils.featuredIconSize(size, rootSize) });
|
|
24
|
+
});
|
|
25
|
+
const Illustration = ({ type = 'cloud', color = 'gray', size = 'lg', ...props }) => {
|
|
26
|
+
const { size: rootSize } = React.useContext(RootContext);
|
|
27
|
+
return (jsxRuntime.jsx(Illustration$1.Illustration, { ...props, "aria-hidden": "true", type: type, size: emptyState_utils.illustrationSize(size, rootSize), className: cx.cx('z-10', props.className) }));
|
|
28
|
+
};
|
|
29
|
+
const FileTypeIcon = React.forwardRef(({ type = 'folder', theme = 'solid', ...props }, ref) => {
|
|
30
|
+
return (jsxRuntime.jsx("div", { ...props, ref: ref, className: cx.cx('relative z-10 flex rounded-full bg-linear-to-b from-utility-neutral-50 to-utility-neutral-200 p-8', props.className), children: jsxRuntime.jsx(uiIcons.FileIcon, { type: type, variant: theme, className: "size-10 drop-shadow-sm" }) }));
|
|
31
|
+
});
|
|
32
|
+
const Header = React.forwardRef(({ pattern = 'circle', patternSize = 'md', 'data-testid': dataTestId, ...props }, ref) => {
|
|
33
|
+
const { size } = React.useContext(RootContext);
|
|
34
|
+
const prefix = testIdUtils.useTestIdPrefix();
|
|
35
|
+
const headerTestId = dataTestId ?? (prefix ? testIdUtils.joinTestId(prefix, 'header') : undefined);
|
|
36
|
+
const backgroundPattern = emptyState_utils.headerBackgroundPattern(pattern, patternSize);
|
|
37
|
+
// Whether we are passing `Illustration` component as children.
|
|
38
|
+
const hasIllustration = children_utils.flattenChildren(props.children).some((headerChild) => React.isValidElement(headerChild) && headerChild.type === Illustration);
|
|
39
|
+
return (jsxRuntime.jsxs("header", { ...props, ref: ref, "data-testid": headerTestId, className: cx.cx('relative mb-4', (size === 'md' || size === 'lg') && 'mb-5', hasIllustration && size === 'lg' && 'mb-6!', props.className), children: [backgroundPattern && jsxRuntime.jsx(BackgroundPattern.BackgroundPattern, { ...backgroundPattern, className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" }), props.children] }));
|
|
40
|
+
});
|
|
41
|
+
const Content = React.forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
|
|
42
|
+
const { size } = React.useContext(RootContext);
|
|
43
|
+
const prefix = testIdUtils.useTestIdPrefix();
|
|
44
|
+
const contentTestId = dataTestId ?? (prefix ? testIdUtils.joinTestId(prefix, 'content') : undefined);
|
|
45
|
+
return (jsxRuntime.jsx("div", { ...props, ref: ref, "data-testid": contentTestId, className: cx.cx(
|
|
46
|
+
// Fixed and capped by the parent rather than `w-full`, which shrinks to the text in a parent that sizes to its content.
|
|
47
|
+
'z-10 mb-6 flex w-88 max-w-full flex-col items-center justify-center gap-1', (size === 'md' || size === 'lg') && 'mb-8 gap-2', props.className) }));
|
|
48
|
+
});
|
|
49
|
+
const Footer = React.forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
|
|
50
|
+
const prefix = testIdUtils.useTestIdPrefix();
|
|
51
|
+
const footerTestId = dataTestId ?? (prefix ? testIdUtils.joinTestId(prefix, 'footer') : undefined);
|
|
52
|
+
return jsxRuntime.jsx("footer", { ...props, ref: ref, "data-testid": footerTestId, className: cx.cx('z-10 flex gap-3', props.className) });
|
|
53
|
+
});
|
|
54
|
+
const Title = React.forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
|
|
55
|
+
const { size } = React.useContext(RootContext);
|
|
56
|
+
const prefix = testIdUtils.useTestIdPrefix();
|
|
57
|
+
const titleTestId = dataTestId ?? (prefix ? testIdUtils.joinTestId(prefix, 'title') : undefined);
|
|
58
|
+
// Set only in a table's empty state; memoised so a title already on screen never spends a hand-off.
|
|
59
|
+
const focusTargetRef = React.useContext(focusHandOff_context.FocusHandOffTargetContext);
|
|
60
|
+
// Its text only, so other children never change the memo: a title React keeps takes a pending hand-off when its text changes.
|
|
61
|
+
const titleText = emptyState_utils.titleTextOf(props.children);
|
|
62
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: a new title text attaches the ref again, as a newly mounted title would.
|
|
63
|
+
const titleRef = React.useMemo(() => (focusTargetRef ? utils.mergeRefs(ref, focusTargetRef) : ref), [ref, focusTargetRef, titleText]);
|
|
64
|
+
return (jsxRuntime.jsx("h2", { ...props, ref: titleRef, "data-testid": titleTestId, className: cx.cx('text-md font-semibold text-primary', size === 'md' && 'text-lg font-semibold', size === 'lg' && 'text-xl font-semibold', props.className) }));
|
|
65
|
+
});
|
|
66
|
+
const Description = React.forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
|
|
67
|
+
const { size } = React.useContext(RootContext);
|
|
68
|
+
const prefix = testIdUtils.useTestIdPrefix();
|
|
69
|
+
const descriptionTestId = dataTestId ?? (prefix ? testIdUtils.joinTestId(prefix, 'description') : undefined);
|
|
70
|
+
return (jsxRuntime.jsx("p", { ...props, ref: ref, "data-testid": descriptionTestId, className: cx.cx('text-center text-sm text-tertiary', size === 'lg' && 'text-md', props.className) }));
|
|
71
|
+
});
|
|
72
|
+
/**
|
|
73
|
+
* Predefined avatar slots positioned on concentric circle rings.
|
|
74
|
+
* Each slot defines: ring radius, CSS angle (0°=top, clockwise), and avatar size class.
|
|
75
|
+
*/
|
|
76
|
+
const avatarSlots = [
|
|
77
|
+
{ ring: 80, angle: 330, size: 'size-8' },
|
|
78
|
+
{ ring: 80, angle: 56, size: 'size-8' },
|
|
79
|
+
{ ring: 144, angle: 82, size: 'size-7' },
|
|
80
|
+
{ ring: 144, angle: 299, size: 'size-7' },
|
|
81
|
+
{ ring: 144, angle: 241, size: 'size-7' },
|
|
82
|
+
{ ring: 176, angle: 64, size: 'size-6' },
|
|
83
|
+
{ ring: 176, angle: 270, size: 'size-6' },
|
|
84
|
+
{ ring: 144, angle: 112, size: 'size-7' },
|
|
85
|
+
{ ring: 80, angle: 249, size: 'size-8' },
|
|
86
|
+
];
|
|
87
|
+
const RING_RADII = [48, 80, 112, 144, 176];
|
|
88
|
+
const AvatarRadius = React.forwardRef(({ avatars = [], ...props }, ref) => {
|
|
89
|
+
return (jsxRuntime.jsxs("div", { "aria-hidden": "true", ...props, ref: ref, className: cx.cx('pointer-events-none absolute top-1/2 left-1/2 size-120 -translate-x-1/2 -translate-y-1/2', props.className), style: {
|
|
90
|
+
maskImage: 'radial-gradient(circle, black 10%, transparent 70%)',
|
|
91
|
+
WebkitMaskImage: 'radial-gradient(circle, black 10%, transparent 70%)',
|
|
92
|
+
...props.style,
|
|
93
|
+
}, children: [RING_RADII.map((radius) => (jsxRuntime.jsx("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full border border-secondary", style: { width: radius * 2, height: radius * 2 } }, radius))), avatars.slice(0, avatarSlots.length).map((avatar, i) => {
|
|
94
|
+
const slot = avatarSlots[i];
|
|
95
|
+
const { x, y } = emptyState_utils.avatarRingOffset(slot.angle, slot.ring);
|
|
96
|
+
return (jsxRuntime.jsx("div", { className: cx.cx('absolute top-1/2 left-1/2 rounded-full bg-primary p-px shadow-xs ring-[0.5px] ring-black/10', slot.size), style: { transform: `translate(calc(-50% + ${x}px), calc(-50% + ${y}px))` }, children: jsxRuntime.jsx("img", { src: avatar.src, alt: "", className: "size-full rounded-full object-cover outline-[0.5px] -outline-offset-[0.5px] outline-black/16" }) }, i));
|
|
97
|
+
})] }));
|
|
98
|
+
});
|
|
99
|
+
/** Avatar sizes per root size — ordered smallest to largest (left edge → center). */
|
|
100
|
+
const rowStyles = {
|
|
101
|
+
sm: ['size-8 rounded-md', 'size-9 rounded-[7px]', 'size-10 rounded-lg', 'size-11 rounded-[9px]'],
|
|
102
|
+
md: ['size-10 rounded-lg', 'size-11 rounded-[9px]', 'size-12 rounded-[10px]'],
|
|
103
|
+
lg: ['size-10 rounded-lg', 'size-11 rounded-[9px]', 'size-12 rounded-[10px]'],
|
|
104
|
+
};
|
|
105
|
+
const ROW_GAP_CLASS = { sm: 'gap-4', md: 'gap-5', lg: 'gap-6' };
|
|
106
|
+
const AvatarRow = React.forwardRef(({ avatars = [], children, ...props }, ref) => {
|
|
107
|
+
const { size: rootSize } = React.useContext(RootContext);
|
|
108
|
+
const sizeKey = rootSize || 'md';
|
|
109
|
+
const sizes = rowStyles[sizeKey];
|
|
110
|
+
const { left: leftAvatars, right: rightAvatars } = emptyState_utils.placeAvatarRow(avatars, sizes.length);
|
|
111
|
+
const renderAvatar = (avatar, sizeClass, key) => (jsxRuntime.jsx("div", { className: cx.cx('relative shrink-0 overflow-hidden outline-[0.5px] -outline-offset-[0.5px] outline-black/16 before:absolute before:inset-0 before:rounded-[inherit] before:border before:border-white/32 before:mask-[linear-gradient(to_bottom,black_0%,transparent_25%,transparent_75%,black_100%)]', sizeClass), children: jsxRuntime.jsx("img", { src: avatar.src, alt: avatar.alt || '', className: "size-full object-cover" }) }, key));
|
|
112
|
+
return (jsxRuntime.jsxs("div", { "aria-hidden": "true", ...props, ref: ref, className: cx.cx('-m-1 flex items-center justify-center p-1', ROW_GAP_CLASS[sizeKey], props.className), style: {
|
|
113
|
+
maskImage: 'radial-gradient(circle, black 5%, transparent 105%)',
|
|
114
|
+
WebkitMaskImage: 'radial-gradient(circle, black 5%, transparent 105%)',
|
|
115
|
+
...props.style,
|
|
116
|
+
}, children: [jsxRuntime.jsx("div", { className: cx.cx('flex items-center', sizeKey === 'sm' ? 'gap-3' : 'gap-4'), children: leftAvatars.map(({ avatar, sizeIndex, key }) => renderAvatar(avatar, sizes[sizeIndex], key)) }), children, jsxRuntime.jsx("div", { className: cx.cx('flex items-center', sizeKey === 'sm' ? 'gap-3' : 'gap-4'), children: rightAvatars.map(({ avatar, sizeIndex, key }) => renderAvatar(avatar, sizes[sizeIndex], key)) })] }));
|
|
117
|
+
});
|
|
118
|
+
const gridStyles = {
|
|
119
|
+
sm: { avatar: 'size-8 rounded-md', inner: 'rounded-[5px]', gap: 'gap-2 pl-2', rowGap: 'gap-2' },
|
|
120
|
+
md: { avatar: 'size-10 rounded-lg', inner: 'rounded-[7px]', gap: 'gap-3 pl-3', rowGap: 'gap-3' },
|
|
121
|
+
lg: { avatar: 'size-12 rounded-[10px]', inner: 'rounded-[9px]', gap: 'gap-3 pl-3', rowGap: 'gap-3' },
|
|
122
|
+
};
|
|
123
|
+
const AvatarGrid = React.forwardRef(({ avatars = [], ...props }, ref) => {
|
|
124
|
+
const { size: rootSize } = React.useContext(RootContext);
|
|
125
|
+
const sizeKey = rootSize || 'md';
|
|
126
|
+
const config = gridStyles[sizeKey];
|
|
127
|
+
const { leading, trailing, splitAt } = emptyState_utils.avatarGridRows(avatars);
|
|
128
|
+
const renderGridAvatar = (avatar, key) => (jsxRuntime.jsx("div", { className: cx.cx('shrink-0 bg-primary p-px shadow-xs ring-[0.75px] ring-black/10', config.avatar), children: jsxRuntime.jsx("div", { className: cx.cx('relative size-full overflow-hidden outline-[0.5px] -outline-offset-[0.5px] outline-black/16 before:absolute before:inset-0 before:rounded-[inherit] before:border before:border-white/32 before:mask-[linear-gradient(to_bottom,black_0%,transparent_25%,transparent_75%,black_100%)]', config.inner), children: jsxRuntime.jsx("img", { src: avatar.src, alt: avatar.alt || '', className: "size-full object-cover" }) }) }, key));
|
|
129
|
+
const renderMarquee = (row, className, keyOffset) => (jsxRuntime.jsxs("div", { className: "flex", children: [jsxRuntime.jsx("div", { className: cx.cx(className, config.gap), children: row.map((avatar, index) => renderGridAvatar(avatar, index + keyOffset)) }), jsxRuntime.jsx("div", { className: cx.cx(className, config.gap), children: row.map((avatar, index) => renderGridAvatar(avatar, index + keyOffset)) })] }));
|
|
130
|
+
return (jsxRuntime.jsxs("div", { "aria-hidden": "true", ...props, ref: ref, className: cx.cx('-m-1 flex max-w-lg flex-col items-center overflow-x-clip p-1', config.rowGap, props.className), style: {
|
|
131
|
+
maskImage: 'radial-gradient(circle, black 10%, transparent 100%)',
|
|
132
|
+
WebkitMaskImage: 'radial-gradient(circle, black 10%, transparent 100%)',
|
|
133
|
+
...props.style,
|
|
134
|
+
}, children: [renderMarquee(leading, 'flex w-auto max-w-none shrink-0 animate-marquee [animation-duration:240s] motion-reduce:animate-none', 0), renderMarquee(trailing, 'flex w-auto max-w-none shrink-0 animate-marquee [animation-delay:-120s] [animation-duration:240s] direction-reverse motion-reduce:-translate-x-1/2 motion-reduce:animate-none', splitAt)] }));
|
|
135
|
+
});
|
|
136
|
+
/**
|
|
137
|
+
* Placeholder for a list, table or page with nothing to show yet: an icon or illustration,
|
|
138
|
+
* a title, supporting text and optional actions.
|
|
139
|
+
*
|
|
140
|
+
* @summary placeholder for a list, table or page with no data
|
|
141
|
+
*/
|
|
142
|
+
const EmptyState = Root;
|
|
143
|
+
EmptyState.Title = Title;
|
|
144
|
+
EmptyState.Header = Header;
|
|
145
|
+
EmptyState.Footer = Footer;
|
|
146
|
+
EmptyState.Content = Content;
|
|
147
|
+
EmptyState.Description = Description;
|
|
148
|
+
EmptyState.Illustration = Illustration;
|
|
149
|
+
EmptyState.FeaturedIcon = FeaturedIcon;
|
|
150
|
+
EmptyState.FileTypeIcon = FileTypeIcon;
|
|
151
|
+
EmptyState.AvatarRadius = AvatarRadius;
|
|
152
|
+
EmptyState.AvatarRow = AvatarRow;
|
|
153
|
+
EmptyState.AvatarGrid = AvatarGrid;
|
|
154
|
+
EmptyState.displayName = 'EmptyState';
|
|
155
|
+
EmptyState.Title.displayName = 'EmptyState.Title';
|
|
156
|
+
EmptyState.Header.displayName = 'EmptyState.Header';
|
|
157
|
+
EmptyState.Footer.displayName = 'EmptyState.Footer';
|
|
158
|
+
EmptyState.Content.displayName = 'EmptyState.Content';
|
|
159
|
+
EmptyState.Description.displayName = 'EmptyState.Description';
|
|
160
|
+
EmptyState.Illustration.displayName = 'EmptyState.Illustration';
|
|
161
|
+
EmptyState.FeaturedIcon.displayName = 'EmptyState.FeaturedIcon';
|
|
162
|
+
EmptyState.FileTypeIcon.displayName = 'EmptyState.FileTypeIcon';
|
|
163
|
+
EmptyState.AvatarRadius.displayName = 'EmptyState.AvatarRadius';
|
|
164
|
+
EmptyState.AvatarRow.displayName = 'EmptyState.AvatarRow';
|
|
165
|
+
EmptyState.AvatarGrid.displayName = 'EmptyState.AvatarGrid';
|
|
166
|
+
|
|
167
|
+
exports.EmptyState = EmptyState;
|
|
168
|
+
//# sourceMappingURL=EmptyState.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState.cjs","sources":["../../../../../src/components/molecules/EmptyStates/EmptyState/EmptyState.tsx"],"sourcesContent":[null],"names":["createContext","forwardRef","useResolvedTestId","_jsx","TestIdProvider","cx","SearchLg","useContext","FeaturedIconbase","featuredIconSize","Illustrations","illustrationSize","FileIcon","useTestIdPrefix","joinTestId","headerBackgroundPattern","flattenChildren","isValidElement","_jsxs","BackgroundPattern","FocusHandOffTargetContext","titleTextOf","useMemo","mergeRefs","avatarRingOffset","placeAvatarRow","avatarGridRows"],"mappings":";;;;;;;;;;;;;;;AAsCA,MAAM,WAAW,GAAGA,mBAAa,CAAmB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAOnE,MAAM,IAAI,GAAGC,gBAAU,CAA4B,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;AAC/G,IAAA,MAAM,UAAU,GAAGC,6BAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;AAE7G,IAAA,QACEC,cAAA,CAAC,WAAW,CAAC,QAAQ,EAAA,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAA,QAAA,EACnCA,eAACC,0BAAc,EAAA,EAAC,KAAK,EAAE,UAAU,YAC/BD,cAAA,CAAA,KAAA,EAAA,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U,CAAC,KAAY,CAAC,WAAW,GAAG,kBAAkB;AACxD,UAAU,CAAC,MAAa,CAAC,WAAW,GAAG,mBAAmB;AAC1D,UAAU,CAAC,MAAa,CAAC,WAAW,GAAG,mBAAmB;AAC1D,UAAU,CAAC,OAAc,CAAC,WAAW,GAAG,oBAAoB;AAC5D,UAAU,CAAC,WAAkB,CAAC,WAAW,GAAG,wBAAwB;AACpE,UAAU,CAAC,YAAmB,CAAC,WAAW,GAAG,yBAAyB;AACtE,UAAU,CAAC,YAAmB,CAAC,WAAW,GAAG,yBAAyB;AACtE,UAAU,CAAC,YAAmB,CAAC,WAAW,GAAG,yBAAyB;AACtE,UAAU,CAAC,YAAmB,CAAC,WAAW,GAAG,yBAAyB;AACtE,UAAU,CAAC,SAAgB,CAAC,WAAW,GAAG,sBAAsB;AAChE,UAAU,CAAC,UAAiB,CAAC,WAAW,GAAG,uBAAuB;;"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { FileIcon } from '@flipdish/ui-icons';
|
|
2
|
+
import type { BackgroundPatternProps } from '@flipdish/ui-library/components/atoms/BackgroundPattern';
|
|
3
|
+
import { Illustration as Illustrations } from '@flipdish/ui-library/components/atoms/Illustration';
|
|
4
|
+
import { type ComponentProps, type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
5
|
+
interface RootContextProps {
|
|
6
|
+
/** Scales the icon, illustration, avatars, text and spacing of every part through context. */
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
}
|
|
9
|
+
export interface RootProps extends ComponentPropsWithoutRef<'div'>, RootContextProps {
|
|
10
|
+
/** Overrides the derived `data-testid` for the root (defaults to `fd-empty-state`). */
|
|
11
|
+
'data-testid'?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const Root: import("react").ForwardRefExoticComponent<RootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const FeaturedIcon: import("react").ForwardRefExoticComponent<Omit<import("@flipdish/ui-library/components/atoms/FeaturedIcon").FeaturedIconProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const Illustration: ({ type, color, size, ...props }: ComponentPropsWithoutRef<typeof Illustrations>) => import("react").JSX.Element;
|
|
16
|
+
export interface FileTypeIconProps extends ComponentPropsWithoutRef<'div'> {
|
|
17
|
+
/** File type whose icon is shown. */
|
|
18
|
+
type?: ComponentProps<typeof FileIcon>['type'];
|
|
19
|
+
/** Visual variant of the file icon. */
|
|
20
|
+
theme?: ComponentProps<typeof FileIcon>['variant'];
|
|
21
|
+
}
|
|
22
|
+
declare const FileTypeIcon: import("react").ForwardRefExoticComponent<FileTypeIconProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export interface HeaderProps extends ComponentPropsWithoutRef<'div'> {
|
|
24
|
+
/** Decorative background pattern drawn behind the header content; `none` hides it. */
|
|
25
|
+
pattern?: 'none' | BackgroundPatternProps['pattern'];
|
|
26
|
+
/** Size of the background pattern; `grid-check` caps at `md`. */
|
|
27
|
+
patternSize?: 'sm' | 'md' | 'lg';
|
|
28
|
+
/** Overrides the derived `data-testid` for the header (defaults to `<root>--header`). */
|
|
29
|
+
'data-testid'?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const Header: import("react").ForwardRefExoticComponent<HeaderProps & import("react").RefAttributes<HTMLElement>>;
|
|
32
|
+
export interface ContentProps extends ComponentPropsWithoutRef<'div'> {
|
|
33
|
+
/** Overrides the derived `data-testid` for the content block (defaults to `<root>--content`). */
|
|
34
|
+
'data-testid'?: string;
|
|
35
|
+
}
|
|
36
|
+
declare const Content: import("react").ForwardRefExoticComponent<ContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
37
|
+
export interface FooterProps extends ComponentPropsWithoutRef<'div'> {
|
|
38
|
+
/** Overrides the derived `data-testid` for the footer (defaults to `<root>--footer`). */
|
|
39
|
+
'data-testid'?: string;
|
|
40
|
+
}
|
|
41
|
+
declare const Footer: import("react").ForwardRefExoticComponent<FooterProps & import("react").RefAttributes<HTMLElement>>;
|
|
42
|
+
export interface TitleProps extends ComponentPropsWithoutRef<'h2'> {
|
|
43
|
+
/** Overrides the derived `data-testid` for the title (defaults to `<root>--title`). */
|
|
44
|
+
'data-testid'?: string;
|
|
45
|
+
}
|
|
46
|
+
declare const Title: import("react").ForwardRefExoticComponent<TitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
47
|
+
export interface DescriptionProps extends ComponentPropsWithoutRef<'p'> {
|
|
48
|
+
/** Overrides the derived `data-testid` for the description (defaults to `<root>--description`). */
|
|
49
|
+
'data-testid'?: string;
|
|
50
|
+
}
|
|
51
|
+
declare const Description: import("react").ForwardRefExoticComponent<DescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
52
|
+
export interface AvatarRadiusProps extends ComponentPropsWithoutRef<'div'> {
|
|
53
|
+
/** Decorative avatars placed on the concentric rings; only the first nine are shown. */
|
|
54
|
+
avatars?: Array<{
|
|
55
|
+
src: string;
|
|
56
|
+
alt?: string;
|
|
57
|
+
}>;
|
|
58
|
+
}
|
|
59
|
+
declare const AvatarRadius: import("react").ForwardRefExoticComponent<AvatarRadiusProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
60
|
+
export interface AvatarRowProps extends ComponentPropsWithoutRef<'div'> {
|
|
61
|
+
/** Decorative avatars split either side of `children`, growing towards the centre. */
|
|
62
|
+
avatars?: Array<{
|
|
63
|
+
src: string;
|
|
64
|
+
alt?: string;
|
|
65
|
+
}>;
|
|
66
|
+
/** Content shown in the centre of the row, between the two avatar groups. */
|
|
67
|
+
children?: ReactNode;
|
|
68
|
+
}
|
|
69
|
+
declare const AvatarRow: import("react").ForwardRefExoticComponent<AvatarRowProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
70
|
+
export interface AvatarGridProps extends ComponentPropsWithoutRef<'div'> {
|
|
71
|
+
/** Decorative avatars split across two rows that scroll in opposite directions. */
|
|
72
|
+
avatars?: Array<{
|
|
73
|
+
src: string;
|
|
74
|
+
alt?: string;
|
|
75
|
+
}>;
|
|
76
|
+
}
|
|
77
|
+
declare const AvatarGrid: import("react").ForwardRefExoticComponent<AvatarGridProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
78
|
+
/**
|
|
79
|
+
* Placeholder for a list, table or page with nothing to show yet: an icon or illustration,
|
|
80
|
+
* a title, supporting text and optional actions.
|
|
81
|
+
*
|
|
82
|
+
* @summary placeholder for a list, table or page with no data
|
|
83
|
+
*/
|
|
84
|
+
declare const EmptyState: typeof Root & {
|
|
85
|
+
Title: typeof Title;
|
|
86
|
+
Header: typeof Header;
|
|
87
|
+
Footer: typeof Footer;
|
|
88
|
+
Content: typeof Content;
|
|
89
|
+
Description: typeof Description;
|
|
90
|
+
Illustration: typeof Illustration;
|
|
91
|
+
FeaturedIcon: typeof FeaturedIcon;
|
|
92
|
+
FileTypeIcon: typeof FileTypeIcon;
|
|
93
|
+
AvatarRadius: typeof AvatarRadius;
|
|
94
|
+
AvatarRow: typeof AvatarRow;
|
|
95
|
+
AvatarGrid: typeof AvatarGrid;
|
|
96
|
+
};
|
|
97
|
+
export { EmptyState };
|
|
98
|
+
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/EmptyStates/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAY,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AAGtG,OAAO,EAAE,YAAY,IAAI,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAInG,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAK7B,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAaf,UAAU,gBAAgB;IACxB,8FAA8F;IAC9F,IAAI,CAAC,EAAE,IAAI,GAAG,IAA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