@incognia/cosmik 0.24.1-beta.0 → 0.24.2
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/Layout/index.d.ts +5 -4
- package/dist/Layout/index.d.ts.map +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs15.js.map +1 -1
- package/dist/index.es15.js +23 -30
- package/dist/index.es15.js.map +1 -1
- package/package.json +1 -1
package/dist/Layout/index.d.ts
CHANGED
|
@@ -6,9 +6,10 @@ type LayoutProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
6
6
|
export declare function Layout({ children, className, isLoading, ...props }: LayoutProps & {
|
|
7
7
|
isLoading?: boolean;
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function LayoutSidebar({
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
9
|
+
export declare function LayoutSidebar({ className, ...props }: LayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function LayoutContent({ className, ...props }: LayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function LayoutScrollableContent({ className, ...props }: LayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function LayoutMain({ className, ...props }: LayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function LayoutTopbar({ className, ...props }: LayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export {};
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Layout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,KAAK,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,WAAW,GAAG;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,2CAOA;AAUD,wBAAgB,aAAa,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Layout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,KAAK,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,WAAW,GAAG;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,2CAOA;AAUD,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAUjE;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAEjE;AAED,wBAAgB,uBAAuB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAI3E;AAED,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAU9D;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAUhE"}
|
package/dist/index.cjs15.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs29.js"),s=require("./index.cjs30.js");function o({children:e,className:t,isLoading:n,...a}){return r.jsxRuntimeExports.jsxs("div",{className:s.cn("flex h-full",t),...a,children:[n&&r.jsxRuntimeExports.jsx(i,{}),e]})}function i(){return r.jsxRuntimeExports.jsx("div",{className:"fixed inset-0 bg-gray-400 z-[60] h-4",children:r.jsxRuntimeExports.jsx("div",{className:"bg-chart-purple h-4 rounded-r-small animate-page-loader"})})}function u({className:e,...t}){return r.jsxRuntimeExports.jsx("aside",{className:s.cn("bg-white flex flex-col flex-shrink-0 border-r-1 border-gray-900-16 w-[238px] sticky h-screen",e),...t})}function l({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{className:s.cn("flex-grow overflow-y-auto",e),...t})}function x({className:e,...t}){return r.jsxRuntimeExports.jsx("main",{className:s.cn("flex flex-col flex-grow justify-start bg-gray-50 sticky h-screen",e),...t})}function c({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{className:s.cn("flex-shrink-0 bg-white border-b-1 border-gray-900-16",e),...t})}exports.Layout=o;exports.LayoutMain=x;exports.LayoutScrollableContent=l;exports.LayoutSidebar=u;exports.LayoutTopbar=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs15.js.map
|
package/dist/index.cjs15.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs15.js","sources":["../src/Layout/index.tsx"],"sourcesContent":["import React from 'react'\nimport { cn } from '../lib/utils'\n\ntype LayoutProps = React.HTMLAttributes<HTMLDivElement> & {\n children: React.ReactNode\n className?: string\n}\n\nexport function Layout({\n children,\n className,\n isLoading,\n ...props\n}: LayoutProps & {\n isLoading?: boolean\n}) {\n return (\n <div className={cn('flex h-full', className)} {...props}>\n {isLoading && <LayoutPageLoader />}\n {children}\n </div>\n )\n}\n\nfunction LayoutPageLoader() {\n return (\n <div className=\"fixed inset-0 bg-gray-400 z-[60] h-4\">\n <div className=\"bg-chart-purple h-4 rounded-r-small animate-page-loader\"></div>\n </div>\n )\n}\n\nexport function LayoutSidebar({
|
|
1
|
+
{"version":3,"file":"index.cjs15.js","sources":["../src/Layout/index.tsx"],"sourcesContent":["import React from 'react'\nimport { cn } from '../lib/utils'\n\ntype LayoutProps = React.HTMLAttributes<HTMLDivElement> & {\n children: React.ReactNode\n className?: string\n}\n\nexport function Layout({\n children,\n className,\n isLoading,\n ...props\n}: LayoutProps & {\n isLoading?: boolean\n}) {\n return (\n <div className={cn('flex h-full', className)} {...props}>\n {isLoading && <LayoutPageLoader />}\n {children}\n </div>\n )\n}\n\nfunction LayoutPageLoader() {\n return (\n <div className=\"fixed inset-0 bg-gray-400 z-[60] h-4\">\n <div className=\"bg-chart-purple h-4 rounded-r-small animate-page-loader\"></div>\n </div>\n )\n}\n\nexport function LayoutSidebar({ className, ...props }: LayoutProps) {\n return (\n <aside\n className={cn(\n 'bg-white flex flex-col flex-shrink-0 border-r-1 border-gray-900-16 w-[238px] sticky h-screen',\n className\n )}\n {...props}\n />\n )\n}\n\nexport function LayoutContent({ className, ...props }: LayoutProps) {\n return <div className={cn('flex-shrink-0', className)} {...props} />\n}\n\nexport function LayoutScrollableContent({ className, ...props }: LayoutProps) {\n return (\n <div className={cn('flex-grow overflow-y-auto', className)} {...props} />\n )\n}\n\nexport function LayoutMain({ className, ...props }: LayoutProps) {\n return (\n <main\n className={cn(\n 'flex flex-col flex-grow justify-start bg-gray-50 sticky h-screen',\n className\n )}\n {...props}\n />\n )\n}\n\nexport function LayoutTopbar({ className, ...props }: LayoutProps) {\n return (\n <div\n className={cn(\n 'flex-shrink-0 bg-white border-b-1 border-gray-900-16',\n className\n )}\n {...props}\n />\n )\n}\n"],"names":["Layout","children","className","isLoading","props","jsxs","cn","LayoutPageLoader","jsx","LayoutSidebar","LayoutScrollableContent","LayoutMain","LayoutTopbar"],"mappings":"kJAQO,SAASA,EAAO,CACrB,SAAAC,EACA,UAAAC,EACA,UAAAC,EACA,GAAGC,CACL,EAEG,CAEC,OAAAC,EAAA,kBAAA,KAAC,OAAI,UAAWC,EAAAA,GAAG,cAAeJ,CAAS,EAAI,GAAGE,EAC/C,SAAA,CAAAD,2BAAcI,EAAiB,EAAA,EAC/BN,CACH,CAAA,CAAA,CAEJ,CAEA,SAASM,GAAmB,CAExB,OAAAC,EAAA,kBAAA,IAAC,OAAI,UAAU,uCACb,iCAAC,MAAI,CAAA,UAAU,yDAA0D,CAAA,CAC3E,CAAA,CAEJ,CAEO,SAASC,EAAc,CAAE,UAAAP,EAAW,GAAGE,GAAsB,CAEhE,OAAAI,EAAA,kBAAA,IAAC,QAAA,CACC,UAAWF,EAAA,GACT,+FACAJ,CACF,EACC,GAAGE,CAAA,CAAA,CAGV,CAMO,SAASM,EAAwB,CAAE,UAAAR,EAAW,GAAGE,GAAsB,CAE1E,OAAAI,EAAA,kBAAA,IAAC,OAAI,UAAWF,EAAAA,GAAG,4BAA6BJ,CAAS,EAAI,GAAGE,CAAO,CAAA,CAE3E,CAEO,SAASO,EAAW,CAAE,UAAAT,EAAW,GAAGE,GAAsB,CAE7D,OAAAI,EAAA,kBAAA,IAAC,OAAA,CACC,UAAWF,EAAA,GACT,mEACAJ,CACF,EACC,GAAGE,CAAA,CAAA,CAGV,CAEO,SAASQ,EAAa,CAAE,UAAAV,EAAW,GAAGE,GAAsB,CAE/D,OAAAI,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWF,EAAA,GACT,uDACAJ,CACF,EACC,GAAGE,CAAA,CAAA,CAGV"}
|
package/dist/index.es15.js
CHANGED
|
@@ -1,62 +1,55 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { cn as
|
|
1
|
+
import { j as a } from "./index.es29.js";
|
|
2
|
+
import { cn as s } from "./index.es30.js";
|
|
3
3
|
function c({
|
|
4
4
|
children: e,
|
|
5
5
|
className: r,
|
|
6
|
-
isLoading:
|
|
6
|
+
isLoading: t,
|
|
7
7
|
...o
|
|
8
8
|
}) {
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
9
|
+
return /* @__PURE__ */ a.jsxs("div", { className: s("flex h-full", r), ...o, children: [
|
|
10
|
+
t && /* @__PURE__ */ a.jsx(n, {}),
|
|
11
11
|
e
|
|
12
12
|
] });
|
|
13
13
|
}
|
|
14
14
|
function n() {
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ a.jsx("div", { className: "fixed inset-0 bg-gray-400 z-[60] h-4", children: /* @__PURE__ */ a.jsx("div", { className: "bg-chart-purple h-4 rounded-r-small animate-page-loader" }) });
|
|
16
16
|
}
|
|
17
|
-
function u({
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
function u({ className: e, ...r }) {
|
|
18
|
+
return /* @__PURE__ */ a.jsx(
|
|
19
19
|
"aside",
|
|
20
20
|
{
|
|
21
|
-
className:
|
|
21
|
+
className: s(
|
|
22
22
|
"bg-white flex flex-col flex-shrink-0 border-r-1 border-gray-900-16 w-[238px] sticky h-screen",
|
|
23
|
-
|
|
23
|
+
e
|
|
24
24
|
),
|
|
25
|
-
...
|
|
26
|
-
children: e
|
|
25
|
+
...r
|
|
27
26
|
}
|
|
28
27
|
);
|
|
29
28
|
}
|
|
30
|
-
function x({
|
|
31
|
-
|
|
32
|
-
className: r,
|
|
33
|
-
...a
|
|
34
|
-
}) {
|
|
35
|
-
return /* @__PURE__ */ s.jsx("div", { className: t("flex-grow overflow-y-auto", r), ...a, children: e });
|
|
29
|
+
function x({ className: e, ...r }) {
|
|
30
|
+
return /* @__PURE__ */ a.jsx("div", { className: s("flex-grow overflow-y-auto", e), ...r });
|
|
36
31
|
}
|
|
37
|
-
function f({
|
|
38
|
-
return /* @__PURE__ */
|
|
32
|
+
function f({ className: e, ...r }) {
|
|
33
|
+
return /* @__PURE__ */ a.jsx(
|
|
39
34
|
"main",
|
|
40
35
|
{
|
|
41
|
-
className:
|
|
36
|
+
className: s(
|
|
42
37
|
"flex flex-col flex-grow justify-start bg-gray-50 sticky h-screen",
|
|
43
|
-
|
|
38
|
+
e
|
|
44
39
|
),
|
|
45
|
-
...
|
|
46
|
-
children: e
|
|
40
|
+
...r
|
|
47
41
|
}
|
|
48
42
|
);
|
|
49
43
|
}
|
|
50
|
-
function d({
|
|
51
|
-
return /* @__PURE__ */
|
|
44
|
+
function d({ className: e, ...r }) {
|
|
45
|
+
return /* @__PURE__ */ a.jsx(
|
|
52
46
|
"div",
|
|
53
47
|
{
|
|
54
|
-
className:
|
|
48
|
+
className: s(
|
|
55
49
|
"flex-shrink-0 bg-white border-b-1 border-gray-900-16",
|
|
56
|
-
|
|
50
|
+
e
|
|
57
51
|
),
|
|
58
|
-
...
|
|
59
|
-
children: e
|
|
52
|
+
...r
|
|
60
53
|
}
|
|
61
54
|
);
|
|
62
55
|
}
|
package/dist/index.es15.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es15.js","sources":["../src/Layout/index.tsx"],"sourcesContent":["import React from 'react'\nimport { cn } from '../lib/utils'\n\ntype LayoutProps = React.HTMLAttributes<HTMLDivElement> & {\n children: React.ReactNode\n className?: string\n}\n\nexport function Layout({\n children,\n className,\n isLoading,\n ...props\n}: LayoutProps & {\n isLoading?: boolean\n}) {\n return (\n <div className={cn('flex h-full', className)} {...props}>\n {isLoading && <LayoutPageLoader />}\n {children}\n </div>\n )\n}\n\nfunction LayoutPageLoader() {\n return (\n <div className=\"fixed inset-0 bg-gray-400 z-[60] h-4\">\n <div className=\"bg-chart-purple h-4 rounded-r-small animate-page-loader\"></div>\n </div>\n )\n}\n\nexport function LayoutSidebar({
|
|
1
|
+
{"version":3,"file":"index.es15.js","sources":["../src/Layout/index.tsx"],"sourcesContent":["import React from 'react'\nimport { cn } from '../lib/utils'\n\ntype LayoutProps = React.HTMLAttributes<HTMLDivElement> & {\n children: React.ReactNode\n className?: string\n}\n\nexport function Layout({\n children,\n className,\n isLoading,\n ...props\n}: LayoutProps & {\n isLoading?: boolean\n}) {\n return (\n <div className={cn('flex h-full', className)} {...props}>\n {isLoading && <LayoutPageLoader />}\n {children}\n </div>\n )\n}\n\nfunction LayoutPageLoader() {\n return (\n <div className=\"fixed inset-0 bg-gray-400 z-[60] h-4\">\n <div className=\"bg-chart-purple h-4 rounded-r-small animate-page-loader\"></div>\n </div>\n )\n}\n\nexport function LayoutSidebar({ className, ...props }: LayoutProps) {\n return (\n <aside\n className={cn(\n 'bg-white flex flex-col flex-shrink-0 border-r-1 border-gray-900-16 w-[238px] sticky h-screen',\n className\n )}\n {...props}\n />\n )\n}\n\nexport function LayoutContent({ className, ...props }: LayoutProps) {\n return <div className={cn('flex-shrink-0', className)} {...props} />\n}\n\nexport function LayoutScrollableContent({ className, ...props }: LayoutProps) {\n return (\n <div className={cn('flex-grow overflow-y-auto', className)} {...props} />\n )\n}\n\nexport function LayoutMain({ className, ...props }: LayoutProps) {\n return (\n <main\n className={cn(\n 'flex flex-col flex-grow justify-start bg-gray-50 sticky h-screen',\n className\n )}\n {...props}\n />\n )\n}\n\nexport function LayoutTopbar({ className, ...props }: LayoutProps) {\n return (\n <div\n className={cn(\n 'flex-shrink-0 bg-white border-b-1 border-gray-900-16',\n className\n )}\n {...props}\n />\n )\n}\n"],"names":["Layout","children","className","isLoading","props","jsxs","cn","LayoutPageLoader","jsx","LayoutSidebar","LayoutScrollableContent","LayoutMain","LayoutTopbar"],"mappings":";;AAQO,SAASA,EAAO;AAAA,EACrB,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,GAEG;AAEC,SAAAC,gBAAAA,EAAA,KAAC,SAAI,WAAWC,EAAG,eAAeJ,CAAS,GAAI,GAAGE,GAC/C,UAAA;AAAA,IAAAD,2BAAcI,GAAiB,EAAA;AAAA,IAC/BN;AAAA,EACH,EAAA,CAAA;AAEJ;AAEA,SAASM,IAAmB;AAExB,SAAAC,gBAAAA,EAAA,IAAC,SAAI,WAAU,wCACb,gCAAC,OAAI,EAAA,WAAU,0DAA0D,CAAA,EAC3E,CAAA;AAEJ;AAEO,SAASC,EAAc,EAAE,WAAAP,GAAW,GAAGE,KAAsB;AAEhE,SAAAI,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWF;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;AAMO,SAASM,EAAwB,EAAE,WAAAR,GAAW,GAAGE,KAAsB;AAE1E,SAAAI,gBAAAA,EAAA,IAAC,SAAI,WAAWF,EAAG,6BAA6BJ,CAAS,GAAI,GAAGE,EAAO,CAAA;AAE3E;AAEO,SAASO,EAAW,EAAE,WAAAT,GAAW,GAAGE,KAAsB;AAE7D,SAAAI,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWF;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;AAEO,SAASQ,EAAa,EAAE,WAAAV,GAAW,GAAGE,KAAsB;AAE/D,SAAAI,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWF;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|