baaz-custom-components 5.0.9 → 5.0.12
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.css +68 -9
- package/dist/index.d.mts +70 -1
- package/dist/index.d.ts +70 -1
- package/dist/index.js +477 -2
- package/dist/index.mjs +481 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
--font-weight-normal: 400;
|
|
43
43
|
--font-weight-medium: 500;
|
|
44
44
|
--font-weight-semibold: 600;
|
|
45
|
+
--tracking-wider: 0.05em;
|
|
45
46
|
--tracking-widest: 0.1em;
|
|
46
47
|
--radius-xs: 0.125rem;
|
|
47
48
|
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -382,6 +383,9 @@
|
|
|
382
383
|
.mt-auto {
|
|
383
384
|
margin-top: auto;
|
|
384
385
|
}
|
|
386
|
+
.mr-auto {
|
|
387
|
+
margin-right: auto;
|
|
388
|
+
}
|
|
385
389
|
.ml-1 {
|
|
386
390
|
margin-left: calc(var(--spacing) * 1);
|
|
387
391
|
}
|
|
@@ -575,12 +579,12 @@
|
|
|
575
579
|
.w-full {
|
|
576
580
|
width: 100%;
|
|
577
581
|
}
|
|
582
|
+
.w-grid {
|
|
583
|
+
width: calc(100% - 2px);
|
|
584
|
+
}
|
|
578
585
|
.w-max {
|
|
579
586
|
width: max-content;
|
|
580
587
|
}
|
|
581
|
-
.w-screen {
|
|
582
|
-
width: 100vw;
|
|
583
|
-
}
|
|
584
588
|
.max-w-\(--skeleton-width\) {
|
|
585
589
|
max-width: var(--skeleton-width);
|
|
586
590
|
}
|
|
@@ -590,9 +594,6 @@
|
|
|
590
594
|
.max-w-max {
|
|
591
595
|
max-width: max-content;
|
|
592
596
|
}
|
|
593
|
-
.\!min-w-\[30rem\] {
|
|
594
|
-
min-width: 30rem !important;
|
|
595
|
-
}
|
|
596
597
|
.min-w-0 {
|
|
597
598
|
min-width: calc(var(--spacing) * 0);
|
|
598
599
|
}
|
|
@@ -847,6 +848,12 @@
|
|
|
847
848
|
.bg-destructive {
|
|
848
849
|
background-color: var(--destructive);
|
|
849
850
|
}
|
|
851
|
+
.bg-destructive\/40 {
|
|
852
|
+
background-color: var(--destructive);
|
|
853
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
854
|
+
background-color: color-mix(in oklab, var(--destructive) 40%, transparent);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
850
857
|
.bg-input {
|
|
851
858
|
background-color: var(--input);
|
|
852
859
|
}
|
|
@@ -946,9 +953,6 @@
|
|
|
946
953
|
.py-2 {
|
|
947
954
|
padding-block: calc(var(--spacing) * 2);
|
|
948
955
|
}
|
|
949
|
-
.py-3 {
|
|
950
|
-
padding-block: calc(var(--spacing) * 3);
|
|
951
|
-
}
|
|
952
956
|
.py-4 {
|
|
953
957
|
padding-block: calc(var(--spacing) * 4);
|
|
954
958
|
}
|
|
@@ -1026,6 +1030,10 @@
|
|
|
1026
1030
|
--tw-tracking: 0.25rem;
|
|
1027
1031
|
letter-spacing: 0.25rem;
|
|
1028
1032
|
}
|
|
1033
|
+
.tracking-wider {
|
|
1034
|
+
--tw-tracking: var(--tracking-wider);
|
|
1035
|
+
letter-spacing: var(--tracking-wider);
|
|
1036
|
+
}
|
|
1029
1037
|
.tracking-widest {
|
|
1030
1038
|
--tw-tracking: var(--tracking-widest);
|
|
1031
1039
|
letter-spacing: var(--tracking-widest);
|
|
@@ -1173,6 +1181,9 @@
|
|
|
1173
1181
|
outline-style: var(--tw-outline-style);
|
|
1174
1182
|
outline-width: 1px;
|
|
1175
1183
|
}
|
|
1184
|
+
.filter {
|
|
1185
|
+
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
1186
|
+
}
|
|
1176
1187
|
.transition {
|
|
1177
1188
|
transition-property:
|
|
1178
1189
|
color,
|
|
@@ -1662,6 +1673,13 @@
|
|
|
1662
1673
|
}
|
|
1663
1674
|
}
|
|
1664
1675
|
}
|
|
1676
|
+
.hover\:bg-destructive {
|
|
1677
|
+
&:hover {
|
|
1678
|
+
@media (hover: hover) {
|
|
1679
|
+
background-color: var(--destructive);
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1665
1683
|
.hover\:bg-destructive\/90 {
|
|
1666
1684
|
&:hover {
|
|
1667
1685
|
@media (hover: hover) {
|
|
@@ -7500,10 +7518,25 @@ i.wx-U0Bx7pIR {
|
|
|
7500
7518
|
--wx-table-editor-dropdown-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.6);
|
|
7501
7519
|
--wx-background: var(--background);
|
|
7502
7520
|
}
|
|
7521
|
+
.wx-theme {
|
|
7522
|
+
height: 100%;
|
|
7523
|
+
overflow-y: hidden;
|
|
7524
|
+
}
|
|
7503
7525
|
.wx-willow-dark-theme .menu {
|
|
7504
7526
|
box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.6);
|
|
7505
7527
|
outline: var(--wx-border);
|
|
7506
7528
|
}
|
|
7529
|
+
.baaz-custom-components {
|
|
7530
|
+
display: flex;
|
|
7531
|
+
flex-direction: column;
|
|
7532
|
+
height: 100vh;
|
|
7533
|
+
}
|
|
7534
|
+
.main {
|
|
7535
|
+
flex: 1;
|
|
7536
|
+
overflow-y: auto;
|
|
7537
|
+
height: 100%;
|
|
7538
|
+
padding: clamp(12px, 3.4vh, 32px) clamp(12px, 1.8vw, 32px);
|
|
7539
|
+
}
|
|
7507
7540
|
@property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; }
|
|
7508
7541
|
@property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; }
|
|
7509
7542
|
@property --tw-translate-z { syntax: "*"; inherits: false; initial-value: 0; }
|
|
@@ -7536,6 +7569,19 @@ i.wx-U0Bx7pIR {
|
|
|
7536
7569
|
@property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }
|
|
7537
7570
|
@property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
7538
7571
|
@property --tw-outline-style { syntax: "*"; inherits: false; initial-value: solid; }
|
|
7572
|
+
@property --tw-blur { syntax: "*"; inherits: false; }
|
|
7573
|
+
@property --tw-brightness { syntax: "*"; inherits: false; }
|
|
7574
|
+
@property --tw-contrast { syntax: "*"; inherits: false; }
|
|
7575
|
+
@property --tw-grayscale { syntax: "*"; inherits: false; }
|
|
7576
|
+
@property --tw-hue-rotate { syntax: "*"; inherits: false; }
|
|
7577
|
+
@property --tw-invert { syntax: "*"; inherits: false; }
|
|
7578
|
+
@property --tw-opacity { syntax: "*"; inherits: false; }
|
|
7579
|
+
@property --tw-saturate { syntax: "*"; inherits: false; }
|
|
7580
|
+
@property --tw-sepia { syntax: "*"; inherits: false; }
|
|
7581
|
+
@property --tw-drop-shadow { syntax: "*"; inherits: false; }
|
|
7582
|
+
@property --tw-drop-shadow-color { syntax: "*"; inherits: false; }
|
|
7583
|
+
@property --tw-drop-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
|
|
7584
|
+
@property --tw-drop-shadow-size { syntax: "*"; inherits: false; }
|
|
7539
7585
|
@property --tw-duration { syntax: "*"; inherits: false; }
|
|
7540
7586
|
@property --tw-ease { syntax: "*"; inherits: false; }
|
|
7541
7587
|
@property --tw-content { syntax: "*"; initial-value: ""; inherits: false; }
|
|
@@ -7596,6 +7642,19 @@ i.wx-U0Bx7pIR {
|
|
|
7596
7642
|
--tw-ring-offset-color: #fff;
|
|
7597
7643
|
--tw-ring-offset-shadow: 0 0 #0000;
|
|
7598
7644
|
--tw-outline-style: solid;
|
|
7645
|
+
--tw-blur: initial;
|
|
7646
|
+
--tw-brightness: initial;
|
|
7647
|
+
--tw-contrast: initial;
|
|
7648
|
+
--tw-grayscale: initial;
|
|
7649
|
+
--tw-hue-rotate: initial;
|
|
7650
|
+
--tw-invert: initial;
|
|
7651
|
+
--tw-opacity: initial;
|
|
7652
|
+
--tw-saturate: initial;
|
|
7653
|
+
--tw-sepia: initial;
|
|
7654
|
+
--tw-drop-shadow: initial;
|
|
7655
|
+
--tw-drop-shadow-color: initial;
|
|
7656
|
+
--tw-drop-shadow-alpha: 100%;
|
|
7657
|
+
--tw-drop-shadow-size: initial;
|
|
7599
7658
|
--tw-duration: initial;
|
|
7600
7659
|
--tw-ease: initial;
|
|
7601
7660
|
--tw-content: "";
|
package/dist/index.d.mts
CHANGED
|
@@ -57,4 +57,73 @@ type BreadcrumbProps = {
|
|
|
57
57
|
|
|
58
58
|
declare const CustomBreadcrumb: ({ layoutName, includeFrom, pathname, }: BreadcrumbProps) => react.JSX.Element;
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
type SortOrder = "asc" | "desc";
|
|
61
|
+
type GridColumn = {
|
|
62
|
+
id: string;
|
|
63
|
+
header: string;
|
|
64
|
+
sortable?: boolean;
|
|
65
|
+
flexgrow?: number;
|
|
66
|
+
resize?: boolean;
|
|
67
|
+
};
|
|
68
|
+
type Filters = {
|
|
69
|
+
columnName: string;
|
|
70
|
+
operators: {
|
|
71
|
+
label: string;
|
|
72
|
+
value: "input" | "date" | "select" | "date-range" | null;
|
|
73
|
+
options?: {
|
|
74
|
+
label: string;
|
|
75
|
+
value: string;
|
|
76
|
+
}[];
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
79
|
+
type GridProps = {
|
|
80
|
+
data: Record<string, any>[];
|
|
81
|
+
columns: GridColumn[];
|
|
82
|
+
sortKey?: string | null;
|
|
83
|
+
sortOrder?: SortOrder | null;
|
|
84
|
+
onSortChange?: (key: string, order: SortOrder) => void;
|
|
85
|
+
multiselect?: boolean;
|
|
86
|
+
reorder?: boolean;
|
|
87
|
+
overlay?: React.FC | string;
|
|
88
|
+
init?: any;
|
|
89
|
+
onupdatecell?: any;
|
|
90
|
+
fonts?: boolean;
|
|
91
|
+
autoConfig?: boolean | {};
|
|
92
|
+
downloadable?: boolean;
|
|
93
|
+
fileNmae?: string;
|
|
94
|
+
search: boolean;
|
|
95
|
+
searchkey: string;
|
|
96
|
+
searchValue: string;
|
|
97
|
+
onExportPdf?: () => void;
|
|
98
|
+
onExportExcel?: () => void;
|
|
99
|
+
onSearch: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
100
|
+
filterList: Filters[];
|
|
101
|
+
onFilterChange: (filter: ActiveFilter) => void;
|
|
102
|
+
};
|
|
103
|
+
type ActiveFilter = {
|
|
104
|
+
column?: string | null;
|
|
105
|
+
operator?: string | null;
|
|
106
|
+
value?: string | null;
|
|
107
|
+
startDate?: string | null;
|
|
108
|
+
endDate?: string | null;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
declare function Grid({ data, columns, sortKey, sortOrder, onSortChange, onExportPdf, onExportExcel, downloadable, fileNmae, fonts, onFilterChange, ...rest }: GridProps): react.JSX.Element;
|
|
112
|
+
|
|
113
|
+
type Pagination$1 = {
|
|
114
|
+
totalCount: number;
|
|
115
|
+
count?: number | null;
|
|
116
|
+
currentPage: number;
|
|
117
|
+
totalPages: number;
|
|
118
|
+
pageSize: number;
|
|
119
|
+
onPageChange?: (page: number) => void;
|
|
120
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
121
|
+
showSizeChanger?: boolean;
|
|
122
|
+
sizeChangerOptions?: number[];
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
declare function Pagination({ totalCount, count, currentPage, totalPages, pageSize, onPageChange, onPageSizeChange, showSizeChanger, sizeChangerOptions, }: Pagination$1 & {
|
|
126
|
+
sizeChangerOptions?: number[];
|
|
127
|
+
}): react.JSX.Element | null;
|
|
128
|
+
|
|
129
|
+
export { type BreadcrumbProps, CustomBreadcrumb, Grid, type GridProps, Navbar, type NavbarData, type NavbarEntry, type NavbarProps, type NotificationDataTypes, Pagination, type Pagination$1 as PaginationProps, type RouteTree, type RouterAdapter, type UserData };
|
package/dist/index.d.ts
CHANGED
|
@@ -57,4 +57,73 @@ type BreadcrumbProps = {
|
|
|
57
57
|
|
|
58
58
|
declare const CustomBreadcrumb: ({ layoutName, includeFrom, pathname, }: BreadcrumbProps) => react.JSX.Element;
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
type SortOrder = "asc" | "desc";
|
|
61
|
+
type GridColumn = {
|
|
62
|
+
id: string;
|
|
63
|
+
header: string;
|
|
64
|
+
sortable?: boolean;
|
|
65
|
+
flexgrow?: number;
|
|
66
|
+
resize?: boolean;
|
|
67
|
+
};
|
|
68
|
+
type Filters = {
|
|
69
|
+
columnName: string;
|
|
70
|
+
operators: {
|
|
71
|
+
label: string;
|
|
72
|
+
value: "input" | "date" | "select" | "date-range" | null;
|
|
73
|
+
options?: {
|
|
74
|
+
label: string;
|
|
75
|
+
value: string;
|
|
76
|
+
}[];
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
79
|
+
type GridProps = {
|
|
80
|
+
data: Record<string, any>[];
|
|
81
|
+
columns: GridColumn[];
|
|
82
|
+
sortKey?: string | null;
|
|
83
|
+
sortOrder?: SortOrder | null;
|
|
84
|
+
onSortChange?: (key: string, order: SortOrder) => void;
|
|
85
|
+
multiselect?: boolean;
|
|
86
|
+
reorder?: boolean;
|
|
87
|
+
overlay?: React.FC | string;
|
|
88
|
+
init?: any;
|
|
89
|
+
onupdatecell?: any;
|
|
90
|
+
fonts?: boolean;
|
|
91
|
+
autoConfig?: boolean | {};
|
|
92
|
+
downloadable?: boolean;
|
|
93
|
+
fileNmae?: string;
|
|
94
|
+
search: boolean;
|
|
95
|
+
searchkey: string;
|
|
96
|
+
searchValue: string;
|
|
97
|
+
onExportPdf?: () => void;
|
|
98
|
+
onExportExcel?: () => void;
|
|
99
|
+
onSearch: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
100
|
+
filterList: Filters[];
|
|
101
|
+
onFilterChange: (filter: ActiveFilter) => void;
|
|
102
|
+
};
|
|
103
|
+
type ActiveFilter = {
|
|
104
|
+
column?: string | null;
|
|
105
|
+
operator?: string | null;
|
|
106
|
+
value?: string | null;
|
|
107
|
+
startDate?: string | null;
|
|
108
|
+
endDate?: string | null;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
declare function Grid({ data, columns, sortKey, sortOrder, onSortChange, onExportPdf, onExportExcel, downloadable, fileNmae, fonts, onFilterChange, ...rest }: GridProps): react.JSX.Element;
|
|
112
|
+
|
|
113
|
+
type Pagination$1 = {
|
|
114
|
+
totalCount: number;
|
|
115
|
+
count?: number | null;
|
|
116
|
+
currentPage: number;
|
|
117
|
+
totalPages: number;
|
|
118
|
+
pageSize: number;
|
|
119
|
+
onPageChange?: (page: number) => void;
|
|
120
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
121
|
+
showSizeChanger?: boolean;
|
|
122
|
+
sizeChangerOptions?: number[];
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
declare function Pagination({ totalCount, count, currentPage, totalPages, pageSize, onPageChange, onPageSizeChange, showSizeChanger, sizeChangerOptions, }: Pagination$1 & {
|
|
126
|
+
sizeChangerOptions?: number[];
|
|
127
|
+
}): react.JSX.Element | null;
|
|
128
|
+
|
|
129
|
+
export { type BreadcrumbProps, CustomBreadcrumb, Grid, type GridProps, Navbar, type NavbarData, type NavbarEntry, type NavbarProps, type NotificationDataTypes, Pagination, type Pagination$1 as PaginationProps, type RouteTree, type RouterAdapter, type UserData };
|