@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
@@ -36,6 +36,10 @@ var Pagination = forwardRef((originalProps, ref) => {
36
36
  size
37
37
  } = { ...props, ...variantProps };
38
38
  const [inputPage, setInputPage] = useState(currentPage);
39
+ const isFirstPageDisabled = currentPage <= 1;
40
+ const isPrevPageDisabled = currentPage <= 1;
41
+ const isNextPageDisabled = currentPage >= totalPage;
42
+ const isLastPageDisabled = currentPage >= totalPage;
39
43
  const slots = useMemo(() => paginationStyle(variantProps), [variantProps]);
40
44
  const { pageList, handleClickMovePage } = usePagination_default({
41
45
  currentPage,
@@ -57,9 +61,11 @@ var Pagination = forwardRef((originalProps, ref) => {
57
61
  "div",
58
62
  {
59
63
  "aria-label": "firstPage",
60
- "data-is-active": currentPage > 1,
61
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
62
- onClick: currentPage > 1 ? handleClickMovePage(1) : void 0,
64
+ "data-disabled": isFirstPageDisabled,
65
+ className: slots.icon({
66
+ class: clsx(classNames == null ? void 0 : classNames.icon, isFirstPageDisabled && "!text-neutral-light !cursor-default")
67
+ }),
68
+ onClick: !isFirstPageDisabled ? handleClickMovePage(1) : void 0,
63
69
  children: /* @__PURE__ */ jsx(Icon_default, { name: "left-double-chevron", size })
64
70
  }
65
71
  ),
@@ -67,9 +73,11 @@ var Pagination = forwardRef((originalProps, ref) => {
67
73
  "div",
68
74
  {
69
75
  "aria-label": "prevPage",
70
- "data-is-active": currentPage > 1,
71
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
72
- onClick: currentPage > 1 ? handleClickMovePage(currentPage - 1) : void 0,
76
+ "data-disabled": isPrevPageDisabled,
77
+ className: slots.icon({
78
+ class: clsx(classNames == null ? void 0 : classNames.icon, isPrevPageDisabled && "!text-neutral-light !cursor-default")
79
+ }),
80
+ onClick: !isPrevPageDisabled ? handleClickMovePage(currentPage - 1) : void 0,
73
81
  children: /* @__PURE__ */ jsx(Icon_default, { name: "left-chevron", size })
74
82
  }
75
83
  ),
@@ -87,9 +95,11 @@ var Pagination = forwardRef((originalProps, ref) => {
87
95
  "div",
88
96
  {
89
97
  "aria-label": "nextPage",
90
- "data-is-active": currentPage < totalPage,
91
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
92
- onClick: currentPage < totalPage ? handleClickMovePage(currentPage + 1) : void 0,
98
+ "data-disabled": isNextPageDisabled,
99
+ className: slots.icon({
100
+ class: clsx(classNames == null ? void 0 : classNames.icon, isNextPageDisabled && "!text-neutral-light !cursor-default")
101
+ }),
102
+ onClick: !isNextPageDisabled ? handleClickMovePage(currentPage + 1) : void 0,
93
103
  children: /* @__PURE__ */ jsx(Icon_default, { name: "right-chevron", size })
94
104
  }
95
105
  ),
@@ -97,9 +107,11 @@ var Pagination = forwardRef((originalProps, ref) => {
97
107
  "div",
98
108
  {
99
109
  "aria-label": "lastPage",
100
- "data-is-active": currentPage < totalPage,
101
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
102
- onClick: currentPage < totalPage ? handleClickMovePage(totalPage) : void 0,
110
+ "data-disabled": isLastPageDisabled,
111
+ className: slots.icon({
112
+ class: clsx(classNames == null ? void 0 : classNames.icon, isLastPageDisabled && "!text-neutral-light !cursor-default")
113
+ }),
114
+ onClick: !isLastPageDisabled ? handleClickMovePage(totalPage) : void 0,
103
115
  children: /* @__PURE__ */ jsx(Icon_default, { name: "right-double-chevron", size })
104
116
  }
105
117
  )
@@ -137,8 +149,8 @@ var paginationStyle = tv(
137
149
  "justify-center",
138
150
  "cursor-pointer",
139
151
  "text-neutral-main",
140
- "data-[is-active=false]:stroke-neutral-light",
141
- "data-[is-active=false]:cursor-default"
152
+ "data-[disabled=true]:text-neutral-light",
153
+ "data-[disabled=true]:cursor-default"
142
154
  ],
143
155
  button: [
144
156
  "flex",
@@ -199,7 +211,7 @@ var paginationStyle = tv(
199
211
  "data-[selected=true]:text-primary-main",
200
212
  "data-[selected=true]:bg-primary-soft"
201
213
  ],
202
- icon: ["hover:text-primary-main"]
214
+ icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
203
215
  }
204
216
  },
205
217
  {
@@ -211,7 +223,7 @@ var paginationStyle = tv(
211
223
  "data-[selected=true]:text-secondary-main",
212
224
  "data-[selected=true]:bg-secondary-soft"
213
225
  ],
214
- icon: ["hover:text-secondary-main"]
226
+ icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
215
227
  }
216
228
  },
217
229
  {
@@ -223,7 +235,7 @@ var paginationStyle = tv(
223
235
  "data-[selected=true]:text-neutral-dark",
224
236
  "data-[selected=true]:bg-neutral-soft"
225
237
  ],
226
- icon: ["hover:text-neutral-dark"]
238
+ icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
227
239
  }
228
240
  },
229
241
  {
@@ -231,7 +243,7 @@ var paginationStyle = tv(
231
243
  color: "primary",
232
244
  class: {
233
245
  button: ["hover:text-primary-main", "data-[selected=true]:text-primary-main"],
234
- icon: ["hover:text-primary-main"]
246
+ icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
235
247
  }
236
248
  },
237
249
  {
@@ -271,7 +283,7 @@ var paginationStyle = tv(
271
283
  color: "secondary",
272
284
  class: {
273
285
  button: ["hover:text-secondary-main", "data-[selected=true]:text-secondary-main"],
274
- icon: ["hover:text-secondary-main"]
286
+ icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
275
287
  }
276
288
  },
277
289
  {
@@ -311,7 +323,7 @@ var paginationStyle = tv(
311
323
  color: "neutral",
312
324
  class: {
313
325
  button: ["hover:text-neutral-dark", "data-[selected=true]:text-neutral-dark"],
314
- icon: ["hover:text-neutral-dark"]
326
+ icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
315
327
  }
316
328
  },
317
329
  {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-U4DJHAM5.mjs";
8
8
 
9
9
  // src/components/accordion/accordion.tsx
10
- import React, { forwardRef, useMemo, useState } from "react";
10
+ import { Children, cloneElement, forwardRef, useMemo, useState } from "react";
11
11
  import { jsx } from "react/jsx-runtime";
12
12
  var Accordion = forwardRef((originalProps, ref) => {
13
13
  const [props, variantProps] = mapPropsVariants(originalProps, accordion.variantKeys);
@@ -23,8 +23,8 @@ var Accordion = forwardRef((originalProps, ref) => {
23
23
  }
24
24
  });
25
25
  };
26
- return /* @__PURE__ */ jsx("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: React.Children.map(children, (child, index) => {
27
- return React.cloneElement(child, {
26
+ return /* @__PURE__ */ jsx("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: Children.map(children, (child, index) => {
27
+ return cloneElement(child, {
28
28
  ...variantProps,
29
29
  ...child.props,
30
30
  isInGroup: true,
@@ -79,8 +79,8 @@ var AccordionItem = forwardRef((originalProps, ref) => {
79
79
  }
80
80
  };
81
81
  }, [slots, classNames == null ? void 0 : classNames.content, contentHeight, isOpen, disableAnimation]);
82
- return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
83
- /* @__PURE__ */ jsxs("div", { "data-isopen": isOpen, className: slots.header({ class: classNames == null ? void 0 : classNames.header }), onClick: handleToggle, children: [
82
+ return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onClick: handleToggle, children: [
83
+ /* @__PURE__ */ jsxs("div", { "data-isopen": isOpen, className: slots.header({ class: classNames == null ? void 0 : classNames.header }), children: [
84
84
  startContent && renderContent(startContent),
85
85
  /* @__PURE__ */ jsx("span", { className: slots.headerTitle({ class: classNames == null ? void 0 : classNames.headerTitle }), children: title }),
86
86
  endContent && renderContent(endContent)
@@ -92,16 +92,18 @@ AccordionItem.displayName = "AccordionItem";
92
92
  var accordionItem_default = AccordionItem;
93
93
  var accordionItem = tv({
94
94
  slots: {
95
- base: ["group/accordion", "w-full", "flex", "flex-col", "gap-[12px]", "p-[12px]", "bg-body-background"],
96
- header: [
95
+ base: [
96
+ "group/accordion",
97
+ "w-full",
97
98
  "flex",
98
- "justify-between",
99
- "items-center",
100
- "text-foreground",
99
+ "flex-col",
100
+ "gap-[12px]",
101
+ "p-[12px]",
102
+ "bg-body-background",
101
103
  "cursor-pointer",
102
- "select-none",
103
- "gap-[8px]"
104
+ "select-none"
104
105
  ],
106
+ header: ["flex", "justify-between", "items-center", "text-foreground", "gap-[8px]"],
105
107
  headerTitle: ["w-full", "font-bold", "text-body-foreground"],
106
108
  content: [
107
109
  "overflow-hidden",
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  pagination_default
4
- } from "./chunk-WLTBJF4I.mjs";
5
- import {
6
- scrollArea_default
7
- } from "./chunk-EWS3FESG.mjs";
4
+ } from "./chunk-D4YI5HF2.mjs";
8
5
  import {
9
6
  checkbox_default
10
7
  } from "./chunk-OEIEALIP.mjs";
8
+ import {
9
+ scrollArea_default
10
+ } from "./chunk-EWS3FESG.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -1,6 +1,7 @@
1
1
  import * as tailwind_variants from 'tailwind-variants';
2
2
  import { VariantProps } from 'tailwind-variants';
3
- import react__default, { ReactNode } from 'react';
3
+ import * as react from 'react';
4
+ import { ReactNode } from 'react';
4
5
  import { SlotsToClasses } from '../../utils/types.mjs';
5
6
 
6
7
  interface Props {
@@ -10,7 +11,7 @@ interface Props {
10
11
  selectionIndex?: number;
11
12
  }
12
13
  type AccordionProps = Props & AccordionVariantProps;
13
- declare const Accordion: react__default.ForwardRefExoticComponent<Props & AccordionVariantProps & react__default.RefAttributes<HTMLDivElement>>;
14
+ declare const Accordion: react.ForwardRefExoticComponent<Props & AccordionVariantProps & react.RefAttributes<HTMLDivElement>>;
14
15
 
15
16
  declare const accordion: tailwind_variants.TVReturnType<{
16
17
  variant: {
@@ -1,6 +1,7 @@
1
1
  import * as tailwind_variants from 'tailwind-variants';
2
2
  import { VariantProps } from 'tailwind-variants';
3
- import react__default, { ReactNode } from 'react';
3
+ import * as react from 'react';
4
+ import { ReactNode } from 'react';
4
5
  import { SlotsToClasses } from '../../utils/types.js';
5
6
 
6
7
  interface Props {
@@ -10,7 +11,7 @@ interface Props {
10
11
  selectionIndex?: number;
11
12
  }
12
13
  type AccordionProps = Props & AccordionVariantProps;
13
- declare const Accordion: react__default.ForwardRefExoticComponent<Props & AccordionVariantProps & react__default.RefAttributes<HTMLDivElement>>;
14
+ declare const Accordion: react.ForwardRefExoticComponent<Props & AccordionVariantProps & react.RefAttributes<HTMLDivElement>>;
14
15
 
15
16
  declare const accordion: tailwind_variants.TVReturnType<{
16
17
  variant: {
@@ -105,7 +105,7 @@ __export(accordion_exports, {
105
105
  default: () => accordion_default
106
106
  });
107
107
  module.exports = __toCommonJS(accordion_exports);
108
- var import_react = __toESM(require("react"));
108
+ var import_react = require("react");
109
109
 
110
110
  // src/utils/tailwind-variants.ts
111
111
  var import_tailwind_variants = require("tailwind-variants");
@@ -390,8 +390,8 @@ var Accordion = (0, import_react.forwardRef)((originalProps, ref) => {
390
390
  }
391
391
  });
392
392
  };
393
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: import_react.default.Children.map(children, (child, index) => {
394
- return import_react.default.cloneElement(child, {
393
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: import_react.Children.map(children, (child, index) => {
394
+ return (0, import_react.cloneElement)(child, {
395
395
  ...variantProps,
396
396
  ...child.props,
397
397
  isInGroup: true,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  accordion_default
4
- } from "../../chunk-CPFFP7L6.mjs";
4
+ } from "../../chunk-JGG3ZUNG.mjs";
5
5
  import "../../chunk-E3G5QXSH.mjs";
6
6
  import "../../chunk-U4DJHAM5.mjs";
7
7
  import "../../chunk-AC6TWLRT.mjs";
@@ -437,8 +437,8 @@ var AccordionItem = (0, import_react.forwardRef)((originalProps, ref) => {
437
437
  }
438
438
  };
439
439
  }, [slots, classNames == null ? void 0 : classNames.content, contentHeight, isOpen, disableAnimation]);
440
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
441
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { "data-isopen": isOpen, className: slots.header({ class: classNames == null ? void 0 : classNames.header }), onClick: handleToggle, children: [
440
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onClick: handleToggle, children: [
441
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { "data-isopen": isOpen, className: slots.header({ class: classNames == null ? void 0 : classNames.header }), children: [
442
442
  startContent && renderContent(startContent),
443
443
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.headerTitle({ class: classNames == null ? void 0 : classNames.headerTitle }), children: title }),
444
444
  endContent && renderContent(endContent)
@@ -450,16 +450,18 @@ AccordionItem.displayName = "AccordionItem";
450
450
  var accordionItem_default = AccordionItem;
451
451
  var accordionItem = tv({
452
452
  slots: {
453
- base: ["group/accordion", "w-full", "flex", "flex-col", "gap-[12px]", "p-[12px]", "bg-body-background"],
454
- header: [
453
+ base: [
454
+ "group/accordion",
455
+ "w-full",
455
456
  "flex",
456
- "justify-between",
457
- "items-center",
458
- "text-foreground",
457
+ "flex-col",
458
+ "gap-[12px]",
459
+ "p-[12px]",
460
+ "bg-body-background",
459
461
  "cursor-pointer",
460
- "select-none",
461
- "gap-[8px]"
462
+ "select-none"
462
463
  ],
464
+ header: ["flex", "justify-between", "items-center", "text-foreground", "gap-[8px]"],
463
465
  headerTitle: ["w-full", "font-bold", "text-body-foreground"],
464
466
  content: [
465
467
  "overflow-hidden",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  accordionItem_default
4
- } from "../../chunk-DU7L4GA7.mjs";
4
+ } from "../../chunk-NTNF5T5I.mjs";
5
5
  import "../../chunk-E3G5QXSH.mjs";
6
6
  import "../../chunk-U4DJHAM5.mjs";
7
7
  import "../../chunk-AC6TWLRT.mjs";
@@ -108,7 +108,7 @@ __export(accordion_exports, {
108
108
  module.exports = __toCommonJS(accordion_exports);
109
109
 
110
110
  // src/components/accordion/accordion.tsx
111
- var import_react = __toESM(require("react"));
111
+ var import_react = require("react");
112
112
 
113
113
  // src/utils/tailwind-variants.ts
114
114
  var import_tailwind_variants = require("tailwind-variants");
@@ -393,8 +393,8 @@ var Accordion = (0, import_react.forwardRef)((originalProps, ref) => {
393
393
  }
394
394
  });
395
395
  };
396
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: import_react.default.Children.map(children, (child, index) => {
397
- return import_react.default.cloneElement(child, {
396
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: import_react.Children.map(children, (child, index) => {
397
+ return (0, import_react.cloneElement)(child, {
398
398
  ...variantProps,
399
399
  ...child.props,
400
400
  isInGroup: true,
@@ -506,8 +506,8 @@ var AccordionItem = (0, import_react2.forwardRef)((originalProps, ref) => {
506
506
  }
507
507
  };
508
508
  }, [slots, classNames == null ? void 0 : classNames.content, contentHeight, isOpen, disableAnimation]);
509
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
510
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { "data-isopen": isOpen, className: slots.header({ class: classNames == null ? void 0 : classNames.header }), onClick: handleToggle, children: [
509
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onClick: handleToggle, children: [
510
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { "data-isopen": isOpen, className: slots.header({ class: classNames == null ? void 0 : classNames.header }), children: [
511
511
  startContent && renderContent(startContent),
512
512
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: slots.headerTitle({ class: classNames == null ? void 0 : classNames.headerTitle }), children: title }),
513
513
  endContent && renderContent(endContent)
@@ -519,16 +519,18 @@ AccordionItem.displayName = "AccordionItem";
519
519
  var accordionItem_default = AccordionItem;
520
520
  var accordionItem = tv({
521
521
  slots: {
522
- base: ["group/accordion", "w-full", "flex", "flex-col", "gap-[12px]", "p-[12px]", "bg-body-background"],
523
- header: [
522
+ base: [
523
+ "group/accordion",
524
+ "w-full",
524
525
  "flex",
525
- "justify-between",
526
- "items-center",
527
- "text-foreground",
526
+ "flex-col",
527
+ "gap-[12px]",
528
+ "p-[12px]",
529
+ "bg-body-background",
528
530
  "cursor-pointer",
529
- "select-none",
530
- "gap-[8px]"
531
+ "select-none"
531
532
  ],
533
+ header: ["flex", "justify-between", "items-center", "text-foreground", "gap-[8px]"],
532
534
  headerTitle: ["w-full", "font-bold", "text-body-foreground"],
533
535
  content: [
534
536
  "overflow-hidden",
@@ -2,10 +2,10 @@
2
2
  import "../../chunk-NMSDSEBD.mjs";
3
3
  import {
4
4
  accordion_default
5
- } from "../../chunk-CPFFP7L6.mjs";
5
+ } from "../../chunk-JGG3ZUNG.mjs";
6
6
  import {
7
7
  accordionItem_default
8
- } from "../../chunk-DU7L4GA7.mjs";
8
+ } from "../../chunk-NTNF5T5I.mjs";
9
9
  import "../../chunk-E3G5QXSH.mjs";
10
10
  import "../../chunk-U4DJHAM5.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
@@ -1,5 +1,8 @@
1
1
  "use client";
2
2
  import "../../chunk-3OCNT22V.mjs";
3
+ import {
4
+ simpleBarChart_default
5
+ } from "../../chunk-GWHUQUKA.mjs";
3
6
  import {
4
7
  areaChart_default
5
8
  } from "../../chunk-LH6Z7SDZ.mjs";
@@ -15,9 +18,6 @@ import {
15
18
  import {
16
19
  radarChart_default
17
20
  } from "../../chunk-U7SYKG2C.mjs";
18
- import {
19
- simpleBarChart_default
20
- } from "../../chunk-GWHUQUKA.mjs";
21
21
  import "../../chunk-E3G5QXSH.mjs";
22
22
  import "../../chunk-U4DJHAM5.mjs";
23
23
  import "../../chunk-27Y6K5NK.mjs";
@@ -5666,6 +5666,10 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
5666
5666
  size
5667
5667
  } = { ...props, ...variantProps };
5668
5668
  const [inputPage, setInputPage] = (0, import_react3.useState)(currentPage);
5669
+ const isFirstPageDisabled = currentPage <= 1;
5670
+ const isPrevPageDisabled = currentPage <= 1;
5671
+ const isNextPageDisabled = currentPage >= totalPage;
5672
+ const isLastPageDisabled = currentPage >= totalPage;
5669
5673
  const slots = (0, import_react3.useMemo)(() => paginationStyle(variantProps), [variantProps]);
5670
5674
  const { pageList, handleClickMovePage } = usePagination_default({
5671
5675
  currentPage,
@@ -5687,9 +5691,11 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
5687
5691
  "div",
5688
5692
  {
5689
5693
  "aria-label": "firstPage",
5690
- "data-is-active": currentPage > 1,
5691
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5692
- onClick: currentPage > 1 ? handleClickMovePage(1) : void 0,
5694
+ "data-disabled": isFirstPageDisabled,
5695
+ className: slots.icon({
5696
+ class: clsx(classNames == null ? void 0 : classNames.icon, isFirstPageDisabled && "!text-neutral-light !cursor-default")
5697
+ }),
5698
+ onClick: !isFirstPageDisabled ? handleClickMovePage(1) : void 0,
5693
5699
  children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "left-double-chevron", size })
5694
5700
  }
5695
5701
  ),
@@ -5697,9 +5703,11 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
5697
5703
  "div",
5698
5704
  {
5699
5705
  "aria-label": "prevPage",
5700
- "data-is-active": currentPage > 1,
5701
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5702
- onClick: currentPage > 1 ? handleClickMovePage(currentPage - 1) : void 0,
5706
+ "data-disabled": isPrevPageDisabled,
5707
+ className: slots.icon({
5708
+ class: clsx(classNames == null ? void 0 : classNames.icon, isPrevPageDisabled && "!text-neutral-light !cursor-default")
5709
+ }),
5710
+ onClick: !isPrevPageDisabled ? handleClickMovePage(currentPage - 1) : void 0,
5703
5711
  children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "left-chevron", size })
5704
5712
  }
5705
5713
  ),
@@ -5717,9 +5725,11 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
5717
5725
  "div",
5718
5726
  {
5719
5727
  "aria-label": "nextPage",
5720
- "data-is-active": currentPage < totalPage,
5721
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5722
- onClick: currentPage < totalPage ? handleClickMovePage(currentPage + 1) : void 0,
5728
+ "data-disabled": isNextPageDisabled,
5729
+ className: slots.icon({
5730
+ class: clsx(classNames == null ? void 0 : classNames.icon, isNextPageDisabled && "!text-neutral-light !cursor-default")
5731
+ }),
5732
+ onClick: !isNextPageDisabled ? handleClickMovePage(currentPage + 1) : void 0,
5723
5733
  children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "right-chevron", size })
5724
5734
  }
5725
5735
  ),
@@ -5727,9 +5737,11 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
5727
5737
  "div",
5728
5738
  {
5729
5739
  "aria-label": "lastPage",
5730
- "data-is-active": currentPage < totalPage,
5731
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
5732
- onClick: currentPage < totalPage ? handleClickMovePage(totalPage) : void 0,
5740
+ "data-disabled": isLastPageDisabled,
5741
+ className: slots.icon({
5742
+ class: clsx(classNames == null ? void 0 : classNames.icon, isLastPageDisabled && "!text-neutral-light !cursor-default")
5743
+ }),
5744
+ onClick: !isLastPageDisabled ? handleClickMovePage(totalPage) : void 0,
5733
5745
  children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "right-double-chevron", size })
5734
5746
  }
5735
5747
  )
@@ -5767,8 +5779,8 @@ var paginationStyle = tv(
5767
5779
  "justify-center",
5768
5780
  "cursor-pointer",
5769
5781
  "text-neutral-main",
5770
- "data-[is-active=false]:stroke-neutral-light",
5771
- "data-[is-active=false]:cursor-default"
5782
+ "data-[disabled=true]:text-neutral-light",
5783
+ "data-[disabled=true]:cursor-default"
5772
5784
  ],
5773
5785
  button: [
5774
5786
  "flex",
@@ -5829,7 +5841,7 @@ var paginationStyle = tv(
5829
5841
  "data-[selected=true]:text-primary-main",
5830
5842
  "data-[selected=true]:bg-primary-soft"
5831
5843
  ],
5832
- icon: ["hover:text-primary-main"]
5844
+ icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
5833
5845
  }
5834
5846
  },
5835
5847
  {
@@ -5841,7 +5853,7 @@ var paginationStyle = tv(
5841
5853
  "data-[selected=true]:text-secondary-main",
5842
5854
  "data-[selected=true]:bg-secondary-soft"
5843
5855
  ],
5844
- icon: ["hover:text-secondary-main"]
5856
+ icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
5845
5857
  }
5846
5858
  },
5847
5859
  {
@@ -5853,7 +5865,7 @@ var paginationStyle = tv(
5853
5865
  "data-[selected=true]:text-neutral-dark",
5854
5866
  "data-[selected=true]:bg-neutral-soft"
5855
5867
  ],
5856
- icon: ["hover:text-neutral-dark"]
5868
+ icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
5857
5869
  }
5858
5870
  },
5859
5871
  {
@@ -5861,7 +5873,7 @@ var paginationStyle = tv(
5861
5873
  color: "primary",
5862
5874
  class: {
5863
5875
  button: ["hover:text-primary-main", "data-[selected=true]:text-primary-main"],
5864
- icon: ["hover:text-primary-main"]
5876
+ icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
5865
5877
  }
5866
5878
  },
5867
5879
  {
@@ -5901,7 +5913,7 @@ var paginationStyle = tv(
5901
5913
  color: "secondary",
5902
5914
  class: {
5903
5915
  button: ["hover:text-secondary-main", "data-[selected=true]:text-secondary-main"],
5904
- icon: ["hover:text-secondary-main"]
5916
+ icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
5905
5917
  }
5906
5918
  },
5907
5919
  {
@@ -5941,7 +5953,7 @@ var paginationStyle = tv(
5941
5953
  color: "neutral",
5942
5954
  class: {
5943
5955
  button: ["hover:text-neutral-dark", "data-[selected=true]:text-neutral-dark"],
5944
- icon: ["hover:text-neutral-dark"]
5956
+ icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
5945
5957
  }
5946
5958
  },
5947
5959
  {
@@ -2,7 +2,7 @@
2
2
  import "../../chunk-7B7LRG5J.mjs";
3
3
  import {
4
4
  pagination_default
5
- } from "../../chunk-WLTBJF4I.mjs";
5
+ } from "../../chunk-D4YI5HF2.mjs";
6
6
  import "../../chunk-F3HENRVM.mjs";
7
7
  import "../../chunk-2GCSFWHD.mjs";
8
8
  import "../../chunk-VNRGOOSY.mjs";