@harpercollins/harpercollins-design-system 1.34.0 → 1.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/data-display/DataGrid/DataGrid.cjs +1 -0
- package/dist/cjs/components/data-display/DataGrid/hooks/useDataGrid.cjs +1 -0
- package/dist/cjs/components/data-display/Table/Table.cjs +1 -1
- package/dist/cjs/components/data-display/Table/TableHeader.cjs +1 -1
- package/dist/cjs/components/data-display/Table/TableLayout.cjs +1 -0
- package/dist/cjs/hooks/useServerSideTableState.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/data-display/DataGrid/DataGrid.js +70 -0
- package/dist/esm/components/data-display/DataGrid/hooks/useDataGrid.js +189 -0
- package/dist/esm/components/data-display/Table/Table.js +51 -295
- package/dist/esm/components/data-display/Table/TableHeader.js +1 -1
- package/dist/esm/components/data-display/Table/TableLayout.js +112 -0
- package/dist/esm/hooks/useServerSideTableState.js +1 -1
- package/dist/esm/index.js +192 -190
- package/dist/index.d.ts +66 -25
- package/package.json +1 -1
- package/dist/cjs/components/data-display/Table/index.cjs +0 -1
- package/dist/esm/components/data-display/Table/index.js +0 -4
- /package/dist/cjs/components/data-display/{Table → DataGrid}/ExportToExcelButton.cjs +0 -0
- /package/dist/cjs/components/data-display/{Table → DataGrid}/FilterChipsSection.cjs +0 -0
- /package/dist/cjs/components/data-display/{Table → DataGrid}/TableToolbar.cjs +0 -0
- /package/dist/cjs/components/data-display/{Table → DataGrid}/filters/FilterComponents.cjs +0 -0
- /package/dist/cjs/components/data-display/{Table → DataGrid}/filters/filterFunctions.cjs +0 -0
- /package/dist/cjs/components/data-display/{Table → DataGrid}/hooks/useInfiniteScroll.cjs +0 -0
- /package/dist/cjs/components/data-display/{Table → DataGrid}/tableUrlUtils.cjs +0 -0
- /package/dist/esm/components/data-display/{Table → DataGrid}/ExportToExcelButton.js +0 -0
- /package/dist/esm/components/data-display/{Table → DataGrid}/FilterChipsSection.js +0 -0
- /package/dist/esm/components/data-display/{Table → DataGrid}/TableToolbar.js +0 -0
- /package/dist/esm/components/data-display/{Table → DataGrid}/filters/FilterComponents.js +0 -0
- /package/dist/esm/components/data-display/{Table → DataGrid}/filters/filterFunctions.js +0 -0
- /package/dist/esm/components/data-display/{Table → DataGrid}/hooks/useInfiniteScroll.js +0 -0
- /package/dist/esm/components/data-display/{Table → DataGrid}/tableUrlUtils.js +0 -0
package/dist/esm/index.js
CHANGED
|
@@ -10,208 +10,210 @@ import { default as g } from "./components/data-display/Icon/Icon.js";
|
|
|
10
10
|
import { default as T } from "./components/data-display/List/List.js";
|
|
11
11
|
import { default as L } from "./components/data-display/ProgressCircle/ProgressCircle.js";
|
|
12
12
|
import { default as A } from "./components/data-display/ReadMore/ReadMore.js";
|
|
13
|
-
import { default as
|
|
13
|
+
import { default as v } from "./components/data-display/RelativeTime/RelativeTime.js";
|
|
14
14
|
import { default as P } from "./components/data-display/StatusIcon/StatusIcon.js";
|
|
15
|
-
import { default as M } from "./components/data-display/
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as H } from "./components/
|
|
21
|
-
import { default as j } from "./components/feedback/
|
|
22
|
-
import { default as z } from "./components/feedback/
|
|
23
|
-
import { default as K } from "./components/feedback/
|
|
24
|
-
import { default as U } from "./components/feedback/
|
|
25
|
-
import { default as W } from "./components/feedback/
|
|
26
|
-
import { default as Y } from "./components/feedback/
|
|
27
|
-
import { default as _ } from "./components/feedback/
|
|
28
|
-
import { default as ee } from "./components/
|
|
29
|
-
import { default as te } from "./components/global/
|
|
30
|
-
import { default as ae } from "./components/global/
|
|
31
|
-
import { default as se } from "./components/global/
|
|
32
|
-
import { default as pe } from "./components/global/Logo/
|
|
33
|
-
import { default as de } from "./components/global/
|
|
34
|
-
import { default as xe } from "./components/
|
|
35
|
-
import { default as ne } from "./components/inputs/Autocomplete/
|
|
36
|
-
import { default as ge } from "./components/inputs/Autocomplete/
|
|
37
|
-
import { default as Te } from "./components/inputs/
|
|
38
|
-
import { default as Le } from "./components/inputs/
|
|
39
|
-
import { default as Ae } from "./components/inputs/
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as Pe } from "./components/inputs/
|
|
42
|
-
import { default as Me } from "./components/inputs/
|
|
43
|
-
import { default as ye } from "./components/inputs/Input/
|
|
44
|
-
import { default as ke } from "./components/inputs/Input/
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as He } from "./components/inputs/
|
|
48
|
-
import { default as je } from "./components/inputs/
|
|
49
|
-
import { default as ze } from "./components/inputs/
|
|
50
|
-
import { default as Ke } from "./components/inputs/
|
|
51
|
-
import { default as Ue } from "./components/
|
|
52
|
-
import { default as We } from "./components/layout/
|
|
53
|
-
import { default as Ye } from "./components/
|
|
54
|
-
import { default as _e } from "./components/navigation/
|
|
55
|
-
import { default as eo } from "./components/navigation/
|
|
56
|
-
import { default as to } from "./components/navigation/
|
|
57
|
-
import { default as ao } from "./components/navigation/Menu/
|
|
58
|
-
import { default as so } from "./components/navigation/Menu/
|
|
59
|
-
import { default as po } from "./components/navigation/
|
|
60
|
-
import { default as mo } from "./components/navigation/
|
|
61
|
-
import { default as io } from "./components/
|
|
62
|
-
import { default as co } from "./components/surfaces/Accordion/
|
|
63
|
-
import { default as Co } from "./components/surfaces/Accordion/
|
|
64
|
-
import { default as So } from "./components/surfaces/Accordion/
|
|
65
|
-
import { default as bo } from "./components/surfaces/
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import { default as Vo } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
77
|
-
import { default as Xo } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
78
|
-
import { default as Zo } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
79
|
-
import { default as $o } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
80
|
-
import { default as ot } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
81
|
-
import { default as rt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
82
|
-
import { default as ft } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
83
|
-
import { default as lt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
84
|
-
import { default as ut } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
85
|
-
import { default as mt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
86
|
-
import { default as it } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
87
|
-
import { default as ct } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
88
|
-
import { default as Ct } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
89
|
-
import { default as St } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
90
|
-
import { default as bt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as It } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
94
|
-
import { default as ht } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
95
|
-
import { default as Ft } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
96
|
-
import { default as wt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as Nt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
99
|
-
import { default as Et } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
100
|
-
import { default as qt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
101
|
-
import { default as Jt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
102
|
-
import { default as Qt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
103
|
-
import { default as Vt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
104
|
-
import { default as Xt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
105
|
-
import { default as Zt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/
|
|
106
|
-
import {
|
|
15
|
+
import { default as M } from "./components/data-display/DataGrid/DataGrid.js";
|
|
16
|
+
import { default as y } from "./components/data-display/Table/Table.js";
|
|
17
|
+
import { Tabs as k } from "./components/data-display/Tabs/Tabs.js";
|
|
18
|
+
import { default as G } from "./components/data-display/TextBlock/TextBlock.js";
|
|
19
|
+
import { default as R } from "./components/data-display/Tooltip/Tooltip.js";
|
|
20
|
+
import { default as H } from "./components/data-display/Typography/Typography.js";
|
|
21
|
+
import { default as j } from "./components/feedback/Alert/Alert.js";
|
|
22
|
+
import { default as z } from "./components/feedback/CircularProgress/CircularProgress.js";
|
|
23
|
+
import { default as K } from "./components/feedback/LinearProgress/LinearProgress.js";
|
|
24
|
+
import { default as U } from "./components/feedback/LoadingSpinner/LoadingSpinner.js";
|
|
25
|
+
import { default as W } from "./components/feedback/Modal/Modal.js";
|
|
26
|
+
import { default as Y } from "./components/feedback/ProgressBar/ProgressBar.js";
|
|
27
|
+
import { default as _ } from "./components/feedback/Skeleton/Skeleton.js";
|
|
28
|
+
import { default as ee } from "./components/feedback/ToastMessages/ToastMessages.js";
|
|
29
|
+
import { default as te } from "./components/global/AppBar/AppBar.js";
|
|
30
|
+
import { default as ae } from "./components/global/ErrorFallback/FullPageErrorFallback.js";
|
|
31
|
+
import { default as se } from "./components/global/Layout/Layout.js";
|
|
32
|
+
import { default as pe } from "./components/global/Logo/Logo.js";
|
|
33
|
+
import { default as de } from "./components/global/Logo/LogoMini.js";
|
|
34
|
+
import { default as xe } from "./components/global/ThemeProvider/ThemeProvider.js";
|
|
35
|
+
import { default as ne } from "./components/inputs/Autocomplete/Autocomplete.js";
|
|
36
|
+
import { default as ge } from "./components/inputs/Autocomplete/AutocompleteOption.js";
|
|
37
|
+
import { default as Te } from "./components/inputs/Autocomplete/AutocompleteSelectMultiple/AutocompleteSelectMultiple.js";
|
|
38
|
+
import { default as Le } from "./components/inputs/Button/Button.js";
|
|
39
|
+
import { default as Ae } from "./components/inputs/ButtonGroup/ButtonGroup.js";
|
|
40
|
+
import { default as ve } from "./components/inputs/Checkbox/Checkbox.js";
|
|
41
|
+
import { default as Pe } from "./components/inputs/DatePicker/DatePicker.js";
|
|
42
|
+
import { default as Me } from "./components/inputs/DateTimeInput/DateTimeInput.js";
|
|
43
|
+
import { default as ye } from "./components/inputs/Input/Input.js";
|
|
44
|
+
import { default as ke } from "./components/inputs/Input/FormControl.js";
|
|
45
|
+
import { default as Ge } from "./components/inputs/Input/FormHelperText.js";
|
|
46
|
+
import { default as Re } from "./components/inputs/Input/FormLabel.js";
|
|
47
|
+
import { default as He } from "./components/inputs/RadioButton/RadioButton.js";
|
|
48
|
+
import { default as je } from "./components/inputs/Select/Select.js";
|
|
49
|
+
import { default as ze } from "./components/inputs/Slider/Slider.js";
|
|
50
|
+
import { default as Ke } from "./components/inputs/Switch/Switch.js";
|
|
51
|
+
import { default as Ue } from "./components/inputs/Textarea/Textarea.js";
|
|
52
|
+
import { default as We } from "./components/layout/Container/Container.js";
|
|
53
|
+
import { default as Ye } from "./components/layout/Grid/Grid.js";
|
|
54
|
+
import { default as _e } from "./components/navigation/Breadcrumb/Breadcrumb.js";
|
|
55
|
+
import { default as eo } from "./components/navigation/Drawer/Drawer.js";
|
|
56
|
+
import { default as to } from "./components/navigation/Dropdown/Dropdown.js";
|
|
57
|
+
import { default as ao } from "./components/navigation/Menu/Menu.js";
|
|
58
|
+
import { default as so } from "./components/navigation/Menu/MenuHeading.js";
|
|
59
|
+
import { default as po } from "./components/navigation/Menu/MenuItem.js";
|
|
60
|
+
import { default as mo } from "./components/navigation/PrimaryNavigation/PrimaryNavigation.js";
|
|
61
|
+
import { default as io } from "./components/navigation/Stepper/Stepper.js";
|
|
62
|
+
import { default as co } from "./components/surfaces/Accordion/Accordion.js";
|
|
63
|
+
import { default as Co } from "./components/surfaces/Accordion/AccordionDetails.js";
|
|
64
|
+
import { default as So } from "./components/surfaces/Accordion/AccordionGroup.js";
|
|
65
|
+
import { default as bo } from "./components/surfaces/Accordion/AccordionSummary.js";
|
|
66
|
+
import { default as Do } from "./components/surfaces/AccordionLegacy/Accordion.js";
|
|
67
|
+
import { default as Bo } from "./components/surfaces/Card/Card.js";
|
|
68
|
+
import { default as Io } from "./components/surfaces/Sheet/Sheet.js";
|
|
69
|
+
import { NavigationProgressProvider as ho, useNavigationProgress as yo } from "./contexts/NavigationProgressContext.js";
|
|
70
|
+
import { useFetch as ko } from "./hooks/useFetch.js";
|
|
71
|
+
import { useLocalStorage as Go } from "./hooks/useLocalStorage.js";
|
|
72
|
+
import { useSentryFeedbackOpen as Ro } from "./hooks/useSentryFeedbackOpen.js";
|
|
73
|
+
import { default as Ho } from "./hooks/useServerSideTableState.js";
|
|
74
|
+
import { useToggle as jo } from "./hooks/useToggle.js";
|
|
75
|
+
import { formatCurrency as zo, formatDate as Jo, formatNumber as Ko, formatText as Qo } from "./utils/utils.js";
|
|
76
|
+
import { default as Vo } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Box/Box.js";
|
|
77
|
+
import { default as Xo } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/CardActions/CardActions.js";
|
|
78
|
+
import { default as Zo } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/CardContent/CardContent.js";
|
|
79
|
+
import { default as $o } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/CardCover/CardCover.js";
|
|
80
|
+
import { default as ot } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/CardOverflow/CardOverflow.js";
|
|
81
|
+
import { default as rt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/DialogActions/DialogActions.js";
|
|
82
|
+
import { default as ft } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/DialogContent/DialogContent.js";
|
|
83
|
+
import { default as lt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/DialogTitle/DialogTitle.js";
|
|
84
|
+
import { default as ut } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/IconButton/IconButton.js";
|
|
85
|
+
import { default as mt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListDivider/ListDivider.js";
|
|
86
|
+
import { default as it } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListItem/ListItem.js";
|
|
87
|
+
import { default as ct } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListItemButton/ListItemButton.js";
|
|
88
|
+
import { default as Ct } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListItemContent/ListItemContent.js";
|
|
89
|
+
import { default as St } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListItemDecorator/ListItemDecorator.js";
|
|
90
|
+
import { default as bt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListSubheader/ListSubheader.js";
|
|
91
|
+
import { default as Dt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/MenuButton/MenuButton.js";
|
|
92
|
+
import { default as Bt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ModalClose/ModalClose.js";
|
|
93
|
+
import { default as It } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ModalDialog/ModalDialog.js";
|
|
94
|
+
import { default as ht } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ModalOverflow/ModalOverflow.js";
|
|
95
|
+
import { default as Ft } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Option/Option.js";
|
|
96
|
+
import { default as wt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/RadioGroup/RadioGroup.js";
|
|
97
|
+
import { default as Ot } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Step/Step.js";
|
|
98
|
+
import { default as Nt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/StepButton/StepButton.js";
|
|
99
|
+
import { default as Et } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/StepIndicator/StepIndicator.js";
|
|
100
|
+
import { default as qt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Tab/Tab.js";
|
|
101
|
+
import { default as Jt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/TabList/TabList.js";
|
|
102
|
+
import { default as Qt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/TabPanel/TabPanel.js";
|
|
103
|
+
import { default as Vt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/TextField/TextField.js";
|
|
104
|
+
import { default as Xt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Tab/tabClasses.js";
|
|
105
|
+
import { default as Zt } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/TabList/tabListClasses.js";
|
|
106
|
+
import { default as $t } from "./node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/TabPanel/tabPanelClasses.js";
|
|
107
|
+
import { extractColumnFilterTypes as or } from "./components/data-display/DataGrid/tableUrlUtils.js";
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
109
|
+
co as Accordion,
|
|
110
|
+
Co as AccordionDetails,
|
|
111
|
+
So as AccordionGroup,
|
|
112
|
+
Do as AccordionLegacy,
|
|
113
|
+
bo as AccordionSummary,
|
|
114
|
+
j as Alert,
|
|
115
|
+
te as AppBar,
|
|
115
116
|
t as AspectRatio,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
ne as Autocomplete,
|
|
118
|
+
ge as AutocompleteOption,
|
|
119
|
+
Te as AutocompleteSelectMultiple,
|
|
119
120
|
a as Avatar,
|
|
120
121
|
s as Badge,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
122
|
+
Vo as Box,
|
|
123
|
+
_e as Breadcrumb,
|
|
124
|
+
Le as Button,
|
|
125
|
+
Ae as ButtonGroup,
|
|
126
|
+
Bo as Card,
|
|
127
|
+
Xo as CardActions,
|
|
128
|
+
Zo as CardContent,
|
|
129
|
+
$o as CardCover,
|
|
130
|
+
ot as CardOverflow,
|
|
131
|
+
ve as Checkbox,
|
|
131
132
|
p as Chip,
|
|
132
133
|
d as ChipIcon,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
Pe as
|
|
137
|
-
|
|
138
|
-
rt as
|
|
139
|
-
ft as
|
|
134
|
+
z as CircularProgress,
|
|
135
|
+
We as Container,
|
|
136
|
+
M as DataGrid,
|
|
137
|
+
Pe as DatePicker,
|
|
138
|
+
Me as DateTimeInput,
|
|
139
|
+
rt as DialogActions,
|
|
140
|
+
ft as DialogContent,
|
|
141
|
+
lt as DialogTitle,
|
|
140
142
|
x as Divider,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
eo as Drawer,
|
|
144
|
+
to as Dropdown,
|
|
145
|
+
ke as FormControl,
|
|
146
|
+
Ge as FormHelperText,
|
|
147
|
+
Re as FormLabel,
|
|
148
|
+
ae as FullPageErrorFallback,
|
|
149
|
+
Ye as Grid,
|
|
148
150
|
n as Heading,
|
|
149
151
|
g as Icon,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
ut as IconButton,
|
|
153
|
+
ye as Input,
|
|
154
|
+
se as Layout,
|
|
155
|
+
K as LinearProgress,
|
|
154
156
|
T as List,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
157
|
+
mt as ListDivider,
|
|
158
|
+
it as ListItem,
|
|
159
|
+
ct as ListItemButton,
|
|
160
|
+
Ct as ListItemContent,
|
|
161
|
+
St as ListItemDecorator,
|
|
162
|
+
bt as ListSubheader,
|
|
163
|
+
U as LoadingSpinner,
|
|
164
|
+
pe as Logo,
|
|
165
|
+
de as LogoMini,
|
|
166
|
+
ao as Menu,
|
|
167
|
+
Dt as MenuButton,
|
|
168
|
+
so as MenuHeading,
|
|
169
|
+
po as MenuItem,
|
|
170
|
+
W as Modal,
|
|
171
|
+
Bt as ModalClose,
|
|
172
|
+
It as ModalDialog,
|
|
173
|
+
ht as ModalOverflow,
|
|
174
|
+
ho as NavigationProgressProvider,
|
|
175
|
+
Ft as Option,
|
|
176
|
+
mo as PrimaryNavigation,
|
|
177
|
+
Y as ProgressBar,
|
|
176
178
|
L as ProgressCircle,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
+
He as RadioButton,
|
|
180
|
+
wt as RadioGroup,
|
|
179
181
|
A as ReadMore,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
v as RelativeTime,
|
|
183
|
+
je as Select,
|
|
184
|
+
Io as Sheet,
|
|
185
|
+
_ as Skeleton,
|
|
186
|
+
ze as Slider,
|
|
185
187
|
P as StatusIcon,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
188
|
+
Ot as Step,
|
|
189
|
+
Nt as StepButton,
|
|
190
|
+
Et as StepIndicator,
|
|
191
|
+
io as Stepper,
|
|
192
|
+
Ke as Switch,
|
|
193
|
+
qt as Tab,
|
|
194
|
+
Jt as TabList,
|
|
195
|
+
Qt as TabPanel,
|
|
196
|
+
y as Table,
|
|
197
|
+
k as Tabs,
|
|
198
|
+
G as TextBlock,
|
|
199
|
+
Vt as TextField,
|
|
200
|
+
Ue as Textarea,
|
|
201
|
+
xe as ThemeProvider,
|
|
202
|
+
ee as ToastMessages,
|
|
203
|
+
R as Tooltip,
|
|
204
|
+
H as Typography,
|
|
205
|
+
or as extractColumnFilterTypes,
|
|
206
|
+
zo as formatCurrency,
|
|
207
|
+
Jo as formatDate,
|
|
208
|
+
Ko as formatNumber,
|
|
209
|
+
Qo as formatText,
|
|
210
|
+
Xt as tabClasses,
|
|
211
|
+
Zt as tabListClasses,
|
|
212
|
+
$t as tabPanelClasses,
|
|
213
|
+
ko as useFetch,
|
|
214
|
+
Go as useLocalStorage,
|
|
215
|
+
yo as useNavigationProgress,
|
|
216
|
+
Ro as useSentryFeedbackOpen,
|
|
217
|
+
Ho as useServerSideTableState,
|
|
218
|
+
jo as useToggle
|
|
217
219
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ import { SwitchProps } from '@mui/joy';
|
|
|
89
89
|
import { SyntheticEvent } from 'react';
|
|
90
90
|
import { default as Tab } from '@mui/joy/Tab';
|
|
91
91
|
import { tabClasses } from '@mui/joy/Tab';
|
|
92
|
+
import { Table as Table_2 } from '@tanstack/react-table';
|
|
92
93
|
import { TableOptions } from '@tanstack/react-table';
|
|
93
94
|
import { default as TabList } from '@mui/joy/TabList';
|
|
94
95
|
import { tabListClasses } from '@mui/joy/TabList';
|
|
@@ -99,6 +100,7 @@ import { TextareaProps } from '@mui/joy';
|
|
|
99
100
|
import { TextField } from '@mui/joy';
|
|
100
101
|
import { TooltipProps as TooltipProps_2 } from '@mui/joy';
|
|
101
102
|
import { TypographyProps } from '@mui/joy';
|
|
103
|
+
import { VirtualItem } from '@tanstack/react-virtual';
|
|
102
104
|
|
|
103
105
|
export declare function Accordion(props: AccordionProps): JSX_2.Element;
|
|
104
106
|
|
|
@@ -216,6 +218,66 @@ export declare function CircularProgress(props: CircularProgressProps): JSX_2.El
|
|
|
216
218
|
|
|
217
219
|
export declare function Container(props: ContainerProps): JSX_2.Element;
|
|
218
220
|
|
|
221
|
+
/**
|
|
222
|
+
* Layout-agnostic data grid. Owns all data-management concerns (filtering,
|
|
223
|
+
* sorting, selection, infinite scroll, URL sync) and renders the toolbar,
|
|
224
|
+
* error state, and loading overlay. The actual data layout is provided via
|
|
225
|
+
* the `renderLayout` render prop so you can swap in a table, image grid, or
|
|
226
|
+
* any other visual representation without duplicating any data logic.
|
|
227
|
+
*
|
|
228
|
+
* For a standard HTML table layout, use the `Table` component, which wraps
|
|
229
|
+
* `DataGrid` with the built-in `TableLayout`.
|
|
230
|
+
*/
|
|
231
|
+
export declare function DataGrid<TData = unknown>({ id, loading, reactTableOptions, gridCheckboxes, allSelected, onSelectionChange, infiniteScroll, syncUrl, urlParamPrefix, renderLayout, toolbar, isError, errorMessage, }: DataGridProps<TData>): JSX_2.Element;
|
|
232
|
+
|
|
233
|
+
/** Core data-management options shared by DataGrid and Table. */
|
|
234
|
+
export declare interface DataGridCoreOptions<TData = unknown> {
|
|
235
|
+
id: string;
|
|
236
|
+
loading?: boolean;
|
|
237
|
+
reactTableOptions: Partial<TableOptions<TData>> & Pick<TableOptions<TData>, "data" | "columns">;
|
|
238
|
+
gridCheckboxes?: boolean;
|
|
239
|
+
allSelected?: boolean;
|
|
240
|
+
onSelectionChange?: (selection: RowSelectionState) => void;
|
|
241
|
+
infiniteScroll?: InfiniteScrollOptions;
|
|
242
|
+
syncUrl?: boolean;
|
|
243
|
+
urlParamPrefix?: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* The context object passed to the `renderLayout` render prop.
|
|
248
|
+
* Contains everything a layout needs to render filtered/sorted data with
|
|
249
|
+
* infinite scroll support.
|
|
250
|
+
*/
|
|
251
|
+
export declare interface DataGridLayoutContext<TData = unknown> {
|
|
252
|
+
id: string;
|
|
253
|
+
table: Table_2<TData>;
|
|
254
|
+
rows: Row<TData>[];
|
|
255
|
+
isVirtual: boolean;
|
|
256
|
+
virtualItems: VirtualItem[];
|
|
257
|
+
paddingTop: number;
|
|
258
|
+
paddingBottom: number;
|
|
259
|
+
measureElement: (node: Element | null) => void;
|
|
260
|
+
/** Attach this ref to the layout's scroll container. */
|
|
261
|
+
wrapperRef: default_2.RefObject<HTMLDivElement>;
|
|
262
|
+
/** Attach this ref to the toolbar element (used for sticky-header calculations). */
|
|
263
|
+
toolbarRef: default_2.RefObject<HTMLDivElement>;
|
|
264
|
+
loading: boolean;
|
|
265
|
+
fetchMoreOnBottomReached: (container: HTMLDivElement | null) => void;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export declare interface DataGridProps<TData = unknown> extends DataGridCoreOptions<TData> {
|
|
269
|
+
/**
|
|
270
|
+
* Render prop that receives the processed data context and returns the
|
|
271
|
+
* layout to display. Use the built-in `TableLayout` for a standard table,
|
|
272
|
+
* or supply your own (e.g. an image grid) to reuse all data-management
|
|
273
|
+
* features with a different visual layout.
|
|
274
|
+
*/
|
|
275
|
+
renderLayout: (ctx: DataGridLayoutContext<TData>) => default_2.ReactNode;
|
|
276
|
+
toolbar?: TableToolbarOptions;
|
|
277
|
+
isError?: boolean;
|
|
278
|
+
errorMessage?: string | JSX.Element;
|
|
279
|
+
}
|
|
280
|
+
|
|
219
281
|
declare type DateInputProps = ReactDatePickerProps;
|
|
220
282
|
|
|
221
283
|
export declare const DatePicker: default_2.ForwardRefExoticComponent<DateInputProps & default_2.RefAttributes<default_3<undefined, undefined>>>;
|
|
@@ -335,13 +397,15 @@ declare interface Image_2 {
|
|
|
335
397
|
status: string;
|
|
336
398
|
}
|
|
337
399
|
|
|
338
|
-
|
|
400
|
+
declare interface InfiniteScrollOptions {
|
|
339
401
|
enabled: boolean;
|
|
340
402
|
hasNextPage?: boolean;
|
|
341
403
|
isFetchingNextPage?: boolean;
|
|
342
404
|
fetchNextPage?: (options?: any) => Promise<unknown> | void;
|
|
343
405
|
loadingText?: string;
|
|
344
406
|
}
|
|
407
|
+
export { InfiniteScrollOptions as DataGridInfiniteScrollOptions }
|
|
408
|
+
export { InfiniteScrollOptions }
|
|
345
409
|
|
|
346
410
|
export declare function Input(props: InputProps): JSX_2.Element;
|
|
347
411
|
|
|
@@ -534,39 +598,16 @@ export { tabClasses }
|
|
|
534
598
|
|
|
535
599
|
export declare function Table<TData = unknown>({ id, loading, maxHeight, wrapText, rowRender, reactTableOptions, gridCheckboxes, allSelected, onSelectionChange, showStickyScrollbar, enableStickyHeader, stickyHeaderOffset, infiniteScroll, toolbar, footer, isError, errorMessage, syncUrl, urlParamPrefix, }: TableProps<TData>): JSX_2.Element;
|
|
536
600
|
|
|
537
|
-
export declare interface TableProps<TData = unknown> {
|
|
538
|
-
id: string;
|
|
539
|
-
loading?: boolean;
|
|
601
|
+
export declare interface TableProps<TData = unknown> extends Omit<DataGridProps<TData>, "renderLayout"> {
|
|
540
602
|
maxHeight?: boolean;
|
|
541
603
|
wrapText?: boolean;
|
|
542
604
|
rowRender?: (row: Row<TData>, props: {
|
|
543
605
|
key: string;
|
|
544
606
|
}) => JSX.Element;
|
|
545
|
-
reactTableOptions: Partial<TableOptions<TData>> & Pick<TableOptions<TData>, "data" | "columns">;
|
|
546
|
-
gridCheckboxes?: boolean;
|
|
547
|
-
allSelected?: boolean;
|
|
548
|
-
onSelectionChange?: (selection: RowSelectionState) => void;
|
|
549
607
|
showStickyScrollbar?: boolean;
|
|
550
608
|
enableStickyHeader?: boolean;
|
|
551
609
|
stickyHeaderOffset?: number;
|
|
552
|
-
infiniteScroll?: InfiniteScrollOptions;
|
|
553
|
-
toolbar?: TableToolbarOptions;
|
|
554
610
|
footer?: boolean;
|
|
555
|
-
isError?: boolean;
|
|
556
|
-
errorMessage?: string | JSX.Element;
|
|
557
|
-
/**
|
|
558
|
-
* When true, the table's sort and filter state is read from and written to
|
|
559
|
-
* the browser's URL query string via `window.history.replaceState`.
|
|
560
|
-
* Intended for client-side tables — for server-side tables use
|
|
561
|
-
* `useServerSideTableState({ syncUrl: true })` instead.
|
|
562
|
-
*/
|
|
563
|
-
syncUrl?: boolean;
|
|
564
|
-
/**
|
|
565
|
-
* Namespace prefix for URL params when `syncUrl` is true. Required when
|
|
566
|
-
* more than one table on the same page needs URL sync to avoid key
|
|
567
|
-
* collisions. e.g. prefix "products" turns "sort_by" → "products_sort_by".
|
|
568
|
-
*/
|
|
569
|
-
urlParamPrefix?: string;
|
|
570
611
|
}
|
|
571
612
|
|
|
572
613
|
export declare interface TableToolbarOptions {
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./Table.cjs");module.exports=e;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|