@flipdish/ui-library 0.72.1 → 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.
Files changed (171) hide show
  1. package/dist/components/atoms/Avatar/components/AvatarBase.cjs +3 -1
  2. package/dist/components/atoms/Avatar/components/AvatarBase.cjs.map +1 -1
  3. package/dist/components/atoms/Avatar/components/AvatarBase.d.ts.map +1 -1
  4. package/dist/components/atoms/Avatar/components/AvatarBase.js +3 -1
  5. package/dist/components/atoms/Avatar/components/AvatarBase.js.map +1 -1
  6. package/dist/components/atoms/Badges/Badge/Badge.cjs +5 -2
  7. package/dist/components/atoms/Badges/Badge/Badge.cjs.map +1 -1
  8. package/dist/components/atoms/Badges/Badge/Badge.d.ts +4 -0
  9. package/dist/components/atoms/Badges/Badge/Badge.d.ts.map +1 -1
  10. package/dist/components/atoms/Badges/Badge/Badge.js +5 -2
  11. package/dist/components/atoms/Badges/Badge/Badge.js.map +1 -1
  12. package/dist/components/atoms/Inputs/Input/Input.cjs +1 -1
  13. package/dist/components/atoms/Inputs/Input/Input.cjs.map +1 -1
  14. package/dist/components/atoms/Inputs/Input/Input.js +1 -1
  15. package/dist/components/atoms/Inputs/Input/Input.js.map +1 -1
  16. package/dist/components/atoms/Inputs/SearchInput/SearchInput.cjs +1 -1
  17. package/dist/components/atoms/Inputs/SearchInput/SearchInput.cjs.map +1 -1
  18. package/dist/components/atoms/Inputs/SearchInput/SearchInput.js +1 -1
  19. package/dist/components/atoms/Inputs/SearchInput/SearchInput.js.map +1 -1
  20. package/dist/components/atoms/PhoneInput/index.cjs +1 -1
  21. package/dist/components/atoms/PhoneInput/index.cjs.map +1 -1
  22. package/dist/components/atoms/PhoneInput/index.js +1 -1
  23. package/dist/components/atoms/PhoneInput/index.js.map +1 -1
  24. package/dist/components/molecules/DetailList/detailList.types.d.ts +2 -0
  25. package/dist/components/molecules/DetailList/detailList.types.d.ts.map +1 -1
  26. package/dist/components/molecules/DetailList/index.cjs +10 -1
  27. package/dist/components/molecules/DetailList/index.cjs.map +1 -1
  28. package/dist/components/molecules/DetailList/index.d.ts.map +1 -1
  29. package/dist/components/molecules/DetailList/index.js +10 -1
  30. package/dist/components/molecules/DetailList/index.js.map +1 -1
  31. package/dist/components/molecules/DetailList/utilities/detailList.utils.cjs +17 -0
  32. package/dist/components/molecules/DetailList/utilities/detailList.utils.cjs.map +1 -0
  33. package/dist/components/molecules/DetailList/utilities/detailList.utils.d.ts +10 -0
  34. package/dist/components/molecules/DetailList/utilities/detailList.utils.d.ts.map +1 -0
  35. package/dist/components/molecules/DetailList/utilities/detailList.utils.js +15 -0
  36. package/dist/components/molecules/DetailList/utilities/detailList.utils.js.map +1 -0
  37. package/dist/components/molecules/EmptyState/index.cjs +8 -165
  38. package/dist/components/molecules/EmptyState/index.cjs.map +1 -1
  39. package/dist/components/molecules/EmptyState/index.d.ts +33 -105
  40. package/dist/components/molecules/EmptyState/index.d.ts.map +1 -1
  41. package/dist/components/molecules/EmptyState/index.js +8 -165
  42. package/dist/components/molecules/EmptyState/index.js.map +1 -1
  43. package/dist/components/molecules/EmptyStates/EmptyState/EmptyState.cjs +168 -0
  44. package/dist/components/molecules/EmptyStates/EmptyState/EmptyState.cjs.map +1 -0
  45. package/dist/components/molecules/EmptyStates/EmptyState/EmptyState.d.ts +98 -0
  46. package/dist/components/molecules/EmptyStates/EmptyState/EmptyState.d.ts.map +1 -0
  47. package/dist/components/molecules/EmptyStates/EmptyState/EmptyState.js +166 -0
  48. package/dist/components/molecules/EmptyStates/EmptyState/EmptyState.js.map +1 -0
  49. package/dist/components/molecules/EmptyStates/EmptyState/utilities/emptyState.utils.cjs.map +1 -0
  50. package/dist/components/molecules/EmptyStates/EmptyState/utilities/emptyState.utils.d.ts.map +1 -0
  51. package/dist/components/molecules/EmptyStates/EmptyState/utilities/emptyState.utils.js.map +1 -0
  52. package/dist/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.cjs +22 -0
  53. package/dist/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.cjs.map +1 -0
  54. package/dist/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.d.ts +25 -0
  55. package/dist/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.d.ts.map +1 -0
  56. package/dist/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.js +20 -0
  57. package/dist/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.js.map +1 -0
  58. package/dist/components/molecules/EmptyStates/NoResultsState/NoResultsState.cjs +22 -0
  59. package/dist/components/molecules/EmptyStates/NoResultsState/NoResultsState.cjs.map +1 -0
  60. package/dist/components/molecules/EmptyStates/NoResultsState/NoResultsState.d.ts +23 -0
  61. package/dist/components/molecules/EmptyStates/NoResultsState/NoResultsState.d.ts.map +1 -0
  62. package/dist/components/molecules/EmptyStates/NoResultsState/NoResultsState.js +20 -0
  63. package/dist/components/molecules/EmptyStates/NoResultsState/NoResultsState.js.map +1 -0
  64. package/dist/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.cjs +24 -0
  65. package/dist/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.cjs.map +1 -0
  66. package/dist/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.d.ts +28 -0
  67. package/dist/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.d.ts.map +1 -0
  68. package/dist/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.js +22 -0
  69. package/dist/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.js.map +1 -0
  70. package/dist/components/molecules/EmptyStates/components/EmptyStateReadyMade.cjs +12 -0
  71. package/dist/components/molecules/EmptyStates/components/EmptyStateReadyMade.cjs.map +1 -0
  72. package/dist/components/molecules/EmptyStates/components/EmptyStateReadyMade.d.ts +20 -0
  73. package/dist/components/molecules/EmptyStates/components/EmptyStateReadyMade.d.ts.map +1 -0
  74. package/dist/components/molecules/EmptyStates/components/EmptyStateReadyMade.js +10 -0
  75. package/dist/components/molecules/EmptyStates/components/EmptyStateReadyMade.js.map +1 -0
  76. package/dist/components/molecules/EmptyStates/index.cjs +14 -0
  77. package/dist/components/molecules/EmptyStates/index.cjs.map +1 -0
  78. package/dist/components/molecules/EmptyStates/index.d.ts +19 -0
  79. package/dist/components/molecules/EmptyStates/index.d.ts.map +1 -0
  80. package/dist/components/molecules/EmptyStates/index.js +5 -0
  81. package/dist/components/molecules/EmptyStates/index.js.map +1 -0
  82. package/dist/components/molecules/EmptyStates/utilities/emptyStates.utils.cjs +12 -0
  83. package/dist/components/molecules/EmptyStates/utilities/emptyStates.utils.cjs.map +1 -0
  84. package/dist/components/molecules/EmptyStates/utilities/emptyStates.utils.d.ts +8 -0
  85. package/dist/components/molecules/EmptyStates/utilities/emptyStates.utils.d.ts.map +1 -0
  86. package/dist/components/molecules/EmptyStates/utilities/emptyStates.utils.js +10 -0
  87. package/dist/components/molecules/EmptyStates/utilities/emptyStates.utils.js.map +1 -0
  88. package/dist/components/molecules/Selects/MultiSelect/MultiSelect.cjs +1 -1
  89. package/dist/components/molecules/Selects/MultiSelect/MultiSelect.cjs.map +1 -1
  90. package/dist/components/molecules/Selects/MultiSelect/MultiSelect.js +1 -1
  91. package/dist/components/molecules/Selects/MultiSelect/MultiSelect.js.map +1 -1
  92. package/dist/components/molecules/Tabs/index.cjs +31 -9
  93. package/dist/components/molecules/Tabs/index.cjs.map +1 -1
  94. package/dist/components/molecules/Tabs/index.d.ts +10 -6
  95. package/dist/components/molecules/Tabs/index.d.ts.map +1 -1
  96. package/dist/components/molecules/Tabs/index.js +33 -11
  97. package/dist/components/molecules/Tabs/index.js.map +1 -1
  98. package/dist/components/molecules/Tabs/utilities/tabs.utils.cjs +40 -0
  99. package/dist/components/molecules/Tabs/utilities/tabs.utils.cjs.map +1 -0
  100. package/dist/components/molecules/Tabs/utilities/tabs.utils.d.ts +23 -0
  101. package/dist/components/molecules/Tabs/utilities/tabs.utils.d.ts.map +1 -0
  102. package/dist/components/molecules/Tabs/utilities/tabs.utils.js +37 -0
  103. package/dist/components/molecules/Tabs/utilities/tabs.utils.js.map +1 -0
  104. package/dist/components/organisms/CommandMenu/components/CommandInput.cjs +1 -1
  105. package/dist/components/organisms/CommandMenu/components/CommandInput.cjs.map +1 -1
  106. package/dist/components/organisms/CommandMenu/components/CommandInput.js +1 -1
  107. package/dist/components/organisms/CommandMenu/components/CommandInput.js.map +1 -1
  108. package/dist/components/organisms/DatePickers/DatePicker/DatePicker.cjs +4 -1
  109. package/dist/components/organisms/DatePickers/DatePicker/DatePicker.cjs.map +1 -1
  110. package/dist/components/organisms/DatePickers/DatePicker/DatePicker.d.ts.map +1 -1
  111. package/dist/components/organisms/DatePickers/DatePicker/DatePicker.js +6 -3
  112. package/dist/components/organisms/DatePickers/DatePicker/DatePicker.js.map +1 -1
  113. package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.cjs +32 -11
  114. package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.cjs.map +1 -1
  115. package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.d.ts +5 -5
  116. package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  117. package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.js +35 -14
  118. package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.js.map +1 -1
  119. package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.cjs +14 -3
  120. package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.cjs.map +1 -1
  121. package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.d.ts +3 -8
  122. package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.d.ts.map +1 -1
  123. package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.js +14 -3
  124. package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.js.map +1 -1
  125. package/dist/components/organisms/DatePickers/datePickers.types.d.ts +17 -0
  126. package/dist/components/organisms/DatePickers/datePickers.types.d.ts.map +1 -0
  127. package/dist/components/organisms/DatePickers/hooks/useDateRangePresets.cjs +23 -0
  128. package/dist/components/organisms/DatePickers/hooks/useDateRangePresets.cjs.map +1 -0
  129. package/dist/components/organisms/DatePickers/hooks/useDateRangePresets.d.ts +11 -0
  130. package/dist/components/organisms/DatePickers/hooks/useDateRangePresets.d.ts.map +1 -0
  131. package/dist/components/organisms/DatePickers/hooks/useDateRangePresets.js +21 -0
  132. package/dist/components/organisms/DatePickers/hooks/useDateRangePresets.js.map +1 -0
  133. package/dist/components/organisms/DatePickers/hooks/useToday.cjs +18 -0
  134. package/dist/components/organisms/DatePickers/hooks/useToday.cjs.map +1 -0
  135. package/dist/components/organisms/DatePickers/hooks/useToday.d.ts +9 -0
  136. package/dist/components/organisms/DatePickers/hooks/useToday.d.ts.map +1 -0
  137. package/dist/components/organisms/DatePickers/hooks/useToday.js +16 -0
  138. package/dist/components/organisms/DatePickers/hooks/useToday.js.map +1 -0
  139. package/dist/components/organisms/DatePickers/index.d.ts +1 -0
  140. package/dist/components/organisms/DatePickers/index.d.ts.map +1 -1
  141. package/dist/components/organisms/DatePickers/providers/CalendarSurface.context.cjs +1 -1
  142. package/dist/components/organisms/DatePickers/providers/CalendarSurface.context.d.ts +1 -1
  143. package/dist/components/organisms/DatePickers/providers/CalendarSurface.context.js +1 -1
  144. package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.cjs +84 -23
  145. package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.cjs.map +1 -1
  146. package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.d.ts +70 -5
  147. package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.d.ts.map +1 -1
  148. package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.js +82 -24
  149. package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.js.map +1 -1
  150. package/dist/components/organisms/HeaderNavigation/index.cjs +1 -1
  151. package/dist/components/organisms/HeaderNavigation/index.cjs.map +1 -1
  152. package/dist/components/organisms/HeaderNavigation/index.js +1 -1
  153. package/dist/components/organisms/HeaderNavigation/index.js.map +1 -1
  154. package/dist/native/components/atoms/Badges/Badge/Badge.d.ts +5 -1
  155. package/dist/native/components/atoms/Badges/Badge/Badge.d.ts.map +1 -1
  156. package/dist/native/components/atoms/Badges/Badge/Badge.js +5 -2
  157. package/dist/native/components/atoms/Badges/Badge/Badge.js.map +1 -1
  158. package/dist/native/components/molecules/EmptyStates/index.d.ts +12 -0
  159. package/dist/utilities/searchParamsUtils/index.cjs +40 -2
  160. package/dist/utilities/searchParamsUtils/index.cjs.map +1 -1
  161. package/dist/utilities/searchParamsUtils/index.d.ts +40 -2
  162. package/dist/utilities/searchParamsUtils/index.d.ts.map +1 -1
  163. package/dist/utilities/searchParamsUtils/index.js +39 -3
  164. package/dist/utilities/searchParamsUtils/index.js.map +1 -1
  165. package/package.json +1 -1
  166. package/dist/components/molecules/EmptyState/utilities/emptyState.utils.cjs.map +0 -1
  167. package/dist/components/molecules/EmptyState/utilities/emptyState.utils.d.ts.map +0 -1
  168. package/dist/components/molecules/EmptyState/utilities/emptyState.utils.js.map +0 -1
  169. /package/dist/components/molecules/{EmptyState → EmptyStates/EmptyState}/utilities/emptyState.utils.cjs +0 -0
  170. /package/dist/components/molecules/{EmptyState → EmptyStates/EmptyState}/utilities/emptyState.utils.d.ts +0 -0
  171. /package/dist/components/molecules/{EmptyState → EmptyStates/EmptyState}/utilities/emptyState.utils.js +0 -0
