@deepnoid/ui 0.1.172 → 0.1.174

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.
Files changed (29) hide show
  1. package/.turbo/turbo-build.log +181 -181
  2. package/dist/{chunk-WLTBJF4I.mjs → chunk-D4YI5HF2.mjs} +32 -20
  3. package/dist/{chunk-CPFFP7L6.mjs → chunk-JGG3ZUNG.mjs} +3 -3
  4. package/dist/{chunk-DU7L4GA7.mjs → chunk-NTNF5T5I.mjs} +11 -9
  5. package/dist/{chunk-PX4RCHOE.mjs → chunk-QXVGMVCG.mjs} +4 -4
  6. package/dist/components/accordion/accordion.d.mts +3 -2
  7. package/dist/components/accordion/accordion.d.ts +3 -2
  8. package/dist/components/accordion/accordion.js +3 -3
  9. package/dist/components/accordion/accordion.mjs +1 -1
  10. package/dist/components/accordion/accordionItem.js +11 -9
  11. package/dist/components/accordion/accordionItem.mjs +1 -1
  12. package/dist/components/accordion/index.js +14 -12
  13. package/dist/components/accordion/index.mjs +2 -2
  14. package/dist/components/charts/index.mjs +3 -3
  15. package/dist/components/pagination/index.js +32 -20
  16. package/dist/components/pagination/index.mjs +1 -1
  17. package/dist/components/pagination/pagination.js +32 -20
  18. package/dist/components/pagination/pagination.mjs +1 -1
  19. package/dist/components/table/index.js +32 -20
  20. package/dist/components/table/index.mjs +4 -4
  21. package/dist/components/table/table-body.js +32 -20
  22. package/dist/components/table/table-body.mjs +4 -4
  23. package/dist/components/table/table-head.js +32 -20
  24. package/dist/components/table/table-head.mjs +4 -4
  25. package/dist/components/table/table.js +32 -20
  26. package/dist/components/table/table.mjs +4 -4
  27. package/dist/index.js +46 -32
  28. package/dist/index.mjs +36 -36
  29. package/package.json +1 -1
@@ -5664,6 +5664,10 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
5664
5664
  size
5665
5665
  } = { ...props, ...variantProps };
5666
5666
  const [inputPage, setInputPage] = (0, import_react3.useState)(currentPage);
5667
+ const isFirstPageDisabled = currentPage <= 1;
5668
+ const isPrevPageDisabled = currentPage <= 1;
5669
+ const isNextPageDisabled = currentPage >= totalPage;
5670
+ const isLastPageDisabled = currentPage >= totalPage;
5667
5671
  const slots = (0, import_react3.useMemo)(() => paginationStyle(variantProps), [variantProps]);
5668
5672
  const { pageList, handleClickMovePage } = usePagination_default({
5669
5673
  currentPage,
@@ -5685,9 +5689,11 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
5685
5689
  "div",
5686
5690
  {
5687
5691
  "aria-label": "firstPage",
5688
- "data-is-active": currentPage > 1,
5689
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5690
- onClick: currentPage > 1 ? handleClickMovePage(1) : void 0,
5692
+ "data-disabled": isFirstPageDisabled,
5693
+ className: slots.icon({
5694
+ class: clsx(classNames == null ? void 0 : classNames.icon, isFirstPageDisabled && "!text-neutral-light !cursor-default")
5695
+ }),
5696
+ onClick: !isFirstPageDisabled ? handleClickMovePage(1) : void 0,
5691
5697
  children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "left-double-chevron", size })
5692
5698
  }
5693
5699
  ),
@@ -5695,9 +5701,11 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
5695
5701
  "div",
5696
5702
  {
5697
5703
  "aria-label": "prevPage",
5698
- "data-is-active": currentPage > 1,
5699
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5700
- onClick: currentPage > 1 ? handleClickMovePage(currentPage - 1) : void 0,
5704
+ "data-disabled": isPrevPageDisabled,
5705
+ className: slots.icon({
5706
+ class: clsx(classNames == null ? void 0 : classNames.icon, isPrevPageDisabled && "!text-neutral-light !cursor-default")
5707
+ }),
5708
+ onClick: !isPrevPageDisabled ? handleClickMovePage(currentPage - 1) : void 0,
5701
5709
  children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "left-chevron", size })
5702
5710
  }
5703
5711
  ),
@@ -5715,9 +5723,11 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
5715
5723
  "div",
