@deepnoid/ui 0.1.138 → 0.1.140

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.
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getCellStyle,
4
4
  table_default
5
- } from "../../chunk-VRSRT4DM.mjs";
5
+ } from "../../chunk-QMQL3Z6Z.mjs";
6
6
  import "../../chunk-7B7LRG5J.mjs";
7
7
  import "../../chunk-4JOD47VZ.mjs";
8
8
  import "../../chunk-F3HENRVM.mjs";
package/dist/index.js CHANGED
@@ -8594,7 +8594,10 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
8594
8594
  size,
8595
8595
  checkedRows,
8596
8596
  onCheckedRowsChange,
8597
- onRowClick
8597
+ onRowClick,
8598
+ showFirstLastButtons,
8599
+ showPageNumber,
8600
+ showPageLabel
8598
8601
  } = { ...props, ...variantProps };
8599
8602
  const { page = 1, perPage = 15 } = pagination || {};
8600
8603
  const showPagination = pagination && totalData > 0;
@@ -8651,50 +8654,52 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
8651
8654
  [variantProps, onRowClick]
8652
8655
  );
8653
8656
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
8654
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(scrollArea_default, { direction: "x", size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
8655
- "table",
8656
- {
8657
- className: slots.table({ class: classNames == null ? void 0 : classNames.table }),
8658
- style: {
8659
- tableLayout: "fixed",
8660
- width: "100%",
8661
- minWidth: `${tableMinWidth}px`
8662
- },
8663
- children: [
8664
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
8665
- table_head_default,
8666
- {
8667
- columns,
8668
- size,
8669
- color,
8670
- rowCheckbox,
8671
- hasCheckedRows: rows.length > 0 && rows.every((row) => checkedRowIds.has(row.id)),
8672
- onCheckAll: handleAllRowCheck,
8673
- classNames,
8674
- slots
8675
- }
8676
- ),
8677
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
8678
- table_body_default,
8679
- {
8680
- slots,
8681
- rows,
8682
- columns,
8683
- size,
8684
- color,
8685
- rowCheckbox,
8686
- checkedRows: checkedRowIds,
8687
- onCheckRow: handleRowCheck,
8688
- onRowClick: handleRowClick,
8689
- isLoading,
8690
- emptyContent,
8691
- classNames
8692
- }
8693
- ),
8694
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: slots.overlay({ class: classNames == null ? void 0 : classNames.overlay }) })
8695
- ]
8696
- }
8697
- ) }),
8657
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(scrollArea_default, { direction: "x", size: size === "xl" ? "lg" : size, children: [
8658
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
8659
+ "table",
8660
+ {
8661
+ className: slots.table({ class: classNames == null ? void 0 : classNames.table }),
8662
+ style: {
8663
+ tableLayout: "fixed",
8664
+ width: "100%",
8665
+ minWidth: `${tableMinWidth}px`
8666
+ },
8667
+ children: [
8668
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
8669
+ table_head_default,
8670
+ {
8671
+ columns,
8672
+ size,
8673
+ color,
8674
+ rowCheckbox,
8675
+ hasCheckedRows: rows.length > 0 && rows.every((row) => checkedRowIds.has(row.id)),
8676
+ onCheckAll: handleAllRowCheck,
8677
+ classNames,
8678
+ slots
8679
+ }
8680
+ ),
8681
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
8682
+ table_body_default,
8683
+ {
8684
+ slots,
8685
+ rows,
8686
+ columns,
8687
+ size,
8688
+ color,
8689
+ rowCheckbox,
8690
+ checkedRows: checkedRowIds,
8691
+ onCheckRow: handleRowCheck,
8692
+ onRowClick: handleRowClick,
8693
+ isLoading,
8694
+ emptyContent,
8695
+ classNames
8696
+ }
8697
+ )
8698
+ ]
8699
+ }
8700
+ ),
8701
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: slots.overlay({ class: classNames == null ? void 0 : classNames.overlay }) })
8702
+ ] }),
8698
8703
  showPagination && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
8699
8704
  pagination_default,
