@pnkx-lib/ui 1.2.5 → 1.2.7

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/index.js CHANGED
@@ -1,39 +1,40 @@
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-yOOLwM59.js";
2
- import { E as f, L as h, T as B } from "./chunks/createSuper-DBIhZ50y.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-CzMyITg3.js";
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 T, c as b, m as P, S as g, h as k, i as m, l as u, T as x, b as M, a as y, t as R } from "./chunks/Sidebar-DkquMpk7.js";
2
+ import { E as h, L as B, T as D } from "./chunks/createSuper-DBIhZ50y.js";
3
+ import { C as E, D as w, I, P as j, R as v, a as G, S as q, T as z } from "./chunks/Switch-CzMyITg3.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
- L as CheckboxField,
10
- l as Col,
11
- i as Container,
12
- E as DatePickerField,
9
+ E as CheckboxField,
10
+ i as Col,
11
+ l as Container,
12
+ w as DatePickerField,
13
13
  p as Dropdown,
14
- f as ErrorMessage,
14
+ h as ErrorMessage,
15
15
  d as Flex,
16
- w as Input,
17
- h as Label,
16
+ I as Input,
17
+ B as Label,
18
18
  n as Layout,
19
19
  F as Menu,
20
20
  c as Modal,
21
- C as Pagination,
22
- I as PnkxField,
23
- S as Popover,
24
- j as RadioGroup,
25
- v as RangePickerField,
21
+ S as Pagination,
22
+ j as PnkxField,
23
+ C as Popover,
24
+ v as RadioGroup,
25
+ G as RangePickerField,
26
26
  T as Row,
27
- P as SearchFiltersForm,
28
- G as SelectField,
29
- b as Skeleton,
30
- g as Space,
31
- k as Splitter,
27
+ b as SearchFiltersForm,
28
+ q as SelectField,
29
+ P as Sidebar,
30
+ g as Skeleton,
31
+ k as Space,
32
+ m as Splitter,
32
33
  u as Steps,
33
34
  x as Table,
34
35
  M as Tabs,
35
- q as TinyMCE,
36
- m as Tooltip,
37
- B as Typography,
38
- y as typeColorMap
36
+ z as TinyMCE,
37
+ y as Tooltip,
38
+ D as Typography,
39
+ R as typeColorMap
39
40
  };
@@ -419,6 +419,22 @@ 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
+
422
438
  declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
423
439
  multiple?: false;
424
440
  };
@@ -291,6 +291,22 @@ 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
+
294
310
  declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
295
311
  multiple?: false;
296
312
  };
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-yOOLwM59.js";
2
- import { E as x, L as P, T as k } from "../chunks/createSuper-DBIhZ50y.js";
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-DkquMpk7.js";
2
+ import { E as P, L as k, T as w } from "../chunks/createSuper-DBIhZ50y.js";
3
3
  export {
4
4
  e as Badge,
5
5
  o as Breadcrumb,
@@ -8,23 +8,24 @@ export {
8
8
  l as Col,
9
9
  p as Container,
10
10
  i as Dropdown,
11
- x as ErrorMessage,
12
- n as Flex,
13
- P as Label,
14
- d as Layout,
11
+ P as ErrorMessage,
12
+ d as Flex,
13
+ k as Label,
14
+ n as Layout,
15
15
  S as Menu,
16
- T as Modal,
17
- b as Pagination,
16
+ b as Modal,
17
+ T as Pagination,
18
18
  c as Popover,
19
19
  g as Row,
20
- C as SearchFiltersForm,
20
+ m as SearchFiltersForm,
21
+ C as Sidebar,
21
22
  F as Skeleton,
22
23
  M as Space,
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
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
30
31
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.2.5",
4
+ "version": "1.2.7",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "exports": {
@@ -74,7 +74,8 @@
74
74
  "peerDependencies": {
75
75
  "antd": "^5.24.4",
76
76
  "react": "^18.3.1",
77
- "react-dom": "^18.3.1"
77
+ "react-dom": "^18.3.1",
78
+ "react-router-dom": "^7.6.0"
78
79
  },
79
80
  "dependencies": {
80
81
  "@ant-design/icons": "^5.6.1",
@@ -90,7 +91,6 @@
90
91
  "react-datepicker": "^4.16.0",
91
92
  "react-hook-form": "^7.54.2",
92
93
  "react-number-format": "^5.4.3",
93
- "react-router-dom": "^7.5.3",
94
94
  "yup": "^1.6.1",
95
95
  "zustand": "^5.0.3"
96
96
  }