@ceed/ads 0.0.61 → 0.0.62
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/DataTable/DataTable.d.ts +2 -0
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/index.js +47 -15
- package/framer/index.js +8939 -7496
- package/package.json +1 -1
|
@@ -42,10 +42,12 @@ type DataTableProps<T extends Record<string, unknown>> = {
|
|
|
42
42
|
* server mode를 사용할 때 유용하다.
|
|
43
43
|
*/
|
|
44
44
|
rowCount?: number;
|
|
45
|
+
loading?: boolean;
|
|
45
46
|
slots?: {
|
|
46
47
|
checkbox?: React.ElementType;
|
|
47
48
|
toolbar?: React.ElementType;
|
|
48
49
|
footer?: React.ElementType;
|
|
50
|
+
loadingOverlay?: React.ElementType;
|
|
49
51
|
};
|
|
50
52
|
slotProps?: {
|
|
51
53
|
checkbox?: Partial<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const Modal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop"> & {
|
|
3
|
-
onClose?: ((event: {}, reason: "
|
|
3
|
+
onClose?: ((event: {}, reason: "escapeKeyDown" | "backdropClick" | "closeClick") => void) | undefined;
|
|
4
4
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
5
5
|
} & import("@mui/joy").ModalSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
6
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
circularProgressClasses,
|
|
70
70
|
Drawer,
|
|
71
71
|
drawerClasses,
|
|
72
|
-
LinearProgress,
|
|
72
|
+
LinearProgress as LinearProgress2,
|
|
73
73
|
linearProgressClasses,
|
|
74
74
|
List,
|
|
75
75
|
listClasses,
|
|
@@ -1026,6 +1026,8 @@ import React11, {
|
|
|
1026
1026
|
useRef,
|
|
1027
1027
|
useState as useState3
|
|
1028
1028
|
} from "react";
|
|
1029
|
+
import { styled as styled3 } from "@mui/joy/styles";
|
|
1030
|
+
import LinearProgress from "@mui/joy/LinearProgress";
|
|
1029
1031
|
|
|
1030
1032
|
// src/components/Sheet/Sheet.tsx
|
|
1031
1033
|
import { Sheet as JoySheet } from "@mui/joy";
|
|
@@ -1125,6 +1127,21 @@ Stack.displayName = "Stack";
|
|
|
1125
1127
|
var Stack_default = Stack;
|
|
1126
1128
|
|
|
1127
1129
|
// src/components/DataTable/DataTable.tsx
|
|
1130
|
+
var OverlayWrapper = styled3("tr", {
|
|
1131
|
+
name: "DataTable",
|
|
1132
|
+
slot: "overlayWrapper"
|
|
1133
|
+
})({
|
|
1134
|
+
position: "sticky",
|
|
1135
|
+
top: `calc(var(--unstable_TableCell-height, 32px))`,
|
|
1136
|
+
left: 0,
|
|
1137
|
+
right: 0,
|
|
1138
|
+
zIndex: 1,
|
|
1139
|
+
"& > td": {
|
|
1140
|
+
height: 0,
|
|
1141
|
+
padding: 0,
|
|
1142
|
+
border: "none !important"
|
|
1143
|
+
}
|
|
1144
|
+
});
|
|
1128
1145
|
var numberFormatter = (value) => "Intl" in window ? new Intl.NumberFormat().format(value) : value;
|
|
1129
1146
|
function TablePagination(props) {
|
|
1130
1147
|
const {
|
|
@@ -1380,11 +1397,15 @@ function DataTable(props) {
|
|
|
1380
1397
|
// columns is used in useDataTableRenderer
|
|
1381
1398
|
onPaginationModelChange: ___,
|
|
1382
1399
|
// onPaginationModelChange is used in useDataTableRenderer
|
|
1400
|
+
paginationMode: ____,
|
|
1401
|
+
// paginationMode is used in useDataTableRenderer
|
|
1383
1402
|
paginationModel,
|
|
1403
|
+
loading,
|
|
1384
1404
|
slots: {
|
|
1385
1405
|
checkbox: RenderCheckbox = Checkbox_default,
|
|
1386
1406
|
toolbar: Toolbar,
|
|
1387
|
-
footer: Footer
|
|
1407
|
+
footer: Footer,
|
|
1408
|
+
loadingOverlay: LoadingOverlay = () => /* @__PURE__ */ React11.createElement(LinearProgress, null)
|
|
1388
1409
|
} = {},
|
|
1389
1410
|
slotProps: {
|
|
1390
1411
|
checkbox: checkboxProps = {},
|
|
@@ -1466,7 +1487,18 @@ function DataTable(props) {
|
|
|
1466
1487
|
stickyHeader: props.stickyHeader,
|
|
1467
1488
|
...c
|
|
1468
1489
|
}
|
|
1469
|
-
)))), /* @__PURE__ */ React11.createElement("tbody", null,
|
|
1490
|
+
)))), /* @__PURE__ */ React11.createElement("tbody", null, /* @__PURE__ */ React11.createElement(OverlayWrapper, null, !!loading && /* @__PURE__ */ React11.createElement("td", null, /* @__PURE__ */ React11.createElement(
|
|
1491
|
+
Box_default,
|
|
1492
|
+
{
|
|
1493
|
+
sx: {
|
|
1494
|
+
position: "absolute",
|
|
1495
|
+
top: 0,
|
|
1496
|
+
left: 0,
|
|
1497
|
+
right: 0
|
|
1498
|
+
}
|
|
1499
|
+
},
|
|
1500
|
+
/* @__PURE__ */ React11.createElement(LoadingOverlay, null)
|
|
1501
|
+
))), /* @__PURE__ */ React11.createElement(OverlayWrapper, null), dataInPage.map((row, rowIndex) => {
|
|
1470
1502
|
const rowId = `${rowIndex + (page - 1) * pageSize}`;
|
|
1471
1503
|
return /* @__PURE__ */ React11.createElement(
|
|
1472
1504
|
"tr",
|
|
@@ -1521,7 +1553,7 @@ DataTable.displayName = "DataTable";
|
|
|
1521
1553
|
import React13, { forwardRef as forwardRef4, useCallback as useCallback4, useState as useState4 } from "react";
|
|
1522
1554
|
import { IMaskInput, IMask } from "react-imask";
|
|
1523
1555
|
import CalendarTodayIcon from "@mui/icons-material/esm/CalendarToday.js";
|
|
1524
|
-
import { styled as
|
|
1556
|
+
import { styled as styled4 } from "@mui/joy/styles";
|
|
1525
1557
|
import { FocusTrap } from "@mui/base/FocusTrap";
|
|
1526
1558
|
import { ClickAwayListener } from "@mui/base/ClickAwayListener";
|
|
1527
1559
|
import { Popper } from "@mui/base/Popper";
|
|
@@ -1554,13 +1586,13 @@ DialogActions.displayName = "DialogActions";
|
|
|
1554
1586
|
var DialogActions_default = DialogActions;
|
|
1555
1587
|
|
|
1556
1588
|
// src/components/DatePicker/DatePicker.tsx
|
|
1557
|
-
var StyledPopper =
|
|
1589
|
+
var StyledPopper = styled4(Popper, {
|
|
1558
1590
|
name: "DatePicker",
|
|
1559
1591
|
slot: "popper"
|
|
1560
1592
|
})(({ theme }) => ({
|
|
1561
1593
|
zIndex: theme.zIndex.popup
|
|
1562
1594
|
}));
|
|
1563
|
-
var CalendarSheet =
|
|
1595
|
+
var CalendarSheet = styled4(Sheet_default, {
|
|
1564
1596
|
name: "DatePicker",
|
|
1565
1597
|
slot: "sheet",
|
|
1566
1598
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -1723,17 +1755,17 @@ DatePicker.displayName = "DatePicker";
|
|
|
1723
1755
|
import React14, { forwardRef as forwardRef5, useCallback as useCallback5, useMemo as useMemo4, useState as useState5 } from "react";
|
|
1724
1756
|
import { IMaskInput as IMaskInput2, IMask as IMask2 } from "react-imask";
|
|
1725
1757
|
import CalendarTodayIcon2 from "@mui/icons-material/esm/CalendarToday.js";
|
|
1726
|
-
import { styled as
|
|
1758
|
+
import { styled as styled5 } from "@mui/joy/styles";
|
|
1727
1759
|
import { FocusTrap as FocusTrap2 } from "@mui/base/FocusTrap";
|
|
1728
1760
|
import { ClickAwayListener as ClickAwayListener2 } from "@mui/base/ClickAwayListener";
|
|
1729
1761
|
import { Popper as Popper2 } from "@mui/base/Popper";
|
|
1730
|
-
var StyledPopper2 =
|
|
1762
|
+
var StyledPopper2 = styled5(Popper2, {
|
|
1731
1763
|
name: "DateRangePicker",
|
|
1732
1764
|
slot: "popper"
|
|
1733
1765
|
})(({ theme }) => ({
|
|
1734
1766
|
zIndex: theme.zIndex.popup
|
|
1735
1767
|
}));
|
|
1736
|
-
var CalendarSheet2 =
|
|
1768
|
+
var CalendarSheet2 = styled5(Sheet_default, {
|
|
1737
1769
|
name: "DateRangePicker",
|
|
1738
1770
|
slot: "sheet",
|
|
1739
1771
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -2055,17 +2087,17 @@ MenuItem.displayName = "MenuItem";
|
|
|
2055
2087
|
import React20, { forwardRef as forwardRef6, useCallback as useCallback6, useMemo as useMemo5, useState as useState6 } from "react";
|
|
2056
2088
|
import { IMaskInput as IMaskInput3, IMask as IMask3 } from "react-imask";
|
|
2057
2089
|
import CalendarTodayIcon3 from "@mui/icons-material/esm/CalendarToday";
|
|
2058
|
-
import { styled as
|
|
2090
|
+
import { styled as styled6 } from "@mui/joy/styles";
|
|
2059
2091
|
import { FocusTrap as FocusTrap3 } from "@mui/base/FocusTrap";
|
|
2060
2092
|
import { ClickAwayListener as ClickAwayListener3 } from "@mui/base/ClickAwayListener";
|
|
2061
2093
|
import { Popper as Popper3 } from "@mui/base/Popper";
|
|
2062
|
-
var StyledPopper3 =
|
|
2094
|
+
var StyledPopper3 = styled6(Popper3, {
|
|
2063
2095
|
name: "MonthRangePicker",
|
|
2064
2096
|
slot: "popper"
|
|
2065
2097
|
})(({ theme }) => ({
|
|
2066
2098
|
zIndex: theme.zIndex.popup
|
|
2067
2099
|
}));
|
|
2068
|
-
var CalendarSheet3 =
|
|
2100
|
+
var CalendarSheet3 = styled6(Sheet_default, {
|
|
2069
2101
|
name: "MonthRangePicker",
|
|
2070
2102
|
slot: "sheet",
|
|
2071
2103
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -2287,12 +2319,12 @@ Select.displayName = "Select";
|
|
|
2287
2319
|
import React23 from "react";
|
|
2288
2320
|
import {
|
|
2289
2321
|
Switch as JoySwitch,
|
|
2290
|
-
styled as
|
|
2322
|
+
styled as styled7,
|
|
2291
2323
|
switchClasses
|
|
2292
2324
|
} from "@mui/joy";
|
|
2293
2325
|
import { motion as motion25 } from "framer-motion";
|
|
2294
2326
|
var MotionSwitch = motion25(JoySwitch);
|
|
2295
|
-
var StyledThumb =
|
|
2327
|
+
var StyledThumb = styled7(motion25.div)({
|
|
2296
2328
|
"--Icon-fontSize": "calc(var(--Switch-thumbSize) * 0.75)",
|
|
2297
2329
|
display: "inline-flex",
|
|
2298
2330
|
justifyContent: "center",
|
|
@@ -2459,7 +2491,7 @@ export {
|
|
|
2459
2491
|
IconButton,
|
|
2460
2492
|
Input,
|
|
2461
2493
|
InsetDrawer,
|
|
2462
|
-
LinearProgress,
|
|
2494
|
+
LinearProgress2 as LinearProgress,
|
|
2463
2495
|
Link,
|
|
2464
2496
|
List,
|
|
2465
2497
|
ListDivider,
|