@@ -0,0 +1,166 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { SearchLg, FileIcon } from '@flipdish/ui-icons';
3
+ import { BackgroundPattern } from '@flipdish/ui-library/components/atoms/BackgroundPattern';
4
+ import { FeaturedIcon as FeaturedIcon$1 } from '@flipdish/ui-library/components/atoms/FeaturedIcon';
5
+ import { Illustration as Illustration$1 } from '@flipdish/ui-library/components/atoms/Illustration';
6
+ import { cx } from '@flipdish/ui-library/utilities/cx';
7
+ import { useResolvedTestId, TestIdProvider, useTestIdPrefix, joinTestId } from '@flipdish/ui-library/utilities/testIdUtils';
8
+ import { mergeRefs } from '@react-aria/utils';
9
+ import { createContext, forwardRef, useContext, isValidElement, useMemo } from 'react';
10
+ import { FocusHandOffTargetContext } from '../../../__internal__/focusHandOff/focusHandOff.context.js';
11
+ import { flattenChildren } from '../../../../utilities/__internal__/childrenUtils/children.utils.js';
12
+ import { featuredIconSize, titleTextOf, avatarRingOffset, placeAvatarRow, avatarGridRows, illustrationSize, headerBackgroundPattern } from './utilities/emptyState.utils.js';
13
+
14
+ const RootContext = createContext({ size: 'lg' });
15
+ const Root = forwardRef(({ size = 'lg', 'data-testid': dataTestId, ...props }, ref) => {
16
+ const rootTestId = useResolvedTestId({ testId: dataTestId, segment: 'empty-state', rootName: 'empty-state' });
17
+ 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) }) }) }));
18
+ });
19
+ const FeaturedIcon = forwardRef(({ color = 'gray', theme = 'modern', icon = SearchLg, size, ...props }, ref) => {
20
+ const { size: rootSize } = useContext(RootContext);
21
+ return jsx(FeaturedIcon$1, { ...props, ref: ref, color, theme, icon, size: featuredIconSize(size, rootSize) });
22
+ });
23
+ const Illustration = ({ type = 'cloud', color = 'gray', size = 'lg', ...props }) => {
24
+ const { size: rootSize } = useContext(RootContext);
25
+ return (jsx(Illustration$1, { ...props, "aria-hidden": "true", type: type, size: illustrationSize(size, rootSize), className: cx('z-10', props.className) }));
26
+ };
27
+ const FileTypeIcon = forwardRef(({ type = 'folder', theme = 'solid', ...props }, ref) => {
28
+ return (jsx("div", { ...props, ref: ref, className: cx('relative z-10 flex rounded-full bg-linear-to-b from-utility-neutral-50 to-utility-neutral-200 p-8', props.className), children: jsx(FileIcon, { type: type, variant: theme, className: "size-10 drop-shadow-sm" }) }));
29
+ });
30
+ const Header = forwardRef(({ pattern = 'circle', patternSize = 'md', 'data-testid': dataTestId, ...props }, ref) => {
31
+ const { size } = useContext(RootContext);
32
+ const prefix = useTestIdPrefix();
33
+ const headerTestId = dataTestId ?? (prefix ? joinTestId(prefix, 'header') : undefined);
34
+ const backgroundPattern = headerBackgroundPattern(pattern, patternSize);
35
+ // Whether we are passing `Illustration` component as children.
36
+ const hasIllustration = flattenChildren(props.children).some((headerChild) => isValidElement(headerChild) && headerChild.type === Illustration);
37
+ 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] }));
38
+ });
39
+ const Content = forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
40
+ const { size } = useContext(RootContext);
41
+ const prefix = useTestIdPrefix();
42
+ const contentTestId = dataTestId ?? (prefix ? joinTestId(prefix, 'content') : undefined);
43
+ return (jsx("div", { ...props, ref: ref, "data-testid": contentTestId, className: cx(
44
+ // Fixed and capped by the parent rather than `w-full`, which shrinks to the text in a parent that sizes to its content.
45
+ '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) }));
46
+ });
47
+ const Footer = forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
48
+ const prefix = useTestIdPrefix();
49
+ const footerTestId = dataTestId ?? (prefix ? joinTestId(prefix, 'footer') : undefined);
50
+ return jsx("footer", { ...props, ref: ref, "data-testid": footerTestId, className: cx('z-10 flex gap-3', props.className) });
51
+ });
52
+ const Title = forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
53
+ const { size } = useContext(RootContext);
54
+ const prefix = useTestIdPrefix();
55
+ const titleTestId = dataTestId ?? (prefix ? joinTestId(prefix, 'title') : undefined);
56
+ // Set only in a table's empty state; memoised so a title already on screen never spends a hand-off.
57
+ const focusTargetRef = useContext(FocusHandOffTargetContext);
58
+ // Its text only, so other children never change the memo: a title React keeps takes a pending hand-off when its text changes.
59
+ const titleText = titleTextOf(props.children);
60
+ // biome-ignore lint/correctness/useExhaustiveDependencies: a new title text attaches the ref again, as a newly mounted title would.
61
+ const titleRef = useMemo(() => (focusTargetRef ? mergeRefs(ref, focusTargetRef) : ref), [ref, focusTargetRef, titleText]);
62
+ return (jsx("h2", { ...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) }));
63
+ });
64
+ const Description = forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
65
+ const { size } = useContext(RootContext);
66
+ const prefix = useTestIdPrefix();
67
+ const descriptionTestId = dataTestId ?? (prefix ? joinTestId(prefix, 'description') : undefined);
68
+ return (jsx("p", { ...props, ref: ref, "data-testid": descriptionTestId, className: cx('text-center text-sm text-tertiary', size === 'lg' && 'text-md', props.className) }));
69
+ });
70
+ /**
71
+ * Predefined avatar slots positioned on concentric circle rings.
72
+ * Each slot defines: ring radius, CSS angle (0°=top, clockwise), and avatar size class.
73
+ */
74
+ const avatarSlots = [
75
+ { ring: 80, angle: 330, size: 'size-8' },
76
+ { ring: 80, angle: 56, size: 'size-8' },
77
+ { ring: 144, angle: 82, size: 'size-7' },
78
+ { ring: 144, angle: 299, size: 'size-7' },
79
+ { ring: 144, angle: 241, size: 'size-7' },
80
+ { ring: 176, angle: 64, size: 'size-6' },
81
+ { ring: 176, angle: 270, size: 'size-6' },
82
+ { ring: 144, angle: 112, size: 'size-7' },
83
+ { ring: 80, angle: 249, size: 'size-8' },
84
+ ];
85
+ const RING_RADII = [48, 80, 112, 144, 176];
86
+ const AvatarRadius = forwardRef(({ avatars = [], ...props }, ref) => {
87
+ 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: {
88
+ maskImage: 'radial-gradient(circle, black 10%, transparent 70%)',
89
+ WebkitMaskImage: 'radial-gradient(circle, black 10%, transparent 70%)',
90
+ ...props.style,
91
+ }, 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) => {
92
+ const slot = avatarSlots[i];
93
+ const { x, y } = avatarRingOffset(slot.angle, slot.ring);
94
+ 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));
95
+ })] }));
96
+ });
97
+ /** Avatar sizes per root size — ordered smallest to largest (left edge → center). */
98
+ const rowStyles = {
99
+ sm: ['size-8 rounded-md', 'size-9 rounded-[7px]', 'size-10 rounded-lg', 'size-11 rounded-[9px]'],
100
+ md: ['size-10 rounded-lg', 'size-11 rounded-[9px]', 'size-12 rounded-[10px]'],
101
+ lg: ['size-10 rounded-lg', 'size-11 rounded-[9px]', 'size-12 rounded-[10px]'],
102
+ };
103
+ const ROW_GAP_CLASS = { sm: 'gap-4', md: 'gap-5', lg: 'gap-6' };
104
+ const AvatarRow = forwardRef(({ avatars = [], children, ...props }, ref) => {
105
+ const { size: rootSize } = useContext(RootContext);
106
+ const sizeKey = rootSize || 'md';
107
+ const sizes = rowStyles[sizeKey];
108
+ const { left: leftAvatars, right: rightAvatars } = placeAvatarRow(avatars, sizes.length);
109
+ 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));
110
+ 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: {
111
+ maskImage: 'radial-gradient(circle, black 5%, transparent 105%)',
112
+ WebkitMaskImage: 'radial-gradient(circle, black 5%, transparent 105%)',
113
+ ...props.style,
114
+ }, 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)) })] }));
115
+ });
116
+ const gridStyles = {
117
+ sm: { avatar: 'size-8 rounded-md', inner: 'rounded-[5px]', gap: 'gap-2 pl-2', rowGap: 'gap-2' },
118
+ md: { avatar: 'size-10 rounded-lg', inner: 'rounded-[7px]', gap: 'gap-3 pl-3', rowGap: 'gap-3' },
119
+ lg: { avatar: 'size-12 rounded-[10px]', inner: 'rounded-[9px]', gap: 'gap-3 pl-3', rowGap: 'gap-3' },
120
+ };
121
+ const AvatarGrid = forwardRef(({ avatars = [], ...props }, ref) => {
122
+ const { size: rootSize } = useContext(RootContext);
123
+ const sizeKey = rootSize || 'md';
124
+ const config = gridStyles[sizeKey];
125
+ const { leading, trailing, splitAt } = avatarGridRows(avatars);
126
+ 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));
127
+ 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)) })] }));
128
+ 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: {
129
+ maskImage: 'radial-gradient(circle, black 10%, transparent 100%)',
130
+ WebkitMaskImage: 'radial-gradient(circle, black 10%, transparent 100%)',
131
+ ...props.style,
132
+ }, 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)] }));
133
+ });
134
+ /**
135
+ * Placeholder for a list, table or page with nothing to show yet: an icon or illustration,
136
+ * a title, supporting text and optional actions.
137
+ *
138
+ * @summary placeholder for a list, table or page with no data
139
+ */
140
+ const EmptyState = Root;
141
+ EmptyState.Title = Title;
142
+ EmptyState.Header = Header;
143
+ EmptyState.Footer = Footer;
144
+ EmptyState.Content = Content;
145
+ EmptyState.Description = Description;
146
+ EmptyState.Illustration = Illustration;
147
+ EmptyState.FeaturedIcon = FeaturedIcon;
148
+ EmptyState.FileTypeIcon = FileTypeIcon;
149
+ EmptyState.AvatarRadius = AvatarRadius;
150
+ EmptyState.AvatarRow = AvatarRow;
151
+ EmptyState.AvatarGrid = AvatarGrid;
152
+ EmptyState.displayName = 'EmptyState';
153
+ EmptyState.Title.displayName = 'EmptyState.Title';
154
+ EmptyState.Header.displayName = 'EmptyState.Header';
155
+ EmptyState.Footer.displayName = 'EmptyState.Footer';
156
+ EmptyState.Content.displayName = 'EmptyState.Content';
157
+ EmptyState.Description.displayName = 'EmptyState.Description';
158
+ EmptyState.Illustration.displayName = 'EmptyState.Illustration';
159
+ EmptyState.FeaturedIcon.displayName = 'EmptyState.FeaturedIcon';
160
+ EmptyState.FileTypeIcon.displayName = 'EmptyState.FileTypeIcon';
161
+ EmptyState.AvatarRadius.displayName = 'EmptyState.AvatarRadius';
162
+ EmptyState.AvatarRow.displayName = 'EmptyState.AvatarRow';
163
+ EmptyState.AvatarGrid.displayName = 'EmptyState.AvatarGrid';
164
+
165
+ export { EmptyState };
166
+ //# sourceMappingURL=EmptyState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyState.js","sources":["../../../../../src/components/molecules/EmptyStates/EmptyState/EmptyState.tsx"],"sourcesContent":[null],"names":["_jsx","FeaturedIconbase","Illustrations","_jsxs"],"mappings":";;;;;;;;;;;;;AAsCA,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,CAA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,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 @@
1
+ {"version":3,"file":"emptyState.utils.cjs","sources":["../../../../../../src/components/molecules/EmptyStates/EmptyState/utilities/emptyState.utils.ts"],"sourcesContent":[null],"names":["Children"],"mappings":";;;;AAOA;;;;;;;AAOG;MACU,gBAAgB,GAAG,CAAC,IAA2C,EAAE,QAAoC,KAA+B;AAC/I,IAAA,IAAI,IAAI;AAAE,QAAA,OAAO,IAAI;IACrB,IAAI,QAAQ,KAAK,IAAI;AAAE,QAAA,OAAO,IAAI;AAClC,IAAA,OAAO,IAAI;AACb;AAEA;;;;;;AAMG;MACU,gBAAgB,GAAG,CAAC,IAAwB,EAAE,QAAoC,KAAwB;AACrH,IAAA,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,IAAI;AAAE,QAAA,OAAO,QAAQ;AAC3D,IAAA,OAAO,IAAI;AACb;AAEA;;;;;;AAMG;MACU,uBAAuB,GAAG,CAAC,OAAsB,EAAE,WAA8B,KAAI;IAChG,IAAI,OAAO,KAAK,MAAM;AAAE,QAAA,OAAO,SAAS;IACxC,IAAI,OAAO,KAAK,YAAY;AAAE,QAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,KAAK,IAAI,GAAG,IAAI,GAAG,WAAW,EAAE;AACjG,IAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE;AACvC;AAEA;;;;;;AAMG;MACU,gBAAgB,GAAG,CAAC,YAAoB,EAAE,I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OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE;AAC1G;AAEA;;;;;AAKG;AACI,MAAM,WAAW,GAAG,CAAC,QAAmB,KAAwB;IACrE,MAAM,KAAK,GAAGA,cAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC;AAClH,IAAA,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,SAAS;AACtD;;;;;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emptyState.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/EmptyStates/EmptyState/utilities/emptyState.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AACtG,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,KAAK,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACzC,KAAK,aAAa,GAAG,MAAM,GAAG,WAAW,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC,CAAC;AAC7E,KAAK,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,EAAE,UAAU,cAAc,GAAG,SAAS,KAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAIzI,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,EAAE,UAAU,cAAc,GAAG,SAAS,KAAG,IAAI,GAAG,IAAI,GAAG,IAG/G,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,GAAI,SAAS,aAAa,EAAE,aAAa,iBAAiB;;;;;;aAI7F,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,cAAc,MAAM,EAAE,MAAM,MAAM,KAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAG3F,CAAC;AAEF,0FAA0F;AAC1F,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,MAAM,EAAE,CAAC,CAAC;IACV,qFAAqF;IACrF,SAAS,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,EAAE,SAAS,SAAS,CAAC,EAAE,EAAE,WAAW,MAAM,KAAG;IAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAA;CAQ/H,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,EAAE,SAAS,SAAS,CAAC,EAAE,KAAG;IAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAIvG,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,UAAU,SAAS,KAAG,MAAM,GAAG,SAG1D,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emptyState.utils.js","sources":["../../../../../../src/components/molecules/EmptyStates/EmptyState/utilities/emptyState.utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAOA;;;;;;;AAOG;MACU,gBAAgB,GAAG,CAAC,IAA2C,EAAE,QAAoC,KAA+B;AAC/I,IAAA,IAAI,IAAI;AAAE,QAAA,OAAO,IAAI;IACrB,IAAI,QAAQ,KAAK,IAAI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GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,MAAM;QAC5E,MAAM;AACN,QAAA,SAAS,EAAE,SAAS,GAAG,CAAC,GAAG,KAAK;QAChC,GAAG,EAAE,KAAK,GAAG,SAAS;AACvB,KAAA,CAAC,CAAC;AACH,IAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE;AACxB;AAEA;;;;;AAKG;AACI,MAAM,cAAc,GAAG,CAAI,OAAqB,KAAsD;AAC3G,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;AAC7C,IAAA,MAAM,MAAM,GAAG,CAAC,GAAiB,KAAU,CAAC,GAAG,GAAG,EAAE,GAAG,GAAG,EAAE,GAAG,GAAG,CAAC;AACnE,IAAA,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE;AAC1G;AAEA;;;;;AAKG;AACI,MAAM,WAAW,GAAG,CAAC,QAAmB,KAAwB;IACrE,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC;AAClH,IAAA,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,SAAS;AACtD;;"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var uiIcons = require('@flipdish/ui-icons');
5
+ var Buttons = require('@flipdish/ui-library/components/atoms/Buttons');
6
+ var testIdUtils = require('@flipdish/ui-library/utilities/testIdUtils');
7
+ var EmptyStateReadyMade = require('../components/EmptyStateReadyMade.cjs');
8
+
9
+ /**
10
+ * Ready-made `EmptyState` for a request that failed: it names what could not be loaded and offers one retry button. Use it
11
+ * in place of content a failed request left missing, such as a section, a tab or a table's empty slot.
12
+ *
13
+ * @summary failed-request state with a Try again button
14
+ */
15
+ const LoadErrorState = ({ title, description = 'Something went wrong on our side. Check your connection and try again.', isRetrying, onRetry, className, 'data-testid': dataTestId, }) => {
16
+ const rootTestId = testIdUtils.useResolvedTestId({ testId: dataTestId, segment: 'empty-state', rootName: 'empty-state' });
17
+ return (jsxRuntime.jsx(EmptyStateReadyMade.EmptyStateReadyMade, { icon: uiIcons.AlertCircle, color: "error", title: title, description: description, className: className, rootTestId: rootTestId, children: jsxRuntime.jsx(Buttons.Button, { color: "secondary", size: "md", isLoading: isRetrying, onPress: onRetry, "data-testid": testIdUtils.joinTestId(rootTestId, 'retry'), children: "Try again" }) }));
18
+ };
19
+ LoadErrorState.displayName = 'LoadErrorState';
20
+
21
+ exports.LoadErrorState = LoadErrorState;
22
+ //# sourceMappingURL=LoadErrorState.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadErrorState.cjs","sources":["../../../../../src/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.tsx"],"sourcesContent":[null],"names":["useResolvedTestId","_jsx","EmptyStateReadyMade","AlertCircle","Button","joinTestId"],"mappings":";;;;;;;;AAsBA;;;;;AAKG;MACU,cAAc,GAAG,CAAC,EAC7B,KAAK,EACL,WAAW,GAAG,wEAAwE,EACtF,UAAU,EACV,OAAO,EACP,SAAS,EACT,aAAa,EAAE,UAAU,GACL,KAAI;AACxB,IAAA,MAAM,UAAU,GAAGA,6BAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;IAE7G,QACEC,cAAA,CAACC,uCAAmB,EAAA,EAAC,IAAI,EAAEC,mBAAW,EAAE,KAAK,EAAC,OAAO,EAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAA,QAAA,EACxIF,eAACG,cAAM,EAAA,EAAC,KAAK,EAAC,WAAW,EAAC,IAAI,EAAC,IAAI,EAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAA,aAAA,EAAeC,sBAAU,CAAC,UAAU,EAAE,OAAO,CAAC,EAAA,QAAA,EAAA,WAAA,EAAA,CAEhH,EAAA,CACW;AAE1B;AACA,cAAc,CAAC,WAAW,GAAG,gBAAgB;;"}
@@ -0,0 +1,25 @@
1
+ export interface LoadErrorStateProps {
2
+ /** What failed, such as "Opening hours could not be loaded". */
3
+ title: string;
4
+ /** What the user can do about it, beneath the title. */
5
+ description?: string;
6
+ /** Shows the retry button's loading state while the request is in flight again. */
7
+ isRetrying: boolean;
8
+ /** Starts the failed request again. */
9
+ onRetry: () => void;
10
+ /** Extra classes merged onto the padded wrapper around the empty state. */
11
+ className?: string;
12
+ /** Overrides the root `data-testid` (defaults to `fd-empty-state`); the parts and the retry button derive theirs from it. */
13
+ 'data-testid'?: string;
14
+ }
15
+ /**
16
+ * Ready-made `EmptyState` for a request that failed: it names what could not be loaded and offers one retry button. Use it
17
+ * in place of content a failed request left missing, such as a section, a tab or a table's empty slot.
18
+ *
19
+ * @summary failed-request state with a Try again button
20
+ */
21
+ export declare const LoadErrorState: {
22
+ ({ title, description, isRetrying, onRetry, className, "data-testid": dataTestId, }: LoadErrorStateProps): import("react").JSX.Element;
23
+ displayName: string;
24
+ };
25
+ //# sourceMappingURL=LoadErrorState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadErrorState.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,mBAAmB;IAClC,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,UAAU,EAAE,OAAO,CAAC;IACpB,uCAAuC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6HAA6H;IAC7H,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc;yFAOxB,mBAAmB;;CAUrB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { AlertCircle } from '@flipdish/ui-icons';
3
+ import { Button } from '@flipdish/ui-library/components/atoms/Buttons';
4
+ import { useResolvedTestId, joinTestId } from '@flipdish/ui-library/utilities/testIdUtils';
5
+ import { EmptyStateReadyMade } from '../components/EmptyStateReadyMade.js';
6
+
7
+ /**
8
+ * Ready-made `EmptyState` for a request that failed: it names what could not be loaded and offers one retry button. Use it
9
+ * in place of content a failed request left missing, such as a section, a tab or a table's empty slot.
10
+ *
11
+ * @summary failed-request state with a Try again button
12
+ */
13
+ const LoadErrorState = ({ title, description = 'Something went wrong on our side. Check your connection and try again.', isRetrying, onRetry, className, 'data-testid': dataTestId, }) => {
14
+ const rootTestId = useResolvedTestId({ testId: dataTestId, segment: 'empty-state', rootName: 'empty-state' });
15
+ return (jsx(EmptyStateReadyMade, { icon: AlertCircle, color: "error", title: title, description: description, className: className, rootTestId: rootTestId, children: jsx(Button, { color: "secondary", size: "md", isLoading: isRetrying, onPress: onRetry, "data-testid": joinTestId(rootTestId, 'retry'), children: "Try again" }) }));
16
+ };
17
+ LoadErrorState.displayName = 'LoadErrorState';
18
+
19
+ export { LoadErrorState };
20
+ //# sourceMappingURL=LoadErrorState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadErrorState.js","sources":["../../../../../src/components/molecules/EmptyStates/LoadErrorState/LoadErrorState.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAsBA;;;;;AAKG;MACU,cAAc,GAAG,CAAC,EAC7B,KAAK,EACL,WAAW,GAAG,wEAAwE,EACtF,UAAU,EACV,OAAO,EACP,SAAS,EACT,aAAa,EAAE,UAAU,GACL,KAAI;AACxB,IAAA,MAAM,UAAU,GAAG,iBAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;IAE7G,QACEA,GAAA,CAAC,mBAAmB,EAAA,EAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAC,OAAO,EAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAA,QAAA,EACxIA,IAAC,MAAM,EAAA,EAAC,KAAK,EAAC,WAAW,EAAC,IAAI,EAAC,IAAI,EAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAA,aAAA,EAAe,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,EAAA,QAAA,EAAA,WAAA,EAAA,CAEhH,EAAA,CACW;AAE1B;AACA,cAAc,CAAC,WAAW,GAAG,gBAAgB;;"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var uiIcons = require('@flipdish/ui-icons');
5
+ var Buttons = require('@flipdish/ui-library/components/atoms/Buttons');
6
+ var testIdUtils = require('@flipdish/ui-library/utilities/testIdUtils');
7
+ var EmptyStateReadyMade = require('../components/EmptyStateReadyMade.cjs');
8
+
9
+ /**
10
+ * Ready-made `EmptyState` for a search or filter that matched nothing: it says so in your words and offers to clear the
11
+ * filters. Use it in a list or a table's empty slot whenever a search or an applied filter narrows the rows.
12
+ *
13
+ * @summary no-match state with a Clear filters button
14
+ */
15
+ const NoResultsState = ({ title, description = 'Your search or filters did not match anything. Try another search or change the filters.', onClear, className, 'data-testid': dataTestId, }) => {
16
+ const rootTestId = testIdUtils.useResolvedTestId({ testId: dataTestId, segment: 'empty-state', rootName: 'empty-state' });
17
+ return (jsxRuntime.jsx(EmptyStateReadyMade.EmptyStateReadyMade, { icon: uiIcons.SearchLg, color: "gray", title: title, description: description, className: className, rootTestId: rootTestId, children: onClear && (jsxRuntime.jsx(Buttons.Button, { color: "secondary", size: "md", onPress: onClear, "data-testid": testIdUtils.joinTestId(rootTestId, 'clear'), children: "Clear filters" })) }));
18
+ };
19
+ NoResultsState.displayName = 'NoResultsState';
20
+
21
+ exports.NoResultsState = NoResultsState;
22
+ //# sourceMappingURL=NoResultsState.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoResultsState.cjs","sources":["../../../../../src/components/molecules/EmptyStates/NoResultsState/NoResultsState.tsx"],"sourcesContent":[null],"names":["useResolvedTestId","_jsx","EmptyStateReadyMade","SearchLg","Button","joinTestId"],"mappings":";;;;;;;;AAoBA;;;;;AAKG;MACU,cAAc,GAAG,CAAC,EAC7B,KAAK,EACL,WAAW,GAAG,0FAA0F,EACxG,OAAO,EACP,SAAS,EACT,aAAa,EAAE,UAAU,GACL,KAAI;AACxB,IAAA,MAAM,UAAU,GAAGA,6BAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;IAE7G,QACEC,cAAA,CAACC,uCAAmB,EAAA,EAAC,IAAI,EAAEC,gBAAQ,EAAE,KAAK,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAA,QAAA,EACnI,OAAO,KACNF,cAAA,CAACG,cAAM,EAAA,EAAC,KAAK,EAAC,WAAW,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,OAAO,EAAA,aAAA,EAAeC,sBAAU,CAAC,UAAU,EAAE,OAAO,CAAC,EAAA,QAAA,EAAA,eAAA,EAAA,CAEzF,CACV,EAAA,CACmB;AAE1B;AACA,cAAc,CAAC,WAAW,GAAG,gBAAgB;;"}
@@ -0,0 +1,23 @@
1
+ export interface NoResultsStateProps {
2
+ /** What found nothing, in the page's own words, such as "No sales found". */
3
+ title: string;
4
+ /** What the user can do about it, beneath the title. */
5
+ description?: string;
6
+ /** Clears the search and filters, from a "Clear filters" button; without it the state offers no button. */
7
+ onClear?: () => void;
8
+ /** Extra classes merged onto the padded wrapper around the empty state. */
9
+ className?: string;
10
+ /** Overrides the root `data-testid` (defaults to `fd-empty-state`); the parts and the clear button derive theirs from it. */
11
+ 'data-testid'?: string;
12
+ }
13
+ /**
14
+ * Ready-made `EmptyState` for a search or filter that matched nothing: it says so in your words and offers to clear the
15
+ * filters. Use it in a list or a table's empty slot whenever a search or an applied filter narrows the rows.
16
+ *
17
+ * @summary no-match state with a Clear filters button
18
+ */
19
+ export declare const NoResultsState: {
20
+ ({ title, description, onClear, className, "data-testid": dataTestId, }: NoResultsStateProps): import("react").JSX.Element;
21
+ displayName: string;
22
+ };
23
+ //# sourceMappingURL=NoResultsState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoResultsState.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/EmptyStates/NoResultsState/NoResultsState.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,mBAAmB;IAClC,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2GAA2G;IAC3G,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6HAA6H;IAC7H,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc;6EAMxB,mBAAmB;;CAYrB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { SearchLg } from '@flipdish/ui-icons';
3
+ import { Button } from '@flipdish/ui-library/components/atoms/Buttons';
4
+ import { useResolvedTestId, joinTestId } from '@flipdish/ui-library/utilities/testIdUtils';
5
+ import { EmptyStateReadyMade } from '../components/EmptyStateReadyMade.js';
6
+
7
+ /**
8
+ * Ready-made `EmptyState` for a search or filter that matched nothing: it says so in your words and offers to clear the
9
+ * filters. Use it in a list or a table's empty slot whenever a search or an applied filter narrows the rows.
10
+ *
11
+ * @summary no-match state with a Clear filters button
12
+ */
13
+ const NoResultsState = ({ title, description = 'Your search or filters did not match anything. Try another search or change the filters.', onClear, className, 'data-testid': dataTestId, }) => {
14
+ const rootTestId = useResolvedTestId({ testId: dataTestId, segment: 'empty-state', rootName: 'empty-state' });
15
+ return (jsx(EmptyStateReadyMade, { icon: SearchLg, color: "gray", title: title, description: description, className: className, rootTestId: rootTestId, children: onClear && (jsx(Button, { color: "secondary", size: "md", onPress: onClear, "data-testid": joinTestId(rootTestId, 'clear'), children: "Clear filters" })) }));
16
+ };
17
+ NoResultsState.displayName = 'NoResultsState';
18
+
19
+ export { NoResultsState };
20
+ //# sourceMappingURL=NoResultsState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoResultsState.js","sources":["../../../../../src/components/molecules/EmptyStates/NoResultsState/NoResultsState.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAoBA;;;;;AAKG;MACU,cAAc,GAAG,CAAC,EAC7B,KAAK,EACL,WAAW,GAAG,0FAA0F,EACxG,OAAO,EACP,SAAS,EACT,aAAa,EAAE,UAAU,GACL,KAAI;AACxB,IAAA,MAAM,UAAU,GAAG,iBAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;IAE7G,QACEA,GAAA,CAAC,mBAAmB,EAAA,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAA,QAAA,EACnI,OAAO,KACNA,GAAA,CAAC,MAAM,EAAA,EAAC,KAAK,EAAC,WAAW,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,OAAO,EAAA,aAAA,EAAe,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,EAAA,QAAA,EAAA,eAAA,EAAA,CAEzF,CACV,EAAA,CACmB;AAE1B;AACA,cAAc,CAAC,WAAW,GAAG,gBAAgB;;"}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var uiIcons = require('@flipdish/ui-icons');
5
+ var Buttons = require('@flipdish/ui-library/components/atoms/Buttons');
6
+ var testIdUtils = require('@flipdish/ui-library/utilities/testIdUtils');
7
+ var EmptyStateReadyMade = require('../components/EmptyStateReadyMade.cjs');
8
+ var emptyStates_utils = require('../utilities/emptyStates.utils.cjs');
9
+
10
+ /**
11
+ * Ready-made `EmptyState` for a page past the list's last, as an old link can name: it offers one button to the last page.
12
+ * Use it in a paged list or table whose URL holds the page.
13
+ *
14
+ * @summary past-the-last-page state with a way to the last page
15
+ */
16
+ const PastLastPageState = ({ title, lastPage, onGoToLastPage, description, className, 'data-testid': dataTestId }) => {
17
+ const page = emptyStates_utils.lastPageOf(lastPage);
18
+ const rootTestId = testIdUtils.useResolvedTestId({ testId: dataTestId, segment: 'empty-state', rootName: 'empty-state' });
19
+ return (jsxRuntime.jsx(EmptyStateReadyMade.EmptyStateReadyMade, { icon: uiIcons.FileSearch02, color: "gray", title: title, description: description ?? `The list ends at page ${page}, so this link may be out of date.`, className: className, rootTestId: rootTestId, children: jsxRuntime.jsxs(Buttons.Button, { color: "secondary", size: "md", onPress: onGoToLastPage, "data-testid": testIdUtils.joinTestId(rootTestId, 'last-page'), children: ["Go to page ", page] }) }));
20
+ };
21
+ PastLastPageState.displayName = 'PastLastPageState';
22
+
23
+ exports.PastLastPageState = PastLastPageState;
24
+ //# sourceMappingURL=PastLastPageState.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PastLastPageState.cjs","sources":["../../../../../src/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.tsx"],"sourcesContent":[null],"names":["lastPageOf","useResolvedTestId","_jsx","EmptyStateReadyMade","FileSearch02","_jsxs","Button","joinTestId"],"mappings":";;;;;;;;;AA0BA;;;;;AAKG;MACU,iBAAiB,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAA0B,KAAI;AAClJ,IAAA,MAAM,IAAI,GAAGA,4BAAU,CAAC,QAAQ,CAAC;AACjC,IAAA,MAAM,UAAU,GAAGC,6BAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;IAE7G,QACEC,cAAA,CAACC,uCAAmB,EAAA,EAClB,IAAI,EAAEC,oBAAY,EAClB,KAAK,EAAC,MAAM,EACZ,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,IAAI,CAAA,sBAAA,EAAyB,IAAI,CAAA,kCAAA,CAAoC,EAC7F,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EAAA,QAAA,EAEtBC,eAAA,CAACC,cAAM,EAAA,EAAC,KAAK,EAAC,WAAW,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,cAAc,EAAA,aAAA,EAAeC,sBAAU,CAAC,UAAU,EAAE,WAAW,CAAC,EAAA,QAAA,EAAA,CAAA,aAAA,EAC/F,IAAI,CAAA,EAAA,CACT,EAAA,CACW;AAE1B;AACA,iBAAiB,CAAC,WAAW,GAAG,mBAAmB;;"}
@@ -0,0 +1,28 @@
1
+ export interface PastLastPageStateProps {
2
+ /** What the page shows instead of rows, in the page's own words, such as "No sales on page 7". */
3
+ title: string;
4
+ /**
5
+ * The list's last page, which the button goes to; a value below 1, or not a number, reads as page 1, and a fraction is rounded down.
6
+ * A list with no rows at all has no last page, so show `NoResultsState` instead.
7
+ */
8
+ lastPage: number;
9
+ /** Moves the list to its last page. */
10
+ onGoToLastPage: () => void;
11
+ /** Why the page is empty, beneath the title; left out, it reads "The list ends at page N, so this link may be out of date." */
12
+ description?: string;
13
+ /** Extra classes merged onto the padded wrapper around the empty state. */
14
+ className?: string;
15
+ /** Overrides the root `data-testid` (defaults to `fd-empty-state`); the parts and the last-page button derive theirs from it. */
16
+ 'data-testid'?: string;
17
+ }
18
+ /**
19
+ * Ready-made `EmptyState` for a page past the list's last, as an old link can name: it offers one button to the last page.
20
+ * Use it in a paged list or table whose URL holds the page.
21
+ *
22
+ * @summary past-the-last-page state with a way to the last page
23
+ */
24
+ export declare const PastLastPageState: {
25
+ ({ title, lastPage, onGoToLastPage, description, className, "data-testid": dataTestId }: PastLastPageStateProps): import("react").JSX.Element;
26
+ displayName: string;
27
+ };
28
+ //# sourceMappingURL=PastLastPageState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PastLastPageState.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,sBAAsB;IACrC,kGAAkG;IAClG,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,+HAA+H;IAC/H,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iIAAiI;IACjI,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;6FAA4F,sBAAsB;;CAkB/I,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { FileSearch02 } from '@flipdish/ui-icons';
3
+ import { Button } from '@flipdish/ui-library/components/atoms/Buttons';
4
+ import { useResolvedTestId, joinTestId } from '@flipdish/ui-library/utilities/testIdUtils';
5
+ import { EmptyStateReadyMade } from '../components/EmptyStateReadyMade.js';
6
+ import { lastPageOf } from '../utilities/emptyStates.utils.js';
7
+
8
+ /**
9
+ * Ready-made `EmptyState` for a page past the list's last, as an old link can name: it offers one button to the last page.
10
+ * Use it in a paged list or table whose URL holds the page.
11
+ *
12
+ * @summary past-the-last-page state with a way to the last page
13
+ */
14
+ const PastLastPageState = ({ title, lastPage, onGoToLastPage, description, className, 'data-testid': dataTestId }) => {
15
+ const page = lastPageOf(lastPage);
16
+ const rootTestId = useResolvedTestId({ testId: dataTestId, segment: 'empty-state', rootName: 'empty-state' });
17
+ return (jsx(EmptyStateReadyMade, { icon: FileSearch02, color: "gray", title: title, description: description ?? `The list ends at page ${page}, so this link may be out of date.`, className: className, rootTestId: rootTestId, children: jsxs(Button, { color: "secondary", size: "md", onPress: onGoToLastPage, "data-testid": joinTestId(rootTestId, 'last-page'), children: ["Go to page ", page] }) }));
18
+ };
19
+ PastLastPageState.displayName = 'PastLastPageState';
20
+
21
+ export { PastLastPageState };
22
+ //# sourceMappingURL=PastLastPageState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PastLastPageState.js","sources":["../../../../../src/components/molecules/EmptyStates/PastLastPageState/PastLastPageState.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;AA0BA;;;;;AAKG;MACU,iBAAiB,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAA0B,KAAI;AAClJ,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,QAAQ,CAAC;AACjC,IAAA,MAAM,UAAU,GAAG,iBAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;IAE7G,QACEA,GAAA,CAAC,mBAAmB,EAAA,EAClB,IAAI,EAAE,YAAY,EAClB,KAAK,EAAC,MAAM,EACZ,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,IAAI,CAAA,sBAAA,EAAyB,IAAI,CAAA,kCAAA,CAAoC,EAC7F,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EAAA,QAAA,EAEtBC,IAAA,CAAC,MAAM,EAAA,EAAC,KAAK,EAAC,WAAW,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,cAAc,EAAA,aAAA,EAAe,UAAU,CAAC,UAAU,EAAE,WAAW,CAAC,EAAA,QAAA,EAAA,CAAA,aAAA,EAC/F,IAAI,CAAA,EAAA,CACT,EAAA,CACW;AAE1B;AACA,iBAAiB,CAAC,WAAW,GAAG,mBAAmB;;"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var cx = require('@flipdish/ui-library/utilities/cx');
5
+ var EmptyState = require('../EmptyState/EmptyState.cjs');
6
+
7
+ /** The shape every ready-made state shares: a small icon-led `EmptyState` in a padded wrapper, with at most one button. */
8
+ const EmptyStateReadyMade = ({ icon, color, title, description, className, rootTestId, children }) => (jsxRuntime.jsx("div", { className: cx.cx('flex w-full items-center justify-center px-8 py-16', className), children: jsxRuntime.jsxs(EmptyState.EmptyState, { size: "sm", "data-testid": rootTestId, className: "min-w-0", children: [jsxRuntime.jsx(EmptyState.EmptyState.Header, { pattern: "none", children: jsxRuntime.jsx(EmptyState.EmptyState.FeaturedIcon, { icon: icon, color: color, theme: "modern" }) }), jsxRuntime.jsxs(EmptyState.EmptyState.Content, { children: [jsxRuntime.jsx(EmptyState.EmptyState.Title, { children: title }), jsxRuntime.jsx(EmptyState.EmptyState.Description, { children: description })] }), children && jsxRuntime.jsx(EmptyState.EmptyState.Footer, { children: children })] }) }));
9
+ EmptyStateReadyMade.displayName = 'EmptyStateReadyMade';
10
+
11
+ exports.EmptyStateReadyMade = EmptyStateReadyMade;
12
+ //# sourceMappingURL=EmptyStateReadyMade.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyStateReadyMade.cjs","sources":["../../../../../src/components/molecules/EmptyStates/components/EmptyStateReadyMade.tsx"],"sourcesContent":[null],"names":["_jsx","cx","_jsxs","EmptyState"],"mappings":";;;;;;AAmBA;AACO,MAAM,mBAAmB,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAA4B,MAChIA,cAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,KAAE,CAAC,oDAAoD,EAAE,SAAS,CAAC,YACjFC,eAAA,CAACC,qBAAU,EAAA,EAAC,IAAI,EAAC,IAAI,iBAAc,UAAU,EAAE,SAAS,EAAC,SAAS,EAAA,QAAA,EAAA,CAChEH,eAACG,qBAAU,CAAC,MAAM,EAAA,EAAC,OAAO,EAAC,MAAM,EAAA,QAAA,EAC/BH,cAAA,CAACG,qBAAU,CAAC,YAAY,EAAA,EAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC,QAAQ,EAAA,CAAG,EAAA,CAClD,EACpBD,gBAACC,qBAAU,CAAC,OAAO,EAAA,EAAA,QAAA,EAAA,CACjBH,cAAA,CAACG,qBAAU,CAAC,KAAK,EAAA,EAAA,QAAA,EAAE,KAAK,EAAA,CAAoB,EAC5CH,cAAA,CAACG,qBAAU,CAAC,WAAW,EAAA,EAAA,QAAA,EAAE,WAAW,EAAA,CAA0B,CAAA,EAAA,CAC3C,EACpB,QAAQ,IAAIH,cAAA,CAACG,qBAAU,CAAC,MAAM,EAAA,EAAA,QAAA,EAAE,QAAQ,EAAA,CAAqB,CAAA,EAAA,CACnD,EAAA,CACT;AAER,mBAAmB,CAAC,WAAW,GAAG,qBAAqB;;"}
@@ -0,0 +1,20 @@
1
+ import type { FeaturedIcon } from '@flipdish/ui-library/components/atoms/FeaturedIcon';
2
+ import type { ComponentPropsWithoutRef, ReactNode } from 'react';
3
+ interface EmptyStateReadyMadeProps {
4
+ icon: ComponentPropsWithoutRef<typeof FeaturedIcon>['icon'];
5
+ color: ComponentPropsWithoutRef<typeof FeaturedIcon>['color'];
6
+ title: string;
7
+ description: string;
8
+ className?: string;
9
+ /** The root id the state resolved, which its button derives from too. */
10
+ rootTestId: string;
11
+ /** The state's one button; without it the footer is left out. */
12
+ children?: ReactNode;
13
+ }
14
+ /** The shape every ready-made state shares: a small icon-led `EmptyState` in a padded wrapper, with at most one button. */
15
+ export declare const EmptyStateReadyMade: {
16
+ ({ icon, color, title, description, className, rootTestId, children }: EmptyStateReadyMadeProps): import("react").JSX.Element;
17
+ displayName: string;
18
+ };
19
+ export {};
20
+ //# sourceMappingURL=EmptyStateReadyMade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyStateReadyMade.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/EmptyStates/components/EmptyStateReadyMade.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAEvF,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjE,UAAU,wBAAwB;IAChC,IAAI,EAAE,wBAAwB,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;IAC5D,KAAK,EAAE,wBAAwB,CAAC,OAAO,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,UAAU,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,2HAA2H;AAC3H,eAAO,MAAM,mBAAmB;2EAA0E,wBAAwB;;CAajI,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { cx } from '@flipdish/ui-library/utilities/cx';
3
+ import { EmptyState } from '../EmptyState/EmptyState.js';
4
+
5
+ /** The shape every ready-made state shares: a small icon-led `EmptyState` in a padded wrapper, with at most one button. */
6
+ const EmptyStateReadyMade = ({ icon, color, title, description, className, rootTestId, children }) => (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: icon, color: color, theme: "modern" }) }), jsxs(EmptyState.Content, { children: [jsx(EmptyState.Title, { children: title }), jsx(EmptyState.Description, { children: description })] }), children && jsx(EmptyState.Footer, { children: children })] }) }));
7
+ EmptyStateReadyMade.displayName = 'EmptyStateReadyMade';
8
+
9
+ export { EmptyStateReadyMade };
10
+ //# sourceMappingURL=EmptyStateReadyMade.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyStateReadyMade.js","sources":["../../../../../src/components/molecules/EmptyStates/components/EmptyStateReadyMade.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;AAmBA;AACO,MAAM,mBAAmB,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAA4B,MAChIA,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,EAAE,CAAC,oDAAoD,EAAE,SAAS,CAAC,YACjFC,IAAA,CAAC,UAAU,EAAA,EAAC,IAAI,EAAC,IAAI,iBAAc,UAAU,EAAE,SAAS,EAAC,SAAS,EAAA,QAAA,EAAA,CAChED,IAAC,UAAU,CAAC,MAAM,EAAA,EAAC,OAAO,EAAC,MAAM,EAAA,QAAA,EAC/BA,GAAA,CAAC,UAAU,CAAC,YAAY,EAAA,EAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC,QAAQ,EAAA,CAAG,EAAA,CAClD,EACpBC,KAAC,UAAU,CAAC,OAAO,EAAA,EAAA,QAAA,EAAA,CACjBD,GAAA,CAAC,UAAU,CAAC,KAAK,EAAA,EAAA,QAAA,EAAE,KAAK,EAAA,CAAoB,EAC5CA,GAAA,CAAC,UAAU,CAAC,WAAW,EAAA,EAAA,QAAA,EAAE,WAAW,EAAA,CAA0B,CAAA,EAAA,CAC3C,EACpB,QAAQ,IAAIA,GAAA,CAAC,UAAU,CAAC,MAAM,EAAA,EAAA,QAAA,EAAE,QAAQ,EAAA,CAAqB,CAAA,EAAA,CACnD,EAAA,CACT;AAER,mBAAmB,CAAC,WAAW,GAAG,qBAAqB;;"}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var EmptyState = require('./EmptyState/EmptyState.cjs');
4
+ var LoadErrorState = require('./LoadErrorState/LoadErrorState.cjs');
5
+ var NoResultsState = require('./NoResultsState/NoResultsState.cjs');
6
+ var PastLastPageState = require('./PastLastPageState/PastLastPageState.cjs');
7
+
8
+
9
+
10
+ exports.EmptyState = EmptyState.EmptyState;
11
+ exports.LoadErrorState = LoadErrorState.LoadErrorState;
12
+ exports.NoResultsState = NoResultsState.NoResultsState;
13
+ exports.PastLastPageState = PastLastPageState.PastLastPageState;
14
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Placeholders for a view with nothing to show: `EmptyState` to compose your own, and the ready-made states built on it for
3
+ * one job each, `LoadErrorState` for a failed request, `NoResultsState` for a search or filter that matched nothing and
4
+ * `PastLastPageState` for a page past a list's last.
5
+ *
6
+ * Explicit named re-exports on purpose: `export *` would publish every symbol of every member and private file (import
7
+ * paths are the public API here), so this list is the single source of truth for what EmptyStates exposes. Each member's
8
+ * implementation, stories and docs live in its own folder (`EmptyState/EmptyState.tsx`), never as `index.tsx`: the
9
+ * `exports` wildcard would make that folder a public path.
10
+ */
11
+ export type { AvatarGridProps, AvatarRadiusProps, AvatarRowProps, ContentProps, DescriptionProps, FileTypeIconProps, FooterProps, HeaderProps, RootProps, TitleProps, } from './EmptyState/EmptyState';
12
+ export { EmptyState } from './EmptyState/EmptyState';
13
+ export type { LoadErrorStateProps } from './LoadErrorState/LoadErrorState';
14
+ export { LoadErrorState } from './LoadErrorState/LoadErrorState';
15
+ export type { NoResultsStateProps } from './NoResultsState/NoResultsState';
16
+ export { NoResultsState } from './NoResultsState/NoResultsState';
17
+ export type { PastLastPageStateProps } from './PastLastPageState/PastLastPageState';
18
+ export { PastLastPageState } from './PastLastPageState/PastLastPageState';
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/EmptyStates/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,SAAS,EACT,UAAU,GACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,YAAY,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { EmptyState } from './EmptyState/EmptyState.js';
2
+ export { LoadErrorState } from './LoadErrorState/LoadErrorState.js';
3
+ export { NoResultsState } from './NoResultsState/NoResultsState.js';
4
+ export { PastLastPageState } from './PastLastPageState/PastLastPageState.js';
5
+ //# sourceMappingURL=index.js.map