@solibo/solibo-ui 0.2.13 → 0.2.14
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 +1 -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/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/components/accordion/index.cjs +1 -1
- package/dist/components/accordion/index.cjs.map +1 -1
- package/dist/components/accordion/index.js +23 -23
- 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 +17 -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 +26 -26
- 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 +13 -13
- package/dist/components/card/index.js.map +1 -1
- 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 +31 -31
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/dropdown/index.cjs +1 -1
- package/dist/components/dropdown/index.cjs.map +1 -1
- package/dist/components/dropdown/index.js +26 -12
- package/dist/components/dropdown/index.js.map +1 -1
- 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/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/header/index.cjs +1 -1
- package/dist/components/header/index.cjs.map +1 -1
- package/dist/components/header/index.js +9 -9
- 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 +14 -14
- 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 +22 -18
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/link/index.cjs +1 -1
- package/dist/components/link/index.cjs.map +1 -1
- package/dist/components/link/index.js +10 -10
- 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 +5 -5
- package/dist/components/list/index.js.map +1 -1
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.cjs.map +1 -1
- package/dist/components/nav/index.js +10 -10
- package/dist/components/nav/index.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +15 -3
- package/dist/index.js +20 -18
- package/dist/index.js.map +1 -1
- 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,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 i=require("react/jsx-runtime"),t="_figure_b0otf_1",s={figure:t},u=({children:e,label:r})=>i.jsxs("figure",{className:s.figure,children:[e&&e,r&&i.jsx("figcaption",{children:r})]});exports.Figure=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/figure/index.tsx"],"sourcesContent":["import styles from './styles.module.css';\n\nexport type FigureProps = {\n children?: React.ReactNode;\n label?: string;\n};\n\nexport const Figure = ({ children, label }: FigureProps) => {\n return (\n <figure className={styles.figure}>\n {children && children}\n {label && <figcaption>{label}</figcaption>}\n </figure>\n );\n};\n"],"names":["Figure","children","label","jsxs","styles","jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/figure/index.tsx"],"sourcesContent":["import styles from './styles.module.css';\n\nexport type FigureProps = {\n children?: React.ReactNode;\n label?: string;\n};\n\nexport const Figure = ({ children, label }: FigureProps) => {\n return (\n <figure className={styles.figure}>\n {children && children}\n {label && <figcaption>{label}</figcaption>}\n </figure>\n );\n};\n"],"names":["Figure","children","label","jsxs","styles","jsx"],"mappings":"sJAOaA,EAAS,CAAC,CAAE,SAAAC,EAAU,MAAAC,KAE/BC,EAAAA,KAAC,SAAA,CAAO,UAAWC,EAAO,OACvB,SAAA,CAAAH,GAAYA,EACZC,GAASG,EAAAA,IAAC,aAAA,CAAY,SAAAH,CAAA,CAAM,CAAA,EAC/B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../../assets/
|
|
3
|
-
figure:
|
|
4
|
-
},
|
|
1
|
+
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/index6.css';const t = "_figure_b0otf_1", f = {
|
|
3
|
+
figure: t
|
|
4
|
+
}, g = ({ children: r, label: e }) => /* @__PURE__ */ i("figure", { className: f.figure, children: [
|
|
5
5
|
r && r,
|
|
6
|
-
|
|
6
|
+
e && /* @__PURE__ */ s("figcaption", { children: e })
|
|
7
7
|
] });
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
g as Figure
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/figure/index.tsx"],"sourcesContent":["import styles from './styles.module.css';\n\nexport type FigureProps = {\n children?: React.ReactNode;\n label?: string;\n};\n\nexport const Figure = ({ children, label }: FigureProps) => {\n return (\n <figure className={styles.figure}>\n {children && children}\n {label && <figcaption>{label}</figcaption>}\n </figure>\n );\n};\n"],"names":["Figure","children","label","jsxs","styles","jsx"],"mappings":";;;GAOaA,IAAS,CAAC,EAAE,UAAAC,GAAU,OAAAC,QAE/
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/figure/index.tsx"],"sourcesContent":["import styles from './styles.module.css';\n\nexport type FigureProps = {\n children?: React.ReactNode;\n label?: string;\n};\n\nexport const Figure = ({ children, label }: FigureProps) => {\n return (\n <figure className={styles.figure}>\n {children && children}\n {label && <figcaption>{label}</figcaption>}\n </figure>\n );\n};\n"],"names":["Figure","children","label","jsxs","styles","jsx"],"mappings":";;;GAOaA,IAAS,CAAC,EAAE,UAAAC,GAAU,OAAAC,QAE/B,gBAAAC,EAAC,UAAA,EAAO,WAAWC,EAAO,QACvB,UAAA;AAAA,EAAAH,KAAYA;AAAA,EACZC,KAAS,gBAAAG,EAAC,cAAA,EAAY,UAAAH,EAAA,CAAM;AAAA,GAC/B;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index5.css');const t=require("react/jsx-runtime"),i=require("../../classix-5H4IWnMA.cjs"),l="_form_13v7z_1",c="_inline_13v7z_15",s={form:l,inline:c},m=({animation:e,children:r,inline:n=!1,...o})=>t.jsx("form",{className:i.t(e&&e,n&&s.inline,s.form),...o,children:r&&r});exports.Form=m;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/form/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport type { AnimationName } from '../../styles/animations.ts';\nimport styles from './styles.module.css';\n\nexport type FormProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n inline?: boolean;\n};\n\nexport const Form = ({ animation, children, inline = false, ...props }: FormProps) => {\n return (\n <form\n className={cx(animation && animation, inline && styles.inline, styles.form)}\n {...props}\n >\n {children && children}\n </form>\n );\n};\n"],"names":["Form","animation","children","inline","props","jsx","cx","styles"],"mappings":"wNAWaA,EAAO,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,OAAAC,EAAS,GAAO,GAAGC,KAE3DC,EAAAA,IAAC,OAAA,CACC,UAAWC,EAAAA,EAAGL,GAAaA,EAAWE,GAAUI,EAAO,OAAQA,EAAO,IAAI,EACzE,GAAGH,EAEH,SAAAF,GAAYA,CAAA,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { t } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index5.css';const f = "_form_13v7z_1", i = "_inline_13v7z_15", n = {
|
|
4
|
+
form: f,
|
|
5
|
+
inline: i
|
|
6
|
+
}, c = ({ animation: o, children: r, inline: m = !1, ...s }) => /* @__PURE__ */ e(
|
|
7
|
+
"form",
|
|
8
|
+
{
|
|
9
|
+
className: t(o && o, m && n.inline, n.form),
|
|
10
|
+
...s,
|
|
11
|
+
children: r && r
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
export {
|
|
15
|
+
c as Form
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/form/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport type { AnimationName } from '../../styles/animations.ts';\nimport styles from './styles.module.css';\n\nexport type FormProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n inline?: boolean;\n};\n\nexport const Form = ({ animation, children, inline = false, ...props }: FormProps) => {\n return (\n <form\n className={cx(animation && animation, inline && styles.inline, styles.form)}\n {...props}\n >\n {children && children}\n </form>\n );\n};\n"],"names":["Form","animation","children","inline","props","jsx","cx","styles"],"mappings":";;;;;GAWaA,IAAO,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,QAAAC,IAAS,IAAO,GAAGC,QAE3D,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAGL,KAAaA,GAAWE,KAAUI,EAAO,QAAQA,EAAO,IAAI;AAAA,IACzE,GAAGH;AAAA,IAEH,UAAAF,KAAYA;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/index13.css');const e=require("react/jsx-runtime"),n="_header_1xswd_1",c={header:n},o=({children:r,size:a=1,label:d="Header",subtitle:s})=>{const t=`h${a}`;return e.jsxs("header",{className:c.header,children:[e.jsx(t,{children:d}),s&&e.jsx("p",{children:s}),r&&r]})};exports.Header=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/header/index.tsx"],"sourcesContent":["import { JSX } from 'react';\n\nimport styles from './styles.module.css';\n\nexport type HeaderProps = {\n children?: React.ReactNode;\n label: string;\n size?: 1 | 2 | 3;\n subtitle?: string;\n};\n\nexport const Header = ({ children, size = 1, label = 'Header', subtitle }: HeaderProps) => {\n const HeaderTag = `h${size}` as keyof JSX.IntrinsicElements;\n\n return (\n <header className={styles.header}>\n <HeaderTag>{label}</HeaderTag>\n {subtitle && <p>{subtitle}</p>}\n {children && children}\n </header>\n );\n};\n"],"names":["Header","children","size","label","subtitle","HeaderTag","jsxs","styles","jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/header/index.tsx"],"sourcesContent":["import { JSX } from 'react';\n\nimport styles from './styles.module.css';\n\nexport type HeaderProps = {\n children?: React.ReactNode;\n label: string;\n size?: 1 | 2 | 3;\n subtitle?: string;\n};\n\nexport const Header = ({ children, size = 1, label = 'Header', subtitle }: HeaderProps) => {\n const HeaderTag = `h${size}` as keyof JSX.IntrinsicElements;\n\n return (\n <header className={styles.header}>\n <HeaderTag>{label}</HeaderTag>\n {subtitle && <p>{subtitle}</p>}\n {children && children}\n </header>\n );\n};\n"],"names":["Header","children","size","label","subtitle","HeaderTag","jsxs","styles","jsx"],"mappings":"sJAWaA,EAAS,CAAC,CAAE,SAAAC,EAAU,KAAAC,EAAO,EAAG,MAAAC,EAAQ,SAAU,SAAAC,KAA4B,CACzF,MAAMC,EAAY,IAAIH,CAAI,GAE1B,OACEI,EAAAA,KAAC,SAAA,CAAO,UAAWC,EAAO,OACxB,SAAA,CAAAC,EAAAA,IAACH,GAAW,SAAAF,CAAA,CAAM,EACjBC,GAAYI,EAAAA,IAAC,IAAA,CAAG,SAAAJ,CAAA,CAAS,EACzBH,GAAYA,CAAA,EACf,CAEJ"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../../assets/
|
|
1
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/index13.css';const n = "_header_1xswd_1", o = {
|
|
3
3
|
header: n
|
|
4
|
-
},
|
|
5
|
-
const h = `h${
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
}, x = ({ children: e, size: d = 1, label: s = "Header", subtitle: r }) => {
|
|
5
|
+
const h = `h${d}`;
|
|
6
|
+
return /* @__PURE__ */ c("header", { className: o.header, children: [
|
|
7
|
+
/* @__PURE__ */ a(h, { children: s }),
|
|
8
|
+
r && /* @__PURE__ */ a("p", { children: r }),
|
|
9
|
+
e && e
|
|
10
10
|
] });
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
x as Header
|
|
14
14
|
};
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/header/index.tsx"],"sourcesContent":["import { JSX } from 'react';\n\nimport styles from './styles.module.css';\n\nexport type HeaderProps = {\n children?: React.ReactNode;\n label: string;\n size?: 1 | 2 | 3;\n subtitle?: string;\n};\n\nexport const Header = ({ children, size = 1, label = 'Header', subtitle }: HeaderProps) => {\n const HeaderTag = `h${size}` as keyof JSX.IntrinsicElements;\n\n return (\n <header className={styles.header}>\n <HeaderTag>{label}</HeaderTag>\n {subtitle && <p>{subtitle}</p>}\n {children && children}\n </header>\n );\n};\n"],"names":["Header","children","size","label","subtitle","HeaderTag","jsxs","styles","jsx"],"mappings":";;;GAWaA,IAAS,CAAC,EAAE,UAAAC,GAAU,MAAAC,IAAO,GAAG,OAAAC,IAAQ,UAAU,UAAAC,QAA4B;AACzF,QAAMC,IAAY,IAAIH,CAAI;AAE1B,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/header/index.tsx"],"sourcesContent":["import { JSX } from 'react';\n\nimport styles from './styles.module.css';\n\nexport type HeaderProps = {\n children?: React.ReactNode;\n label: string;\n size?: 1 | 2 | 3;\n subtitle?: string;\n};\n\nexport const Header = ({ children, size = 1, label = 'Header', subtitle }: HeaderProps) => {\n const HeaderTag = `h${size}` as keyof JSX.IntrinsicElements;\n\n return (\n <header className={styles.header}>\n <HeaderTag>{label}</HeaderTag>\n {subtitle && <p>{subtitle}</p>}\n {children && children}\n </header>\n );\n};\n"],"names":["Header","children","size","label","subtitle","HeaderTag","jsxs","styles","jsx"],"mappings":";;;GAWaA,IAAS,CAAC,EAAE,UAAAC,GAAU,MAAAC,IAAO,GAAG,OAAAC,IAAQ,UAAU,UAAAC,QAA4B;AACzF,QAAMC,IAAY,IAAIH,CAAI;AAE1B,SACE,gBAAAI,EAAC,UAAA,EAAO,WAAWC,EAAO,QACxB,UAAA;AAAA,IAAA,gBAAAC,EAACH,KAAW,UAAAF,EAAA,CAAM;AAAA,IACjBC,KAAY,gBAAAI,EAAC,KAAA,EAAG,UAAAJ,EAAA,CAAS;AAAA,IACzBH,KAAYA;AAAA,EAAA,GACf;AAEJ;"}
|
|
@@ -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/index19.css');const a=require("react/jsx-runtime"),c=require("../../classix-5H4IWnMA.cjs");function r(m){return`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='${m}' /%3E%3C/svg%3E%0A")`}const i={bold:"M6.75 3.744h-.753v8.25h7.125a4.125 4.125 0 0 0 0-8.25H6.75Zm0 0v.38m0 16.122h6.747a4.5 4.5 0 0 0 0-9.001h-7.5v9h.753Zm0 0v-.37m0-15.751h6a3.75 3.75 0 1 1 0 7.5h-6m0-7.5v7.5m0 0v8.25m0-8.25h6.375a4.125 4.125 0 0 1 0 8.25H6.75m.747-15.38h4.875a3.375 3.375 0 0 1 0 6.75H7.497v-6.75Zm0 7.5h5.25a3.75 3.75 0 0 1 0 7.5h-5.25v-7.5Z",chevron:"m19.5 8.25-7.5 7.5-7.5-7.5",home:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25",italic:"M5.248 20.246H9.05m0 0h3.696m-3.696 0 5.893-16.502m0 0h-3.697m3.697 0h3.803",link:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244",list:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z",search:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z",x:"M6 18 18 6M6 6l12 12"},u="_icon_u4umi_1",h="_small_u4umi_8",d="_medium_u4umi_13",_="_large_u4umi_18",g="_dialog_u4umi_27",v="_white_u4umi_31",p="_wrapper_u4umi_35",e={icon:u,small:h,medium:d,large:_,default:"_default_u4umi_23",dialog:g,white:v,wrapper:p},w={medium:e.medium,large:e.large,small:e.small},M={default:e.default,dialog:e.dialog,white:e.white},Z=({name:m="home",size:o="medium",variant:t="default"})=>{const l={maskImage:r(i[m].toString())},n=({children:s})=>t==="dialog"?a.jsx("span",{className:e.wrapper,"data-testid":"wrapper",children:s}):a.jsx(a.Fragment,{children:s});return a.jsx(n,{children:a.jsx("span",{className:c.t(w[o],e.icon,M[t]),style:l})})},x=()=>Object.keys(i);exports.Icon=Z;exports.Icons=x;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/icon/icons.ts","../../../src/components/icon/index.tsx"],"sourcesContent":["export function embedSVG(iconPath: string) {\n return `url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='${iconPath}' /%3E%3C/svg%3E%0A\")`;\n}\n\nexport const iconPaths = {\n bold: 'M6.75 3.744h-.753v8.25h7.125a4.125 4.125 0 0 0 0-8.25H6.75Zm0 0v.38m0 16.122h6.747a4.5 4.5 0 0 0 0-9.001h-7.5v9h.753Zm0 0v-.37m0-15.751h6a3.75 3.75 0 1 1 0 7.5h-6m0-7.5v7.5m0 0v8.25m0-8.25h6.375a4.125 4.125 0 0 1 0 8.25H6.75m.747-15.38h4.875a3.375 3.375 0 0 1 0 6.75H7.497v-6.75Zm0 7.5h5.25a3.75 3.75 0 0 1 0 7.5h-5.25v-7.5Z',\n chevron: 'm19.5 8.25-7.5 7.5-7.5-7.5',\n home: 'm2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25',\n italic: 'M5.248 20.246H9.05m0 0h3.696m-3.696 0 5.893-16.502m0 0h-3.697m3.697 0h3.803',\n link: 'M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244',\n list: 'M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z',\n search: 'm21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z',\n x: 'M6 18 18 6M6 6l12 12',\n};\n\nexport type IconName = keyof typeof iconPaths;\n","import cx from 'classix';\n\nimport type { IconName } from './icons';\nimport { embedSVG, iconPaths } from './icons';\nimport styles from './styles.module.css';\n\nconst sizes = {\n medium: styles.medium,\n large: styles.large,\n small: styles.small,\n};\n\nconst variants = {\n default: styles.default,\n dialog: styles.dialog,\n white: styles.white,\n};\n\nexport type IconProps = {\n variant?: keyof typeof variants;\n name: IconName;\n size?: keyof typeof sizes;\n};\n\nexport const Icon = ({ name = 'home', size = 'medium', variant = 'default' }: IconProps) => {\n const iconStyle = {\n maskImage: embedSVG(iconPaths[name].toString()),\n } as React.CSSProperties;\n\n const Wrapper = ({ children }: { children: React.ReactNode }) =>\n variant === 'dialog' ? (\n <span\n className={styles.wrapper}\n data-testid='wrapper'\n >\n {children}\n </span>\n ) : (\n <>{children}</>\n );\n\n return (\n <Wrapper>\n <span\n className={cx(sizes[size], styles.icon, variants[variant])}\n style={iconStyle}\n />\n </Wrapper>\n );\n};\n\nexport const Icons = () => {\n return Object.keys(iconPaths);\n};\n"],"names":["embedSVG","iconPath","iconPaths","sizes","styles","variants","Icon","name","size","variant","iconStyle","Wrapper","children","jsx","cx","Icons"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/icon/icons.ts","../../../src/components/icon/index.tsx"],"sourcesContent":["export function embedSVG(iconPath: string) {\n return `url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='${iconPath}' /%3E%3C/svg%3E%0A\")`;\n}\n\nexport const iconPaths = {\n bold: 'M6.75 3.744h-.753v8.25h7.125a4.125 4.125 0 0 0 0-8.25H6.75Zm0 0v.38m0 16.122h6.747a4.5 4.5 0 0 0 0-9.001h-7.5v9h.753Zm0 0v-.37m0-15.751h6a3.75 3.75 0 1 1 0 7.5h-6m0-7.5v7.5m0 0v8.25m0-8.25h6.375a4.125 4.125 0 0 1 0 8.25H6.75m.747-15.38h4.875a3.375 3.375 0 0 1 0 6.75H7.497v-6.75Zm0 7.5h5.25a3.75 3.75 0 0 1 0 7.5h-5.25v-7.5Z',\n chevron: 'm19.5 8.25-7.5 7.5-7.5-7.5',\n home: 'm2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25',\n italic: 'M5.248 20.246H9.05m0 0h3.696m-3.696 0 5.893-16.502m0 0h-3.697m3.697 0h3.803',\n link: 'M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244',\n list: 'M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z',\n search: 'm21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z',\n x: 'M6 18 18 6M6 6l12 12',\n};\n\nexport type IconName = keyof typeof iconPaths;\n","import cx from 'classix';\n\nimport type { IconName } from './icons';\nimport { embedSVG, iconPaths } from './icons';\nimport styles from './styles.module.css';\n\nconst sizes = {\n medium: styles.medium,\n large: styles.large,\n small: styles.small,\n};\n\nconst variants = {\n default: styles.default,\n dialog: styles.dialog,\n white: styles.white,\n};\n\nexport type IconProps = {\n variant?: keyof typeof variants;\n name: IconName;\n size?: keyof typeof sizes;\n};\n\nexport const Icon = ({ name = 'home', size = 'medium', variant = 'default' }: IconProps) => {\n const iconStyle = {\n maskImage: embedSVG(iconPaths[name].toString()),\n } as React.CSSProperties;\n\n const Wrapper = ({ children }: { children: React.ReactNode }) =>\n variant === 'dialog' ? (\n <span\n className={styles.wrapper}\n data-testid='wrapper'\n >\n {children}\n </span>\n ) : (\n <>{children}</>\n );\n\n return (\n <Wrapper>\n <span\n className={cx(sizes[size], styles.icon, variants[variant])}\n style={iconStyle}\n />\n </Wrapper>\n );\n};\n\nexport const Icons = () => {\n return Object.keys(iconPaths);\n};\n"],"names":["embedSVG","iconPath","iconPaths","sizes","styles","variants","Icon","name","size","variant","iconStyle","Wrapper","children","jsx","cx","Icons"],"mappings":"6JAAO,SAASA,EAASC,EAAkB,CACzC,MAAO,mMAAmMA,CAAQ,uBACpN,CAEO,MAAMC,EAAY,CACvB,KAAM,uUACN,QAAS,6BACT,KAAM,6OACN,OAAQ,8EACR,KAAM,4KACN,KAAM,wRACN,OAAQ,gFACR,EAAG,sBACL,0OCPMC,EAAQ,CACZ,OAAQC,EAAO,OACf,MAAOA,EAAO,MACd,MAAOA,EAAO,KAChB,EAEMC,EAAW,CACf,QAASD,EAAO,QAChB,OAAQA,EAAO,OACf,MAAOA,EAAO,KAChB,EAQaE,EAAO,CAAC,CAAE,KAAAC,EAAO,OAAQ,KAAAC,EAAO,SAAU,QAAAC,EAAU,aAA2B,CAC1F,MAAMC,EAAY,CAChB,UAAWV,EAASE,EAAUK,CAAI,EAAE,UAAU,CAAA,EAG1CI,EAAU,CAAC,CAAE,SAAAC,CAAA,IACjBH,IAAY,SACVI,EAAAA,IAAC,OAAA,CACC,UAAWT,EAAO,QAClB,cAAY,UAEX,SAAAQ,CAAA,CAAA,oBAGA,SAAAA,EAAS,EAGhB,aACGD,EAAA,CACC,SAAAE,EAAAA,IAAC,OAAA,CACC,UAAWC,EAAAA,EAAGX,EAAMK,CAAI,EAAGJ,EAAO,KAAMC,EAASI,CAAO,CAAC,EACzD,MAAOC,CAAA,CAAA,EAEX,CAEJ,EAEaK,EAAQ,IACZ,OAAO,KAAKb,CAAS"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as a, Fragment as n } from "react/jsx-runtime";
|
|
2
2
|
import { t as r } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index19.css';function c(e) {
|
|
4
4
|
return `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='${e}' /%3E%3C/svg%3E%0A")`;
|
|
5
5
|
}
|
|
6
|
-
const
|
|
6
|
+
const s = {
|
|
7
7
|
bold: "M6.75 3.744h-.753v8.25h7.125a4.125 4.125 0 0 0 0-8.25H6.75Zm0 0v.38m0 16.122h6.747a4.5 4.5 0 0 0 0-9.001h-7.5v9h.753Zm0 0v-.37m0-15.751h6a3.75 3.75 0 1 1 0 7.5h-6m0-7.5v7.5m0 0v8.25m0-8.25h6.375a4.125 4.125 0 0 1 0 8.25H6.75m.747-15.38h4.875a3.375 3.375 0 0 1 0 6.75H7.497v-6.75Zm0 7.5h5.25a3.75 3.75 0 0 1 0 7.5h-5.25v-7.5Z",
|
|
8
8
|
chevron: "m19.5 8.25-7.5 7.5-7.5-7.5",
|
|
9
9
|
home: "m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25",
|
|
@@ -25,31 +25,31 @@ const o = {
|
|
|
25
25
|
medium: m.medium,
|
|
26
26
|
large: m.large,
|
|
27
27
|
small: m.small
|
|
28
|
-
},
|
|
28
|
+
}, M = {
|
|
29
29
|
default: m.default,
|
|
30
30
|
dialog: m.dialog,
|
|
31
31
|
white: m.white
|
|
32
|
-
},
|
|
32
|
+
}, H = ({ name: e = "home", size: i = "medium", variant: t = "default" }) => {
|
|
33
33
|
const l = {
|
|
34
|
-
maskImage: c(
|
|
35
|
-
}
|
|
34
|
+
maskImage: c(s[e].toString())
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ a(({ children: o }) => t === "dialog" ? /* @__PURE__ */ a(
|
|
36
37
|
"span",
|
|
37
38
|
{
|
|
38
39
|
className: m.wrapper,
|
|
39
40
|
"data-testid": "wrapper",
|
|
40
|
-
children:
|
|
41
|
+
children: o
|
|
41
42
|
}
|
|
42
|
-
) : /* @__PURE__ */ a
|
|
43
|
-
return /* @__PURE__ */ a.jsx(n, { children: /* @__PURE__ */ a.jsx(
|
|
43
|
+
) : /* @__PURE__ */ a(n, { children: o }), { children: /* @__PURE__ */ a(
|
|
44
44
|
"span",
|
|
45
45
|
{
|
|
46
|
-
className: r(w[i], m.icon,
|
|
46
|
+
className: r(w[i], m.icon, M[t]),
|
|
47
47
|
style: l
|
|
48
48
|
}
|
|
49
49
|
) });
|
|
50
|
-
},
|
|
50
|
+
}, x = () => Object.keys(s);
|
|
51
51
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
H as Icon,
|
|
53
|
+
x as Icons
|
|
54
54
|
};
|
|
55
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/icon/icons.ts","../../../src/components/icon/index.tsx"],"sourcesContent":["export function embedSVG(iconPath: string) {\n return `url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='${iconPath}' /%3E%3C/svg%3E%0A\")`;\n}\n\nexport const iconPaths = {\n bold: 'M6.75 3.744h-.753v8.25h7.125a4.125 4.125 0 0 0 0-8.25H6.75Zm0 0v.38m0 16.122h6.747a4.5 4.5 0 0 0 0-9.001h-7.5v9h.753Zm0 0v-.37m0-15.751h6a3.75 3.75 0 1 1 0 7.5h-6m0-7.5v7.5m0 0v8.25m0-8.25h6.375a4.125 4.125 0 0 1 0 8.25H6.75m.747-15.38h4.875a3.375 3.375 0 0 1 0 6.75H7.497v-6.75Zm0 7.5h5.25a3.75 3.75 0 0 1 0 7.5h-5.25v-7.5Z',\n chevron: 'm19.5 8.25-7.5 7.5-7.5-7.5',\n home: 'm2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25',\n italic: 'M5.248 20.246H9.05m0 0h3.696m-3.696 0 5.893-16.502m0 0h-3.697m3.697 0h3.803',\n link: 'M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244',\n list: 'M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z',\n search: 'm21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z',\n x: 'M6 18 18 6M6 6l12 12',\n};\n\nexport type IconName = keyof typeof iconPaths;\n","import cx from 'classix';\n\nimport type { IconName } from './icons';\nimport { embedSVG, iconPaths } from './icons';\nimport styles from './styles.module.css';\n\nconst sizes = {\n medium: styles.medium,\n large: styles.large,\n small: styles.small,\n};\n\nconst variants = {\n default: styles.default,\n dialog: styles.dialog,\n white: styles.white,\n};\n\nexport type IconProps = {\n variant?: keyof typeof variants;\n name: IconName;\n size?: keyof typeof sizes;\n};\n\nexport const Icon = ({ name = 'home', size = 'medium', variant = 'default' }: IconProps) => {\n const iconStyle = {\n maskImage: embedSVG(iconPaths[name].toString()),\n } as React.CSSProperties;\n\n const Wrapper = ({ children }: { children: React.ReactNode }) =>\n variant === 'dialog' ? (\n <span\n className={styles.wrapper}\n data-testid='wrapper'\n >\n {children}\n </span>\n ) : (\n <>{children}</>\n );\n\n return (\n <Wrapper>\n <span\n className={cx(sizes[size], styles.icon, variants[variant])}\n style={iconStyle}\n />\n </Wrapper>\n );\n};\n\nexport const Icons = () => {\n return Object.keys(iconPaths);\n};\n"],"names":["embedSVG","iconPath","iconPaths","sizes","styles","variants","Icon","name","size","variant","iconStyle","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/icon/icons.ts","../../../src/components/icon/index.tsx"],"sourcesContent":["export function embedSVG(iconPath: string) {\n return `url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='${iconPath}' /%3E%3C/svg%3E%0A\")`;\n}\n\nexport const iconPaths = {\n bold: 'M6.75 3.744h-.753v8.25h7.125a4.125 4.125 0 0 0 0-8.25H6.75Zm0 0v.38m0 16.122h6.747a4.5 4.5 0 0 0 0-9.001h-7.5v9h.753Zm0 0v-.37m0-15.751h6a3.75 3.75 0 1 1 0 7.5h-6m0-7.5v7.5m0 0v8.25m0-8.25h6.375a4.125 4.125 0 0 1 0 8.25H6.75m.747-15.38h4.875a3.375 3.375 0 0 1 0 6.75H7.497v-6.75Zm0 7.5h5.25a3.75 3.75 0 0 1 0 7.5h-5.25v-7.5Z',\n chevron: 'm19.5 8.25-7.5 7.5-7.5-7.5',\n home: 'm2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25',\n italic: 'M5.248 20.246H9.05m0 0h3.696m-3.696 0 5.893-16.502m0 0h-3.697m3.697 0h3.803',\n link: 'M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244',\n list: 'M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z',\n search: 'm21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z',\n x: 'M6 18 18 6M6 6l12 12',\n};\n\nexport type IconName = keyof typeof iconPaths;\n","import cx from 'classix';\n\nimport type { IconName } from './icons';\nimport { embedSVG, iconPaths } from './icons';\nimport styles from './styles.module.css';\n\nconst sizes = {\n medium: styles.medium,\n large: styles.large,\n small: styles.small,\n};\n\nconst variants = {\n default: styles.default,\n dialog: styles.dialog,\n white: styles.white,\n};\n\nexport type IconProps = {\n variant?: keyof typeof variants;\n name: IconName;\n size?: keyof typeof sizes;\n};\n\nexport const Icon = ({ name = 'home', size = 'medium', variant = 'default' }: IconProps) => {\n const iconStyle = {\n maskImage: embedSVG(iconPaths[name].toString()),\n } as React.CSSProperties;\n\n const Wrapper = ({ children }: { children: React.ReactNode }) =>\n variant === 'dialog' ? (\n <span\n className={styles.wrapper}\n data-testid='wrapper'\n >\n {children}\n </span>\n ) : (\n <>{children}</>\n );\n\n return (\n <Wrapper>\n <span\n className={cx(sizes[size], styles.icon, variants[variant])}\n style={iconStyle}\n />\n </Wrapper>\n );\n};\n\nexport const Icons = () => {\n return Object.keys(iconPaths);\n};\n"],"names":["embedSVG","iconPath","iconPaths","sizes","styles","variants","Icon","name","size","variant","iconStyle","children","jsx","cx","Icons"],"mappings":";;AAAO,SAASA,EAASC,GAAkB;AACzC,SAAO,mMAAmMA,CAAQ;AACpN;AAEO,MAAMC,IAAY;AAAA,EACvB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,GAAG;AACL;;;;;;;;;GCPMC,IAAQ;AAAA,EACZ,QAAQC,EAAO;AAAA,EACf,OAAOA,EAAO;AAAA,EACd,OAAOA,EAAO;AAChB,GAEMC,IAAW;AAAA,EACf,SAASD,EAAO;AAAA,EAChB,QAAQA,EAAO;AAAA,EACf,OAAOA,EAAO;AAChB,GAQaE,IAAO,CAAC,EAAE,MAAAC,IAAO,QAAQ,MAAAC,IAAO,UAAU,SAAAC,IAAU,gBAA2B;AAC1F,QAAMC,IAAY;AAAA,IAChB,WAAWV,EAASE,EAAUK,CAAI,EAAE,UAAU;AAAA,EAAA;AAehD,2BAZgB,CAAC,EAAE,UAAAI,EAAA,MACjBF,MAAY,WACV,gBAAAG;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWR,EAAO;AAAA,MAClB,eAAY;AAAA,MAEX,UAAAO;AAAA,IAAA;AAAA,EAAA,2BAGA,UAAAA,GAAS,GAIb,EACC,UAAA,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGV,EAAMK,CAAI,GAAGJ,EAAO,MAAMC,EAASI,CAAO,CAAC;AAAA,MACzD,OAAOC;AAAA,IAAA;AAAA,EAAA,GAEX;AAEJ,GAEaI,IAAQ,MACZ,OAAO,KAAKZ,CAAS;"}
|
|
@@ -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/index8.css');const e=require("react/jsx-runtime"),c=require("../../classix-5H4IWnMA.cjs"),o=require("react"),p="_input_drn1u_1",d="_label_drn1u_13",s={input:p,label:d},b=o.forwardRef(({className:n,disabled:r=!1,label:t,placeholder:l,type:u="text",...i},a)=>e.jsxs("label",{children:[t&&e.jsx("span",{className:s.label,children:t}),e.jsx("input",{ref:a,className:c.t(s.input,n),disabled:r,placeholder:l,type:u,...i})]}));exports.Input=b;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","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.cjs","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?: 'email' | 'number' | 'password' | '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":"2OAYaA,EAAQC,EAAAA,WACnB,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAW,GAAO,MAAAC,EAAO,YAAAC,EAAa,KAAAC,EAAO,OAAQ,GAAGC,CAAA,EAASC,WAE1E,QAAA,CACE,SAAA,CAAAJ,GAASK,EAAAA,IAAC,OAAA,CAAK,UAAWC,EAAO,MAAQ,SAAAN,EAAM,EAChDK,EAAAA,IAAC,QAAA,CACC,IAAAD,EACA,UAAWG,EAAAA,EAAGD,EAAO,MAAOR,CAAS,EACrC,SAAAC,EACA,YAAAE,EACA,KAAAC,EACC,GAAGC,CAAA,CAAA,CACN,EACF,CAGN"}
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import '../../assets/
|
|
5
|
-
input:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { t as u } from "../../classix-DG18itHa.js";
|
|
3
|
+
import { forwardRef as c } from "react";
|
|
4
|
+
import '../../assets/index8.css';const m = "_input_drn1u_1", f = "_label_drn1u_13", r = {
|
|
5
|
+
input: m,
|
|
6
|
+
label: f
|
|
7
|
+
}, x = c(
|
|
8
|
+
({ className: s, disabled: e = !1, label: t, placeholder: l, type: o = "text", ...a }, p) => /* @__PURE__ */ i("label", { children: [
|
|
9
|
+
t && /* @__PURE__ */ n("span", { className: r.label, children: t }),
|
|
10
|
+
/* @__PURE__ */ n(
|
|
11
|
+
"input",
|
|
12
|
+
{
|
|
13
|
+
ref: p,
|
|
14
|
+
className: u(r.input, s),
|
|
15
|
+
disabled: e,
|
|
16
|
+
placeholder: l,
|
|
17
|
+
type: o,
|
|
18
|
+
...a
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
] })
|
|
18
22
|
);
|
|
19
23
|
export {
|
|
20
|
-
|
|
24
|
+
x 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?: 'email' | 'number' | 'password' | '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;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index4.css');const r=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index4.css');const r=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),c="_link_hn9kh_1",o={link:c},k=({children:e,className:n,to:s="#",label:t,...i})=>r.jsx("a",{className:l.t(n,o.link),href:s,...i,children:e||t});exports.Link=k;
|
|
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/index4.css';const
|
|
4
|
-
link:
|
|
5
|
-
},
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { t as k } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index4.css';const l = "_link_hn9kh_1", e = {
|
|
4
|
+
link: l
|
|
5
|
+
}, a = ({ children: n, className: t, to: o = "#", label: r, ...s }) => /* @__PURE__ */ i(
|
|
6
6
|
"a",
|
|
7
7
|
{
|
|
8
|
-
className:
|
|
9
|
-
href:
|
|
10
|
-
...
|
|
11
|
-
children: n ||
|
|
8
|
+
className: k(t, e.link),
|
|
9
|
+
href: o,
|
|
10
|
+
...s,
|
|
11
|
+
children: n || r
|
|
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/index3.css');const e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index3.css');const e=require("react/jsx-runtime"),i=require("../../classix-5H4IWnMA.cjs"),l="_list_1f3ya_1",r={list:l},c=({children:s,className:t})=>e.jsx("ul",{className:i.t(t,r.list),children:s});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 {
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { t as i } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/index3.css';const
|
|
4
|
-
list:
|
|
5
|
-
},
|
|
3
|
+
import '../../assets/index3.css';const l = "_list_1f3ya_1", r = {
|
|
4
|
+
list: l
|
|
5
|
+
}, e = ({ children: t, className: s }) => /* @__PURE__ */ o("ul", { className: i(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;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index2.css');const o=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index2.css');const o=require("react/jsx-runtime"),e=require("../../classix-5H4IWnMA.cjs"),i="_nav_tvxly_1",r="_horizontal_tvxly_11",c="_tabs_tvxly_18",v="_pills_tvxly_38",t={nav:i,horizontal:r,tabs:c,pills:v},_={default:"",tabs:t.tabs,pills:t.pills},u=({animation:s,children:l,horizontal:a=!1,variant:n="default"})=>o.jsx("nav",{className:e.t(s&&s,a&&t.horizontal,t.nav,_[n]),"data-orientation":a?"horizontal":"vertical",children:l});exports.Nav=u;
|
|
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 tabs: styles.tabs,\n pills: styles.pills,\n};\n\nexport type NavProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n horizontal?: boolean;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({ animation, children, horizontal = false, variant = 'default' }: NavProps) => {\n return (\n <nav\n className={cx(\n animation && animation,\n horizontal && styles.horizontal,\n styles.nav,\n variants[variant]\n )}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n >\n {children}\n </nav>\n );\n};\n"],"names":["variants","styles","Nav","animation","children","horizontal","variant","jsx","cx"],"mappings":"
|
|
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 tabs: styles.tabs,\n pills: styles.pills,\n};\n\nexport type NavProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n horizontal?: boolean;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({ animation, children, horizontal = false, variant = 'default' }: NavProps) => {\n return (\n <nav\n className={cx(\n animation && animation,\n horizontal && styles.horizontal,\n styles.nav,\n variants[variant]\n )}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n >\n {children}\n </nav>\n );\n};\n"],"names":["variants","styles","Nav","animation","children","horizontal","variant","jsx","cx"],"mappings":"oRAKMA,EAAW,CACf,QAAS,GACT,KAAMC,EAAO,KACb,MAAOA,EAAO,KAChB,EASaC,EAAM,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,WAAAC,EAAa,GAAO,QAAAC,EAAU,aAErEC,EAAAA,IAAC,MAAA,CACC,UAAWC,EAAAA,EACTL,GAAaA,EACbE,GAAcJ,EAAO,WACrBA,EAAO,IACPD,EAASM,CAAO,CAAA,EAElB,mBAAkBD,EAAa,aAAe,WAE7C,SAAAD,CAAA,CAAA"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { t as r } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/index2.css';const i = "_nav_tvxly_1", v = "_horizontal_tvxly_11", _ = "_tabs_tvxly_18",
|
|
3
|
+
import '../../assets/index2.css';const i = "_nav_tvxly_1", v = "_horizontal_tvxly_11", _ = "_tabs_tvxly_18", c = "_pills_tvxly_38", t = {
|
|
4
4
|
nav: i,
|
|
5
5
|
horizontal: v,
|
|
6
6
|
tabs: _,
|
|
7
|
-
pills:
|
|
8
|
-
},
|
|
7
|
+
pills: c
|
|
8
|
+
}, e = {
|
|
9
9
|
default: "",
|
|
10
10
|
tabs: t.tabs,
|
|
11
11
|
pills: t.pills
|
|
12
|
-
}, b = ({ animation:
|
|
12
|
+
}, b = ({ animation: a, children: s, horizontal: l = !1, variant: o = "default" }) => /* @__PURE__ */ n(
|
|
13
13
|
"nav",
|
|
14
14
|
{
|
|
15
15
|
className: r(
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
a && a,
|
|
17
|
+
l && t.horizontal,
|
|
18
18
|
t.nav,
|
|
19
|
-
|
|
19
|
+
e[o]
|
|
20
20
|
),
|
|
21
|
-
"data-orientation":
|
|
22
|
-
children:
|
|
21
|
+
"data-orientation": l ? "horizontal" : "vertical",
|
|
22
|
+
children: s
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
export {
|
|
@@ -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 tabs: styles.tabs,\n pills: styles.pills,\n};\n\nexport type NavProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n horizontal?: boolean;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({ animation, children, horizontal = false, variant = 'default' }: NavProps) => {\n return (\n <nav\n className={cx(\n animation && animation,\n horizontal && styles.horizontal,\n styles.nav,\n variants[variant]\n )}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n >\n {children}\n </nav>\n );\n};\n"],"names":["variants","styles","Nav","animation","children","horizontal","variant","jsx","cx"],"mappings":";;;;;;;GAKMA,IAAW;AAAA,EACf,SAAS;AAAA,EACT,MAAMC,EAAO;AAAA,EACb,OAAOA,EAAO;AAChB,GASaC,IAAM,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,YAAAC,IAAa,IAAO,SAAAC,IAAU,
|
|
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 tabs: styles.tabs,\n pills: styles.pills,\n};\n\nexport type NavProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n horizontal?: boolean;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({ animation, children, horizontal = false, variant = 'default' }: NavProps) => {\n return (\n <nav\n className={cx(\n animation && animation,\n horizontal && styles.horizontal,\n styles.nav,\n variants[variant]\n )}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n >\n {children}\n </nav>\n );\n};\n"],"names":["variants","styles","Nav","animation","children","horizontal","variant","jsx","cx"],"mappings":";;;;;;;GAKMA,IAAW;AAAA,EACf,SAAS;AAAA,EACT,MAAMC,EAAO;AAAA,EACb,OAAOA,EAAO;AAChB,GASaC,IAAM,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,YAAAC,IAAa,IAAO,SAAAC,IAAU,gBAErE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC;AAAAA,MACTL,KAAaA;AAAA,MACbE,KAAcJ,EAAO;AAAA,MACrBA,EAAO;AAAA,MACPD,EAASM,CAAO;AAAA,IAAA;AAAA,IAElB,oBAAkBD,IAAa,eAAe;AAAA,IAE7C,UAAAD;AAAA,EAAA;AAAA;"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const n=require("./components/accordion/index.cjs"),e=require("./components/aside/index.cjs"),o=require("./components/banner/index.cjs"),r=require("./components/branding/index.cjs"),i=require("./components/button/index.cjs"),t=require("./components/card/index.cjs"),c=require("./components/dialog/index.cjs"),d=require("./components/dropdown/index.cjs"),s=require("./components/editor/index.cjs"),_=require("./components/figure/index.cjs"),u=require("./components/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const n=require("./components/accordion/index.cjs"),e=require("./components/aside/index.cjs"),o=require("./components/banner/index.cjs"),r=require("./components/branding/index.cjs"),i=require("./components/button/index.cjs"),t=require("./components/card/index.cjs"),c=require("./components/dialog/index.cjs"),d=require("./components/dropdown/index.cjs"),s=require("./components/editor/index.cjs"),_=require("./components/figure/index.cjs"),u=require("./components/form/index.cjs"),p=require("./components/header/index.cjs"),a=require("./components/icon/index.cjs"),m=require("./components/input/index.cjs"),q=require("./components/link/index.cjs"),x=require("./components/list/index.cjs"),g=require("./components/nav/index.cjs");exports.Accordion=n.Accordion;exports.AccordionGroup=n.AccordionGroup;exports.Aside=e.Aside;exports.Banner=o.Banner;exports.Branding=r.Branding;exports.Button=i.Button;exports.Card=t.Card;exports.Dialog=c.Dialog;exports.Dropdown=d.Dropdown;exports.Editor=s.Editor;exports.Figure=_.Figure;exports.Form=u.Form;exports.Header=p.Header;exports.Icon=a.Icon;exports.Input=m.Input;exports.Link=q.Link;exports.List=x.List;exports.Nav=g.Nav;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.ts
CHANGED
|
@@ -89,18 +89,21 @@ declare type DialogProps = React.DialogHTMLAttributes<HTMLDialogElement> & {
|
|
|
89
89
|
title?: string;
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
export declare const Dropdown: ({ children, ...props }: DropdownProps) => JSX.Element;
|
|
92
|
+
export declare const Dropdown: ({ children, label, placeholder, ...props }: DropdownProps) => JSX.Element;
|
|
93
93
|
|
|
94
94
|
declare type DropdownProps = {
|
|
95
95
|
children?: React.ReactNode;
|
|
96
|
+
label?: string;
|
|
97
|
+
placeholder?: string;
|
|
96
98
|
};
|
|
97
99
|
|
|
98
|
-
export declare const Editor: ({ autofocus, autolink, content, onChange }: EditorProps) => JSX.Element;
|
|
100
|
+
export declare const Editor: ({ autofocus, autolink, content, inline, onChange, }: EditorProps) => JSX.Element;
|
|
99
101
|
|
|
100
102
|
declare type EditorProps = {
|
|
101
103
|
autofocus?: boolean;
|
|
102
104
|
autolink?: boolean;
|
|
103
105
|
content?: string;
|
|
106
|
+
inline?: boolean;
|
|
104
107
|
onChange?: (html: string) => void;
|
|
105
108
|
};
|
|
106
109
|
|
|
@@ -111,6 +114,14 @@ declare type FigureProps = {
|
|
|
111
114
|
label?: string;
|
|
112
115
|
};
|
|
113
116
|
|
|
117
|
+
export declare const Form: ({ animation, children, inline, ...props }: FormProps) => JSX.Element;
|
|
118
|
+
|
|
119
|
+
declare type FormProps = {
|
|
120
|
+
animation?: AnimationName;
|
|
121
|
+
children?: React.ReactNode;
|
|
122
|
+
inline?: boolean;
|
|
123
|
+
};
|
|
124
|
+
|
|
114
125
|
export declare const Header: ({ children, size, label, subtitle }: HeaderProps) => JSX.Element;
|
|
115
126
|
|
|
116
127
|
declare type HeaderProps = {
|
|
@@ -143,8 +154,9 @@ declare type IconProps = {
|
|
|
143
154
|
|
|
144
155
|
export declare const Input: ForwardRefExoticComponent<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
145
156
|
disabled?: boolean;
|
|
157
|
+
label?: string;
|
|
146
158
|
placeholder?: string;
|
|
147
|
-
type?: "
|
|
159
|
+
type?: "email" | "number" | "password" | "search" | "tel" | "text";
|
|
148
160
|
} & RefAttributes<HTMLInputElement>>;
|
|
149
161
|
|
|
150
162
|
export declare const Link: ({ children, className, to, label, ...props }: LinkProps) => JSX.Element;
|