@ceed/ads 1.41.3-next.5 → 1.41.3-next.6
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/components.d.ts +4 -4
- package/dist/components/DataTable/hooks.d.ts +4 -4
- package/dist/components/DataTable/types.d.ts +9 -7
- package/dist/components/IconMenuButton/IconMenuButton.type-test.d.ts +5 -0
- package/dist/components/Select/Select.d.ts +4 -0
- package/dist/components/Select/index.d.ts +2 -1
- package/dist/components/data-display/DataTable.md +1 -1
- package/dist/components/inputs/Calendar.md +17 -17
- package/dist/components/navigation/IconMenuButton.md +5 -0
- package/dist/index.browser.js +3 -3
- package/dist/index.browser.js.map +2 -2
- package/dist/index.cjs +9 -8
- package/dist/index.js +9 -8
- package/framer/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2610,7 +2610,7 @@ function computeAutoFitWidth(params) {
|
|
|
2610
2610
|
return finalWidth;
|
|
2611
2611
|
}
|
|
2612
2612
|
function getHeaderCellId(tableId, columnId) {
|
|
2613
|
-
return `${tableId}_header_${columnId}`.trim();
|
|
2613
|
+
return `${tableId}_header_${columnId}`.trim().replace(/\s+/g, "_");
|
|
2614
2614
|
}
|
|
2615
2615
|
|
|
2616
2616
|
// src/components/DataTable/styled.tsx
|
|
@@ -3567,7 +3567,7 @@ var HeadCell = (props) => {
|
|
|
3567
3567
|
}, [ref]);
|
|
3568
3568
|
const [isHovered, setIsHovered] = (0, import_react26.useState)(false);
|
|
3569
3569
|
const sortable = type === "actions" ? false : _sortable;
|
|
3570
|
-
const headId = (0, import_react26.useMemo)(() => getHeaderCellId(tableId, columnId
|
|
3570
|
+
const headId = (0, import_react26.useMemo)(() => getHeaderCellId(tableId, columnId), [tableId, columnId]);
|
|
3571
3571
|
const isResizingRef = (0, import_react26.useRef)(false);
|
|
3572
3572
|
const resizer = (0, import_react26.useMemo)(
|
|
3573
3573
|
() => resizable ?? true ? Resizer(
|
|
@@ -3576,9 +3576,9 @@ var HeadCell = (props) => {
|
|
|
3576
3576
|
(isResizing) => {
|
|
3577
3577
|
isResizingRef.current = isResizing;
|
|
3578
3578
|
},
|
|
3579
|
-
onAutoFit ? () => onAutoFit(columnId
|
|
3579
|
+
onAutoFit ? () => onAutoFit(columnId) : void 0
|
|
3580
3580
|
) : null,
|
|
3581
|
-
[resizable, ref, colRef, onAutoFit, columnId
|
|
3581
|
+
[resizable, ref, colRef, onAutoFit, columnId]
|
|
3582
3582
|
);
|
|
3583
3583
|
const style = (0, import_react26.useMemo)(
|
|
3584
3584
|
() => ({
|
|
@@ -3848,7 +3848,7 @@ var BodyCell = (props) => {
|
|
|
3848
3848
|
{
|
|
3849
3849
|
ref: cellRef,
|
|
3850
3850
|
key: field,
|
|
3851
|
-
headers: getHeaderCellId(tableId, props.columnId
|
|
3851
|
+
headers: getHeaderCellId(tableId, props.columnId),
|
|
3852
3852
|
sx: {
|
|
3853
3853
|
textAlign: getTextAlign({ type }),
|
|
3854
3854
|
verticalAlign: editMode ? "top" : "middle",
|
|
@@ -5676,7 +5676,7 @@ var ModalOverflow = MotionModalOverflow;
|
|
|
5676
5676
|
ModalOverflow.displayName = "ModalOverflow";
|
|
5677
5677
|
var ModalFrame = import_react32.default.forwardRef((props, ref) => {
|
|
5678
5678
|
const { title, children, titleStartDecorator, onClose, ...innerProps } = props;
|
|
5679
|
-
return /* @__PURE__ */ import_react32.default.createElement(StyledModalDialog, {
|
|
5679
|
+
return /* @__PURE__ */ import_react32.default.createElement(StyledModalDialog, { ...innerProps, ref }, /* @__PURE__ */ import_react32.default.createElement(ModalClose, { onClick: onClose }), /* @__PURE__ */ import_react32.default.createElement(DialogTitle_default, null, titleStartDecorator, title), /* @__PURE__ */ import_react32.default.createElement(DialogContent_default, null, children));
|
|
5680
5680
|
});
|
|
5681
5681
|
ModalFrame.displayName = "ModalFrame";
|
|
5682
5682
|
|
|
@@ -7311,7 +7311,7 @@ var import_joy60 = require("@mui/joy");
|
|
|
7311
7311
|
// src/components/IconMenuButton/IconMenuButton.tsx
|
|
7312
7312
|
var import_react50 = __toESM(require("react"));
|
|
7313
7313
|
var import_joy61 = require("@mui/joy");
|
|
7314
|
-
var MenuButtonRootSlot = import_react50.default.forwardRef(function MenuButtonRootSlot2({ as, ...rest }, ref) {
|
|
7314
|
+
var MenuButtonRootSlot = import_react50.default.forwardRef(function MenuButtonRootSlot2({ as, ownerState: _ownerState, ...rest }, ref) {
|
|
7315
7315
|
return /* @__PURE__ */ import_react50.default.createElement(import_joy61.IconButton, { ...rest, component: as ?? "button", ref });
|
|
7316
7316
|
});
|
|
7317
7317
|
function IconMenuButtonInner(props, ref) {
|
|
@@ -7349,7 +7349,8 @@ function IconMenuButtonInner(props, ref) {
|
|
|
7349
7349
|
slots: { root: MenuButtonRootSlot },
|
|
7350
7350
|
slotProps: {
|
|
7351
7351
|
root: {
|
|
7352
|
-
|
|
7352
|
+
// 기본값 'button'은 MenuButtonRootSlot 한 곳에만 둔다.
|
|
7353
|
+
component: props.buttonComponent,
|
|
7353
7354
|
size,
|
|
7354
7355
|
variant,
|
|
7355
7356
|
color,
|
package/dist/index.js
CHANGED
|
@@ -2473,7 +2473,7 @@ function computeAutoFitWidth(params) {
|
|
|
2473
2473
|
return finalWidth;
|
|
2474
2474
|
}
|
|
2475
2475
|
function getHeaderCellId(tableId, columnId) {
|
|
2476
|
-
return `${tableId}_header_${columnId}`.trim();
|
|
2476
|
+
return `${tableId}_header_${columnId}`.trim().replace(/\s+/g, "_");
|
|
2477
2477
|
}
|
|
2478
2478
|
|
|
2479
2479
|
// src/components/DataTable/styled.tsx
|
|
@@ -3444,7 +3444,7 @@ var HeadCell = (props) => {
|
|
|
3444
3444
|
}, [ref]);
|
|
3445
3445
|
const [isHovered, setIsHovered] = useState8(false);
|
|
3446
3446
|
const sortable = type === "actions" ? false : _sortable;
|
|
3447
|
-
const headId = useMemo10(() => getHeaderCellId(tableId, columnId
|
|
3447
|
+
const headId = useMemo10(() => getHeaderCellId(tableId, columnId), [tableId, columnId]);
|
|
3448
3448
|
const isResizingRef = useRef5(false);
|
|
3449
3449
|
const resizer = useMemo10(
|
|
3450
3450
|
() => resizable ?? true ? Resizer(
|
|
@@ -3453,9 +3453,9 @@ var HeadCell = (props) => {
|
|
|
3453
3453
|
(isResizing) => {
|
|
3454
3454
|
isResizingRef.current = isResizing;
|
|
3455
3455
|
},
|
|
3456
|
-
onAutoFit ? () => onAutoFit(columnId
|
|
3456
|
+
onAutoFit ? () => onAutoFit(columnId) : void 0
|
|
3457
3457
|
) : null,
|
|
3458
|
-
[resizable, ref, colRef, onAutoFit, columnId
|
|
3458
|
+
[resizable, ref, colRef, onAutoFit, columnId]
|
|
3459
3459
|
);
|
|
3460
3460
|
const style = useMemo10(
|
|
3461
3461
|
() => ({
|
|
@@ -3725,7 +3725,7 @@ var BodyCell = (props) => {
|
|
|
3725
3725
|
{
|
|
3726
3726
|
ref: cellRef,
|
|
3727
3727
|
key: field,
|
|
3728
|
-
headers: getHeaderCellId(tableId, props.columnId
|
|
3728
|
+
headers: getHeaderCellId(tableId, props.columnId),
|
|
3729
3729
|
sx: {
|
|
3730
3730
|
textAlign: getTextAlign({ type }),
|
|
3731
3731
|
verticalAlign: editMode ? "top" : "middle",
|
|
@@ -5559,7 +5559,7 @@ var ModalOverflow = MotionModalOverflow;
|
|
|
5559
5559
|
ModalOverflow.displayName = "ModalOverflow";
|
|
5560
5560
|
var ModalFrame = React28.forwardRef((props, ref) => {
|
|
5561
5561
|
const { title, children, titleStartDecorator, onClose, ...innerProps } = props;
|
|
5562
|
-
return /* @__PURE__ */ React28.createElement(StyledModalDialog, {
|
|
5562
|
+
return /* @__PURE__ */ React28.createElement(StyledModalDialog, { ...innerProps, ref }, /* @__PURE__ */ React28.createElement(ModalClose, { onClick: onClose }), /* @__PURE__ */ React28.createElement(DialogTitle_default, null, titleStartDecorator, title), /* @__PURE__ */ React28.createElement(DialogContent_default, null, children));
|
|
5563
5563
|
});
|
|
5564
5564
|
ModalFrame.displayName = "ModalFrame";
|
|
5565
5565
|
|
|
@@ -7197,7 +7197,7 @@ import {
|
|
|
7197
7197
|
MenuButton as JoyMenuButton2,
|
|
7198
7198
|
IconButton as JoyIconButton2
|
|
7199
7199
|
} from "@mui/joy";
|
|
7200
|
-
var MenuButtonRootSlot = React46.forwardRef(function MenuButtonRootSlot2({ as, ...rest }, ref) {
|
|
7200
|
+
var MenuButtonRootSlot = React46.forwardRef(function MenuButtonRootSlot2({ as, ownerState: _ownerState, ...rest }, ref) {
|
|
7201
7201
|
return /* @__PURE__ */ React46.createElement(JoyIconButton2, { ...rest, component: as ?? "button", ref });
|
|
7202
7202
|
});
|
|
7203
7203
|
function IconMenuButtonInner(props, ref) {
|
|
@@ -7235,7 +7235,8 @@ function IconMenuButtonInner(props, ref) {
|
|
|
7235
7235
|
slots: { root: MenuButtonRootSlot },
|
|
7236
7236
|
slotProps: {
|
|
7237
7237
|
root: {
|
|
7238
|
-
|
|
7238
|
+
// 기본값 'button'은 MenuButtonRootSlot 한 곳에만 둔다.
|
|
7239
|
+
component: props.buttonComponent,
|
|
7239
7240
|
size,
|
|
7240
7241
|
variant,
|
|
7241
7242
|
color,
|