@ceed/ads 0.0.69 → 0.0.71

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.
@@ -1,6 +1,6 @@
1
1
  import React, { ComponentProps, ReactNode } from "react";
2
2
  import { Table } from "../Table";
3
- type Column<T extends Record<string, V>, V = unknown> = {
3
+ export type ColumnDef<T extends Record<string, V>, V = unknown> = {
4
4
  type?: "number" | "string";
5
5
  field: keyof T;
6
6
  headerName?: string;
@@ -14,10 +14,10 @@ type Column<T extends Record<string, V>, V = unknown> = {
14
14
  id: string;
15
15
  }) => ReactNode;
16
16
  };
17
- type DataTableProps<T extends Record<string, unknown>> = {
17
+ export type DataTableProps<T extends Record<string, unknown>> = {
18
18
  rows: T[];
19
19
  checkboxSelection?: boolean;
20
- columns: Column<T>[];
20
+ columns: ColumnDef<T>[];
21
21
  /**
22
22
  * 체크박스가 있는 경우, 체크박스를 클릭했을 때 선택된 row의 index를 지정한다.
23
23
  */
package/dist/index.js CHANGED
@@ -1044,6 +1044,8 @@ import React12, {
1044
1044
  } from "react";
1045
1045
  import { styled as styled3 } from "@mui/joy/styles";
1046
1046
  import LinearProgress from "@mui/joy/LinearProgress";
1047
+ import PreviousIcon from "@mui/icons-material/esm/ChevronLeft.js";
1048
+ import NextIcon from "@mui/icons-material/esm/ChevronRight.js";
1047
1049
 
1048
1050
  // src/components/Sheet/Sheet.tsx
1049
1051
  import { Sheet as JoySheet } from "@mui/joy";
@@ -1184,7 +1186,7 @@ function TablePagination(props) {
1184
1186
  alignItems: "center"
1185
1187
  },
1186
1188
  /* @__PURE__ */ React12.createElement(Stack_default, { direction: "row", spacing: 0.5, alignItems: "center" }, /* @__PURE__ */ React12.createElement(
1187
- Button_default,
1189
+ IconButton_default,
1188
1190
  {
1189
1191
  size: "sm",
1190
1192
  variant: "plain",
@@ -1193,7 +1195,7 @@ function TablePagination(props) {
1193
1195
  disabled: page === firstPage,
1194
1196
  "aria-label": "Previous page"
1195
1197
  },
1196
- "<"
1198
+ /* @__PURE__ */ React12.createElement(PreviousIcon, null)
1197
1199
  ), page !== firstPage && /* @__PURE__ */ React12.createElement(
1198
1200
  Button_default,
1199
1201
  {
@@ -1251,7 +1253,7 @@ function TablePagination(props) {
1251
1253
  },
1252
1254
  lastPage
1253
1255
  ), /* @__PURE__ */ React12.createElement(
1254
- Button_default,
1256
+ IconButton_default,
1255
1257
  {
1256
1258
  size: "sm",
1257
1259
  variant: "plain",
@@ -1260,7 +1262,7 @@ function TablePagination(props) {
1260
1262
  disabled: page === lastPage,
1261
1263
  "aria-label": "Next page"
1262
1264
  },
1263
- ">"
1265
+ /* @__PURE__ */ React12.createElement(NextIcon, null)
1264
1266
  ))
1265
1267
  );
1266
1268
  }
@@ -2110,7 +2112,7 @@ MenuItem.displayName = "MenuItem";
2110
2112
  // src/components/MonthRangePicker/MonthRangePicker.tsx
2111
2113
  import React21, { forwardRef as forwardRef6, useCallback as useCallback6, useMemo as useMemo5, useState as useState7 } from "react";
2112
2114
  import { IMaskInput as IMaskInput3, IMask as IMask3 } from "react-imask";
2113
- import CalendarTodayIcon3 from "@mui/icons-material/esm/CalendarToday";
2115
+ import CalendarTodayIcon3 from "@mui/icons-material/esm/CalendarToday.js";
2114
2116
  import { styled as styled6 } from "@mui/joy/styles";
2115
2117
  import { FocusTrap as FocusTrap3 } from "@mui/base/FocusTrap";
2116
2118
  import { ClickAwayListener as ClickAwayListener3 } from "@mui/base/ClickAwayListener";
package/framer/index.js CHANGED
@@ -38043,7 +38043,7 @@ function TablePagination(props) {
38043
38043
  alignItems: "center",
38044
38044
  children: /* @__PURE__ */ jsxs2(Stack_default2, { direction: "row", spacing: 0.5, alignItems: "center", children: [
38045
38045
  /* @__PURE__ */ jsx2(
38046
- Button_default2,
38046
+ IconButton_default2,
38047
38047
  {
38048
38048
  size: "sm",
38049
38049
  variant: "plain",
@@ -38051,7 +38051,7 @@ function TablePagination(props) {
38051
38051
  onClick: () => onPageChange(page - 1),
38052
38052
  disabled: page === firstPage,
38053
38053
  "aria-label": "Previous page",
38054
- children: "<"
38054
+ children: /* @__PURE__ */ jsx2(ChevronLeft_default, {})
38055
38055
  }
38056
38056
  ),
38057
38057
  page !== firstPage && /* @__PURE__ */ jsx2(
@@ -38118,7 +38118,7 @@ function TablePagination(props) {
38118
38118
  }
38119
38119
  ),
38120
38120
  /* @__PURE__ */ jsx2(
38121
- Button_default2,
38121
+ IconButton_default2,
38122
38122
  {
38123
38123
  size: "sm",
38124
38124
  variant: "plain",
@@ -38126,7 +38126,7 @@ function TablePagination(props) {
38126
38126
  onClick: () => onPageChange(page + 1),
38127
38127
  disabled: page === lastPage,
38128
38128
  "aria-label": "Next page",
38129
- children: ">"
38129
+ children: /* @__PURE__ */ jsx2(ChevronRight_default, {})
38130
38130
  }
38131
38131
  )
38132
38132
  ] })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ceed/ads",
3
- "version": "0.0.69",
3
+ "version": "0.0.71",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",