kdpa-components 1.0.0 → 1.2.0

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 (149) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/Accordion/index.js +17 -19
  3. package/dist/Alert/index.js +19 -20
  4. package/dist/{ArrowDropDown-4bc3084f.js → ArrowDropDown-07b9ccae.js} +19 -20
  5. package/dist/Avatar/index.js +7 -8
  6. package/dist/Badge/index.js +22 -24
  7. package/dist/{Box-af81b133.js → Box-032e9a1d.js} +25 -27
  8. package/dist/{Button-da8592f4.js → Button-9d9cc0bd.js} +18 -20
  9. package/dist/{ButtonBase-496494a5.js → ButtonBase-fa4630c8.js} +35 -37
  10. package/dist/Buttons/index.js +28 -30
  11. package/dist/{CSSTransition-5496e075.js → CSSTransition-7e2d0e80.js} +3 -3
  12. package/dist/Cards/index.d.ts +2 -0
  13. package/dist/Cards/index.d.ts.map +1 -1
  14. package/dist/Cards/index.js +150 -1
  15. package/dist/CheckBox/index.js +13 -14
  16. package/dist/Chip/index.js +17 -19
  17. package/dist/{Chip-2dfcd6e9.js → Chip-e5751770.js} +25 -27
  18. package/dist/{CircularProgress-e1f22f2a.js → CircularProgress-01a8929e.js} +19 -21
  19. package/dist/{Close-319784e1.js → Close-db7afda5.js} +2 -2
  20. package/dist/Collapse/index.js +10 -12
  21. package/dist/{Collapse-75d5ed79.js → Collapse-547e6c7a.js} +27 -30
  22. package/dist/CopyToClipboard/index.js +24 -26
  23. package/dist/{Dialog-0eadb508.js → Dialog-652a3ad4.js} +19 -21
  24. package/dist/Divider/index.js +7 -8
  25. package/dist/DropZone/index.js +34 -36
  26. package/dist/{Fade-6a96fc41.js → Fade-7ee2c0a4.js} +23 -25
  27. package/dist/FormControl/index.js +12 -13
  28. package/dist/{FormControl-c914b3de.js → FormControl-ca7447ab.js} +13 -15
  29. package/dist/FullScreenDialog/index.js +20 -22
  30. package/dist/Grid/index.js +9 -10
  31. package/dist/{Grid-4cbef6c7.js → Grid-9708b9ca.js} +65 -67
  32. package/dist/{Grow-8a97586f.js → Grow-55d0786d.js} +17 -19
  33. package/dist/{IconButton-b4e677f7.js → IconButton-48d87778.js} +30 -32
  34. package/dist/Input/index.js +27 -29
  35. package/dist/{KdpaAccordions-60fefaf0.js → KdpaAccordions-2ae65dd1.js} +126 -115
  36. package/dist/{KdpaAlertTitle-497100ba.js → KdpaAlertTitle-f1549035.js} +93 -82
  37. package/dist/{KdpaAutoComplete-9c0b8d4d.js → KdpaAutoComplete-8a11974a.js} +237 -234
  38. package/dist/{KdpaAvatar-da84b516.js → KdpaAvatar-d297ef8a.js} +75 -72
  39. package/dist/{KdpaCheckBox-d06c93b0.js → KdpaCheckBox-84d56486.js} +33 -30
  40. package/dist/KdpaChip-10899788.js +51 -0
  41. package/dist/KdpaCircularProgress-6c4605cd.js +76 -0
  42. package/dist/KdpaCollapse-2d23c312.js +12 -0
  43. package/dist/KdpaCollapse-73c03e02.js +23 -0
  44. package/dist/{KdpaCopyToClipboard-2c36d593.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
  45. package/dist/{KdpaDateTimePicker-8e9da3c8.js → KdpaDateTimePicker-cb4a16d0.js} +10530 -13197
  46. package/dist/{KdpaDivider-10de74db.js → KdpaDivider-1c62c65a.js} +95 -84
  47. package/dist/{KdpaDropZone-85943160.js → KdpaDropZone-b21d2304.js} +631 -531
  48. package/dist/KdpaFormControl-135b070d.js +10 -0
  49. package/dist/{KdpaFormControlLabel-8a6ff2a6.js → KdpaFormControlLabel-249b7622.js} +57 -54
  50. package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
  51. package/dist/KdpaGrid-2a3f9346.js +12 -0
  52. package/dist/{KdpaGridBadge-d8a8e388.js → KdpaGridBadge-65b88a7a.js} +123 -104
  53. package/dist/KdpaIconButton-a0ee669c.js +35 -0
  54. package/dist/KdpaInputMultiline-231a2be1.js +68 -0
  55. package/dist/{KdpaLazyDrop-347b6e24.js → KdpaLazyDrop-1985fc75.js} +254 -217
  56. package/dist/KdpaMenuItem-99cde871.js +56 -0
  57. package/dist/{KdpaSimpleModal-6ab72b9c.js → KdpaModalImage-eb732bf0.js} +176 -185
  58. package/dist/{KdpaPaginationGrid-6e4cd782.js → KdpaPaginationGrid-97a5b164.js} +343 -283
  59. package/dist/{KdpaRadioGroup-de6c67d4.js → KdpaRadioGroup-87122ec7.js} +129 -122
  60. package/dist/{KdpaRtlProvider-d7cc5029.js → KdpaRtlProvider-495e4bb0.js} +169 -162
  61. package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
  62. package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
  63. package/dist/{KdpaSlider-93a991f0.js → KdpaSlider-b7226e20.js} +196 -182
  64. package/dist/{KdpaSwitch-2f07cd38.js → KdpaSwitch-b2ba7c23.js} +50 -43
  65. package/dist/KdpaTabs-ab618f36.js +50 -0
  66. package/dist/{KdpaTooltip-e30e1eea.js → KdpaTooltip-653424c7.js} +95 -88
  67. package/dist/{KdpaTree-8428a368.js → KdpaTree-2e1df83d.js} +348 -304
  68. package/dist/{KdpaTreeSelect-7fe5581c.js → KdpaTreeSelect-0152302e.js} +625 -609
  69. package/dist/KdpaTypography-763c3238.js +10 -0
  70. package/dist/KdpaZoom-1b0f3404.js +22 -0
  71. package/dist/KpdaPrimaryButton-5416aa2c.js +79 -0
  72. package/dist/LazyDrop/index.js +24 -24
  73. package/dist/{ListItem-da6701a3.js → ListItem-ddec0b28.js} +14 -16
  74. package/dist/Loading/KdpaProgress/index.js +12 -13
  75. package/dist/Loading/index.js +11 -12
  76. package/dist/{MenuItem-b9a45c1d.js → MenuItem-057c85a3.js} +44 -46
  77. package/dist/Modal/index.d.ts +0 -2
  78. package/dist/Modal/index.d.ts.map +1 -1
  79. package/dist/Modal/index.js +3 -17
  80. package/dist/{Modal-1e4a342f.js → Modal-daf2a588.js} +18 -20
  81. package/dist/PaginationGrid/index.js +33 -34
  82. package/dist/{Paper-ad7ba238.js → Paper-00aea968.js} +16 -18
  83. package/dist/Pickers/index.d.ts +2 -1
  84. package/dist/Pickers/index.d.ts.map +1 -1
  85. package/dist/Pickers/index.js +43 -45
  86. package/dist/{Popper-20f4d1e9.js → Popper-7adcd815.js} +13 -15
  87. package/dist/{Portal-1b00a402.js → Portal-de5e310c.js} +6 -7
  88. package/dist/Radio/index.js +14 -15
  89. package/dist/Selects/index.js +39 -40
  90. package/dist/{Slide-d61a6d2b.js → Slide-803fd098.js} +17 -19
  91. package/dist/Slider/index.js +8 -9
  92. package/dist/Switch/index.js +12 -13
  93. package/dist/{SwitchBase-e8b18f94.js → SwitchBase-64e5662e.js} +14 -16
  94. package/dist/Tabs/index.js +16 -17
  95. package/dist/{Tabs-1cc5862d.js → Tabs-1140d353.js} +87 -89
  96. package/dist/{TextField-c2c0172a.js → TextField-57c51dbe.js} +52 -54
  97. package/dist/ThemeProvider/index.js +7 -8
  98. package/dist/Tooltips/index.js +16 -18
  99. package/dist/{TransitionGroup-68fd1866.js → TransitionGroup-f9877c5b.js} +2 -2
  100. package/dist/Transitions/index.js +22 -24
  101. package/dist/Tree/index.js +2 -2
  102. package/dist/TreeSelect/index.js +3 -3
  103. package/dist/Typography/index.js +8 -9
  104. package/dist/{Typography-9a28b393.js → Typography-db7e5ea2.js} +42 -44
  105. package/dist/{Zoom-64a4beac.js → Zoom-36a189bb.js} +22 -24
  106. package/dist/{createSvgIcon-5cb90f79.js → createSvgIcon-1aa1b2b2.js} +20 -22
  107. package/dist/{dividerClasses-6f4cb6be.js → dividerClasses-a9b8b1ae.js} +2 -2
  108. package/dist/{elementAcceptingRef-332a290a.js → elementAcceptingRef-bd96c731.js} +1 -1
  109. package/dist/{elementTypeAcceptingRef-05dea79e.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
  110. package/dist/{emotion-react.browser.esm-921c014a.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
  111. package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
  112. package/dist/{extendSxProp-eacd850e.js → extendSxProp-d294b946.js} +2 -2
  113. package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
  114. package/dist/identifier-2647f844.js +3775 -0
  115. package/dist/{index-456f3e1b.js → index-5f8afc53.js} +5 -5
  116. package/dist/index.js +140 -142
  117. package/dist/jsx-dev-runtime-48fdc504.js +615 -0
  118. package/dist/kdpaSelect-4ed993c7.js +1 -0
  119. package/dist/{listItemTextClasses-f7759ba4.js → listItemTextClasses-da281500.js} +2 -2
  120. package/dist/{refType-7c2b090c.js → refType-450337d6.js} +1 -1
  121. package/dist/style.css +1 -1
  122. package/dist/{useSlotProps-db1ead27.js → useSlotProps-3b927bcb.js} +2 -2
  123. package/dist/{useTheme-2bb6b2df.js → useTheme-6ea322ec.js} +2 -2
  124. package/dist/{useThemeProps-114e8d66.js → useThemeProps-ea792506.js} +11 -11
  125. package/dist/{Transition-2ecbc61d.js → utils-acd98a68.js} +113 -98
  126. package/package.json +90 -87
  127. package/dist/KdpaChip-f94c5b7e.js +0 -31
  128. package/dist/KdpaCircularProgress-aed28149.js +0 -44
  129. package/dist/KdpaCollapse-73e5e40c.js +0 -8
  130. package/dist/KdpaCollapse-7f12a32a.js +0 -11
  131. package/dist/KdpaFormControl-ae8f7241.js +0 -6
  132. package/dist/KdpaFullScreenDialog-f60e21f3.js +0 -16
  133. package/dist/KdpaGrid-b93fab29.js +0 -8
  134. package/dist/KdpaIconButton-f5146164.js +0 -23
  135. package/dist/KdpaInputMultiline-71dfbfe5.js +0 -48
  136. package/dist/KdpaMenuItem-9a9ece89.js +0 -35
  137. package/dist/KdpaSecondaryButton-9b81f97d.js +0 -28
  138. package/dist/KdpaSkeleton-4696fadd.js +0 -541
  139. package/dist/KdpaTabs-a76a17a7.js +0 -38
  140. package/dist/KdpaTypography-17403558.js +0 -6
  141. package/dist/KdpaZoom-96a648cb.js +0 -10
  142. package/dist/KpdaPrimaryButton-9a5d8d6d.js +0 -47
  143. package/dist/Sanitizer/index.d.ts +0 -3
  144. package/dist/Sanitizer/index.d.ts.map +0 -1
  145. package/dist/Sanitizer/index.js +0 -492
  146. package/dist/identifier-5cabf5ae.js +0 -2481
  147. package/dist/index-f4329b29.js +0 -669
  148. package/dist/jsx-runtime-944c88e2.js +0 -631
  149. package/dist/utils-8a7b223e.js +0 -18
@@ -1,143 +1,142 @@
1
- import { j as n } from "./jsx-runtime-944c88e2.js";
2
- import { e as U } from "./index-456f3e1b.js";
3
- import { K as aa, a as A } from "./KdpaMenuItem-9a9ece89.js";
4
- import { a as _, _ as p } from "./extends-393586f3.js";
1
+ import { j as g } from "./jsx-dev-runtime-48fdc504.js";
2
+ import { e as K } from "./index-5f8afc53.js";
3
+ import { K as ea, a as F } from "./KdpaMenuItem-99cde871.js";
4
+ import { _ as V, a as d } from "./extends-135d7828.js";
5
5
  import * as S from "react";
6
- import { P as t } from "./index-f4329b29.js";
7
- import { g as w, s as T, u as D, c as W, a as H } from "./useThemeProps-114e8d66.js";
8
- import { g as q, a as I, c as k } from "./identifier-5cabf5ae.js";
9
- import { u as ea } from "./useControlled-cc2d41cb.js";
10
- import { i as R } from "./Paper-ad7ba238.js";
11
- import { u as ta } from "./useTheme-2bb6b2df.js";
12
- import { c as F } from "./createSvgIcon-5cb90f79.js";
13
- import { B as oa } from "./ButtonBase-496494a5.js";
14
- function sa(a) {
15
- return q("MuiPagination", a);
6
+ import { g as w, j as m, a as I, P as o, c as B } from "./identifier-2647f844.js";
7
+ import { g as H, s as D, u as q, c as E, a as J } from "./useThemeProps-ea792506.js";
8
+ import { u as oa } from "./useControlled-cc2d41cb.js";
9
+ import { i as L } from "./Paper-00aea968.js";
10
+ import { u as na } from "./useTheme-6ea322ec.js";
11
+ import { c as R } from "./createSvgIcon-1aa1b2b2.js";
12
+ import { B as ta } from "./ButtonBase-fa4630c8.js";
13
+ function ia(a) {
14
+ return w("MuiPagination", a);
16
15
  }
17
- w("MuiPagination", ["root", "ul", "outlined", "text"]);
18
- const na = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
19
- function ia(a = {}) {
16
+ H("MuiPagination", ["root", "ul", "outlined", "text"]);
17
+ const sa = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
18
+ function ra(a = {}) {
20
19
  const {
21
20
  boundaryCount: e = 1,
22
- componentName: o = "usePagination",
23
- count: s = 1,
24
- defaultPage: d = 1,
21
+ componentName: n = "usePagination",
22
+ count: t = 1,
23
+ defaultPage: c = 1,
25
24
  disabled: f = !1,
26
- hideNextButton: b = !1,
27
- hidePrevButton: c = !1,
25
+ hideNextButton: v = !1,
26
+ hidePrevButton: l = !1,
28
27
  onChange: i,
29
- page: g,
30
- showFirstButton: $ = !1,
31
- showLastButton: j = !1,
32
- siblingCount: m = 1
33
- } = a, u = _(a, na), [l, z] = ea({
34
- controlled: g,
35
- default: d,
36
- name: o,
28
+ page: u,
29
+ showFirstButton: C = !1,
30
+ showLastButton: T = !1,
31
+ siblingCount: P = 1
32
+ } = a, p = V(a, sa), [r, j] = oa({
33
+ controlled: u,
34
+ default: c,
35
+ name: n,
37
36
  state: "page"
38
- }), O = (r, C) => {
39
- g || z(C), i && i(r, C);
40
- }, x = (r, C) => {
41
- const Y = C - r + 1;
37
+ }), $ = (s, h) => {
38
+ u || j(h), i && i(s, h);
39
+ }, x = (s, h) => {
40
+ const Z = h - s + 1;
42
41
  return Array.from({
43
- length: Y
44
- }, (Ca, Z) => r + Z);
45
- }, N = x(1, Math.min(e, s)), y = x(Math.max(s - e + 1, e + 1), s), M = Math.max(
42
+ length: Z
43
+ }, (ha, aa) => s + aa);
44
+ }, O = x(1, Math.min(e, t)), y = x(Math.max(t - e + 1, e + 1), t), z = Math.max(
46
45
  Math.min(
47
46
  // Natural start
48
- l - m,
47
+ r - P,
49
48
  // Lower boundary when page is high
50
- s - e - m * 2 - 1
49
+ t - e - P * 2 - 1
51
50
  ),
52
51
  // Greater than startPages
53
52
  e + 2
54
- ), h = Math.min(
53
+ ), k = Math.min(
55
54
  Math.max(
56
55
  // Natural end
57
- l + m,
56
+ r + P,
58
57
  // Upper boundary when page is low
59
- e + m * 2 + 2
58
+ e + P * 2 + 2
60
59
  ),
61
60
  // Less than endPages
62
- y.length > 0 ? y[0] - 2 : s - 1
63
- ), L = [
64
- ...$ ? ["first"] : [],
65
- ...c ? [] : ["previous"],
66
- ...N,
61
+ y.length > 0 ? y[0] - 2 : t - 1
62
+ ), M = [
63
+ ...C ? ["first"] : [],
64
+ ...l ? [] : ["previous"],
65
+ ...O,
67
66
  // Start ellipsis
68
67
  // eslint-disable-next-line no-nested-ternary
69
- ...M > e + 2 ? ["start-ellipsis"] : e + 1 < s - e ? [e + 1] : [],
68
+ ...z > e + 2 ? ["start-ellipsis"] : e + 1 < t - e ? [e + 1] : [],
70
69
  // Sibling pages
71
- ...x(M, h),
70
+ ...x(z, k),
72
71
  // End ellipsis
73
72
  // eslint-disable-next-line no-nested-ternary
74
- ...h < s - e - 1 ? ["end-ellipsis"] : s - e > e ? [s - e] : [],
73
+ ...k < t - e - 1 ? ["end-ellipsis"] : t - e > e ? [t - e] : [],
75
74
  ...y,
76
- ...b ? [] : ["next"],
77
- ...j ? ["last"] : []
78
- ], B = (r) => {
79
- switch (r) {
75
+ ...v ? [] : ["next"],
76
+ ...T ? ["last"] : []
77
+ ], G = (s) => {
78
+ switch (s) {
80
79
  case "first":
81
80
  return 1;
82
81
  case "previous":
83
- return l - 1;
82
+ return r - 1;
84
83
  case "next":
85
- return l + 1;
84
+ return r + 1;
86
85
  case "last":
87
- return s;
86
+ return t;
88
87
  default:
89
88
  return null;
90
89
  }
91
- }, P = L.map((r) => typeof r == "number" ? {
92
- onClick: (C) => {
93
- O(C, r);
90
+ }, N = M.map((s) => typeof s == "number" ? {
91
+ onClick: (h) => {
92
+ $(h, s);
94
93
  },
95
94
  type: "page",
96
- page: r,
97
- selected: r === l,
95
+ page: s,
96
+ selected: s === r,
98
97
  disabled: f,
99
- "aria-current": r === l ? "true" : void 0
98
+ "aria-current": s === r ? "true" : void 0
100
99
  } : {
101
- onClick: (C) => {
102
- O(C, B(r));
100
+ onClick: (h) => {
101
+ $(h, G(s));
103
102
  },
104
- type: r,
105
- page: B(r),
103
+ type: s,
104
+ page: G(s),
106
105
  selected: !1,
107
- disabled: f || r.indexOf("ellipsis") === -1 && (r === "next" || r === "last" ? l >= s : l <= 1)
106
+ disabled: f || s.indexOf("ellipsis") === -1 && (s === "next" || s === "last" ? r >= t : r <= 1)
108
107
  });
109
- return p({
110
- items: P
111
- }, u);
108
+ return d({
109
+ items: N
110
+ }, p);
112
111
  }
113
- function ra(a) {
114
- return q("MuiPaginationItem", a);
112
+ function la(a) {
113
+ return w("MuiPaginationItem", a);
115
114
  }
116
- const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon"]), v = la, E = F(/* @__PURE__ */ n.jsx("path", {
115
+ const ca = H("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon"]), b = ca, W = R(/* @__PURE__ */ m.jsx("path", {
117
116
  d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
118
- }), "FirstPage"), V = F(/* @__PURE__ */ n.jsx("path", {
117
+ }), "FirstPage"), _ = R(/* @__PURE__ */ m.jsx("path", {
119
118
  d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
120
- }), "LastPage"), K = F(/* @__PURE__ */ n.jsx("path", {
119
+ }), "LastPage"), U = R(/* @__PURE__ */ m.jsx("path", {
121
120
  d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
122
- }), "NavigateBefore"), G = F(/* @__PURE__ */ n.jsx("path", {
121
+ }), "NavigateBefore"), A = R(/* @__PURE__ */ m.jsx("path", {
123
122
  d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
124
- }), "NavigateNext"), ca = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"], J = (a, e) => {
123
+ }), "NavigateNext"), da = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"], Q = (a, e) => {
125
124
  const {
126
- ownerState: o
125
+ ownerState: n
127
126
  } = a;
128
- return [e.root, e[o.variant], e[`size${k(o.size)}`], o.variant === "text" && e[`text${k(o.color)}`], o.variant === "outlined" && e[`outlined${k(o.color)}`], o.shape === "rounded" && e.rounded, o.type === "page" && e.page, (o.type === "start-ellipsis" || o.type === "end-ellipsis") && e.ellipsis, (o.type === "previous" || o.type === "next") && e.previousNext, (o.type === "first" || o.type === "last") && e.firstLast];
129
- }, da = (a) => {
127
+ return [e.root, e[n.variant], e[`size${B(n.size)}`], n.variant === "text" && e[`text${B(n.color)}`], n.variant === "outlined" && e[`outlined${B(n.color)}`], n.shape === "rounded" && e.rounded, n.type === "page" && e.page, (n.type === "start-ellipsis" || n.type === "end-ellipsis") && e.ellipsis, (n.type === "previous" || n.type === "next") && e.previousNext, (n.type === "first" || n.type === "last") && e.firstLast];
128
+ }, pa = (a) => {
130
129
  const {
131
130
  classes: e,
132
- color: o,
133
- disabled: s,
134
- selected: d,
131
+ color: n,
132
+ disabled: t,
133
+ selected: c,
135
134
  size: f,
136
- shape: b,
137
- type: c,
135
+ shape: v,
136
+ type: l,
138
137
  variant: i
139
- } = a, g = {
140
- root: ["root", `size${k(f)}`, i, b, o !== "standard" && `${i}${k(o)}`, s && "disabled", d && "selected", {
138
+ } = a, u = {
139
+ root: ["root", `size${B(f)}`, i, v, n !== "standard" && `${i}${B(n)}`, t && "disabled", c && "selected", {
141
140
  page: "page",
142
141
  first: "firstLast",
143
142
  last: "firstLast",
@@ -145,18 +144,18 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
145
144
  "end-ellipsis": "ellipsis",
146
145
  previous: "previousNext",
147
146
  next: "previousNext"
148
- }[c]],
147
+ }[l]],
149
148
  icon: ["icon"]
150
149
  };
151
- return H(g, ra, e);
152
- }, pa = T("div", {
150
+ return J(u, la, e);
151
+ }, ua = D("div", {
153
152
  name: "MuiPaginationItem",
154
153
  slot: "Root",
155
- overridesResolver: J
154
+ overridesResolver: Q
156
155
  })(({
157
156
  theme: a,
158
157
  ownerState: e
159
- }) => p({}, a.typography.body2, {
158
+ }) => d({}, a.typography.body2, {
160
159
  borderRadius: 32 / 2,
161
160
  textAlign: "center",
162
161
  boxSizing: "border-box",
@@ -165,7 +164,7 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
165
164
  margin: "0 3px",
166
165
  color: (a.vars || a).palette.text.primary,
167
166
  height: "auto",
168
- [`&.${v.disabled}`]: {
167
+ [`&.${b.disabled}`]: {
169
168
  opacity: (a.vars || a).palette.action.disabledOpacity
170
169
  }
171
170
  }, e.size === "small" && {
@@ -178,14 +177,14 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
178
177
  borderRadius: 40 / 2,
179
178
  padding: "0 10px",
180
179
  fontSize: a.typography.pxToRem(15)
181
- })), ua = T(oa, {
180
+ })), ga = D(ta, {
182
181
  name: "MuiPaginationItem",
183
182
  slot: "Root",
184
- overridesResolver: J
183
+ overridesResolver: Q
185
184
  })(({
186
185
  theme: a,
187
186
  ownerState: e
188
- }) => p({}, a.typography.body2, {
187
+ }) => d({}, a.typography.body2, {
189
188
  borderRadius: 32 / 2,
190
189
  textAlign: "center",
191
190
  boxSizing: "border-box",
@@ -194,10 +193,10 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
194
193
  padding: "0 6px",
195
194
  margin: "0 3px",
196
195
  color: (a.vars || a).palette.text.primary,
197
- [`&.${v.focusVisible}`]: {
196
+ [`&.${b.focusVisible}`]: {
198
197
  backgroundColor: (a.vars || a).palette.action.focus
199
198
  },
200
- [`&.${v.disabled}`]: {
199
+ [`&.${b.disabled}`]: {
201
200
  opacity: (a.vars || a).palette.action.disabledOpacity
202
201
  },
203
202
  transition: a.transitions.create(["color", "background-color"], {
@@ -210,7 +209,7 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
210
209
  backgroundColor: "transparent"
211
210
  }
212
211
  },
213
- [`&.${v.selected}`]: {
212
+ [`&.${b.selected}`]: {
214
213
  backgroundColor: (a.vars || a).palette.action.selected,
215
214
  "&:hover": {
216
215
  backgroundColor: a.vars ? `rgba(${a.vars.palette.action.selected} / calc(${a.vars.palette.action.selectedOpacity} + ${a.vars.palette.action.hoverOpacity}))` : I(a.palette.action.selected, a.palette.action.selectedOpacity + a.palette.action.hoverOpacity),
@@ -219,10 +218,10 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
219
218
  backgroundColor: (a.vars || a).palette.action.selected
220
219
  }
221
220
  },
222
- [`&.${v.focusVisible}`]: {
221
+ [`&.${b.focusVisible}`]: {
223
222
  backgroundColor: a.vars ? `rgba(${a.vars.palette.action.selected} / calc(${a.vars.palette.action.selectedOpacity} + ${a.vars.palette.action.focusOpacity}))` : I(a.palette.action.selected, a.palette.action.selectedOpacity + a.palette.action.focusOpacity)
224
223
  },
225
- [`&.${v.disabled}`]: {
224
+ [`&.${b.disabled}`]: {
226
225
  opacity: 1,
227
226
  color: (a.vars || a).palette.action.disabled,
228
227
  backgroundColor: (a.vars || a).palette.action.selected
@@ -245,8 +244,8 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
245
244
  }), ({
246
245
  theme: a,
247
246
  ownerState: e
248
- }) => p({}, e.variant === "text" && {
249
- [`&.${v.selected}`]: p({}, e.color !== "standard" && {
247
+ }) => d({}, e.variant === "text" && {
248
+ [`&.${b.selected}`]: d({}, e.color !== "standard" && {
250
249
  color: (a.vars || a).palette[e.color].contrastText,
251
250
  backgroundColor: (a.vars || a).palette[e.color].main,
252
251
  "&:hover": {
@@ -256,17 +255,17 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
256
255
  backgroundColor: (a.vars || a).palette[e.color].main
257
256
  }
258
257
  },
259
- [`&.${v.focusVisible}`]: {
258
+ [`&.${b.focusVisible}`]: {
260
259
  backgroundColor: (a.vars || a).palette[e.color].dark
261
260
  }
262
261
  }, {
263
- [`&.${v.disabled}`]: {
262
+ [`&.${b.disabled}`]: {
264
263
  color: (a.vars || a).palette.action.disabled
265
264
  }
266
265
  })
267
266
  }, e.variant === "outlined" && {
268
267
  border: a.vars ? `1px solid rgba(${a.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${a.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
269
- [`&.${v.selected}`]: p({}, e.color !== "standard" && {
268
+ [`&.${b.selected}`]: d({}, e.color !== "standard" && {
270
269
  color: (a.vars || a).palette[e.color].main,
271
270
  border: `1px solid ${a.vars ? `rgba(${a.vars.palette[e.color].mainChannel} / 0.5)` : I(a.palette[e.color].main, 0.5)}`,
272
271
  backgroundColor: a.vars ? `rgba(${a.vars.palette[e.color].mainChannel} / ${a.vars.palette.action.activatedOpacity})` : I(a.palette[e.color].main, a.palette.action.activatedOpacity),
@@ -277,85 +276,85 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
277
276
  backgroundColor: "transparent"
278
277
  }
279
278
  },
280
- [`&.${v.focusVisible}`]: {
279
+ [`&.${b.focusVisible}`]: {
281
280
  backgroundColor: a.vars ? `rgba(${a.vars.palette[e.color].mainChannel} / calc(${a.vars.palette.action.activatedOpacity} + ${a.vars.palette.action.focusOpacity}))` : I(a.palette[e.color].main, a.palette.action.activatedOpacity + a.palette.action.focusOpacity)
282
281
  }
283
282
  }, {
284
- [`&.${v.disabled}`]: {
283
+ [`&.${b.disabled}`]: {
285
284
  borderColor: (a.vars || a).palette.action.disabledBackground,
286
285
  color: (a.vars || a).palette.action.disabled
287
286
  }
288
287
  })
289
- })), ga = T("div", {
288
+ })), ba = D("div", {
290
289
  name: "MuiPaginationItem",
291
290
  slot: "Icon",
292
291
  overridesResolver: (a, e) => e.icon
293
292
  })(({
294
293
  theme: a,
295
294
  ownerState: e
296
- }) => p({
295
+ }) => d({
297
296
  fontSize: a.typography.pxToRem(20),
298
297
  margin: "0 -8px"
299
298
  }, e.size === "small" && {
300
299
  fontSize: a.typography.pxToRem(18)
301
300
  }, e.size === "large" && {
302
301
  fontSize: a.typography.pxToRem(22)
303
- })), Q = /* @__PURE__ */ S.forwardRef(function(e, o) {
304
- const s = D({
302
+ })), X = /* @__PURE__ */ S.forwardRef(function(e, n) {
303
+ const t = q({
305
304
  props: e,
306
305
  name: "MuiPaginationItem"
307
306
  }), {
308
- className: d,
307
+ className: c,
309
308
  color: f = "standard",
310
- component: b,
311
- components: c = {},
309
+ component: v,
310
+ components: l = {},
312
311
  disabled: i = !1,
313
- page: g,
314
- selected: $ = !1,
315
- shape: j = "circular",
316
- size: m = "medium",
317
- slots: u = {},
318
- type: l = "page",
319
- variant: z = "text"
320
- } = s, O = _(s, ca), x = p({}, s, {
312
+ page: u,
313
+ selected: C = !1,
314
+ shape: T = "circular",
315
+ size: P = "medium",
316
+ slots: p = {},
317
+ type: r = "page",
318
+ variant: j = "text"
319
+ } = t, $ = V(t, da), x = d({}, t, {
321
320
  color: f,
322
321
  disabled: i,
323
- selected: $,
324
- shape: j,
325
- size: m,
326
- type: l,
327
- variant: z
328
- }), N = ta(), y = da(x), h = (N.direction === "rtl" ? {
329
- previous: u.next || c.next || G,
330
- next: u.previous || c.previous || K,
331
- last: u.first || c.first || E,
332
- first: u.last || c.last || V
322
+ selected: C,
323
+ shape: T,
324
+ size: P,
325
+ type: r,
326
+ variant: j
327
+ }), O = na(), y = pa(x), k = (O.direction === "rtl" ? {
328
+ previous: p.next || l.next || A,
329
+ next: p.previous || l.previous || U,
330
+ last: p.first || l.first || W,
331
+ first: p.last || l.last || _
333
332
  } : {
334
- previous: u.previous || c.previous || K,
335
- next: u.next || c.next || G,
336
- first: u.first || c.first || E,
337
- last: u.last || c.last || V
338
- })[l];
339
- return l === "start-ellipsis" || l === "end-ellipsis" ? /* @__PURE__ */ n.jsx(pa, {
340
- ref: o,
333
+ previous: p.previous || l.previous || U,
334
+ next: p.next || l.next || A,
335
+ first: p.first || l.first || W,
336
+ last: p.last || l.last || _
337
+ })[r];
338
+ return r === "start-ellipsis" || r === "end-ellipsis" ? /* @__PURE__ */ m.jsx(ua, {
339
+ ref: n,
341
340
  ownerState: x,
342
- className: W(y.root, d),
341
+ className: E(y.root, c),
343
342
  children: "…"
344
- }) : /* @__PURE__ */ n.jsxs(ua, p({
345
- ref: o,
343
+ }) : /* @__PURE__ */ m.jsxs(ga, d({
344
+ ref: n,
346
345
  ownerState: x,
347
- component: b,
346
+ component: v,
348
347
  disabled: i,
349
- className: W(y.root, d)
350
- }, O, {
351
- children: [l === "page" && g, h ? /* @__PURE__ */ n.jsx(ga, {
352
- as: h,
348
+ className: E(y.root, c)
349
+ }, $, {
350
+ children: [r === "page" && u, k ? /* @__PURE__ */ m.jsx(ba, {
351
+ as: k,
353
352
  ownerState: x,
354
353
  className: y.icon
355
354
  }) : null]
356
355
  }));
357
356
  });
358
- process.env.NODE_ENV !== "production" && (Q.propTypes = {
357
+ process.env.NODE_ENV !== "production" && (X.propTypes = {
359
358
  // ----------------------------- Warning --------------------------------
360
359
  // | These PropTypes are generated from the TypeScript type definitions |
361
360
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -363,27 +362,27 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
363
362
  /**
364
363
  * @ignore
365
364
  */
366
- children: t.node,
365
+ children: o.node,
367
366
  /**
368
367
  * Override or extend the styles applied to the component.
369
368
  */
370
- classes: t.object,
369
+ classes: o.object,
371
370
  /**
372
371
  * @ignore
373
372
  */
374
- className: t.string,
373
+ className: o.string,
375
374
  /**
376
375
  * The active color.
377
376
  * It supports both default and custom theme colors, which can be added as shown in the
378
377
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
379
378
  * @default 'standard'
380
379
  */
381
- color: t.oneOfType([t.oneOf(["primary", "secondary", "standard"]), t.string]),
380
+ color: o.oneOfType([o.oneOf(["primary", "secondary", "standard"]), o.string]),
382
381
  /**
383
382
  * The component used for the root node.
384
383
  * Either a string to use a HTML element or a component.
385
384
  */
386
- component: t.elementType,
385
+ component: o.elementType,
387
386
  /**
388
387
  * The components used for each slot inside.
389
388
  *
@@ -392,36 +391,36 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
392
391
  *
393
392
  * @default {}
394
393
  */
395
- components: t.shape({
396
- first: t.elementType,
397
- last: t.elementType,
398
- next: t.elementType,
399
- previous: t.elementType
394
+ components: o.shape({
395
+ first: o.elementType,
396
+ last: o.elementType,
397
+ next: o.elementType,
398
+ previous: o.elementType
400
399
  }),
401
400
  /**
402
401
  * If `true`, the component is disabled.
403
402
  * @default false
404
403
  */
405
- disabled: t.bool,
404
+ disabled: o.bool,
406
405
  /**
407
406
  * The current page number.
408
407
  */
409
- page: t.node,
408
+ page: o.node,
410
409
  /**
411
410
  * If `true` the pagination item is selected.
412
411
  * @default false
413
412
  */
414
- selected: t.bool,
413
+ selected: o.bool,
415
414
  /**
416
415
  * The shape of the pagination item.
417
416
  * @default 'circular'
418
417
  */
419
- shape: t.oneOf(["circular", "rounded"]),
418
+ shape: o.oneOf(["circular", "rounded"]),
420
419
  /**
421
420
  * The size of the component.
422
421
  * @default 'medium'
423
422
  */
424
- size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
423
+ size: o.oneOfType([o.oneOf(["small", "medium", "large"]), o.string]),
425
424
  /**
426
425
  * The components used for each slot inside.
427
426
  *
@@ -429,46 +428,46 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
429
428
  *
430
429
  * @default {}
431
430
  */
432
- slots: t.shape({
433
- first: t.elementType,
434
- last: t.elementType,
435
- next: t.elementType,
436
- previous: t.elementType
431
+ slots: o.shape({
432
+ first: o.elementType,
433
+ last: o.elementType,
434
+ next: o.elementType,
435
+ previous: o.elementType
437
436
  }),
438
437
  /**
439
438
  * The system prop that allows defining system overrides as well as additional CSS styles.
440
439
  */
441
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
440
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
442
441
  /**
443
442
  * The type of pagination item.
444
443
  * @default 'page'
445
444
  */
446
- type: t.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
445
+ type: o.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
447
446
  /**
448
447
  * The variant to use.
449
448
  * @default 'text'
450
449
  */
451
- variant: t.oneOfType([t.oneOf(["outlined", "text"]), t.string])
450
+ variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
452
451
  });
453
- const va = Q, fa = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"], ba = (a) => {
452
+ const fa = X, ma = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"], va = (a) => {
454
453
  const {
455
454
  classes: e,
456
- variant: o
455
+ variant: n
457
456
  } = a;
458
- return H({
459
- root: ["root", o],
457
+ return J({
458
+ root: ["root", n],
460
459
  ul: ["ul"]
461
- }, sa, e);
462
- }, xa = T("nav", {
460
+ }, ia, e);
461
+ }, xa = D("nav", {
463
462
  name: "MuiPagination",
464
463
  slot: "Root",
465
464
  overridesResolver: (a, e) => {
466
465
  const {
467
- ownerState: o
466
+ ownerState: n
468
467
  } = a;
469
- return [e.root, e[o.variant]];
468
+ return [e.root, e[n.variant]];
470
469
  }
471
- })({}), ya = T("ul", {
470
+ })({}), ya = D("ul", {
472
471
  name: "MuiPagination",
473
472
  slot: "Ul",
474
473
  overridesResolver: (a, e) => e.ul
@@ -480,73 +479,73 @@ const va = Q, fa = ["boundaryCount", "className", "color", "count", "defaultPage
480
479
  margin: 0,
481
480
  listStyle: "none"
482
481
  });
483
- function ma(a, e, o) {
484
- return a === "page" ? `${o ? "" : "Go to "}page ${e}` : `Go to ${a} page`;
482
+ function Pa(a, e, n) {
483
+ return a === "page" ? `${n ? "" : "Go to "}page ${e}` : `Go to ${a} page`;
485
484
  }
486
- const X = /* @__PURE__ */ S.forwardRef(function(e, o) {
487
- const s = D({
485
+ const Y = /* @__PURE__ */ S.forwardRef(function(e, n) {
486
+ const t = q({
488
487
  props: e,
489
488
  name: "MuiPagination"
490
489
  }), {
491
- boundaryCount: d = 1,
490
+ boundaryCount: c = 1,
492
491
  className: f,
493
- color: b = "standard",
494
- count: c = 1,
492
+ color: v = "standard",
493
+ count: l = 1,
495
494
  defaultPage: i = 1,
496
- disabled: g = !1,
497
- getItemAriaLabel: $ = ma,
498
- hideNextButton: j = !1,
499
- hidePrevButton: m = !1,
500
- renderItem: u = (P) => /* @__PURE__ */ n.jsx(va, p({}, P)),
501
- shape: l = "circular",
502
- showFirstButton: z = !1,
503
- showLastButton: O = !1,
495
+ disabled: u = !1,
496
+ getItemAriaLabel: C = Pa,
497
+ hideNextButton: T = !1,
498
+ hidePrevButton: P = !1,
499
+ renderItem: p = (N) => /* @__PURE__ */ m.jsx(fa, d({}, N)),
500
+ shape: r = "circular",
501
+ showFirstButton: j = !1,
502
+ showLastButton: $ = !1,
504
503
  siblingCount: x = 1,
505
- size: N = "medium",
504
+ size: O = "medium",
506
505
  variant: y = "text"
507
- } = s, M = _(s, fa), {
508
- items: h
509
- } = ia(p({}, s, {
506
+ } = t, z = V(t, ma), {
507
+ items: k
508
+ } = ra(d({}, t, {
510
509
  componentName: "Pagination"
511
- })), L = p({}, s, {
512
- boundaryCount: d,
513
- color: b,
514
- count: c,
510
+ })), M = d({}, t, {
511
+ boundaryCount: c,
512
+ color: v,
513
+ count: l,
515
514
  defaultPage: i,
516
- disabled: g,
517
- getItemAriaLabel: $,
518
- hideNextButton: j,
519
- hidePrevButton: m,
520
- renderItem: u,
521
- shape: l,
522
- showFirstButton: z,
523
- showLastButton: O,
515
+ disabled: u,
516
+ getItemAriaLabel: C,
517
+ hideNextButton: T,
518
+ hidePrevButton: P,
519
+ renderItem: p,
520
+ shape: r,
521
+ showFirstButton: j,
522
+ showLastButton: $,
524
523
  siblingCount: x,
525
- size: N,
524
+ size: O,
526
525
  variant: y
527
- }), B = ba(L);
528
- return /* @__PURE__ */ n.jsx(xa, p({
526
+ }), G = va(M);
527
+ return /* @__PURE__ */ m.jsx(xa, d({
529
528
  "aria-label": "pagination navigation",
530
- className: W(B.root, f),
531
- ownerState: L,
532
- ref: o
533
- }, M, {
534
- children: /* @__PURE__ */ n.jsx(ya, {
535
- className: B.ul,
536
- ownerState: L,
537
- children: h.map((P, r) => /* @__PURE__ */ n.jsx("li", {
538
- children: u(p({}, P, {
539
- color: b,
540
- "aria-label": $(P.type, P.page, P.selected),
541
- shape: l,
542
- size: N,
529
+ className: E(G.root, f),
530
+ ownerState: M,
531
+ ref: n
532
+ }, z, {
533
+ children: /* @__PURE__ */ m.jsx(ya, {
534
+ className: G.ul,
535
+ ownerState: M,
536
+ children: k.map((N, s) => /* @__PURE__ */ m.jsx("li", {
537
+ children: p(d({}, N, {
538
+ color: v,
539
+ "aria-label": C(N.type, N.page, N.selected),
540
+ shape: r,
541
+ size: O,
543
542
  variant: y
544
543
  }))
545
- }, r))
544
+ }, s))
546
545
  })
547
546
  }));
548
547
  });
549
- process.env.NODE_ENV !== "production" && (X.propTypes = {
548
+ process.env.NODE_ENV !== "production" && (Y.propTypes = {
550
549
  // ----------------------------- Warning --------------------------------
551
550
  // | These PropTypes are generated from the TypeScript type definitions |
552
551
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -555,37 +554,37 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
555
554
  * Number of always visible pages at the beginning and end.
556
555
  * @default 1
557
556
  */
558
- boundaryCount: R,
557
+ boundaryCount: L,
559
558
  /**
560
559
  * Override or extend the styles applied to the component.
561
560
  */
562
- classes: t.object,
561
+ classes: o.object,
563
562
  /**
564
563
  * @ignore
565
564
  */
566
- className: t.string,
565
+ className: o.string,
567
566
  /**
568
567
  * The active color.
569
568
  * It supports both default and custom theme colors, which can be added as shown in the
570
569
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
571
570
  * @default 'standard'
572
571
  */
573
- color: t.oneOfType([t.oneOf(["primary", "secondary", "standard"]), t.string]),
572
+ color: o.oneOfType([o.oneOf(["primary", "secondary", "standard"]), o.string]),
574
573
  /**
575
574
  * The total number of pages.
576
575
  * @default 1
577
576
  */
578
- count: R,
577
+ count: L,
579
578
  /**
580
579
  * The page selected by default when the component is uncontrolled.
581
580
  * @default 1
582
581
  */
583
- defaultPage: R,
582
+ defaultPage: L,
584
583
  /**
585
584
  * If `true`, the component is disabled.
586
585
  * @default false
587
586
  */
588
- disabled: t.bool,
587
+ disabled: o.bool,
589
588
  /**
590
589
  * Accepts a function which returns a string value that provides a user-friendly name for the current page.
591
590
  * This is important for screen reader users.
@@ -596,76 +595,77 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
596
595
  * @param {bool} selected If true, the current page is selected.
597
596
  * @returns {string}
598
597
  */
599
- getItemAriaLabel: t.func,
598
+ getItemAriaLabel: o.func,
600
599
  /**
601
600
  * If `true`, hide the next-page button.
602
601
  * @default false
603
602
  */
604
- hideNextButton: t.bool,
603
+ hideNextButton: o.bool,
605
604
  /**
606
605
  * If `true`, hide the previous-page button.
607
606
  * @default false
608
607
  */
609
- hidePrevButton: t.bool,
608
+ hidePrevButton: o.bool,
610
609
  /**
611
610
  * Callback fired when the page is changed.
612
611
  *
613
612
  * @param {React.ChangeEvent<unknown>} event The event source of the callback.
614
613
  * @param {number} page The page selected.
615
614
  */
616
- onChange: t.func,
615
+ onChange: o.func,
617
616
  /**
618
617
  * The current page.
619
618
  */
620
- page: R,
619
+ page: L,
621
620
  /**
622
621
  * Render the item.
623
622
  * @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.
624
623
  * @returns {ReactNode}
625
624
  * @default (item) => <PaginationItem {...item} />
626
625
  */
627
- renderItem: t.func,
626
+ renderItem: o.func,
628
627
  /**
629
628
  * The shape of the pagination items.
630
629
  * @default 'circular'
631
630
  */
632
- shape: t.oneOf(["circular", "rounded"]),
631
+ shape: o.oneOf(["circular", "rounded"]),
633
632
  /**
634
633
  * If `true`, show the first-page button.
635
634
  * @default false
636
635
  */
637
- showFirstButton: t.bool,
636
+ showFirstButton: o.bool,
638
637
  /**
639
638
  * If `true`, show the last-page button.
640
639
  * @default false
641
640
  */
642
- showLastButton: t.bool,
641
+ showLastButton: o.bool,
643
642
  /**
644
643
  * Number of always visible pages before and after the current page.
645
644
  * @default 1
646
645
  */
647
- siblingCount: R,
646
+ siblingCount: L,
648
647
  /**
649
648
  * The size of the component.
650
649
  * @default 'medium'
651
650
  */
652
- size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
651
+ size: o.oneOfType([o.oneOf(["small", "medium", "large"]), o.string]),
653
652
  /**
654
653
  * The system prop that allows defining system overrides as well as additional CSS styles.
655
654
  */
656
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
655
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
657
656
  /**
658
657
  * The variant to use.
659
658
  * @default 'text'
660
659
  */
661
- variant: t.oneOfType([t.oneOf(["outlined", "text"]), t.string])
660
+ variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
662
661
  });
663
- const Pa = X, Ta = ({
662
+ const Na = Y;
663
+ const Ba = ({
664
664
  onChange: a,
665
665
  totalCount: e,
666
- page: o,
667
- pageSize: s,
668
- pageTotalCount: d = [
666
+ page: n,
667
+ pageSize: t,
668
+ pageTotalCount: c = [
669
669
  {
670
670
  value: "5",
671
671
  label: "5"
@@ -685,44 +685,92 @@ const Pa = X, Ta = ({
685
685
  ],
686
686
  disabled: f
687
687
  }) => {
688
- function b(i) {
688
+ function v(i) {
689
689
  a(1, +i.target.value);
690
690
  }
691
- function c(i, g) {
692
- a(g, s);
691
+ function l(i, u) {
692
+ a(u, t);
693
693
  }
694
- return /* @__PURE__ */ n.jsxs("div", { className: "d-flex justify-content-end amirtest my-2", children: [
695
- /* @__PURE__ */ n.jsxs("div", { className: "d-flex justify-content-end ms-2", children: [
696
- /* @__PURE__ */ n.jsx(U.Label, { className: "paginationInput-lable", for: "exampleSelectMulti", children: /* @__PURE__ */ n.jsx("span", { className: "text-muted", children: "تعداد" }) }),
697
- /* @__PURE__ */ n.jsx("div", { className: "ms-1", children: /* @__PURE__ */ n.jsx(
698
- aa,
694
+ return /* @__PURE__ */ g.jsxDEV("div", { className: "kdpa-pagination", children: [
695
+ /* @__PURE__ */ g.jsxDEV("div", { className: "kdpa-pagination-content", children: [
696
+ /* @__PURE__ */ g.jsxDEV(K.Label, { className: "paginationInput-lable", for: "exampleSelectMulti", children: /* @__PURE__ */ g.jsxDEV("span", { className: "text-muted", children: "تعداد" }, void 0, !1, {
697
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
698
+ lineNumber: 54,
699
+ columnNumber: 11
700
+ }, globalThis) }, void 0, !1, {
701
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
702
+ lineNumber: 53,
703
+ columnNumber: 9
704
+ }, globalThis),
705
+ /* @__PURE__ */ g.jsxDEV("div", { className: "kdpa-pagination-container", children: /* @__PURE__ */ g.jsxDEV(
706
+ ea,
699
707
  {
700
- onChange: (i) => b(i),
701
- value: s,
708
+ onChange: (i) => v(i),
709
+ value: t,
702
710
  disabled: f,
703
- children: (d == null ? void 0 : d.length) === 0 ? /* @__PURE__ */ n.jsx(A, { children: "بدون مقدار" }) : d == null ? void 0 : d.map((i, g) => /* @__PURE__ */ n.jsx(A, { value: i == null ? void 0 : i.value, children: i == null ? void 0 : i.label }, g))
704
- }
705
- ) }),
706
- /* @__PURE__ */ n.jsxs(
707
- U.Label,
711
+ children: (c == null ? void 0 : c.length) === 0 ? /* @__PURE__ */ g.jsxDEV(F, { children: "بدون مقدار" }, void 0, !1, {
712
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
713
+ lineNumber: 63,
714
+ columnNumber: 15
715
+ }, globalThis) : c == null ? void 0 : c.map((i, u) => /* @__PURE__ */ g.jsxDEV(F, { value: i == null ? void 0 : i.value, children: i == null ? void 0 : i.label }, u, !1, {
716
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
717
+ lineNumber: 66,
718
+ columnNumber: 17
719
+ }, globalThis))
720
+ },
721
+ void 0,
722
+ !1,
723
+ {
724
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
725
+ lineNumber: 57,
726
+ columnNumber: 11
727
+ },
728
+ globalThis
729
+ ) }, void 0, !1, {
730
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
731
+ lineNumber: 56,
732
+ columnNumber: 9
733
+ }, globalThis),
734
+ /* @__PURE__ */ g.jsxDEV(
735
+ K.Label,
708
736
  {
709
- className: "paginationInput-lable ms-1 me-2",
737
+ className: "paginationInput-lable kdpa-pagination-container-lable",
710
738
  for: "exampleSelectMulti",
711
739
  children: [
712
- /* @__PURE__ */ n.jsx("span", { className: "text-muted me-1", children: "تعداد کل" }),
713
- /* @__PURE__ */ n.jsx("span", { children: e })
740
+ /* @__PURE__ */ g.jsxDEV("span", { className: "text-muted kdpa-pagination-container-span", children: "تعداد کل" }, void 0, !1, {
741
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
742
+ lineNumber: 77,
743
+ columnNumber: 11
744
+ }, globalThis),
745
+ /* @__PURE__ */ g.jsxDEV("span", { children: e }, void 0, !1, {
746
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
747
+ lineNumber: 80,
748
+ columnNumber: 11
749
+ }, globalThis)
714
750
  ]
715
- }
751
+ },
752
+ void 0,
753
+ !0,
754
+ {
755
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
756
+ lineNumber: 73,
757
+ columnNumber: 9
758
+ },
759
+ globalThis
716
760
  )
717
- ] }),
718
- /* @__PURE__ */ n.jsx(
719
- Pa,
761
+ ] }, void 0, !0, {
762
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
763
+ lineNumber: 52,
764
+ columnNumber: 7
765
+ }, globalThis),
766
+ /* @__PURE__ */ g.jsxDEV(
767
+ Na,
720
768
  {
721
769
  variant: "outlined",
722
770
  shape: "rounded",
723
- page: o,
724
- count: Math.ceil(e / s),
725
- onChange: c,
771
+ page: n,
772
+ count: Math.ceil(e / t),
773
+ onChange: l,
726
774
  disabled: f,
727
775
  sx: {
728
776
  "& .MuiPagination-ul li": {
@@ -738,10 +786,22 @@ const Pa = X, Ta = ({
738
786
  borderColor: "#7367F0"
739
787
  }
740
788
  }
741
- }
789
+ },
790
+ void 0,
791
+ !1,
792
+ {
793
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
794
+ lineNumber: 83,
795
+ columnNumber: 7
796
+ },
797
+ globalThis
742
798
  )
743
- ] });
799
+ ] }, void 0, !0, {
800
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
801
+ lineNumber: 51,
802
+ columnNumber: 5
803
+ }, globalThis);
744
804
  };
745
805
  export {
746
- Ta as K
806
+ Ba as K
747
807
  };