@solibo/solibo-ui 0.2.13 → 0.2.15
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/index.css +1 -1
- package/dist/assets/index10.css +0 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -0
- package/dist/assets/index21.css +1 -0
- package/dist/assets/index22.css +1 -0
- package/dist/assets/index23.css +1 -0
- package/dist/assets/index24.css +1 -0
- package/dist/assets/index25.css +1 -0
- package/dist/assets/index26.css +1 -0
- package/dist/assets/index27.css +1 -0
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -1
- package/dist/assets/styles.css +1 -0
- package/dist/components/accordion/index.cjs +1 -1
- package/dist/components/accordion/index.cjs.map +1 -1
- package/dist/components/accordion/index.js +15 -29
- package/dist/components/accordion/index.js.map +1 -1
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.cjs.map +1 -1
- package/dist/components/aside/index.js +19 -17
- package/dist/components/aside/index.js.map +1 -1
- package/dist/components/banner/index.cjs +1 -1
- package/dist/components/banner/index.cjs.map +1 -1
- package/dist/components/banner/index.js +18 -18
- package/dist/components/banner/index.js.map +1 -1
- package/dist/components/branding/index.cjs +1 -1
- package/dist/components/branding/index.cjs.map +1 -1
- package/dist/components/branding/index.js +11 -11
- package/dist/components/branding/index.js.map +1 -1
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.cjs.map +1 -1
- package/dist/components/button/index.js +48 -30
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/card/index.cjs +1 -1
- package/dist/components/card/index.cjs.map +1 -1
- package/dist/components/card/index.js +34 -20
- package/dist/components/card/index.js.map +1 -1
- package/dist/components/checkbox/index.cjs +2 -0
- package/dist/components/checkbox/index.cjs.map +1 -0
- package/dist/components/checkbox/index.js +32 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/component/index.cjs +1 -1
- package/dist/components/component/index.cjs.map +1 -1
- package/dist/components/component/index.js +15 -15
- package/dist/components/component/index.js.map +1 -1
- package/dist/components/dialog/index.cjs +1 -1
- package/dist/components/dialog/index.cjs.map +1 -1
- package/dist/components/dialog/index.js +30 -31
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/document/index.cjs +2 -0
- package/dist/components/document/index.cjs.map +1 -0
- package/dist/components/document/index.js +53 -0
- package/dist/components/document/index.js.map +1 -0
- package/dist/components/dropdown/index.cjs +1 -1
- package/dist/components/dropdown/index.cjs.map +1 -1
- package/dist/components/dropdown/index.js +31 -12
- package/dist/components/dropdown/index.js.map +1 -1
- package/dist/components/dropzone/index.cjs +2 -0
- package/dist/components/dropzone/index.cjs.map +1 -0
- package/dist/components/dropzone/index.js +63 -0
- package/dist/components/dropzone/index.js.map +1 -0
- package/dist/components/editor/index.cjs +21 -21
- package/dist/components/editor/index.cjs.map +1 -1
- package/dist/components/editor/index.js +1383 -1377
- package/dist/components/editor/index.js.map +1 -1
- package/dist/components/figure/index.cjs +1 -1
- package/dist/components/figure/index.cjs.map +1 -1
- package/dist/components/figure/index.js +6 -6
- package/dist/components/figure/index.js.map +1 -1
- package/dist/components/footer/index.cjs +2 -0
- package/dist/components/footer/index.cjs.map +1 -0
- package/dist/components/footer/index.js +15 -0
- package/dist/components/footer/index.js.map +1 -0
- package/dist/components/form/index.cjs +2 -0
- package/dist/components/form/index.cjs.map +1 -0
- package/dist/components/form/index.js +17 -0
- package/dist/components/form/index.js.map +1 -0
- package/dist/components/grid/index.cjs +2 -0
- package/dist/components/grid/index.cjs.map +1 -0
- package/dist/components/grid/index.js +140 -0
- package/dist/components/grid/index.js.map +1 -0
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.cjs.map +1 -1
- package/dist/components/header/index.js +11 -10
- package/dist/components/header/index.js.map +1 -1
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.cjs.map +1 -1
- package/dist/components/icon/index.js +53 -31
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.cjs.map +1 -1
- package/dist/components/input/index.js +21 -17
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/layout/index.cjs +2 -0
- package/dist/components/layout/index.cjs.map +1 -0
- package/dist/components/layout/index.js +17 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/components/link/index.cjs +1 -1
- package/dist/components/link/index.cjs.map +1 -1
- package/dist/components/link/index.js +8 -8
- package/dist/components/link/index.js.map +1 -1
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.cjs.map +1 -1
- package/dist/components/list/index.js +6 -6
- package/dist/components/list/index.js.map +1 -1
- package/dist/components/loading/index.cjs +2 -0
- package/dist/components/loading/index.cjs.map +1 -0
- package/dist/components/loading/index.js +99 -0
- package/dist/components/loading/index.js.map +1 -0
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.cjs.map +1 -1
- package/dist/components/nav/index.js +92 -24
- package/dist/components/nav/index.js.map +1 -1
- package/dist/components/picture/index.cjs +2 -0
- package/dist/components/picture/index.cjs.map +1 -0
- package/dist/components/picture/index.js +150 -0
- package/dist/components/picture/index.js.map +1 -0
- package/dist/components/toggle/index.cjs +2 -0
- package/dist/components/toggle/index.cjs.map +1 -0
- package/dist/components/toggle/index.js +39 -0
- package/dist/components/toggle/index.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +165 -21
- package/dist/index.js +40 -20
- package/dist/index.js.map +1 -1
- package/dist/styles.module-B_pXIacc.cjs +2 -0
- package/dist/styles.module-B_pXIacc.cjs.map +1 -0
- package/dist/styles.module-BhmNqlYd.js +7 -0
- package/dist/styles.module-BhmNqlYd.js.map +1 -0
- package/package.json +3 -3
- package/dist/jsx-runtime-BJcCX4ED.cjs +0 -23
- package/dist/jsx-runtime-BJcCX4ED.cjs.map +0 -1
- package/dist/jsx-runtime-CDbhiqmm.js +0 -280
- package/dist/jsx-runtime-CDbhiqmm.js.map +0 -1
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { t as c } from "../../classix-DG18itHa.js";
|
|
3
3
|
import { forwardRef as m } from "react";
|
|
4
|
-
import '../../assets/
|
|
5
|
-
input: u
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
import '../../assets/index13.css';const u = "_input_1r1le_1", f = "_label_1r1le_33", l = {
|
|
5
|
+
input: u,
|
|
6
|
+
label: f
|
|
7
|
+
}, d = m(
|
|
8
|
+
({ className: r, disabled: s = !1, label: t, placeholder: n, type: o = "text", ...a }, p) => /* @__PURE__ */ i("label", { children: [
|
|
9
|
+
t && /* @__PURE__ */ e("span", { className: l.label, children: t }),
|
|
10
|
+
/* @__PURE__ */ e(
|
|
11
|
+
"input",
|
|
12
|
+
{
|
|
13
|
+
ref: p,
|
|
14
|
+
className: c(l.input, r),
|
|
15
|
+
disabled: s,
|
|
16
|
+
placeholder: n,
|
|
17
|
+
type: o,
|
|
18
|
+
...a
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
] })
|
|
18
22
|
);
|
|
19
23
|
export {
|
|
20
|
-
|
|
24
|
+
d as Input
|
|
21
25
|
};
|
|
22
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/input/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport { forwardRef } from 'react';\n\nimport styles from './styles.module.css';\n\nexport type InputProps = React.ComponentPropsWithoutRef<'input'> & {\n disabled?: boolean;\n placeholder?: string;\n type?: '
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/input/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport { forwardRef } from 'react';\n\nimport styles from './styles.module.css';\n\nexport type InputProps = React.ComponentPropsWithoutRef<'input'> & {\n disabled?: boolean;\n label?: string;\n placeholder?: string;\n type?: 'datetime-local' | 'email' | 'number' | 'password' | 'radio' | 'search' | 'tel' | 'text';\n};\n\nexport const Input = forwardRef<HTMLInputElement, InputProps>(\n ({ className, disabled = false, label, placeholder, type = 'text', ...props }, ref) => {\n return (\n <label>\n {label && <span className={styles.label}>{label}</span>}\n <input\n ref={ref}\n className={cx(styles.input, className)}\n disabled={disabled}\n placeholder={placeholder}\n type={type}\n {...props}\n />\n </label>\n );\n }\n);\n"],"names":["Input","forwardRef","className","disabled","label","placeholder","type","props","ref","jsx","styles","cx"],"mappings":";;;;;;GAYaA,IAAQC;AAAA,EACnB,CAAC,EAAE,WAAAC,GAAW,UAAAC,IAAW,IAAO,OAAAC,GAAO,aAAAC,GAAa,MAAAC,IAAO,QAAQ,GAAGC,EAAA,GAASC,wBAE1E,SAAA,EACE,UAAA;AAAA,IAAAJ,KAAS,gBAAAK,EAAC,QAAA,EAAK,WAAWC,EAAO,OAAQ,UAAAN,GAAM;AAAA,IAChD,gBAAAK;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAAD;AAAA,QACA,WAAWG,EAAGD,EAAO,OAAOR,CAAS;AAAA,QACrC,UAAAC;AAAA,QACA,aAAAE;AAAA,QACA,MAAAC;AAAA,QACC,GAAGC;AAAA,MAAA;AAAA,IAAA;AAAA,EACN,GACF;AAGN;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index7.css');const u=require("react/jsx-runtime"),a=require("../../classix-5H4IWnMA.cjs"),n="_layout_b6ho7_1",c="_home_b6ho7_2",o={layout:n,home:c},l=({children:t,feature:e="home",...s})=>u.jsx("main",{className:a.t(o.layout,o[e]),...s,children:t});exports.Layout=l;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/layout/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type LayoutProps = { children: React.ReactNode; feature: 'home' };\n\nexport const Layout = ({ children, feature = 'home', ...props }: LayoutProps) => {\n return (\n <main\n className={cx(styles.layout, styles[feature])}\n {...props}\n >\n {children}\n </main>\n );\n};\n"],"names":["Layout","children","feature","props","jsx","cx","styles"],"mappings":"uNAMaA,EAAS,CAAC,CAAE,SAAAC,EAAU,QAAAC,EAAU,OAAQ,GAAGC,KAEpDC,EAAAA,IAAC,OAAA,CACC,UAAWC,EAAAA,EAAGC,EAAO,OAAQA,EAAOJ,CAAO,CAAC,EAC3C,GAAGC,EAEH,SAAAF,CAAA,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { t as e } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index7.css';const r = "_layout_b6ho7_1", h = "_home_b6ho7_2", o = {
|
|
4
|
+
layout: r,
|
|
5
|
+
home: h
|
|
6
|
+
}, u = ({ children: t, feature: m = "home", ...s }) => /* @__PURE__ */ a(
|
|
7
|
+
"main",
|
|
8
|
+
{
|
|
9
|
+
className: e(o.layout, o[m]),
|
|
10
|
+
...s,
|
|
11
|
+
children: t
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
export {
|
|
15
|
+
u as Layout
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/layout/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type LayoutProps = { children: React.ReactNode; feature: 'home' };\n\nexport const Layout = ({ children, feature = 'home', ...props }: LayoutProps) => {\n return (\n <main\n className={cx(styles.layout, styles[feature])}\n {...props}\n >\n {children}\n </main>\n );\n};\n"],"names":["Layout","children","feature","props","jsx","cx","styles"],"mappings":";;;;;GAMaA,IAAS,CAAC,EAAE,UAAAC,GAAU,SAAAC,IAAU,QAAQ,GAAGC,QAEpD,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAGC,EAAO,QAAQA,EAAOJ,CAAO,CAAC;AAAA,IAC3C,GAAGC;AAAA,IAEH,UAAAF;AAAA,EAAA;AAAA;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index6.css');const r=require("react/jsx-runtime"),c=require("../../classix-5H4IWnMA.cjs"),l="_link_ci6no_1",o={link:l},u=({children:e,className:n,to:s="#",label:t,...i})=>r.jsx("a",{className:c.t(n,o.link),href:s,...i,children:e||t});exports.Link=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/link/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {\n children?: React.ReactNode;\n className?: string;\n label?: string;\n to?: string;\n};\n\nexport const Link = ({ children, className, to = '#', label, ...props }: LinkProps) => {\n return (\n <a\n className={cx(className, styles.link)}\n href={to}\n {...props}\n >\n {children ? children : label}\n </a>\n );\n};\n"],"names":["Link","children","className","to","label","props","jsx","cx","styles"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/link/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {\n children?: React.ReactNode;\n className?: string;\n label?: string;\n to?: string;\n};\n\nexport const Link = ({ children, className, to = '#', label, ...props }: LinkProps) => {\n return (\n <a\n className={cx(className, styles.link)}\n href={to}\n {...props}\n >\n {children ? children : label}\n </a>\n );\n};\n"],"names":["Link","children","className","to","label","props","jsx","cx","styles"],"mappings":"0LAWaA,EAAO,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,GAAAC,EAAK,IAAK,MAAAC,EAAO,GAAGC,KAE5DC,EAAAA,IAAC,IAAA,CACC,UAAWC,EAAAA,EAAGL,EAAWM,EAAO,IAAI,EACpC,KAAML,EACL,GAAGE,EAEH,YAAsBD,CAAA,CAAA"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import '../../assets/
|
|
4
|
-
link:
|
|
5
|
-
},
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { t as l } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index6.css';const c = "_link_ci6no_1", e = {
|
|
4
|
+
link: c
|
|
5
|
+
}, a = ({ children: n, className: o, to: t = "#", label: i, ...r }) => /* @__PURE__ */ s(
|
|
6
6
|
"a",
|
|
7
7
|
{
|
|
8
|
-
className:
|
|
8
|
+
className: l(o, e.link),
|
|
9
9
|
href: t,
|
|
10
10
|
...r,
|
|
11
|
-
children: n ||
|
|
11
|
+
children: n || i
|
|
12
12
|
}
|
|
13
13
|
);
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
a as Link
|
|
16
16
|
};
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/link/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {\n children?: React.ReactNode;\n className?: string;\n label?: string;\n to?: string;\n};\n\nexport const Link = ({ children, className, to = '#', label, ...props }: LinkProps) => {\n return (\n <a\n className={cx(className, styles.link)}\n href={to}\n {...props}\n >\n {children ? children : label}\n </a>\n );\n};\n"],"names":["Link","children","className","to","label","props","jsx","cx","styles"],"mappings":";;;;GAWaA,IAAO,CAAC,EAAE,UAAAC,GAAU,WAAAC,GAAW,IAAAC,IAAK,KAAK,OAAAC,GAAO,GAAGC,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/link/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {\n children?: React.ReactNode;\n className?: string;\n label?: string;\n to?: string;\n};\n\nexport const Link = ({ children, className, to = '#', label, ...props }: LinkProps) => {\n return (\n <a\n className={cx(className, styles.link)}\n href={to}\n {...props}\n >\n {children ? children : label}\n </a>\n );\n};\n"],"names":["Link","children","className","to","label","props","jsx","cx","styles"],"mappings":";;;;GAWaA,IAAO,CAAC,EAAE,UAAAC,GAAU,WAAAC,GAAW,IAAAC,IAAK,KAAK,OAAAC,GAAO,GAAGC,QAE5D,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAGL,GAAWM,EAAO,IAAI;AAAA,IACpC,MAAML;AAAA,IACL,GAAGE;AAAA,IAEH,eAAsBD;AAAA,EAAA;AAAA;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index5.css');const e=require("react/jsx-runtime"),i=require("../../classix-5H4IWnMA.cjs"),l="_list_9ltl4_1",r={list:l},c=({children:t,className:s})=>e.jsx("ul",{className:i.t(s,r.list),children:t});exports.List=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/list/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type ListProps = {\n children?: React.ReactNode;\n className?: string;\n};\n\nexport const List = ({ children, className }: ListProps) => {\n return <ul className={cx(className, styles.list)}>{children}</ul>;\n};\n"],"names":["List","children","className","jsx","cx","styles"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/list/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type ListProps = {\n children?: React.ReactNode;\n className?: string;\n};\n\nexport const List = ({ children, className }: ListProps) => {\n return <ul className={cx(className, styles.list)}>{children}</ul>;\n};\n"],"names":["List","children","className","jsx","cx","styles"],"mappings":"0LASaA,EAAO,CAAC,CAAE,SAAAC,EAAU,UAAAC,KACxBC,EAAAA,IAAC,MAAG,UAAWC,EAAAA,EAAGF,EAAWG,EAAO,IAAI,EAAI,SAAAJ,EAAS"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import '../../assets/
|
|
4
|
-
list:
|
|
5
|
-
},
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { t as o } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index5.css';const i = "_list_9ltl4_1", r = {
|
|
4
|
+
list: i
|
|
5
|
+
}, e = ({ children: t, className: s }) => /* @__PURE__ */ l("ul", { className: o(s, r.list), children: t });
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
e as List
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/list/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type ListProps = {\n children?: React.ReactNode;\n className?: string;\n};\n\nexport const List = ({ children, className }: ListProps) => {\n return <ul className={cx(className, styles.list)}>{children}</ul>;\n};\n"],"names":["List","children","className","jsx","cx","styles"],"mappings":";;;;GASaA,IAAO,CAAC,EAAE,UAAAC,GAAU,WAAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/list/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type ListProps = {\n children?: React.ReactNode;\n className?: string;\n};\n\nexport const List = ({ children, className }: ListProps) => {\n return <ul className={cx(className, styles.list)}>{children}</ul>;\n};\n"],"names":["List","children","className","jsx","cx","styles"],"mappings":";;;;GASaA,IAAO,CAAC,EAAE,UAAAC,GAAU,WAAAC,QACxB,gBAAAC,EAAC,QAAG,WAAWC,EAAGF,GAAWG,EAAO,IAAI,GAAI,UAAAJ,GAAS;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=({size:s=200})=>e.jsxs("svg",{width:s,viewBox:"0 0 135 125",role:"img","aria-label":"Loading",children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"grad",x1:"0",x2:135,gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0%",stopColor:"var(--color-primary)",stopOpacity:"0.1"}),e.jsx("stop",{offset:"50%",stopColor:"var(--color-primary)",stopOpacity:"1"}),e.jsx("stop",{offset:"100%",stopColor:"var(--color-primary)",stopOpacity:"0.1"}),e.jsx("animateTransform",{attributeName:"gradientTransform",type:"translate",values:"-135 0; 135 0; -135 0",keyTimes:"0; 0.5; 1",dur:"4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.4 0 0.2 1; 0.4 0 0.2 1"})]}),e.jsx("mask",{id:"mask",maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse",x:"0",y:"0",width:135,height:125,children:e.jsxs("g",{fill:"#fff",children:[e.jsx("circle",{cx:"64",cy:"48",r:"13"}),e.jsx("path",{d:"M82 92V81a18 18 0 1 0-36 0v41l13-18h23V92Z"}),e.jsx("path",{d:"M124 104.7H56.7c-1.8 0 1-1.5 1-3.2l8.5-7a3.2 3.2 0 0 1 3.2-3.2h41a3.2 3.2 0 0 0 3.2-3.2v-46a3.2 3.2 0 0 0-1.7-3L65 15.59a3.2 3.2 0 0 0-3 0l-47 24a3.2 3.2 0 0 0-1.7 3v45.7a3.2 3.2 0 0 0 3.2 3.2H29v13.4h-26a3.2 3.2 0 0 1-3-2A3.2 3.2 0 0 1 0 101.5v-67a3.2 3.2 0 0 1 1.7-2.8L62.08.35a3.2 3.2 0 0 1 2.9 0l60.5 30.9a3.2 3.2 0 0 1 1.8 2.8v67.4a3.2 3.2 0 0 1-3.2 3.2Z"})]})})]}),e.jsx("rect",{width:135,height:125,fill:"url(#grad)",mask:"url(#mask)"})]});exports.PageLoader=a;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/loading/index.tsx"],"sourcesContent":["export type PageLoaderProps = {\n size?: number;\n};\n\nexport const PageLoader = ({ size = 200 }: PageLoaderProps) => {\n const VB_W = 135;\n const VB_H = 125;\n\n return (\n <svg\n width={size}\n viewBox={`0 0 ${VB_W} ${VB_H}`}\n role='img'\n aria-label='Loading'\n >\n <defs>\n <linearGradient\n id={'grad'}\n x1='0'\n x2={VB_W}\n gradientUnits='userSpaceOnUse'\n >\n <stop\n offset='0%'\n stopColor='var(--color-primary)'\n stopOpacity='0.1'\n />\n <stop\n offset='50%'\n stopColor='var(--color-primary)'\n stopOpacity='1'\n />\n <stop\n offset='100%'\n stopColor='var(--color-primary)'\n stopOpacity='0.1'\n />\n <animateTransform\n attributeName='gradientTransform'\n type='translate'\n values={`${-VB_W} 0; ${VB_W} 0; ${-VB_W} 0`}\n keyTimes='0; 0.5; 1'\n dur='4s'\n repeatCount='indefinite'\n calcMode='spline'\n keySplines='0.4 0 0.2 1; 0.4 0 0.2 1'\n />\n </linearGradient>\n <mask\n id={'mask'}\n maskUnits='userSpaceOnUse'\n maskContentUnits='userSpaceOnUse'\n x='0'\n y='0'\n width={VB_W}\n height={VB_H}\n >\n <g fill='#fff'>\n <circle\n cx='64'\n cy='48'\n r='13'\n />\n <path d='M82 92V81a18 18 0 1 0-36 0v41l13-18h23V92Z' />\n <path d='M124 104.7H56.7c-1.8 0 1-1.5 1-3.2l8.5-7a3.2 3.2 0 0 1 3.2-3.2h41a3.2 3.2 0 0 0 3.2-3.2v-46a3.2 3.2 0 0 0-1.7-3L65 15.59a3.2 3.2 0 0 0-3 0l-47 24a3.2 3.2 0 0 0-1.7 3v45.7a3.2 3.2 0 0 0 3.2 3.2H29v13.4h-26a3.2 3.2 0 0 1-3-2A3.2 3.2 0 0 1 0 101.5v-67a3.2 3.2 0 0 1 1.7-2.8L62.08.35a3.2 3.2 0 0 1 2.9 0l60.5 30.9a3.2 3.2 0 0 1 1.8 2.8v67.4a3.2 3.2 0 0 1-3.2 3.2Z' />\n </g>\n </mask>\n </defs>\n <rect\n width={VB_W}\n height={VB_H}\n fill={`url(#grad)`}\n mask={`url(#mask)`}\n />\n </svg>\n );\n};\n"],"names":["PageLoader","size","jsxs","jsx"],"mappings":"qHAIaA,EAAa,CAAC,CAAE,KAAAC,EAAO,OAKhCC,EAAAA,KAAC,MAAA,CACC,MAAOD,EACP,QAAS,cACT,KAAK,MACL,aAAW,UAEX,SAAA,CAAAC,OAAC,OAAA,CACC,SAAA,CAAAA,EAAAA,KAAC,iBAAA,CACC,GAAI,OACJ,GAAG,IACH,GAAI,IACJ,cAAc,iBAEd,SAAA,CAAAC,EAAAA,IAAC,OAAA,CACC,OAAO,KACP,UAAU,uBACV,YAAY,KAAA,CAAA,EAEdA,EAAAA,IAAC,OAAA,CACC,OAAO,MACP,UAAU,uBACV,YAAY,GAAA,CAAA,EAEdA,EAAAA,IAAC,OAAA,CACC,OAAO,OACP,UAAU,uBACV,YAAY,KAAA,CAAA,EAEdA,EAAAA,IAAC,mBAAA,CACC,cAAc,oBACd,KAAK,YACL,OAAQ,wBACR,SAAS,YACT,IAAI,KACJ,YAAY,aACZ,SAAS,SACT,WAAW,0BAAA,CAAA,CACb,CAAA,CAAA,EAEFA,EAAAA,IAAC,OAAA,CACC,GAAI,OACJ,UAAU,iBACV,iBAAiB,iBACjB,EAAE,IACF,EAAE,IACF,MAAO,IACP,OAAQ,IAER,SAAAD,EAAAA,KAAC,IAAA,CAAE,KAAK,OACN,SAAA,CAAAC,EAAAA,IAAC,SAAA,CACC,GAAG,KACH,GAAG,KACH,EAAE,IAAA,CAAA,EAEJA,EAAAA,IAAC,OAAA,CAAK,EAAE,4CAAA,CAA6C,EACrDA,EAAAA,IAAC,OAAA,CAAK,EAAE,yWAAA,CAA0W,CAAA,CAAA,CACpX,CAAA,CAAA,CACF,EACF,EACAA,EAAAA,IAAC,OAAA,CACC,MAAO,IACP,OAAQ,IACR,KAAM,aACN,KAAM,YAAA,CAAA,CACR,CAAA,CAAA"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { jsxs as e, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
const o = ({ size: r = 200 }) => /* @__PURE__ */ e(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
width: r,
|
|
6
|
+
viewBox: "0 0 135 125",
|
|
7
|
+
role: "img",
|
|
8
|
+
"aria-label": "Loading",
|
|
9
|
+
children: [
|
|
10
|
+
/* @__PURE__ */ e("defs", { children: [
|
|
11
|
+
/* @__PURE__ */ e(
|
|
12
|
+
"linearGradient",
|
|
13
|
+
{
|
|
14
|
+
id: "grad",
|
|
15
|
+
x1: "0",
|
|
16
|
+
x2: 135,
|
|
17
|
+
gradientUnits: "userSpaceOnUse",
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ a(
|
|
20
|
+
"stop",
|
|
21
|
+
{
|
|
22
|
+
offset: "0%",
|
|
23
|
+
stopColor: "var(--color-primary)",
|
|
24
|
+
stopOpacity: "0.1"
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ a(
|
|
28
|
+
"stop",
|
|
29
|
+
{
|
|
30
|
+
offset: "50%",
|
|
31
|
+
stopColor: "var(--color-primary)",
|
|
32
|
+
stopOpacity: "1"
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ a(
|
|
36
|
+
"stop",
|
|
37
|
+
{
|
|
38
|
+
offset: "100%",
|
|
39
|
+
stopColor: "var(--color-primary)",
|
|
40
|
+
stopOpacity: "0.1"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ a(
|
|
44
|
+
"animateTransform",
|
|
45
|
+
{
|
|
46
|
+
attributeName: "gradientTransform",
|
|
47
|
+
type: "translate",
|
|
48
|
+
values: "-135 0; 135 0; -135 0",
|
|
49
|
+
keyTimes: "0; 0.5; 1",
|
|
50
|
+
dur: "4s",
|
|
51
|
+
repeatCount: "indefinite",
|
|
52
|
+
calcMode: "spline",
|
|
53
|
+
keySplines: "0.4 0 0.2 1; 0.4 0 0.2 1"
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ a(
|
|
60
|
+
"mask",
|
|
61
|
+
{
|
|
62
|
+
id: "mask",
|
|
63
|
+
maskUnits: "userSpaceOnUse",
|
|
64
|
+
maskContentUnits: "userSpaceOnUse",
|
|
65
|
+
x: "0",
|
|
66
|
+
y: "0",
|
|
67
|
+
width: 135,
|
|
68
|
+
height: 125,
|
|
69
|
+
children: /* @__PURE__ */ e("g", { fill: "#fff", children: [
|
|
70
|
+
/* @__PURE__ */ a(
|
|
71
|
+
"circle",
|
|
72
|
+
{
|
|
73
|
+
cx: "64",
|
|
74
|
+
cy: "48",
|
|
75
|
+
r: "13"
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
/* @__PURE__ */ a("path", { d: "M82 92V81a18 18 0 1 0-36 0v41l13-18h23V92Z" }),
|
|
79
|
+
/* @__PURE__ */ a("path", { d: "M124 104.7H56.7c-1.8 0 1-1.5 1-3.2l8.5-7a3.2 3.2 0 0 1 3.2-3.2h41a3.2 3.2 0 0 0 3.2-3.2v-46a3.2 3.2 0 0 0-1.7-3L65 15.59a3.2 3.2 0 0 0-3 0l-47 24a3.2 3.2 0 0 0-1.7 3v45.7a3.2 3.2 0 0 0 3.2 3.2H29v13.4h-26a3.2 3.2 0 0 1-3-2A3.2 3.2 0 0 1 0 101.5v-67a3.2 3.2 0 0 1 1.7-2.8L62.08.35a3.2 3.2 0 0 1 2.9 0l60.5 30.9a3.2 3.2 0 0 1 1.8 2.8v67.4a3.2 3.2 0 0 1-3.2 3.2Z" })
|
|
80
|
+
] })
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
] }),
|
|
84
|
+
/* @__PURE__ */ a(
|
|
85
|
+
"rect",
|
|
86
|
+
{
|
|
87
|
+
width: 135,
|
|
88
|
+
height: 125,
|
|
89
|
+
fill: "url(#grad)",
|
|
90
|
+
mask: "url(#mask)"
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
export {
|
|
97
|
+
o as PageLoader
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/loading/index.tsx"],"sourcesContent":["export type PageLoaderProps = {\n size?: number;\n};\n\nexport const PageLoader = ({ size = 200 }: PageLoaderProps) => {\n const VB_W = 135;\n const VB_H = 125;\n\n return (\n <svg\n width={size}\n viewBox={`0 0 ${VB_W} ${VB_H}`}\n role='img'\n aria-label='Loading'\n >\n <defs>\n <linearGradient\n id={'grad'}\n x1='0'\n x2={VB_W}\n gradientUnits='userSpaceOnUse'\n >\n <stop\n offset='0%'\n stopColor='var(--color-primary)'\n stopOpacity='0.1'\n />\n <stop\n offset='50%'\n stopColor='var(--color-primary)'\n stopOpacity='1'\n />\n <stop\n offset='100%'\n stopColor='var(--color-primary)'\n stopOpacity='0.1'\n />\n <animateTransform\n attributeName='gradientTransform'\n type='translate'\n values={`${-VB_W} 0; ${VB_W} 0; ${-VB_W} 0`}\n keyTimes='0; 0.5; 1'\n dur='4s'\n repeatCount='indefinite'\n calcMode='spline'\n keySplines='0.4 0 0.2 1; 0.4 0 0.2 1'\n />\n </linearGradient>\n <mask\n id={'mask'}\n maskUnits='userSpaceOnUse'\n maskContentUnits='userSpaceOnUse'\n x='0'\n y='0'\n width={VB_W}\n height={VB_H}\n >\n <g fill='#fff'>\n <circle\n cx='64'\n cy='48'\n r='13'\n />\n <path d='M82 92V81a18 18 0 1 0-36 0v41l13-18h23V92Z' />\n <path d='M124 104.7H56.7c-1.8 0 1-1.5 1-3.2l8.5-7a3.2 3.2 0 0 1 3.2-3.2h41a3.2 3.2 0 0 0 3.2-3.2v-46a3.2 3.2 0 0 0-1.7-3L65 15.59a3.2 3.2 0 0 0-3 0l-47 24a3.2 3.2 0 0 0-1.7 3v45.7a3.2 3.2 0 0 0 3.2 3.2H29v13.4h-26a3.2 3.2 0 0 1-3-2A3.2 3.2 0 0 1 0 101.5v-67a3.2 3.2 0 0 1 1.7-2.8L62.08.35a3.2 3.2 0 0 1 2.9 0l60.5 30.9a3.2 3.2 0 0 1 1.8 2.8v67.4a3.2 3.2 0 0 1-3.2 3.2Z' />\n </g>\n </mask>\n </defs>\n <rect\n width={VB_W}\n height={VB_H}\n fill={`url(#grad)`}\n mask={`url(#mask)`}\n />\n </svg>\n );\n};\n"],"names":["Page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AA;AAAA,cAAA,gBAAAC;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACC,IAAG;AAAA,kBACH,IAAG;AAAA,kBACH,GAAE;AAAA,gBAAA;AAAA,cAAA;AAAA,cAEJ,gBAAAA,EAAC,QAAA,EAAK,GAAE,6CAAA,CAA6C;AAAA,cACrD,gBAAAA,EAAC,QAAA,EAAK,GAAE,0WAAA,CAA0W;AAAA,YAAA,EAAA,CACpX;AAAA,UAAA;AAAA,QAAA;AAAA,MACF,GACF;AAAA,MACA,gBAAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,MAAM;AAAA,UACN,MAAM;AAAA,QAAA;AAAA,MAAA;AAAA,IACR;AAAA,EAAA;AAAA;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index4.css');const s=require("react/jsx-runtime"),f=require("../../classix-5H4IWnMA.cjs"),m=require("react"),v=require("../button/index.cjs"),d=require("../icon/index.cjs"),g=require("../input/index.cjs"),j="_nav_1es7u_1",S="_horizontal_1es7u_11",q="_tabs_1es7u_18",y="_pills_1es7u_39",p="_searching_1es7u_119",z="_search_1es7u_119",n={nav:j,horizontal:S,tabs:q,pills:y,searching:p,search:z},I={default:"",pills:n.pills,tabs:n.tabs},N=({animation:l,children:b,horizontal:o=!1,variant:u="default",...t})=>{const a=m.useRef(null),[c,r]=m.useState(t.isResultsPage??!1),x=t.isSearchable&&u==="pills";return s.jsxs("nav",{className:f.t(l&&l,o&&n.horizontal,c&&n.searching,n.nav,I[u]),"data-orientation":o?"horizontal":"vertical",children:[b,x&&s.jsxs("form",{onSubmit:e=>{var h,_;e.preventDefault();const i=((h=a.current)==null?void 0:h.value)??"";(_=t.onSearchSubmit)==null||_.call(t,i)},children:[s.jsx(g.Input,{ref:a,onKeyDown:e=>{e.key==="Escape"&&(r(!1),a.current&&(a.current.value=""))}}),c&&s.jsx(v.Button,{variant:"minimal",onClick:()=>r(!1),children:s.jsx(d.Icon,{name:"x"})}),s.jsx(v.Button,{className:f.t(n.search),onClick:e=>{var i;c||(e==null||e.preventDefault(),r(!0),(i=a.current)==null||i.focus())},type:"submit",variant:"minimal",children:s.jsx(d.Icon,{name:"search",size:"medium",variant:c?"white":"default"})})]})]})};exports.Nav=N;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport type { AnimationName } from '../../styles/animations.ts';\nimport styles from './styles.module.css';\n\nconst variants = {\n default: '',\n
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport { useRef, useState } from 'react';\n\nimport { Button } from '@/components/button';\nimport { Icon } from '@/components/icon';\nimport { Input } from '@/components/input';\n\nimport type { AnimationName } from '../../styles/animations.ts';\nimport styles from './styles.module.css';\n\nconst variants = {\n default: '',\n pills: styles.pills,\n tabs: styles.tabs,\n};\n\nexport type NavProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n horizontal?: boolean;\n isResultsPage?: boolean;\n isSearchable?: boolean;\n onSearchSubmit?: (value: string) => void;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({\n animation,\n children,\n horizontal = false,\n variant = 'default',\n ...props\n}: NavProps) => {\n const searchInputRef = useRef<HTMLInputElement>(null);\n const [searching, setSearching] = useState(props.isResultsPage ?? false);\n const isSearchable = props.isSearchable && variant === 'pills';\n\n return (\n <nav\n className={cx(\n animation && animation,\n horizontal && styles.horizontal,\n searching && styles.searching,\n styles.nav,\n variants[variant]\n )}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n >\n {children}\n\n {isSearchable && (\n <form\n onSubmit={(e) => {\n e.preventDefault();\n const value = searchInputRef.current?.value ?? '';\n props.onSearchSubmit?.(value);\n }}\n >\n <Input\n ref={searchInputRef}\n onKeyDown={(e) => {\n if (e.key === 'Escape') {\n setSearching(false);\n\n if (searchInputRef.current) searchInputRef.current.value = '';\n }\n }}\n />\n\n {searching && (\n <Button\n variant={'minimal'}\n onClick={() => setSearching(false)}\n >\n <Icon name={'x'} />\n </Button>\n )}\n\n <Button\n className={cx(styles.search)}\n onClick={(e) => {\n if (searching) {\n return;\n } else {\n e?.preventDefault();\n setSearching(true);\n searchInputRef.current?.focus();\n }\n }}\n type={'submit'}\n variant={'minimal'}\n >\n <Icon\n name={'search'}\n size={'medium'}\n variant={searching ? 'white' : 'default'}\n />\n </Button>\n </form>\n )}\n </nav>\n );\n};\n"],"names":["variants","styles","Nav","animation","children","horizontal","variant","props","searchInputRef","useRef","searching","setSearching","useState","isSearchable","jsxs","cx","value","_a","_b","jsx","Input","Button","Icon"],"mappings":"2cAUMA,EAAW,CACf,QAAS,GACT,MAAOC,EAAO,MACd,KAAMA,EAAO,IACf,EAYaC,EAAM,CAAC,CAClB,UAAAC,EACA,SAAAC,EACA,WAAAC,EAAa,GACb,QAAAC,EAAU,UACV,GAAGC,CACL,IAAgB,CACd,MAAMC,EAAiBC,EAAAA,OAAyB,IAAI,EAC9C,CAACC,EAAWC,CAAY,EAAIC,EAAAA,SAASL,EAAM,eAAiB,EAAK,EACjEM,EAAeN,EAAM,cAAgBD,IAAY,QAEvD,OACEQ,EAAAA,KAAC,MAAA,CACC,UAAWC,EAAAA,EACTZ,GAAaA,EACbE,GAAcJ,EAAO,WACrBS,GAAaT,EAAO,UACpBA,EAAO,IACPD,EAASM,CAAO,CAAA,EAElB,mBAAkBD,EAAa,aAAe,WAE7C,SAAA,CAAAD,EAEAS,GACCC,EAAAA,KAAC,OAAA,CACC,SAAW,GAAM,SACf,EAAE,eAAA,EACF,MAAME,IAAQC,EAAAT,EAAe,UAAf,YAAAS,EAAwB,QAAS,IAC/CC,EAAAX,EAAM,iBAAN,MAAAW,EAAA,KAAAX,EAAuBS,EACzB,EAEA,SAAA,CAAAG,EAAAA,IAACC,EAAAA,MAAA,CACC,IAAKZ,EACL,UAAY,GAAM,CACZ,EAAE,MAAQ,WACZG,EAAa,EAAK,EAEdH,EAAe,UAASA,EAAe,QAAQ,MAAQ,IAE/D,CAAA,CAAA,EAGDE,GACCS,EAAAA,IAACE,EAAAA,OAAA,CACC,QAAS,UACT,QAAS,IAAMV,EAAa,EAAK,EAEjC,SAAAQ,EAAAA,IAACG,EAAAA,KAAA,CAAK,KAAM,GAAA,CAAK,CAAA,CAAA,EAIrBH,EAAAA,IAACE,EAAAA,OAAA,CACC,UAAWN,EAAAA,EAAGd,EAAO,MAAM,EAC3B,QAAU,GAAM,OACVS,IAGF,WAAG,iBACHC,EAAa,EAAI,GACjBM,EAAAT,EAAe,UAAf,MAAAS,EAAwB,QAE5B,EACA,KAAM,SACN,QAAS,UAET,SAAAE,EAAAA,IAACG,EAAAA,KAAA,CACC,KAAM,SACN,KAAM,SACN,QAASZ,EAAY,QAAU,SAAA,CAAA,CACjC,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CAIR"}
|
|
@@ -1,28 +1,96 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsxs as f, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { t as _ } from "../../classix-DG18itHa.js";
|
|
3
|
+
import { useRef as p, useState as S } from "react";
|
|
4
|
+
import { Button as v } from "../button/index.js";
|
|
5
|
+
import { Icon as b } from "../icon/index.js";
|
|
6
|
+
import { Input as z } from "../input/index.js";
|
|
7
|
+
import '../../assets/index4.css';const x = "_nav_1es7u_1", y = "_horizontal_1es7u_11", k = "_tabs_1es7u_18", D = "_pills_1es7u_39", I = "_searching_1es7u_119", N = "_search_1es7u_119", t = {
|
|
8
|
+
nav: x,
|
|
9
|
+
horizontal: y,
|
|
10
|
+
tabs: k,
|
|
11
|
+
pills: D,
|
|
12
|
+
searching: I,
|
|
13
|
+
search: N
|
|
14
|
+
}, R = {
|
|
9
15
|
default: "",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
pills: t.pills,
|
|
17
|
+
tabs: t.tabs
|
|
18
|
+
}, P = ({
|
|
19
|
+
animation: c,
|
|
20
|
+
children: d,
|
|
21
|
+
horizontal: o = !1,
|
|
22
|
+
variant: u = "default",
|
|
23
|
+
...a
|
|
24
|
+
}) => {
|
|
25
|
+
const s = p(null), [r, l] = S(a.isResultsPage ?? !1), g = a.isSearchable && u === "pills";
|
|
26
|
+
return /* @__PURE__ */ f(
|
|
27
|
+
"nav",
|
|
28
|
+
{
|
|
29
|
+
className: _(
|
|
30
|
+
c && c,
|
|
31
|
+
o && t.horizontal,
|
|
32
|
+
r && t.searching,
|
|
33
|
+
t.nav,
|
|
34
|
+
R[u]
|
|
35
|
+
),
|
|
36
|
+
"data-orientation": o ? "horizontal" : "vertical",
|
|
37
|
+
children: [
|
|
38
|
+
d,
|
|
39
|
+
g && /* @__PURE__ */ f(
|
|
40
|
+
"form",
|
|
41
|
+
{
|
|
42
|
+
onSubmit: (e) => {
|
|
43
|
+
var m, h;
|
|
44
|
+
e.preventDefault();
|
|
45
|
+
const i = ((m = s.current) == null ? void 0 : m.value) ?? "";
|
|
46
|
+
(h = a.onSearchSubmit) == null || h.call(a, i);
|
|
47
|
+
},
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ n(
|
|
50
|
+
z,
|
|
51
|
+
{
|
|
52
|
+
ref: s,
|
|
53
|
+
onKeyDown: (e) => {
|
|
54
|
+
e.key === "Escape" && (l(!1), s.current && (s.current.value = ""));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
r && /* @__PURE__ */ n(
|
|
59
|
+
v,
|
|
60
|
+
{
|
|
61
|
+
variant: "minimal",
|
|
62
|
+
onClick: () => l(!1),
|
|
63
|
+
children: /* @__PURE__ */ n(b, { name: "x" })
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ n(
|
|
67
|
+
v,
|
|
68
|
+
{
|
|
69
|
+
className: _(t.search),
|
|
70
|
+
onClick: (e) => {
|
|
71
|
+
var i;
|
|
72
|
+
r || (e == null || e.preventDefault(), l(!0), (i = s.current) == null || i.focus());
|
|
73
|
+
},
|
|
74
|
+
type: "submit",
|
|
75
|
+
variant: "minimal",
|
|
76
|
+
children: /* @__PURE__ */ n(
|
|
77
|
+
b,
|
|
78
|
+
{
|
|
79
|
+
name: "search",
|
|
80
|
+
size: "medium",
|
|
81
|
+
variant: r ? "white" : "default"
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
};
|
|
25
93
|
export {
|
|
26
|
-
|
|
94
|
+
P as Nav
|
|
27
95
|
};
|
|
28
96
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport type { AnimationName } from '../../styles/animations.ts';\nimport styles from './styles.module.css';\n\nconst variants = {\n default: '',\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport { useRef, useState } from 'react';\n\nimport { Button } from '@/components/button';\nimport { Icon } from '@/components/icon';\nimport { Input } from '@/components/input';\n\nimport type { AnimationName } from '../../styles/animations.ts';\nimport styles from './styles.module.css';\n\nconst variants = {\n default: '',\n pills: styles.pills,\n tabs: styles.tabs,\n};\n\nexport type NavProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n horizontal?: boolean;\n isResultsPage?: boolean;\n isSearchable?: boolean;\n onSearchSubmit?: (value: string) => void;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({\n animation,\n children,\n horizontal = false,\n variant = 'default',\n ...props\n}: NavProps) => {\n const searchInputRef = useRef<HTMLInputElement>(null);\n const [searching, setSearching] = useState(props.isResultsPage ?? false);\n const isSearchable = props.isSearchable && variant === 'pills';\n\n return (\n <nav\n className={cx(\n animation && animation,\n horizontal && styles.horizontal,\n searching && styles.searching,\n styles.nav,\n variants[variant]\n )}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n >\n {children}\n\n {isSearchable && (\n <form\n onSubmit={(e) => {\n e.preventDefault();\n const value = searchInputRef.current?.value ?? '';\n props.onSearchSubmit?.(value);\n }}\n >\n <Input\n ref={searchInputRef}\n onKeyDown={(e) => {\n if (e.key === 'Escape') {\n setSearching(false);\n\n if (searchInputRef.current) searchInputRef.current.value = '';\n }\n }}\n />\n\n {searching && (\n <Button\n variant={'minimal'}\n onClick={() => setSearching(false)}\n >\n <Icon name={'x'} />\n </Button>\n )}\n\n <Button\n className={cx(styles.search)}\n onClick={(e) => {\n if (searching) {\n return;\n } else {\n e?.preventDefault();\n setSearching(true);\n searchInputRef.current?.focus();\n }\n }}\n type={'submit'}\n variant={'minimal'}\n >\n <Icon\n name={'search'}\n size={'medium'}\n variant={searching ? 'white' : 'default'}\n />\n </Button>\n </form>\n )}\n </nav>\n );\n};\n"],"names":["variants","styles","Nav","animation","children","horizontal","variant","props","searchInputRef","useRef","searching","setSearching","useState","isSearchable","jsxs","cx","value","_a","_b","jsx","Input","Button","Icon"],"mappings":";;;;;;;;;;;;;GAUMA,IAAW;AAAA,EACf,SAAS;AAAA,EACT,OAAOC,EAAO;AAAA,EAC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gBAAAH;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACC,WAAWN,EAAGd,EAAO,MAAM;AAAA,kBAC3B,SAAS,CAAC,MAAM;;AACd,oBAAIS,MAGF,eAAG,kBACHC,EAAa,EAAI,IACjBM,IAAAT,EAAe,YAAf,QAAAS,EAAwB;AAAA,kBAE5B;AAAA,kBACA,MAAM;AAAA,kBACN,SAAS;AAAA,kBAET,UAAA,gBAAAE;AAAA,oBAACG;AAAA,oBAAA;AAAA,sBACC,MAAM;AAAA,sBACN,MAAM;AAAA,sBACN,SAASZ,IAAY,UAAU;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBACjC;AAAA,cAAA;AAAA,YACF;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAIR;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index3.css');const n=require("react/jsx-runtime"),g=require("../../classix-5H4IWnMA.cjs"),s=require("react"),P=require("../button/index.cjs"),R=require("../dialog/index.cjs"),k=require("../dropzone/index.cjs"),C=require("../figure/index.cjs"),M=require("../icon/index.cjs"),N="_picture_1ou2v_1",T="_image_1ou2v_17",W="_dropzone_1ou2v_29",O="_visible_1ou2v_36",B="_hidden_1ou2v_41",H="_profile_1ou2v_58",t={picture:N,image:T,dropzone:W,visible:O,hidden:B,"preview-buttons":"_preview-buttons_1ou2v_47",profile:H},$={default:t.default,profile:t.profile},A=({source:a,alt:y,variant:f="default",...e})=>{const[q,u]=s.useState(e.placeholderSrc??a),[F,E]=s.useState(!1),[_,v]=s.useState(null),[U,o]=s.useState(!1),[r,m]=s.useState(!1),[p,c]=s.useState(null),x=e.minimumImagePixelWidth??400,h=e.minimumImagePixelHeight??400,L=s.useRef(null),w=s.useCallback(()=>{m(!1),v(null),u(a),c(null)},[a]),b=["image/jpeg","image/png","image/gif","image/webp","image/bmp","image/svg+xml","image/tiff"];s.useEffect(()=>{if(!a)return;u(a),m(!1);const i=new window.Image(0,0);i.src=a,i.srcset=e.srcSet??a,i.onload=()=>{E(!0)}},[a,e.srcSet]);const S=i=>{const l=i[0];if(!l)return;b.includes(l.type)||c("Unsupported file type. Please upload a valid image.");const j=new FileReader;j.onload=I=>{var z;const d=new window.Image;d.onload=()=>{var D;(d.width<x||d.height<h)&&c(`Image is too small. Minimum size is ${x}x${h}px.`),m(!0),u((D=I.target)==null?void 0:D.result)},d.src=(z=I.target)==null?void 0:z.result},j.readAsDataURL(l),v(l)};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:g.t(t.picture,$[f],r?t.previewing:""),onMouseEnter:()=>o(e.canEdit),onMouseLeave:()=>o(!1),onDragOver:i=>{i.preventDefault(),o(e.canEdit)},onDragLeave:()=>o(!1),onDrop:i=>{var l;i.preventDefault(),o(!1),e.canEdit&&S((l=i.dataTransfer)==null?void 0:l.files)},children:[r?null:n.jsx("div",{className:g.t(t.dropzone,U&&t.visible,e.canEdit?"":t.hidden),children:n.jsx(k.Dropzone,{onUpload:i=>{S(i)},mimeTypes:b,inputId:e.inputId})}),f==="profile"&&!a?n.jsx(M.Icon,{name:"user"}):n.jsxs(C.Figure,{label:e.caption,children:[n.jsx("img",{src:q,srcSet:e.srcSet,sizes:e.sizes,alt:y,className:g.t(t.image,r?t.previewing:"",F?"":"loading"),loading:"lazy",ref:L}),r&&n.jsxs("div",{className:t["preview-buttons"],children:[n.jsx(P.Button,{label:"Save",loading:e.isUploading,onClick:()=>{_&&e.handleUpload&&e.handleUpload(_)},variant:"primary"}),n.jsx(P.Button,{label:"Cancel",onClick:()=>w()})]})]})]}),n.jsx(R.Dialog,{open:!!p,button:"Ok",message:p,onSubmit:()=>{c(null),w()}})]})};exports.Picture=A;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/picture/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport { useCallback, useEffect, useRef, useState } from 'react';\n\nimport { Button } from '@/components/button';\nimport { Dialog } from '@/components/dialog';\nimport { Dropzone } from '@/components/dropzone';\nimport { Figure } from '@/components/figure';\nimport { Icon } from '@/components/icon';\n\nimport styles from './styles.module.css';\n\nconst variants = {\n default: styles.default,\n profile: styles.profile,\n};\n\nexport type ImageProps = {\n alt: string;\n canEdit: boolean;\n caption?: string;\n handleUpload?: (imageFile: File) => void;\n inputId?: string;\n isUploading?: boolean;\n minimumImagePixelHeight?: number;\n minimumImagePixelWidth?: number;\n placeholderSrc?: string;\n sizes?: string;\n source?: string;\n srcSet?: string;\n variant?: keyof typeof variants;\n};\n\nexport const Picture = ({ source, alt, variant = 'default', ...props }: ImageProps) => {\n const [imageSrc, setImageSrc] = useState(props.placeholderSrc ?? source);\n const [imageLoaded, setImageLoaded] = useState(false);\n const [pendingFile, setPendingFile] = useState<File | null>(null);\n const [showDropzone, setShowDropzone] = useState(false);\n const [isPreviewing, setIsPreviewing] = useState(false);\n const [dialogWarning, setDialogWarning] = useState<string | null>(null);\n\n const minimumImagePixelWidth = props.minimumImagePixelWidth ?? 400;\n const minimumImagePixelHeight = props.minimumImagePixelHeight ?? 400;\n const imgRef = useRef<HTMLImageElement>(null);\n\n const reset = useCallback(() => {\n setIsPreviewing(false);\n setPendingFile(null);\n setImageSrc(source);\n setDialogWarning(null);\n }, [source]);\n\n const allowedImageFileTypes = [\n 'image/jpeg',\n 'image/png',\n 'image/gif',\n 'image/webp',\n 'image/bmp',\n 'image/svg+xml',\n 'image/tiff',\n ];\n\n useEffect(() => {\n if (!source) {\n return;\n }\n\n setImageSrc(source);\n setIsPreviewing(false);\n const img = new window.Image(0, 0);\n img.src = source;\n img.srcset = props.srcSet ?? source;\n img.onload = () => {\n setImageLoaded(true);\n };\n }, [source, props.srcSet]);\n\n const handleFiles = (files: FileList | File[]) => {\n const file = files[0];\n if (!file) return;\n\n if (!allowedImageFileTypes.includes(file.type)) {\n setDialogWarning('Unsupported file type. Please upload a valid image.');\n }\n\n const reader = new FileReader();\n reader.onload = (event) => {\n const img = new window.Image();\n img.onload = () => {\n if (img.width < minimumImagePixelWidth || img.height < minimumImagePixelHeight) {\n setDialogWarning(\n `Image is too small. Minimum size is ${minimumImagePixelWidth}x${minimumImagePixelHeight}px.`\n );\n }\n setIsPreviewing(true);\n setImageSrc(event.target?.result as string);\n };\n img.src = event.target?.result as string;\n };\n reader.readAsDataURL(file);\n setPendingFile(file);\n };\n\n return (\n <>\n <div\n className={cx(styles.picture, variants[variant], isPreviewing ? styles.previewing : '')}\n onMouseEnter={() => setShowDropzone(props.canEdit)}\n onMouseLeave={() => setShowDropzone(false)}\n onDragOver={(e) => {\n e.preventDefault();\n setShowDropzone(props.canEdit);\n }}\n onDragLeave={() => setShowDropzone(false)}\n onDrop={(e) => {\n e.preventDefault();\n setShowDropzone(false);\n if (props.canEdit) {\n handleFiles(e.dataTransfer?.files);\n }\n }}\n >\n {isPreviewing ? null : (\n <div\n className={cx(\n styles.dropzone,\n showDropzone && styles.visible,\n props.canEdit ? '' : styles.hidden\n )}\n >\n <Dropzone\n onUpload={(files) => {\n handleFiles(files);\n }}\n mimeTypes={allowedImageFileTypes}\n inputId={props.inputId}\n />\n </div>\n )}\n\n {variant === 'profile' && !source ? (\n <Icon name={'user'} />\n ) : (\n <Figure label={props.caption}>\n <img\n src={imageSrc}\n srcSet={props.srcSet}\n sizes={props.sizes}\n alt={alt}\n className={cx(\n styles.image,\n isPreviewing ? styles.previewing : '',\n imageLoaded ? '' : 'loading'\n )}\n loading={'lazy'}\n ref={imgRef}\n />\n {isPreviewing && (\n <div className={styles['preview-buttons']}>\n <Button\n label={'Save'}\n loading={props.isUploading}\n onClick={() => {\n if (pendingFile && props.handleUpload) {\n props.handleUpload(pendingFile);\n }\n }}\n variant={'primary'}\n />\n <Button\n label={'Cancel'}\n onClick={() => reset()}\n />\n </div>\n )}\n </Figure>\n )}\n </div>\n\n <Dialog\n open={!!dialogWarning}\n button={'Ok'}\n message={dialogWarning!}\n onSubmit={() => {\n setDialogWarning(null);\n reset();\n }}\n />\n </>\n );\n};\n"],"names":["variants","styles","Picture","source","alt","variant","props","imageSrc","setImageSrc","useState","imageLoaded","setImageLoaded","pendingFile","setPendingFile","showDropzone","setShowDropzone","isPreviewing","setIsPreviewing","dialogWarning","setDialogWarning","minimumImagePixelWidth","minimumImagePixelHeight","imgRef","useRef","reset","useCallback","allowedImageFileTypes","useEffect","img","handleFiles","files","file","reader","event","_a","jsxs","Fragment","cx","e","jsx","Dropzone","Icon","Figure","Button","Dialog"],"mappings":"kkBAWMA,EAAW,CACf,QAASC,EAAO,QAChB,QAASA,EAAO,OAClB,EAkBaC,EAAU,CAAC,CAAE,OAAAC,EAAQ,IAAAC,EAAK,QAAAC,EAAU,UAAW,GAAGC,KAAwB,CACrF,KAAM,CAACC,EAAUC,CAAW,EAAIC,EAAAA,SAASH,EAAM,gBAAkBH,CAAM,EACjE,CAACO,EAAaC,CAAc,EAAIF,EAAAA,SAAS,EAAK,EAC9C,CAACG,EAAaC,CAAc,EAAIJ,EAAAA,SAAsB,IAAI,EAC1D,CAACK,EAAcC,CAAe,EAAIN,EAAAA,SAAS,EAAK,EAChD,CAACO,EAAcC,CAAe,EAAIR,EAAAA,SAAS,EAAK,EAChD,CAACS,EAAeC,CAAgB,EAAIV,EAAAA,SAAwB,IAAI,EAEhEW,EAAyBd,EAAM,wBAA0B,IACzDe,EAA0Bf,EAAM,yBAA2B,IAC3DgB,EAASC,EAAAA,OAAyB,IAAI,EAEtCC,EAAQC,EAAAA,YAAY,IAAM,CAC9BR,EAAgB,EAAK,EACrBJ,EAAe,IAAI,EACnBL,EAAYL,CAAM,EAClBgB,EAAiB,IAAI,CACvB,EAAG,CAAChB,CAAM,CAAC,EAELuB,EAAwB,CAC5B,aACA,YACA,YACA,aACA,YACA,gBACA,YAAA,EAGFC,EAAAA,UAAU,IAAM,CACd,GAAI,CAACxB,EACH,OAGFK,EAAYL,CAAM,EACl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