@addsign/moje-agenda-shared-lib 0.0.86 → 0.0.87
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 +5 -2
- package/dist/components/Button.js +1 -1
- package/dist/components/Button.js.map +1 -1
- package/dist/components/datatable/DataTableServer.js +2 -2
- package/dist/components/datatable/DataTableServer.js.map +1 -1
- package/dist/components/form/InputField.js +8 -6
- package/dist/components/form/InputField.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/assets/tailwind.css
CHANGED
|
@@ -855,6 +855,9 @@ video {
|
|
|
855
855
|
.min-h-\[285px\] {
|
|
856
856
|
min-height: 285px;
|
|
857
857
|
}
|
|
858
|
+
.min-h-\[32px\] {
|
|
859
|
+
min-height: 32px;
|
|
860
|
+
}
|
|
858
861
|
.w-0 {
|
|
859
862
|
width: 0px;
|
|
860
863
|
}
|
|
@@ -1787,8 +1790,8 @@ video {
|
|
|
1787
1790
|
.leading-9 {
|
|
1788
1791
|
line-height: 2.25rem;
|
|
1789
1792
|
}
|
|
1790
|
-
.leading-\[
|
|
1791
|
-
line-height:
|
|
1793
|
+
.leading-\[32px\] {
|
|
1794
|
+
line-height: 32px;
|
|
1792
1795
|
}
|
|
1793
1796
|
.leading-\[42px\] {
|
|
1794
1797
|
line-height: 42px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import '../assets/tailwind.css';/* empty css */
|
|
3
|
-
const commonStyles = " py-1 px-4 leading-[
|
|
3
|
+
const commonStyles = " py-1 px-4 leading-[32px] min-h-[32px] w-fit rounded-lg whitespace-nowrap font-medium disabled:opacity-50 ";
|
|
4
4
|
const buttonStyles = {
|
|
5
5
|
primary: "!bg-primary hover:!bg-primary-hover text-primary-text ",
|
|
6
6
|
secondary: "!bg-secondary hover:!bg-secondary-hover text-secondary-text border border-secondary-border ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../lib/components/Button.tsx"],"sourcesContent":["import * as React from \"react\";\r\nimport \"../css/tailwind.css\";\r\n\r\ntype ButtonVariant =\r\n | \"primary\"\r\n | \"secondary\"\r\n | \"transparent\"\r\n | \"success\"\r\n | \"danger\"\r\n | \"icon\";\r\n\r\ninterface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\r\n variant?: ButtonVariant;\r\n}\r\nconst commonStyles =\r\n \" py-1 px-4 leading-[
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../lib/components/Button.tsx"],"sourcesContent":["import * as React from \"react\";\r\nimport \"../css/tailwind.css\";\r\n\r\ntype ButtonVariant =\r\n | \"primary\"\r\n | \"secondary\"\r\n | \"transparent\"\r\n | \"success\"\r\n | \"danger\"\r\n | \"icon\";\r\n\r\ninterface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\r\n variant?: ButtonVariant;\r\n}\r\nconst commonStyles =\r\n \" py-1 px-4 leading-[32px] min-h-[32px] w-fit rounded-lg whitespace-nowrap font-medium disabled:opacity-50 \";\r\nconst buttonStyles: { [key in ButtonVariant]: string } = {\r\n primary: \"!bg-primary hover:!bg-primary-hover text-primary-text \",\r\n secondary:\r\n \"!bg-secondary hover:!bg-secondary-hover text-secondary-text border border-secondary-border \",\r\n transparent:\r\n \"!bg-transparent border border-transparent hover:bg-gray-100 hover:border-gray-200 \",\r\n success: \"!bg-success hover:!bg-success-hover text-success-text \",\r\n danger: \"!bg-danger hover:!bg-danger-hover text-danger-text \",\r\n\r\n icon: \" !rounded-full text-center inline-flex items-center \",\r\n};\r\nconst Button: React.FC<IButtonProps> = ({\r\n variant = \"primary\",\r\n children,\r\n onClick,\r\n className,\r\n ...props\r\n}) => {\r\n const classNames = commonStyles + buttonStyles[variant];\r\n return (\r\n <button\r\n className={classNames + \" \" + (className || \" sharedLibraryource \")}\r\n onClick={onClick}\r\n {...props}\r\n >\r\n {children}\r\n </button>\r\n );\r\n};\r\n\r\nexport default Button;\r\n"],"names":[],"mappings":";;AAcA,MAAM,eACJ;AACF,MAAM,eAAmD;AAAA,EACvD,SAAS;AAAA,EACT,WACE;AAAA,EACF,aACE;AAAA,EACF,SAAS;AAAA,EACT,QAAQ;AAAA,EAER,MAAM;AACR;AACA,MAAM,SAAiC,CAAC;AAAA,EACtC,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACE,QAAA,aAAa,eAAe,aAAa,OAAO;AAEpD,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,aAAa,OAAO,aAAa;AAAA,MAC5C;AAAA,MACC,GAAG;AAAA,MAEH;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -21693,7 +21693,7 @@ function DataTableServer({
|
|
|
21693
21693
|
bulkActions,
|
|
21694
21694
|
filters
|
|
21695
21695
|
}) {
|
|
21696
|
-
var _a;
|
|
21696
|
+
var _a, _b;
|
|
21697
21697
|
const federationContext = useFederationContext();
|
|
21698
21698
|
const [data, setData] = useState();
|
|
21699
21699
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -22178,7 +22178,7 @@ function DataTableServer({
|
|
|
22178
22178
|
"td-nodata"
|
|
22179
22179
|
) }, "tr-nodata")
|
|
22180
22180
|
] }),
|
|
22181
|
-
isLoading && !data && /* @__PURE__ */ jsx("tbody", { className: "relative", children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 100, children: /* @__PURE__ */ jsx("div", { className: "w-full flex items-center justify-center h-full py-2", children: /* @__PURE__ */ jsx(Spinner, {}) }) }) }) })
|
|
22181
|
+
isLoading && (!data || ((_b = data == null ? void 0 : data.content) == null ? void 0 : _b.length) === 0) && /* @__PURE__ */ jsx("tbody", { className: "relative", children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 100, children: /* @__PURE__ */ jsx("div", { className: "w-full flex items-center justify-center h-full py-2", children: /* @__PURE__ */ jsx(Spinner, {}) }) }) }) })
|
|
22182
22182
|
] }, tableKey) }),
|
|
22183
22183
|
/* @__PURE__ */ jsx("div", { className: "w-full p-5 flex gap-5 justify-between", children: /* @__PURE__ */ jsxs("div", { className: "flex gap-5", children: [
|
|
22184
22184
|
data && /* @__PURE__ */ jsxs(
|