@pnkx-lib/ui 1.1.8 → 1.1.11
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-OM3ycq04.js +2263 -0
- package/dist/chunks/Steps-tGR8eV70.js +5893 -0
- package/dist/chunks/Switch-DKxIhHNw.js +14946 -0
- package/dist/fields/index.js +9 -10
- package/dist/index.js +23 -24
- package/dist/types/index.d.ts +1 -18
- package/dist/types/ui.d.ts +1 -18
- package/dist/ui/index.js +16 -17
- package/package.json +1 -1
- package/dist/chunks/Checkbox-DMRMEXmZ.js +0 -142
- package/dist/chunks/Sidebar-QaBrSIFu.js +0 -7607
- package/dist/chunks/Switch-D8Nh_AP-.js +0 -17062
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-DMRMEXmZ.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-DKxIhHNw.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,40 +1,39 @@
|
|
1
|
-
import { e, g as o, B as r, C as t, f 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-tGR8eV70.js";
|
2
|
+
import { E as f, L as h, T as B } from "./chunks/AntdIcon-OM3ycq04.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-DKxIhHNw.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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
L as CheckboxField,
|
10
|
+
l as Col,
|
11
|
+
i as Container,
|
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
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
21
|
+
C as Pagination,
|
22
|
+
I as PnkxField,
|
23
|
+
S as Popover,
|
24
|
+
j as RadioGroup,
|
25
|
+
v as RangePickerField,
|
26
|
+
T as Row,
|
27
27
|
P as SearchFiltersForm,
|
28
|
-
|
29
|
-
|
30
|
-
g as
|
31
|
-
k as
|
32
|
-
m as Splitter,
|
28
|
+
G as SelectField,
|
29
|
+
b as Skeleton,
|
30
|
+
g as Space,
|
31
|
+
k as Splitter,
|
33
32
|
u as Steps,
|
34
33
|
x as Table,
|
35
34
|
M as Tabs,
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
q as TinyMCE,
|
36
|
+
m as Tooltip,
|
37
|
+
B as Typography,
|
39
38
|
y as typeColorMap
|
40
39
|
};
|
package/dist/types/index.d.ts
CHANGED
@@ -419,22 +419,6 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
419
419
|
customStyleContainer?: string;
|
420
420
|
}
|
421
421
|
|
422
|
-
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
|
423
|
-
|
424
|
-
export declare interface SidebarProps {
|
425
|
-
children?: React.ReactNode;
|
426
|
-
menu: Array<{
|
427
|
-
name: string;
|
428
|
-
href: string;
|
429
|
-
icon: React.ReactNode;
|
430
|
-
current: boolean;
|
431
|
-
children?: Array<{
|
432
|
-
name: string;
|
433
|
-
href: string;
|
434
|
-
}>;
|
435
|
-
}>;
|
436
|
-
}
|
437
|
-
|
438
422
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
439
423
|
multiple?: false;
|
440
424
|
};
|
@@ -460,8 +444,7 @@ export declare interface SplitterProps extends SplitterProps_2 {
|
|
460
444
|
|
461
445
|
export declare type SplitterPropsUnion = BaseProps_10 & SplitterProps;
|
462
446
|
|
463
|
-
export declare
|
464
|
-
}
|
447
|
+
export declare type StepProps = StepProps_2;
|
465
448
|
|
466
449
|
export declare const Steps: typeof Steps_2;
|
467
450
|
|
package/dist/types/ui.d.ts
CHANGED
@@ -291,22 +291,6 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
291
291
|
onSubmit: (data: T) => void;
|
292
292
|
}
|
293
293
|
|
294
|
-
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
|
295
|
-
|
296
|
-
export declare interface SidebarProps {
|
297
|
-
children?: React.ReactNode;
|
298
|
-
menu: Array<{
|
299
|
-
name: string;
|
300
|
-
href: string;
|
301
|
-
icon: React.ReactNode;
|
302
|
-
current: boolean;
|
303
|
-
children?: Array<{
|
304
|
-
name: string;
|
305
|
-
href: string;
|
306
|
-
}>;
|
307
|
-
}>;
|
308
|
-
}
|
309
|
-
|
310
294
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
311
295
|
multiple?: false;
|
312
296
|
};
|
@@ -332,8 +316,7 @@ export declare interface SplitterProps extends SplitterProps_2 {
|
|
332
316
|
|
333
317
|
export declare type SplitterPropsUnion = BaseProps_10 & SplitterProps;
|
334
318
|
|
335
|
-
export declare
|
336
|
-
}
|
319
|
+
export declare type StepProps = StepProps_2;
|
337
320
|
|
338
321
|
export declare const Steps: typeof Steps_2;
|
339
322
|
|
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
|
2
|
-
import { E as
|
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-tGR8eV70.js";
|
2
|
+
import { E as x, L as P, T as k } from "../chunks/AntdIcon-OM3ycq04.js";
|
3
3
|
export {
|
4
4
|
e as Badge,
|
5
5
|
o as Breadcrumb,
|
@@ -8,24 +8,23 @@ export {
|
|
8
8
|
l as Col,
|
9
9
|
p as Container,
|
10
10
|
i as Dropdown,
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
x as ErrorMessage,
|
12
|
+
n as Flex,
|
13
|
+
P as Label,
|
14
|
+
d as Layout,
|
15
15
|
S as Menu,
|
16
|
-
|
17
|
-
|
16
|
+
T as Modal,
|
17
|
+
b as Pagination,
|
18
18
|
c as Popover,
|
19
19
|
g as Row,
|
20
|
-
|
21
|
-
C as Sidebar,
|
20
|
+
C as SearchFiltersForm,
|
22
21
|
F as Skeleton,
|
23
22
|
M as Space,
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
23
|
+
m as Splitter,
|
24
|
+
u as Steps,
|
25
|
+
y as Table,
|
26
|
+
B as Tabs,
|
27
|
+
L as Tooltip,
|
28
|
+
k as Typography,
|
29
|
+
f as typeColorMap
|
31
30
|
};
|
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-D8Nh_AP-.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
|
-
};
|