@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.
@@ -1,12 +1,11 @@
1
- import { D as i, I as s, R as o, a as r } from "../chunks/Switch-D8Nh_AP-.js";
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
- l as CheckboxField,
5
- i as DatePickerField,
6
- s as Input,
7
- t as PnkxField,
8
- F as RadioGroup,
9
- o as RangePickerField,
10
- c as SelectField,
11
- r as TinyMCE
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 i, d as l, D as p, F as d, L as n, j as F, M as c, k as S, P as C, R as b, c as P, m as T, S as g, h as k, i as m, l as u, T as x, b as M, a as R, t as y } from "./chunks/Sidebar-QaBrSIFu.js";
2
- import { D as h, E as B, I as D, L, R as E, a as w, T as I } from "./chunks/Switch-D8Nh_AP-.js";
3
- import { C as v, P as G, R as q, S as z } from "./chunks/Checkbox-DMRMEXmZ.js";
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
- v as CheckboxField,
10
- i as Col,
11
- l as Container,
12
- h as DatePickerField,
9
+ L as CheckboxField,
10
+ l as Col,
11
+ i as Container,
12
+ E as DatePickerField,
13
13
  p as Dropdown,
14
- B as ErrorMessage,
14
+ f as ErrorMessage,
15
15
  d as Flex,
16
- D as Input,
17
- L as Label,
16
+ w as Input,
17
+ h as Label,
18
18
  n as Layout,
19
19
  F as Menu,
20
20
  c as Modal,
21
- S as Pagination,
22
- G as PnkxField,
23
- C as Popover,
24
- q as RadioGroup,
25
- E as RangePickerField,
26
- b as Row,
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
- z as SelectField,
29
- T as Sidebar,
30
- g as Skeleton,
31
- k as Space,
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
- w as TinyMCE,
37
- R as Tooltip,
38
- I as Typography,
35
+ q as TinyMCE,
36
+ m as Tooltip,
37
+ B as Typography,
39
38
  y as typeColorMap
40
39
  };
@@ -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 interface StepProps extends StepProps_2 {
464
- }
447
+ export declare type StepProps = StepProps_2;
465
448
 
466
449
  export declare const Steps: typeof Steps_2;
467
450
 
@@ -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 interface StepProps extends StepProps_2 {
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 d, L as n, j as S, M as b, k as T, P as c, R as g, c as m, m as C, S as F, h as M, i as u, l as y, T as B, b as L, a as f, t as h } from "../chunks/Sidebar-QaBrSIFu.js";
2
- import { E as P, L as k, T as w } from "../chunks/Switch-D8Nh_AP-.js";
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
- P as ErrorMessage,
12
- d as Flex,
13
- k as Label,
14
- n as Layout,
11
+ x as ErrorMessage,
12
+ n as Flex,
13
+ P as Label,
14
+ d as Layout,
15
15
  S as Menu,
16
- b as Modal,
17
- T as Pagination,
16
+ T as Modal,
17
+ b as Pagination,
18
18
  c as Popover,
19
19
  g as Row,
20
- m as SearchFiltersForm,
21
- C as Sidebar,
20
+ C as SearchFiltersForm,
22
21
  F as Skeleton,
23
22
  M as Space,
24
- u as Splitter,
25
- y as Steps,
26
- B as Table,
27
- L as Tabs,
28
- f as Tooltip,
29
- w as Typography,
30
- h as typeColorMap
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,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.1.8",
4
+ "version": "1.1.11",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "exports": {
@@ -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
- };