@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/molecules/DetailList/index.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/molecules/DetailList/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;AAUA;AACA,MAAM,KAAK,GAAG;AACZ,IAAA,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,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MAAM,GAAG,GAAG,IAAI,CAAC,EAAE,IAAI,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC;QAChD,MAAM,SAAS,GAAG,UAAU,CAAC,UAAU,EAAE,CAAA,KAAA,EAAQ,GAAG,CAAA,CAAE,CAAC;;AAGvD,QAAA,QACEC,IAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EAA4B,SAAS,EAAE,SAAS,EAAE,EAAE,CAAC,8BAA8B,EAAE,MAAM,CAAC,GAAG,CAAC,EAAA,QAAA,EAAA,CAC9FA,aAAI,SAAS,EAAE,EAAE,CAAC,uBAAuB,EAAE,MAAM,CAAC,IAAI,CAAC,EAAA,QAAA,EAAA,CAErDD,GAAA,CAAA,MAAA,EAAA,EAAA,aAAA,EAAkB,MAAM,EAAC,SAAS,EAAC,UAAU,YAC3CA,GAAA,CAAC,YAAY,IACX,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,SAAS,EAChB,SAAS,EAAC,0CAA0C,EAAA,CACpD,GACG,EACN,IAAI,CAAC,KAAK,IACR,EACJ,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,KAdrB,GAAG,CAeP;AAEV,IAAA,CAAC;IAED,QACEA,GAAA,CAAA,IAAA,EAAA,EAAA,aAAA,EAAiB,UAAU,EAAE,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,EAAA,QAAA,EAChF,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,EAAA,CACnB;AAET;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Says whether a row's `trailing` draws anything, so a row given `isLive && <Badge />` or an empty string looks exactly
|
|
5
|
+
* like a row given none.
|
|
6
|
+
*
|
|
7
|
+
* @param trailing - The item's `trailing` as the page passed it.
|
|
8
|
+
* @returns `false` for what React renders as nothing (`undefined`, `null`, a boolean, an empty string or an empty array), `true` otherwise.
|
|
9
|
+
*/
|
|
10
|
+
const hasTrailing = (trailing) => trailing !== undefined &&
|
|
11
|
+
trailing !== null &&
|
|
12
|
+
trailing !== '' &&
|
|
13
|
+
typeof trailing !== 'boolean' &&
|
|
14
|
+
!(Array.isArray(trailing) && trailing.length === 0);
|
|
15
|
+
|
|
16
|
+
exports.hasTrailing = hasTrailing;
|
|
17
|
+
//# sourceMappingURL=detailList.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detailList.utils.cjs","sources":["../../../../../src/components/molecules/DetailList/utilities/detailList.utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;;;AAMG;AACI,MAAM,WAAW,GAAG,CAAC,QAAmB,KAC7C,QAAQ,KAAK,SAAS;AACtB,IAAA,QAAQ,KAAK,IAAI;AACjB,IAAA,QAAQ,KAAK,EAAE;IACf,OAAO,QAAQ,KAAK,SAAS;AAC7B,IAAA,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Says whether a row's `trailing` draws anything, so a row given `isLive && <Badge />` or an empty string looks exactly
|
|
4
|
+
* like a row given none.
|
|
5
|
+
*
|
|
6
|
+
* @param trailing - The item's `trailing` as the page passed it.
|
|
7
|
+
* @returns `false` for what React renders as nothing (`undefined`, `null`, a boolean, an empty string or an empty array), `true` otherwise.
|
|
8
|
+
*/
|
|
9
|
+
export declare const hasTrailing: (trailing: ReactNode) => boolean;
|
|
10
|
+
//# sourceMappingURL=detailList.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detailList.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/DetailList/utilities/detailList.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,UAAU,SAAS,KAAG,OAKG,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Says whether a row's `trailing` draws anything, so a row given `isLive && <Badge />` or an empty string looks exactly
|
|
3
|
+
* like a row given none.
|
|
4
|
+
*
|
|
5
|
+
* @param trailing - The item's `trailing` as the page passed it.
|
|
6
|
+
* @returns `false` for what React renders as nothing (`undefined`, `null`, a boolean, an empty string or an empty array), `true` otherwise.
|
|
7
|
+
*/
|
|
8
|
+
const hasTrailing = (trailing) => trailing !== undefined &&
|
|
9
|
+
trailing !== null &&
|
|
10
|
+
trailing !== '' &&
|
|
11
|
+
typeof trailing !== 'boolean' &&
|
|
12
|
+
!(Array.isArray(trailing) && trailing.length === 0);
|
|
13
|
+
|
|
14
|
+
export { hasTrailing };
|
|
15
|
+
//# sourceMappingURL=detailList.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detailList.utils.js","sources":["../../../../../src/components/molecules/DetailList/utilities/detailList.utils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;;;;;;AAMG;AACI,MAAM,WAAW,GAAG,CAAC,QAAmB,KAC7C,QAAQ,KAAK,SAAS;AACtB,IAAA,QAAQ,KAAK,IAAI;AACjB,IAAA,QAAQ,KAAK,EAAE;IACf,OAAO,QAAQ,KAAK,SAAS;AAC7B,IAAA,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;;"}
|
|
@@ -1,175 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var uiIcons = require('@flipdish/ui-icons');
|
|
5
|
-
var BackgroundPattern = require('@flipdish/ui-library/components/atoms/BackgroundPattern');
|
|
6
|
-
var Buttons = require('@flipdish/ui-library/components/atoms/Buttons');
|
|
7
|
-
var FeaturedIcon$1 = require('@flipdish/ui-library/components/atoms/FeaturedIcon');
|
|
8
|
-
var Illustration$1 = require('@flipdish/ui-library/components/atoms/Illustration');
|
|
9
|
-
var cx = require('@flipdish/ui-library/utilities/cx');
|
|
10
|
-
var testIdUtils = require('@flipdish/ui-library/utilities/testIdUtils');
|
|
11
|
-
var utils = require('@react-aria/utils');
|
|
12
|
-
var React = require('react');
|
|
13
|
-
var focusHandOff_context = require('../../__internal__/focusHandOff/focusHandOff.context.cjs');
|
|
14
|
-
var children_utils = require('../../../utilities/__internal__/childrenUtils/children.utils.cjs');
|
|
15
|
-
var emptyState_utils = require('./utilities/emptyState.utils.cjs');
|
|
3
|
+
var EmptyStates = require('@flipdish/ui-library/components/molecules/EmptyStates');
|
|
16
4
|
|
|
17
|
-
|
|
18
|
-
const Root = React.forwardRef(({ size = 'lg', 'data-testid': dataTestId, ...props }, ref) => {
|
|
19
|
-
const rootTestId = testIdUtils.useResolvedTestId({ testId: dataTestId, segment: 'empty-state', rootName: 'empty-state' });
|
|
20
|
-
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) }) }) }));
|
|
21
|
-
});
|
|
22
|
-
const FeaturedIcon = React.forwardRef(({ color = 'gray', theme = 'modern', icon = uiIcons.SearchLg, size, ...props }, ref) => {
|
|
23
|
-
const { size: rootSize } = React.useContext(RootContext);
|
|
24
|
-
return jsxRuntime.jsx(FeaturedIcon$1.FeaturedIcon, { ...props, ref: ref, color, theme, icon, size: emptyState_utils.featuredIconSize(size, rootSize) });
|
|
25
|
-
});
|
|
26
|
-
const Illustration = ({ type = 'cloud', color = 'gray', size = 'lg', ...props }) => {
|
|
27
|
-
const { size: rootSize } = React.useContext(RootContext);
|
|
28
|
-
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) }));
|
|
29
|
-
};
|
|
30
|
-
const FileTypeIcon = React.forwardRef(({ type = 'folder', theme = 'solid', ...props }, ref) => {
|
|
31
|
-
return (jsxRuntime.jsx("div", { ...props, ref: ref, className: cx.cx('relative z-10 flex rounded-full bg-linear-to-b from-neutral-50 to-neutral-200 p-8', props.className), children: jsxRuntime.jsx(uiIcons.FileIcon, { type: type, variant: theme, className: "size-10 drop-shadow-sm" }) }));
|
|
32
|
-
});
|
|
33
|
-
const Header = React.forwardRef(({ pattern = 'circle', patternSize = 'md', 'data-testid': dataTestId, ...props }, ref) => {
|
|
34
|
-
const { size } = React.useContext(RootContext);
|
|
35
|
-
const prefix = testIdUtils.useTestIdPrefix();
|
|
36
|
-
const headerTestId = dataTestId ?? (prefix ? testIdUtils.joinTestId(prefix, 'header') : undefined);
|
|
37
|
-
const backgroundPattern = emptyState_utils.headerBackgroundPattern(pattern, patternSize);
|
|
38
|
-
// Whether we are passing `Illustration` component as children.
|
|
39
|
-
const hasIllustration = children_utils.flattenChildren(props.children).some((headerChild) => React.isValidElement(headerChild) && headerChild.type === Illustration);
|
|
40
|
-
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] }));
|
|
41
|
-
});
|
|
42
|
-
const Content = React.forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
|
|
43
|
-
const { size } = React.useContext(RootContext);
|
|
44
|
-
const prefix = testIdUtils.useTestIdPrefix();
|
|
45
|
-
const contentTestId = dataTestId ?? (prefix ? testIdUtils.joinTestId(prefix, 'content') : undefined);
|
|
46
|
-
return (jsxRuntime.jsx("div", { ...props, ref: ref, "data-testid": contentTestId, className: cx.cx(
|
|
47
|
-
// Fixed and capped by the parent rather than `w-full`, which shrinks to the text in a parent that sizes to its content.
|
|
48
|
-
'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) }));
|
|
49
|
-
});
|
|
50
|
-
const Footer = React.forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
|
|
51
|
-
const prefix = testIdUtils.useTestIdPrefix();
|
|
52
|
-
const footerTestId = dataTestId ?? (prefix ? testIdUtils.joinTestId(prefix, 'footer') : undefined);
|
|
53
|
-
return jsxRuntime.jsx("footer", { ...props, ref: ref, "data-testid": footerTestId, className: cx.cx('z-10 flex gap-3', props.className) });
|
|
54
|
-
});
|
|
55
|
-
const Title = React.forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
|
|
56
|
-
const { size } = React.useContext(RootContext);
|
|
57
|
-
const prefix = testIdUtils.useTestIdPrefix();
|
|
58
|
-
const titleTestId = dataTestId ?? (prefix ? testIdUtils.joinTestId(prefix, 'title') : undefined);
|
|
59
|
-
// Set only in a table's empty state; memoised so a title already on screen never spends a hand-off.
|
|
60
|
-
const focusTargetRef = React.useContext(focusHandOff_context.FocusHandOffTargetContext);
|
|
61
|
-
// Its text only, so other children never change the memo: a title React keeps takes a pending hand-off when its text changes.
|
|
62
|
-
const titleText = emptyState_utils.titleTextOf(props.children);
|
|
63
|
-
// biome-ignore lint/correctness/useExhaustiveDependencies: a new title text attaches the ref again, as a newly mounted title would.
|
|
64
|
-
const titleRef = React.useMemo(() => (focusTargetRef ? utils.mergeRefs(ref, focusTargetRef) : ref), [ref, focusTargetRef, titleText]);
|
|
65
|
-
return (jsxRuntime.jsx("h1", { ...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) }));
|
|
66
|
-
});
|
|
67
|
-
const Description = React.forwardRef(({ 'data-testid': dataTestId, ...props }, ref) => {
|
|
68
|
-
const { size } = React.useContext(RootContext);
|
|
69
|
-
const prefix = testIdUtils.useTestIdPrefix();
|
|
70
|
-
const descriptionTestId = dataTestId ?? (prefix ? testIdUtils.joinTestId(prefix, 'description') : undefined);
|
|
71
|
-
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) }));
|
|
72
|
-
});
|
|
5
|
+
// `typeof` keeps the compound's parts.
|
|
73
6
|
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
7
|
+
* @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major.
|
|
8
|
+
* `EmptyState.Title` renders an `h2` on this path too, not the `h1` of earlier versions.
|
|
76
9
|
*/
|
|
77
|
-
const
|
|
78
|
-
{ ring: 80, angle: 330, size: 'size-8' },
|
|
79
|
-
{ ring: 80, angle: 56, size: 'size-8' },
|
|
80
|
-
{ ring: 144, angle: 82, size: 'size-7' },
|
|
81
|
-
{ ring: 144, angle: 299, size: 'size-7' },
|
|
82
|
-
{ ring: 144, angle: 241, size: 'size-7' },
|
|
83
|
-
{ ring: 176, angle: 64, size: 'size-6' },
|
|
84
|
-
{ ring: 176, angle: 270, size: 'size-6' },
|
|
85
|
-
{ ring: 144, angle: 112, size: 'size-7' },
|
|
86
|
-
{ ring: 80, angle: 249, size: 'size-8' },
|
|
87
|
-
];
|
|
88
|
-
const RING_RADII = [48, 80, 112, 144, 176];
|
|
89
|
-
const AvatarRadius = React.forwardRef(({ avatars = [], ...props }, ref) => {
|
|
90
|
-
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: {
|
|
91
|
-
maskImage: 'radial-gradient(circle, black 10%, transparent 70%)',
|
|
92
|
-
WebkitMaskImage: 'radial-gradient(circle, black 10%, transparent 70%)',
|
|
93
|
-
...props.style,
|
|
94
|
-
}, 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) => {
|
|
95
|
-
const slot = avatarSlots[i];
|
|
96
|
-
const { x, y } = emptyState_utils.avatarRingOffset(slot.angle, slot.ring);
|
|
97
|
-
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));
|
|
98
|
-
})] }));
|
|
99
|
-
});
|
|
100
|
-
/** Avatar sizes per root size — ordered smallest to largest (left edge → center). */
|
|
101
|
-
const rowStyles = {
|
|
102
|
-
sm: ['size-8 rounded-md', 'size-9 rounded-[7px]', 'size-10 rounded-lg', 'size-11 rounded-[9px]'],
|
|
103
|
-
md: ['size-10 rounded-lg', 'size-11 rounded-[9px]', 'size-12 rounded-[10px]'],
|
|
104
|
-
lg: ['size-10 rounded-lg', 'size-11 rounded-[9px]', 'size-12 rounded-[10px]'],
|
|
105
|
-
};
|
|
106
|
-
const ROW_GAP_CLASS = { sm: 'gap-4', md: 'gap-5', lg: 'gap-6' };
|
|
107
|
-
const AvatarRow = React.forwardRef(({ avatars = [], children, ...props }, ref) => {
|
|
108
|
-
const { size: rootSize } = React.useContext(RootContext);
|
|
109
|
-
const sizeKey = rootSize || 'md';
|
|
110
|
-
const sizes = rowStyles[sizeKey];
|
|
111
|
-
const { left: leftAvatars, right: rightAvatars } = emptyState_utils.placeAvatarRow(avatars, sizes.length);
|
|
112
|
-
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));
|
|
113
|
-
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: {
|
|
114
|
-
maskImage: 'radial-gradient(circle, black 5%, transparent 105%)',
|
|
115
|
-
WebkitMaskImage: 'radial-gradient(circle, black 5%, transparent 105%)',
|
|
116
|
-
...props.style,
|
|
117
|
-
}, 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)) })] }));
|
|
118
|
-
});
|
|
119
|
-
const gridStyles = {
|
|
120
|
-
sm: { avatar: 'size-8 rounded-md', inner: 'rounded-[5px]', gap: 'gap-2 pl-2', rowGap: 'gap-2' },
|
|
121
|
-
md: { avatar: 'size-10 rounded-lg', inner: 'rounded-[7px]', gap: 'gap-3 pl-3', rowGap: 'gap-3' },
|
|
122
|
-
lg: { avatar: 'size-12 rounded-[10px]', inner: 'rounded-[9px]', gap: 'gap-3 pl-3', rowGap: 'gap-3' },
|
|
123
|
-
};
|
|
124
|
-
const AvatarGrid = React.forwardRef(({ avatars = [], ...props }, ref) => {
|
|
125
|
-
const { size: rootSize } = React.useContext(RootContext);
|
|
126
|
-
const sizeKey = rootSize || 'md';
|
|
127
|
-
const config = gridStyles[sizeKey];
|
|
128
|
-
const { leading, trailing, splitAt } = emptyState_utils.avatarGridRows(avatars);
|
|
129
|
-
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));
|
|
130
|
-
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)) })] }));
|
|
131
|
-
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: {
|
|
132
|
-
maskImage: 'radial-gradient(circle, black 10%, transparent 100%)',
|
|
133
|
-
WebkitMaskImage: 'radial-gradient(circle, black 10%, transparent 100%)',
|
|
134
|
-
...props.style,
|
|
135
|
-
}, 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)] }));
|
|
136
|
-
});
|
|
10
|
+
const EmptyState = EmptyStates.EmptyState;
|
|
137
11
|
/**
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
* @summary placeholder for a list, table or page with no data
|
|
12
|
+
* @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major.
|
|
13
|
+
* Its title renders an `h2` on this path too, not the `h1` of earlier versions.
|
|
142
14
|
*/
|
|
143
|
-
const
|
|
144
|
-
EmptyState.Title = Title;
|
|
145
|
-
EmptyState.Header = Header;
|
|
146
|
-
EmptyState.Footer = Footer;
|
|
147
|
-
EmptyState.Content = Content;
|
|
148
|
-
EmptyState.Description = Description;
|
|
149
|
-
EmptyState.Illustration = Illustration;
|
|
150
|
-
EmptyState.FeaturedIcon = FeaturedIcon;
|
|
151
|
-
EmptyState.FileTypeIcon = FileTypeIcon;
|
|
152
|
-
EmptyState.AvatarRadius = AvatarRadius;
|
|
153
|
-
EmptyState.AvatarRow = AvatarRow;
|
|
154
|
-
EmptyState.AvatarGrid = AvatarGrid;
|
|
155
|
-
EmptyState.displayName = 'EmptyState';
|
|
156
|
-
EmptyState.Title.displayName = 'EmptyState.Title';
|
|
157
|
-
EmptyState.Header.displayName = 'EmptyState.Header';
|
|
158
|
-
EmptyState.Footer.displayName = 'EmptyState.Footer';
|
|
159
|
-
EmptyState.Content.displayName = 'EmptyState.Content';
|
|
160
|
-
EmptyState.Description.displayName = 'EmptyState.Description';
|
|
161
|
-
EmptyState.Illustration.displayName = 'EmptyState.Illustration';
|
|
162
|
-
EmptyState.FeaturedIcon.displayName = 'EmptyState.FeaturedIcon';
|
|
163
|
-
EmptyState.FileTypeIcon.displayName = 'EmptyState.FileTypeIcon';
|
|
164
|
-
EmptyState.AvatarRadius.displayName = 'EmptyState.AvatarRadius';
|
|
165
|
-
EmptyState.AvatarRow.displayName = 'EmptyState.AvatarRow';
|
|
166
|
-
EmptyState.AvatarGrid.displayName = 'EmptyState.AvatarGrid';
|
|
167
|
-
/** Ready-made `EmptyState` for a request that failed: it names what could not be loaded and offers one retry button. */
|
|
168
|
-
const LoadErrorState = ({ title, description = 'Something went wrong on our side. Check your connection and try again.', isRetrying, onRetry, className, 'data-testid': dataTestId, }) => {
|
|
169
|
-
const rootTestId = testIdUtils.useResolvedTestId({ testId: dataTestId, segment: 'empty-state', rootName: 'empty-state' });
|
|
170
|
-
return (jsxRuntime.jsx("div", { className: cx.cx('flex w-full items-center justify-center px-8 py-16', className), children: jsxRuntime.jsxs(EmptyState, { size: "sm", "data-testid": rootTestId, className: "min-w-0", children: [jsxRuntime.jsx(EmptyState.Header, { pattern: "none", children: jsxRuntime.jsx(EmptyState.FeaturedIcon, { icon: uiIcons.AlertCircle, color: "error", theme: "modern" }) }), jsxRuntime.jsxs(EmptyState.Content, { children: [jsxRuntime.jsx(EmptyState.Title, { children: title }), jsxRuntime.jsx(EmptyState.Description, { children: description })] }), jsxRuntime.jsx(EmptyState.Footer, { children: jsxRuntime.jsx(Buttons.Button, { color: "secondary", size: "md", isLoading: isRetrying, onPress: onRetry, "data-testid": testIdUtils.joinTestId(rootTestId, 'retry'), children: "Try again" }) })] }) }));
|
|
171
|
-
};
|
|
172
|
-
LoadErrorState.displayName = 'LoadErrorState';
|
|
15
|
+
const LoadErrorState = EmptyStates.LoadErrorState;
|
|
173
16
|
|
|
174
17
|
exports.EmptyState = EmptyState;
|
|
175
18
|
exports.LoadErrorState = LoadErrorState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../src/components/molecules/EmptyState/index.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","avatarRingO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|
|
1
|
+
{"version":3,"file":"index.cjs","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;;;"}
|
|
@@ -1,117 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { type AvatarGridProps as AvatarGridPropsNext, type AvatarRadiusProps as AvatarRadiusPropsNext, type AvatarRowProps as AvatarRowPropsNext, type ContentProps as ContentPropsNext, type DescriptionProps as DescriptionPropsNext, EmptyState as EmptyStateNext, type FileTypeIconProps as FileTypeIconPropsNext, type FooterProps as FooterPropsNext, type HeaderProps as HeaderPropsNext, LoadErrorState as LoadErrorStateNext, type LoadErrorStateProps as LoadErrorStatePropsNext, type RootProps as RootPropsNext, type TitleProps as TitlePropsNext } from '@flipdish/ui-library/components/molecules/EmptyStates';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major.
|
|
4
|
+
* `EmptyState.Title` renders an `h2` on this path too, not the `h1` of earlier versions.
|
|
5
|
+
*/
|
|
6
|
+
export declare const EmptyState: typeof EmptyStateNext;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major.
|
|
9
|
+
* Its title renders an `h2` on this path too, not the `h1` of earlier versions.
|
|
10
|
+
*/
|
|
11
|
+
export declare const LoadErrorState: (props: LoadErrorStateProps) => ReturnType<typeof LoadErrorStateNext>;
|
|
12
|
+
/** @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major. */
|
|
13
|
+
export interface LoadErrorStateProps extends LoadErrorStatePropsNext {
|
|
12
14
|
}
|
|
13
|
-
|
|
14
|
-
|
|
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'];
|
|
15
|
+
/** @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major. */
|
|
16
|
+
export interface RootProps extends RootPropsNext {
|
|
21
17
|
}
|
|
22
|
-
|
|
23
|
-
export interface HeaderProps extends
|
|
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;
|
|
18
|
+
/** @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major. */
|
|
19
|
+
export interface HeaderProps extends HeaderPropsNext {
|
|
30
20
|
}
|
|
31
|
-
|
|
32
|
-
export interface ContentProps extends
|
|
33
|
-
/** Overrides the derived `data-testid` for the content block (defaults to `<root>--content`). */
|
|
34
|
-
'data-testid'?: string;
|
|
21
|
+
/** @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major. */
|
|
22
|
+
export interface ContentProps extends ContentPropsNext {
|
|
35
23
|
}
|
|
36
|
-
|
|
37
|
-
export interface FooterProps extends
|
|
38
|
-
/** Overrides the derived `data-testid` for the footer (defaults to `<root>--footer`). */
|
|
39
|
-
'data-testid'?: string;
|
|
24
|
+
/** @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major. */
|
|
25
|
+
export interface FooterProps extends FooterPropsNext {
|
|
40
26
|
}
|
|
41
|
-
|
|
42
|
-
export interface TitleProps extends
|
|
43
|
-
/** Overrides the derived `data-testid` for the title (defaults to `<root>--title`). */
|
|
44
|
-
'data-testid'?: string;
|
|
27
|
+
/** @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major. */
|
|
28
|
+
export interface TitleProps extends TitlePropsNext {
|
|
45
29
|
}
|
|
46
|
-
|
|
47
|
-
export interface DescriptionProps extends
|
|
48
|
-
/** Overrides the derived `data-testid` for the description (defaults to `<root>--description`). */
|
|
49
|
-
'data-testid'?: string;
|
|
30
|
+
/** @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major. */
|
|
31
|
+
export interface DescriptionProps extends DescriptionPropsNext {
|
|
50
32
|
}
|
|
51
|
-
|
|
52
|
-
export interface
|
|
53
|
-
/** Decorative avatars placed on the concentric rings; only the first nine are shown. */
|
|
54
|
-
avatars?: Array<{
|
|
55
|
-
src: string;
|
|
56
|
-
alt?: string;
|
|
57
|
-
}>;
|
|
33
|
+
/** @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major. */
|
|
34
|
+
export interface FileTypeIconProps extends FileTypeIconPropsNext {
|
|
58
35
|
}
|
|
59
|
-
|
|
60
|
-
export interface
|
|
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;
|
|
36
|
+
/** @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major. */
|
|
37
|
+
export interface AvatarRadiusProps extends AvatarRadiusPropsNext {
|
|
68
38
|
}
|
|
69
|
-
|
|
70
|
-
export interface
|
|
71
|
-
/** Decorative avatars split across two rows that scroll in opposite directions. */
|
|
72
|
-
avatars?: Array<{
|
|
73
|
-
src: string;
|
|
74
|
-
alt?: string;
|
|
75
|
-
}>;
|
|
39
|
+
/** @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major. */
|
|
40
|
+
export interface AvatarRowProps extends AvatarRowPropsNext {
|
|
76
41
|
}
|
|
77
|
-
|
|
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
|
-
export interface LoadErrorStateProps {
|
|
99
|
-
/** What failed, such as "Opening hours could not be loaded". */
|
|
100
|
-
title: string;
|
|
101
|
-
/** What the user can do about it, beneath the title. */
|
|
102
|
-
description?: string;
|
|
103
|
-
/** Shows the retry button's loading state while the request is in flight again. */
|
|
104
|
-
isRetrying: boolean;
|
|
105
|
-
/** Starts the failed request again. */
|
|
106
|
-
onRetry: () => void;
|
|
107
|
-
/** Extra classes merged onto the padded wrapper around the empty state. */
|
|
108
|
-
className?: string;
|
|
109
|
-
/** Overrides the root `data-testid` (defaults to `fd-empty-state`); the parts and the retry button derive theirs from it. */
|
|
110
|
-
'data-testid'?: string;
|
|
42
|
+
/** @deprecated Import from `@flipdish/ui-library/components/molecules/EmptyStates`. Removed in the next major. */
|
|
43
|
+
export interface AvatarGridProps extends AvatarGridPropsNext {
|
|
111
44
|
}
|
|
112
|
-
/** Ready-made `EmptyState` for a request that failed: it names what could not be loaded and offers one retry button. */
|
|
113
|
-
export declare const LoadErrorState: {
|
|
114
|
-
({ title, description, isRetrying, onRetry, className, "data-testid": dataTestId, }: LoadErrorStateProps): import("react").JSX.Element;
|
|
115
|
-
displayName: string;
|
|
116
|
-
};
|
|
117
45
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/EmptyState/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/EmptyState/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,eAAe,IAAI,mBAAmB,EAC3C,KAAK,iBAAiB,IAAI,qBAAqB,EAC/C,KAAK,cAAc,IAAI,kBAAkB,EACzC,KAAK,YAAY,IAAI,gBAAgB,EACrC,KAAK,gBAAgB,IAAI,oBAAoB,EAC7C,UAAU,IAAI,cAAc,EAC5B,KAAK,iBAAiB,IAAI,qBAAqB,EAC/C,KAAK,WAAW,IAAI,eAAe,EACnC,KAAK,WAAW,IAAI,eAAe,EACnC,cAAc,IAAI,kBAAkB,EACpC,KAAK,mBAAmB,IAAI,uBAAuB,EACnD,KAAK,SAAS,IAAI,aAAa,EAC/B,KAAK,UAAU,IAAI,cAAc,EAClC,MAAM,uDAAuD,CAAC;AAG/D;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,OAAO,cAA+B,CAAC;AAChE;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,UAAU,CAAC,OAAO,kBAAkB,CAAsB,CAAC;AACxH,kHAAkH;AAClH,MAAM,W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