@hua-labs/ui 2.0.1 → 2.1.0

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 (127) hide show
  1. package/README.md +1 -1
  2. package/dist/{Switch-O4TpMKfQ.d.mts → Switch-Dzm5TLR3.d.mts} +1 -1
  3. package/dist/advanced/dashboard.d.ts.map +1 -1
  4. package/dist/advanced-dashboard.js +1 -1
  5. package/dist/advanced-dashboard.js.map +1 -1
  6. package/dist/advanced-dashboard.mjs +1 -1
  7. package/dist/advanced-emotion.js +1 -1
  8. package/dist/advanced-emotion.js.map +1 -1
  9. package/dist/advanced-emotion.mjs +1 -1
  10. package/dist/advanced-motion.js +5 -5
  11. package/dist/advanced-motion.js.map +1 -1
  12. package/dist/advanced-motion.mjs +1 -1
  13. package/dist/advanced.js +7 -7
  14. package/dist/advanced.js.map +1 -1
  15. package/dist/advanced.mjs +1 -1
  16. package/dist/chunk-BXX2TZUB.mjs +3 -0
  17. package/dist/chunk-BXX2TZUB.mjs.map +1 -0
  18. package/dist/{chunk-ECLIPN34.mjs → chunk-COR6CDMA.mjs} +3 -3
  19. package/dist/{chunk-ECLIPN34.mjs.map → chunk-COR6CDMA.mjs.map} +1 -1
  20. package/dist/chunk-HN5LSP6L.mjs +3 -0
  21. package/dist/chunk-HN5LSP6L.mjs.map +1 -0
  22. package/dist/{chunk-T3GU5BJ3.mjs → chunk-LOYAJIWO.mjs} +2 -2
  23. package/dist/{chunk-T3GU5BJ3.mjs.map → chunk-LOYAJIWO.mjs.map} +1 -1
  24. package/dist/{chunk-TOANBEPN.mjs → chunk-NBJUE7NR.mjs} +2 -2
  25. package/dist/{chunk-TOANBEPN.mjs.map → chunk-NBJUE7NR.mjs.map} +1 -1
  26. package/dist/{chunk-5BMH7223.mjs → chunk-PYBYZVSL.mjs} +2 -2
  27. package/dist/{chunk-5BMH7223.mjs.map → chunk-PYBYZVSL.mjs.map} +1 -1
  28. package/dist/{chunk-PQ3DBOMK.mjs → chunk-QQCELXFD.mjs} +2 -2
  29. package/dist/{chunk-PQ3DBOMK.mjs.map → chunk-QQCELXFD.mjs.map} +1 -1
  30. package/dist/{chunk-OI66ZLUB.mjs → chunk-UWHCM3S6.mjs} +2 -2
  31. package/dist/{chunk-OI66ZLUB.mjs.map → chunk-UWHCM3S6.mjs.map} +1 -1
  32. package/dist/{chunk-MYFMKCYX.mjs → chunk-XV3Y7QVU.mjs} +2 -2
  33. package/dist/{chunk-MYFMKCYX.mjs.map → chunk-XV3Y7QVU.mjs.map} +1 -1
  34. package/dist/components/Avatar.d.ts +1 -1
  35. package/dist/components/Avatar.d.ts.map +1 -1
  36. package/dist/components/Badge.d.ts +1 -1
  37. package/dist/components/Badge.d.ts.map +1 -1
  38. package/dist/components/Button.variants.d.ts +1 -1
  39. package/dist/components/Button.variants.d.ts.map +1 -1
  40. package/dist/components/Card.d.ts +1 -1
  41. package/dist/components/Card.d.ts.map +1 -1
  42. package/dist/components/CodeBlock.d.ts +1 -1
  43. package/dist/components/Container.d.ts +1 -1
  44. package/dist/components/Container.d.ts.map +1 -1
  45. package/dist/components/Grid.d.ts +1 -1
  46. package/dist/components/Grid.d.ts.map +1 -1
  47. package/dist/components/Icon/Icon.d.ts.map +1 -1
  48. package/dist/components/Input.d.ts +1 -1
  49. package/dist/components/Input.d.ts.map +1 -1
  50. package/dist/components/Label.d.ts +1 -1
  51. package/dist/components/Label.d.ts.map +1 -1
  52. package/dist/components/Link.d.ts +1 -1
  53. package/dist/components/Link.d.ts.map +1 -1
  54. package/dist/components/Panel.d.ts +1 -1
  55. package/dist/components/Panel.d.ts.map +1 -1
  56. package/dist/components/Progress.d.ts +2 -2
  57. package/dist/components/Progress.d.ts.map +1 -1
  58. package/dist/components/Select.d.ts +1 -1
  59. package/dist/components/Select.d.ts.map +1 -1
  60. package/dist/components/Skeleton.d.ts +1 -1
  61. package/dist/components/Skeleton.d.ts.map +1 -1
  62. package/dist/components/Stack.d.ts +1 -1
  63. package/dist/components/Stack.d.ts.map +1 -1
  64. package/dist/components/Textarea.d.ts +1 -1
  65. package/dist/components/Textarea.d.ts.map +1 -1
  66. package/dist/components/icons/essential.d.ts +68 -0
  67. package/dist/components/icons/essential.d.ts.map +1 -0
  68. package/dist/components/icons-bold/essential.d.ts +68 -0
  69. package/dist/components/icons-bold/essential.d.ts.map +1 -0
  70. package/dist/data.d.mts +1 -1
  71. package/dist/data.js.map +1 -1
  72. package/dist/data.mjs.map +1 -1
  73. package/dist/form.d.mts +1 -1
  74. package/dist/form.js +1 -1
  75. package/dist/form.js.map +1 -1
  76. package/dist/form.mjs +1 -1
  77. package/dist/iconsax-extended.d.ts +19 -0
  78. package/dist/iconsax-extended.d.ts.map +1 -0
  79. package/dist/iconsax-extended.js +3 -0
  80. package/dist/iconsax-extended.js.map +1 -0
  81. package/dist/iconsax-extended.mjs +4 -0
  82. package/dist/iconsax-extended.mjs.map +1 -0
  83. package/dist/iconsax.d.ts +10 -11
  84. package/dist/iconsax.d.ts.map +1 -1
  85. package/dist/iconsax.js +2 -2
  86. package/dist/iconsax.js.map +1 -1
  87. package/dist/iconsax.mjs +2 -2
  88. package/dist/iconsax.mjs.map +1 -1
  89. package/dist/index.d.mts +2 -2
  90. package/dist/index.js +4 -4
  91. package/dist/index.js.map +1 -1
  92. package/dist/index.mjs +1 -1
  93. package/dist/interactive.js +1 -1
  94. package/dist/interactive.js.map +1 -1
  95. package/dist/interactive.mjs +1 -1
  96. package/dist/lib/iconsax-loader.d.ts +15 -45
  97. package/dist/lib/iconsax-loader.d.ts.map +1 -1
  98. package/dist/navigation.js +2 -2
  99. package/dist/navigation.js.map +1 -1
  100. package/dist/navigation.mjs +1 -1
  101. package/dist/overlay.js +1 -1
  102. package/dist/overlay.js.map +1 -1
  103. package/dist/overlay.mjs +1 -1
  104. package/dist/sdui.js +3 -3
  105. package/dist/sdui.js.map +1 -1
  106. package/dist/sdui.mjs +1 -1
  107. package/package.json +23 -7
  108. package/src/components/icons/essential.ts +195 -0
  109. package/src/components/icons-bold/essential.ts +195 -0
  110. package/LICENSE +0 -21
  111. package/dist/chunk-AANHUMJ2.mjs +0 -3
  112. package/dist/chunk-AANHUMJ2.mjs.map +0 -1
  113. package/dist/chunk-FSL373O6.mjs +0 -3
  114. package/dist/chunk-FSL373O6.mjs.map +0 -1
  115. package/dist/components/icons/Frame2.d.ts +0 -4
  116. package/dist/components/icons/Frame2.d.ts.map +0 -1
  117. package/dist/components/icons/Group.d.ts +0 -4
  118. package/dist/components/icons/Group.d.ts.map +0 -1
  119. package/dist/components/icons/Group1.d.ts +0 -4
  120. package/dist/components/icons/Group1.d.ts.map +0 -1
  121. package/dist/components/icons/GroupCopy.d.ts +0 -4
  122. package/dist/components/icons/GroupCopy.d.ts.map +0 -1
  123. package/dist/iconsax.d.mts +0 -160
  124. package/src/components/icons/Frame2.tsx +0 -28
  125. package/src/components/icons/Group.tsx +0 -35
  126. package/src/components/icons/Group1.tsx +0 -21
  127. package/src/components/icons/GroupCopy.tsx +0 -21
