@nice2dev/ui 1.0.28 → 1.0.30

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 (107) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/NiceAssessment.doc-BB1rXcVx.cjs +1 -0
  3. package/dist/NiceAssessment.doc-C3QQawiZ.js +23 -0
  4. package/dist/NiceBackupStatusBadge.doc-Bx2bFmBQ.cjs +1 -0
  5. package/dist/NiceBackupStatusBadge.doc-CdDxIQ-M.js +25 -0
  6. package/dist/NiceConfirmDialog-BiTJVR4-.js +81 -0
  7. package/dist/NiceConfirmDialog-Bjw_rN4o.cjs +1 -0
  8. package/dist/NiceConfirmDialog-DPfYwO2B.js +81 -0
  9. package/dist/NiceConfirmDialog-Dyh42OiK.cjs +1 -0
  10. package/dist/NiceErrorBoundary-1H751jK7.cjs +1 -0
  11. package/dist/NiceErrorBoundary-B-txoU3Y.js +709 -0
  12. package/dist/NiceErrorBoundary-BHCKA1h8.cjs +1 -0
  13. package/dist/NiceErrorBoundary-CBxXcleR.js +695 -0
  14. package/dist/NiceExam.doc-BpTJpwGb.js +23 -0
  15. package/dist/NiceExam.doc-Br8pEbQb.cjs +1 -0
  16. package/dist/NiceForm-C8yEx3VV.cjs +382 -0
  17. package/dist/NiceForm-Ci3XG7s7.js +5000 -0
  18. package/dist/NiceForm-DGUTmaZT.js +5014 -0
  19. package/dist/NiceForm-DmU-gmyv.cjs +382 -0
  20. package/dist/NiceModal-BClAtR5T.js +95 -0
  21. package/dist/NiceModal-Crbhc7GB.cjs +1 -0
  22. package/dist/NiceModal-XvEKVVLa.js +95 -0
  23. package/dist/NiceModal-iKwtagFB.cjs +1 -0
  24. package/dist/NiceModuleLifecyclePanel-BO8Hw_W9.js +7619 -0
  25. package/dist/NiceModuleLifecyclePanel-Ch7HRRoy.cjs +1 -0
  26. package/dist/NiceModuleLifecyclePanel-D3k8kAey.js +7582 -0
  27. package/dist/NiceModuleLifecyclePanel-MAyTh_s5.cjs +1 -0
  28. package/dist/NicePagination-BVo-4KAD.js +172 -0
  29. package/dist/NicePagination-CaohvQsY.cjs +1 -0
  30. package/dist/NicePagination-DUnMbROj.cjs +1 -0
  31. package/dist/NicePagination-DyC6dQ7_.js +171 -0
  32. package/dist/NicePinCodeInput-C43eB9h4.js +13102 -0
  33. package/dist/NicePinCodeInput-DsyLuc0b.cjs +696 -0
  34. package/dist/NicePinCodeInput-nuRCN-9R.js +13223 -0
  35. package/dist/NicePinCodeInput-p5IFVwfY.cjs +696 -0
  36. package/dist/NicePoll.doc-DCiXvOb0.js +23 -0
  37. package/dist/NicePoll.doc-IOgqVPhc.cjs +1 -0
  38. package/dist/NicePollLive.doc-CdUyiCyf.js +23 -0
  39. package/dist/NicePollLive.doc-xBMqHeyt.cjs +1 -0
  40. package/dist/NiceQuiz.doc-BhAeGrcP.cjs +1 -0
  41. package/dist/NiceQuiz.doc-BiZq8X1P.js +23 -0
  42. package/dist/NiceSavedQueryPanel-BBFV4qiF.js +6969 -0
  43. package/dist/NiceSavedQueryPanel-CsiVNkCT.cjs +596 -0
  44. package/dist/NiceSavedQueryPanel-DV4a4axz.cjs +596 -0
  45. package/dist/NiceSavedQueryPanel-Dgbn1ExK.js +6893 -0
  46. package/dist/NiceSurvey.doc-9UorYdXy.cjs +1 -0
  47. package/dist/NiceSurvey.doc-CPF1ZEHo.js +23 -0
  48. package/dist/NiceWindow-BehN3PKk.js +1592 -0
  49. package/dist/NiceWindow-Cm9E6EAi.cjs +1 -0
  50. package/dist/NiceWindow-Dqu9ik8A.cjs +1 -0
  51. package/dist/NiceWindow-FMrVS7zo.js +1603 -0
  52. package/dist/charts-B90sSFeJ.cjs +761 -0
  53. package/dist/charts-CJruxLRY.js +4657 -0
  54. package/dist/charts-D8oj6Nf5.cjs +761 -0
  55. package/dist/charts-DaLf19vS.js +4671 -0
  56. package/dist/charts.cjs +1 -1
  57. package/dist/charts.mjs +1 -1
  58. package/dist/core-BIdbG6p3.js +27212 -0
  59. package/dist/core-BUTtIHg0.js +27766 -0
  60. package/dist/core-CESNSRyS.cjs +122 -0
  61. package/dist/core-bzK0ZnUp.cjs +122 -0
  62. package/dist/data-branching-ByQdcjKO.cjs +1 -0
  63. package/dist/data-branching-BzRFsCJu.js +6133 -0
  64. package/dist/data-branching-DahoQa4M.cjs +1 -0
  65. package/dist/data-branching-psTzlcrT.js +6255 -0
  66. package/dist/data-branching.cjs +1 -1
  67. package/dist/data-branching.mjs +1 -1
  68. package/dist/data.cjs +1 -1
  69. package/dist/data.mjs +1 -1
  70. package/dist/devops-C9gdQxuU.cjs +17 -0
  71. package/dist/devops-CaO_4qGz.js +7684 -0
  72. package/dist/devops-D7bQ3rE4.cjs +17 -0
  73. package/dist/devops-jCmpD6O-.js +8165 -0
  74. package/dist/devops.cjs +1 -1
  75. package/dist/devops.mjs +3 -3
  76. package/dist/editors.cjs +1 -1
  77. package/dist/editors.d.ts +4 -0
  78. package/dist/editors.mjs +3 -3
  79. package/dist/feedback.cjs +1 -1
  80. package/dist/feedback.mjs +3 -3
  81. package/dist/index-BK_Uwmz0.js +67774 -0
  82. package/dist/index-BpixglWg.js +69337 -0
  83. package/dist/index-CTbp81RF.cjs +5517 -0
  84. package/dist/index-DLR-aWZR.cjs +5506 -0
  85. package/dist/index.cjs +1 -1
  86. package/dist/index.css +1 -1
  87. package/dist/index.d.ts +796 -545
  88. package/dist/index.mjs +992 -979
  89. package/dist/lazy.cjs +1 -1
  90. package/dist/lazy.mjs +24 -24
  91. package/dist/navigation.cjs +1 -1
  92. package/dist/navigation.mjs +146 -146
  93. package/dist/no-code-B0mG7OQc.cjs +332 -0
  94. package/dist/no-code-BHo5WrXr.js +7425 -0
  95. package/dist/no-code-CikRvKeJ.js +7133 -0
  96. package/dist/no-code-DyA_1_Th.cjs +332 -0
  97. package/dist/no-code.cjs +1 -1
  98. package/dist/no-code.mjs +1 -1
  99. package/dist/overlays.cjs +1 -1
  100. package/dist/overlays.d.ts +4 -0
  101. package/dist/overlays.mjs +66 -66
  102. package/dist/pickerCommons-BEc3pZ_s.js +2044 -0
  103. package/dist/pickerCommons-CqhXp4QL.js +2043 -0
  104. package/dist/pickerCommons-CrITwM88.cjs +1 -0
  105. package/dist/pickerCommons-OsYJhnFE.cjs +1 -0
  106. package/dist/style.css +1 -1
  107. package/package.json +3 -3
