@coinloger/dev-ui 0.0.7 → 0.0.8

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 (34) hide show
  1. package/dist/cjs/components/Badge/Badge.cjs +1 -1
  2. package/dist/cjs/components/Button/Button.cjs +1 -1
  3. package/dist/cjs/components/Card/Card.cjs +1 -1
  4. package/dist/cjs/components/Checkbox/Checkbox.cjs +1 -1
  5. package/dist/cjs/components/Input/Input.cjs +1 -1
  6. package/dist/cjs/components/Radio/Radio.cjs +1 -1
  7. package/dist/cjs/components/Switch/Switch.cjs +1 -1
  8. package/dist/cjs/components/Table/Table.cjs +1 -1
  9. package/dist/cjs/components/Tabs/Tabs.cjs +1 -1
  10. package/dist/cjs/components/Typography/Heading.cjs +1 -1
  11. package/dist/cjs/components/Typography/Text.cjs +1 -1
  12. package/dist/esm/components/Badge/Badge.d.ts +5 -3
  13. package/dist/esm/components/Badge/Badge.js +10 -8
  14. package/dist/esm/components/Button/Button.d.ts +31 -3
  15. package/dist/esm/components/Button/Button.js +19 -12
  16. package/dist/esm/components/Card/Card.d.ts +6 -3
  17. package/dist/esm/components/Card/Card.js +16 -13
  18. package/dist/esm/components/Checkbox/Checkbox.d.ts +12 -3
  19. package/dist/esm/components/Checkbox/Checkbox.js +25 -16
  20. package/dist/esm/components/Input/Input.d.ts +25 -3
  21. package/dist/esm/components/Input/Input.js +47 -25
  22. package/dist/esm/components/Radio/Radio.d.ts +12 -3
  23. package/dist/esm/components/Radio/Radio.js +29 -20
  24. package/dist/esm/components/Switch/Switch.d.ts +12 -3
  25. package/dist/esm/components/Switch/Switch.js +28 -19
  26. package/dist/esm/components/Table/Table.d.ts +5 -3
  27. package/dist/esm/components/Table/Table.js +6 -4
  28. package/dist/esm/components/Tabs/Tabs.d.ts +14 -4
  29. package/dist/esm/components/Tabs/Tabs.js +46 -41
  30. package/dist/esm/components/Typography/Heading.d.ts +7 -3
  31. package/dist/esm/components/Typography/Heading.js +28 -24
  32. package/dist/esm/components/Typography/Text.d.ts +7 -3
  33. package/dist/esm/components/Typography/Text.js +22 -18
  34. package/package.json +2 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),d=require("react"),l=require("clsx"),p=require("prop-types");;/* empty css */function g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const a=g(p),o=d.forwardRef(({className:e,children:t,variant:r="primary",size:n="md",shape:s="rounded",...i},u)=>c.jsx("span",{ref:u,className:l.clsx("ui-badge",`ui-badge-${r}`,`ui-badge-${n}`,`ui-badge-${s}`,e),...i,children:t}));o.displayName="Badge";o.propTypes={variant:a.oneOf(["primary","success","warning","danger","neutral"]),size:a.oneOf(["sm","md","lg"]),shape:a.oneOf(["rounded","pill"])};exports.Badge=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),d=require("react"),l=require("clsx"),p=require("prop-types");;/* empty css */function g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=g(p),s=d.forwardRef(({className:e,children:t,variant:r="primary",size:a="md",shape:o="rounded",...i},c)=>u.jsx("span",{ref:c,className:l.clsx("ui-badge",`ui-badge-${r}`,`ui-badge-${a}`,`ui-badge-${o}`,e),...i,children:t}));s.displayName="Badge";s.propTypes={variant:n.oneOf(["primary","success","warning","danger","neutral"]),size:n.oneOf(["sm","md","lg"]),shape:n.oneOf(["rounded","pill"]),children:n.node,className:n.string};exports.Badge=s;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),a=require("react"),l=require("clsx"),p=require("prop-types");;/* empty css */function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=d(p),o=a.forwardRef(({className:e,variant:n="primary",size:t="md",...r},u)=>{const c=l.clsx("ui-btn",`ui-btn-${n}`,`ui-btn-${t}`,e);return i.jsx("button",{ref:u,className:c,...r})});o.displayName="Button";o.propTypes={variant:s.oneOf(["primary","secondary","outline","danger","success","warning","ghost","outline-danger","outline-success","outline-warning"]),size:s.oneOf(["sm","md","lg","xl"])};exports.Button=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),a=require("react"),l=require("clsx"),b=require("prop-types");;/* empty css */function d(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const e=d(b),s=a.forwardRef(({className:t,variant:o="primary",size:n="md",...r},u)=>{const c=l.clsx("ui-btn",`ui-btn-${o}`,`ui-btn-${n}`,t);return i.jsx("button",{ref:u,className:c,...r})});s.displayName="Button";s.propTypes={variant:e.oneOf(["primary","secondary","outline","danger","success","warning","ghost","outline-danger","outline-success","outline-warning"]),size:e.oneOf(["sm","md","lg","xl"]),children:e.node,onClick:e.func,className:e.string,type:e.oneOf(["button","submit","reset"]),disabled:e.bool,autoFocus:e.bool,style:e.object};exports.Button=s;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),d=require("react"),u=require("clsx"),l=require("prop-types");;/* empty css */function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=p(l),a=d.forwardRef(({className:e,title:t,footer:r,children:c,...n},i)=>s.jsxs("div",{ref:i,className:u.clsx("ui-card",e),...n,children:[t&&s.jsx("div",{className:"ui-card__header",children:t}),s.jsx("div",{className:"ui-card__body",children:c}),r&&s.jsx("div",{className:"ui-card__footer",children:r})]}));a.displayName="Card";a.propTypes={title:o.node,footer:o.node};exports.Card=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("react"),l=require("clsx"),u=require("prop-types");;/* empty css */function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const s=p(u),n=d.forwardRef(({className:e,title:t,footer:r,children:c,...o},i)=>a.jsxs("div",{ref:i,className:l.clsx("ui-card",e),...o,children:[t&&a.jsx("div",{className:"ui-card__header",children:t}),a.jsx("div",{className:"ui-card__body",children:c}),r&&a.jsx("div",{className:"ui-card__footer",children:r})]}));n.displayName="Card";n.propTypes={title:s.node,footer:s.node,children:s.node,className:s.string,style:s.object};exports.Card=n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),p=require("react"),x=require("clsx"),b=require("prop-types");;/* empty css */function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const s=d(b),t=p.forwardRef(({className:e,label:r,error:o,disabled:n,size:i="md",variant:a="primary",...l},u)=>c.jsxs("label",{className:x.clsx("ui-checkbox-label",`ui-checkbox-${i}`,`ui-checkbox-${a}`,n&&"ui-checkbox-disabled",e),children:[c.jsx("input",{type:"checkbox",className:"ui-checkbox-input",disabled:n,ref:u,...l}),c.jsx("span",{className:"ui-checkbox-custom",children:c.jsx("svg",{className:"ui-checkbox-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"20 6 9 17 4 12"})})}),r&&c.jsx("span",{className:"ui-checkbox-text",children:r})]}));t.displayName="Checkbox";t.propTypes={label:s.node,error:s.bool,size:s.oneOf(["sm","md","lg","xl"]),variant:s.oneOf(["primary","success","warning","danger"])};exports.Checkbox=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),b=require("react"),d=require("clsx"),p=require("prop-types");;/* empty css */function x(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:()=>o[n]})}}return r.default=o,Object.freeze(r)}const e=x(p),t=b.forwardRef(({className:o,label:r,error:n,disabled:s,size:i="md",variant:a="primary",...l},u)=>c.jsxs("label",{className:d.clsx("ui-checkbox-label",`ui-checkbox-${i}`,`ui-checkbox-${a}`,s&&"ui-checkbox-disabled",o),children:[c.jsx("input",{type:"checkbox",className:"ui-checkbox-input",disabled:s,ref:u,...l}),c.jsx("span",{className:"ui-checkbox-custom",children:c.jsx("svg",{className:"ui-checkbox-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"20 6 9 17 4 12"})})}),r&&c.jsx("span",{className:"ui-checkbox-text",children:r})]}));t.displayName="Checkbox";t.propTypes={label:e.node,error:e.bool,size:e.oneOf(["sm","md","lg","xl"]),variant:e.oneOf(["primary","success","warning","danger"]),checked:e.bool,defaultChecked:e.bool,onChange:e.func,name:e.string,value:e.oneOfType([e.string,e.number]),disabled:e.bool,required:e.bool,id:e.string,className:e.string};exports.Checkbox=t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),c=require("react"),u=require("clsx"),b=require("prop-types");;/* empty css */function x(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=x(b),l=c.forwardRef(({className:e,label:r,error:t,helperText:n,fullWidth:p,size:a="md",id:d,...f},m)=>{const o=d||c.useId();return i.jsxs("div",{className:u.clsx("ui-input-wrapper",p&&"ui-input-wrapper-full"),children:[r&&i.jsx("label",{htmlFor:o,className:"ui-label",children:r}),i.jsx("input",{ref:m,id:o,className:u.clsx("ui-input",`ui-input-${a}`,t&&"ui-input-error",e),...f}),n&&i.jsx("span",{className:u.clsx("ui-helper-text",t&&"ui-helper-text-error"),children:n})]})});l.displayName="Input";l.propTypes={label:s.node,error:s.bool,helperText:s.string,fullWidth:s.bool,size:s.oneOf(["sm","md","lg","xl"])};exports.Input=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),a=require("react"),i=require("clsx"),b=require("prop-types");;/* empty css */function f(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>n[r]})}}return t.default=n,Object.freeze(t)}const e=f(b),o=a.forwardRef(({className:n,label:t,error:r,helperText:s,fullWidth:p,size:c="md",id:m,...d},g)=>{const l=m||a.useId();return u.jsxs("div",{className:i.clsx("ui-input-wrapper",p&&"ui-input-wrapper-full"),children:[t&&u.jsx("label",{htmlFor:l,className:"ui-label",children:t}),u.jsx("input",{ref:g,id:l,className:i.clsx("ui-input",`ui-input-${c}`,r&&"ui-input-error",n),...d}),s&&u.jsx("span",{className:i.clsx("ui-helper-text",r&&"ui-helper-text-error"),children:s})]})});o.displayName="Input";o.propTypes={label:e.node,error:e.bool,helperText:e.string,fullWidth:e.bool,size:e.oneOf(["sm","md","lg","xl"]),value:e.oneOfType([e.string,e.number]),defaultValue:e.oneOfType([e.string,e.number]),onChange:e.func,onBlur:e.func,onFocus:e.func,name:e.string,id:e.string,placeholder:e.string,type:e.string,disabled:e.bool,readOnly:e.bool,required:e.bool,autoComplete:e.string,autoFocus:e.bool,min:e.oneOfType([e.string,e.number]),max:e.oneOfType([e.string,e.number]),step:e.oneOfType([e.string,e.number]),minLength:e.number,maxLength:e.number,pattern:e.string,inputMode:e.string,className:e.string};exports.Input=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),d=require("react"),p=require("clsx"),m=require("prop-types");;/* empty css */function f(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const s=f(m),t=d.forwardRef(({className:e,label:r,error:a,disabled:i,size:n="md",variant:c="primary",...u},l)=>o.jsxs("label",{className:p.clsx("ui-radio-label",`ui-radio-${n}`,`ui-radio-${c}`,i&&"ui-radio-disabled",e),children:[o.jsx("input",{type:"radio",className:"ui-radio-input",disabled:i,ref:l,...u}),o.jsx("span",{className:"ui-radio-custom",children:o.jsx("span",{className:"ui-radio-dot"})}),r&&o.jsx("span",{className:"ui-radio-text",children:r})]}));t.displayName="Radio";t.propTypes={label:s.node,error:s.bool,size:s.oneOf(["sm","md","lg","xl"]),variant:s.oneOf(["primary","success","warning","danger"])};exports.Radio=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),d=require("react"),p=require("clsx"),m=require("prop-types");;/* empty css */function b(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const o in r)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(a,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}return a.default=r,Object.freeze(a)}const e=b(m),t=d.forwardRef(({className:r,label:a,error:o,disabled:i,size:n="md",variant:c="primary",...l},u)=>s.jsxs("label",{className:p.clsx("ui-radio-label",`ui-radio-${n}`,`ui-radio-${c}`,i&&"ui-radio-disabled",r),children:[s.jsx("input",{type:"radio",className:"ui-radio-input",disabled:i,ref:u,...l}),s.jsx("span",{className:"ui-radio-custom",children:s.jsx("span",{className:"ui-radio-dot"})}),a&&s.jsx("span",{className:"ui-radio-text",children:a})]}));t.displayName="Radio";t.propTypes={label:e.node,error:e.bool,size:e.oneOf(["sm","md","lg","xl"]),variant:e.oneOf(["primary","success","warning","danger"]),checked:e.bool,defaultChecked:e.bool,onChange:e.func,name:e.string,value:e.oneOfType([e.string,e.number]),disabled:e.bool,required:e.bool,id:e.string,className:e.string};exports.Radio=t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),p=require("react"),m=require("clsx"),h=require("prop-types");;/* empty css */function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=d(h),n=p.forwardRef(({className:e,label:t,error:r,disabled:s,size:a="md",variant:o="primary",...u},l)=>c.jsxs("label",{className:m.clsx("ui-switch-label",`ui-switch-${a}`,`ui-switch-${o}`,s&&"ui-switch-disabled",e),children:[c.jsx("input",{type:"checkbox",className:"ui-switch-input",disabled:s,ref:l,role:"switch",...u}),c.jsx("span",{className:"ui-switch-track",children:c.jsx("span",{className:"ui-switch-thumb"})}),t&&c.jsx("span",{className:"ui-switch-text",children:t})]}));n.displayName="Switch";n.propTypes={label:i.node,error:i.bool,size:i.oneOf(["sm","md","lg","xl"]),variant:i.oneOf(["primary","success","warning","danger"])};exports.Switch=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),p=require("react"),d=require("clsx"),m=require("prop-types");;/* empty css */function h(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(r,s,i.get?i:{enumerable:!0,get:()=>t[s]})}}return r.default=t,Object.freeze(r)}const e=h(m),n=p.forwardRef(({className:t,label:r,error:s,disabled:i,size:a="md",variant:o="primary",...l},u)=>c.jsxs("label",{className:d.clsx("ui-switch-label",`ui-switch-${a}`,`ui-switch-${o}`,i&&"ui-switch-disabled",t),children:[c.jsx("input",{type:"checkbox",className:"ui-switch-input",disabled:i,ref:u,role:"switch",...l}),c.jsx("span",{className:"ui-switch-track",children:c.jsx("span",{className:"ui-switch-thumb"})}),r&&c.jsx("span",{className:"ui-switch-text",children:r})]}));n.displayName="Switch";n.propTypes={label:e.node,error:e.bool,size:e.oneOf(["sm","md","lg","xl"]),variant:e.oneOf(["primary","success","warning","danger"]),checked:e.bool,defaultChecked:e.bool,onChange:e.func,name:e.string,value:e.oneOfType([e.string,e.number]),disabled:e.bool,required:e.bool,id:e.string,className:e.string};exports.Switch=n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),d=require("react"),p=require("prop-types");;/* empty css */function f(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=f(p),a=d.forwardRef(({className:e,bordered:r=!0,striped:t,hover:o,size:i="md",children:n,...u},c)=>{const b=["ui-table",r&&"ui-table-bordered",t&&"ui-table-striped",o&&"ui-table-hover",i==="sm"&&"ui-table-sm",e].filter(Boolean).join(" ");return l.jsx("div",{className:"ui-table-responsive",children:l.jsx("table",{ref:c,className:b,...u,children:n})})});a.displayName="Table";a.propTypes={bordered:s.bool,striped:s.bool,hover:s.bool,size:s.oneOf(["sm","md"])};exports.Table=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),d=require("react"),p=require("prop-types");;/* empty css */function m(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const r=m(p),a=d.forwardRef(({className:e,bordered:o=!0,striped:t,hover:s,size:i="md",children:n,...c},u)=>{const b=["ui-table",o&&"ui-table-bordered",t&&"ui-table-striped",s&&"ui-table-hover",i==="sm"&&"ui-table-sm",e].filter(Boolean).join(" ");return l.jsx("div",{className:"ui-table-responsive",children:l.jsx("table",{ref:u,className:b,...c,children:n})})});a.displayName="Table";a.propTypes={bordered:r.bool,striped:r.bool,hover:r.bool,size:r.oneOf(["sm","md"]),children:r.node,className:r.string};exports.Table=a;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),u=require("react"),d=require("clsx"),C=require("prop-types");;/* empty css */function v(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=v(C),T=u.createContext(null),x=({defaultValue:e,value:t,onValueChange:n,children:r,className:i})=>{const[a,o]=u.useState(e||""),c=t!==void 0,b=c?t:a,g=u.useId(),p=h=>{c||o(h),n?.(h)};return l.jsx(T.Provider,{value:{value:b,onChange:p,baseId:g},children:l.jsx("div",{className:d.clsx("ui-tabs",i),children:r})})},f=({className:e,children:t,variant:n="line",...r})=>l.jsx("div",{role:"tablist",className:d.clsx("ui-tabs-list",`ui-tabs-list-${n}`,e),...r,children:t}),m=({value:e,className:t,children:n,onClick:r,...i})=>{const a=u.useContext(T);if(!a)throw new Error("TabsTrigger must be used within Tabs");const o=a.value===e,c=`${a.baseId}-trigger-${e}`,b=`${a.baseId}-content-${e}`,g=p=>{a.onChange(e),r?.(p)};return l.jsx("button",{type:"button",role:"tab","aria-selected":o,"aria-controls":b,id:c,tabIndex:o?0:-1,"data-state":o?"active":"inactive",className:d.clsx("ui-tabs-trigger",t),onClick:g,...i,children:n})},y=({value:e,className:t,children:n,...r})=>{const i=u.useContext(T);if(!i)throw new Error("TabsContent must be used within Tabs");const a=i.value===e,o=`${i.baseId}-trigger-${e}`,c=`${i.baseId}-content-${e}`;return a?l.jsx("div",{role:"tabpanel",id:c,"aria-labelledby":o,tabIndex:0,className:d.clsx("ui-tabs-content",t),...r,children:n}):null},I=Object.assign(x,{List:f,Trigger:m,Content:y});x.displayName="Tabs";f.displayName="TabsList";m.displayName="TabsTrigger";y.displayName="TabsContent";x.propTypes={defaultValue:s.string,value:s.string,onValueChange:s.func,children:s.node,className:s.string};f.propTypes={children:s.node,variant:s.oneOf(["line","pills"])};m.propTypes={value:s.string.isRequired,children:s.node};y.propTypes={value:s.string.isRequired,children:s.node};exports.Tabs=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),d=require("react"),u=require("clsx"),h=require("prop-types");;/* empty css */function v(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(s,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return s.default=e,Object.freeze(s)}const t=v(h),T=d.createContext(null),m=({defaultValue:e,value:s,onValueChange:n,children:r,className:i})=>{const[a,o]=d.useState(e||""),c=s!==void 0,b=c?s:a,g=d.useId(),p=C=>{c||o(C),n?.(C)};return l.jsx(T.Provider,{value:{value:b,onChange:p,baseId:g},children:l.jsx("div",{className:u.clsx("ui-tabs",i),children:r})})},x=({className:e,children:s,variant:n="line",...r})=>l.jsx("div",{role:"tablist",className:u.clsx("ui-tabs-list",`ui-tabs-list-${n}`,e),...r,children:s}),f=({value:e,className:s,children:n,onClick:r,...i})=>{const a=d.useContext(T);if(!a)throw new Error("TabsTrigger must be used within Tabs");const o=a.value===e,c=`${a.baseId}-trigger-${e}`,b=`${a.baseId}-content-${e}`,g=p=>{a.onChange(e),r?.(p)};return l.jsx("button",{type:"button",role:"tab","aria-selected":o,"aria-controls":b,id:c,tabIndex:o?0:-1,"data-state":o?"active":"inactive",className:u.clsx("ui-tabs-trigger",s),onClick:g,...i,children:n})},y=({value:e,className:s,children:n,...r})=>{const i=d.useContext(T);if(!i)throw new Error("TabsContent must be used within Tabs");const a=i.value===e,o=`${i.baseId}-trigger-${e}`,c=`${i.baseId}-content-${e}`;return a?l.jsx("div",{role:"tabpanel",id:c,"aria-labelledby":o,tabIndex:0,className:u.clsx("ui-tabs-content",s),...r,children:n}):null},I=Object.assign(m,{List:x,Trigger:f,Content:y});m.displayName="Tabs";x.displayName="TabsList";f.displayName="TabsTrigger";y.displayName="TabsContent";m.propTypes={defaultValue:t.string,value:t.string,onValueChange:t.func,children:t.node,className:t.string};x.propTypes={children:t.node,variant:t.oneOf(["line","pills"]),className:t.string};f.propTypes={value:t.string.isRequired,children:t.node,className:t.string,onClick:t.func,disabled:t.bool};y.propTypes={value:t.string.isRequired,children:t.node,className:t.string};exports.Tabs=I;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),f=require("react"),g=require("clsx"),m=require("prop-types");;/* empty css */function b(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=b(m),a=f.forwardRef(({className:e,children:r,level:t=1,truncate:n,lines:o,style:i,...u},s)=>{const l=`h${t}`,p=o?{...i,"--ui-line-clamp":o}:i;return d.jsx(l,{ref:s,className:g.clsx("ui-heading",`ui-heading-h${t}`,n&&"ui-text-truncate",o&&"ui-text-clamp",e),style:p,...u,children:r})});a.displayName="Heading";a.propTypes={level:c.oneOf([1,2,3,4,5,6]),truncate:c.bool,lines:c.number};exports.Heading=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),g=require("react"),f=require("clsx"),m=require("prop-types");;/* empty css */function b(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=b(m),i=g.forwardRef(({className:e,children:n,level:t=1,truncate:o,lines:c,style:a,...s},u)=>{const l=`h${t}`,p=c?{...a,"--ui-line-clamp":c}:a;return d.jsx(l,{ref:u,className:f.clsx("ui-heading",`ui-heading-h${t}`,o&&"ui-text-truncate",c&&"ui-text-clamp",e),style:p,...s,children:n})});i.displayName="Heading";i.propTypes={level:r.oneOf([1,2,3,4,5,6]),truncate:r.bool,lines:r.number,children:r.node,className:r.string,style:r.object,id:r.string};exports.Heading=i;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),f=require("react"),x=require("clsx"),y=require("prop-types");;/* empty css */function T(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const r=T(y),a=f.forwardRef(({className:e,children:o,variant:t="body",weight:n,muted:i,truncate:l,lines:u,as:s="p",style:c,...p},m)=>{const d=u?{...c,"--ui-line-clamp":u}:c;return b.jsx(s,{ref:m,className:x.clsx("ui-text",`ui-text-${t}`,n&&`ui-text-weight-${n}`,i&&"ui-text-muted",l&&"ui-text-truncate",u&&"ui-text-clamp",e),style:d,...p,children:o})});a.displayName="Text";a.propTypes={variant:r.oneOf(["body","small","caption","lead"]),weight:r.oneOf(["normal","medium","semibold","bold"]),muted:r.bool,truncate:r.bool,lines:r.number,as:r.elementType};exports.Text=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),f=require("react"),y=require("clsx"),x=require("prop-types");;/* empty css */function g(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return o.default=t,Object.freeze(o)}const e=g(x),i=f.forwardRef(({className:t,children:o,variant:r="body",weight:n,muted:s,truncate:u,lines:c,as:l="p",style:a,...m},p)=>{const d=c?{...a,"--ui-line-clamp":c}:a;return b.jsx(l,{ref:p,className:y.clsx("ui-text",`ui-text-${r}`,n&&`ui-text-weight-${n}`,s&&"ui-text-muted",u&&"ui-text-truncate",c&&"ui-text-clamp",t),style:d,...m,children:o})});i.displayName="Text";i.propTypes={variant:e.oneOf(["body","small","caption","lead"]),weight:e.oneOf(["normal","medium","semibold","bold"]),muted:e.bool,truncate:e.bool,lines:e.number,as:e.elementType,children:e.node,className:e.string,style:e.object,id:e.string};exports.Text=i;
