@pnkx-lib/ui 1.1.17 → 1.1.18
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/dist/chunks/AntdIcon-BohCHsd5.js +2268 -0
- package/dist/chunks/{Steps-BpS9WTjP.js → Steps-CNDzmXyL.js} +51 -49
- package/dist/chunks/Switch-Dy3JDxO_.js +14946 -0
- package/dist/fields/index.js +9 -10
- package/dist/index.js +18 -18
- package/dist/ui/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/Checkbox-CXb4qF1Z.js +0 -142
- package/dist/chunks/Switch-DAZukdDR.js +0 -17067
package/dist/fields/index.js
CHANGED
@@ -1,12 +1,11 @@
|
|
1
|
-
import {
|
2
|
-
import { C as l, P as t, R as F, S as c } from "../chunks/Checkbox-CXb4qF1Z.js";
|
1
|
+
import { C as i, D as s, I as d, P as l, R as o, a as r, S as F, T as c } from "../chunks/Switch-Dy3JDxO_.js";
|
3
2
|
export {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
i as CheckboxField,
|
4
|
+
s as DatePickerField,
|
5
|
+
d as Input,
|
6
|
+
l as PnkxField,
|
7
|
+
o as RadioGroup,
|
8
|
+
r as RangePickerField,
|
9
|
+
F as SelectField,
|
10
|
+
c as TinyMCE
|
12
11
|
};
|
package/dist/index.js
CHANGED
@@ -1,39 +1,39 @@
|
|
1
|
-
import { e, g as o, B as r, C as t, f as l, d as i, D as p, F as d, L as n, j as F, M as c, k as C, P as S, R as
|
2
|
-
import {
|
3
|
-
import { C as
|
1
|
+
import { e, g as o, B as r, C as t, f as l, d as i, D as p, F as d, L as n, j as F, M as c, k as C, P as S, R as T, c as P, S as b, h as g, i as k, l as u, T as x, b as M, a as m, t as y } from "./chunks/Steps-CNDzmXyL.js";
|
2
|
+
import { E as f, L as h, T as B } from "./chunks/AntdIcon-BohCHsd5.js";
|
3
|
+
import { C as L, D as E, I as w, P as I, R as j, a as v, S as G, T as q } from "./chunks/Switch-Dy3JDxO_.js";
|
4
4
|
export {
|
5
5
|
e as Badge,
|
6
6
|
o as Breadcrumb,
|
7
7
|
r as Button,
|
8
8
|
t as CascaderField,
|
9
|
-
|
9
|
+
L as CheckboxField,
|
10
10
|
l as Col,
|
11
11
|
i as Container,
|
12
|
-
|
12
|
+
E as DatePickerField,
|
13
13
|
p as Dropdown,
|
14
|
-
|
14
|
+
f as ErrorMessage,
|
15
15
|
d as Flex,
|
16
|
-
|
17
|
-
|
16
|
+
w as Input,
|
17
|
+
h as Label,
|
18
18
|
n as Layout,
|
19
19
|
F as Menu,
|
20
20
|
c as Modal,
|
21
21
|
C as Pagination,
|
22
|
-
|
22
|
+
I as PnkxField,
|
23
23
|
S as Popover,
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
24
|
+
j as RadioGroup,
|
25
|
+
v as RangePickerField,
|
26
|
+
T as Row,
|
27
|
+
P as SearchFiltersForm,
|
28
|
+
G as SelectField,
|
29
29
|
b as Skeleton,
|
30
30
|
g as Space,
|
31
31
|
k as Splitter,
|
32
32
|
u as Steps,
|
33
33
|
x as Table,
|
34
34
|
M as Tabs,
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
q as TinyMCE,
|
36
|
+
m as Tooltip,
|
37
|
+
B as Typography,
|
38
|
+
y as typeColorMap
|
39
39
|
};
|
package/dist/ui/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { e, g as o, B as r, C as t, f as l, d as p, D as i, F as n, L as d, j as S, M as T, k as b, P as c, R as g, c as C, S as F, h as M, i as m, l as u, T as y, b as B, a as L, t as f } from "../chunks/Steps-
|
2
|
-
import { E as x, L as P, T as k } from "../chunks/
|
1
|
+
import { e, g as o, B as r, C as t, f as l, d as p, D as i, F as n, L as d, j as S, M as T, k as b, P as c, R as g, c as C, S as F, h as M, i as m, l as u, T as y, b as B, a as L, t as f } from "../chunks/Steps-CNDzmXyL.js";
|
2
|
+
import { E as x, L as P, T as k } from "../chunks/AntdIcon-BohCHsd5.js";
|
3
3
|
export {
|
4
4
|
e as Badge,
|
5
5
|
o as Breadcrumb,
|
package/package.json
CHANGED
@@ -1,142 +0,0 @@
|
|
1
|
-
import { j as e, C as T, g as j, L as E, E as y, T as P } from "./Switch-DAZukdDR.js";
|
2
|
-
import * as F from "react";
|
3
|
-
import { Select as R, Radio as M, Checkbox as N } from "antd";
|
4
|
-
class G extends F.PureComponent {
|
5
|
-
render() {
|
6
|
-
const { name: l, component: d, control: c, ...t } = this.props;
|
7
|
-
return /* @__PURE__ */ e.jsx(
|
8
|
-
T,
|
9
|
-
{
|
10
|
-
control: c,
|
11
|
-
name: l,
|
12
|
-
render: ({ field: r, formState: i }) => /* @__PURE__ */ e.jsx(d, { field: r, formState: i, ...t })
|
13
|
-
}
|
14
|
-
);
|
15
|
-
}
|
16
|
-
}
|
17
|
-
const $ = (h) => {
|
18
|
-
//! State
|
19
|
-
var s;
|
20
|
-
const {
|
21
|
-
field: l,
|
22
|
-
formState: d,
|
23
|
-
label: c,
|
24
|
-
required: t,
|
25
|
-
afterOnChange: r,
|
26
|
-
customStyleContainer: i,
|
27
|
-
...g
|
28
|
-
} = h, { name: n, value: S, onChange: o, onBlur: b } = l || {}, { touchedFields: v, errors: C, isSubmitted: x } = d || {}, u = j(v, n), a = (s = j(C, n)) == null ? void 0 : s.message;
|
29
|
-
//! Function
|
30
|
-
const f = (m) => {
|
31
|
-
o == null || o(m), r == null || r(m);
|
32
|
-
}, p = () => a ? /* @__PURE__ */ e.jsx(
|
33
|
-
y,
|
34
|
-
{
|
35
|
-
errorMessage: a,
|
36
|
-
isTouched: u,
|
37
|
-
isSubmitted: x
|
38
|
-
}
|
39
|
-
) : null;
|
40
|
-
//! Render
|
41
|
-
return /* @__PURE__ */ e.jsxs("div", { className: i, children: [
|
42
|
-
c && /* @__PURE__ */ e.jsx(E, { label: c, required: t }),
|
43
|
-
/* @__PURE__ */ e.jsx(
|
44
|
-
R,
|
45
|
-
{
|
46
|
-
onChange: f,
|
47
|
-
onBlur: b,
|
48
|
-
value: S,
|
49
|
-
style: { width: "100%" },
|
50
|
-
optionLabelProp: "label",
|
51
|
-
status: (u || x) && a ? "error" : void 0,
|
52
|
-
...g
|
53
|
-
}
|
54
|
-
),
|
55
|
-
p()
|
56
|
-
] });
|
57
|
-
}, q = (h) => {
|
58
|
-
//! State
|
59
|
-
var p;
|
60
|
-
const {
|
61
|
-
field: l,
|
62
|
-
formState: d,
|
63
|
-
customStyleRadio: c,
|
64
|
-
customStyleWrap: t = "",
|
65
|
-
afterOnChange: r,
|
66
|
-
options: i,
|
67
|
-
...g
|
68
|
-
} = h, { name: n, value: S, onChange: o } = l || {}, { touchedFields: b, errors: v, isSubmitted: C } = d || {}, x = j(b, n), u = (p = j(v, n)) == null ? void 0 : p.message;
|
69
|
-
//! Function
|
70
|
-
const a = (s) => {
|
71
|
-
var m;
|
72
|
-
o == null || o(s), r == null || r((m = s == null ? void 0 : s.target) == null ? void 0 : m.value);
|
73
|
-
}, f = () => u ? /* @__PURE__ */ e.jsx(
|
74
|
-
y,
|
75
|
-
{
|
76
|
-
errorMessage: u,
|
77
|
-
isTouched: x,
|
78
|
-
isSubmitted: C
|
79
|
-
}
|
80
|
-
) : null;
|
81
|
-
//! Render
|
82
|
-
return /* @__PURE__ */ e.jsxs("div", { className: t, children: [
|
83
|
-
/* @__PURE__ */ e.jsx(M.Group, { onChange: a, value: S, ...g, children: i.map((s) => /* @__PURE__ */ e.jsx(
|
84
|
-
M,
|
85
|
-
{
|
86
|
-
value: s.value,
|
87
|
-
className: c,
|
88
|
-
children: /* @__PURE__ */ e.jsxs(P.Text, { children: [
|
89
|
-
" ",
|
90
|
-
s.label
|
91
|
-
] })
|
92
|
-
},
|
93
|
-
`${n}-${s.value}`
|
94
|
-
)) }),
|
95
|
-
f()
|
96
|
-
] });
|
97
|
-
}, w = (h) => {
|
98
|
-
//! State
|
99
|
-
var s;
|
100
|
-
const {
|
101
|
-
field: l,
|
102
|
-
formState: d,
|
103
|
-
label: c,
|
104
|
-
afterOnChange: t,
|
105
|
-
customStyleContainer: r,
|
106
|
-
customStyleCheckbox: i,
|
107
|
-
...g
|
108
|
-
} = h, { name: n, value: S, onChange: o, onBlur: b } = l || {}, { touchedFields: v, errors: C, isSubmitted: x } = d || {}, u = j(v, n), a = (s = j(C, n)) == null ? void 0 : s.message;
|
109
|
-
//! Function
|
110
|
-
const f = (m) => {
|
111
|
-
const k = m.target.checked;
|
112
|
-
o == null || o(k), t == null || t(k);
|
113
|
-
}, p = () => a ? /* @__PURE__ */ e.jsx(
|
114
|
-
y,
|
115
|
-
{
|
116
|
-
errorMessage: a,
|
117
|
-
isTouched: u,
|
118
|
-
isSubmitted: x
|
119
|
-
}
|
120
|
-
) : null;
|
121
|
-
//! Render
|
122
|
-
return /* @__PURE__ */ e.jsxs("div", { className: r, children: [
|
123
|
-
/* @__PURE__ */ e.jsx(
|
124
|
-
N,
|
125
|
-
{
|
126
|
-
onBlur: b,
|
127
|
-
checked: !!S,
|
128
|
-
onChange: f,
|
129
|
-
className: i,
|
130
|
-
...g,
|
131
|
-
children: /* @__PURE__ */ e.jsx(P.Text, { children: c })
|
132
|
-
}
|
133
|
-
),
|
134
|
-
p()
|
135
|
-
] });
|
136
|
-
};
|
137
|
-
export {
|
138
|
-
w as C,
|
139
|
-
G as P,
|
140
|
-
q as R,
|
141
|
-
$ as S
|
142
|
-
};
|