package/dist/sdui.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  "use client";
2
- import {a as a$8,b as b$6,c as c$3,d as d$3,f as f$1,g,h,e as e$2}from'./chunk-MYFMKCYX.mjs';import {b as b$2,a as a$6}from'./chunk-RPUS7G7Q.mjs';import {a,b}from'./chunk-GLZKT7JN.mjs';import {c as c$2,b as b$3,a as a$4}from'./chunk-IN7RWQCJ.mjs';import {a as a$3}from'./chunk-N7M6RIN4.mjs';import {f,e,d,c,b as b$1,a as a$2}from'./chunk-FSL373O6.mjs';import {a as a$5}from'./chunk-IFSEJVOR.mjs';import {b as b$4,a as a$7}from'./chunk-OI66ZLUB.mjs';import {c as c$1,d as d$2,b as b$5}from'./chunk-SGEP3CQE.mjs';import {d as d$1}from'./chunk-FFH4ZFKS.mjs';import {l}from'./chunk-AANHUMJ2.mjs';import {a as a$1}from'./chunk-C4OACMTB.mjs';import {e as e$1}from'./chunk-UUHAXGMO.mjs';import {createContext,useState,useContext,useMemo,useCallback}from'react';import {jsx,jsxs}from'react/jsx-runtime';var fe=({children:e,justify:t,align:r,className:n="",style:o,backgroundColor:s,padding:a,margin:c,borderRadius:i,border:u,...m})=>{let d={...o,...s&&{backgroundColor:s},...a!==void 0&&{padding:typeof a=="number"?`${a}px`:a},...c!==void 0&&{margin:typeof c=="number"?`${c}px`:c},...i!==void 0&&{borderRadius:typeof i=="number"?`${i}px`:i},...u&&{border:u}};return jsx("div",{className:e$1((t||r)&&"flex",t&&oe[t],r&&ae[r],n),style:Object.keys(d).length>0?d:void 0,...m,children:e})},ye=({size:e=16,className:t=""})=>jsx("div",{className:t,style:{width:e,height:e,flexShrink:0}}),oe={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between"},ae={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},Se=({children:e,direction:t="row",gap:r=0,justify:n="start",align:o="stretch",className:s="",style:a,backgroundColor:c,padding:i,...u})=>{let m={gap:`${r*4}px`,...a,...c&&{backgroundColor:c},...i!==void 0&&{padding:typeof i=="number"?`${i}px`:i}};return jsx("div",{className:`flex ${t==="column"?"flex-col":"flex-row"} ${oe[n]} ${ae[o]} ${s}`,style:m,...u,children:e})},be=({children:e,cols:t=1,gap:r=4,className:n="",style:o,backgroundColor:s,padding:a,...c})=>{let i={gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${r*4}px`,...o,...s&&{backgroundColor:s},...a!==void 0&&{padding:typeof a=="number"?`${a}px`:a}};return jsx("div",{className:`grid ${n}`,style:i,...c,children:e})},y={left:"text-left",center:"text-center",right:"text-right"};function S(e){let t={};return e.fontSize&&(t.fontSize=e.fontSize),e.lineHeight&&(t.lineHeight=e.lineHeight),e.fontWeight&&(t.fontWeight=e.fontWeight),e.letterSpacing&&(t.letterSpacing=e.letterSpacing),t}var he=({children:e,variant:t="body",align:r="center",className:n="",style:o,fontSize:s,lineHeight:a,fontWeight:c,letterSpacing:i,...u})=>{let m={body:"text-foreground",muted:"text-muted-foreground text-sm",lead:"text-xl text-muted-foreground"},d=S({fontSize:s,lineHeight:a,fontWeight:c,letterSpacing:i}),g=Object.keys(d).length>0?{...o,...d}:o;return jsx("p",{className:`${m[t]} ${y[r]} ${n}`,style:g,...u,children:e})},xe=({children:e,align:t="center",className:r="",style:n,fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c,...i})=>{let u=S({fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c}),m=Object.keys(u).length>0?{...n,...u}:n;return jsx("h1",{className:`text-4xl md:text-5xl font-bold ${y[t]} ${r}`,style:m,...i,children:e})},Re=({children:e,align:t="center",className:r="",style:n,fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c,...i})=>{let u=S({fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c}),m=Object.keys(u).length>0?{...n,...u}:n;return jsx("h2",{className:`text-3xl md:text-4xl font-bold ${y[t]} ${r}`,style:m,...i,children:e})},ve=({children:e,align:t="center",className:r="",style:n,fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c,...i})=>{let u=S({fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c}),m=Object.keys(u).length>0?{...n,...u}:n;return jsx("h3",{className:`text-2xl md:text-3xl font-semibold ${y[t]} ${r}`,style:m,...i,children:e})},Ie=({children:e,align:t="center",className:r="",style:n,fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c,...i})=>{let u=S({fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c}),m=Object.keys(u).length>0?{...n,...u}:n;return jsx("h4",{className:`text-xl md:text-2xl font-semibold ${y[t]} ${r}`,style:m,...i,children:e})},ke=({children:e,href:t="#",className:r="",...n})=>{let o=t.startsWith("http://")||t.startsWith("https://");return jsx("a",{href:t,className:`text-primary hover:underline ${r}`,...o?{target:"_blank",rel:"noopener noreferrer"}:{},...n,children:e})},Ce=({className:e="",alt:t="",...r})=>jsx("img",{className:`max-w-full h-auto ${e}`,alt:t,...r}),De=({name:e="star",size:t=24,className:r=""})=>jsx(l,{name:e,size:t,className:r}),Ue=({children:e,className:t="",...r})=>jsx("section",{className:`py-10 ${t}`,...r,children:e}),we=({className:e="",...t})=>jsx("hr",{className:`border-border ${e}`,...t}),Te=({children:e,sticky:t=true,transparent:r=false,blur:n=true,overlay:o=false,className:s="",...a})=>jsx("header",{className:e$1("w-full px-4 py-3 z-50",o?"absolute top-0 left-0 right-0":t&&"sticky top-0",r?"bg-transparent":"bg-background/80",n&&!r&&"backdrop-blur-md",!r&&"border-b border-border",s),...a,children:jsx("div",{className:"max-w-7xl mx-auto",children:e})}),Pe=({defaultChecked:e=false,onChange:t,...r})=>{let[n,o]=useState(e);return jsx(b$4,{...r,checked:n,onChange:s=>{o(s.target.checked),t==null||t(s);}})},He=({defaultChecked:e=false,onChange:t,...r})=>{let[n,o]=useState(e);return jsx(d$2,{...r,checked:n,onChange:s=>{o(s.target.checked),t==null||t(s);}})},Ne=({defaultValue:e="",onChange:t,...r})=>{let[n,o]=useState(e);return jsx(b$5,{...r,value:n,onChange:s=>{o(s.target.value),t==null||t(s);}})},$e=({defaultValue:e="",onChange:t,resize:r="vertical",...n})=>{let[o,s]=useState(e);return jsx(a$7,{...n,resize:r,value:o,onChange:a=>{s(a.target.value),t==null||t(a);}})},Fe=({items:e=[],type:t="single",collapsible:r=true,defaultValue:n,className:o=""})=>jsx(a$8,{type:t,collapsible:r,defaultValue:n,className:o,children:e.map((s,a)=>{let c=s.value||`item-${a}`;return jsxs(b$6,{value:c,children:[jsx(c$3,{children:s.title}),jsx(d$3,{children:s.content})]},c)})}),Me=({tabs:e=[],defaultValue:t,variant:r="default",className:n=""})=>{var s;let o=((s=e[0])==null?void 0:s.value)||"tab-0";return jsxs(f$1,{defaultValue:t||o,variant:r,className:n,children:[jsx(g,{children:e.map((a,c)=>{let i=a.value||`tab-${c}`;return jsx(h,{value:i,children:a.label},i)})}),e.map((a,c)=>{let i=a.value||`tab-${c}`;return jsx(e$2,{value:i,children:a.content},i)})]})},R={Box:fe,Spacer:ye,Flex:Se,Grid:be,Section:Ue,Container:a$6,Divider:we,Text:he,H1:xe,H2:Re,H3:ve,H4:Ie,Link:ke,Image:Ce,Icon:De,Button:d$1,Badge:a$5,Avatar:a$4,AvatarImage:b$3,AvatarFallback:c$2,Input:Ne,Textarea:$e,Label:c$1,Checkbox:Pe,Switch:He,Skeleton:a$3,Progress:b$2,Card:a$2,CardHeader:b$1,CardTitle:c,CardDescription:d,CardContent:e,CardFooter:f,Alert:a$1,Header:Te,HeroSection:b,ScrollProgress:a,Accordion:Fe,Tabs:Me};function Le(e){return {...R,...e}}function Ae(e,t){return t in e}var le=createContext(null);function ue(){let e=useContext(le);if(!e)throw new Error("useSDUI must be used within SDUIRenderer");return e}function v(e,t){return t.split(".").reduce((r,n)=>{if(r&&typeof r=="object"&&n in r)return r[n]},e)}function Ve(e,t,r){let n=t.split("."),o={...e},s=o;for(let a=0;a<n.length-1;a++){let c=n[a];s[c]={...s[c]||{}},s=s[c];}return s[n[n.length-1]]=r,o}function ze(e,t){let r=v(t,e.path);switch(e.operator){case "eq":return r===e.value;case "neq":return r!==e.value;case "gt":return typeof r=="number"&&r>e.value;case "lt":return typeof r=="number"&&r<e.value;case "gte":return typeof r=="number"&&r>=e.value;case "lte":return typeof r=="number"&&r<=e.value;case "exists":return r!=null;case "notExists":return r==null;default:return true}}function C(e,t){let r={};for(let[n,o]of Object.entries(e))if(typeof o=="string"){let s=o.match(/^\{\{\s*(.+?)\s*\}\}$/);s?r[n]=v(t,s[1]):r[n]=o.replace(/\{\{\s*(.+?)\s*\}\}/g,(a,c)=>{let i=v(t,c);return i!==void 0?String(i):""});}else Array.isArray(o)?r[n]=o.map(s=>typeof s=="object"&&s!==null?C(s,t):s):typeof o=="object"&&o!==null?r[n]=C(o,t):r[n]=o;return r}function me({node:e,registry:t}){let{data:r,handleAction:n}=ue();if(e.when&&!ze(e.when,r))return null;let o=t[e.type];if(!o)return console.warn(`[SDUI] Unknown component type: ${e.type}`),jsxs("div",{className:"p-4 border border-destructive/50 bg-destructive/10 rounded text-sm text-destructive",children:["Unknown component: ",e.type]});let s=e.props?C(e.props,r):{},a={};e.on&&(e.on.click&&(a.onClick=()=>n(e.on.click)),e.on.submit&&(a.onSubmit=m=>{m.preventDefault(),n(e.on.submit);}));let c=null;return e.children&&(typeof e.children=="string"?c=e.children.replace(/\{\{\s*(.+?)\s*\}\}/g,(m,d)=>{let g=v(r,d);return g!==void 0?String(g):""}):Array.isArray(e.children)&&(c=e.children.map((m,d)=>jsx(me,{node:m,registry:t},m.key||`child-${d}`)))),["Divider","Input","Textarea","Checkbox","Switch","Progress","Skeleton","Image","ScrollProgress"].includes(e.type)||c===null?jsx(o,{...s,...a}):jsx(o,{...s,...a,children:c})}function de({schema:e,components:t,data:r={},onAction:n,onNavigate:o}){let s="root"in e,a=s?e.root:e,c=s?e.data:{},[i,u]=useState({...c,...r}),m=useMemo(()=>({...R,...t}),[t]),d=useCallback((p,b)=>{u(h=>Ve(h,p,b));},[]),g=useCallback(p=>{o?o(p):typeof window!="undefined"&&(window.location.href=p);},[o]),D=useCallback(p=>{var b,h,U;switch(p.type){case "navigate":g((b=p.payload)==null?void 0:b.path);break;case "setState":(h=p.payload)!=null&&h.path&&((U=p.payload)==null?void 0:U.value)!==void 0&&d(p.payload.path,p.payload.value);break;case "api":n==null||n(p);break;case "custom":n==null||n(p);break;default:n==null||n(p);}},[g,d,n]),ge=useMemo(()=>({data:i,setData:d,handleAction:D,navigate:g}),[i,d,D,g]);return jsx(le.Provider,{value:ge,children:jsx(me,{node:a,registry:m})})}function We({json:e,...t}){try{let r=JSON.parse(e);return jsx(de,{schema:r,...t})}catch(r){return jsxs("div",{className:"p-4 border border-destructive bg-destructive/10 rounded",children:[jsx("p",{className:"font-semibold text-destructive",children:"SDUI Parse Error"}),jsx("pre",{className:"text-sm mt-2 text-destructive/80",children:r.message})]})}}
2
+ import {a as a$8,b as b$6,c as c$3,d as d$3,f as f$1,g,h,e as e$2}from'./chunk-XV3Y7QVU.mjs';import {b as b$2,a as a$6}from'./chunk-RPUS7G7Q.mjs';import {a,b}from'./chunk-GLZKT7JN.mjs';import {c as c$2,b as b$3,a as a$4}from'./chunk-IN7RWQCJ.mjs';import {a as a$3}from'./chunk-N7M6RIN4.mjs';import {f,e,d,c,b as b$1,a as a$2}from'./chunk-BXX2TZUB.mjs';import {a as a$5}from'./chunk-IFSEJVOR.mjs';import {b as b$4,a as a$7}from'./chunk-UWHCM3S6.mjs';import {c as c$1,d as d$2,b as b$5}from'./chunk-SGEP3CQE.mjs';import {d as d$1}from'./chunk-FFH4ZFKS.mjs';import {l}from'./chunk-HN5LSP6L.mjs';import {a as a$1}from'./chunk-C4OACMTB.mjs';import {e as e$1}from'./chunk-UUHAXGMO.mjs';import {createContext,useState,useContext,useMemo,useCallback}from'react';import {jsx,jsxs}from'react/jsx-runtime';var fe=({children:e,justify:t,align:r,className:n="",style:o,backgroundColor:s,padding:a,margin:c,borderRadius:i,border:u,...m})=>{let d={...o,...s&&{backgroundColor:s},...a!==void 0&&{padding:typeof a=="number"?`${a}px`:a},...c!==void 0&&{margin:typeof c=="number"?`${c}px`:c},...i!==void 0&&{borderRadius:typeof i=="number"?`${i}px`:i},...u&&{border:u}};return jsx("div",{className:e$1((t||r)&&"flex",t&&oe[t],r&&ae[r],n),style:Object.keys(d).length>0?d:void 0,...m,children:e})},ye=({size:e=16,className:t=""})=>jsx("div",{className:t,style:{width:e,height:e,flexShrink:0}}),oe={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between"},ae={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},Se=({children:e,direction:t="row",gap:r=0,justify:n="start",align:o="stretch",className:s="",style:a,backgroundColor:c,padding:i,...u})=>{let m={gap:`${r*4}px`,...a,...c&&{backgroundColor:c},...i!==void 0&&{padding:typeof i=="number"?`${i}px`:i}};return jsx("div",{className:`flex ${t==="column"?"flex-col":"flex-row"} ${oe[n]} ${ae[o]} ${s}`,style:m,...u,children:e})},be=({children:e,cols:t=1,gap:r=4,className:n="",style:o,backgroundColor:s,padding:a,...c})=>{let i={gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${r*4}px`,...o,...s&&{backgroundColor:s},...a!==void 0&&{padding:typeof a=="number"?`${a}px`:a}};return jsx("div",{className:`grid ${n}`,style:i,...c,children:e})},y={left:"text-left",center:"text-center",right:"text-right"};function S(e){let t={};return e.fontSize&&(t.fontSize=e.fontSize),e.lineHeight&&(t.lineHeight=e.lineHeight),e.fontWeight&&(t.fontWeight=e.fontWeight),e.letterSpacing&&(t.letterSpacing=e.letterSpacing),t}var he=({children:e,variant:t="body",align:r="center",className:n="",style:o,fontSize:s,lineHeight:a,fontWeight:c,letterSpacing:i,...u})=>{let m={body:"text-foreground",muted:"text-muted-foreground text-sm",lead:"text-xl text-muted-foreground"},d=S({fontSize:s,lineHeight:a,fontWeight:c,letterSpacing:i}),g=Object.keys(d).length>0?{...o,...d}:o;return jsx("p",{className:`${m[t]} ${y[r]} ${n}`,style:g,...u,children:e})},xe=({children:e,align:t="center",className:r="",style:n,fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c,...i})=>{let u=S({fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c}),m=Object.keys(u).length>0?{...n,...u}:n;return jsx("h1",{className:`text-4xl md:text-5xl font-bold ${y[t]} ${r}`,style:m,...i,children:e})},Re=({children:e,align:t="center",className:r="",style:n,fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c,...i})=>{let u=S({fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c}),m=Object.keys(u).length>0?{...n,...u}:n;return jsx("h2",{className:`text-3xl md:text-4xl font-bold ${y[t]} ${r}`,style:m,...i,children:e})},ve=({children:e,align:t="center",className:r="",style:n,fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c,...i})=>{let u=S({fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c}),m=Object.keys(u).length>0?{...n,...u}:n;return jsx("h3",{className:`text-2xl md:text-3xl font-semibold ${y[t]} ${r}`,style:m,...i,children:e})},Ie=({children:e,align:t="center",className:r="",style:n,fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c,...i})=>{let u=S({fontSize:o,lineHeight:s,fontWeight:a,letterSpacing:c}),m=Object.keys(u).length>0?{...n,...u}:n;return jsx("h4",{className:`text-xl md:text-2xl font-semibold ${y[t]} ${r}`,style:m,...i,children:e})},ke=({children:e,href:t="#",className:r="",...n})=>{let o=t.startsWith("http://")||t.startsWith("https://");return jsx("a",{href:t,className:`text-primary hover:underline ${r}`,...o?{target:"_blank",rel:"noopener noreferrer"}:{},...n,children:e})},Ce=({className:e="",alt:t="",...r})=>jsx("img",{className:`max-w-full h-auto ${e}`,alt:t,...r}),De=({name:e="star",size:t=24,className:r=""})=>jsx(l,{name:e,size:t,className:r}),Ue=({children:e,className:t="",...r})=>jsx("section",{className:`py-10 ${t}`,...r,children:e}),we=({className:e="",...t})=>jsx("hr",{className:`border-border ${e}`,...t}),Te=({children:e,sticky:t=true,transparent:r=false,blur:n=true,overlay:o=false,className:s="",...a})=>jsx("header",{className:e$1("w-full px-4 py-3 z-50",o?"absolute top-0 left-0 right-0":t&&"sticky top-0",r?"bg-transparent":"bg-background/80",n&&!r&&"backdrop-blur-md",!r&&"border-b border-border",s),...a,children:jsx("div",{className:"max-w-7xl mx-auto",children:e})}),Pe=({defaultChecked:e=false,onChange:t,...r})=>{let[n,o]=useState(e);return jsx(b$4,{...r,checked:n,onChange:s=>{o(s.target.checked),t==null||t(s);}})},He=({defaultChecked:e=false,onChange:t,...r})=>{let[n,o]=useState(e);return jsx(d$2,{...r,checked:n,onChange:s=>{o(s.target.checked),t==null||t(s);}})},Ne=({defaultValue:e="",onChange:t,...r})=>{let[n,o]=useState(e);return jsx(b$5,{...r,value:n,onChange:s=>{o(s.target.value),t==null||t(s);}})},$e=({defaultValue:e="",onChange:t,resize:r="vertical",...n})=>{let[o,s]=useState(e);return jsx(a$7,{...n,resize:r,value:o,onChange:a=>{s(a.target.value),t==null||t(a);}})},Fe=({items:e=[],type:t="single",collapsible:r=true,defaultValue:n,className:o=""})=>jsx(a$8,{type:t,collapsible:r,defaultValue:n,className:o,children:e.map((s,a)=>{let c=s.value||`item-${a}`;return jsxs(b$6,{value:c,children:[jsx(c$3,{children:s.title}),jsx(d$3,{children:s.content})]},c)})}),Me=({tabs:e=[],defaultValue:t,variant:r="default",className:n=""})=>{var s;let o=((s=e[0])==null?void 0:s.value)||"tab-0";return jsxs(f$1,{defaultValue:t||o,variant:r,className:n,children:[jsx(g,{children:e.map((a,c)=>{let i=a.value||`tab-${c}`;return jsx(h,{value:i,children:a.label},i)})}),e.map((a,c)=>{let i=a.value||`tab-${c}`;return jsx(e$2,{value:i,children:a.content},i)})]})},R={Box:fe,Spacer:ye,Flex:Se,Grid:be,Section:Ue,Container:a$6,Divider:we,Text:he,H1:xe,H2:Re,H3:ve,H4:Ie,Link:ke,Image:Ce,Icon:De,Button:d$1,Badge:a$5,Avatar:a$4,AvatarImage:b$3,AvatarFallback:c$2,Input:Ne,Textarea:$e,Label:c$1,Checkbox:Pe,Switch:He,Skeleton:a$3,Progress:b$2,Card:a$2,CardHeader:b$1,CardTitle:c,CardDescription:d,CardContent:e,CardFooter:f,Alert:a$1,Header:Te,HeroSection:b,ScrollProgress:a,Accordion:Fe,Tabs:Me};function Le(e){return {...R,...e}}function Ae(e,t){return t in e}var le=createContext(null);function ue(){let e=useContext(le);if(!e)throw new Error("useSDUI must be used within SDUIRenderer");return e}function v(e,t){return t.split(".").reduce((r,n)=>{if(r&&typeof r=="object"&&n in r)return r[n]},e)}function Ve(e,t,r){let n=t.split("."),o={...e},s=o;for(let a=0;a<n.length-1;a++){let c=n[a];s[c]={...s[c]||{}},s=s[c];}return s[n[n.length-1]]=r,o}function ze(e,t){let r=v(t,e.path);switch(e.operator){case "eq":return r===e.value;case "neq":return r!==e.value;case "gt":return typeof r=="number"&&r>e.value;case "lt":return typeof r=="number"&&r<e.value;case "gte":return typeof r=="number"&&r>=e.value;case "lte":return typeof r=="number"&&r<=e.value;case "exists":return r!=null;case "notExists":return r==null;default:return true}}function C(e,t){let r={};for(let[n,o]of Object.entries(e))if(typeof o=="string"){let s=o.match(/^\{\{\s*(.+?)\s*\}\}$/);s?r[n]=v(t,s[1]):r[n]=o.replace(/\{\{\s*(.+?)\s*\}\}/g,(a,c)=>{let i=v(t,c);return i!==void 0?String(i):""});}else Array.isArray(o)?r[n]=o.map(s=>typeof s=="object"&&s!==null?C(s,t):s):typeof o=="object"&&o!==null?r[n]=C(o,t):r[n]=o;return r}function me({node:e,registry:t}){let{data:r,handleAction:n}=ue();if(e.when&&!ze(e.when,r))return null;let o=t[e.type];if(!o)return console.warn(`[SDUI] Unknown component type: ${e.type}`),jsxs("div",{className:"p-4 border border-destructive/50 bg-destructive/10 rounded text-sm text-destructive",children:["Unknown component: ",e.type]});let s=e.props?C(e.props,r):{},a={};e.on&&(e.on.click&&(a.onClick=()=>n(e.on.click)),e.on.submit&&(a.onSubmit=m=>{m.preventDefault(),n(e.on.submit);}));let c=null;return e.children&&(typeof e.children=="string"?c=e.children.replace(/\{\{\s*(.+?)\s*\}\}/g,(m,d)=>{let g=v(r,d);return g!==void 0?String(g):""}):Array.isArray(e.children)&&(c=e.children.map((m,d)=>jsx(me,{node:m,registry:t},m.key||`child-${d}`)))),["Divider","Input","Textarea","Checkbox","Switch","Progress","Skeleton","Image","ScrollProgress"].includes(e.type)||c===null?jsx(o,{...s,...a}):jsx(o,{...s,...a,children:c})}function de({schema:e,components:t,data:r={},onAction:n,onNavigate:o}){let s="root"in e,a=s?e.root:e,c=s?e.data:{},[i,u]=useState({...c,...r}),m=useMemo(()=>({...R,...t}),[t]),d=useCallback((p,b)=>{u(h=>Ve(h,p,b));},[]),g=useCallback(p=>{o?o(p):typeof window!="undefined"&&(window.location.href=p);},[o]),D=useCallback(p=>{var b,h,U;switch(p.type){case "navigate":g((b=p.payload)==null?void 0:b.path);break;case "setState":(h=p.payload)!=null&&h.path&&((U=p.payload)==null?void 0:U.value)!==void 0&&d(p.payload.path,p.payload.value);break;case "api":n==null||n(p);break;case "custom":n==null||n(p);break;default:n==null||n(p);}},[g,d,n]),ge=useMemo(()=>({data:i,setData:d,handleAction:D,navigate:g}),[i,d,D,g]);return jsx(le.Provider,{value:ge,children:jsx(me,{node:a,registry:m})})}function We({json:e,...t}){try{let r=JSON.parse(e);return jsx(de,{schema:r,...t})}catch(r){return jsxs("div",{className:"p-4 border border-destructive bg-destructive/10 rounded",children:[jsx("p",{className:"font-semibold text-destructive",children:"SDUI Parse Error"}),jsx("pre",{className:"text-sm mt-2 text-destructive/80",children:r.message})]})}}
3
3
  export{We as SDUIFromJSON,de as SDUIRenderer,R as defaultRegistry,Le as extendRegistry,Ae as hasComponent,ue as useSDUI};//# sourceMappingURL=sdui.mjs.map
4
4
  //# sourceMappingURL=sdui.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hua-labs/ui",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "HUA Labs - Modern React UI Component Library - Beautiful, accessible, and customizable components for React applications",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -17,17 +17,17 @@
17
17
  "default": "./dist/advanced.mjs"
18
18
  },
19
19
  "./advanced/dashboard": {
20
- "types": "./dist/advanced-dashboard.d.ts",
20
+ "types": "./dist/advanced/dashboard.d.ts",
21
21
  "import": "./dist/advanced-dashboard.mjs",
22
22
  "default": "./dist/advanced-dashboard.mjs"
23
23
  },
24
24
  "./advanced/motion": {
25
- "types": "./dist/advanced-motion.d.ts",
25
+ "types": "./dist/advanced/motion.d.ts",
26
26
  "import": "./dist/advanced-motion.mjs",
27
27
  "default": "./dist/advanced-motion.mjs"
28
28
  },
29
29
  "./advanced/emotion": {
30
- "types": "./dist/advanced-emotion.d.ts",
30
+ "types": "./dist/components/advanced/emotion/index.d.ts",
31
31
  "import": "./dist/advanced-emotion.mjs",
32
32
  "default": "./dist/advanced-emotion.mjs"
33
33
  },
@@ -70,6 +70,7 @@
70
70
  "./styles/toast.css": "./src/styles/toast.css",
71
71
  "./styles/codeblock.css": "./src/styles/codeblock.css",
72
72
  "./styles/recommended-theme.css": "./src/styles/recommended-theme.css",
73
+ "./styles/component-vars.css": "./src/styles/component-vars.css",
73
74
  "./icons": {
74
75
  "types": "./src/components/icons/index.ts",
75
76
  "import": "./src/components/icons/index.ts",
@@ -84,6 +85,11 @@
84
85
  "types": "./dist/iconsax.d.ts",
85
86
  "import": "./dist/iconsax.mjs",
86
87
  "default": "./dist/iconsax.mjs"
88
+ },
89
+ "./iconsax-extended": {
90
+ "types": "./dist/iconsax-extended.d.ts",
91
+ "import": "./dist/iconsax-extended.mjs",
92
+ "default": "./dist/iconsax-extended.mjs"
87
93
  }
88
94
  },
