@deepnoid/ui 0.0.110 → 0.0.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{chunk-UZL66GNP.mjs → chunk-YRMFIXXC.mjs} +39 -3
- package/dist/components/pagination/index.js +3875 -19
- package/dist/components/pagination/index.mjs +6 -1
- package/dist/components/pagination/pagination.d.mts +1 -0
- package/dist/components/pagination/pagination.d.ts +1 -0
- package/dist/components/pagination/pagination.js +3875 -19
- package/dist/components/pagination/pagination.mjs +6 -1
- package/dist/components/pagination/pagination.test.js +3876 -30
- package/dist/components/pagination/pagination.test.mjs +6 -1
- package/dist/components/select/index.mjs +2 -2
- package/dist/components/select/select.mjs +2 -2
- package/dist/components/select/select.test.mjs +2 -2
- package/dist/index.js +50 -3
- package/dist/index.mjs +30 -16
- package/package.json +1 -1
- package/dist/{chunk-2BCJZILI.mjs → chunk-JN7EGKJL.mjs} +3 -3
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
pagination_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-YRMFIXXC.mjs";
|
|
5
5
|
import "../../chunk-F3HENRVM.mjs";
|
|
6
|
+
import "../../chunk-2GCSFWHD.mjs";
|
|
7
|
+
import "../../chunk-ZNEEYSIK.mjs";
|
|
6
8
|
import {
|
|
7
9
|
render
|
|
8
10
|
} from "../../chunk-FNPWLOGV.mjs";
|
|
11
|
+
import "../../chunk-ZYIIXWVY.mjs";
|
|
12
|
+
import "../../chunk-LCI6RPWE.mjs";
|
|
13
|
+
import "../../chunk-IOCRFIQF.mjs";
|
|
9
14
|
import "../../chunk-E3G5QXSH.mjs";
|
|
10
15
|
import "../../chunk-J725QONZ.mjs";
|
|
11
16
|
import "../../chunk-IZ6II3QA.mjs";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "../../chunk-QCEKPS7U.mjs";
|
|
3
3
|
import {
|
|
4
4
|
select_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-S3QS5B7F.mjs";
|
|
5
|
+
} from "../../chunk-JN7EGKJL.mjs";
|
|
7
6
|
import "../../chunk-RZZWHI6O.mjs";
|
|
7
|
+
import "../../chunk-S3QS5B7F.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
9
|
import "../../chunk-LCI6RPWE.mjs";
|
|
10
10
|
import "../../chunk-IOCRFIQF.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
select_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-S3QS5B7F.mjs";
|
|
4
|
+
} from "../../chunk-JN7EGKJL.mjs";
|
|
6
5
|
import "../../chunk-RZZWHI6O.mjs";
|
|
6
|
+
import "../../chunk-S3QS5B7F.mjs";
|
|
7
7
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
8
8
|
import "../../chunk-LCI6RPWE.mjs";
|
|
9
9
|
import "../../chunk-IOCRFIQF.mjs";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
} from "../../chunk-S4DTK5GI.mjs";
|
|
5
5
|
import {
|
|
6
6
|
select_default
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-S3QS5B7F.mjs";
|
|
7
|
+
} from "../../chunk-JN7EGKJL.mjs";
|
|
9
8
|
import "../../chunk-RZZWHI6O.mjs";
|
|
9
|
+
import "../../chunk-S3QS5B7F.mjs";
|
|
10
10
|
import {
|
|
11
11
|
act,
|
|
12
12
|
render
|
package/dist/index.js
CHANGED
|
@@ -6800,6 +6800,7 @@ var Pagination = (0, import_react19.forwardRef)((originalProps, ref) => {
|
|
|
6800
6800
|
totalPage,
|
|
6801
6801
|
showPageNumber = true,
|
|
6802
6802
|
showPageLabel,
|
|
6803
|
+
showPageInput,
|
|
6803
6804
|
showFirstLastButtons,
|
|
6804
6805
|
handleChangePage
|
|
6805
6806
|
} = props;
|
|
@@ -6812,8 +6813,8 @@ var Pagination = (0, import_react19.forwardRef)((originalProps, ref) => {
|
|
|
6812
6813
|
const slots = (0, import_react19.useMemo)(() => pagination({ ...variantProps }), [variantProps]);
|
|
6813
6814
|
const getBaseProps = (0, import_react19.useCallback)(() => ({ className: slots.base({ class: classNames == null ? void 0 : classNames.base }) }), [slots, classNames]);
|
|
6814
6815
|
const getLabelProps = (0, import_react19.useCallback)(
|
|
6815
|
-
() => ({ className: slots.label({ class: classNames == null ? void 0 : classNames.label }) }),
|
|
6816
|
-
[slots, classNames]
|
|
6816
|
+
() => ({ className: `${slots.label({ class: classNames == null ? void 0 : classNames.label })} + ${showPageInput && " !min-w-[55px]"}` }),
|
|
6817
|
+
[slots, classNames, showPageInput]
|
|
6817
6818
|
);
|
|
6818
6819
|
const getWrapperProps = (0, import_react19.useCallback)(
|
|
6819
6820
|
() => ({ className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }) }),
|
|
@@ -6824,8 +6825,40 @@ var Pagination = (0, import_react19.forwardRef)((originalProps, ref) => {
|
|
|
6824
6825
|
() => ({ className: slots.button({ class: classNames == null ? void 0 : classNames.button }) }),
|
|
6825
6826
|
[slots, classNames]
|
|
6826
6827
|
);
|
|
6828
|
+
const getLabelWrapperProps = (0, import_react19.useCallback)(
|
|
6829
|
+
() => ({
|
|
6830
|
+
className: "flex shrink-0",
|
|
6831
|
+
onSubmit: (e) => {
|
|
6832
|
+
e.preventDefault();
|
|
6833
|
+
if (showPageInput && handleChangePage) {
|
|
6834
|
+
const formData = new FormData(e.target);
|
|
6835
|
+
const page = formData.get("pagination-input");
|
|
6836
|
+
if (page) handleChangePage(+page);
|
|
6837
|
+
}
|
|
6838
|
+
}
|
|
6839
|
+
}),
|
|
6840
|
+
[handleChangePage, showPageInput]
|
|
6841
|
+
);
|
|
6842
|
+
const getInputProps = (0, import_react19.useCallback)(
|
|
6843
|
+
() => ({
|
|
6844
|
+
defaultValue: currentPage,
|
|
6845
|
+
size: "sm",
|
|
6846
|
+
name: "pagination-input",
|
|
6847
|
+
type: "number",
|
|
6848
|
+
max: totalPage,
|
|
6849
|
+
min: 1,
|
|
6850
|
+
classNames: { inputWrapper: "!w-[48px] h-[20px] px-[6px]", input: "input-arrow-hide" }
|
|
6851
|
+
}),
|
|
6852
|
+
[currentPage, totalPage]
|
|
6853
|
+
);
|
|
6827
6854
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { ...getBaseProps(), children: [
|
|
6828
|
-
|
|
6855
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("form", { ...getLabelWrapperProps(), children: [
|
|
6856
|
+
showPageInput && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(input_default, { ...getInputProps() }, `${currentPage}+pagination-input`),
|
|
6857
|
+
showPageLabel && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { ...getLabelProps(), children: [
|
|
6858
|
+
!showPageInput && currentPage,
|
|
6859
|
+
` of ${totalPage}`
|
|
6860
|
+
] })
|
|
6861
|
+
] }),
|
|
6829
6862
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { ...getWrapperProps(), children: [
|
|
6830
6863
|
showFirstLastButtons && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
6831
6864
|
"div",
|
|
@@ -9339,6 +9372,20 @@ var resolveConfig = (themes = {}, defaultTheme, prefix = "deepnoidUi") => {
|
|
|
9339
9372
|
"&::-webkit-scrollbar": {
|
|
9340
9373
|
display: "none"
|
|
9341
9374
|
}
|
|
9375
|
+
},
|
|
9376
|
+
".input-arrow-hide": {
|
|
9377
|
+
"&[type='number']::-webkit-inner-spin-button": {
|
|
9378
|
+
"-webkit-appearance": "none",
|
|
9379
|
+
margin: "0"
|
|
9380
|
+
},
|
|
9381
|
+
"&[type='number']::-webkit-outer-spin-button": {
|
|
9382
|
+
"-webkit-appearance": "none",
|
|
9383
|
+
margin: "0"
|
|
9384
|
+
},
|
|
9385
|
+
"&[type='number']": {
|
|
9386
|
+
"-moz-appearance": "textfield"
|
|
9387
|
+
// Firefox용
|
|
9388
|
+
}
|
|
9342
9389
|
}
|
|
9343
9390
|
};
|
|
9344
9391
|
return resolved;
|
package/dist/index.mjs
CHANGED
|
@@ -22,26 +22,26 @@ import "./chunk-ZOTHPHXA.mjs";
|
|
|
22
22
|
import {
|
|
23
23
|
toast_default
|
|
24
24
|
} from "./chunk-PXUBPWKU.mjs";
|
|
25
|
-
import "./chunk-QCEKPS7U.mjs";
|
|
26
|
-
import {
|
|
27
|
-
select_default
|
|
28
|
-
} from "./chunk-2BCJZILI.mjs";
|
|
29
|
-
import "./chunk-S3QS5B7F.mjs";
|
|
30
|
-
import "./chunk-RZZWHI6O.mjs";
|
|
31
25
|
import "./chunk-MV2WCFK7.mjs";
|
|
32
26
|
import {
|
|
33
27
|
slider_default
|
|
34
28
|
} from "./chunk-A3RWT3JJ.mjs";
|
|
35
|
-
import "./chunk-LVFI2NOH.mjs";
|
|
36
|
-
import {
|
|
37
|
-
switch_default
|
|
38
|
-
} from "./chunk-S3O52LLG.mjs";
|
|
39
29
|
import "./chunk-2UUH2MBF.mjs";
|
|
40
30
|
import {
|
|
41
31
|
table_default
|
|
42
32
|
} from "./chunk-QGZEHOKA.mjs";
|
|
43
33
|
import "./chunk-VWD26TIQ.mjs";
|
|
44
34
|
import "./chunk-PO3ADNA5.mjs";
|
|
35
|
+
import "./chunk-QCEKPS7U.mjs";
|
|
36
|
+
import {
|
|
37
|
+
select_default
|
|
38
|
+
} from "./chunk-JN7EGKJL.mjs";
|
|
39
|
+
import "./chunk-RZZWHI6O.mjs";
|
|
40
|
+
import "./chunk-S3QS5B7F.mjs";
|
|
41
|
+
import "./chunk-LVFI2NOH.mjs";
|
|
42
|
+
import {
|
|
43
|
+
switch_default
|
|
44
|
+
} from "./chunk-S3O52LLG.mjs";
|
|
45
45
|
import "./chunk-7VOQKIIK.mjs";
|
|
46
46
|
import {
|
|
47
47
|
progress_default
|
|
@@ -57,13 +57,13 @@ import {
|
|
|
57
57
|
import "./chunk-7B7LRG5J.mjs";
|
|
58
58
|
import {
|
|
59
59
|
pagination_default
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-YRMFIXXC.mjs";
|
|
61
61
|
import "./chunk-F3HENRVM.mjs";
|
|
62
62
|
import "./chunk-2GCSFWHD.mjs";
|
|
63
63
|
import {
|
|
64
64
|
input_default
|
|
65
65
|
} from "./chunk-ZNEEYSIK.mjs";
|
|
66
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-HAOK24MK.mjs";
|
|
67
67
|
import "./chunk-QZ3LVYJW.mjs";
|
|
68
68
|
import {
|
|
69
69
|
checkbox_default
|
|
@@ -84,16 +84,16 @@ import {
|
|
|
84
84
|
listItem_default
|
|
85
85
|
} from "./chunk-V77MALL4.mjs";
|
|
86
86
|
import "./chunk-NMSDSEBD.mjs";
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import {
|
|
89
|
-
card_default
|
|
90
|
-
} from "./chunk-2ALY3PH5.mjs";
|
|
87
|
+
import "./chunk-VUYUQGLF.mjs";
|
|
91
88
|
import {
|
|
92
89
|
button_group_default
|
|
93
90
|
} from "./chunk-NGQ3MK2J.mjs";
|
|
94
91
|
import {
|
|
95
92
|
button_default
|
|
96
93
|
} from "./chunk-UR64ZUAU.mjs";
|
|
94
|
+
import {
|
|
95
|
+
card_default
|
|
96
|
+
} from "./chunk-2ALY3PH5.mjs";
|
|
97
97
|
import "./chunk-27Y6K5NK.mjs";
|
|
98
98
|
import {
|
|
99
99
|
accordion_default
|
|
@@ -755,6 +755,20 @@ var resolveConfig = (themes = {}, defaultTheme, prefix = "deepnoidUi") => {
|
|
|
755
755
|
"&::-webkit-scrollbar": {
|
|
756
756
|
display: "none"
|
|
757
757
|
}
|
|
758
|
+
},
|
|
759
|
+
".input-arrow-hide": {
|
|
760
|
+
"&[type='number']::-webkit-inner-spin-button": {
|
|
761
|
+
"-webkit-appearance": "none",
|
|
762
|
+
margin: "0"
|
|
763
|
+
},
|
|
764
|
+
"&[type='number']::-webkit-outer-spin-button": {
|
|
765
|
+
"-webkit-appearance": "none",
|
|
766
|
+
margin: "0"
|
|
767
|
+
},
|
|
768
|
+
"&[type='number']": {
|
|
769
|
+
"-moz-appearance": "textfield"
|
|
770
|
+
// Firefox용
|
|
771
|
+
}
|
|
758
772
|
}
|
|
759
773
|
};
|
|
760
774
|
return resolved;
|
package/package.json
CHANGED