@deepnoid/ui 0.1.172 → 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 +161 -161
- 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/index.mjs +5 -5
- 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 +32 -20
- package/dist/index.mjs +29 -29
- package/package.json +1 -1
|
@@ -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";
|
package/dist/index.js
CHANGED
|
@@ -8341,6 +8341,10 @@ var Pagination = (0, import_react16.forwardRef)((originalProps, ref) => {
|
|
|
8341
8341
|
size
|
|
8342
8342
|
} = { ...props, ...variantProps };
|
|
8343
8343
|
const [inputPage, setInputPage] = (0, import_react16.useState)(currentPage);
|
|
8344
|
+
const isFirstPageDisabled = currentPage <= 1;
|
|
8345
|
+
const isPrevPageDisabled = currentPage <= 1;
|
|
8346
|
+
const isNextPageDisabled = currentPage >= totalPage;
|
|
8347
|
+
const isLastPageDisabled = currentPage >= totalPage;
|
|
8344
8348
|
const slots = (0, import_react16.useMemo)(() => paginationStyle(variantProps), [variantProps]);
|
|
8345
8349
|
const { pageList, handleClickMovePage } = usePagination_default({
|
|
8346
8350
|
currentPage,
|
|
@@ -8362,9 +8366,11 @@ var Pagination = (0, import_react16.forwardRef)((originalProps, ref) => {
|
|
|
8362
8366
|
"div",
|
|
8363
8367
|
{
|
|
8364
8368
|
"aria-label": "firstPage",
|
|
8365
|
-
"data-
|
|
8366
|
-
className: slots.icon({
|
|
8367
|
-
|
|
8369
|
+
"data-disabled": isFirstPageDisabled,
|
|
8370
|
+
className: slots.icon({
|
|
8371
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isFirstPageDisabled && "!text-neutral-light !cursor-default")
|
|
8372
|
+
}),
|
|
8373
|
+
onClick: !isFirstPageDisabled ? handleClickMovePage(1) : void 0,
|
|
8368
8374
|
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon_default, { name: "left-double-chevron", size })
|
|
8369
8375
|
}
|
|
8370
8376
|
),
|
|
@@ -8372,9 +8378,11 @@ var Pagination = (0, import_react16.forwardRef)((originalProps, ref) => {
|
|
|
8372
8378
|
"div",
|
|
8373
8379
|
{
|
|
8374
8380
|
"aria-label": "prevPage",
|
|
8375
|
-
"data-
|
|
8376
|
-
className: slots.icon({
|
|
8377
|
-
|
|
8381
|
+
"data-disabled": isPrevPageDisabled,
|
|
8382
|
+
className: slots.icon({
|
|
8383
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isPrevPageDisabled && "!text-neutral-light !cursor-default")
|
|
8384
|
+
}),
|
|
8385
|
+
onClick: !isPrevPageDisabled ? handleClickMovePage(currentPage - 1) : void 0,
|
|
8378
8386
|
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon_default, { name: "left-chevron", size })
|
|
8379
8387
|
}
|
|
8380
8388
|
),
|
|
@@ -8392,9 +8400,11 @@ var Pagination = (0, import_react16.forwardRef)((originalProps, ref) => {
|
|
|
8392
8400
|
"div",
|
|
8393
8401
|
{
|
|
8394
8402
|
"aria-label": "nextPage",
|
|
8395
|
-
"data-
|
|
8396
|
-
className: slots.icon({
|
|
8397
|
-
|
|
8403
|
+
"data-disabled": isNextPageDisabled,
|
|
8404
|
+
className: slots.icon({
|
|
8405
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isNextPageDisabled && "!text-neutral-light !cursor-default")
|
|
8406
|
+
}),
|
|
8407
|
+
onClick: !isNextPageDisabled ? handleClickMovePage(currentPage + 1) : void 0,
|
|
8398
8408
|
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon_default, { name: "right-chevron", size })
|
|
8399
8409
|
}
|
|
8400
8410
|
),
|
|
@@ -8402,9 +8412,11 @@ var Pagination = (0, import_react16.forwardRef)((originalProps, ref) => {
|
|
|
8402
8412
|
"div",
|
|
8403
8413
|
{
|
|
8404
8414
|
"aria-label": "lastPage",
|
|
8405
|
-
"data-
|
|
8406
|
-
className: slots.icon({
|
|
8407
|
-
|
|
8415
|
+
"data-disabled": isLastPageDisabled,
|
|
8416
|
+
className: slots.icon({
|
|
8417
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isLastPageDisabled && "!text-neutral-light !cursor-default")
|
|
8418
|
+
}),
|
|
8419
|
+
onClick: !isLastPageDisabled ? handleClickMovePage(totalPage) : void 0,
|
|
8408
8420
|
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon_default, { name: "right-double-chevron", size })
|
|
8409
8421
|
}
|
|
8410
8422
|
)
|
|
@@ -8442,8 +8454,8 @@ var paginationStyle = tv(
|
|
|
8442
8454
|
"justify-center",
|
|
8443
8455
|
"cursor-pointer",
|
|
8444
8456
|
"text-neutral-main",
|
|
8445
|
-
"data-[
|
|
8446
|
-
"data-[
|
|
8457
|
+
"data-[disabled=true]:text-neutral-light",
|
|
8458
|
+
"data-[disabled=true]:cursor-default"
|
|
8447
8459
|
],
|
|
8448
8460
|
button: [
|
|
8449
8461
|
"flex",
|
|
@@ -8504,7 +8516,7 @@ var paginationStyle = tv(
|
|
|
8504
8516
|
"data-[selected=true]:text-primary-main",
|
|
8505
8517
|
"data-[selected=true]:bg-primary-soft"
|
|
8506
8518
|
],
|
|
8507
|
-
icon: ["hover:text-primary-main"]
|
|
8519
|
+
icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
8508
8520
|
}
|
|
8509
8521
|
},
|
|
8510
8522
|
{
|
|
@@ -8516,7 +8528,7 @@ var paginationStyle = tv(
|
|
|
8516
8528
|
"data-[selected=true]:text-secondary-main",
|
|
8517
8529
|
"data-[selected=true]:bg-secondary-soft"
|
|
8518
8530
|
],
|
|
8519
|
-
icon: ["hover:text-secondary-main"]
|
|
8531
|
+
icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
8520
8532
|
}
|
|
8521
8533
|
},
|
|
8522
8534
|
{
|
|
@@ -8528,7 +8540,7 @@ var paginationStyle = tv(
|
|
|
8528
8540
|
"data-[selected=true]:text-neutral-dark",
|
|
8529
8541
|
"data-[selected=true]:bg-neutral-soft"
|
|
8530
8542
|
],
|
|
8531
|
-
icon: ["hover:text-neutral-dark"]
|
|
8543
|
+
icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
|
|
8532
8544
|
}
|
|
8533
8545
|
},
|
|
8534
8546
|
{
|
|
@@ -8536,7 +8548,7 @@ var paginationStyle = tv(
|
|
|
8536
8548
|
color: "primary",
|
|
8537
8549
|
class: {
|
|
8538
8550
|
button: ["hover:text-primary-main", "data-[selected=true]:text-primary-main"],
|
|
8539
|
-
icon: ["hover:text-primary-main"]
|
|
8551
|
+
icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
8540
8552
|
}
|
|
8541
8553
|
},
|
|
8542
8554
|
{
|
|
@@ -8576,7 +8588,7 @@ var paginationStyle = tv(
|
|
|
8576
8588
|
color: "secondary",
|
|
8577
8589
|
class: {
|
|
8578
8590
|
button: ["hover:text-secondary-main", "data-[selected=true]:text-secondary-main"],
|
|
8579
|
-
icon: ["hover:text-secondary-main"]
|
|
8591
|
+
icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
8580
8592
|
}
|
|
8581
8593
|
},
|
|
8582
8594
|
{
|
|
@@ -8616,7 +8628,7 @@ var paginationStyle = tv(
|
|
|
8616
8628
|
color: "neutral",
|
|
8617
8629
|
class: {
|
|
8618
8630
|
button: ["hover:text-neutral-dark", "data-[selected=true]:text-neutral-dark"],
|
|
8619
|
-
icon: ["hover:text-neutral-dark"]
|
|
8631
|
+
icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
|
|
8620
8632
|
}
|
|
8621
8633
|
},
|
|
8622
8634
|
{
|