89
95
  "files": [
@@ -101,13 +107,14 @@
101
107
  },
102
108
  "devDependencies": {
103
109
  "@eslint/js": "^9.39.2",
110
+ "@testing-library/jest-dom": "^6.9.1",
104
111
  "@testing-library/react": "^16.3.2",
105
112
  "@testing-library/user-event": "^14.6.1",
106
113
  "@types/node": "^25.2.0",
107
114
  "@types/react": "^19.2.10",
108
115
  "@types/react-dom": "^19.2.3",
109
116
  "@vitejs/plugin-react": "^5.1.2",
110
- "eslint": "^9.39.2",
117
+ "eslint": "^10.0.0",
111
118
  "eslint-plugin-react-hooks": "^5.2.0",
112
119
  "globals": "^16.3.0",
113
120
  "jsdom": "^27.4.0",
@@ -125,6 +132,7 @@
125
132
  "@dnd-kit/core": "^6.3.1",
126
133
  "@dnd-kit/sortable": "^10.0.0",
127
134
  "@dnd-kit/utilities": "^3.2.2",
135
+ "lucide-react": ">=0.400.0",
128
136
  "react": ">=19.0.0",
129
137
  "react-dom": ">=19.0.0"
130
138
  },
@@ -137,6 +145,9 @@
137
145
  },
