@solibo/solibo-ui 0.2.7 → 0.2.9

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.
Files changed (74) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/assets/index10.css +1 -0
  3. package/dist/assets/index11.css +1 -0
  4. package/dist/assets/index12.css +1 -0
  5. package/dist/assets/index13.css +1 -0
  6. package/dist/assets/index14.css +1 -0
  7. package/dist/assets/index15.css +1 -0
  8. package/dist/assets/index16.css +1 -0
  9. package/dist/assets/index17.css +1 -0
  10. package/dist/assets/index2.css +1 -1
  11. package/dist/assets/index3.css +1 -1
  12. package/dist/assets/index4.css +1 -1
  13. package/dist/assets/index5.css +1 -1
  14. package/dist/assets/index6.css +1 -1
  15. package/dist/assets/index7.css +1 -1
  16. package/dist/assets/index8.css +1 -1
  17. package/dist/assets/index9.css +0 -0
  18. package/dist/components/accordion/index.cjs +2 -0
  19. package/dist/components/accordion/index.cjs.map +1 -0
  20. package/dist/components/accordion/index.js +22 -0
  21. package/dist/components/accordion/index.js.map +1 -0
  22. package/dist/components/aside/index.cjs +2 -0
  23. package/dist/components/aside/index.cjs.map +1 -0
  24. package/dist/components/aside/index.js +25 -0
  25. package/dist/components/aside/index.js.map +1 -0
  26. package/dist/components/banner/index.cjs +1 -1
  27. package/dist/components/banner/index.js +1 -1
  28. package/dist/components/branding/index.cjs +2 -0
  29. package/dist/components/branding/index.cjs.map +1 -0
  30. package/dist/components/branding/index.js +34 -0
  31. package/dist/components/branding/index.js.map +1 -0
  32. package/dist/components/button/index.cjs +1 -1
  33. package/dist/components/button/index.js +1 -1
  34. package/dist/components/component/index.cjs +1 -1
  35. package/dist/components/component/index.js +10 -10
  36. package/dist/components/dialog/index.cjs +1 -1
  37. package/dist/components/dialog/index.js +1 -1
  38. package/dist/components/dropdown/index.cjs +2 -0
  39. package/dist/components/dropdown/index.cjs.map +1 -0
  40. package/dist/components/dropdown/index.js +15 -0
  41. package/dist/components/dropdown/index.js.map +1 -0
  42. package/dist/components/editor/index.cjs +1 -1
  43. package/dist/components/editor/index.js +1 -1
  44. package/dist/components/figure/index.cjs +2 -0
  45. package/dist/components/figure/index.cjs.map +1 -0
  46. package/dist/components/figure/index.js +11 -0
  47. package/dist/components/figure/index.js.map +1 -0
  48. package/dist/components/header/index.cjs +2 -0
  49. package/dist/components/header/index.cjs.map +1 -0
  50. package/dist/components/header/index.js +22 -0
  51. package/dist/components/header/index.js.map +1 -0
  52. package/dist/components/icon/index.cjs +1 -1
  53. package/dist/components/icon/index.cjs.map +1 -1
  54. package/dist/components/icon/index.js +32 -29
  55. package/dist/components/icon/index.js.map +1 -1
  56. package/dist/components/input/index.cjs +1 -1
  57. package/dist/components/input/index.js +1 -1
  58. package/dist/components/link/index.cjs +2 -0
  59. package/dist/components/link/index.cjs.map +1 -0
  60. package/dist/components/link/index.js +17 -0
  61. package/dist/components/link/index.js.map +1 -0
  62. package/dist/components/list/index.cjs +2 -0
  63. package/dist/components/list/index.cjs.map +1 -0
  64. package/dist/components/list/index.js +9 -0
  65. package/dist/components/list/index.js.map +1 -0
  66. package/dist/components/nav/index.cjs +2 -0
  67. package/dist/components/nav/index.cjs.map +1 -0
  68. package/dist/components/nav/index.js +17 -0
  69. package/dist/components/nav/index.js.map +1 -0
  70. package/dist/index.cjs +1 -1
  71. package/dist/index.d.ts +97 -4
  72. package/dist/index.js +30 -12
  73. package/dist/index.js.map +1 -1
  74. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/header/index.tsx"],"sourcesContent":["import styles from './styles.module.css';\n\nexport type HeaderProps = {\n size: 1 | 2 | 3,\n title: string,\n subtitle?: string,\n};\n\nconst renderHeading = (size: HeaderProps['size'], title: string) => {\n switch (size) {\n case 1:\n return <h1>{title}</h1>;\n case 2:\n return <h2>{title}</h2>;\n case 3:\n return <h3>{title}</h3>;\n default:\n return null;\n }\n};\n\nexport const Header = ({size = 1, title = 'Header', subtitle }: HeaderProps) => {\n return (\n <header className={styles.header}>\n {renderHeading(size, title)}\n {subtitle && <p>{subtitle}</p>}\n </header>\n );\n};\n"],"names":["renderHeading","size","title","jsx","Header","subtitle","jsxs","styles"],"mappings":"mKAQMA,EAAgB,CAACC,EAA2BC,IAAkB,CAClE,OAAQD,EAAA,CACN,IAAK,GACH,OAAOE,EAAAA,kBAAAA,IAAC,MAAI,SAAAD,CAAA,CAAM,EACpB,IAAK,GACH,OAAOC,EAAAA,kBAAAA,IAAC,MAAI,SAAAD,CAAA,CAAM,EACpB,IAAK,GACH,OAAOC,EAAAA,kBAAAA,IAAC,MAAI,SAAAD,CAAA,CAAM,EACpB,QACE,OAAO,IAAA,CAEb,EAEaE,EAAS,CAAC,CAAC,KAAAH,EAAO,EAAG,MAAAC,EAAQ,SAAU,SAAAG,KAEhDC,EAAAA,kBAAAA,KAAC,SAAA,CAAO,UAAWC,EAAO,OACvB,SAAA,CAAAP,EAAcC,EAAMC,CAAK,EACzBG,GAAYF,EAAAA,kBAAAA,IAAC,IAAA,CAAG,SAAAE,CAAA,CAAS,CAAA,EAC5B"}