5716
5724
  {
5717
5725
  "aria-label": "nextPage",
5718
- "data-is-active": currentPage < totalPage,
5719
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5720
- onClick: currentPage < totalPage ? handleClickMovePage(currentPage + 1) : void 0,
5726
+ "data-disabled": isNextPageDisabled,
5727
+ className: slots.icon({
5728
+ class: clsx(classNames == null ? void 0 : classNames.icon, isNextPageDisabled && "!text-neutral-light !cursor-default")
5729
+ }),
5730
+ onClick: !isNextPageDisabled ? handleClickMovePage(currentPage + 1) : void 0,
5721
5731
  children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "right-chevron", size })
5722
5732
  }
5723
5733
  ),
@@ -5725,9 +5735,11 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
5725
5735
  "div",
5726
5736
  {
5727
5737
  "aria-label": "lastPage",
5728
- "data-is-active": currentPage < totalPage,
5729
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5730
- onClick: currentPage < totalPage ? handleClickMovePage(totalPage) : void 0,
5738
+ "data-disabled": isLastPageDisabled,
5739
+ className: slots.icon({
5740
+ class: clsx(classNames == null ? void 0 : classNames.icon, isLastPageDisabled && "!text-neutral-light !cursor-default")
5741
+ }),
5742
+ onClick: !isLastPageDisabled ? handleClickMovePage(totalPage) : void 0,
5731
5743
  children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "right-double-chevron", size })
5732
5744
  }
5733
5745
  )
@@ -5765,8 +5777,8 @@ var paginationStyle = tv(
5765
5777
  "justify-center",
5766
5778
  "cursor-pointer",
5767
5779
  "text-neutral-main",
5768
- "data-[is-active=false]:stroke-neutral-light",
5769
- "data-[is-active=false]:cursor-default"
5780
+ "data-[disabled=true]:text-neutral-light",
5781
+ "data-[disabled=true]:cursor-default"
5770
5782
  ],
5771
5783
  button: [
5772
5784
  "flex",
@@ -5827,7 +5839,7 @@ var paginationStyle = tv(
5827
5839
  "data-[selected=true]:text-primary-main",
5828
5840
  "data-[selected=true]:bg-primary-soft"
5829
5841
  ],
5830
- icon: ["hover:text-primary-main"]
5842
+ icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
5831
5843
  }
5832
5844
  },
5833
5845
  {
@@ -5839,7 +5851,7 @@ var paginationStyle = tv(
5839
5851
  "data-[selected=true]:text-secondary-main",
5840
5852
  "data-[selected=true]:bg-secondary-soft"
5841
5853
  ],
5842
- icon: ["hover:text-secondary-main"]
5854
+ icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
5843
5855
  }
5844
5856
  },
5845
5857
  {
@@ -5851,7 +5863,7 @@ var paginationStyle = tv(
5851
5863
  "data-[selected=true]:text-neutral-dark",
5852
5864
  "data-[selected=true]:bg-neutral-soft"
5853
5865
  ],
5854
- icon: ["hover:text-neutral-dark"]
5866
+ icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
5855
5867
  }
5856
5868
  },