138
146
  "@dnd-kit/utilities": {
139
147
  "optional": true
148
+ },
149
+ "lucide-react": {
150
+ "optional": true
140
151
  }
141
152
  },
142
153
  "keywords": [
@@ -164,10 +175,15 @@
164
175
  },
165
176
  "homepage": "https://github.com/HUA-Labs/HUA-Labs-public#readme",
166
177
  "sideEffects": [
167
- "**/*.css",
178
+ "./src/styles/*.css",
168
179
  "./dist/iconsax.mjs",
169
- "./dist/iconsax.js"
180
+ "./dist/iconsax.js",
181
+ "./dist/iconsax-extended.mjs",
182
+ "./dist/iconsax-extended.js"
170
183
  ],
184
+ "engines": {
185
+ "node": ">=20.0.0"
186
+ },
171
187
  "publishConfig": {
172
188
  "access": "public",
173
189
  "provenance": true
@@ -0,0 +1,195 @@
1
+ /**
2
+ * Iconsax Essential Icons (Line variant)
3
+ * PROJECT_ICONS에서 iconsax 매핑된 아이콘만 포함 (57개)
4
+ * Auto-generated - do not edit manually
5
+ */
6
+
7
+ import type { ComponentType, SVGProps } from 'react'
8
+
9
+ export type IconsaxIcon = ComponentType<SVGProps<SVGSVGElement>>
10
+
11
+ // Essential icon imports
12
+ import Add from './Add'
13
+ import ArrowDown from './ArrowDown'
14
+ import ArrowDown2 from './ArrowDown2'
15
+ import ArrowLeft from './ArrowLeft'
16
+ import ArrowLeft2 from './ArrowLeft2'
17
+ import ArrowRight from './ArrowRight'
18
+ import ArrowRight2 from './ArrowRight2'
19
+ import ArrowUp from './ArrowUp'
20
+ import ArrowUp2 from './ArrowUp2'
21
+ import Book from './Book'
22
+ import Camera from './Camera'
23
+ import Check from './Check'
24
+ import Chrome from './Chrome'
25
+ import CloseCircle from './CloseCircle'
26
+ import Code from './Code'
27
+ import Computing from './Computing'
28
+ import Danger from './Danger'
29
+ import EmojiHappy from './EmojiHappy'
30
+ import EmojiNormal from './EmojiNormal'
31
+ import EmojiSad from './EmojiSad'
32
+ import Eye from './Eye'
33
+ import EyeSlash from './EyeSlash'
34
+ import Flag from './Flag'
35
+ import Folder from './Folder'
36
+ import Global from './Global'
37
+ import Heart from './Heart'
38
+ import Home2 from './Home2'
39
+ import Image from './Image'
40
+ import InfoCircle from './InfoCircle'
41
+ import Link from './Link'
42
+ import Lock from './Lock'
43
+ import Login from './Login'
44
+ import Logout from './Logout'
45
+ import Menu from './Menu'
46
+ import Minus from './Minus'
47
+ import Monitor from './Monitor'
48
+ import Moon from './Moon'
49
+ import Pause from './Pause'
50
+ import People from './People'
51
+ import Play from './Play'
52
+ import QuoteUp from './QuoteUp'
53
+ import Refresh from './Refresh'
54
+ import SearchNormal from './SearchNormal'
55
+ import Shield from './Shield'
56
+ import Star from './Star'
57
+ import Sticker from './Sticker'
58
+ import Sun from './Sun'
59
+ import TickCircle from './TickCircle'
60
+ import Ticket from './Ticket'
61
+ import TickSquare from './TickSquare'
62
+ import Trash from './Trash'
63
+ import Unlock from './Unlock'
64
+ import User from './User'
65
+ import UserAdd from './UserAdd'
66
+ import Video from './Video'
67
+ import Warning2 from './Warning2'
68
+ import Wifi from './Wifi'
69
+
70
+ // Essential icon map (57 icons)
71
+ export const ESSENTIAL_ICONSAX_ICONS: Record<string, IconsaxIcon> = {
72
+ 'Add': Add,
73
+ 'ArrowDown': ArrowDown,
74
+ 'ArrowDown2': ArrowDown2,
75
+ 'ArrowLeft': ArrowLeft,
76
+ 'ArrowLeft2': ArrowLeft2,
77
+ 'ArrowRight': ArrowRight,
78
+ 'ArrowRight2': ArrowRight2,
79
+ 'ArrowUp': ArrowUp,
80
+ 'ArrowUp2': ArrowUp2,
81
+ 'Book': Book,
82
+ 'Camera': Camera,
83
+ 'Check': Check,
84
+ 'Chrome': Chrome,
85
+ 'CloseCircle': CloseCircle,
86
+ 'Code': Code,
87
+ 'Computing': Computing,
88
+ 'Danger': Danger,
89
+ 'EmojiHappy': EmojiHappy,
90
+ 'EmojiNormal': EmojiNormal,
91
+ 'EmojiSad': EmojiSad,
92
+ 'Eye': Eye,
93
+ 'EyeSlash': EyeSlash,
94
+ 'Flag': Flag,
95
+ 'Folder': Folder,
96
+ 'Global': Global,
97
+ 'Heart': Heart,
98
+ 'Home2': Home2,
99
+ 'Image': Image,
100
+ 'InfoCircle': InfoCircle,
101
+ 'Link': Link,
102
+ 'Lock': Lock,
103
+ 'Login': Login,
104
+ 'Logout': Logout,
105
+ 'Menu': Menu,
106
+ 'Minus': Minus,
107
+ 'Monitor': Monitor,
108
+ 'Moon': Moon,
109
+ 'Pause': Pause,
110
+ 'People': People,
111
+ 'Play': Play,
112
+ 'QuoteUp': QuoteUp,
113
+ 'Refresh': Refresh,
114
+ 'SearchNormal': SearchNormal,
115
+ 'Shield': Shield,
116
+ 'Star': Star,
117
+ 'Sticker': Sticker,
118
+ 'Sun': Sun,
119
+ 'TickCircle': TickCircle,
120
+ 'Ticket': Ticket,
121
+ 'TickSquare': TickSquare,
122
+ 'Trash': Trash,
123
+ 'Unlock': Unlock,
124
+ 'User': User,
125
+ 'UserAdd': UserAdd,
126
+ 'Video': Video,
127
+ 'Warning2': Warning2,
128
+ 'Wifi': Wifi,
129
+ }
130
+
131
+ // Get essential icon by name
132
+ export function getEssentialIconsaxIcon(name: string): IconsaxIcon | null {
133
+ return ESSENTIAL_ICONSAX_ICONS[name] || null
134
+ }
135
+
136
+ // Named exports
137
+ export {
138
+ Add,
139
+ ArrowDown,
140
+ ArrowDown2,
141
+ ArrowLeft,
142
+ ArrowLeft2,
143
+ ArrowRight,
144
+ ArrowRight2,
145
+ ArrowUp,
146
+ ArrowUp2,
147
+ Book,
148
+ Camera,
149
+ Check,
150
+ Chrome,
151
+ CloseCircle,
152
+ Code,
153
+ Computing,
154
+ Danger,
155
+ EmojiHappy,
156
+ EmojiNormal,
157
+ EmojiSad,
158
+ Eye,
159
+ EyeSlash,
160
+ Flag,
161
+ Folder,
162
+ Global,
163
+ Heart,
164
+ Home2,
165
+ Image,
166
+ InfoCircle,
167
+ Link,
168
+ Lock,
169
+ Login,
170
+ Logout,
171
+ Menu,
172
+ Minus,
173
+ Monitor,
174
+ Moon,
175
+ Pause,
176
+ People,
177
+ Play,
178
+ QuoteUp,
179
+ Refresh,
180
+ SearchNormal,
181
+ Shield,
182
+ Star,
183
+ Sticker,
184
+ Sun,
185
+ TickCircle,
186
+ Ticket,
187
+ TickSquare,
188
+ Trash,
189
+ Unlock,
190
+ User,
191
+ UserAdd,
192
+ Video,
193
+ Warning2,
194
+ Wifi,
195
+ }
@@ -0,0 +1,195 @@
1
+ /**
2
+ * Iconsax Essential Bold Icons
3
+ * PROJECT_ICONS에서 iconsax 매핑된 아이콘만 포함 (57개)
4
+ * Auto-generated - do not edit manually
5
+ */
6
+
7
+ import type { ComponentType, SVGProps } from 'react'
8
+
9
+ export type IconsaxBoldIcon = ComponentType<SVGProps<SVGSVGElement>>
10
+
11
+ // Essential bold icon imports
12
+ import { Add } from './Add'
13
+ import { ArrowDown } from './ArrowDown'
14
+ import { ArrowDown2 } from './ArrowDown2'
15
+ import { ArrowLeft } from './ArrowLeft'
16
+ import { ArrowLeft2 } from './ArrowLeft2'
17
+ import { ArrowRight } from './ArrowRight'
18
+ import { ArrowRight2 } from './ArrowRight2'
19
+ import { ArrowUp } from './ArrowUp'
20
+ import { ArrowUp2 } from './ArrowUp2'
21
+ import { Book } from './Book'
22
+ import { Camera } from './Camera'
23
+ import { Check } from './Check'
24
+ import { Chrome } from './Chrome'
25
+ import { CloseCircle } from './CloseCircle'
26
+ import { Code } from './Code'
27
+ import { Computing } from './Computing'
28
+ import { Danger } from './Danger'
29
+ import { EmojiHappy } from './EmojiHappy'
30
+ import { EmojiNormal } from './EmojiNormal'
31
+ import { EmojiSad } from './EmojiSad'
32
+ import { Eye } from './Eye'
33
+ import { EyeSlash } from './EyeSlash'
34
+ import { Flag } from './Flag'
35
+ import { Folder } from './Folder'
36
+ import { Global } from './Global'
37
+ import { Heart } from './Heart'
38
+ import { Home2 } from './Home2'
39
+ import { Image } from './Image'
40
+ import { InfoCircle } from './InfoCircle'
41
+ import { Link } from './Link'
42
+ import { Lock } from './Lock'
43
+ import { Login } from './Login'
44
+ import { Logout } from './Logout'
45
+ import { Menu } from './Menu'
46
+ import { Minus } from './Minus'
47
+ import { Monitor } from './Monitor'
48
+ import { Moon } from './Moon'
49
+ import { Pause } from './Pause'
50
+ import { People } from './People'
51
+ import { Play } from './Play'
52
+ import { QuoteUp } from './QuoteUp'
53
+ import { Refresh } from './Refresh'
54
+ import { SearchNormal } from './SearchNormal'
55
+ import { Shield } from './Shield'
56
+ import { Star } from './Star'
57
+ import { Sticker } from './Sticker'
58
+ import { Sun } from './Sun'
59
+ import { TickCircle } from './TickCircle'
60
+ import { Ticket } from './Ticket'
61
+ import { TickSquare } from './TickSquare'
62
+ import { Trash } from './Trash'
63
+ import { Unlock } from './Unlock'
64
+ import { User } from './User'
65
+ import { UserAdd } from './UserAdd'
66
+ import { Video } from './Video'
67
+ import { Warning2 } from './Warning2'
68
+ import { Wifi } from './Wifi'
69
+
70
+ // Essential bold icon map (57 icons)
71
+ export const ESSENTIAL_ICONSAX_BOLD_ICONS: Record<string, IconsaxBoldIcon> = {
72
+ 'Add': Add,
73
+ 'ArrowDown': ArrowDown,
74
+ 'ArrowDown2': ArrowDown2,
75
+ 'ArrowLeft': ArrowLeft,
76
+ 'ArrowLeft2': ArrowLeft2,
77
+ 'ArrowRight': ArrowRight,
78
+ 'ArrowRight2': ArrowRight2,
79
+ 'ArrowUp': ArrowUp,
80
+ 'ArrowUp2': ArrowUp2,
81
+ 'Book': Book,
82
+ 'Camera': Camera,
83
+ 'Check': Check,
84
+ 'Chrome': Chrome,
85
+ 'CloseCircle': CloseCircle,
86
+ 'Code': Code,
87
+ 'Computing': Computing,
88
+ 'Danger': Danger,
89
+ 'EmojiHappy': EmojiHappy,
90
+ 'EmojiNormal': EmojiNormal,
91
+ 'EmojiSad': EmojiSad,
92
+ 'Eye': Eye,
93
+ 'EyeSlash': EyeSlash,
94
+ 'Flag': Flag,
95
+ 'Folder': Folder,
96
+ 'Global': Global,
97
+ 'Heart': Heart,
98
+ 'Home2': Home2,
99
+ 'Image': Image,
100
+ 'InfoCircle': InfoCircle,
101
+ 'Link': Link,
102
+ 'Lock': Lock,
103
+ 'Login': Login,
104
+ 'Logout': Logout,
105
+ 'Menu': Menu,
106
+ 'Minus': Minus,
107
+ 'Monitor': Monitor,
108
+ 'Moon': Moon,
109
+ 'Pause': Pause,
110
+ 'People': People,
111
+ 'Play': Play,
112
+ 'QuoteUp': QuoteUp,
113
+ 'Refresh': Refresh,
114
+ 'SearchNormal': SearchNormal,
115
+ 'Shield': Shield,
116
+ 'Star': Star,
117
+ 'Sticker': Sticker,
118
+ 'Sun': Sun,
119
+ 'TickCircle': TickCircle,
120
+ 'Ticket': Ticket,
121
+ 'TickSquare': TickSquare,
122
+ 'Trash': Trash,
123
+ 'Unlock': Unlock,
124
+ 'User': User,
125
+ 'UserAdd': UserAdd,
126
+ 'Video': Video,
127
+ 'Warning2': Warning2,
128
+ 'Wifi': Wifi,
129
+ }
130
+
131
+ // Get essential bold icon by name
132
+ export function getEssentialIconsaxBoldIcon(name: string): IconsaxBoldIcon | null {
133
+ return ESSENTIAL_ICONSAX_BOLD_ICONS[name] || null
134
+ }
135
+
136
+ // Named exports
137
+ export {
138
+ Add,
139
+ ArrowDown,
140
+ ArrowDown2,
141
+ ArrowLeft,
142
+ ArrowLeft2,
143
+ ArrowRight,
144
+ ArrowRight2,
145
+ ArrowUp,
146
+ ArrowUp2,
147
+ Book,
148
+ Camera,
149
+ Check,
150
+ Chrome,
151
+ CloseCircle,
152
+ Code,
153
+ Computing,
154
+ Danger,
155
+ EmojiHappy,
156
+ EmojiNormal,
157
+ EmojiSad,
158
+ Eye,
159
+ EyeSlash,
160
+ Flag,
161
+ Folder,
162
+ Global,
163
+ Heart,
164
+ Home2,
165
+ Image,
166
+ InfoCircle,
167
+ Link,
168
+ Lock,
169
+ Login,
170
+ Logout,
171
+ Menu,
172
+ Minus,
173
+ Monitor,
174
+ Moon,
175
+ Pause,
176
+ People,
177
+ Play,
178
+ QuoteUp,
179
+ Refresh,
180
+ SearchNormal,
181
+ Shield,
182
+ Star,
183
+ Sticker,
184
+ Sun,
185
+ TickCircle,
186
+ Ticket,
187
+ TickSquare,
188
+ Trash,
189
+ Unlock,
190
+ User,
191
+ UserAdd,
192
+ Video,
193
+ Warning2,
194
+ Wifi,
195
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 HUA Labs Team
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,3 +0,0 @@
1
- "use client";
2
- import {d,a}from'./chunk-UUHAXGMO.mjs';import {Minus,ListNumbers,List,Quotes,FileCode,Code,Link,TextHOne,TextStrikethrough,TextItalic,TextB,MaskHappy,Cpu,WifiSlash,WifiHigh,Clipboard,Ticket,FloppyDisk,DeviceMobile,Globe,Sparkle,Square,Flag,Brain,Lightbulb,Moon,Sun,Monitor,Share,Bookmark,Star,Heart,Bell,CalendarPlus,Calendar,Clock,Key,Wallet,Shield,LockOpen,Lock,SmileyMeh,SmileySad,Smiley,Camera,Video,Image,Phone,ChatCircle,Envelope,BookOpen,Book,Folder,File,FileText,Lightning,Database,Pulse,TrendUp,ChartBar,EyeSlash,Eye,SignOut,SignIn,UserPlus,Users,User,Question,Circle,Check,Info,WarningCircle,XCircle,CheckCircle,SpinnerGap,Copy,ArrowClockwise,Upload,Download,Plus,Trash,Pencil,CaretUp,CaretDown,CaretRight,CaretLeft,ArrowSquareOut,Gear,MagnifyingGlass,X,ArrowDown,ArrowUp,ArrowRight,ArrowLeft,House}from'@phosphor-icons/react/dist/ssr';import c,{createContext,useContext}from'react';import {jsx}from'react/jsx-runtime';var Z={home:House,arrowLeft:ArrowLeft,arrowRight:ArrowRight,arrowUp:ArrowUp,arrowDown:ArrowDown,menu:List,close:X,search:MagnifyingGlass,settings:Gear,externalLink:ArrowSquareOut,chevronLeft:CaretLeft,chevronRight:CaretRight,chevronDown:CaretDown,chevronUp:CaretUp,edit:Pencil,delete:Trash,add:Plus,remove:Minus,download:Download,upload:Upload,refresh:ArrowClockwise,save:FloppyDisk,copy:Copy,loader:SpinnerGap,success:CheckCircle,error:XCircle,alertCircle:WarningCircle,warning:WarningCircle,info:Info,check:Check,circle:Circle,helpCircle:Question,user:User,users:Users,userPlus:UserPlus,logIn:SignIn,logOut:SignOut,eye:Eye,eyeOff:EyeSlash,chart:ChartBar,barChart:ChartBar,trendingUp:TrendUp,activity:Pulse,database:Database,zap:Lightning,fileText:FileText,file:File,folder:Folder,book:Book,bookOpen:BookOpen,mail:Envelope,message:ChatCircle,phone:Phone,image:Image,video:Video,camera:Camera,smile:Smiley,frown:SmileySad,meh:SmileyMeh,lock:Lock,unlock:LockOpen,shield:Shield,wallet:Wallet,key:Key,clock:Clock,calendar:Calendar,calendarPlus:CalendarPlus,bell:Bell,heart:Heart,star:Star,bookmark:Bookmark,share:Share,monitor:Monitor,sun:Sun,moon:Moon,lightbulb:Lightbulb,brain:Brain,flag:Flag,square:Square,sparkle:Sparkle,sparkles:Sparkle,globe:Globe,smartphone:DeviceMobile,deviceMobile:DeviceMobile,floppyDisk:FloppyDisk,ticket:Ticket,clipboard:Clipboard,wifi:WifiHigh,wifiOff:WifiSlash,cpu:Cpu,mask:MaskHappy,bold:TextB,italic:TextItalic,strikethrough:TextStrikethrough,heading:TextHOne,link:Link,code:Code,fileCode:FileCode,quote:Quotes,list:List,listOrdered:ListNumbers,minus:Minus},Q={happy:"smile",sad:"frown",neutral:"meh",excited:"smile",angry:"frown",love:"heart",like:"heart",dislike:"frown"},$={loading:"loader",success:"success",error:"error",warning:"warning",info:"info",locked:"lock",unlocked:"unlock",visible:"eye",hidden:"eyeOff"},ur={navigation:["home","arrowLeft","arrowRight","arrowUp","arrowDown","menu","close","search","settings","externalLink","chevronLeft","chevronRight","chevronDown","chevronUp"],actions:["edit","delete","add","remove","download","upload","refresh","save","copy"],status:["loader","success","error","alertCircle","warning","info","check","circle"],user:["user","users","userPlus","logIn","logOut","eye","eyeOff"],data:["chart","barChart","trendingUp","activity","database","zap"],files:["fileText","file","folder","book"],communication:["mail","message","phone"],media:["image","video","camera"],emotions:["smile","frown","meh"],security:["lock","unlock","shield"],time:["clock","calendar"],ui:["bell","heart","star","bookmark","share"],theme:["monitor","sun","moon"]};var k={"arrow-left":"arrowLeft","arrow-right":"arrowRight","arrow-up":"arrowUp","arrow-down":"arrowDown","chevron-left":"chevronLeft","chevron-right":"chevronRight","chevron-up":"chevronUp","chevron-down":"chevronDown","external-link":"externalLink","more-horizontal":"moreHorizontal","more-vertical":"moreVertical","user-plus":"userPlus","log-in":"logIn","log-out":"logOut","check-circle":"checkCircle","check-square":"checkSquare","alert-circle":"alertCircle","eye-off":"eyeOff","file-text":"fileText","book-open":"bookOpen","bar-chart":"barChart","trending-up":"trendingUp","trending-down":"trendingDown","message-square":"messageSquare","calendar-plus":"calendarPlus","refresh-cw":"refreshCw","dollar-sign":"dollarSign","layout-dashboard":"layoutDashboard","device-mobile":"deviceMobile","floppy-disk":"floppyDisk",back:"arrowLeft",prev:"arrowLeft",previous:"arrowLeft",forward:"arrowRight",next:"arrowRight",close:"x",cancel:"x",remove:"delete",trash:"delete",plus:"add",new:"add",pencil:"edit",modify:"edit",store:"save",floppy:"save",magnify:"search",person:"user",account:"user",profile:"user",gear:"settings",config:"settings",preferences:"settings",house:"home",main:"home",done:"check",complete:"check",tick:"check",information:"info",help:"info",alert:"warning",caution:"warning",checkmark:"success",checkCircle:"success",fail:"error",cross:"error",xCircle:"error",spinner:"loader",loading:"loader",wait:"loader",reload:"refresh",update:"refresh",sync:"refresh",show:"eye",view:"eye",hide:"eyeOff",hidden:"eyeOff",secure:"lock",locked:"lock",unsecure:"unlock",unlocked:"unlock",get:"download",fetch:"download",post:"upload",send:"share",export:"share",duplicate:"copy",clone:"copy",email:"mail",envelope:"mail",chat:"message",comment:"message",talk:"message",date:"calendar",schedule:"calendar",time:"clock",watch:"clock",document:"fileText",doc:"fileText",text:"fileText",directory:"folder",dir:"folder",picture:"image",img:"image",movie:"video",film:"video",photo:"camera",capture:"camera",start:"play",run:"play",stop:"pause",halt:"pause",like:"heart",love:"heart",favorite:"star",saveBookmark:"bookmark",notification:"bell",notify:"bell",alarm:"bell",prefs:"settings",lookup:"search",dots:"moreHorizontal",moreMenu:"moreHorizontal",moreOptions:"moreVertical",external:"externalLink",outbound:"externalLink",open:"externalLink",url:"link",hyperlink:"link",graph:"barChart",stats:"barChart",analytics:"barChart",db:"database",storage:"database",pulse:"activity",monitor:"activity",up:"trendingUp",down:"trendingDown",lightning:"zap",bolt:"zap",flash:"zap",security:"shield",protect:"shield",password:"key",secret:"key",signin:"logIn",login:"logIn",enter:"logIn",signout:"logOut",logout:"logOut",exit:"logOut",people:"users",group:"users",team:"users",addUser:"userPlus",invite:"userPlus",read:"book",library:"book",reading:"bookOpen",openBook:"bookOpen",light:"sun",day:"sun",dark:"moon",night:"moon",screen:"monitor",display:"monitor",ai:"brain",intelligence:"brain",think:"brain",idea:"lightbulb",bulb:"lightbulb",inspiration:"lightbulb",magic:"sparkles",stars:"sparkles",glitter:"sparkles"};function fr(e){if(typeof e!="string")throw new TypeError("iconName must be a string");return k[e]||e}function mr(e){if(typeof e!="string")throw new TypeError("iconName must be a string");return Object.entries(k).filter(([o,r])=>r===e).map(([o])=>o)}var h={set:"lucide",weight:"regular",size:20,color:"currentColor",strokeWidth:1.25,iconsaxVariant:"line"},nr=e=>{switch(e){case "lucide":return 1.25;case "phosphor":return 1.25;case "iconsax":return 1.5;default:return 1.25}};var J=createContext(h);function sr({set:e=h.set,weight:o=h.weight,iconsaxVariant:r=h.iconsaxVariant,size:i=h.size,color:s=h.color,strokeWidth:P=h.strokeWidth,children:T}){let R={set:e,weight:o,iconsaxVariant:r,size:i,color:s,strokeWidth:P};return jsx(J.Provider,{value:R,children:T})}function E(){return useContext(J)}function K(e){return !e||!/[-_]/.test(e)&&/^[a-z]/.test(e)?e:/^[A-Z]+$/.test(e)?e.toLowerCase():/^[A-Z]/.test(e)&&!/[-_]/.test(e)?e.charAt(0).toLowerCase()+e.slice(1):e.split(/[-_]/).map((o,r)=>r===0?o.toLowerCase():o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")}var n=null,t=null,x=null;function W(){return x}var Y={home:{lucide:"Home",phosphor:"House",iconsax:"Home2"},"layout-dashboard":{lucide:"LayoutDashboard",phosphor:"SquaresFour"},folder:{lucide:"Folder",phosphor:"Folder",iconsax:"Folder"},"alert-circle":{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},alertCircle:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},columns:{lucide:"Columns",phosphor:"Columns"},users:{lucide:"Users",phosphor:"Users",iconsax:"People"},settings:{lucide:"Settings",phosphor:"Gear"},menu:{lucide:"Menu",phosphor:"List",iconsax:"Menu"},close:{lucide:"X",phosphor:"X",iconsax:"CloseCircle"},chevronLeft:{lucide:"ChevronLeft",phosphor:"CaretLeft",iconsax:"ArrowLeft2"},chevronRight:{lucide:"ChevronRight",phosphor:"CaretRight",iconsax:"ArrowRight2"},chevronDown:{lucide:"ChevronDown",phosphor:"CaretDown",iconsax:"ArrowDown2"},chevronUp:{lucide:"ChevronUp",phosphor:"CaretUp",iconsax:"ArrowUp2"},arrowLeft:{lucide:"ArrowLeft",phosphor:"ArrowLeft",iconsax:"ArrowLeft"},arrowRight:{lucide:"ArrowRight",phosphor:"ArrowRight",iconsax:"ArrowRight"},arrowUp:{lucide:"ArrowUp",phosphor:"ArrowUp",iconsax:"ArrowUp"},arrowDown:{lucide:"ArrowDown",phosphor:"ArrowDown",iconsax:"ArrowDown"},add:{lucide:"Plus",phosphor:"Plus",iconsax:"Add"},edit:{lucide:"Edit",phosphor:"Pencil"},pencil:{lucide:"Pencil",phosphor:"Pencil"},delete:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},trash:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},upload:{lucide:"Upload",phosphor:"Upload",iconsax:"Upload"},download:{lucide:"Download",phosphor:"Download",iconsax:"Download"},x:{lucide:"X",phosphor:"X"},check:{lucide:"Check",phosphor:"Check",iconsax:"Check"},search:{lucide:"Search",phosphor:"MagnifyingGlass",iconsax:"SearchNormal"},share:{lucide:"Share",phosphor:"Share"},copy:{lucide:"Copy",phosphor:"Copy"},save:{lucide:"Save",phosphor:"FloppyDisk"},loader:{lucide:"Loader2",phosphor:"Spinner"},loader2:{lucide:"Loader2",phosphor:"Spinner"},"check-circle":{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},checkCircle:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},success:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},error:{lucide:"XCircle",phosphor:"XCircle",iconsax:"CloseCircle"},warning:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Warning2"},info:{lucide:"Info",phosphor:"Info",iconsax:"InfoCircle"},refresh:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},refreshCw:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},bell:{lucide:"Bell",phosphor:"Bell",iconsax:"Bell"},heart:{lucide:"Heart",phosphor:"Heart",iconsax:"Heart"},star:{lucide:"Star",phosphor:"Star",iconsax:"Star"},bookmark:{lucide:"Bookmark",phosphor:"Bookmark"},user:{lucide:"User",phosphor:"User",iconsax:"User"},userPlus:{lucide:"UserPlus",phosphor:"UserPlus",iconsax:"UserAdd"},logIn:{lucide:"LogIn",phosphor:"SignIn",iconsax:"Login"},logOut:{lucide:"LogOut",phosphor:"SignOut",iconsax:"Logout"},chrome:{lucide:"Chrome",phosphor:"ChromeLogo",iconsax:"Chrome"},github:{lucide:"Github",phosphor:"GithubLogo"},message:{lucide:"MessageCircle",phosphor:"ChatCircle"},messageSquare:{lucide:"MessageSquare",phosphor:"ChatSquare"},"message-square":{lucide:"MessageSquare",phosphor:"ChatSquare"},inbox:{lucide:"Inbox",phosphor:"Inbox"},calendar:{lucide:"Calendar",phosphor:"Calendar"},calendarPlus:{lucide:"CalendarPlus",phosphor:"CalendarPlus"},checkSquare:{lucide:"CheckSquare",phosphor:"CheckSquare",iconsax:"TickSquare"},clock:{lucide:"Clock",phosphor:"Clock"},book:{lucide:"Book",phosphor:"Book",iconsax:"Book"},bookOpen:{lucide:"BookOpen",phosphor:"BookOpen",iconsax:"Book"},monitor:{lucide:"Monitor",phosphor:"Monitor",iconsax:"Monitor"},sun:{lucide:"Sun",phosphor:"Sun",iconsax:"Sun"},moon:{lucide:"Moon",phosphor:"Moon",iconsax:"Moon"},sparkle:{lucide:"Sparkle",phosphor:"Sparkle"},sparkles:{lucide:"Sparkles",phosphor:"Sparkle"},lightbulb:{lucide:"Lightbulb",phosphor:"Lightbulb"},brain:{lucide:"Brain",phosphor:"Brain"},zap:{lucide:"Zap",phosphor:"Lightning"},globe:{lucide:"Globe",phosphor:"Globe",iconsax:"Global"},deviceMobile:{lucide:"Smartphone",phosphor:"DeviceMobile"},smartphone:{lucide:"Smartphone",phosphor:"DeviceMobile"},floppyDisk:{lucide:"Save",phosphor:"FloppyDisk"},chart:{lucide:"BarChart3",phosphor:"ChartBar"},barChart:{lucide:"BarChart",phosphor:"ChartBar"},trendingUp:{lucide:"TrendingUp",phosphor:"TrendUp"},trendingDown:{lucide:"TrendingDown",phosphor:"TrendDown"},activity:{lucide:"Activity",phosphor:"Pulse"},database:{lucide:"Database",phosphor:"Database"},dollarSign:{lucide:"DollarSign",phosphor:"CurrencyDollar"},dollar:{lucide:"DollarSign",phosphor:"CurrencyDollar"},currency:{lucide:"DollarSign",phosphor:"CurrencyDollar"},layers:{lucide:"Layers",phosphor:"Stack"},ban:{lucide:"Ban",phosphor:"Prohibit"},lock:{lucide:"Lock",phosphor:"Lock",iconsax:"Lock"},unlock:{lucide:"Unlock",phosphor:"LockOpen",iconsax:"Unlock"},shield:{lucide:"Shield",phosphor:"Shield",iconsax:"Shield"},key:{lucide:"Key",phosphor:"Key"},play:{lucide:"Play",phosphor:"Play",iconsax:"Play"},pause:{lucide:"Pause",phosphor:"Pause",iconsax:"Pause"},image:{lucide:"Image",phosphor:"Image",iconsax:"Image"},video:{lucide:"Video",phosphor:"Video",iconsax:"Video"},camera:{lucide:"Camera",phosphor:"Camera",iconsax:"Camera"},fileText:{lucide:"FileText",phosphor:"FileText"},file:{lucide:"File",phosphor:"File"},externalLink:{lucide:"ExternalLink",phosphor:"ArrowSquareOut"},link:{lucide:"Link",phosphor:"Link",iconsax:"Link"},moreHorizontal:{lucide:"MoreHorizontal",phosphor:"DotsThreeOutline"},moreVertical:{lucide:"MoreVertical",phosphor:"DotsThreeVertical"},remove:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"},eye:{lucide:"Eye",phosphor:"Eye",iconsax:"Eye"},eyeOff:{lucide:"EyeOff",phosphor:"EyeSlash",iconsax:"EyeSlash"},smile:{lucide:"Smile",phosphor:"Smiley",iconsax:"EmojiHappy"},frown:{lucide:"Frown",phosphor:"SmileySad",iconsax:"EmojiSad"},meh:{lucide:"Meh",phosphor:"SmileyMeh",iconsax:"EmojiNormal"},mail:{lucide:"Mail",phosphor:"Envelope"},phone:{lucide:"Phone",phosphor:"Phone"},flag:{lucide:"Flag",phosphor:"Flag",iconsax:"Flag"},rocket:{lucide:"Rocket",phosphor:"Rocket",iconsax:"Rocket"},ticket:{lucide:"Ticket",phosphor:"Ticket",iconsax:"Ticket"},clipboard:{lucide:"ClipboardList",phosphor:"Clipboard",iconsax:"Sticker"},wifi:{lucide:"Wifi",phosphor:"WifiHigh",iconsax:"Wifi"},wifiOff:{lucide:"WifiOff",phosphor:"WifiSlash"},cpu:{lucide:"Cpu",phosphor:"Cpu",iconsax:"Computing"},mask:{lucide:"Drama",phosphor:"MaskHappy",iconsax:"EmojiHappy"},bold:{lucide:"Bold",phosphor:"TextB"},italic:{lucide:"Italic",phosphor:"TextItalic"},strikethrough:{lucide:"Strikethrough",phosphor:"TextStrikethrough"},heading:{lucide:"Heading",phosphor:"TextHOne"},code:{lucide:"Code",phosphor:"Code",iconsax:"Code"},fileCode:{lucide:"FileCode",phosphor:"FileCode"},quote:{lucide:"Quote",phosphor:"Quotes",iconsax:"QuoteUp"},list:{lucide:"List",phosphor:"List"},listOrdered:{lucide:"ListOrdered",phosphor:"ListNumbers"},minus:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"}};async function ee(){if(typeof window=="undefined")return null;if(!n)try{n=await import('@phosphor-icons/react');}catch{return console.warn("Phosphor Icons not available. Install @phosphor-icons/react to use."),null}return n}async function oe(){if(typeof window=="undefined")return null;if(!t)try{t=await import('lucide-react');}catch{return console.warn("Lucide Icons not available. Install lucide-react to use lucide provider."),null}return t}function L(e,o="phosphor"){let r=Y[e];if(!r)return cr(e,o);let i=r[o];switch(o){case "phosphor":return !i||!n?null:(n==null?void 0:n[i])||null;case "lucide":return !i||!t?null:(t==null?void 0:t[i])||null;case "iconsax":{return null;}default:return null}}function cr(e,o){switch(o){case "phosphor":{if(!n)return null;let r=e.charAt(0).toUpperCase()+e.slice(1),i=e.split(/(?=[A-Z])/).map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join("");return (n==null?void 0:n[r])||(n==null?void 0:n[i])||(n==null?void 0:n[e])||null}case "lucide":{if(!t)return null;let r=e.charAt(0).toUpperCase()+e.slice(1),i=e.replace(/([A-Z])/g,s=>s===e[0]?s.toLowerCase():s);return (t==null?void 0:t[r])||(t==null?void 0:t[e])||(t==null?void 0:t[i])||null}case "iconsax":{return null;}default:return null}}function re(e,o){let r=Y[e];if(r){let i=r[o];if(i)return i}return e}function ie(e){if(!e||typeof e!="string")return {normalized:e||"",wasAlias:false};let o=K(e),r=k[e]||k[o];return r?{normalized:r,wasAlias:true,originalAlias:e}:{normalized:o,wasAlias:false}}var ne=c.forwardRef(({name:e,size:o,className:r,emotion:i,status:s,provider:P,weight:T,animated:R=false,pulse:pe=false,spin:he=false,bounce:ue=false,variant:d$1="default","aria-label":y,"aria-hidden":w},N)=>{var B,V;let g=E(),a$1=P||g.set,l=o!=null?o:g.size,de=T||g.weight,fe=g.color,me=(B=g.strokeWidth)!=null?B:1.25,z=(V=g.iconsaxVariant)!=null?V:"line",[A,ge]=c.useState(false),[Ce,D]=c.useState(false);c.useEffect(()=>{ge(true),a$1==="lucide"?oe().then(()=>D(true)):a$1==="phosphor"?ee().then(()=>D(true)):D(true);},[a$1]);let O=c.useMemo(()=>{let b=i?Q[i]:s?$[s]:e,{normalized:F}=ie(b),ye=re(F,a$1);return {normalized:F,providerName:ye}},[e,i,s,a$1]),f=O.normalized,ke=c.useMemo(()=>{return null},[a$1,O.providerName,A,z]),I=d({"text-current":d$1==="default","text-primary":d$1==="primary","text-muted-foreground":d$1==="secondary"||d$1==="muted","text-green-600 dark:text-green-400":d$1==="success","text-yellow-600 dark:text-yellow-400":d$1==="warning","text-destructive":d$1==="error"});if(!A)return jsx("span",{style:{width:l,height:l},className:a(I,r),"aria-hidden":w!==void 0?w:true,"aria-label":y});let p=null;if(a$1==="phosphor"?(p=Z[f]||null,!p&&Ce&&(p=L(f,a$1))):a$1==="iconsax"?(p=ke,p||(p=L(f,a$1))):p=L(f,a$1),!p)return (a$1!=="iconsax"||W())&&console.warn(`Icon "${f}" not found for provider "${a$1}"`),jsx("span",{ref:N,className:a("inline-flex items-center justify-center rounded-full border-2 border-dashed border-border",I,r),style:{width:l,height:l},"aria-label":y||`\uC544\uC774\uCF58\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC74C: ${f}`,title:`Icon not found: ${f}`,children:jsx("span",{className:"text-xs text-muted-foreground","aria-hidden":"true",children:"?"})});let M={size:typeof l=="number"?l:void 0,width:l,height:l,color:fe};a$1==="phosphor"?M.weight=de:M.strokeWidth=me;let xe=d({"animate-pulse":pe,"animate-spin":he,"animate-bounce":ue,"transition-all duration-200 ease-in-out":R}),C={};return y?(C["aria-label"]=y,C["aria-hidden"]=false):w!==void 0?C["aria-hidden"]=w:C["aria-hidden"]=true,jsx("span",{ref:N,className:a("inline-flex items-center justify-center",xe,I,r),style:{width:l,height:l},...C,children:p&&c.createElement(p,{...M,className:I,"aria-hidden":true})})});ne.displayName="Icon";var pr=c.memo(ne,(e,o)=>e.name===o.name&&e.size===o.size&&e.className===o.className&&e.emotion===o.emotion&&e.status===o.status&&e.provider===o.provider&&e.animated===o.animated&&e.pulse===o.pulse&&e.spin===o.spin&&e.bounce===o.bounce&&e.variant===o.variant&&e.weight===o.weight&&e["aria-label"]===o["aria-label"]&&e["aria-hidden"]===o["aria-hidden"]),m=pr;m.displayName="Icon";var te=c.forwardRef((e,o)=>jsx(m,{ref:o,name:"smile",...e}));te.displayName="EmotionIcon";var ae=c.forwardRef((e,o)=>jsx(m,{ref:o,name:"info",...e}));ae.displayName="StatusIcon";var se=c.forwardRef((e,o)=>jsx(m,{ref:o,name:"loader",status:"loading",spin:true,"aria-label":"\uB85C\uB529 \uC911",...e}));se.displayName="LoadingIcon";var le=c.forwardRef((e,o)=>jsx(m,{ref:o,name:"check",status:"success",variant:"success","aria-label":"\uC131\uACF5",...e}));le.displayName="SuccessIcon";var ce=c.forwardRef((e,o)=>jsx(m,{ref:o,name:"alertCircle",status:"error",variant:"error","aria-label":"\uC624\uB958",...e}));ce.displayName="ErrorIcon";export{Q as a,$ as b,ur as c,Y as d,k as e,fr as f,mr as g,h,nr as i,sr as j,E as k,m as l,te as m,ae as n,se as o,le as p,ce as q};//# sourceMappingURL=chunk-AANHUMJ2.mjs.map
3
- //# sourceMappingURL=chunk-AANHUMJ2.mjs.map