@@ -0,0 +1,22 @@
1
+ import { j as r } from "../../jsx-runtime-CgJvvRaT.js";
2
+ import '../../assets/index5.css';const d = "_header_1xswd_1", a = {
3
+ header: d
4
+ }, c = (s, e) => {
5
+ switch (s) {
6
+ case 1:
7
+ return /* @__PURE__ */ r.jsx("h1", { children: e });
8
+ case 2:
9
+ return /* @__PURE__ */ r.jsx("h2", { children: e });
10
+ case 3:
11
+ return /* @__PURE__ */ r.jsx("h3", { children: e });
12
+ default:
13
+ return null;
14
+ }
15
+ }, t = ({ size: s = 1, title: e = "Header", subtitle: n }) => /* @__PURE__ */ r.jsxs("header", { className: a.header, children: [
16
+ c(s, e),
17
+ n && /* @__PURE__ */ r.jsx("p", { children: n })
18
+ ] });
19
+ export {
20
+ t as Header
21
+ };
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/header/index.tsx"],"sourcesContent":["import styles from './styles.module.css';\n\nexport type HeaderProps = {\n size: 1 | 2 | 3,\n title: string,\n subtitle?: string,\n};\n\nconst renderHeading = (size: HeaderProps['size'], title: string) => {\n switch (size) {\n case 1:\n return <h1>{title}</h1>;\n case 2:\n return <h2>{title}</h2>;\n case 3:\n return <h3>{title}</h3>;\n default:\n return null;\n }\n};\n\nexport const Header = ({size = 1, title = 'Header', subtitle }: HeaderProps) => {\n return (\n <header className={styles.header}>\n {renderHeading(size, title)}\n {subtitle && <p>{subtitle}</p>}\n </header>\n );\n};\n"],"names":["renderHeading","size","title","jsx","Header","subtitle","jsxs","styles"],"mappings":";;;GAQMA,IAAgB,CAACC,GAA2BC,MAAkB;AAClE,UAAQD,GAAA;AAAA,IACN,KAAK;AACH,aAAOE,gBAAAA,EAAAA,IAAC,QAAI,UAAAD,EAAA,CAAM;AAAA,IACpB,KAAK;AACH,aAAOC,gBAAAA,EAAAA,IAAC,QAAI,UAAAD,EAAA,CAAM;AAAA,IACpB,KAAK;AACH,aAAOC,gBAAAA,EAAAA,IAAC,QAAI,UAAAD,EAAA,CAAM;AAAA,IACpB;AACE,aAAO;AAAA,EAAA;AAEb,GAEaE,IAAS,CAAC,EAAC,MAAAH,IAAO,GAAG,OAAAC,IAAQ,UAAU,UAAAG,QAEhDC,gBAAAA,EAAAA,KAAC,UAAA,EAAO,WAAWC,EAAO,QACvB,UAAA;AAAA,EAAAP,EAAcC,GAAMC,CAAK;AAAA,EACzBG,KAAYF,gBAAAA,EAAAA,IAAC,KAAA,EAAG,UAAAE,EAAA,CAAS;AAAA,GAC5B;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index6.css');const s=require("../../jsx-runtime-wx6f5G-9.cjs"),i=require("classix");function c(t){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='${t}' /%3E%3C/svg%3E%0A")`}const o={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",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"},h="_icon_15h6k_1",u="_small_15h6k_8",d="_medium_15h6k_13",p="_large_15h6k_18",g="_dialog_15h6k_27",_="_wrapper_15h6k_31",e={icon:h,small:u,medium:d,large:p,default:"_default_15h6k_23",dialog:g,wrapper:_},v={medium:e.medium,large:e.large,small:e.small},x={default:e.default,dialog:e.dialog},k=({name:t="home",size:n="medium",variant:a="default"})=>{const l={maskImage:c(o[t].toString())},r=({children:m})=>a==="dialog"?s.jsxRuntimeExports.jsx("span",{className:e.wrapper,"data-testid":"wrapper",children:m}):s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:m});return s.jsxRuntimeExports.jsx(r,{children:s.jsxRuntimeExports.jsx("span",{className:i(v[n],e.icon,x[a]),style:l})})},j=()=>Object.keys(o);exports.Icon=k;exports.Icons=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index17.css');const t=require("../../jsx-runtime-wx6f5G-9.cjs"),l=require("classix");function r(s){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='${s}' /%3E%3C/svg%3E%0A")`}const o={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"},h="_icon_1mjc4_1",u="_small_1mjc4_8",d="_medium_1mjc4_13",_="_large_1mjc4_18",p="_dialog_1mjc4_27",g="_white_1mjc4_31",j="_wrapper_1mjc4_35",e={icon:h,small:u,medium:d,large:_,default:"_default_1mjc4_23",dialog:p,white:g,wrapper:j},v={medium:e.medium,large:e.large,small:e.small},x={default:e.default,dialog:e.dialog,white:e.white},w=({name:s="home",size:n="medium",variant:m="default"})=>{const c={maskImage:r(o[s].toString())},i=({children:a})=>m==="dialog"?t.jsxRuntimeExports.jsx("span",{className:e.wrapper,"data-testid":"wrapper",children:a}):t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:a});return t.jsxRuntimeExports.jsx(i,{children:t.jsxRuntimeExports.jsx("span",{className:l(v[n],e.icon,x[m]),style:c})})},Z=()=>Object.keys(o);exports.Icon=w;exports.Icons=Z;
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 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};\n","import cx from 'classix';\n\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};\n\nexport type IconProps = {\n variant?: keyof typeof variants;\n name: keyof typeof iconPaths;\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":"uJAAO,SAASA,EAASC,EAAkB,CACzC,MAAO,mMAAmMA,CAAQ,uBACpN,CAEO,MAAMC,EAAY,CACvB,KAAM,uUACN,KAAM,6OACN,OAAQ,8EACR,KAAM,4KACN,KAAM,wRACN,OAAQ,+EACV,8MCNMC,EAAQ,CACZ,OAAQC,EAAO,OACf,MAAOA,EAAO,MACd,MAAOA,EAAO,KAChB,EAEMC,EAAW,CACf,QAASD,EAAO,QAChB,OAAQA,EAAO,MACjB,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,kBAAAA,IAAC,OAAA,CACC,UAAWT,EAAO,QAClB,cAAY,UAEX,SAAAQ,CAAA,CAAA,wDAGA,SAAAA,EAAS,EAGhB,+BACGD,EAAA,CACC,SAAAE,EAAAA,kBAAAA,IAAC,OAAA,CACC,UAAWC,EAAGX,EAAMK,CAAI,EAAGJ,EAAO,KAAMC,EAASI,CAAO,CAAC,EACzD,MAAOC,CAAA,CAAA,EAEX,CAEJ,EAEaK,EAAQ,IACZ,OAAO,KAAKb,CAAS"}
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};\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":"uJAAO,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,+EACV,0OCNMC,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,kBAAAA,IAAC,OAAA,CACC,UAAWT,EAAO,QAClB,cAAY,UAEX,SAAAQ,CAAA,CAAA,wDAGA,SAAAA,EAAS,EAGhB,+BACGD,EAAA,CACC,SAAAE,EAAAA,kBAAAA,IAAC,OAAA,CACC,UAAWC,EAAGX,EAAMK,CAAI,EAAGJ,EAAO,KAAMC,EAASI,CAAO,CAAC,EACzD,MAAOC,CAAA,CAAA,EAEX,CAEJ,EAEaK,EAAQ,IACZ,OAAO,KAAKb,CAAS"}
@@ -1,51 +1,54 @@
1
- import { j as m } from "../../jsx-runtime-CgJvvRaT.js";
2
- import h from "classix";
3
- import '../../assets/index6.css';function c(s) {
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='${s}' /%3E%3C/svg%3E%0A")`;
1
+ import { j as a } from "../../jsx-runtime-CgJvvRaT.js";
2
+ import i from "classix";
3
+ import '../../assets/index17.css';function r(e) {
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
6
  const o = {
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
+ chevron: "m19.5 8.25-7.5 7.5-7.5-7.5",
8
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",
9
10
  italic: "M5.248 20.246H9.05m0 0h3.696m-3.696 0 5.893-16.502m0 0h-3.697m3.697 0h3.803",
10
11
  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",
11
12
  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",
12
13
  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"
13
- }, i = "_icon_15h6k_1", d = "_small_15h6k_8", p = "_medium_15h6k_13", _ = "_large_15h6k_18", g = "_dialog_15h6k_27", u = "_wrapper_15h6k_31", a = {
14
- icon: i,
14
+ }, h = "_icon_1mjc4_1", d = "_small_1mjc4_8", _ = "_medium_1mjc4_13", p = "_large_1mjc4_18", g = "_dialog_1mjc4_27", v = "_white_1mjc4_31", u = "_wrapper_1mjc4_35", m = {
15
+ icon: h,
15
16
  small: d,
16
- medium: p,
17
- large: _,
18
- default: "_default_15h6k_23",
17
+ medium: _,
18
+ large: p,
19
+ default: "_default_1mjc4_23",
19
20
  dialog: g,
21
+ white: v,
20
22
  wrapper: u
21
- }, v = {
22
- medium: a.medium,
23
- large: a.large,
24
- small: a.small
25
- }, k = {
26
- default: a.default,
27
- dialog: a.dialog
28
- }, Z = ({ name: s = "home", size: l = "medium", variant: e = "default" }) => {
29
- const n = {
30
- maskImage: c(o[s].toString())
31
- }, r = ({ children: t }) => e === "dialog" ? /* @__PURE__ */ m.jsx(
23
+ }, j = {
24
+ medium: m.medium,
25
+ large: m.large,
26
+ small: m.small
27
+ }, w = {
28
+ default: m.default,
29
+ dialog: m.dialog,
30
+ white: m.white
31
+ }, f = ({ name: e = "home", size: c = "medium", variant: t = "default" }) => {
32
+ const l = {
33
+ maskImage: r(o[e].toString())
34
+ }, n = ({ children: s }) => t === "dialog" ? /* @__PURE__ */ a.jsx(
32
35
  "span",
33
36
  {
34
- className: a.wrapper,
37
+ className: m.wrapper,
35
38
  "data-testid": "wrapper",
36
- children: t
39
+ children: s
37
40
  }
38
- ) : /* @__PURE__ */ m.jsx(m.Fragment, { children: t });
39
- return /* @__PURE__ */ m.jsx(r, { children: /* @__PURE__ */ m.jsx(
41
+ ) : /* @__PURE__ */ a.jsx(a.Fragment, { children: s });
42
+ return /* @__PURE__ */ a.jsx(n, { children: /* @__PURE__ */ a.jsx(
40
43
  "span",
41
44
  {
42
- className: h(v[l], a.icon, k[e]),
43
- style: n
45
+ className: i(j[c], m.icon, w[t]),
46
+ style: l
44
47
  }
45
48
  ) });
46
- }, f = () => Object.keys(o);
49
+ }, M = () => Object.keys(o);
47
50
  export {
48
- Z as Icon,
49
- f as Icons
51
+ f as Icon,
52
+ M as Icons
50
53
  };
51
54
  //# 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 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};\n","import cx from 'classix';\n\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};\n\nexport type IconProps = {\n variant?: keyof typeof variants;\n name: keyof typeof iconPaths;\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":";;AAAO,SAASA,EAASC,GAAkB;AACzC,SAAO,mMAAmMA,CAAQ;AACpN;AAEO,MAAMC,IAAY;AAAA,EACvB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AACV;;;;;;;;GCNMC,IAAQ;AAAA,EACZ,QAAQC,EAAO;AAAA,EACf,OAAOA,EAAO;AAAA,EACd,OAAOA,EAAO;AAChB,GAEMC,IAAW;AAAA,EACf,SAASD,EAAO;AAAA,EAChB,QAAQA,EAAO;AACjB,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,GAG1CI,IAAU,CAAC,EAAE,UAAAC,EAAA,MACjBH,MAAY,WACVI,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWT,EAAO;AAAA,MAClB,eAAY;AAAA,MAEX,UAAAQ;AAAA,IAAA;AAAA,EAAA,wCAGA,UAAAA,GAAS;AAGhB,+BACGD,GAAA,EACC,UAAAE,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGX,EAAMK,CAAI,GAAGJ,EAAO,MAAMC,EAASI,CAAO,CAAC;AAAA,MACzD,OAAOC;AAAA,IAAA;AAAA,EAAA,GAEX;AAEJ,GAEaK,IAAQ,MACZ,OAAO,KAAKb,CAAS;"}
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};\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":";;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;AACV;;;;;;;;;GCNMC,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,GAG1CI,IAAU,CAAC,EAAE,UAAAC,EAAA,MACjBH,MAAY,WACVI,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWT,EAAO;AAAA,MAClB,eAAY;AAAA,MAEX,UAAAQ;AAAA,IAAA;AAAA,EAAA,wCAGA,UAAAA,GAAS;AAGhB,+BACGD,GAAA,EACC,UAAAE,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGX,EAAMK,CAAI,GAAGJ,EAAO,MAAMC,EAASI,CAAO,CAAC;AAAA,MACzD,OAAOC;AAAA,IAAA;AAAA,EAAA,GAEX;AAEJ,GAEaK,IAAQ,MACZ,OAAO,KAAKb,CAAS;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index3.css');const i=require("../../jsx-runtime-wx6f5G-9.cjs"),o=require("classix"),c=require("react"),p="_input_1qkbh_1",a={input:p},l=c.forwardRef(({className:t,disabled:e=!1,placeholder:n,type:s="text",...r},u)=>i.jsxRuntimeExports.jsx("input",{ref:u,className:o(a.input,t),disabled:e,placeholder:n,type:s,...r}));exports.Input=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index8.css');const i=require("../../jsx-runtime-wx6f5G-9.cjs"),o=require("classix"),c=require("react"),p="_input_1qkbh_1",a={input:p},l=c.forwardRef(({className:t,disabled:e=!1,placeholder:n,type:s="text",...r},u)=>i.jsxRuntimeExports.jsx("input",{ref:u,className:o(a.input,t),disabled:e,placeholder:n,type:s,...r}));exports.Input=l;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import { j as i } from "../../jsx-runtime-CgJvvRaT.js";
2
2
  import e from "classix";
3
3
  import { forwardRef as m } from "react";
4
- import '../../assets/index3.css';const u = "_input_1qkbh_1", f = {
4
+ import '../../assets/index8.css';const u = "_input_1qkbh_1", f = {
5
5
  input: u
6
6
  }, j = m(
7
7
  ({ className: t, disabled: o = !1, placeholder: r, type: s = "text", ...n }, p) => /* @__PURE__ */ i.jsx(
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index4.css');const r=require("../../jsx-runtime-wx6f5G-9.cjs"),o=require("classix"),c="_link_ci6no_1",l={link:c},u=({children:e,className:n,to:t="#",label:s,...i})=>r.jsxRuntimeExports.jsx("a",{className:o(n,l.link),href:t,...i,children:e||s});exports.Link=u;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +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":"oLAWaA,EAAO,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,GAAAC,EAAK,IAAK,MAAAC,EAAO,GAAGC,KAE5DC,EAAAA,kBAAAA,IAAC,IAAA,CACC,UAAWC,EAAGL,EAAWM,EAAO,IAAI,EACpC,KAAML,EACL,GAAGE,EAEH,YAAsBD,CAAA,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { j as r } from "../../jsx-runtime-CgJvvRaT.js";
2
+ import c from "classix";
3
+ import '../../assets/index4.css';const e = "_link_ci6no_1", l = {
4
+ link: e
5
+ }, x = ({ children: n, className: s, to: o = "#", label: t, ...i }) => /* @__PURE__ */ r.jsx(
6
+ "a",
7
+ {
8
+ className: c(s, l.link),
9
+ href: o,
10
+ ...i,
11
+ children: n || t
12
+ }
13
+ );
14
+ export {
15
+ x as Link
16
+ };
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,QAE5DC,gBAAAA,EAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAGL,GAAWM,EAAO,IAAI;AAAA,IACpC,MAAML;AAAA,IACL,GAAGE;AAAA,IAEH,eAAsBD;AAAA,EAAA;AAAA;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index3.css');const e=require("../../jsx-runtime-wx6f5G-9.cjs"),i=require("classix"),r="_list_1f3ya_1",l={list:r},n=({children:t,className:s})=>e.jsxRuntimeExports.jsx("ul",{className:i(s,l.list),children:t});exports.List=n;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +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":"oLASaA,EAAO,CAAC,CAAE,SAAAC,EAAU,UAAAC,KACxBC,EAAAA,kBAAAA,IAAC,MAAG,UAAWC,EAAGF,EAAWG,EAAO,IAAI,EAAI,SAAAJ,EAAS"}
@@ -0,0 +1,9 @@
1
+ import { j as o } from "../../jsx-runtime-CgJvvRaT.js";
2
+ import i from "classix";
3
+ import '../../assets/index3.css';const r = "_list_1f3ya_1", l = {
4
+ list: r
5
+ }, e = ({ children: s, className: t }) => /* @__PURE__ */ o.jsx("ul", { className: i(t, l.list), children: s });
6
+ export {
7
+ e as List
8
+ };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,QACxBC,gBAAAA,EAAAA,IAAC,QAAG,WAAWC,EAAGF,GAAWG,EAAO,IAAI,GAAI,UAAAJ,GAAS;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index2.css');const a=require("../../jsx-runtime-wx6f5G-9.cjs"),r=require("classix"),s="_nav_1uwvt_1",i="_horizontal_1uwvt_11",o={nav:s,horizontal:i},c=({animation:t,children:e,horizontal:n=!1})=>a.jsxRuntimeExports.jsx("nav",{className:r(t&&t,n&&o.horizontal,o.nav),"data-orientation":n?"horizontal":"vertical",children:e});exports.Nav=c;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +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';\nimport styles from './styles.module.css';\n\nexport type NavProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n horizontal?: boolean;\n};\n\nexport const Nav = ({ animation, children, horizontal = false }: NavProps) => {\n return (\n <nav\n className={cx(animation && animation, horizontal && styles.horizontal, styles.nav)}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n >\n {children}\n </nav>\n );\n};\n"],"names":["Nav","animation","children","horizontal","jsx","cx","styles"],"mappings":"wNAWaA,EAAM,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,WAAAC,EAAa,MAEpDC,EAAAA,kBAAAA,IAAC,MAAA,CACC,UAAWC,EAAGJ,GAAaA,EAAWE,GAAcG,EAAO,WAAYA,EAAO,GAAG,EACjF,mBAAkBH,EAAa,aAAe,WAE7C,SAAAD,CAAA,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { j as r } from "../../jsx-runtime-CgJvvRaT.js";
2
+ import s from "classix";
3
+ import '../../assets/index2.css';const v = "_nav_1uwvt_1", e = "_horizontal_1uwvt_11", a = {
4
+ nav: v,
5
+ horizontal: e
6
+ }, c = ({ animation: t, children: n, horizontal: o = !1 }) => /* @__PURE__ */ r.jsx(
7
+ "nav",
8
+ {
9
+ className: s(t && t, o && a.horizontal, a.nav),
10
+ "data-orientation": o ? "horizontal" : "vertical",
11
+ children: n
12
+ }
13
+ );
14
+ export {
15
+ c as Nav
16
+ };
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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';\nimport styles from './styles.module.css';\n\nexport type NavProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n horizontal?: boolean;\n};\n\nexport const Nav = ({ animation, children, horizontal = false }: NavProps) => {\n return (\n <nav\n className={cx(animation && animation, horizontal && styles.horizontal, styles.nav)}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n >\n {children}\n </nav>\n );\n};\n"],"names":["Nav","animation","children","horizontal","jsx","cx","styles"],"mappings":";;;;;GAWaA,IAAM,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,YAAAC,IAAa,SAEpDC,gBAAAA,EAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAGJ,KAAaA,GAAWE,KAAcG,EAAO,YAAYA,EAAO,GAAG;AAAA,IACjF,oBAAkBH,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/banner/index.cjs"),e=require("./components/button/index.cjs"),o=require("./components/dialog/index.cjs"),t=require("./components/editor/index.cjs"),i=require("./components/icon/index.cjs"),r=require("./components/input/index.cjs");exports.Banner=n.Banner;exports.Button=e.Button;exports.Dialog=o.Dialog;exports.Editor=t.Editor;exports.Icon=i.Icon;exports.Input=r.Input;
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"),i=require("./components/branding/index.cjs"),r=require("./components/button/index.cjs"),t=require("./components/dialog/index.cjs"),c=require("./components/dropdown/index.cjs"),s=require("./components/editor/index.cjs"),d=require("./components/figure/index.cjs"),_=require("./components/header/index.cjs"),u=require("./components/icon/index.cjs"),p=require("./components/input/index.cjs"),a=require("./components/link/index.cjs"),m=require("./components/list/index.cjs"),q=require("./components/nav/index.cjs");exports.Accordion=n.Accordion;exports.Aside=e.Aside;exports.Banner=o.Banner;exports.Branding=i.Branding;exports.Button=r.Button;exports.Dialog=t.Dialog;exports.Dropdown=c.Dropdown;exports.Editor=s.Editor;exports.Figure=d.Figure;exports.Header=_.Header;exports.Icon=u.Icon;exports.Input=p.Input;exports.Link=a.Link;exports.List=m.List;exports.Nav=q.Nav;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -4,6 +4,27 @@ import { InputHTMLAttributes } from 'react';
4
4
  import { JSX } from 'react/jsx-runtime';
5
5
  import { RefAttributes } from 'react';
6
6
 
7
+ export declare const Accordion: ({ children, icon, label, open }: AccordionProps) => JSX.Element;
8
+
9
+ declare type AccordionProps = {
10
+ children: React.ReactNode;
11
+ icon?: IconName;
12
+ label: string;
13
+ open?: boolean;
14
+ };
15
+
16
+ declare type AnimationName = 'stagger';
17
+
18
+ export declare const Aside: ({ children, className, sticky, variant }: AsideProps) => JSX.Element;
19
+
20
+ declare type AsideProps = {
21
+ className?: string;
22
+ children?: React.ReactNode;
23
+ open?: boolean;
24
+ sticky?: boolean;
25
+ variant?: keyof typeof variants;
26
+ };
27
+
7
28
  export declare const Banner: ({ button, message, onClick, onDismiss, visible, ...props }: BannerProps) => JSX.Element;
8
29
 
9
30
  declare type BannerProps = {
@@ -14,6 +35,18 @@ declare type BannerProps = {
14
35
  visible?: boolean;
15
36
  };
16
37
 
38
+ export declare const Branding: ({ name, size, variant }: BrandingProps) => JSX.Element;
39
+
40
+ declare type BrandingProps = {
41
+ name: keyof typeof brandingSVG;
42
+ size?: number;
43
+ variant?: keyof typeof variants_2;
44
+ };
45
+
46
+ declare const brandingSVG: {
47
+ logo: string;
48
+ };
49
+
17
50
  export declare const Button: ({ children, className, disabled, label, title, type, variant, ...props }: ButtonProps) => JSX.Element;
18
51
 
19
52
  declare type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
@@ -22,7 +55,7 @@ declare type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
22
55
  disabled?: boolean;
23
56
  label?: string;
24
57
  title?: string;
25
- variant?: keyof typeof variants;
58
+ variant?: keyof typeof variants_3;
26
59
  type?: 'button' | 'submit' | 'reset';
27
60
  };
28
61
 
@@ -35,6 +68,12 @@ declare type DialogProps = React.DialogHTMLAttributes<HTMLDialogElement> & {
35
68
  title?: string;
36
69
  };
37
70
 
71
+ export declare const Dropdown: ({ children, ...props }: DropdownProps) => JSX.Element;
72
+
73
+ declare type DropdownProps = {
74
+ children?: React.ReactNode;
75
+ };
76
+
38
77
  export declare const Editor: ({ autofocus, autolink, content, onChange }: EditorProps) => JSX.Element;
39
78
 
40
79
  declare type EditorProps = {
@@ -44,10 +83,28 @@ declare type EditorProps = {
44
83
  onChange?: (html: string) => void;
45
84
  };
46
85
 
86
+ export declare const Figure: ({ caption, children }: FigureProps) => JSX.Element;
87
+
88
+ declare type FigureProps = {
89
+ caption?: string;
90
+ children?: React.ReactNode;
91
+ };
92
+
93
+ export declare const Header: ({ size, title, subtitle }: HeaderProps) => JSX.Element;
94
+
95
+ declare type HeaderProps = {
96
+ size: 1 | 2 | 3;
97
+ title: string;
98
+ subtitle?: string;
99
+ };
100
+
47
101
  export declare const Icon: ({ name, size, variant }: IconProps) => JSX.Element;
48
102
 
103
+ declare type IconName = keyof typeof iconPaths;
104
+
49
105
  declare const iconPaths: {
50
106
  bold: string;
107
+ chevron: string;
51
108
  home: string;
52
109
  italic: string;
53
110
  link: string;
@@ -56,8 +113,8 @@ declare const iconPaths: {
56
113
  };
57
114
 
58
115
  declare type IconProps = {
59
- variant?: keyof typeof variants_2;
60
- name: keyof typeof iconPaths;
116
+ variant?: keyof typeof variants_4;
117
+ name: IconName;
61
118
  size?: keyof typeof sizes;
62
119
  };
63
120
 
@@ -67,6 +124,30 @@ placeholder?: string;
67
124
  type?: "text" | "password" | "search" | "number";
68
125
  } & RefAttributes<HTMLInputElement>>;
69
126
 
127
+ export declare const Link: ({ children, className, to, label, ...props }: LinkProps) => JSX.Element;
128
+
129
+ declare type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {
130
+ children?: React.ReactNode;
131
+ className?: string;
132
+ label?: string;
133
+ to?: string;
134
+ };
135
+
136
+ export declare const List: ({ children, className }: ListProps) => JSX.Element;
137
+
138
+ declare type ListProps = {
139
+ children?: React.ReactNode;
140
+ className?: string;
141
+ };
142
+
143
+ export declare const Nav: ({ animation, children, horizontal }: NavProps) => JSX.Element;
144
+
145
+ declare type NavProps = {
146
+ animation?: AnimationName;
147
+ children?: React.ReactNode;
148
+ horizontal?: boolean;
149
+ };
150
+
70
151
  declare const sizes: {
71
152
  medium: string;
72
153
  large: string;
@@ -74,6 +155,17 @@ declare const sizes: {
74
155
  };
75
156
 
76
157
  declare const variants: {
158
+ default: string;
159
+ portal: string;
160
+ };
161
+
162
+ declare const variants_2: {
163
+ default: string;
164
+ green: string;
165
+ white: string;
166
+ };
167
+
168
+ declare const variants_3: {
77
169
  default: string;
78
170
  minimal: string;
79
171
  primary: string;
@@ -81,9 +173,10 @@ declare const variants: {
81
173
  white: string;
82
174
  };
83
175
 
84
- declare const variants_2: {
176
+ declare const variants_4: {
85
177
  default: string;
86
178
  dialog: string;
179
+ white: string;
87
180
  };
88
181
 
89
182
  export { }
package/dist/index.js CHANGED
@@ -1,15 +1,33 @@
1
- import { Banner as t } from "./components/banner/index.js";
2
- import { Button as p } from "./components/button/index.js";
3
- import { Dialog as m } from "./components/dialog/index.js";
4
- import { Editor as n } from "./components/editor/index.js";
5
- import { Icon as i } from "./components/icon/index.js";
6
- import { Input as B } from "./components/input/index.js";
1
+ import { Accordion as e } from "./components/accordion/index.js";
2
+ import { Aside as p } from "./components/aside/index.js";
3
+ import { Banner as m } from "./components/banner/index.js";
4
+ import { Branding as n } from "./components/branding/index.js";
5
+ import { Button as d } from "./components/button/index.js";
6
+ import { Dialog as c } from "./components/dialog/index.js";
7
+ import { Dropdown as u } from "./components/dropdown/index.js";
8
+ import { Editor as s } from "./components/editor/index.js";
9
+ import { Figure as D } from "./components/figure/index.js";
10
+ import { Header as L } from "./components/header/index.js";
11
+ import { Icon as l } from "./components/icon/index.js";
12
+ import { Input as w } from "./components/input/index.js";
13
+ import { Link as F } from "./components/link/index.js";
14
+ import { List as N } from "./components/list/index.js";
15
+ import { Nav as h } from "./components/nav/index.js";
7
16
  import './assets/index.css';export {
8
- t as Banner,
9
- p as Button,
10
- m as Dialog,
11
- n as Editor,
12
- i as Icon,
13
- B as Input
17
+ e as Accordion,
18
+ p as Aside,
19
+ m as Banner,
20
+ n as Branding,
21
+ d as Button,
22
+ c as Dialog,
23
+ u as Dropdown,
24
+ s as Editor,
25
+ D as Figure,
26
+ L as Header,
27
+ l as Icon,
28
+ w as Input,
29
+ F as Link,
30
+ N as List,
31
+ h as Nav
14
32
  };
15
33
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solibo/solibo-ui",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite build --watch",