5857
5869
  {
@@ -5859,7 +5871,7 @@ var paginationStyle = tv(
5859
5871
  color: "primary",
5860
5872
  class: {
5861
5873
  button: ["hover:text-primary-main", "data-[selected=true]:text-primary-main"],
5862
- icon: ["hover:text-primary-main"]
5874
+ icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
5863
5875
  }
5864
5876
  },
5865
5877
  {
@@ -5899,7 +5911,7 @@ var paginationStyle = tv(
5899
5911
  color: "secondary",
5900
5912
  class: {
5901
5913
  button: ["hover:text-secondary-main", "data-[selected=true]:text-secondary-main"],
5902
- icon: ["hover:text-secondary-main"]
5914
+ icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
5903
5915
  }
5904
5916
  },
5905
5917
  {
@@ -5939,7 +5951,7 @@ var paginationStyle = tv(
5939
5951
  color: "neutral",
5940
5952
  class: {
5941
5953
  button: ["hover:text-neutral-dark", "data-[selected=true]:text-neutral-dark"],
5942
- icon: ["hover:text-neutral-dark"]
5954
+ icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
5943
5955
  }
5944
5956
  },
5945
5957
  {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  pagination_default
4
- } from "../../chunk-WLTBJF4I.mjs";
4
+ } from "../../chunk-D4YI5HF2.mjs";
5
5
  import "../../chunk-F3HENRVM.mjs";
6
6
  import "../../chunk-2GCSFWHD.mjs";
7
7
  import "../../chunk-VNRGOOSY.mjs";
@@ -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-is-active": currentPage > 1,
6020
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
6021
- onClick: currentPage > 1 ? handleClickMovePage(1) : void 0,
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-is-active": currentPage > 1,
6030
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
6031
- onClick: currentPage > 1 ? handleClickMovePage(currentPage - 1) : void 0,
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-is-active": currentPage < totalPage,
6050
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
6051
- onClick: currentPage < totalPage ? handleClickMovePage(currentPage + 1) : void 0,
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-is-active": currentPage < totalPage,
6060
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
6061
- onClick: currentPage < totalPage ? handleClickMovePage(totalPage) : void 0,
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-[is-active=false]:stroke-neutral-light",
6100
- "data-[is-active=false]:cursor-default"
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,16 +5,16 @@ import {
5
5
  } from "../../chunk-DS5CGU2X.mjs";
6
6
  import {
7
7
  table_default
8
- } from "../../chunk-PX4RCHOE.mjs";
8
+ } from "../../chunk-QXVGMVCG.mjs";
9
9
  import "../../chunk-7B7LRG5J.mjs";
10
- import "../../chunk-WLTBJF4I.mjs";
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
+ import "../../chunk-OEIEALIP.mjs";
15
16
  import "../../chunk-DQRAFUDA.mjs";
16
17
  import "../../chunk-EWS3FESG.mjs";
17
- import "../../chunk-OEIEALIP.mjs";
18
18
  import "../../chunk-ZYIIXWVY.mjs";
19
19
  import "../../chunk-R7KUEH3N.mjs";
20
20
  import "../../chunk-E3G5QXSH.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-is-active": currentPage > 1,
5951
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5952
- onClick: currentPage > 1 ? handleClickMovePage(1) : void 0,
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-is-active": currentPage > 1,
5961
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5962
- onClick: currentPage > 1 ? handleClickMovePage(currentPage - 1) : void 0,
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-is-active": currentPage < totalPage,
5981
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5982
- onClick: currentPage < totalPage ? handleClickMovePage(currentPage + 1) : void 0,
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-is-active": currentPage < totalPage,
5991
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5992
- onClick: currentPage < totalPage ? handleClickMovePage(totalPage) : void 0,
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-[is-active=false]:stroke-neutral-light",
6031
- "data-[is-active=false]:cursor-default"
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,16 +1,16 @@
1
1
  "use client";
2
2
  import {
3
3
  table_body_default
4
- } from "../../chunk-PX4RCHOE.mjs";
4
+ } from "../../chunk-QXVGMVCG.mjs";
5
5
  import "../../chunk-7B7LRG5J.mjs";
6
- import "../../chunk-WLTBJF4I.mjs";
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
+ import "../../chunk-OEIEALIP.mjs";
11
12
  import "../../chunk-DQRAFUDA.mjs";
12
13
  import "../../chunk-EWS3FESG.mjs";
13
- import "../../chunk-OEIEALIP.mjs";
14
14
  import "../../chunk-ZYIIXWVY.mjs";
15
15
  import "../../chunk-R7KUEH3N.mjs";
16
16
  import "../../chunk-E3G5QXSH.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-is-active": currentPage > 1,
5972
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5973
- onClick: currentPage > 1 ? handleClickMovePage(1) : void 0,
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-is-active": currentPage > 1,
5982
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5983
- onClick: currentPage > 1 ? handleClickMovePage(currentPage - 1) : void 0,
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-is-active": currentPage < totalPage,
6002
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
6003
- onClick: currentPage < totalPage ? handleClickMovePage(currentPage + 1) : void 0,
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-is-active": currentPage < totalPage,
6012
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
6013
- onClick: currentPage < totalPage ? handleClickMovePage(totalPage) : void 0,
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-[is-active=false]:stroke-neutral-light",
6052
- "data-[is-active=false]:cursor-default"
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,16 +1,16 @@
1
1
  "use client";
2
2
  import {
3
3
  table_head_default
4
- } from "../../chunk-PX4RCHOE.mjs";
4
+ } from "../../chunk-QXVGMVCG.mjs";
5
5
  import "../../chunk-7B7LRG5J.mjs";
6
- import "../../chunk-WLTBJF4I.mjs";
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
+ import "../../chunk-OEIEALIP.mjs";
11
12
  import "../../chunk-DQRAFUDA.mjs";
12
13
  import "../../chunk-EWS3FESG.mjs";
13
- import "../../chunk-OEIEALIP.mjs";
14
14
  import "../../chunk-ZYIIXWVY.mjs";
15
15
  import "../../chunk-R7KUEH3N.mjs";
16
16
  import "../../chunk-E3G5QXSH.mjs";