@addsign/moje-agenda-shared-lib 0.0.100 → 1.0.1
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/assets/tailwind.css +41 -6
- package/dist/components/Calendar.js +1 -1
- package/dist/components/ConfirmationModalDialog.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/SpinnerIcon.d.ts +7 -0
- package/dist/components/SpinnerIcon.js +9 -0
- package/dist/components/SpinnerIcon.js.map +1 -0
- package/dist/components/datatable/DataTableServer.d.ts +1 -2
- package/dist/components/datatable/DataTableServer.js +191 -165
- package/dist/components/datatable/DataTableServer.js.map +1 -1
- package/dist/components/form/AutocompleteSearchBar.d.ts +1 -0
- package/dist/components/form/AutocompleteSearchBar.js +8 -4
- package/dist/components/form/AutocompleteSearchBar.js.map +1 -1
- package/dist/components/form/DateRangeField.d.ts +1 -1
- package/dist/components/form/DateRangeField.js +4 -3
- package/dist/components/form/DateRangeField.js.map +1 -1
- package/dist/components/form/InputField.d.ts +2 -1
- package/dist/components/form/InputField.js +50 -25
- package/dist/components/form/InputField.js.map +1 -1
- package/dist/components/form/SelectField.d.ts +1 -1
- package/dist/components/form/SelectField.js +9 -4
- package/dist/components/form/SelectField.js.map +1 -1
- package/dist/index-BFjVdGf9.js +68 -0
- package/dist/index-BFjVdGf9.js.map +1 -0
- package/dist/index-DH-TC1O6.js +20 -0
- package/dist/index-DH-TC1O6.js.map +1 -0
- package/dist/index-DJ9aog8p.js +68 -0
- package/dist/index-DJ9aog8p.js.map +1 -0
- package/dist/index-HQ-zFwIH.js +68 -0
- package/dist/index-HQ-zFwIH.js.map +1 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/assets/tailwind.css
CHANGED
|
@@ -668,6 +668,9 @@ video {
|
|
|
668
668
|
.float-left {
|
|
669
669
|
float: left;
|
|
670
670
|
}
|
|
671
|
+
.m-0 {
|
|
672
|
+
margin: 0px;
|
|
673
|
+
}
|
|
671
674
|
.m-1 {
|
|
672
675
|
margin: 0.25rem;
|
|
673
676
|
}
|
|
@@ -858,6 +861,9 @@ video {
|
|
|
858
861
|
.min-h-\[32px\] {
|
|
859
862
|
min-height: 32px;
|
|
860
863
|
}
|
|
864
|
+
.\!w-\[100px\] {
|
|
865
|
+
width: 100px !important;
|
|
866
|
+
}
|
|
861
867
|
.w-0 {
|
|
862
868
|
width: 0px;
|
|
863
869
|
}
|
|
@@ -918,6 +924,9 @@ video {
|
|
|
918
924
|
.w-\[calc\(100\%-40px\)\] {
|
|
919
925
|
width: calc(100% - 40px);
|
|
920
926
|
}
|
|
927
|
+
.w-auto {
|
|
928
|
+
width: auto;
|
|
929
|
+
}
|
|
921
930
|
.w-fit {
|
|
922
931
|
width: -moz-fit-content;
|
|
923
932
|
width: fit-content;
|
|
@@ -925,8 +934,8 @@ video {
|
|
|
925
934
|
.w-full {
|
|
926
935
|
width: 100%;
|
|
927
936
|
}
|
|
928
|
-
.min-w-
|
|
929
|
-
min-width:
|
|
937
|
+
.min-w-20 {
|
|
938
|
+
min-width: 5rem;
|
|
930
939
|
}
|
|
931
940
|
.min-w-\[100px\] {
|
|
932
941
|
min-width: 100px;
|
|
@@ -974,7 +983,7 @@ video {
|
|
|
974
983
|
}
|
|
975
984
|
}
|
|
976
985
|
.animate-spin {
|
|
977
|
-
animation: spin
|
|
986
|
+
animation: spin 2s linear infinite;
|
|
978
987
|
}
|
|
979
988
|
.cursor-col-resize {
|
|
980
989
|
cursor: col-resize;
|
|
@@ -1008,12 +1017,21 @@ video {
|
|
|
1008
1017
|
.grid-cols-7 {
|
|
1009
1018
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
1010
1019
|
}
|
|
1020
|
+
.flex-row {
|
|
1021
|
+
flex-direction: row;
|
|
1022
|
+
}
|
|
1011
1023
|
.flex-col {
|
|
1012
1024
|
flex-direction: column;
|
|
1013
1025
|
}
|
|
1014
1026
|
.flex-wrap {
|
|
1015
1027
|
flex-wrap: wrap;
|
|
1016
1028
|
}
|
|
1029
|
+
.content-center {
|
|
1030
|
+
align-content: center;
|
|
1031
|
+
}
|
|
1032
|
+
.content-start {
|
|
1033
|
+
align-content: flex-start;
|
|
1034
|
+
}
|
|
1017
1035
|
.items-start {
|
|
1018
1036
|
align-items: flex-start;
|
|
1019
1037
|
}
|
|
@@ -1113,9 +1131,6 @@ video {
|
|
|
1113
1131
|
.overflow-y-auto {
|
|
1114
1132
|
overflow-y: auto;
|
|
1115
1133
|
}
|
|
1116
|
-
.overflow-ellipsis {
|
|
1117
|
-
text-overflow: ellipsis;
|
|
1118
|
-
}
|
|
1119
1134
|
.text-ellipsis {
|
|
1120
1135
|
text-overflow: ellipsis;
|
|
1121
1136
|
}
|
|
@@ -1125,6 +1140,9 @@ video {
|
|
|
1125
1140
|
.\!rounded-full {
|
|
1126
1141
|
border-radius: 9999px !important;
|
|
1127
1142
|
}
|
|
1143
|
+
.\!rounded-none {
|
|
1144
|
+
border-radius: 0px !important;
|
|
1145
|
+
}
|
|
1128
1146
|
.rounded {
|
|
1129
1147
|
border-radius: 0.25rem;
|
|
1130
1148
|
}
|
|
@@ -1137,6 +1155,9 @@ video {
|
|
|
1137
1155
|
.rounded-md {
|
|
1138
1156
|
border-radius: 0.375rem;
|
|
1139
1157
|
}
|
|
1158
|
+
.rounded-none {
|
|
1159
|
+
border-radius: 0px;
|
|
1160
|
+
}
|
|
1140
1161
|
.rounded-xl {
|
|
1141
1162
|
border-radius: 0.75rem;
|
|
1142
1163
|
}
|
|
@@ -2458,6 +2479,13 @@ video {
|
|
|
2458
2479
|
|
|
2459
2480
|
|
|
2460
2481
|
|
|
2482
|
+
.focus\:\!border-indigo-300:focus {
|
|
2483
|
+
--tw-border-opacity: 1 !important;
|
|
2484
|
+
border-color: rgb(165 180 252 / var(--tw-border-opacity)) !important;
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
|
|
2488
|
+
|
|
2461
2489
|
.focus\:border-amber-500:focus {
|
|
2462
2490
|
--tw-border-opacity: 1;
|
|
2463
2491
|
border-color: rgb(245 158 11 / var(--tw-border-opacity));
|
|
@@ -2718,6 +2746,13 @@ video {
|
|
|
2718
2746
|
|
|
2719
2747
|
|
|
2720
2748
|
|
|
2749
|
+
.focus\:\!ring-indigo-200:focus {
|
|
2750
|
+
--tw-ring-opacity: 1 !important;
|
|
2751
|
+
--tw-ring-color: rgb(199 210 254 / var(--tw-ring-opacity)) !important;
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2754
|
+
|
|
2755
|
+
|
|
2721
2756
|
.focus\:ring-amber-500:focus {
|
|
2722
2757
|
--tw-ring-opacity: 1;
|
|
2723
2758
|
--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useState, useEffect, useCallback } from "react";
|
|
3
|
-
import { a as FaChevronLeft, b as FaChevronRight } from "../index-
|
|
3
|
+
import { a as FaChevronLeft, b as FaChevronRight } from "../index-DH-TC1O6.js";
|
|
4
4
|
const Calendar = ({
|
|
5
5
|
items,
|
|
6
6
|
startingDate,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
|
-
import { F as FaRegTrashAlt } from "../index-
|
|
3
|
+
import { F as FaRegTrashAlt } from "../index-DH-TC1O6.js";
|
|
4
4
|
import { G as GenIcon } from "../iconBase-B8_TsgYI.js";
|
|
5
5
|
import Button from "./Button.js";
|
|
6
6
|
function IoCloseOutline(props) {
|
package/dist/components/Modal.js
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { c as FaSpinner } from "../index-DH-TC1O6.js";
|
|
3
|
+
const SpinnerIcon = ({ icon = /* @__PURE__ */ jsx(FaSpinner, {}) }) => {
|
|
4
|
+
return /* @__PURE__ */ jsx("div", { className: "animate-spin", children: icon });
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
SpinnerIcon as default
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=SpinnerIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpinnerIcon.js","sources":["../../lib/components/SpinnerIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport { FaSpinner } from \"react-icons/fa\";\n\ntype SpinnerIconProps = {\n icon: React.ReactNode;\n};\n\nconst SpinnerIcon: React.FC<SpinnerIconProps> = ({ icon = <FaSpinner /> }) => {\n return <div className=\"animate-spin\">{icon}</div>;\n};\n\nexport default SpinnerIcon;\n"],"names":[],"mappings":";;AAOA,MAAM,cAA0C,CAAC,EAAE,OAAQ,oBAAA,WAAA,CAAU,CAAA,QAAS;AAC5E,SAAQ,oBAAA,OAAA,EAAI,WAAU,gBAAgB,UAAK,KAAA,CAAA;AAC7C;"}
|
|
@@ -9,7 +9,6 @@ interface DataTableServerProps<T> {
|
|
|
9
9
|
id: string;
|
|
10
10
|
url: string;
|
|
11
11
|
columns: DataTableColumn<T | "actions">[];
|
|
12
|
-
itemsPerPage?: number;
|
|
13
12
|
title?: string;
|
|
14
13
|
subtitle?: string;
|
|
15
14
|
allowSearch?: boolean;
|
|
@@ -23,5 +22,5 @@ type DataTableInternalItems = {
|
|
|
23
22
|
_isHighlighted?: boolean;
|
|
24
23
|
id: string;
|
|
25
24
|
};
|
|
26
|
-
declare function DataTableServer<T extends DataTableInternalItems>({ id, url, columns,
|
|
25
|
+
declare function DataTableServer<T extends DataTableInternalItems>({ id, url, columns, title, subtitle, allowSearch, showHeader, rowAction, bulkAction, filters, }: DataTableServerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
27
26
|
export default DataTableServer;
|