@deepnoid/ui 0.1.171 → 0.1.173
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/.turbo/turbo-build.log +147 -147
- package/dist/{chunk-C7CV72QF.mjs → chunk-52VX5MC2.mjs} +19 -1
- package/dist/{chunk-WLTBJF4I.mjs → chunk-D4YI5HF2.mjs} +32 -20
- package/dist/{chunk-PX4RCHOE.mjs → chunk-NSADIVGU.mjs} +1 -1
- package/dist/components/pagination/index.js +32 -20
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/pagination/pagination.js +32 -20
- package/dist/components/pagination/pagination.mjs +1 -1
- package/dist/components/picker/datePicker.js +19 -1
- package/dist/components/picker/datePicker.mjs +1 -1
- package/dist/components/picker/index.js +19 -1
- package/dist/components/picker/index.mjs +1 -1
- package/dist/components/table/index.js +32 -20
- package/dist/components/table/index.mjs +3 -3
- package/dist/components/table/table-body.js +32 -20
- package/dist/components/table/table-body.mjs +3 -3
- package/dist/components/table/table-head.js +32 -20
- package/dist/components/table/table-head.mjs +3 -3
- package/dist/components/table/table.js +32 -20
- package/dist/components/table/table.mjs +3 -3
- package/dist/index.js +51 -21
- package/dist/index.mjs +19 -19
- package/package.json +1 -1
|
@@ -5995,6 +5995,10 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
5995
5995
|
size
|
|
5996
5996
|
} = { ...props, ...variantProps };
|
|
5997
5997
|
const [inputPage, setInputPage] = (0, import_react4.useState)(currentPage);
|
|
5998
|
+
const isFirstPageDisabled = currentPage <= 1;
|
|
5999
|
+
const isPrevPageDisabled = currentPage <= 1;
|
|
6000
|
+
const isNextPageDisabled = currentPage >= totalPage;
|
|
6001
|
+
const isLastPageDisabled = currentPage >= totalPage;
|
|
5998
6002
|
const slots = (0, import_react4.useMemo)(() => paginationStyle(variantProps), [variantProps]);
|
|
5999
6003
|
const { pageList, handleClickMovePage } = usePagination_default({
|
|
6000
6004
|
currentPage,
|
|
@@ -6016,9 +6020,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
6016
6020
|
"div",
|
|
6017
6021
|
{
|
|
6018
6022
|
"aria-label": "firstPage",
|
|
6019
|
-
"data-
|
|
6020
|
-
className: slots.icon({
|
|
6021
|
-
|
|
6023
|
+
"data-disabled": isFirstPageDisabled,
|
|
6024
|
+
className: slots.icon({
|
|
6025
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isFirstPageDisabled && "!text-neutral-light !cursor-default")
|
|
6026
|
+
}),
|
|
6027
|
+
onClick: !isFirstPageDisabled ? handleClickMovePage(1) : void 0,
|
|
6022
6028
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon_default, { name: "left-double-chevron", size })
|
|
6023
6029
|
}
|
|
6024
6030
|
),
|
|
@@ -6026,9 +6032,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
6026
6032
|
"div",
|
|
6027
6033
|
{
|
|
6028
6034
|
"aria-label": "prevPage",
|
|
6029
|
-
"data-
|
|
6030
|
-
className: slots.icon({
|
|
6031
|
-
|
|
6035
|
+
"data-disabled": isPrevPageDisabled,
|
|
6036
|
+
className: slots.icon({
|
|
6037
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isPrevPageDisabled && "!text-neutral-light !cursor-default")
|
|
6038
|
+
}),
|
|
6039
|
+
onClick: !isPrevPageDisabled ? handleClickMovePage(currentPage - 1) : void 0,
|
|
6032
6040
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon_default, { name: "left-chevron", size })
|
|
6033
6041
|
}
|
|
6034
6042
|
),
|
|
@@ -6046,9 +6054,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
6046
6054
|
"div",
|
|
6047
6055
|
{
|
|
6048
6056
|
"aria-label": "nextPage",
|
|
6049
|
-
"data-
|
|
6050
|
-
className: slots.icon({
|
|
6051
|
-
|
|
6057
|
+
"data-disabled": isNextPageDisabled,
|
|
6058
|
+
className: slots.icon({
|
|
6059
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isNextPageDisabled && "!text-neutral-light !cursor-default")
|
|
6060
|
+
}),
|
|
6061
|
+
onClick: !isNextPageDisabled ? handleClickMovePage(currentPage + 1) : void 0,
|
|
6052
6062
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon_default, { name: "right-chevron", size })
|
|
6053
6063
|
}
|
|
6054
6064
|
),
|
|
@@ -6056,9 +6066,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
6056
6066
|
"div",
|
|
6057
6067
|
{
|
|
6058
6068
|
"aria-label": "lastPage",
|
|
6059
|
-
"data-
|
|
6060
|
-
className: slots.icon({
|
|
6061
|
-
|
|
6069
|
+
"data-disabled": isLastPageDisabled,
|
|
6070
|
+
className: slots.icon({
|
|
6071
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isLastPageDisabled && "!text-neutral-light !cursor-default")
|
|
6072
|
+
}),
|
|
6073
|
+
onClick: !isLastPageDisabled ? handleClickMovePage(totalPage) : void 0,
|
|
6062
6074
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon_default, { name: "right-double-chevron", size })
|
|
6063
6075
|
}
|
|
6064
6076
|
)
|
|
@@ -6096,8 +6108,8 @@ var paginationStyle = tv(
|
|
|
6096
6108
|
"justify-center",
|
|
6097
6109
|
"cursor-pointer",
|
|
6098
6110
|
"text-neutral-main",
|
|
6099
|
-
"data-[
|
|
6100
|
-
"data-[
|
|
6111
|
+
"data-[disabled=true]:text-neutral-light",
|
|
6112
|
+
"data-[disabled=true]:cursor-default"
|
|
6101
6113
|
],
|
|
6102
6114
|
button: [
|
|
6103
6115
|
"flex",
|
|
@@ -6158,7 +6170,7 @@ var paginationStyle = tv(
|
|
|
6158
6170
|
"data-[selected=true]:text-primary-main",
|
|
6159
6171
|
"data-[selected=true]:bg-primary-soft"
|
|
6160
6172
|
],
|
|
6161
|
-
icon: ["hover:text-primary-main"]
|
|
6173
|
+
icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6162
6174
|
}
|
|
6163
6175
|
},
|
|
6164
6176
|
{
|
|
@@ -6170,7 +6182,7 @@ var paginationStyle = tv(
|
|
|
6170
6182
|
"data-[selected=true]:text-secondary-main",
|
|
6171
6183
|
"data-[selected=true]:bg-secondary-soft"
|
|
6172
6184
|
],
|
|
6173
|
-
icon: ["hover:text-secondary-main"]
|
|
6185
|
+
icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6174
6186
|
}
|
|
6175
6187
|
},
|
|
6176
6188
|
{
|
|
@@ -6182,7 +6194,7 @@ var paginationStyle = tv(
|
|
|
6182
6194
|
"data-[selected=true]:text-neutral-dark",
|
|
6183
6195
|
"data-[selected=true]:bg-neutral-soft"
|
|
6184
6196
|
],
|
|
6185
|
-
icon: ["hover:text-neutral-dark"]
|
|
6197
|
+
icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6186
6198
|
}
|
|
6187
6199
|
},
|
|
6188
6200
|
{
|
|
@@ -6190,7 +6202,7 @@ var paginationStyle = tv(
|
|
|
6190
6202
|
color: "primary",
|
|
6191
6203
|
class: {
|
|
6192
6204
|
button: ["hover:text-primary-main", "data-[selected=true]:text-primary-main"],
|
|
6193
|
-
icon: ["hover:text-primary-main"]
|
|
6205
|
+
icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6194
6206
|
}
|
|
6195
6207
|
},
|
|
6196
6208
|
{
|
|
@@ -6230,7 +6242,7 @@ var paginationStyle = tv(
|
|
|
6230
6242
|
color: "secondary",
|
|
6231
6243
|
class: {
|
|
6232
6244
|
button: ["hover:text-secondary-main", "data-[selected=true]:text-secondary-main"],
|
|
6233
|
-
icon: ["hover:text-secondary-main"]
|
|
6245
|
+
icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6234
6246
|
}
|
|
6235
6247
|
},
|
|
6236
6248
|
{
|
|
@@ -6270,7 +6282,7 @@ var paginationStyle = tv(
|
|
|
6270
6282
|
color: "neutral",
|
|
6271
6283
|
class: {
|
|
6272
6284
|
button: ["hover:text-neutral-dark", "data-[selected=true]:text-neutral-dark"],
|
|
6273
|
-
icon: ["hover:text-neutral-dark"]
|
|
6285
|
+
icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6274
6286
|
}
|
|
6275
6287
|
},
|
|
6276
6288
|
{
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "../../chunk-DS5CGU2X.mjs";
|
|
6
6
|
import {
|
|
7
7
|
table_default
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-NSADIVGU.mjs";
|
|
9
9
|
import "../../chunk-7B7LRG5J.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-D4YI5HF2.mjs";
|
|
11
11
|
import "../../chunk-F3HENRVM.mjs";
|
|
12
|
-
import "../../chunk-QZ3LVYJW.mjs";
|
|
13
12
|
import "../../chunk-2GCSFWHD.mjs";
|
|
14
13
|
import "../../chunk-VNRGOOSY.mjs";
|
|
14
|
+
import "../../chunk-QZ3LVYJW.mjs";
|
|
15
15
|
import "../../chunk-DQRAFUDA.mjs";
|
|
16
16
|
import "../../chunk-EWS3FESG.mjs";
|
|
17
17
|
import "../../chunk-OEIEALIP.mjs";
|
|
@@ -5926,6 +5926,10 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
5926
5926
|
size
|
|
5927
5927
|
} = { ...props, ...variantProps };
|
|
5928
5928
|
const [inputPage, setInputPage] = (0, import_react4.useState)(currentPage);
|
|
5929
|
+
const isFirstPageDisabled = currentPage <= 1;
|
|
5930
|
+
const isPrevPageDisabled = currentPage <= 1;
|
|
5931
|
+
const isNextPageDisabled = currentPage >= totalPage;
|
|
5932
|
+
const isLastPageDisabled = currentPage >= totalPage;
|
|
5929
5933
|
const slots = (0, import_react4.useMemo)(() => paginationStyle(variantProps), [variantProps]);
|
|
5930
5934
|
const { pageList, handleClickMovePage } = usePagination_default({
|
|
5931
5935
|
currentPage,
|
|
@@ -5947,9 +5951,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
5947
5951
|
"div",
|
|
5948
5952
|
{
|
|
5949
5953
|
"aria-label": "firstPage",
|
|
5950
|
-
"data-
|
|
5951
|
-
className: slots.icon({
|
|
5952
|
-
|
|
5954
|
+
"data-disabled": isFirstPageDisabled,
|
|
5955
|
+
className: slots.icon({
|
|
5956
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isFirstPageDisabled && "!text-neutral-light !cursor-default")
|
|
5957
|
+
}),
|
|
5958
|
+
onClick: !isFirstPageDisabled ? handleClickMovePage(1) : void 0,
|
|
5953
5959
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon_default, { name: "left-double-chevron", size })
|
|
5954
5960
|
}
|
|
5955
5961
|
),
|
|
@@ -5957,9 +5963,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
5957
5963
|
"div",
|
|
5958
5964
|
{
|
|
5959
5965
|
"aria-label": "prevPage",
|
|
5960
|
-
"data-
|
|
5961
|
-
className: slots.icon({
|
|
5962
|
-
|
|
5966
|
+
"data-disabled": isPrevPageDisabled,
|
|
5967
|
+
className: slots.icon({
|
|
5968
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isPrevPageDisabled && "!text-neutral-light !cursor-default")
|
|
5969
|
+
}),
|
|
5970
|
+
onClick: !isPrevPageDisabled ? handleClickMovePage(currentPage - 1) : void 0,
|
|
5963
5971
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon_default, { name: "left-chevron", size })
|
|
5964
5972
|
}
|
|
5965
5973
|
),
|
|
@@ -5977,9 +5985,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
5977
5985
|
"div",
|
|
5978
5986
|
{
|
|
5979
5987
|
"aria-label": "nextPage",
|
|
5980
|
-
"data-
|
|
5981
|
-
className: slots.icon({
|
|
5982
|
-
|
|
5988
|
+
"data-disabled": isNextPageDisabled,
|
|
5989
|
+
className: slots.icon({
|
|
5990
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isNextPageDisabled && "!text-neutral-light !cursor-default")
|
|
5991
|
+
}),
|
|
5992
|
+
onClick: !isNextPageDisabled ? handleClickMovePage(currentPage + 1) : void 0,
|
|
5983
5993
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon_default, { name: "right-chevron", size })
|
|
5984
5994
|
}
|
|
5985
5995
|
),
|
|
@@ -5987,9 +5997,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
5987
5997
|
"div",
|
|
5988
5998
|
{
|
|
5989
5999
|
"aria-label": "lastPage",
|
|
5990
|
-
"data-
|
|
5991
|
-
className: slots.icon({
|
|
5992
|
-
|
|
6000
|
+
"data-disabled": isLastPageDisabled,
|
|
6001
|
+
className: slots.icon({
|
|
6002
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isLastPageDisabled && "!text-neutral-light !cursor-default")
|
|
6003
|
+
}),
|
|
6004
|
+
onClick: !isLastPageDisabled ? handleClickMovePage(totalPage) : void 0,
|
|
5993
6005
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon_default, { name: "right-double-chevron", size })
|
|
5994
6006
|
}
|
|
5995
6007
|
)
|
|
@@ -6027,8 +6039,8 @@ var paginationStyle = tv(
|
|
|
6027
6039
|
"justify-center",
|
|
6028
6040
|
"cursor-pointer",
|
|
6029
6041
|
"text-neutral-main",
|
|
6030
|
-
"data-[
|
|
6031
|
-
"data-[
|
|
6042
|
+
"data-[disabled=true]:text-neutral-light",
|
|
6043
|
+
"data-[disabled=true]:cursor-default"
|
|
6032
6044
|
],
|
|
6033
6045
|
button: [
|
|
6034
6046
|
"flex",
|
|
@@ -6089,7 +6101,7 @@ var paginationStyle = tv(
|
|
|
6089
6101
|
"data-[selected=true]:text-primary-main",
|
|
6090
6102
|
"data-[selected=true]:bg-primary-soft"
|
|
6091
6103
|
],
|
|
6092
|
-
icon: ["hover:text-primary-main"]
|
|
6104
|
+
icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6093
6105
|
}
|
|
6094
6106
|
},
|
|
6095
6107
|
{
|
|
@@ -6101,7 +6113,7 @@ var paginationStyle = tv(
|
|
|
6101
6113
|
"data-[selected=true]:text-secondary-main",
|
|
6102
6114
|
"data-[selected=true]:bg-secondary-soft"
|
|
6103
6115
|
],
|
|
6104
|
-
icon: ["hover:text-secondary-main"]
|
|
6116
|
+
icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6105
6117
|
}
|
|
6106
6118
|
},
|
|
6107
6119
|
{
|
|
@@ -6113,7 +6125,7 @@ var paginationStyle = tv(
|
|
|
6113
6125
|
"data-[selected=true]:text-neutral-dark",
|
|
6114
6126
|
"data-[selected=true]:bg-neutral-soft"
|
|
6115
6127
|
],
|
|
6116
|
-
icon: ["hover:text-neutral-dark"]
|
|
6128
|
+
icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6117
6129
|
}
|
|
6118
6130
|
},
|
|
6119
6131
|
{
|
|
@@ -6121,7 +6133,7 @@ var paginationStyle = tv(
|
|
|
6121
6133
|
color: "primary",
|
|
6122
6134
|
class: {
|
|
6123
6135
|
button: ["hover:text-primary-main", "data-[selected=true]:text-primary-main"],
|
|
6124
|
-
icon: ["hover:text-primary-main"]
|
|
6136
|
+
icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6125
6137
|
}
|
|
6126
6138
|
},
|
|
6127
6139
|
{
|
|
@@ -6161,7 +6173,7 @@ var paginationStyle = tv(
|
|
|
6161
6173
|
color: "secondary",
|
|
6162
6174
|
class: {
|
|
6163
6175
|
button: ["hover:text-secondary-main", "data-[selected=true]:text-secondary-main"],
|
|
6164
|
-
icon: ["hover:text-secondary-main"]
|
|
6176
|
+
icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6165
6177
|
}
|
|
6166
6178
|
},
|
|
6167
6179
|
{
|
|
@@ -6201,7 +6213,7 @@ var paginationStyle = tv(
|
|
|
6201
6213
|
color: "neutral",
|
|
6202
6214
|
class: {
|
|
6203
6215
|
button: ["hover:text-neutral-dark", "data-[selected=true]:text-neutral-dark"],
|
|
6204
|
-
icon: ["hover:text-neutral-dark"]
|
|
6216
|
+
icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6205
6217
|
}
|
|
6206
6218
|
},
|
|
6207
6219
|
{
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_body_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-NSADIVGU.mjs";
|
|
5
5
|
import "../../chunk-7B7LRG5J.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-D4YI5HF2.mjs";
|
|
7
7
|
import "../../chunk-F3HENRVM.mjs";
|
|
8
|
-
import "../../chunk-QZ3LVYJW.mjs";
|
|
9
8
|
import "../../chunk-2GCSFWHD.mjs";
|
|
10
9
|
import "../../chunk-VNRGOOSY.mjs";
|
|
10
|
+
import "../../chunk-QZ3LVYJW.mjs";
|
|
11
11
|
import "../../chunk-DQRAFUDA.mjs";
|
|
12
12
|
import "../../chunk-EWS3FESG.mjs";
|
|
13
13
|
import "../../chunk-OEIEALIP.mjs";
|
|
@@ -5947,6 +5947,10 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
5947
5947
|
size
|
|
5948
5948
|
} = { ...props, ...variantProps };
|
|
5949
5949
|
const [inputPage, setInputPage] = (0, import_react4.useState)(currentPage);
|
|
5950
|
+
const isFirstPageDisabled = currentPage <= 1;
|
|
5951
|
+
const isPrevPageDisabled = currentPage <= 1;
|
|
5952
|
+
const isNextPageDisabled = currentPage >= totalPage;
|
|
5953
|
+
const isLastPageDisabled = currentPage >= totalPage;
|
|
5950
5954
|
const slots = (0, import_react4.useMemo)(() => paginationStyle(variantProps), [variantProps]);
|
|
5951
5955
|
const { pageList, handleClickMovePage } = usePagination_default({
|
|
5952
5956
|
currentPage,
|
|
@@ -5968,9 +5972,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
5968
5972
|
"div",
|
|
5969
5973
|
{
|
|
5970
5974
|
"aria-label": "firstPage",
|
|
5971
|
-
"data-
|
|
5972
|
-
className: slots.icon({
|
|
5973
|
-
|
|
5975
|
+
"data-disabled": isFirstPageDisabled,
|
|
5976
|
+
className: slots.icon({
|
|
5977
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isFirstPageDisabled && "!text-neutral-light !cursor-default")
|
|
5978
|
+
}),
|
|
5979
|
+
onClick: !isFirstPageDisabled ? handleClickMovePage(1) : void 0,
|
|
5974
5980
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon_default, { name: "left-double-chevron", size })
|
|
5975
5981
|
}
|
|
5976
5982
|
),
|
|
@@ -5978,9 +5984,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
5978
5984
|
"div",
|
|
5979
5985
|
{
|
|
5980
5986
|
"aria-label": "prevPage",
|
|
5981
|
-
"data-
|
|
5982
|
-
className: slots.icon({
|
|
5983
|
-
|
|
5987
|
+
"data-disabled": isPrevPageDisabled,
|
|
5988
|
+
className: slots.icon({
|
|
5989
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isPrevPageDisabled && "!text-neutral-light !cursor-default")
|
|
5990
|
+
}),
|
|
5991
|
+
onClick: !isPrevPageDisabled ? handleClickMovePage(currentPage - 1) : void 0,
|
|
5984
5992
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon_default, { name: "left-chevron", size })
|
|
5985
5993
|
}
|
|
5986
5994
|
),
|
|
@@ -5998,9 +6006,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
5998
6006
|
"div",
|
|
5999
6007
|
{
|
|
6000
6008
|
"aria-label": "nextPage",
|
|
6001
|
-
"data-
|
|
6002
|
-
className: slots.icon({
|
|
6003
|
-
|
|
6009
|
+
"data-disabled": isNextPageDisabled,
|
|
6010
|
+
className: slots.icon({
|
|
6011
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isNextPageDisabled && "!text-neutral-light !cursor-default")
|
|
6012
|
+
}),
|
|
6013
|
+
onClick: !isNextPageDisabled ? handleClickMovePage(currentPage + 1) : void 0,
|
|
6004
6014
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon_default, { name: "right-chevron", size })
|
|
6005
6015
|
}
|
|
6006
6016
|
),
|
|
@@ -6008,9 +6018,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
6008
6018
|
"div",
|
|
6009
6019
|
{
|
|
6010
6020
|
"aria-label": "lastPage",
|
|
6011
|
-
"data-
|
|
6012
|
-
className: slots.icon({
|
|
6013
|
-
|
|
6021
|
+
"data-disabled": isLastPageDisabled,
|
|
6022
|
+
className: slots.icon({
|
|
6023
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isLastPageDisabled && "!text-neutral-light !cursor-default")
|
|
6024
|
+
}),
|
|
6025
|
+
onClick: !isLastPageDisabled ? handleClickMovePage(totalPage) : void 0,
|
|
6014
6026
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon_default, { name: "right-double-chevron", size })
|
|
6015
6027
|
}
|
|
6016
6028
|
)
|
|
@@ -6048,8 +6060,8 @@ var paginationStyle = tv(
|
|
|
6048
6060
|
"justify-center",
|
|
6049
6061
|
"cursor-pointer",
|
|
6050
6062
|
"text-neutral-main",
|
|
6051
|
-
"data-[
|
|
6052
|
-
"data-[
|
|
6063
|
+
"data-[disabled=true]:text-neutral-light",
|
|
6064
|
+
"data-[disabled=true]:cursor-default"
|
|
6053
6065
|
],
|
|
6054
6066
|
button: [
|
|
6055
6067
|
"flex",
|
|
@@ -6110,7 +6122,7 @@ var paginationStyle = tv(
|
|
|
6110
6122
|
"data-[selected=true]:text-primary-main",
|
|
6111
6123
|
"data-[selected=true]:bg-primary-soft"
|
|
6112
6124
|
],
|
|
6113
|
-
icon: ["hover:text-primary-main"]
|
|
6125
|
+
icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6114
6126
|
}
|
|
6115
6127
|
},
|
|
6116
6128
|
{
|
|
@@ -6122,7 +6134,7 @@ var paginationStyle = tv(
|
|
|
6122
6134
|
"data-[selected=true]:text-secondary-main",
|
|
6123
6135
|
"data-[selected=true]:bg-secondary-soft"
|
|
6124
6136
|
],
|
|
6125
|
-
icon: ["hover:text-secondary-main"]
|
|
6137
|
+
icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6126
6138
|
}
|
|
6127
6139
|
},
|
|
6128
6140
|
{
|
|
@@ -6134,7 +6146,7 @@ var paginationStyle = tv(
|
|
|
6134
6146
|
"data-[selected=true]:text-neutral-dark",
|
|
6135
6147
|
"data-[selected=true]:bg-neutral-soft"
|
|
6136
6148
|
],
|
|
6137
|
-
icon: ["hover:text-neutral-dark"]
|
|
6149
|
+
icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6138
6150
|
}
|
|
6139
6151
|
},
|
|
6140
6152
|
{
|
|
@@ -6142,7 +6154,7 @@ var paginationStyle = tv(
|
|
|
6142
6154
|
color: "primary",
|
|
6143
6155
|
class: {
|
|
6144
6156
|
button: ["hover:text-primary-main", "data-[selected=true]:text-primary-main"],
|
|
6145
|
-
icon: ["hover:text-primary-main"]
|
|
6157
|
+
icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6146
6158
|
}
|
|
6147
6159
|
},
|
|
6148
6160
|
{
|
|
@@ -6182,7 +6194,7 @@ var paginationStyle = tv(
|
|
|
6182
6194
|
color: "secondary",
|
|
6183
6195
|
class: {
|
|
6184
6196
|
button: ["hover:text-secondary-main", "data-[selected=true]:text-secondary-main"],
|
|
6185
|
-
icon: ["hover:text-secondary-main"]
|
|
6197
|
+
icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6186
6198
|
}
|
|
6187
6199
|
},
|
|
6188
6200
|
{
|
|
@@ -6222,7 +6234,7 @@ var paginationStyle = tv(
|
|
|
6222
6234
|
color: "neutral",
|
|
6223
6235
|
class: {
|
|
6224
6236
|
button: ["hover:text-neutral-dark", "data-[selected=true]:text-neutral-dark"],
|
|
6225
|
-
icon: ["hover:text-neutral-dark"]
|
|
6237
|
+
icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6226
6238
|
}
|
|
6227
6239
|
},
|
|
6228
6240
|
{
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_head_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-NSADIVGU.mjs";
|
|
5
5
|
import "../../chunk-7B7LRG5J.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-D4YI5HF2.mjs";
|
|
7
7
|
import "../../chunk-F3HENRVM.mjs";
|
|
8
|
-
import "../../chunk-QZ3LVYJW.mjs";
|
|
9
8
|
import "../../chunk-2GCSFWHD.mjs";
|
|
10
9
|
import "../../chunk-VNRGOOSY.mjs";
|
|
10
|
+
import "../../chunk-QZ3LVYJW.mjs";
|
|
11
11
|
import "../../chunk-DQRAFUDA.mjs";
|
|
12
12
|
import "../../chunk-EWS3FESG.mjs";
|
|
13
13
|
import "../../chunk-OEIEALIP.mjs";
|
|
@@ -5993,6 +5993,10 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
5993
5993
|
size
|
|
5994
5994
|
} = { ...props, ...variantProps };
|
|
5995
5995
|
const [inputPage, setInputPage] = (0, import_react4.useState)(currentPage);
|
|
5996
|
+
const isFirstPageDisabled = currentPage <= 1;
|
|
5997
|
+
const isPrevPageDisabled = currentPage <= 1;
|
|
5998
|
+
const isNextPageDisabled = currentPage >= totalPage;
|
|
5999
|
+
const isLastPageDisabled = currentPage >= totalPage;
|
|
5996
6000
|
const slots = (0, import_react4.useMemo)(() => paginationStyle(variantProps), [variantProps]);
|
|
5997
6001
|
const { pageList, handleClickMovePage } = usePagination_default({
|
|
5998
6002
|
currentPage,
|
|
@@ -6014,9 +6018,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
6014
6018
|
"div",
|
|
6015
6019
|
{
|
|
6016
6020
|
"aria-label": "firstPage",
|
|
6017
|
-
"data-
|
|
6018
|
-
className: slots.icon({
|
|
6019
|
-
|
|
6021
|
+
"data-disabled": isFirstPageDisabled,
|
|
6022
|
+
className: slots.icon({
|
|
6023
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isFirstPageDisabled && "!text-neutral-light !cursor-default")
|
|
6024
|
+
}),
|
|
6025
|
+
onClick: !isFirstPageDisabled ? handleClickMovePage(1) : void 0,
|
|
6020
6026
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon_default, { name: "left-double-chevron", size })
|
|
6021
6027
|
}
|
|
6022
6028
|
),
|
|
@@ -6024,9 +6030,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
6024
6030
|
"div",
|
|
6025
6031
|
{
|
|
6026
6032
|
"aria-label": "prevPage",
|
|
6027
|
-
"data-
|
|
6028
|
-
className: slots.icon({
|
|
6029
|
-
|
|
6033
|
+
"data-disabled": isPrevPageDisabled,
|
|
6034
|
+
className: slots.icon({
|
|
6035
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isPrevPageDisabled && "!text-neutral-light !cursor-default")
|
|
6036
|
+
}),
|
|
6037
|
+
onClick: !isPrevPageDisabled ? handleClickMovePage(currentPage - 1) : void 0,
|
|
6030
6038
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon_default, { name: "left-chevron", size })
|
|
6031
6039
|
}
|
|
6032
6040
|
),
|
|
@@ -6044,9 +6052,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
6044
6052
|
"div",
|
|
6045
6053
|
{
|
|
6046
6054
|
"aria-label": "nextPage",
|
|
6047
|
-
"data-
|
|
6048
|
-
className: slots.icon({
|
|
6049
|
-
|
|
6055
|
+
"data-disabled": isNextPageDisabled,
|
|
6056
|
+
className: slots.icon({
|
|
6057
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isNextPageDisabled && "!text-neutral-light !cursor-default")
|
|
6058
|
+
}),
|
|
6059
|
+
onClick: !isNextPageDisabled ? handleClickMovePage(currentPage + 1) : void 0,
|
|
6050
6060
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon_default, { name: "right-chevron", size })
|
|
6051
6061
|
}
|
|
6052
6062
|
),
|
|
@@ -6054,9 +6064,11 @@ var Pagination = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
6054
6064
|
"div",
|
|
6055
6065
|
{
|
|
6056
6066
|
"aria-label": "lastPage",
|
|
6057
|
-
"data-
|
|
6058
|
-
className: slots.icon({
|
|
6059
|
-
|
|
6067
|
+
"data-disabled": isLastPageDisabled,
|
|
6068
|
+
className: slots.icon({
|
|
6069
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isLastPageDisabled && "!text-neutral-light !cursor-default")
|
|
6070
|
+
}),
|
|
6071
|
+
onClick: !isLastPageDisabled ? handleClickMovePage(totalPage) : void 0,
|
|
6060
6072
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon_default, { name: "right-double-chevron", size })
|
|
6061
6073
|
}
|
|
6062
6074
|
)
|
|
@@ -6094,8 +6106,8 @@ var paginationStyle = tv(
|
|
|
6094
6106
|
"justify-center",
|
|
6095
6107
|
"cursor-pointer",
|
|
6096
6108
|
"text-neutral-main",
|
|
6097
|
-
"data-[
|
|
6098
|
-
"data-[
|
|
6109
|
+
"data-[disabled=true]:text-neutral-light",
|
|
6110
|
+
"data-[disabled=true]:cursor-default"
|
|
6099
6111
|
],
|
|
6100
6112
|
button: [
|
|
6101
6113
|
"flex",
|
|
@@ -6156,7 +6168,7 @@ var paginationStyle = tv(
|
|
|
6156
6168
|
"data-[selected=true]:text-primary-main",
|
|
6157
6169
|
"data-[selected=true]:bg-primary-soft"
|
|
6158
6170
|
],
|
|
6159
|
-
icon: ["hover:text-primary-main"]
|
|
6171
|
+
icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6160
6172
|
}
|
|
6161
6173
|
},
|
|
6162
6174
|
{
|
|
@@ -6168,7 +6180,7 @@ var paginationStyle = tv(
|
|
|
6168
6180
|
"data-[selected=true]:text-secondary-main",
|
|
6169
6181
|
"data-[selected=true]:bg-secondary-soft"
|
|
6170
6182
|
],
|
|
6171
|
-
icon: ["hover:text-secondary-main"]
|
|
6183
|
+
icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6172
6184
|
}
|
|
6173
6185
|
},
|
|
6174
6186
|
{
|
|
@@ -6180,7 +6192,7 @@ var paginationStyle = tv(
|
|
|
6180
6192
|
"data-[selected=true]:text-neutral-dark",
|
|
6181
6193
|
"data-[selected=true]:bg-neutral-soft"
|
|
6182
6194
|
],
|
|
6183
|
-
icon: ["hover:text-neutral-dark"]
|
|
6195
|
+
icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6184
6196
|
}
|
|
6185
6197
|
},
|
|
6186
6198
|
{
|
|
@@ -6188,7 +6200,7 @@ var paginationStyle = tv(
|
|
|
6188
6200
|
color: "primary",
|
|
6189
6201
|
class: {
|
|
6190
6202
|
button: ["hover:text-primary-main", "data-[selected=true]:text-primary-main"],
|
|
6191
|
-
icon: ["hover:text-primary-main"]
|
|
6203
|
+
icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6192
6204
|
}
|
|
6193
6205
|
},
|
|
6194
6206
|
{
|
|
@@ -6228,7 +6240,7 @@ var paginationStyle = tv(
|
|
|
6228
6240
|
color: "secondary",
|
|
6229
6241
|
class: {
|
|
6230
6242
|
button: ["hover:text-secondary-main", "data-[selected=true]:text-secondary-main"],
|
|
6231
|
-
icon: ["hover:text-secondary-main"]
|
|
6243
|
+
icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6232
6244
|
}
|
|
6233
6245
|
},
|
|
6234
6246
|
{
|
|
@@ -6268,7 +6280,7 @@ var paginationStyle = tv(
|
|
|
6268
6280
|
color: "neutral",
|
|
6269
6281
|
class: {
|
|
6270
6282
|
button: ["hover:text-neutral-dark", "data-[selected=true]:text-neutral-dark"],
|
|
6271
|
-
icon: ["hover:text-neutral-dark"]
|
|
6283
|
+
icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
|
|
6272
6284
|
}
|
|
6273
6285
|
},
|
|
6274
6286
|
{
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getCellStyle,
|
|
4
4
|
table_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-NSADIVGU.mjs";
|
|
6
6
|
import "../../chunk-7B7LRG5J.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-D4YI5HF2.mjs";
|
|
8
8
|
import "../../chunk-F3HENRVM.mjs";
|
|
9
|
-
import "../../chunk-QZ3LVYJW.mjs";
|
|
10
9
|
import "../../chunk-2GCSFWHD.mjs";
|
|
11
10
|
import "../../chunk-VNRGOOSY.mjs";
|
|
11
|
+
import "../../chunk-QZ3LVYJW.mjs";
|
|
12
12
|
import "../../chunk-DQRAFUDA.mjs";
|
|
13
13
|
import "../../chunk-EWS3FESG.mjs";
|
|
14
14
|
import "../../chunk-OEIEALIP.mjs";
|