@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.
- package/dist/cjs/components/Badge/Badge.cjs +1 -1
- package/dist/cjs/components/Button/Button.cjs +1 -1
- package/dist/cjs/components/Card/Card.cjs +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/cjs/components/Input/Input.cjs +1 -1
- package/dist/cjs/components/Radio/Radio.cjs +1 -1
- package/dist/cjs/components/Switch/Switch.cjs +1 -1
- package/dist/cjs/components/Table/Table.cjs +1 -1
- package/dist/cjs/components/Tabs/Tabs.cjs +1 -1
- package/dist/cjs/components/Typography/Heading.cjs +1 -1
- package/dist/cjs/components/Typography/Text.cjs +1 -1
- package/dist/esm/components/Badge/Badge.d.ts +5 -3
- package/dist/esm/components/Badge/Badge.js +10 -8
- package/dist/esm/components/Button/Button.d.ts +31 -3
- package/dist/esm/components/Button/Button.js +19 -12
- package/dist/esm/components/Card/Card.d.ts +6 -3
- package/dist/esm/components/Card/Card.js +16 -13
- package/dist/esm/components/Checkbox/Checkbox.d.ts +12 -3
- package/dist/esm/components/Checkbox/Checkbox.js +25 -16
- package/dist/esm/components/Input/Input.d.ts +25 -3
- package/dist/esm/components/Input/Input.js +47 -25
- package/dist/esm/components/Radio/Radio.d.ts +12 -3
- package/dist/esm/components/Radio/Radio.js +29 -20
- package/dist/esm/components/Switch/Switch.d.ts +12 -3
- package/dist/esm/components/Switch/Switch.js +28 -19
- package/dist/esm/components/Table/Table.d.ts +5 -3
- package/dist/esm/components/Table/Table.js +6 -4
- package/dist/esm/components/Tabs/Tabs.d.ts +14 -4
- package/dist/esm/components/Tabs/Tabs.js +46 -41
- package/dist/esm/components/Typography/Heading.d.ts +7 -3
- package/dist/esm/components/Typography/Heading.js +28 -24
- package/dist/esm/components/Typography/Text.d.ts +7 -3
- package/dist/esm/components/Typography/Text.js +22 -18
- package/package.json +2 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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"),
|
|
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
|
|
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"),
|
|
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
|
|
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
|
|
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"),
|
|
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
|
|
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"),
|
|
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"),
|
|
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"),
|
|
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 {
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Badge/Tag component properties.
|
|
5
5
|
*/
|
|
6
|
-
export interface BadgeProps
|
|
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:
|
|
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
|
|
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:
|
|
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:
|
|
11
|
-
className:
|
|
10
|
+
ref: p,
|
|
11
|
+
className: g(
|
|
12
12
|
"ui-badge",
|
|
13
|
-
`ui-badge-${
|
|
13
|
+
`ui-badge-${s}`,
|
|
14
14
|
`ui-badge-${i}`,
|
|
15
|
-
`ui-badge-${
|
|
15
|
+
`ui-badge-${d}`,
|
|
16
16
|
a
|
|
17
17
|
),
|
|
18
|
-
...
|
|
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 {
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, ReactNode, MouseEventHandler, CSSProperties } from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Button component properties.
|
|
5
5
|
*/
|
|
6
|
-
export interface ButtonProps
|
|
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:
|
|
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
|
|
3
|
-
import { clsx as
|
|
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
|
|
7
|
-
({ className:
|
|
8
|
-
const a =
|
|
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
|
-
|
|
12
|
-
t
|
|
12
|
+
s
|
|
13
13
|
);
|
|
14
|
-
return /* @__PURE__ */ m("button", { ref: i, className: a, ...
|
|
14
|
+
return /* @__PURE__ */ m("button", { ref: i, className: a, ...r });
|
|
15
15
|
}
|
|
16
16
|
);
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
30
|
+
t as Button
|
|
24
31
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, ForwardRefExoticComponent, RefAttributes, CSSProperties } from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Card component properties.
|
|
5
5
|
*/
|
|
6
|
-
interface CardProps
|
|
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:
|
|
23
|
+
export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement>>;
|
|
21
24
|
export {};
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
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
|
|
4
|
+
import * as r from "prop-types";
|
|
5
5
|
/* empty css */
|
|
6
|
-
const
|
|
7
|
-
({ className:
|
|
8
|
-
a && /* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
d && /* @__PURE__ */
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
title:
|
|
16
|
-
footer:
|
|
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
|
-
|
|
22
|
+
o as Card
|
|
20
23
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, ForwardRefExoticComponent, RefAttributes, ChangeEventHandler } from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Checkbox component properties.
|
|
5
5
|
*/
|
|
6
|
-
export interface CheckboxProps
|
|
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:
|
|
35
|
+
export declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as m, jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { clsx as
|
|
4
|
-
import * as
|
|
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 =
|
|
7
|
-
({ className: s, label: r, error:
|
|
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:
|
|
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__ */
|
|
18
|
+
/* @__PURE__ */ o(
|
|
19
19
|
"input",
|
|
20
20
|
{
|
|
21
21
|
type: "checkbox",
|
|
22
22
|
className: "ui-checkbox-input",
|
|
23
23
|
disabled: c,
|
|
24
|
-
ref:
|
|
24
|
+
ref: t,
|
|
25
25
|
...l
|
|
26
26
|
}
|
|
27
27
|
),
|
|
28
|
-
/* @__PURE__ */
|
|
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__ */
|
|
37
|
+
children: /* @__PURE__ */ o("polyline", { points: "20 6 9 17 4 12" })
|
|
38
38
|
}
|
|
39
39
|
) }),
|
|
40
|
-
r && /* @__PURE__ */
|
|
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:
|
|
48
|
-
error:
|
|
49
|
-
size:
|
|
50
|
-
variant:
|
|
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
|
|
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:
|
|
56
|
+
export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
|
|
35
57
|
export {};
|
|
@@ -1,39 +1,61 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { clsx as
|
|
4
|
-
import * as
|
|
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
|
|
7
|
-
({ className:
|
|
8
|
-
const
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
11
|
-
/* @__PURE__ */
|
|
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:
|
|
15
|
-
id:
|
|
16
|
-
className:
|
|
14
|
+
ref: f,
|
|
15
|
+
id: s,
|
|
16
|
+
className: r(
|
|
17
17
|
"ui-input",
|
|
18
|
-
`ui-input-${
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
`ui-input-${a}`,
|
|
19
|
+
i && "ui-input-error",
|
|
20
|
+
p
|
|
21
21
|
),
|
|
22
22
|
...d
|
|
23
23
|
}
|
|
24
24
|
),
|
|
25
|
-
|
|
25
|
+
o && /* @__PURE__ */ n("span", { className: r("ui-helper-text", i && "ui-helper-text-error"), children: o })
|
|
26
26
|
] });
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
label:
|
|
32
|
-
error:
|
|
33
|
-
helperText:
|
|
34
|
-
fullWidth:
|
|
35
|
-
size:
|
|
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
|
-
|
|
60
|
+
u as Input
|
|
39
61
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, ForwardRefExoticComponent, RefAttributes, ChangeEventHandler } from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Radio component properties.
|
|
5
5
|
*/
|
|
6
|
-
export interface RadioProps
|
|
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:
|
|
35
|
+
export declare const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<HTMLInputElement>>;
|
|
@@ -1,43 +1,52 @@
|
|
|
1
|
-
import { jsxs as
|
|
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
|
|
4
|
+
import * as r from "prop-types";
|
|
5
5
|
/* empty css */
|
|
6
|
-
const
|
|
7
|
-
({ className:
|
|
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-${
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
`ui-radio-${n}`,
|
|
14
|
+
i && "ui-radio-disabled",
|
|
15
|
+
s
|
|
16
16
|
),
|
|
17
17
|
children: [
|
|
18
|
-
/* @__PURE__ */
|
|
18
|
+
/* @__PURE__ */ o(
|
|
19
19
|
"input",
|
|
20
20
|
{
|
|
21
21
|
type: "radio",
|
|
22
22
|
className: "ui-radio-input",
|
|
23
|
-
disabled:
|
|
24
|
-
ref:
|
|
25
|
-
...
|
|
23
|
+
disabled: i,
|
|
24
|
+
ref: m,
|
|
25
|
+
...l
|
|
26
26
|
}
|
|
27
27
|
),
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
label:
|
|
37
|
-
error:
|
|
38
|
-
size:
|
|
39
|
-
variant:
|
|
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
|
-
|
|
51
|
+
e as Radio
|
|
43
52
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, ForwardRefExoticComponent, RefAttributes, ChangeEventHandler } from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Switch toggle component properties.
|
|
5
5
|
*/
|
|
6
|
-
export interface SwitchProps
|
|
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:
|
|
35
|
+
export declare const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLInputElement>>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
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
|
|
4
|
+
import * as e from "prop-types";
|
|
5
5
|
/* empty css */
|
|
6
|
-
const
|
|
7
|
-
({ className:
|
|
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
|
-
|
|
14
|
-
|
|
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:
|
|
24
|
-
ref:
|
|
23
|
+
disabled: r,
|
|
24
|
+
ref: l,
|
|
25
25
|
role: "switch",
|
|
26
|
-
...
|
|
26
|
+
...n
|
|
27
27
|
}
|
|
28
28
|
),
|
|
29
29
|
/* @__PURE__ */ s("span", { className: "ui-switch-track", children: /* @__PURE__ */ s("span", { className: "ui-switch-thumb" }) }),
|
|
30
|
-
|
|
30
|
+
i && /* @__PURE__ */ s("span", { className: "ui-switch-text", children: i })
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
33
|
)
|
|
34
34
|
);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
label:
|
|
38
|
-
error:
|
|
39
|
-
size:
|
|
40
|
-
variant:
|
|
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
|
-
|
|
52
|
+
a as Switch
|
|
44
53
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Table component properties.
|
|
5
5
|
*/
|
|
6
|
-
interface TableProps
|
|
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:
|
|
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 },
|
|
7
|
-
const
|
|
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:
|
|
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,
|
|
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
|
|
23
|
+
export interface TabsListProps {
|
|
24
24
|
children: ReactNode;
|
|
25
25
|
variant?: 'line' | 'pills';
|
|
26
|
+
className?: string;
|
|
26
27
|
}
|
|
27
|
-
export interface TabsTriggerProps
|
|
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
|
|
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
|
|
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
|
|
4
|
+
import * as t from "prop-types";
|
|
5
5
|
/* empty css */
|
|
6
|
-
const p =
|
|
7
|
-
const [
|
|
8
|
-
c || o(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:
|
|
11
|
-
},
|
|
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-${
|
|
16
|
-
...
|
|
17
|
-
children:
|
|
15
|
+
className: d("ui-tabs-list", `ui-tabs-list-${i}`, e),
|
|
16
|
+
...r,
|
|
17
|
+
children: n
|
|
18
18
|
}
|
|
19
|
-
), h = ({ value:
|
|
20
|
-
const
|
|
21
|
-
if (!
|
|
22
|
-
const o =
|
|
23
|
-
|
|
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",
|
|
35
|
+
className: d("ui-tabs-trigger", n),
|
|
36
36
|
onClick: u,
|
|
37
37
|
...a,
|
|
38
|
-
children:
|
|
38
|
+
children: i
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
}, C = ({ value:
|
|
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
|
|
45
|
-
return
|
|
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",
|
|
53
|
-
...
|
|
54
|
-
children:
|
|
52
|
+
className: d("ui-tabs-content", n),
|
|
53
|
+
...r,
|
|
54
|
+
children: i
|
|
55
55
|
}
|
|
56
56
|
) : null;
|
|
57
|
-
},
|
|
58
|
-
List:
|
|
57
|
+
}, k = Object.assign(m, {
|
|
58
|
+
List: T,
|
|
59
59
|
Trigger: h,
|
|
60
60
|
Content: C
|
|
61
61
|
});
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
75
|
-
|
|
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:
|
|
79
|
-
children:
|
|
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:
|
|
83
|
-
children:
|
|
86
|
+
value: t.string.isRequired,
|
|
87
|
+
children: t.node,
|
|
88
|
+
className: t.string
|
|
84
89
|
};
|
|
85
90
|
export {
|
|
86
|
-
|
|
91
|
+
k as Tabs
|
|
87
92
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties, ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Heading typography component properties.
|
|
5
5
|
*/
|
|
6
|
-
export interface HeadingProps
|
|
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:
|
|
25
|
+
export declare const Heading: ForwardRefExoticComponent<HeadingProps & RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1,35 +1,39 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { clsx as
|
|
4
|
-
import * as
|
|
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
|
|
7
|
-
({ className:
|
|
8
|
-
const
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
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:
|
|
13
|
-
className:
|
|
12
|
+
ref: s,
|
|
13
|
+
className: f(
|
|
14
14
|
"ui-heading",
|
|
15
|
-
`ui-heading-h${
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
`ui-heading-h${o}`,
|
|
16
|
+
m && "ui-text-truncate",
|
|
17
|
+
t && "ui-text-clamp",
|
|
18
|
+
n
|
|
19
19
|
),
|
|
20
|
-
style:
|
|
21
|
-
...
|
|
22
|
-
children:
|
|
20
|
+
style: l,
|
|
21
|
+
...p,
|
|
22
|
+
children: a
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
level:
|
|
30
|
-
truncate:
|
|
31
|
-
lines:
|
|
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
|
-
|
|
38
|
+
i as Heading
|
|
35
39
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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:
|
|
38
|
+
export declare const Text: ForwardRefExoticComponent<TextProps & RefAttributes<HTMLElement>>;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { clsx as
|
|
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 =
|
|
7
|
-
({ className:
|
|
8
|
-
const
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
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:
|
|
13
|
-
className:
|
|
12
|
+
ref: c,
|
|
13
|
+
className: f(
|
|
14
14
|
"ui-text",
|
|
15
|
-
`ui-text-${
|
|
15
|
+
`ui-text-${l}`,
|
|
16
16
|
o && `ui-text-weight-${o}`,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
n && "ui-text-muted",
|
|
18
|
+
p && "ui-text-truncate",
|
|
19
19
|
e && "ui-text-clamp",
|
|
20
|
-
|
|
20
|
+
i
|
|
21
21
|
),
|
|
22
|
-
style:
|
|
23
|
-
...
|
|
24
|
-
children:
|
|
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.
|
|
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",
|