@@ -0,0 +1,172 @@
1
+ import { jsxs as m, jsx as i } from "react/jsx-runtime";
2
+ import { o as u } from "./core-BUTtIHg0.js";
3
+ import { b as k } from "./pickerCommons-BEc3pZ_s.js";
4
+ function M(a, e, l) {
5
+ const r = [];
6
+ if (e <= 1)
7
+ return e === 1 && r.push(1), r;
8
+ const s = Math.max(2, a - l), c = Math.min(e - 1, a + l);
9
+ r.push(1), s > 2 && r.push("dots");
10
+ for (let o = s; o <= c; o++)
11
+ r.push(o);
12
+ return c < e - 1 && r.push("dots"), r.push(e), r;
13
+ }
14
+ const z = ({
15
+ page: a,
16
+ totalPages: e,
17
+ onChange: l,
18
+ showInfo: r,
19
+ siblingCount: s = 1,
20
+ size: c = "md",
21
+ showFirstLast: o,
22
+ showJumpInput: h,
23
+ jumpInputLabel: f,
24
+ showPageSize: b,
25
+ pageSizeOptions: d,
26
+ pageSize: N,
27
+ onPageSizeChange: _,
28
+ disabled: t,
29
+ className: v,
30
+ style: g
31
+ }) => {
32
+ const x = M(a, e, s);
33
+ return /* @__PURE__ */ m(
34
+ "nav",
35
+ {
36
+ className: `nice-pagination nice-pagination--${c} ${v || ""}`,
37
+ style: g,
38
+ "aria-label": "Pagination",
39
+ children: [
40
+ o && /* @__PURE__ */ i(
41
+ "button",
42
+ {
43
+ className: "nice-pagination__btn",
44
+ disabled: t || a <= 1,
45
+ onClick: () => l(1),
46
+ "aria-label": "First page",
47
+ title: "First page",
48
+ children: /* @__PURE__ */ i(u, { name: "chevron-left", size: 14 })
49
+ }
50
+ ),
51
+ /* @__PURE__ */ i(
52
+ "button",
53
+ {
54
+ className: "nice-pagination__btn",
55
+ disabled: t || a <= 1,
56
+ onClick: () => l(a - 1),
57
+ "aria-label": "Previous",
58
+ children: /* @__PURE__ */ i("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ i(
59
+ "path",
60
+ {
61
+ fillRule: "evenodd",
62
+ d: "M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z",
63
+ clipRule: "evenodd"
64
+ }
65
+ ) })
66
+ }
67
+ ),
68
+ x.map(
69
+ (n, p) => n === "dots" ? /* @__PURE__ */ i("span", { className: "nice-pagination__ellipsis", children: "…" }, `dots-${p}`) : /* @__PURE__ */ i(
70
+ "button",
71
+ {
72
+ className: `nice-pagination__btn ${n === a ? "nice-pagination__btn--active" : ""}`,
73
+ disabled: t,
74
+ onClick: () => l(n),
75
+ "aria-current": n === a ? "page" : void 0,
76
+ children: n
77
+ },
78
+ n
79
+ )
80
+ ),
81
+ /* @__PURE__ */ i(
82
+ "button",
83
+ {
84
+ className: "nice-pagination__btn",
85
+ disabled: t || a >= e,
86
+ onClick: () => l(a + 1),
87
+ "aria-label": "Next",
88
+ children: /* @__PURE__ */ i("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ i(
89
+ "path",
90
+ {
91
+ fillRule: "evenodd",
92
+ d: "M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",
93
+ clipRule: "evenodd"
94
+ }
95
+ ) })
96
+ }
97
+ ),
98
+ o && /* @__PURE__ */ i(
99
+ "button",
100
+ {
101
+ className: "nice-pagination__btn",
102
+ disabled: t || a >= e,
103
+ onClick: () => l(e),
104
+ "aria-label": "Last page",
105
+ title: "Last page",
106
+ children: /* @__PURE__ */ i(u, { name: "skip-forward", size: 14 })
107
+ }
108
+ ),
109
+ r && /* @__PURE__ */ m("span", { className: "nice-pagination__info", children: [
110
+ a,
111
+ " / ",
112
+ e
113
+ ] }),
114
+ h && /* @__PURE__ */ m(
115
+ "span",
116
+ {
117
+ className: "nice-pagination__jump",
118
+ style: { display: "inline-flex", alignItems: "center", gap: 6, marginLeft: 8 },
119
+ children: [
120
+ /* @__PURE__ */ i("span", { style: { fontSize: "0.85rem", color: "var(--text-secondary)" }, children: f ?? "Go to" }),
121
+ /* @__PURE__ */ i(
122
+ k,
123
+ {
124
+ size: c === "lg" ? "md" : "sm",
125
+ min: 1,
126
+ max: e,
127
+ step: 1,
128
+ value: a,
129
+ disabled: t,
130
+ onChange: (n) => {
131
+ const p = typeof n == "number" ? n : Number(n);
132
+ if (!Number.isNaN(p)) {
133
+ const y = Math.max(1, Math.min(e, Math.floor(p)));
134
+ l(y);
135
+ }
136
+ }
137
+ }
138
+ )
139
+ ]
140
+ }
141
+ ),
142
+ b && d && d.length > 0 && /* @__PURE__ */ i(
143
+ "select",
144
+ {
145
+ className: "nice-pagination__size",
146
+ value: N ?? d[0],
147
+ disabled: t,
148
+ onChange: (n) => _?.(Number(n.target.value)),
149
+ style: {
150
+ marginLeft: 8,
151
+ padding: "4px 8px",
152
+ border: "1px solid var(--border-color)",
153
+ borderRadius: 6,
154
+ background: "var(--bg-primary)",
155
+ color: "var(--text-primary)",
156
+ font: "inherit",
157
+ fontSize: "0.85rem"
158
+ },
159
+ "aria-label": "Rows per page",
160
+ children: d.map((n) => /* @__PURE__ */ m("option", { value: n, children: [
161
+ n,
162
+ " / page"
163
+ ] }, n))
164
+ }
165
+ )
166
+ ]
167
+ }
168
+ );
169
+ };
170
+ export {
171
+ z as N
172
+ };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("react/jsx-runtime"),p=require("./core-CESNSRyS.cjs"),g=require("./pickerCommons-CrITwM88.cjs");function y(e,a,s){const r=[];if(a<=1)return a===1&&r.push(1),r;const o=Math.max(2,e-s),c=Math.min(a-1,e+s);r.push(1),o>2&&r.push("dots");for(let l=o;l<=c;l++)r.push(l);return c<a-1&&r.push("dots"),r.push(a),r}const R=({page:e,totalPages:a,onChange:s,showInfo:r,siblingCount:o=1,size:c="md",showFirstLast:l,showJumpInput:h,jumpInputLabel:m,showPageSize:x,pageSizeOptions:u,pageSize:b,onPageSizeChange:f,disabled:t,className:j,style:N})=>{const _=y(e,a,o);return n.jsxs("nav",{className:`nice-pagination nice-pagination--${c} ${j||""}`,style:N,"aria-label":"Pagination",children:[l&&n.jsx("button",{className:"nice-pagination__btn",disabled:t||e<=1,onClick:()=>s(1),"aria-label":"First page",title:"First page",children:n.jsx(p.oa,{name:"chevron-left",size:14})}),n.jsx("button",{className:"nice-pagination__btn",disabled:t||e<=1,onClick:()=>s(e-1),"aria-label":"Previous",children:n.jsx("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"currentColor",children:n.jsx("path",{fillRule:"evenodd",d:"M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z",clipRule:"evenodd"})})}),_.map((i,d)=>i==="dots"?n.jsx("span",{className:"nice-pagination__ellipsis",children:"…"},`dots-${d}`):n.jsx("button",{className:`nice-pagination__btn ${i===e?"nice-pagination__btn--active":""}`,disabled:t,onClick:()=>s(i),"aria-current":i===e?"page":void 0,children:i},i)),n.jsx("button",{className:"nice-pagination__btn",disabled:t||e>=a,onClick:()=>s(e+1),"aria-label":"Next",children:n.jsx("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"currentColor",children:n.jsx("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})}),l&&n.jsx("button",{className:"nice-pagination__btn",disabled:t||e>=a,onClick:()=>s(a),"aria-label":"Last page",title:"Last page",children:n.jsx(p.oa,{name:"skip-forward",size:14})}),r&&n.jsxs("span",{className:"nice-pagination__info",children:[e," / ",a]}),h&&n.jsxs("span",{className:"nice-pagination__jump",style:{display:"inline-flex",alignItems:"center",gap:6,marginLeft:8},children:[n.jsx("span",{style:{fontSize:"0.85rem",color:"var(--text-secondary)"},children:m??"Go to"}),n.jsx(g.NiceNumberInput,{size:c==="lg"?"md":"sm",min:1,max:a,step:1,value:e,disabled:t,onChange:i=>{const d=typeof i=="number"?i:Number(i);if(!Number.isNaN(d)){const v=Math.max(1,Math.min(a,Math.floor(d)));s(v)}}})]}),x&&u&&u.length>0&&n.jsx("select",{className:"nice-pagination__size",value:b??u[0],disabled:t,onChange:i=>f?.(Number(i.target.value)),style:{marginLeft:8,padding:"4px 8px",border:"1px solid var(--border-color)",borderRadius:6,background:"var(--bg-primary)",color:"var(--text-primary)",font:"inherit",fontSize:"0.85rem"},"aria-label":"Rows per page",children:u.map(i=>n.jsxs("option",{value:i,children:[i," / page"]},i))})]})};exports.NicePagination=R;
@@ -0,0 +1 @@
1
+ "use strict";const n=require("react/jsx-runtime"),g=require("./pickerCommons-OsYJhnFE.cjs");function v(e,a,t){const r=[];if(a<=1)return a===1&&r.push(1),r;const o=Math.max(2,e-t),c=Math.min(a-1,e+t);r.push(1),o>2&&r.push("dots");for(let s=o;s<=c;s++)r.push(s);return c<a-1&&r.push("dots"),r.push(a),r}const y=({page:e,totalPages:a,onChange:t,showInfo:r,siblingCount:o=1,size:c="md",showFirstLast:s,showJumpInput:p,jumpInputLabel:h,showPageSize:m,pageSizeOptions:u,pageSize:x,onPageSizeChange:b,disabled:l,className:f,style:N})=>{const _=v(e,a,o);return n.jsxs("nav",{className:`nice-pagination nice-pagination--${c} ${f||""}`,style:N,"aria-label":"Pagination",children:[s&&n.jsx("button",{className:"nice-pagination__btn",disabled:l||e<=1,onClick:()=>t(1),"aria-label":"First page",title:"First page",children:"⏮"}),n.jsx("button",{className:"nice-pagination__btn",disabled:l||e<=1,onClick:()=>t(e-1),"aria-label":"Previous",children:n.jsx("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"currentColor",children:n.jsx("path",{fillRule:"evenodd",d:"M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z",clipRule:"evenodd"})})}),_.map((i,d)=>i==="dots"?n.jsx("span",{className:"nice-pagination__ellipsis",children:"…"},`dots-${d}`):n.jsx("button",{className:`nice-pagination__btn ${i===e?"nice-pagination__btn--active":""}`,disabled:l,onClick:()=>t(i),"aria-current":i===e?"page":void 0,children:i},i)),n.jsx("button",{className:"nice-pagination__btn",disabled:l||e>=a,onClick:()=>t(e+1),"aria-label":"Next",children:n.jsx("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"currentColor",children:n.jsx("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})}),s&&n.jsx("button",{className:"nice-pagination__btn",disabled:l||e>=a,onClick:()=>t(a),"aria-label":"Last page",title:"Last page",children:"⏭"}),r&&n.jsxs("span",{className:"nice-pagination__info",children:[e," / ",a]}),p&&n.jsxs("span",{className:"nice-pagination__jump",style:{display:"inline-flex",alignItems:"center",gap:6,marginLeft:8},children:[n.jsx("span",{style:{fontSize:"0.85rem",color:"var(--text-secondary)"},children:h??"Go to"}),n.jsx(g.NiceNumberInput,{size:c==="lg"?"md":"sm",min:1,max:a,step:1,value:e,disabled:l,onChange:i=>{const d=typeof i=="number"?i:Number(i);if(!Number.isNaN(d)){const j=Math.max(1,Math.min(a,Math.floor(d)));t(j)}}})]}),m&&u&&u.length>0&&n.jsx("select",{className:"nice-pagination__size",value:x??u[0],disabled:l,onChange:i=>b?.(Number(i.target.value)),style:{marginLeft:8,padding:"4px 8px",border:"1px solid var(--border-color)",borderRadius:6,background:"var(--bg-primary)",color:"var(--text-primary)",font:"inherit",fontSize:"0.85rem"},"aria-label":"Rows per page",children:u.map(i=>n.jsxs("option",{value:i,children:[i," / page"]},i))})]})};exports.NicePagination=y;
@@ -0,0 +1,171 @@
1
+ import { jsxs as u, jsx as e } from "react/jsx-runtime";
2
+ import { b as y } from "./pickerCommons-CqhXp4QL.js";
3
+ function M(i, a, l) {
4
+ const r = [];
5
+ if (a <= 1)
6
+ return a === 1 && r.push(1), r;
7
+ const s = Math.max(2, i - l), o = Math.min(a - 1, i + l);
8
+ r.push(1), s > 2 && r.push("dots");
9
+ for (let c = s; c <= o; c++)
10
+ r.push(c);
11
+ return o < a - 1 && r.push("dots"), r.push(a), r;
12
+ }
13
+ const L = ({
14
+ page: i,
15
+ totalPages: a,
16
+ onChange: l,
17
+ showInfo: r,
18
+ siblingCount: s = 1,
19
+ size: o = "md",
20
+ showFirstLast: c,
21
+ showJumpInput: m,
22
+ jumpInputLabel: h,
23
+ showPageSize: b,
24
+ pageSizeOptions: d,
25
+ pageSize: f,
26
+ onPageSizeChange: N,
27
+ disabled: t,
28
+ className: _,
29
+ style: v
30
+ }) => {
31
+ const g = M(i, a, s);
32
+ return /* @__PURE__ */ u(
33
+ "nav",
34
+ {
35
+ className: `nice-pagination nice-pagination--${o} ${_ || ""}`,
36
+ style: v,
37
+ "aria-label": "Pagination",
38
+ children: [
39
+ c && /* @__PURE__ */ e(
40
+ "button",
41
+ {
42
+ className: "nice-pagination__btn",
43
+ disabled: t || i <= 1,
44
+ onClick: () => l(1),
45
+ "aria-label": "First page",
46
+ title: "First page",
47
+ children: "⏮"
48
+ }
49
+ ),
50
+ /* @__PURE__ */ e(
51
+ "button",
52
+ {
53
+ className: "nice-pagination__btn",
54
+ disabled: t || i <= 1,
55
+ onClick: () => l(i - 1),
56
+ "aria-label": "Previous",
57
+ children: /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ e(
58
+ "path",
59
+ {
60
+ fillRule: "evenodd",
61
+ d: "M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z",
62
+ clipRule: "evenodd"
63
+ }
64
+ ) })
65
+ }
66
+ ),
67
+ g.map(
68
+ (n, p) => n === "dots" ? /* @__PURE__ */ e("span", { className: "nice-pagination__ellipsis", children: "…" }, `dots-${p}`) : /* @__PURE__ */ e(
69
+ "button",
70
+ {
71
+ className: `nice-pagination__btn ${n === i ? "nice-pagination__btn--active" : ""}`,
72
+ disabled: t,
73
+ onClick: () => l(n),
74
+ "aria-current": n === i ? "page" : void 0,
75
+ children: n
76
+ },
77
+ n
78
+ )
79
+ ),
80
+ /* @__PURE__ */ e(
81
+ "button",
82
+ {
83
+ className: "nice-pagination__btn",
84
+ disabled: t || i >= a,
85
+ onClick: () => l(i + 1),
86
+ "aria-label": "Next",
87
+ children: /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ e(
88
+ "path",
89
+ {
90
+ fillRule: "evenodd",
91
+ d: "M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",
92
+ clipRule: "evenodd"
93
+ }
94
+ ) })
95
+ }
96
+ ),
97
+ c && /* @__PURE__ */ e(
98
+ "button",
99
+ {
100
+ className: "nice-pagination__btn",
101
+ disabled: t || i >= a,
102
+ onClick: () => l(a),
103
+ "aria-label": "Last page",
104
+ title: "Last page",
105
+ children: "⏭"
106
+ }
107
+ ),
108
+ r && /* @__PURE__ */ u("span", { className: "nice-pagination__info", children: [
109
+ i,
110
+ " / ",
111
+ a
112
+ ] }),
113
+ m && /* @__PURE__ */ u(
114
+ "span",
115
+ {
116
+ className: "nice-pagination__jump",
117
+ style: { display: "inline-flex", alignItems: "center", gap: 6, marginLeft: 8 },
118
+ children: [
119
+ /* @__PURE__ */ e("span", { style: { fontSize: "0.85rem", color: "var(--text-secondary)" }, children: h ?? "Go to" }),
120
+ /* @__PURE__ */ e(
121
+ y,
122
+ {
123
+ size: o === "lg" ? "md" : "sm",
124
+ min: 1,
125
+ max: a,
126
+ step: 1,
127
+ value: i,
128
+ disabled: t,
129
+ onChange: (n) => {
130
+ const p = typeof n == "number" ? n : Number(n);
131
+ if (!Number.isNaN(p)) {
132
+ const x = Math.max(1, Math.min(a, Math.floor(p)));
133
+ l(x);
134
+ }
135
+ }
136
+ }
137
+ )
138
+ ]
139
+ }
140
+ ),
141
+ b && d && d.length > 0 && /* @__PURE__ */ e(
142
+ "select",
143
+ {
144
+ className: "nice-pagination__size",
145
+ value: f ?? d[0],
146
+ disabled: t,
147
+ onChange: (n) => N?.(Number(n.target.value)),
148
+ style: {
149
+ marginLeft: 8,
150
+ padding: "4px 8px",
151
+ border: "1px solid var(--border-color)",
152
+ borderRadius: 6,
153
+ background: "var(--bg-primary)",
154
+ color: "var(--text-primary)",
155
+ font: "inherit",
156
+ fontSize: "0.85rem"
157
+ },
158
+ "aria-label": "Rows per page",
159
+ children: d.map((n) => /* @__PURE__ */ u("option", { value: n, children: [
160
+ n,
161
+ " / page"
162
+ ] }, n))
163
+ }
164
+ )
165
+ ]
166
+ }
167
+ );
168
+ };
169
+ export {
170
+ L as N
171
+ };