@@ -1,9 +1,9 @@
1
- import { HTMLAttributes } from 'react';
1
+ import { ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
2
2
 
3
3
  /**
4
4
  * Badge/Tag component properties.
5
5
  */
6
- export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
6
+ export interface BadgeProps {
7
7
  /**
8
8
  * The visual style variant.
9
9
  * @default 'primary'
@@ -19,5 +19,7 @@ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
19
19
  * @default 'rounded'
20
20
  */
21
21
  shape?: 'rounded' | 'pill';
22
+ children?: ReactNode;
23
+ className?: string;
22
24
  }
23
- export declare const Badge: import('react').ForwardRefExoticComponent<BadgeProps & import('react').RefAttributes<HTMLSpanElement>>;
25
+ export declare const Badge: ForwardRefExoticComponent<BadgeProps & RefAttributes<HTMLSpanElement>>;
@@ -1,21 +1,21 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as t } from "react";
3
- import { clsx as f } from "clsx";
3
+ import { clsx as g } from "clsx";
4
4
  import * as r from "prop-types";
5
5
  /* empty css */
6
6
  const e = t(
7
- ({ className: a, children: o, variant: p = "primary", size: i = "md", shape: m = "rounded", ...s }, d) => /* @__PURE__ */ n(
7
+ ({ className: a, children: o, variant: s = "primary", size: i = "md", shape: d = "rounded", ...m }, p) => /* @__PURE__ */ n(
8
8
  "span",
9
9
  {
10
- ref: d,
11
- className: f(
10
+ ref: p,
11
+ className: g(
12
12
  "ui-badge",
13
- `ui-badge-${p}`,
13
+ `ui-badge-${s}`,
14
14
  `ui-badge-${i}`,
15
- `ui-badge-${m}`,
15
+ `ui-badge-${d}`,
16
16
  a
17
17
  ),
18
- ...s,
18
+ ...m,
19
19
  children: o
20
20
  }
21
21
  )
@@ -24,7 +24,9 @@ e.displayName = "Badge";
24
24
  e.propTypes = {
25
25
  variant: r.oneOf(["primary", "success", "warning", "danger", "neutral"]),
26
26
  size: r.oneOf(["sm", "md", "lg"]),
27
- shape: r.oneOf(["rounded", "pill"])
27
+ shape: r.oneOf(["rounded", "pill"]),
28
+ children: r.node,
29
+ className: r.string
28
30
  };
29
31
  export {
30
32
  e as Badge
@@ -1,9 +1,9 @@
1
- import { ButtonHTMLAttributes } from 'react';
1
+ import { ForwardRefExoticComponent, RefAttributes, ReactNode, MouseEventHandler, CSSProperties } from 'react';
2
2
 
3
3
  /**
4
4
  * Button component properties.
5
5
  */
6
- export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
6
+ export interface ButtonProps {
7
7
  /**
8
8
  * The visual style variant of the button.
9
9
  * @default 'primary'
@@ -14,9 +14,37 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
14
14
  * @default 'md'
15
15
  */
16
16
  size?: 'sm' | 'md' | 'lg' | 'xl';
17
+ /**
18
+ * Button content.
19
+ */
20
+ children?: ReactNode;
21
+ /**
22
+ * Optional click handler.
23
+ */
24
+ onClick?: MouseEventHandler<HTMLButtonElement>;
25
+ /**
26
+ * Additional CSS class.
27
+ */
28
+ className?: string;
29
+ /**
30
+ * Button type.
31
+ */
32
+ type?: 'button' | 'submit' | 'reset';
33
+ /**
34
+ * Disabled state.
35
+ */
36
+ disabled?: boolean;
37
+ /**
38
+ * Autofocus on mount.
39
+ */
40
+ autoFocus?: boolean;
41
+ /**
42
+ * Inline styles for the button.
43
+ */
44
+ style?: CSSProperties;
17
45
  }
18
46
  /**
19
47
  * Primary action component.
20
48
  * Supports various visual styles, sizes, and standard HTML button attributes.
21
49
  */
22
- export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
50
+ export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
@@ -1,24 +1,31 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { forwardRef as p } from "react";
3
- import { clsx as u } from "clsx";
2
+ import { forwardRef as u } from "react";
3
+ import { clsx as l } from "clsx";
4
4
  import * as o from "prop-types";
5
5
  /* empty css */
6
- const r = p(
7
- ({ className: t, variant: n = "primary", size: s = "md", ...e }, i) => {
8
- const a = u(
6
+ const t = u(
7
+ ({ className: s, variant: e = "primary", size: n = "md", ...r }, i) => {
8
+ const a = l(
9
9
  "ui-btn",
10
+ `ui-btn-${e}`,
10
11
  `ui-btn-${n}`,
11
- `ui-btn-${s}`,
12
- t
12
+ s
13
13
  );
14
- return /* @__PURE__ */ m("button", { ref: i, className: a, ...e });
14
+ return /* @__PURE__ */ m("button", { ref: i, className: a, ...r });
15
15
  }
16
16
  );
17
- r.displayName = "Button";
18
- r.propTypes = {
17
+ t.displayName = "Button";
18
+ t.propTypes = {
19
19
  variant: o.oneOf(["primary", "secondary", "outline", "danger", "success", "warning", "ghost", "outline-danger", "outline-success", "outline-warning"]),
20
- size: o.oneOf(["sm", "md", "lg", "xl"])
20
+ size: o.oneOf(["sm", "md", "lg", "xl"]),
21
+ children: o.node,
22
+ onClick: o.func,
23
+ className: o.string,
24
+ type: o.oneOf(["button", "submit", "reset"]),
25
+ disabled: o.bool,
26
+ autoFocus: o.bool,
27
+ style: o.object
21
28
  };
22
29
  export {
23
- r as Button
30
+ t as Button
24
31
  };
@@ -1,9 +1,9 @@
1
- import { HTMLAttributes, ReactNode } from 'react';
1
+ import { ReactNode, ForwardRefExoticComponent, RefAttributes, CSSProperties } from 'react';
2
2
 
3
3
  /**
4
4
  * Card component properties.
5
5
  */
6
- interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
6
+ interface CardProps {
7
7
  /**
8
8
  * Content to be displayed in the card header.
9
9
  */
@@ -12,10 +12,13 @@ interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
12
12
  * Content to be displayed in the card footer.
13
13
  */
14
14
  footer?: ReactNode;
15
+ children?: ReactNode;
16
+ className?: string;
17
+ style?: CSSProperties;
15
18
  }
16
19
  /**
17
20
  * Container component for content grouping.
18
21
  * Includes slots for header (title) and footer.
19
22
  */
20
- export declare const Card: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>>;
23
+ export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement>>;
21
24
  export {};
@@ -1,20 +1,23 @@
1
- import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as l } from "react";
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
3
  import { clsx as t } from "clsx";
4
- import * as o from "prop-types";
4
+ import * as r from "prop-types";
5
5
  /* empty css */
6
- const e = l(
7
- ({ className: i, title: a, footer: d, children: s, ...m }, c) => /* @__PURE__ */ p("div", { ref: c, className: t("ui-card", i), ...m, children: [
8
- a && /* @__PURE__ */ r("div", { className: "ui-card__header", children: a }),
9
- /* @__PURE__ */ r("div", { className: "ui-card__body", children: s }),
10
- d && /* @__PURE__ */ r("div", { className: "ui-card__footer", children: d })
6
+ const o = p(
7
+ ({ className: s, title: a, footer: d, children: i, ...c }, m) => /* @__PURE__ */ l("div", { ref: m, className: t("ui-card", s), ...c, children: [
8
+ a && /* @__PURE__ */ e("div", { className: "ui-card__header", children: a }),
9
+ /* @__PURE__ */ e("div", { className: "ui-card__body", children: i }),
10
+ d && /* @__PURE__ */ e("div", { className: "ui-card__footer", children: d })
11
11
  ] })
12
12
  );
13
- e.displayName = "Card";
14
- e.propTypes = {
15
- title: o.node,
16
- footer: o.node
13
+ o.displayName = "Card";
14
+ o.propTypes = {
15
+ title: r.node,
16
+ footer: r.node,
17
+ children: r.node,
18
+ className: r.string,
19
+ style: r.object
17
20
  };
18
21
  export {
19
- e as Card
22
+ o as Card
20
23
  };
@@ -1,9 +1,9 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
1
+ import { ReactNode, ForwardRefExoticComponent, RefAttributes, ChangeEventHandler } from 'react';
2
2
 
3
3
  /**
4
4
  * Checkbox component properties.
5
5
  */
6
- export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
6
+ export interface CheckboxProps {
7
7
  /**
8
8
  * Label to display next to the checkbox.
9
9
  */
@@ -22,5 +22,14 @@ export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement
22
22
  * @default 'primary'
23
23
  */
24
24
  variant?: 'primary' | 'success' | 'warning' | 'danger';
25
+ checked?: boolean;
26
+ defaultChecked?: boolean;
27
+ onChange?: ChangeEventHandler<HTMLInputElement>;
28
+ name?: string;
29
+ value?: string | number;
30
+ disabled?: boolean;
31
+ required?: boolean;
32
+ id?: string;
33
+ className?: string;
25
34
  }
26
- export declare const Checkbox: import('react').ForwardRefExoticComponent<CheckboxProps & import('react').RefAttributes<HTMLInputElement>>;
35
+ export declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
@@ -1,13 +1,13 @@
1
- import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as t } from "react";
3
- import { clsx as x } from "clsx";
4
- import * as o from "prop-types";
1
+ import { jsxs as m, jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import { clsx as u } from "clsx";
4
+ import * as e from "prop-types";
5
5
  /* empty css */
6
- const i = t(
7
- ({ className: s, label: r, error: u, disabled: c, size: n = "md", variant: a = "primary", ...l }, p) => /* @__PURE__ */ m(
6
+ const i = p(
7
+ ({ className: s, label: r, error: b, disabled: c, size: n = "md", variant: a = "primary", ...l }, t) => /* @__PURE__ */ m(
8
8
  "label",
9
9
  {
10
- className: x(
10
+ className: u(
11
11
  "ui-checkbox-label",
12
12
  `ui-checkbox-${n}`,
13
13
  `ui-checkbox-${a}`,
@@ -15,17 +15,17 @@ const i = t(
15
15
  s
16
16
  ),
17
17
  children: [
18
- /* @__PURE__ */ e(
18
+ /* @__PURE__ */ o(
19
19
  "input",
20
20
  {
21
21
  type: "checkbox",
22
22
  className: "ui-checkbox-input",
23
23
  disabled: c,
24
- ref: p,
24
+ ref: t,
25
25
  ...l
26
26
  }
27
27
  ),
28
- /* @__PURE__ */ e("span", { className: "ui-checkbox-custom", children: /* @__PURE__ */ e(
28
+ /* @__PURE__ */ o("span", { className: "ui-checkbox-custom", children: /* @__PURE__ */ o(
29
29
  "svg",
30
30
  {
31
31
  className: "ui-checkbox-icon",
@@ -34,20 +34,29 @@ const i = t(
34
34
  stroke: "currentColor",
35
35
  strokeLinecap: "round",
36
36
  strokeLinejoin: "round",
37
- children: /* @__PURE__ */ e("polyline", { points: "20 6 9 17 4 12" })
37
+ children: /* @__PURE__ */ o("polyline", { points: "20 6 9 17 4 12" })
38
38
  }
39
39
  ) }),
40
- r && /* @__PURE__ */ e("span", { className: "ui-checkbox-text", children: r })
40
+ r && /* @__PURE__ */ o("span", { className: "ui-checkbox-text", children: r })
41
41
  ]
42
42
  }
43
43
  )
44
44
  );
45
45
  i.displayName = "Checkbox";
46
46
  i.propTypes = {
47
- label: o.node,
48
- error: o.bool,
49
- size: o.oneOf(["sm", "md", "lg", "xl"]),
50
- variant: o.oneOf(["primary", "success", "warning", "danger"])
47
+ label: e.node,
48
+ error: e.bool,
49
+ size: e.oneOf(["sm", "md", "lg", "xl"]),
50
+ variant: e.oneOf(["primary", "success", "warning", "danger"]),
51
+ checked: e.bool,
52
+ defaultChecked: e.bool,
53
+ onChange: e.func,
54
+ name: e.string,
55
+ value: e.oneOfType([e.string, e.number]),
56
+ disabled: e.bool,
57
+ required: e.bool,
58
+ id: e.string,
59
+ className: e.string
51
60
  };
52
61
  export {
53
62
  i as Checkbox
@@ -1,9 +1,9 @@
1
- import { InputHTMLAttributes } from 'react';
1
+ import { InputHTMLAttributes, ForwardRefExoticComponent, RefAttributes, ChangeEventHandler, FocusEventHandler } from 'react';
2
2
 
3
3
  /**
4
4
  * Input component properties.
5
5
  */
6
- interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
6
+ interface InputProps {
7
7
  /**
8
8
  * Label text displayed above the input.
9
9
  */
@@ -27,9 +27,31 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>
27
27
  * @default 'md'
28
28
  */
29
29
  size?: 'sm' | 'md' | 'lg' | 'xl';
30
+ value?: string | number;
31
+ defaultValue?: string | number;
32
+ onChange?: ChangeEventHandler<HTMLInputElement>;
33
+ onBlur?: FocusEventHandler<HTMLInputElement>;
34
+ onFocus?: FocusEventHandler<HTMLInputElement>;
35
+ name?: string;
36
+ id?: string;
37
+ placeholder?: string;
38
+ type?: InputHTMLAttributes<HTMLInputElement>['type'];
39
+ disabled?: boolean;
40
+ readOnly?: boolean;
41
+ required?: boolean;
42
+ autoComplete?: InputHTMLAttributes<HTMLInputElement>['autoComplete'];
43
+ autoFocus?: boolean;
44
+ min?: InputHTMLAttributes<HTMLInputElement>['min'];
45
+ max?: InputHTMLAttributes<HTMLInputElement>['max'];
46
+ step?: InputHTMLAttributes<HTMLInputElement>['step'];
47
+ minLength?: number;
48
+ maxLength?: number;
49
+ pattern?: string;
50
+ inputMode?: InputHTMLAttributes<HTMLInputElement>['inputMode'];
51
+ className?: string;
30
52
  }
31
53
  /**
32
54
  * Text input component with label, error state, and helper text support.
33
55
  */
34
- export declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
56
+ export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
35
57
  export {};
@@ -1,39 +1,61 @@
1
- import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as h, useId as x } from "react";
3
- import { clsx as i } from "clsx";
4
- import * as r from "prop-types";
1
+ import { jsxs as g, jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as c, useId as b } from "react";
3
+ import { clsx as r } from "clsx";
4
+ import * as e from "prop-types";
5
5
  /* empty css */
6
- const s = h(
7
- ({ className: u, label: p, error: t, helperText: l, fullWidth: n, size: m = "md", id: a, ...d }, c) => {
8
- const o = a || x();
9
- return /* @__PURE__ */ f("div", { className: i("ui-input-wrapper", n && "ui-input-wrapper-full"), children: [
10
- p && /* @__PURE__ */ e("label", { htmlFor: o, className: "ui-label", children: p }),
11
- /* @__PURE__ */ e(
6
+ const u = c(
7
+ ({ className: p, label: t, error: i, helperText: o, fullWidth: l, size: a = "md", id: m, ...d }, f) => {
8
+ const s = m || b();
9
+ return /* @__PURE__ */ g("div", { className: r("ui-input-wrapper", l && "ui-input-wrapper-full"), children: [
10
+ t && /* @__PURE__ */ n("label", { htmlFor: s, className: "ui-label", children: t }),
11
+ /* @__PURE__ */ n(
12
12
  "input",
13
13
  {
14
- ref: c,
15
- id: o,
16
- className: i(
14
+ ref: f,
15
+ id: s,
16
+ className: r(
17
17
  "ui-input",
18
- `ui-input-${m}`,
19
- t && "ui-input-error",
20
- u
18
+ `ui-input-${a}`,
19
+ i && "ui-input-error",
20
+ p
21
21
  ),
22
22
  ...d
23
23
  }
24
24
  ),
25
- l && /* @__PURE__ */ e("span", { className: i("ui-helper-text", t && "ui-helper-text-error"), children: l })
25
+ o && /* @__PURE__ */ n("span", { className: r("ui-helper-text", i && "ui-helper-text-error"), children: o })
26
26
  ] });
27
27
  }
28
28
  );
29
- s.displayName = "Input";
30
- s.propTypes = {
31
- label: r.node,
32
- error: r.bool,
33
- helperText: r.string,
34
- fullWidth: r.bool,
35
- size: r.oneOf(["sm", "md", "lg", "xl"])
29
+ u.displayName = "Input";
30
+ u.propTypes = {
31
+ label: e.node,
32
+ error: e.bool,
33
+ helperText: e.string,
34
+ fullWidth: e.bool,
35
+ size: e.oneOf(["sm", "md", "lg", "xl"]),
36
+ value: e.oneOfType([e.string, e.number]),
37
+ defaultValue: e.oneOfType([e.string, e.number]),
38
+ onChange: e.func,
39
+ onBlur: e.func,
40
+ onFocus: e.func,
41
+ name: e.string,
42
+ id: e.string,
43
+ placeholder: e.string,
44
+ type: e.string,
45
+ disabled: e.bool,
46
+ readOnly: e.bool,
47
+ required: e.bool,
48
+ autoComplete: e.string,
49
+ autoFocus: e.bool,
50
+ min: e.oneOfType([e.string, e.number]),
51
+ max: e.oneOfType([e.string, e.number]),
52
+ step: e.oneOfType([e.string, e.number]),
53
+ minLength: e.number,
54
+ maxLength: e.number,
55
+ pattern: e.string,
56
+ inputMode: e.string,
57
+ className: e.string
36
58
  };
37
59
  export {
38
- s as Input
60
+ u as Input
39
61
  };
@@ -1,9 +1,9 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
1
+ import { ReactNode, ForwardRefExoticComponent, RefAttributes, ChangeEventHandler } from 'react';
2
2
 
3
3
  /**
4
4
  * Radio component properties.
5
5
  */
6
- export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
6
+ export interface RadioProps {
7
7
  /**
8
8
  * Label to display next to the radio button.
9
9
  */
@@ -22,5 +22,14 @@ export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
22
22
  * @default 'primary'
23
23
  */
24
24
  variant?: 'primary' | 'success' | 'warning' | 'danger';
25
+ checked?: boolean;
26
+ defaultChecked?: boolean;
27
+ onChange?: ChangeEventHandler<HTMLInputElement>;
28
+ name?: string;
29
+ value?: string | number;
30
+ disabled?: boolean;
31
+ required?: boolean;
32
+ id?: string;
33
+ className?: string;
25
34
  }
26
- export declare const Radio: import('react').ForwardRefExoticComponent<RadioProps & import('react').RefAttributes<HTMLInputElement>>;
35
+ export declare const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<HTMLInputElement>>;
@@ -1,43 +1,52 @@
1
- import { jsxs as n, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
2
  import { forwardRef as t } from "react";
3
3
  import { clsx as c } from "clsx";
4
- import * as a from "prop-types";
4
+ import * as r from "prop-types";
5
5
  /* empty css */
6
- const s = t(
7
- ({ className: e, label: i, error: u, disabled: o, size: d = "md", variant: m = "primary", ...p }, l) => /* @__PURE__ */ n(
6
+ const e = t(
7
+ ({ className: s, label: a, error: u, disabled: i, size: d = "md", variant: n = "primary", ...l }, m) => /* @__PURE__ */ p(
8
8
  "label",
9
9
  {
10
10
  className: c(
11
11
  "ui-radio-label",
12
12
  `ui-radio-${d}`,
13
- `ui-radio-${m}`,
14
- o && "ui-radio-disabled",
15
- e
13
+ `ui-radio-${n}`,
14
+ i && "ui-radio-disabled",
15
+ s
16
16
  ),
17
17
  children: [
18
- /* @__PURE__ */ r(
18
+ /* @__PURE__ */ o(
19
19
  "input",
20
20
  {
21
21
  type: "radio",
22
22
  className: "ui-radio-input",
23
- disabled: o,
24
- ref: l,
25
- ...p
23
+ disabled: i,
24
+ ref: m,
25
+ ...l
26
26
  }
27
27
  ),
28
- /* @__PURE__ */ r("span", { className: "ui-radio-custom", children: /* @__PURE__ */ r("span", { className: "ui-radio-dot" }) }),
29
- i && /* @__PURE__ */ r("span", { className: "ui-radio-text", children: i })
28
+ /* @__PURE__ */ o("span", { className: "ui-radio-custom", children: /* @__PURE__ */ o("span", { className: "ui-radio-dot" }) }),
29
+ a && /* @__PURE__ */ o("span", { className: "ui-radio-text", children: a })
30
30
  ]
31
31
  }
32
32
  )
33
33
  );
34
- s.displayName = "Radio";
35
- s.propTypes = {
36
- label: a.node,
37
- error: a.bool,
38
- size: a.oneOf(["sm", "md", "lg", "xl"]),
39
- variant: a.oneOf(["primary", "success", "warning", "danger"])
34
+ e.displayName = "Radio";
35
+ e.propTypes = {
36
+ label: r.node,
37
+ error: r.bool,
38
+ size: r.oneOf(["sm", "md", "lg", "xl"]),
39
+ variant: r.oneOf(["primary", "success", "warning", "danger"]),
40
+ checked: r.bool,
41
+ defaultChecked: r.bool,
42
+ onChange: r.func,
43
+ name: r.string,
44
+ value: r.oneOfType([r.string, r.number]),
45
+ disabled: r.bool,
46
+ required: r.bool,
47
+ id: r.string,
48
+ className: r.string
40
49
  };
41
50
  export {
42
- s as Radio
51
+ e as Radio
43
52
  };
@@ -1,9 +1,9 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
1
+ import { ReactNode, ForwardRefExoticComponent, RefAttributes, ChangeEventHandler } from 'react';
2
2
 
3
3
  /**
4
4
  * Switch toggle component properties.
5
5
  */
6
- export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
6
+ export interface SwitchProps {
7
7
  /**
8
8
  * Label to display next to the switch.
9
9
  */
@@ -22,5 +22,14 @@ export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
22
22
  * @default 'primary'
23
23
  */
24
24
  variant?: 'primary' | 'success' | 'warning' | 'danger';
25
+ checked?: boolean;
26
+ defaultChecked?: boolean;
27
+ onChange?: ChangeEventHandler<HTMLInputElement>;
28
+ name?: string;
29
+ value?: string | number;
30
+ disabled?: boolean;
31
+ required?: boolean;
32
+ id?: string;
33
+ className?: string;
25
34
  }
26
- export declare const Switch: import('react').ForwardRefExoticComponent<SwitchProps & import('react').RefAttributes<HTMLInputElement>>;
35
+ export declare const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLInputElement>>;
@@ -1,18 +1,18 @@
1
- import { jsxs as l, jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as n } from "react";
1
+ import { jsxs as m, jsx as s } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
3
  import { clsx as h } from "clsx";
4
- import * as i from "prop-types";
4
+ import * as e from "prop-types";
5
5
  /* empty css */
6
- const t = n(
7
- ({ className: a, label: r, error: u, disabled: e, size: c = "md", variant: o = "primary", ...m }, p) => /* @__PURE__ */ l(
6
+ const a = p(
7
+ ({ className: o, label: i, error: u, disabled: r, size: t = "md", variant: c = "primary", ...n }, l) => /* @__PURE__ */ m(
8
8
  "label",
9
9
  {
10
10
  className: h(
11
11
  "ui-switch-label",
12
+ `ui-switch-${t}`,
12
13
  `ui-switch-${c}`,
13
- `ui-switch-${o}`,
14
- e && "ui-switch-disabled",
15
- a
14
+ r && "ui-switch-disabled",
15
+ o
16
16
  ),
17
17
  children: [
18
18
  /* @__PURE__ */ s(
@@ -20,25 +20,34 @@ const t = n(
20
20
  {
21
21
  type: "checkbox",
22
22
  className: "ui-switch-input",
23
- disabled: e,
24
- ref: p,
23
+ disabled: r,
24
+ ref: l,
25
25
  role: "switch",
26
- ...m
26
+ ...n
27
27
  }
28
28
  ),
29
29
  /* @__PURE__ */ s("span", { className: "ui-switch-track", children: /* @__PURE__ */ s("span", { className: "ui-switch-thumb" }) }),
30
- r && /* @__PURE__ */ s("span", { className: "ui-switch-text", children: r })
30
+ i && /* @__PURE__ */ s("span", { className: "ui-switch-text", children: i })
31
31
  ]
32
32
  }
33
33
  )
34
34
  );
35
- t.displayName = "Switch";
36
- t.propTypes = {
37
- label: i.node,
38
- error: i.bool,
39
- size: i.oneOf(["sm", "md", "lg", "xl"]),
40
- variant: i.oneOf(["primary", "success", "warning", "danger"])
35
+ a.displayName = "Switch";
36
+ a.propTypes = {
37
+ label: e.node,
38
+ error: e.bool,
39
+ size: e.oneOf(["sm", "md", "lg", "xl"]),
40
+ variant: e.oneOf(["primary", "success", "warning", "danger"]),
41
+ checked: e.bool,
42
+ defaultChecked: e.bool,
43
+ onChange: e.func,
44
+ name: e.string,
45
+ value: e.oneOfType([e.string, e.number]),
46
+ disabled: e.bool,
47
+ required: e.bool,
48
+ id: e.string,
49
+ className: e.string
41
50
  };
42
51
  export {
43
- t as Switch
52
+ a as Switch
44
53
  };
@@ -1,9 +1,9 @@
1
- import { TableHTMLAttributes } from 'react';
1
+ import { ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
2
2
 
3
3
  /**
4
4
  * Table component properties.
5
5
  */
6
- interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
6
+ interface TableProps {
7
7
  /**
8
8
  * If true, adds borders to table cells.
9
9
  * @default true
@@ -22,6 +22,8 @@ interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
22
22
  * @default 'md'
23
23
  */
24
24
  size?: 'sm' | 'md';
25
+ children?: ReactNode;
26
+ className?: string;
25
27
  }
26
- export declare const Table: import('react').ForwardRefExoticComponent<TableProps & import('react').RefAttributes<HTMLTableElement>>;
28
+ export declare const Table: ForwardRefExoticComponent<TableProps & RefAttributes<HTMLTableElement>>;
27
29
  export {};
@@ -3,8 +3,8 @@ import { forwardRef as n } from "react";
3
3
  import * as e from "prop-types";
4
4
  /* empty css */
5
5
  const r = n(
6
- ({ className: s, bordered: a = !0, striped: i, hover: l, size: t = "md", children: m, ...b }, p) => {
7
- const d = [
6
+ ({ className: s, bordered: a = !0, striped: i, hover: l, size: t = "md", children: m, ...b }, d) => {
7
+ const p = [
8
8
  "ui-table",
9
9
  a && "ui-table-bordered",
10
10
  i && "ui-table-striped",
@@ -12,7 +12,7 @@ const r = n(
12
12
  t === "sm" && "ui-table-sm",
13
13
  s
14
14
  ].filter(Boolean).join(" ");
15
- return /* @__PURE__ */ o("div", { className: "ui-table-responsive", children: /* @__PURE__ */ o("table", { ref: p, className: d, ...b, children: m }) });
15
+ return /* @__PURE__ */ o("div", { className: "ui-table-responsive", children: /* @__PURE__ */ o("table", { ref: d, className: p, ...b, children: m }) });
16
16
  }
17
17
  );
18
18
  r.displayName = "Table";
@@ -20,7 +20,9 @@ r.propTypes = {
20
20
  bordered: e.bool,
21
21
  striped: e.bool,
22
22
  hover: e.bool,
23
- size: e.oneOf(["sm", "md"])
23
+ size: e.oneOf(["sm", "md"]),
24
+ children: e.node,
25
+ className: e.string
24
26
  };
25
27
  export {
26
28
  r as Table
@@ -1,4 +1,4 @@
1
- import { ReactNode, HTMLAttributes, ButtonHTMLAttributes } from 'react';
1
+ import { ReactNode, MouseEventHandler } from 'react';
2
2
 
3
3
  import * as PropTypes from 'prop-types';
4
4
  /**
@@ -20,17 +20,22 @@ export interface TabsProps {
20
20
  children: ReactNode;
21
21
  className?: string;
22
22
  }
23
- export interface TabsListProps extends HTMLAttributes<HTMLDivElement> {
23
+ export interface TabsListProps {
24
24
  children: ReactNode;
25
25
  variant?: 'line' | 'pills';
26
+ className?: string;
26
27
  }
27
- export interface TabsTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
28
+ export interface TabsTriggerProps {
28
29
  value: string;
29
30
  children: ReactNode;
31
+ className?: string;
32
+ onClick?: MouseEventHandler<HTMLButtonElement>;
33
+ disabled?: boolean;
30
34
  }
31
- export interface TabsContentProps extends HTMLAttributes<HTMLDivElement> {
35
+ export interface TabsContentProps {
32
36
  value: string;
33
37
  children: ReactNode;
38
+ className?: string;
34
39
  }
35
40
  export declare const Tabs: {
36
41
  ({ defaultValue, value, onValueChange, children, className }: TabsProps): import("react/jsx-runtime").JSX.Element;
@@ -49,6 +54,7 @@ export declare const Tabs: {
49
54
  propTypes: {
50
55
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
51
56
  variant: PropTypes.Requireable<string>;
57
+ className: PropTypes.Requireable<string>;
52
58
  };
53
59
  };
54
60
  Trigger: {
@@ -57,6 +63,9 @@ export declare const Tabs: {
57
63
  propTypes: {
58
64
  value: PropTypes.Validator<string>;
59
65
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
66
+ className: PropTypes.Requireable<string>;
67
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
68
+ disabled: PropTypes.Requireable<boolean>;
60
69
  };
61
70
  };
62
71
  Content: {
@@ -65,6 +74,7 @@ export declare const Tabs: {
65
74
  propTypes: {
66
75
  value: PropTypes.Validator<string>;
67
76
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
77
+ className: PropTypes.Requireable<string>;
68
78
  };
69
79
  };
70
80
  };
@@ -1,26 +1,26 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { createContext as v, useState as y, useId as x, useContext as f } from "react";
2
+ import { createContext as N, useState as v, useId as y, useContext as f } from "react";
3
3
  import { clsx as d } from "clsx";
4
- import * as e from "prop-types";
4
+ import * as t from "prop-types";
5
5
  /* empty css */
6
- const p = v(null), T = ({ defaultValue: t, value: s, onValueChange: r, children: i, className: a }) => {
7
- const [n, o] = y(t || ""), c = s !== void 0, b = c ? s : n, u = x(), g = (I) => {
8
- c || o(I), r?.(I);
6
+ const p = N(null), m = ({ defaultValue: e, value: n, onValueChange: i, children: r, className: a }) => {
7
+ const [s, o] = v(e || ""), c = n !== void 0, b = c ? n : s, u = y(), g = (I) => {
8
+ c || o(I), i?.(I);
9
9
  };
10
- return /* @__PURE__ */ l(p.Provider, { value: { value: b, onChange: g, baseId: u }, children: /* @__PURE__ */ l("div", { className: d("ui-tabs", a), children: i }) });
11
- }, m = ({ className: t, children: s, variant: r = "line", ...i }) => /* @__PURE__ */ l(
10
+ return /* @__PURE__ */ l(p.Provider, { value: { value: b, onChange: g, baseId: u }, children: /* @__PURE__ */ l("div", { className: d("ui-tabs", a), children: r }) });
11
+ }, T = ({ className: e, children: n, variant: i = "line", ...r }) => /* @__PURE__ */ l(
12
12
  "div",
13
13
  {
14
14
  role: "tablist",
15
- className: d("ui-tabs-list", `ui-tabs-list-${r}`, t),
16
- ...i,
17
- children: s
15
+ className: d("ui-tabs-list", `ui-tabs-list-${i}`, e),
16
+ ...r,
17
+ children: n
18
18
  }
19
- ), h = ({ value: t, className: s, children: r, onClick: i, ...a }) => {
20
- const n = f(p);
21
- if (!n) throw new Error("TabsTrigger must be used within Tabs");
22
- const o = n.value === t, c = `${n.baseId}-trigger-${t}`, b = `${n.baseId}-content-${t}`, u = (g) => {
23
- n.onChange(t), i?.(g);
19
+ ), h = ({ value: e, className: n, children: i, onClick: r, ...a }) => {
20
+ const s = f(p);
21
+ if (!s) throw new Error("TabsTrigger must be used within Tabs");
22
+ const o = s.value === e, c = `${s.baseId}-trigger-${e}`, b = `${s.baseId}-content-${e}`, u = (g) => {
23
+ s.onChange(e), r?.(g);
24
24
  };
25
25
  return /* @__PURE__ */ l(
26
26
  "button",
@@ -32,56 +32,61 @@ const p = v(null), T = ({ defaultValue: t, value: s, onValueChange: r, children:
32
32
  id: c,
33
33
  tabIndex: o ? 0 : -1,
34
34
  "data-state": o ? "active" : "inactive",
35
- className: d("ui-tabs-trigger", s),
35
+ className: d("ui-tabs-trigger", n),
36
36
  onClick: u,
37
37
  ...a,
38
- children: r
38
+ children: i
39
39
  }
40
40
  );
41
- }, C = ({ value: t, className: s, children: r, ...i }) => {
41
+ }, C = ({ value: e, className: n, children: i, ...r }) => {
42
42
  const a = f(p);
43
43
  if (!a) throw new Error("TabsContent must be used within Tabs");
44
- const n = a.value === t, o = `${a.baseId}-trigger-${t}`, c = `${a.baseId}-content-${t}`;
45
- return n ? /* @__PURE__ */ l(
44
+ const s = a.value === e, o = `${a.baseId}-trigger-${e}`, c = `${a.baseId}-content-${e}`;
45
+ return s ? /* @__PURE__ */ l(
46
46
  "div",
47
47
  {
48
48
  role: "tabpanel",
49
49
  id: c,
50
50
  "aria-labelledby": o,
51
51
  tabIndex: 0,
52
- className: d("ui-tabs-content", s),
53
- ...i,
54
- children: r
52
+ className: d("ui-tabs-content", n),
53
+ ...r,
54
+ children: i
55
55
  }
56
56
  ) : null;
57
- }, L = Object.assign(T, {
58
- List: m,
57
+ }, k = Object.assign(m, {
58
+ List: T,
59
59
  Trigger: h,
60
60
  Content: C
61
61
  });
62
- T.displayName = "Tabs";
63
- m.displayName = "TabsList";
62
+ m.displayName = "Tabs";
63
+ T.displayName = "TabsList";
64
64
  h.displayName = "TabsTrigger";
65
65
  C.displayName = "TabsContent";
66
- T.propTypes = {
67
- defaultValue: e.string,
68
- value: e.string,
69
- onValueChange: e.func,
70
- children: e.node,
71
- className: e.string
72
- };
73
66
  m.propTypes = {
74
- children: e.node,
75
- variant: e.oneOf(["line", "pills"])
67
+ defaultValue: t.string,
68
+ value: t.string,
69
+ onValueChange: t.func,
70
+ children: t.node,
71
+ className: t.string
72
+ };
73
+ T.propTypes = {
74
+ children: t.node,
75
+ variant: t.oneOf(["line", "pills"]),
76
+ className: t.string
76
77
  };
77
78
  h.propTypes = {
78
- value: e.string.isRequired,
79
- children: e.node
79
+ value: t.string.isRequired,
80
+ children: t.node,
81
+ className: t.string,
82
+ onClick: t.func,
83
+ disabled: t.bool
80
84
  };
81
85
  C.propTypes = {
82
- value: e.string.isRequired,
83
- children: e.node
86
+ value: t.string.isRequired,
87
+ children: t.node,
88
+ className: t.string
84
89
  };
85
90
  export {
86
- L as Tabs
91
+ k as Tabs
87
92
  };
@@ -1,9 +1,9 @@
1
- import { HTMLAttributes } from 'react';
1
+ import { CSSProperties, ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
2
2
 
3
3
  /**
4
4
  * Heading typography component properties.
5
5
  */
6
- export interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
6
+ export interface HeadingProps {
7
7
  /**
8
8
  * The heading level (h1-h6).
9
9
  * @default 1
@@ -17,5 +17,9 @@ export interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
17
17
  * Clamps the text to a specific number of lines.
18
18
  */
19
19
  lines?: number;
20
+ children?: ReactNode;
21
+ className?: string;
22
+ style?: CSSProperties;
23
+ id?: string;
20
24
  }
21
- export declare const Heading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
25
+ export declare const Heading: ForwardRefExoticComponent<HeadingProps & RefAttributes<HTMLHeadingElement>>;
@@ -1,35 +1,39 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import { forwardRef as l } from "react";
3
- import { clsx as d } from "clsx";
4
- import * as t from "prop-types";
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { forwardRef as u } from "react";
3
+ import { clsx as f } from "clsx";
4
+ import * as e from "prop-types";
5
5
  /* empty css */
6
- const a = l(
7
- ({ className: i, children: m, level: e = 1, truncate: p, lines: o, style: r, ...n }, c) => {
8
- const s = `h${e}`, u = o ? { ...r, "--ui-line-clamp": o } : r;
9
- return /* @__PURE__ */ f(
10
- s,
6
+ const i = u(
7
+ ({ className: n, children: a, level: o = 1, truncate: m, lines: t, style: r, ...p }, s) => {
8
+ const c = `h${o}`, l = t ? { ...r, "--ui-line-clamp": t } : r;
9
+ return /* @__PURE__ */ d(
10
+ c,
11
11
  {
12
- ref: c,
13
- className: d(
12
+ ref: s,
13
+ className: f(
14
14
  "ui-heading",
15
- `ui-heading-h${e}`,
16
- p && "ui-text-truncate",
17
- o && "ui-text-clamp",
18
- i
15
+ `ui-heading-h${o}`,
16
+ m && "ui-text-truncate",
17
+ t && "ui-text-clamp",
18
+ n
19
19
  ),
20
- style: u,
21
- ...n,
22
- children: m
20
+ style: l,
21
+ ...p,
22
+ children: a
23
23
  }
24
24
  );
25
25
  }
26
26
  );
27
- a.displayName = "Heading";
28
- a.propTypes = {
29
- level: t.oneOf([1, 2, 3, 4, 5, 6]),
30
- truncate: t.bool,
31
- lines: t.number
27
+ i.displayName = "Heading";
28
+ i.propTypes = {
29
+ level: e.oneOf([1, 2, 3, 4, 5, 6]),
30
+ truncate: e.bool,
31
+ lines: e.number,
32
+ children: e.node,
33
+ className: e.string,
34
+ style: e.object,
35
+ id: e.string
32
36
  };
33
37
  export {
34
- a as Heading
38
+ i as Heading
35
39
  };
@@ -1,9 +1,9 @@
1
- import { HTMLAttributes, ElementType } from 'react';
1
+ import { ElementType, CSSProperties, ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
2
2
 
3
3
  /**
4
4
  * Text typography component properties.
5
5
  */
6
- export interface TextProps extends HTMLAttributes<HTMLElement> {
6
+ export interface TextProps {
7
7
  /**
8
8
  * The value scale variant.
9
9
  * @default 'body'
@@ -30,5 +30,9 @@ export interface TextProps extends HTMLAttributes<HTMLElement> {
30
30
  * @default 'p'
31
31
  */
32
32
  as?: ElementType;
33
+ children?: ReactNode;
34
+ className?: string;
35
+ style?: CSSProperties;
36
+ id?: string;
33
37
  }
34
- export declare const Text: import('react').ForwardRefExoticComponent<TextProps & import('react').RefAttributes<HTMLElement>>;
38
+ export declare const Text: ForwardRefExoticComponent<TextProps & RefAttributes<HTMLElement>>;
@@ -1,27 +1,27 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { forwardRef as f } from "react";
3
- import { clsx as b } from "clsx";
1
+ import { jsx as x } from "react/jsx-runtime";
2
+ import { forwardRef as b } from "react";
3
+ import { clsx as f } from "clsx";
4
4
  import * as t from "prop-types";
5
5
  /* empty css */
6
- const r = f(
7
- ({ className: a, children: i, variant: p = "body", weight: o, muted: l, truncate: n, lines: e, as: u = "p", style: m, ...s }, x) => {
8
- const c = e ? { ...m, "--ui-line-clamp": e } : m;
9
- return /* @__PURE__ */ d(
10
- u,
6
+ const r = b(
7
+ ({ className: i, children: a, variant: l = "body", weight: o, muted: n, truncate: p, lines: e, as: s = "p", style: m, ...u }, c) => {
8
+ const d = e ? { ...m, "--ui-line-clamp": e } : m;
9
+ return /* @__PURE__ */ x(
10
+ s,
11
11
  {
12
- ref: x,
13
- className: b(
12
+ ref: c,
13
+ className: f(
14
14
  "ui-text",
15
- `ui-text-${p}`,
15
+ `ui-text-${l}`,
16
16
  o && `ui-text-weight-${o}`,
17
- l && "ui-text-muted",
18
- n && "ui-text-truncate",
17
+ n && "ui-text-muted",
18
+ p && "ui-text-truncate",
19
19
  e && "ui-text-clamp",
20
- a
20
+ i
21
21
  ),
22
- style: c,
23
- ...s,
24
- children: i
22
+ style: d,
23
+ ...u,
24
+ children: a
25
25
  }
26
26
  );
27
27
  }
@@ -33,7 +33,11 @@ r.propTypes = {
33
33
  muted: t.bool,
34
34
  truncate: t.bool,
35
35
  lines: t.number,
36
- as: t.elementType
36
+ as: t.elementType,
37
+ children: t.node,
38
+ className: t.string,
39
+ style: t.object,
40
+ id: t.string
37
41
  };
38
42
  export {
39
43
  r as Text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinloger/dev-ui",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.cjs",
6
6
  "module": "./dist/esm/index.js",
@@ -26,8 +26,7 @@
26
26
  "dependencies": {
27
27
  "bootstrap": "^5.3.8",
28
28
  "clsx": "^2.1.0",
29
- "prop-types": "^15.8.1",
30
- "react-bootstrap": "^2.10.10"
29
+ "prop-types": "^15.8.1"
31
30
  },
32
31
  "devDependencies": {
33
32
  "@eslint/js": "^9.39.1",