8700
8705
  {
@@ -8704,6 +8709,9 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
8704
8709
  currentPage: page,
8705
8710
  totalPage: Math.ceil(totalData / perPage),
8706
8711
  groupSize: 10,
8712
+ showFirstLastButtons,
8713
+ showPageLabel,
8714
+ showPageNumber,
8707
8715
  handleChangePage: (newPage) => onPageChange == null ? void 0 : onPageChange({ page: newPage, perPage })
8708
8716
  }
8709
8717
  ) })
package/dist/index.mjs CHANGED
@@ -3,12 +3,6 @@ import "./chunk-MBLZYQCN.mjs";
3
3
  import {
4
4
  tree_default
5
5
  } from "./chunk-A7WUJKQL.mjs";
6
- import "./chunk-HIE2YRGA.mjs";
7
- import {
8
- tooltip_default
9
- } from "./chunk-YGOX6FBU.mjs";
10
- import "./chunk-ZMOAFSYE.mjs";
11
- import "./chunk-WSIADHVC.mjs";
12
6
  import "./chunk-LUWGOKLG.mjs";
13
7
  import {
14
8
  ToastProvider,
@@ -18,18 +12,23 @@ import "./chunk-ZOTHPHXA.mjs";
18
12
  import {
19
13
  toast_default
20
14
  } from "./chunk-IC3QFXSF.mjs";
21
- import "./chunk-DX3KXNP6.mjs";
22
- import {
23
- table_default
24
- } from "./chunk-VRSRT4DM.mjs";
25
- import "./chunk-3MY6LO7N.mjs";
15
+ import "./chunk-HIE2YRGA.mjs";
26
16
  import {
27
- tabs_default
28
- } from "./chunk-BBRPAQON.mjs";
17
+ tooltip_default
18
+ } from "./chunk-YGOX6FBU.mjs";
19
+ import "./chunk-ZMOAFSYE.mjs";
20
+ import "./chunk-WSIADHVC.mjs";
29
21
  import "./chunk-RRAZM5D3.mjs";
30
22
  import {
31
23
  textarea_default
32
24
  } from "./chunk-3CRSSRCH.mjs";
25
+ import "./chunk-DX3KXNP6.mjs";
26
+ import {
27
+ definition_table_default
28
+ } from "./chunk-T3BUL253.mjs";
29
+ import {
30
+ table_default
31
+ } from "./chunk-QMQL3Z6Z.mjs";
33
32
  import "./chunk-MZ76AA76.mjs";
34
33
  import {
35
34
  skeleton_default
@@ -38,17 +37,19 @@ import "./chunk-LVFI2NOH.mjs";
38
37
  import {
39
38
  switch_default
40
39
  } from "./chunk-AGE57VDD.mjs";
40
+ import "./chunk-3MY6LO7N.mjs";
41
41
  import {
42
- definition_table_default
43
- } from "./chunk-T3BUL253.mjs";
42
+ tabs_default
43
+ } from "./chunk-BBRPAQON.mjs";
44
44
  import "./chunk-TPFN22HR.mjs";
45
45
  import {
46
46
  radio_default
47
47
  } from "./chunk-STDK4DIP.mjs";
48
- import "./chunk-DJOG6Z35.mjs";
48
+ import "./chunk-7B7LRG5J.mjs";
49
49
  import {
50
- modal_default
51
- } from "./chunk-XLKNZQ34.mjs";
50
+ pagination_default
51
+ } from "./chunk-4JOD47VZ.mjs";
52
+ import "./chunk-F3HENRVM.mjs";
52
53
  import "./chunk-4VWG4726.mjs";
53
54
  import {
54
55
  datePicker_default
@@ -71,11 +72,10 @@ import {
71
72
  import {
72
73
  listItem_default
73
74
  } from "./chunk-D6ALZBZ7.mjs";
74
- import "./chunk-7B7LRG5J.mjs";
75
+ import "./chunk-DJOG6Z35.mjs";
75
76
  import {
76
- pagination_default
77
- } from "./chunk-4JOD47VZ.mjs";
78
- import "./chunk-F3HENRVM.mjs";
77
+ modal_default
78
+ } from "./chunk-XLKNZQ34.mjs";
79
79
  import "./chunk-MGEWSREV.mjs";
80
80
  import {
81
81
  chip_default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "0.1.138",
3
+ "version": "0.1.140",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {