ekm-ui 0.3.85 → 0.3.89
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/.turbo/turbo-build.log +88 -78
- package/CHANGELOG.md +12 -0
- package/dist/card-payment-block.css +1 -1
- package/dist/card-payment-block.css.map +1 -1
- package/dist/card-payment-block.js +11 -9
- package/dist/{chunk-MD4AM55R.js → chunk-4GDWK5BI.js} +2 -2
- package/dist/chunk-5QCQEH52.js +8 -0
- package/dist/chunk-5QCQEH52.js.map +1 -0
- package/dist/chunk-7Q6OMA2A.js +7 -0
- package/dist/chunk-7Q6OMA2A.js.map +1 -0
- package/dist/chunk-AVTJXS4U.js +7 -0
- package/dist/chunk-AVTJXS4U.js.map +1 -0
- package/dist/{chunk-LJMVG4UJ.js → chunk-F7AUKLLE.js} +2 -2
- package/dist/{chunk-LJMVG4UJ.js.map → chunk-F7AUKLLE.js.map} +1 -1
- package/dist/{chunk-BS2JSVCX.js → chunk-PZSZTHB6.js} +4 -4
- package/dist/chunk-SFEJDNIA.js +8 -0
- package/dist/chunk-SFEJDNIA.js.map +1 -0
- package/dist/chunk-UUMCAKW4.js +9 -0
- package/dist/chunk-UUMCAKW4.js.map +1 -0
- package/dist/chunk-X6RBGNFS.js +7 -0
- package/dist/chunk-X6RBGNFS.js.map +1 -0
- package/dist/date-range-picker.js +2 -2
- package/dist/drag-and-drop.css +1 -1
- package/dist/drag-and-drop.css.map +1 -1
- package/dist/drag-and-drop.js +11 -9
- package/dist/drawer.js +1 -1
- package/dist/file-picker/file-picker.css +1 -1
- package/dist/file-picker/file-picker.css.map +1 -1
- package/dist/file-picker/file-picker.js +11 -9
- package/dist/form-row.d.ts +2 -1
- package/dist/form-row.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +11 -9
- package/dist/layout/layout.css +1 -1
- package/dist/layout/layout.css.map +1 -1
- package/dist/layout/layout.js +11 -9
- package/dist/nbui/nbui-card.d.ts +3 -0
- package/dist/nbui/nbui-card.js +4 -0
- package/dist/nbui/nbui-card.js.map +1 -0
- package/dist/nbui/nbui-container.d.ts +5 -0
- package/dist/nbui/nbui-container.js +4 -0
- package/dist/nbui/nbui-container.js.map +1 -0
- package/dist/no-results-block.js +1 -1
- package/dist/page-header.js +1 -1
- package/dist/product-picker/product-drawer.css +1 -1
- package/dist/product-picker/product-drawer.css.map +1 -1
- package/dist/product-picker/product-drawer.js +11 -9
- package/dist/stacked-list-item.css +1 -1
- package/dist/stacked-list-item.css.map +1 -1
- package/dist/stacked-list-item.js +11 -9
- package/dist/table-result-block.css +1 -1
- package/dist/table-result-block.css.map +1 -1
- package/dist/table-result-block.js +11 -9
- package/dist/text-row.d.ts +2 -1
- package/dist/text-row.js +1 -1
- package/package.json +1 -1
- package/src/drawer.tsx +1 -1
- package/src/form-row.tsx +3 -1
- package/src/index.tsx +3 -1
- package/src/nbui/nbui-card.tsx +15 -0
- package/src/nbui/nbui-container.tsx +22 -0
- package/src/no-results-block.tsx +1 -1
- package/src/page-header.tsx +1 -1
- package/src/text-row.tsx +4 -2
- package/dist/chunk-P4BV63ZR.js +0 -8
- package/dist/chunk-P4BV63ZR.js.map +0 -1
- package/dist/chunk-QP53HWTU.js +0 -9
- package/dist/chunk-QP53HWTU.js.map +0 -1
- package/dist/chunk-RS2EPFQY.js +0 -8
- package/dist/chunk-RS2EPFQY.js.map +0 -1
- package/dist/chunk-TKQKGJ3X.js +0 -7
- package/dist/chunk-TKQKGJ3X.js.map +0 -1
- /package/dist/{chunk-MD4AM55R.js.map → chunk-4GDWK5BI.js.map} +0 -0
- /package/dist/{chunk-BS2JSVCX.js.map → chunk-PZSZTHB6.js.map} +0 -0
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
export { e as TableResultBlock } from './chunk-
|
|
1
|
+
export { e as TableResultBlock } from './chunk-PZSZTHB6.js';
|
|
2
|
+
import './chunk-RHBXFO7R.js';
|
|
2
3
|
import './chunk-CVZY2CLV.js';
|
|
3
4
|
import './chunk-N7JQ6EAC.js';
|
|
4
5
|
import './chunk-HVNLAQA6.js';
|
|
5
6
|
import './chunk-52VBZOHL.js';
|
|
6
7
|
import './chunk-ZHMUFBQM.js';
|
|
7
|
-
import './chunk-Q3HXAUZP.js';
|
|
8
8
|
import './chunk-E62SCYLR.js';
|
|
9
|
+
import './chunk-Q3HXAUZP.js';
|
|
9
10
|
import './chunk-JHGOFDVG.js';
|
|
10
11
|
import './chunk-4E6CDLVE.js';
|
|
11
12
|
import './chunk-XXP5K6Y4.js';
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-X6RBGNFS.js';
|
|
14
|
+
import './chunk-7Q6OMA2A.js';
|
|
15
|
+
import './chunk-5QCQEH52.js';
|
|
14
16
|
import './chunk-QCHLLBHM.js';
|
|
15
17
|
import './chunk-LIXVY47P.js';
|
|
16
18
|
import './chunk-G2WGEIWK.js';
|
|
17
19
|
import './chunk-7WJGATIR.js';
|
|
18
20
|
import './chunk-RTRHNOTP.js';
|
|
19
|
-
import './chunk-
|
|
21
|
+
import './chunk-SFEJDNIA.js';
|
|
20
22
|
import './chunk-E5KIDP3Z.js';
|
|
21
23
|
import './chunk-TBJGGVSZ.js';
|
|
22
24
|
import './chunk-QKHEEDZ4.js';
|
|
@@ -28,8 +30,8 @@ import './chunk-EEMQBWYJ.js';
|
|
|
28
30
|
import './chunk-LTMZ5RRZ.js';
|
|
29
31
|
import './chunk-IY6WVOAI.js';
|
|
30
32
|
import './chunk-VGGEDWFD.js';
|
|
31
|
-
import './chunk-
|
|
32
|
-
import './chunk-
|
|
33
|
+
import './chunk-AVTJXS4U.js';
|
|
34
|
+
import './chunk-F7AUKLLE.js';
|
|
33
35
|
import './chunk-QMOPWIA3.js';
|
|
34
36
|
import './chunk-SLIZ4TDR.js';
|
|
35
37
|
import './chunk-FPELMAZN.js';
|
|
@@ -38,9 +40,9 @@ import './chunk-6YBVKGQW.js';
|
|
|
38
40
|
import './chunk-ISA6E23B.js';
|
|
39
41
|
import './chunk-7Z2AKRKU.js';
|
|
40
42
|
import './chunk-WSRPB5OU.js';
|
|
41
|
-
import './chunk-
|
|
43
|
+
import './chunk-4GDWK5BI.js';
|
|
42
44
|
import './chunk-DSJ5TRZW.js';
|
|
43
|
-
import './chunk-
|
|
45
|
+
import './chunk-UUMCAKW4.js';
|
|
44
46
|
import './chunk-4RKNVFVG.js';
|
|
45
47
|
import './chunk-M4UBHZDH.js';
|
|
46
48
|
import './chunk-TMO76FWT.js';
|
package/dist/text-row.d.ts
CHANGED
|
@@ -4,8 +4,9 @@ type Props = {
|
|
|
4
4
|
text: string;
|
|
5
5
|
border?: boolean;
|
|
6
6
|
className?: string;
|
|
7
|
+
id?: string | null;
|
|
7
8
|
};
|
|
8
|
-
declare function TextRow({ children, title, text, border, className }: Props): JSX.Element;
|
|
9
|
+
declare function TextRow({ children, title, text, border, className, id }: Props): JSX.Element;
|
|
9
10
|
declare namespace TextRow {
|
|
10
11
|
var displayName: string;
|
|
11
12
|
}
|
package/dist/text-row.js
CHANGED
package/package.json
CHANGED
package/src/drawer.tsx
CHANGED
|
@@ -48,7 +48,7 @@ export function Drawer({ show, onClose, children, title }: Props) {
|
|
|
48
48
|
<div
|
|
49
49
|
ref={drawerCallback}
|
|
50
50
|
id="EKM-ui-drawer"
|
|
51
|
-
className="fixed right-0 top-0 z-
|
|
51
|
+
className="fixed right-0 top-0 z-50 h-screen w-[90%] translate-x-full overflow-y-auto bg-white transition-transform dark:bg-gray-800 sm:max-w-lg md:w-[500px]"
|
|
52
52
|
tabIndex={-1}
|
|
53
53
|
aria-labelledby="drawer-right-label"
|
|
54
54
|
>
|
package/src/form-row.tsx
CHANGED
|
@@ -8,6 +8,7 @@ type Props = {
|
|
|
8
8
|
helperText?: String;
|
|
9
9
|
className?: string;
|
|
10
10
|
errorText?: string;
|
|
11
|
+
id?: string | null;
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
export function FormRow({
|
|
@@ -17,9 +18,10 @@ export function FormRow({
|
|
|
17
18
|
helperText,
|
|
18
19
|
className,
|
|
19
20
|
errorText,
|
|
21
|
+
id,
|
|
20
22
|
}: Props) {
|
|
21
23
|
return (
|
|
22
|
-
<div className={clsx("grid grid-cols-1 content-start gap-y-2", className)}>
|
|
24
|
+
<div id={id || undefined} className={clsx("grid grid-cols-1 content-start gap-y-2", className)}>
|
|
23
25
|
<Label htmlFor={htmlFor} color={errorText && "failure"}>
|
|
24
26
|
{label}
|
|
25
27
|
</Label>
|
package/src/index.tsx
CHANGED
|
@@ -55,6 +55,8 @@ export { FeaturePageGroup } from "./featurePageComponents/feature-page-group";
|
|
|
55
55
|
export { TableResultBlock } from "./table-result-block";
|
|
56
56
|
export { DateRangePicker } from "./date-range-picker";
|
|
57
57
|
export { ProductPicker } from "./product-picker/product-drawer";
|
|
58
|
-
export {TestComponent} from "./test-component";
|
|
58
|
+
export { TestComponent } from "./test-component";
|
|
59
|
+
export { NBUI_Container } from "./nbui/nbui-container";
|
|
60
|
+
export { NBUI_Card } from "./nbui/nbui-card";
|
|
59
61
|
|
|
60
62
|
import "./styles.css";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function NBUI_Card() {
|
|
2
|
+
return (
|
|
3
|
+
<div className="flex flex-col rounded-lg border border-gray-200 bg-white px-5 py-4 shadow-sm dark:border-gray-700 dark:bg-gray-800">
|
|
4
|
+
<div className="flex h-full flex-col justify-center gap-4">
|
|
5
|
+
<div className="w-1/4 h-6 bg-gray-400 rounded-md" />
|
|
6
|
+
<div className="mt-2 w-2/4 h-4 bg-gray-200 rounded-md" />
|
|
7
|
+
<div className="mt-4 w-2/4 h-4 bg-gray-200 rounded-md" />
|
|
8
|
+
<div className="mt-4 w-2/4 h-4 bg-gray-200 rounded-md" />
|
|
9
|
+
<div className="mt-4 w-2/4 h-4 bg-gray-200 rounded-md" />
|
|
10
|
+
<div className="mt-4 w-2/4 h-4 bg-gray-200 rounded-md" />
|
|
11
|
+
<div className="mt-4 w-2/4 h-4 bg-gray-200 rounded-md" />
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
)
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
function NBUI_PageHeader() {
|
|
3
|
+
return (
|
|
4
|
+
<div className="border-b bg-white p-8 shadow-sm dark:border-gray-700 dark:bg-gray-800 lg:flex lg:items-center lg:justify-between">
|
|
5
|
+
<div className="w-full">
|
|
6
|
+
<div className="w-32 h-4 bg-gray-200 rounded-md" />
|
|
7
|
+
<div className="flex items-center">
|
|
8
|
+
<div className="mt-2 w-80 h-10 bg-gray-400 rounded-md" />
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function NBUI_Container({ children }) {
|
|
16
|
+
return (
|
|
17
|
+
<main id="nbuiContainer" className="relative dark:bg-gray-900 flex h-full flex-grow flex-col gap-4 overflow-y-auto bg-gray-50 ">
|
|
18
|
+
<NBUI_PageHeader />
|
|
19
|
+
<form className="grid-col-1 grid gap-y-4 px-4">{children}</form>
|
|
20
|
+
</main>
|
|
21
|
+
)
|
|
22
|
+
}
|
package/src/no-results-block.tsx
CHANGED
|
@@ -9,7 +9,7 @@ type Props = {
|
|
|
9
9
|
|
|
10
10
|
export function NoResultsBlock({ icon, title, text, children, buttons }: Props) {
|
|
11
11
|
return (
|
|
12
|
-
<div className="flex flex-col items-center justify-between px-4 py-16 sm:px-8">
|
|
12
|
+
<div id='noResultsBlock' className="flex flex-col items-center justify-between px-4 py-16 sm:px-8">
|
|
13
13
|
{icon}
|
|
14
14
|
<h4 className="text-center text-xl font-bold dark:text-white">{title}</h4>
|
|
15
15
|
<p className="mb-6 text-center text-gray-500 dark:text-gray-400">
|
package/src/page-header.tsx
CHANGED
|
@@ -11,7 +11,7 @@ type Props = {
|
|
|
11
11
|
|
|
12
12
|
export function PageHeader({ children, title, text, breadcrumbs, extras }: Props) {
|
|
13
13
|
return (
|
|
14
|
-
<div className="border-b bg-white p-8 shadow-sm dark:border-gray-700 dark:bg-gray-800 lg:flex lg:items-center lg:justify-between">
|
|
14
|
+
<div id="pageHeader" className="border-b bg-white p-8 shadow-sm dark:border-gray-700 dark:bg-gray-800 lg:flex lg:items-center lg:justify-between">
|
|
15
15
|
<div className="flex w-full flex-wrap items-center justify-between gap-x-8 gap-y-4 sm:flex-nowrap ">
|
|
16
16
|
<div>
|
|
17
17
|
<Breadcrumb aria-label="Default breadcrumb example">
|
package/src/text-row.tsx
CHANGED
|
@@ -4,12 +4,14 @@ type Props = {
|
|
|
4
4
|
text: string;
|
|
5
5
|
border?: boolean;
|
|
6
6
|
className?: string;
|
|
7
|
+
id?: string | null;
|
|
7
8
|
};
|
|
8
9
|
|
|
9
|
-
export function TextRow({ children, title, text, border, className }: Props) {
|
|
10
|
+
export function TextRow({ children, title, text, border, className, id }: Props) {
|
|
10
11
|
return (
|
|
11
12
|
<div
|
|
12
|
-
|
|
13
|
+
id={id || undefined}
|
|
14
|
+
className={`${className || ''} flex flex-wrap items-center justify-between gap-4 sm:flex-nowrap
|
|
13
15
|
${border ? "border-b pb-4 dark:border-gray-900" : ""} `}
|
|
14
16
|
>
|
|
15
17
|
<div>
|
package/dist/chunk-P4BV63ZR.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
function n({children:e,title:a,text:s,border:o,className:i}){return jsxs("div",{className:`${i} flex flex-wrap items-center justify-between gap-4 sm:flex-nowrap
|
|
4
|
-
${o?"border-b pb-4 dark:border-gray-900":""} `,children:[jsxs("div",{children:[jsx("p",{className:"mb-1 text-sm font-medium dark:text-white",children:a}),jsx("p",{className:"flex-shrink text-xs font-normal text-gray-500 dark:text-gray-400",children:s})]}),e&&e]})}n.displayName="TextRow";
|
|
5
|
-
|
|
6
|
-
export { n as a };
|
|
7
|
-
//# sourceMappingURL=out.js.map
|
|
8
|
-
//# sourceMappingURL=chunk-P4BV63ZR.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/text-row.tsx"],"names":["jsx","jsxs","TextRow","children","title","text","border","className"],"mappings":"AAcM,OACE,OAAAA,EADF,QAAAC,MAAA,oBANC,SAASC,EAAQ,CAAE,SAAAC,EAAU,MAAAC,EAAO,KAAAC,EAAM,OAAAC,EAAQ,UAAAC,CAAU,EAAU,CAC3E,OACEN,EAAC,OACC,UAAW,GAAGM;AAAA,QACZD,EAAS,qCAAuC,MAElD,UAAAL,EAAC,OACC,UAAAD,EAAC,KAAE,UAAU,2CAA4C,SAAAI,EAAM,EAC/DJ,EAAC,KAAE,UAAU,mEACV,SAAAK,EACH,GACF,EACCF,GAAYA,GACf,CAEJ,CAEAD,EAAQ,YAAc","sourcesContent":["type Props = {\n children?: JSX.Element;\n title: string;\n text: string;\n border?: boolean;\n className?: string;\n};\n\nexport function TextRow({ children, title, text, border, className }: Props) {\n return (\n <div\n className={`${className} flex flex-wrap items-center justify-between gap-4 sm:flex-nowrap \n ${border ? \"border-b pb-4 dark:border-gray-900\" : \"\"} `}\n >\n <div>\n <p className=\"mb-1 text-sm font-medium dark:text-white\">{title}</p>\n <p className=\"flex-shrink text-xs font-normal text-gray-500 dark:text-gray-400\">\n {text}\n </p>\n </div>\n {children && children}\n </div>\n );\n}\n\nTextRow.displayName = \"TextRow\";\n"]}
|
package/dist/chunk-QP53HWTU.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-4RKNVFVG.js';
|
|
2
|
-
import i from 'clsx';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
function m({children:o,label:e,htmlFor:l,helperText:r,className:n,errorText:t}){return jsxs("div",{className:i("grid grid-cols-1 content-start gap-y-2",n),children:[jsx(a,{htmlFor:l,color:t&&"failure",children:e}),o,r&&!t&&jsx("span",{className:"text-xs font-normal text-gray-500 dark:text-gray-400",children:r}),t&&jsx("span",{className:"text-xs font-normal text-red-500 dark:text-red-500",children:t})]})}m.displayName="FormRow";
|
|
6
|
-
|
|
7
|
-
export { m as a };
|
|
8
|
-
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=chunk-QP53HWTU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/form-row.tsx"],"names":["clsx","jsx","jsxs","FormRow","children","label","htmlFor","helperText","className","errorText","Label"],"mappings":"wCAAA,OAAOA,MAAU,OAqBb,OACE,OAAAC,EADF,QAAAC,MAAA,oBATG,SAASC,EAAQ,CACtB,SAAAC,EACA,MAAAC,EACA,QAAAC,EACA,WAAAC,EACA,UAAAC,EACA,UAAAC,CACF,EAAU,CACR,OACEP,EAAC,OAAI,UAAWF,EAAK,yCAA0CQ,CAAS,EACtE,UAAAP,EAACS,EAAA,CAAM,QAASJ,EAAS,MAAOG,GAAa,UAC1C,SAAAJ,EACH,EACCD,EACAG,GAAc,CAACE,GACdR,EAAC,QAAK,UAAU,uDACb,SAAAM,EACH,EAEDE,GACCR,EAAC,QAAK,UAAU,qDACb,SAAAQ,EACH,GAEJ,CAEJ,CAEAN,EAAQ,YAAc","sourcesContent":["import clsx from \"clsx\";\nimport { Label } from \"./label\";\n\ntype Props = {\n children: React.ReactNode;\n label: string;\n htmlFor: string;\n helperText?: String;\n className?: string;\n errorText?: string;\n};\n\nexport function FormRow({\n children,\n label,\n htmlFor,\n helperText,\n className,\n errorText,\n}: Props) {\n return (\n <div className={clsx(\"grid grid-cols-1 content-start gap-y-2\", className)}>\n <Label htmlFor={htmlFor} color={errorText && \"failure\"}>\n {label}\n </Label>\n {children}\n {helperText && !errorText && (\n <span className=\"text-xs font-normal text-gray-500 dark:text-gray-400\">\n {helperText}\n </span>\n )}\n {errorText && (\n <span className=\"text-xs font-normal text-red-500 dark:text-red-500\">\n {errorText}\n </span>\n )}\n </div>\n );\n}\n\nFormRow.displayName = \"FormRow\";\n"]}
|
package/dist/chunk-RS2EPFQY.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-TRVGXTCI.js';
|
|
2
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
function x({children:l,title:m,text:i,breadcrumbs:s,extras:n}){return jsx("div",{className:"border-b bg-white p-8 shadow-sm dark:border-gray-700 dark:bg-gray-800 lg:flex lg:items-center lg:justify-between",children:jsxs("div",{className:"flex w-full flex-wrap items-center justify-between gap-x-8 gap-y-4 sm:flex-nowrap ",children:[jsxs("div",{children:[jsx(a,{"aria-label":"Default breadcrumb example",children:(s||[]).map((r,d)=>d===0?jsx(a.Home,{href:r.linkURL,children:r.linkLabel},r.linkURL):jsx(a.Item,{href:r.linkURL,children:r.linkLabel},r.linkURL))}),jsxs("div",{className:"flex items-center",children:[jsx("h2",{className:"mt-2 text-xl font-semibold leading-7 text-gray-900 dark:text-white sm:truncate",children:m}),n]}),jsx("p",{className:" text-sm font-normal text-gray-500 dark:text-gray-400",children:i})]}),jsx("div",{className:"mt-1 flex flex-shrink-0 flex-col sm:mt-0 sm:flex-row sm:flex-wrap sm:space-x-6",children:l})]})})}x.displayName="PageHeader";
|
|
5
|
-
|
|
6
|
-
export { x as a };
|
|
7
|
-
//# sourceMappingURL=out.js.map
|
|
8
|
-
//# sourceMappingURL=chunk-RS2EPFQY.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/page-header.tsx"],"names":["jsx","jsxs","PageHeader","children","title","text","breadcrumbs","extras","Breadcrumb","bc","i"],"mappings":"mCAoBkB,cAAAA,EAYR,QAAAC,MAZQ,oBATX,SAASC,EAAW,CAAE,SAAAC,EAAU,MAAAC,EAAO,KAAAC,EAAM,YAAAC,EAAa,OAAAC,CAAO,EAAU,CAChF,OACEP,EAAC,OAAI,UAAU,mHACb,SAAAC,EAAC,OAAI,UAAU,qFACb,UAAAA,EAAC,OACC,UAAAD,EAACQ,EAAA,CAAW,aAAW,6BACnB,UAAAF,GAAe,CAAC,GAAG,IAAI,CAACG,EAAIC,IACxBA,IAAM,EAENV,EAACQ,EAAW,KAAX,CAAiC,KAAMC,EAAG,QACxC,SAAAA,EAAG,WADgBA,EAAG,OAEzB,EAIFT,EAACQ,EAAW,KAAX,CAAiC,KAAMC,EAAG,QACxC,SAAAA,EAAG,WADgBA,EAAG,OAEzB,CAEH,EACH,EACAR,EAAC,OAAI,UAAU,oBACf,UAAAD,EAAC,MAAG,UAAU,iFACX,SAAAI,EACD,EACDG,GACH,EACEP,EAAC,KAAE,UAAU,wDACV,SAAAK,EACH,GACF,EACAL,EAAC,OAAI,UAAU,iFACZ,SAAAG,EACH,GACF,EACF,CAEJ,CAEAD,EAAW,YAAc","sourcesContent":["//@ts-nocheck\nimport { Breadcrumb } from \"./breadcrumb\";\n\ntype Props = {\n title: string;\n text?: string | Element[];\n children?: JSX.Element;\n breadcrumbs: Array<{ linkLabel: string; linkURL: string }>;\n extras: JSX.Element;\n};\n\nexport function PageHeader({ children, title, text, breadcrumbs, extras }: Props) {\n return (\n <div className=\"border-b bg-white p-8 shadow-sm dark:border-gray-700 dark:bg-gray-800 lg:flex lg:items-center lg:justify-between\">\n <div className=\"flex w-full flex-wrap items-center justify-between gap-x-8 gap-y-4 sm:flex-nowrap \">\n <div>\n <Breadcrumb aria-label=\"Default breadcrumb example\">\n {(breadcrumbs || []).map((bc, i) => {\n if (i === 0) {\n return (\n <Breadcrumb.Home key={bc.linkURL} href={bc.linkURL}>\n {bc.linkLabel}\n </Breadcrumb.Home>\n );\n }\n return (\n <Breadcrumb.Item key={bc.linkURL} href={bc.linkURL}>\n {bc.linkLabel}\n </Breadcrumb.Item>\n );\n })}\n </Breadcrumb>\n <div className='flex items-center'>\n <h2 className=\"mt-2 text-xl font-semibold leading-7 text-gray-900 dark:text-white sm:truncate\">\n {title}\n </h2>\n {extras}\n </div> \n <p className=\" text-sm font-normal text-gray-500 dark:text-gray-400\">\n {text}\n </p>\n </div>\n <div className=\"mt-1 flex flex-shrink-0 flex-col sm:mt-0 sm:flex-row sm:flex-wrap sm:space-x-6\">\n {children}\n </div>\n </div>\n </div>\n );\n}\n\nPageHeader.displayName = \"PageHeader\";\n"]}
|
package/dist/chunk-TKQKGJ3X.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
function a({icon:t,title:l,text:s,children:n,buttons:x}){return jsxs("div",{className:"flex flex-col items-center justify-between px-4 py-16 sm:px-8",children:[t,jsx("h4",{className:"text-center text-xl font-bold dark:text-white",children:l}),jsx("p",{className:"mb-6 text-center text-gray-500 dark:text-gray-400",children:s}),jsx("div",{className:"flex flex-wrap",children:n})]})}
|
|
4
|
-
|
|
5
|
-
export { a };
|
|
6
|
-
//# sourceMappingURL=out.js.map
|
|
7
|
-
//# sourceMappingURL=chunk-TKQKGJ3X.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/no-results-block.tsx"],"names":["jsx","jsxs","NoResultsBlock","icon","title","text","children","buttons"],"mappings":"AAWI,OAEE,OAAAA,EAFF,QAAAC,MAAA,oBAFG,SAASC,EAAe,CAAE,KAAAC,EAAM,MAAAC,EAAO,KAAAC,EAAM,SAAAC,EAAU,QAAAC,CAAQ,EAAU,CAC9E,OACEN,EAAC,OAAI,UAAU,gEACZ,UAAAE,EACDH,EAAC,MAAG,UAAU,gDAAiD,SAAAI,EAAM,EACrEJ,EAAC,KAAE,UAAU,oDACV,SAAAK,EACH,EACAL,EAAC,OAAI,UAAU,iBAAkB,SAAAM,EAAS,GAC5C,CAEJ","sourcesContent":["\ntype Props = {\n title: string;\n icon: JSX.Element;\n text: string;\n buttons?: JSX.Element;\n children?: JSX.Element;\n};\n\nexport function NoResultsBlock({ icon, title, text, children, buttons }: Props) {\n return (\n <div className=\"flex flex-col items-center justify-between px-4 py-16 sm:px-8\">\n {icon}\n <h4 className=\"text-center text-xl font-bold dark:text-white\">{title}</h4>\n <p className=\"mb-6 text-center text-gray-500 dark:text-gray-400\">\n {text}\n </p>\n <div className=\"flex flex-wrap\">{children}</div>\n </div>\n );\n}\n"]}
|
|
File without changes
|
|
File without changes
|