@trindtech/ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/index.d.mts +31 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +51 -0
package/README.md
ADDED
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type Size = "sm" | "md" | "lg" | "xl";
|
|
4
|
+
type Radius = "sm" | "md" | "lg" | "xl" | "full";
|
|
5
|
+
type Fw = "medium" | "semibold" | "bold";
|
|
6
|
+
type Fs = "xs" | "sm" | "base" | "lg" | "xl";
|
|
7
|
+
type Variant = "solid" | "outline";
|
|
8
|
+
interface ButtonProps {
|
|
9
|
+
buttonType?: "button" | "link";
|
|
10
|
+
variant?: Variant;
|
|
11
|
+
bgColor?: string;
|
|
12
|
+
textColor?: string;
|
|
13
|
+
borderColor?: string;
|
|
14
|
+
size?: Size;
|
|
15
|
+
rounded?: Radius;
|
|
16
|
+
fontWeight?: Fw;
|
|
17
|
+
fontSize?: Fs;
|
|
18
|
+
label: string;
|
|
19
|
+
onClick?: () => void;
|
|
20
|
+
href?: string;
|
|
21
|
+
icon?: React.ReactNode;
|
|
22
|
+
iconPosition?: "left" | "right";
|
|
23
|
+
isLoading?: boolean;
|
|
24
|
+
isDisabled?: boolean;
|
|
25
|
+
hover?: boolean;
|
|
26
|
+
id: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
declare const Button: React.FC<ButtonProps>;
|
|
30
|
+
|
|
31
|
+
export { Button, type ButtonProps };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type Size = "sm" | "md" | "lg" | "xl";
|
|
4
|
+
type Radius = "sm" | "md" | "lg" | "xl" | "full";
|
|
5
|
+
type Fw = "medium" | "semibold" | "bold";
|
|
6
|
+
type Fs = "xs" | "sm" | "base" | "lg" | "xl";
|
|
7
|
+
type Variant = "solid" | "outline";
|
|
8
|
+
interface ButtonProps {
|
|
9
|
+
buttonType?: "button" | "link";
|
|
10
|
+
variant?: Variant;
|
|
11
|
+
bgColor?: string;
|
|
12
|
+
textColor?: string;
|
|
13
|
+
borderColor?: string;
|
|
14
|
+
size?: Size;
|
|
15
|
+
rounded?: Radius;
|
|
16
|
+
fontWeight?: Fw;
|
|
17
|
+
fontSize?: Fs;
|
|
18
|
+
label: string;
|
|
19
|
+
onClick?: () => void;
|
|
20
|
+
href?: string;
|
|
21
|
+
icon?: React.ReactNode;
|
|
22
|
+
iconPosition?: "left" | "right";
|
|
23
|
+
isLoading?: boolean;
|
|
24
|
+
isDisabled?: boolean;
|
|
25
|
+
hover?: boolean;
|
|
26
|
+
id: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
declare const Button: React.FC<ButtonProps>;
|
|
30
|
+
|
|
31
|
+
export { Button, type ButtonProps };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var u=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var _=Object.prototype.hasOwnProperty;var V=(n,t)=>{for(var s in t)u(n,s,{get:t[s],enumerable:!0})},W=(n,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of P(t))!_.call(n,e)&&e!==s&&u(n,e,{get:()=>t[e],enumerable:!(i=N(t,e))||i.enumerable});return n};var j=n=>W(u({},"__esModule",{value:!0}),n);var E={};V(E,{Button:()=>p});module.exports=j(E);var a=require("react/jsx-runtime"),I={sm:"px-2 py-1",md:"px-4 py-2",lg:"px-6 py-3",xl:"px-8 py-4"},T={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},q={medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},A={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl"},p=({buttonType:n="button",variant:t="solid",bgColor:s,textColor:i,borderColor:e,size:g="lg",rounded:x="full",fontWeight:y="semibold",fontSize:R="base",label:h,onClick:z,href:B,icon:d,iconPosition:f="left",isLoading:o,isDisabled:l,id:r,className:F})=>{let S=s!=null?s:t==="solid"?"#3b82f6":"transparent",v=i!=null?i:t==="solid"?"#ffffff":e!=null?e:"#3b82f6",k=e!=null?e:t==="outline"?"#3b82f6":"transparent",b={"--btn-bg":S,"--btn-text":v,"--btn-border":k},c=["flex justify-center items-center gap-2 min-w-12 transition-all duration-300","bg-[var(--btn-bg)]","text-[var(--btn-text)]","border","border-[var(--btn-border)]","hover:opacity-90","disabled:opacity-60","disabled:cursor-not-allowed",I[g],T[x],q[y],A[R],F].filter(Boolean).join(" "),m=(0,a.jsxs)(a.Fragment,{children:[d&&f==="left"&&d,o?"Carregando...":h,d&&f==="right"&&d]});return n==="link"?(0,a.jsx)("a",{href:B||"#",id:r,"data-testid":r,className:c,style:b,"aria-disabled":o||l||void 0,tabIndex:o||l?-1:void 0,onClick:w=>{(o||l)&&w.preventDefault()},children:m}):(0,a.jsx)("button",{type:"button",id:r,"data-testid":r,className:c,style:b,onClick:z,disabled:o||l,"aria-busy":o||void 0,children:m})};0&&(module.exports={Button});
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/components/Button.tsx"],"sourcesContent":["export { Button } from \"./components/Button\";\nexport type { ButtonProps } from \"./components/Button\";\n","import * as React from \"react\";\n\ntype Size = \"sm\" | \"md\" | \"lg\" | \"xl\";\ntype Radius = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"full\";\ntype Fw = \"medium\" | \"semibold\" | \"bold\";\ntype Fs = \"xs\" | \"sm\" | \"base\" | \"lg\" | \"xl\";\ntype Variant = \"solid\" | \"outline\";\n\nexport interface ButtonProps {\n buttonType?: \"button\" | \"link\";\n variant?: Variant;\n bgColor?: string;\n textColor?: string;\n borderColor?: string;\n size?: Size;\n rounded?: Radius;\n fontWeight?: Fw;\n fontSize?: Fs;\n\n label: string;\n onClick?: () => void;\n href?: string;\n icon?: React.ReactNode;\n iconPosition?: \"left\" | \"right\";\n isLoading?: boolean;\n isDisabled?: boolean;\n hover?: boolean;\n id: string;\n className?: string;\n}\n\nconst sizes: Record<Size, string> = {\n sm: \"px-2 py-1\",\n md: \"px-4 py-2\",\n lg: \"px-6 py-3\",\n xl: \"px-8 py-4\",\n};\nconst radius: Record<Radius, string> = {\n sm: \"rounded-sm\",\n md: \"rounded-md\",\n lg: \"rounded-lg\",\n xl: \"rounded-xl\",\n full: \"rounded-full\",\n};\nconst fontWeights: Record<Fw, string> = {\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n};\nconst fontSizes: Record<Fs, string> = {\n xs: \"text-xs\",\n sm: \"text-sm\",\n base: \"text-base\",\n lg: \"text-lg\",\n xl: \"text-xl\",\n};\n\nexport const Button: React.FC<ButtonProps> = ({\n buttonType = \"button\",\n variant = \"solid\",\n bgColor,\n textColor,\n borderColor,\n size = \"lg\",\n rounded = \"full\",\n fontWeight = \"semibold\",\n fontSize = \"base\",\n label,\n onClick,\n href,\n icon,\n iconPosition = \"left\",\n isLoading,\n isDisabled,\n id,\n className,\n}) => {\n const _bg = bgColor ?? (variant === \"solid\" ? \"#3b82f6\" : \"transparent\");\n const _text =\n textColor ?? (variant === \"solid\" ? \"#ffffff\" : borderColor ?? \"#3b82f6\");\n const _border =\n borderColor ?? (variant === \"outline\" ? \"#3b82f6\" : \"transparent\");\n\n const style = {\n [\"--btn-bg\" as string]: _bg,\n [\"--btn-text\" as string]: _text,\n [\"--btn-border\" as string]: _border,\n } as React.CSSProperties;\n\n const base =\n \"flex justify-center items-center gap-2 min-w-12 transition-all duration-300\";\n\n const classes = [\n base,\n \"bg-[var(--btn-bg)]\",\n \"text-[var(--btn-text)]\",\n \"border\",\n \"border-[var(--btn-border)]\",\n \"hover:opacity-90\",\n \"disabled:opacity-60\",\n \"disabled:cursor-not-allowed\",\n sizes[size],\n radius[rounded],\n fontWeights[fontWeight],\n fontSizes[fontSize],\n className,\n ]\n .filter(Boolean)\n .join(\" \");\n\n const content = (\n <>\n {icon && iconPosition === \"left\" && icon}\n {isLoading ? \"Carregando...\" : label}\n {icon && iconPosition === \"right\" && icon}\n </>\n );\n\n if (buttonType === \"link\") {\n return (\n <a\n href={href || \"#\"}\n id={id}\n data-testid={id}\n className={classes}\n style={style}\n aria-disabled={isLoading || isDisabled || undefined}\n tabIndex={isLoading || isDisabled ? -1 : undefined}\n onClick={(e) => {\n if (isLoading || isDisabled) e.preventDefault();\n }}\n >\n {content}\n </a>\n );\n }\n\n return (\n <button\n type=\"button\"\n id={id}\n data-testid={id}\n className={classes}\n style={style}\n onClick={onClick}\n disabled={isLoading || isDisabled}\n aria-busy={isLoading || undefined}\n >\n {content}\n </button>\n );\n};\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,YAAAE,IAAA,eAAAC,EAAAH,GC+GI,IAAAI,EAAA,6BAhFEC,EAA8B,CAClC,GAAI,YACJ,GAAI,YACJ,GAAI,YACJ,GAAI,WACN,EACMC,EAAiC,CACrC,GAAI,aACJ,GAAI,aACJ,GAAI,aACJ,GAAI,aACJ,KAAM,cACR,EACMC,EAAkC,CACtC,OAAQ,cACR,SAAU,gBACV,KAAM,WACR,EACMC,EAAgC,CACpC,GAAI,UACJ,GAAI,UACJ,KAAM,YACN,GAAI,UACJ,GAAI,SACN,EAEaC,EAAgC,CAAC,CAC5C,WAAAC,EAAa,SACb,QAAAC,EAAU,QACV,QAAAC,EACA,UAAAC,EACA,YAAAC,EACA,KAAAC,EAAO,KACP,QAAAC,EAAU,OACV,WAAAC,EAAa,WACb,SAAAC,EAAW,OACX,MAAAC,EACA,QAAAC,EACA,KAAAC,EACA,KAAAC,EACA,aAAAC,EAAe,OACf,UAAAC,EACA,WAAAC,EACA,GAAAC,EACA,UAAAC,CACF,IAAM,CACJ,IAAMC,EAAMhB,GAAA,KAAAA,EAAYD,IAAY,QAAU,UAAY,cACpDkB,EACJhB,GAAA,KAAAA,EAAcF,IAAY,QAAU,UAAYG,GAAA,KAAAA,EAAe,UAC3DgB,EACJhB,GAAA,KAAAA,EAAgBH,IAAY,UAAY,UAAY,cAEhDoB,EAAQ,CACX,WAAuBH,EACvB,aAAyBC,EACzB,eAA2BC,CAC9B,EAKME,EAAU,CAFd,8EAIA,qBACA,yBACA,SACA,6BACA,mBACA,sBACA,8BACA3B,EAAMU,CAAI,EACVT,EAAOU,CAAO,EACdT,EAAYU,CAAU,EACtBT,EAAUU,CAAQ,EAClBS,CACF,EACG,OAAO,OAAO,EACd,KAAK,GAAG,EAELM,KACJ,oBACG,UAAAX,GAAQC,IAAiB,QAAUD,EACnCE,EAAY,gBAAkBL,EAC9BG,GAAQC,IAAiB,SAAWD,GACvC,EAGF,OAAIZ,IAAe,UAEf,OAAC,KACC,KAAMW,GAAQ,IACd,GAAIK,EACJ,cAAaA,EACb,UAAWM,EACX,MAAOD,EACP,gBAAeP,GAAaC,GAAc,OAC1C,SAAUD,GAAaC,EAAa,GAAK,OACzC,QAAUS,GAAM,EACVV,GAAaC,IAAYS,EAAE,eAAe,CAChD,EAEC,SAAAD,EACH,KAKF,OAAC,UACC,KAAK,SACL,GAAIP,EACJ,cAAaA,EACb,UAAWM,EACX,MAAOD,EACP,QAASX,EACT,SAAUI,GAAaC,EACvB,YAAWD,GAAa,OAEvB,SAAAS,EACH,CAEJ","names":["index_exports","__export","Button","__toCommonJS","import_jsx_runtime","sizes","radius","fontWeights","fontSizes","Button","buttonType","variant","bgColor","textColor","borderColor","size","rounded","fontWeight","fontSize","label","onClick","href","icon","iconPosition","isLoading","isDisabled","id","className","_bg","_text","_border","style","classes","content","e"]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Fragment as V,jsx as b,jsxs as W}from"react/jsx-runtime";var k={sm:"px-2 py-1",md:"px-4 py-2",lg:"px-6 py-3",xl:"px-8 py-4"},w={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},N={medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},P={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl"},_=({buttonType:c="button",variant:i="solid",bgColor:o,textColor:d,borderColor:t,size:m="lg",rounded:p="full",fontWeight:g="semibold",fontSize:x="base",label:y,onClick:R,href:h,icon:n,iconPosition:l="left",isLoading:e,isDisabled:s,id:a,className:z})=>{let B=o!=null?o:i==="solid"?"#3b82f6":"transparent",F=d!=null?d:i==="solid"?"#ffffff":t!=null?t:"#3b82f6",S=t!=null?t:i==="outline"?"#3b82f6":"transparent",r={"--btn-bg":B,"--btn-text":F,"--btn-border":S},u=["flex justify-center items-center gap-2 min-w-12 transition-all duration-300","bg-[var(--btn-bg)]","text-[var(--btn-text)]","border","border-[var(--btn-border)]","hover:opacity-90","disabled:opacity-60","disabled:cursor-not-allowed",k[m],w[p],N[g],P[x],z].filter(Boolean).join(" "),f=W(V,{children:[n&&l==="left"&&n,e?"Carregando...":y,n&&l==="right"&&n]});return c==="link"?b("a",{href:h||"#",id:a,"data-testid":a,className:u,style:r,"aria-disabled":e||s||void 0,tabIndex:e||s?-1:void 0,onClick:v=>{(e||s)&&v.preventDefault()},children:f}):b("button",{type:"button",id:a,"data-testid":a,className:u,style:r,onClick:R,disabled:e||s,"aria-busy":e||void 0,children:f})};export{_ as Button};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Button.tsx"],"sourcesContent":["import * as React from \"react\";\n\ntype Size = \"sm\" | \"md\" | \"lg\" | \"xl\";\ntype Radius = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"full\";\ntype Fw = \"medium\" | \"semibold\" | \"bold\";\ntype Fs = \"xs\" | \"sm\" | \"base\" | \"lg\" | \"xl\";\ntype Variant = \"solid\" | \"outline\";\n\nexport interface ButtonProps {\n buttonType?: \"button\" | \"link\";\n variant?: Variant;\n bgColor?: string;\n textColor?: string;\n borderColor?: string;\n size?: Size;\n rounded?: Radius;\n fontWeight?: Fw;\n fontSize?: Fs;\n\n label: string;\n onClick?: () => void;\n href?: string;\n icon?: React.ReactNode;\n iconPosition?: \"left\" | \"right\";\n isLoading?: boolean;\n isDisabled?: boolean;\n hover?: boolean;\n id: string;\n className?: string;\n}\n\nconst sizes: Record<Size, string> = {\n sm: \"px-2 py-1\",\n md: \"px-4 py-2\",\n lg: \"px-6 py-3\",\n xl: \"px-8 py-4\",\n};\nconst radius: Record<Radius, string> = {\n sm: \"rounded-sm\",\n md: \"rounded-md\",\n lg: \"rounded-lg\",\n xl: \"rounded-xl\",\n full: \"rounded-full\",\n};\nconst fontWeights: Record<Fw, string> = {\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n};\nconst fontSizes: Record<Fs, string> = {\n xs: \"text-xs\",\n sm: \"text-sm\",\n base: \"text-base\",\n lg: \"text-lg\",\n xl: \"text-xl\",\n};\n\nexport const Button: React.FC<ButtonProps> = ({\n buttonType = \"button\",\n variant = \"solid\",\n bgColor,\n textColor,\n borderColor,\n size = \"lg\",\n rounded = \"full\",\n fontWeight = \"semibold\",\n fontSize = \"base\",\n label,\n onClick,\n href,\n icon,\n iconPosition = \"left\",\n isLoading,\n isDisabled,\n id,\n className,\n}) => {\n const _bg = bgColor ?? (variant === \"solid\" ? \"#3b82f6\" : \"transparent\");\n const _text =\n textColor ?? (variant === \"solid\" ? \"#ffffff\" : borderColor ?? \"#3b82f6\");\n const _border =\n borderColor ?? (variant === \"outline\" ? \"#3b82f6\" : \"transparent\");\n\n const style = {\n [\"--btn-bg\" as string]: _bg,\n [\"--btn-text\" as string]: _text,\n [\"--btn-border\" as string]: _border,\n } as React.CSSProperties;\n\n const base =\n \"flex justify-center items-center gap-2 min-w-12 transition-all duration-300\";\n\n const classes = [\n base,\n \"bg-[var(--btn-bg)]\",\n \"text-[var(--btn-text)]\",\n \"border\",\n \"border-[var(--btn-border)]\",\n \"hover:opacity-90\",\n \"disabled:opacity-60\",\n \"disabled:cursor-not-allowed\",\n sizes[size],\n radius[rounded],\n fontWeights[fontWeight],\n fontSizes[fontSize],\n className,\n ]\n .filter(Boolean)\n .join(\" \");\n\n const content = (\n <>\n {icon && iconPosition === \"left\" && icon}\n {isLoading ? \"Carregando...\" : label}\n {icon && iconPosition === \"right\" && icon}\n </>\n );\n\n if (buttonType === \"link\") {\n return (\n <a\n href={href || \"#\"}\n id={id}\n data-testid={id}\n className={classes}\n style={style}\n aria-disabled={isLoading || isDisabled || undefined}\n tabIndex={isLoading || isDisabled ? -1 : undefined}\n onClick={(e) => {\n if (isLoading || isDisabled) e.preventDefault();\n }}\n >\n {content}\n </a>\n );\n }\n\n return (\n <button\n type=\"button\"\n id={id}\n data-testid={id}\n className={classes}\n style={style}\n onClick={onClick}\n disabled={isLoading || isDisabled}\n aria-busy={isLoading || undefined}\n >\n {content}\n </button>\n );\n};\n"],"mappings":"AA+GI,mBAAAA,EASE,OAAAC,EATF,QAAAC,MAAA,oBAhFJ,IAAMC,EAA8B,CAClC,GAAI,YACJ,GAAI,YACJ,GAAI,YACJ,GAAI,WACN,EACMC,EAAiC,CACrC,GAAI,aACJ,GAAI,aACJ,GAAI,aACJ,GAAI,aACJ,KAAM,cACR,EACMC,EAAkC,CACtC,OAAQ,cACR,SAAU,gBACV,KAAM,WACR,EACMC,EAAgC,CACpC,GAAI,UACJ,GAAI,UACJ,KAAM,YACN,GAAI,UACJ,GAAI,SACN,EAEaC,EAAgC,CAAC,CAC5C,WAAAC,EAAa,SACb,QAAAC,EAAU,QACV,QAAAC,EACA,UAAAC,EACA,YAAAC,EACA,KAAAC,EAAO,KACP,QAAAC,EAAU,OACV,WAAAC,EAAa,WACb,SAAAC,EAAW,OACX,MAAAC,EACA,QAAAC,EACA,KAAAC,EACA,KAAAC,EACA,aAAAC,EAAe,OACf,UAAAC,EACA,WAAAC,EACA,GAAAC,EACA,UAAAC,CACF,IAAM,CACJ,IAAMC,EAAMhB,GAAA,KAAAA,EAAYD,IAAY,QAAU,UAAY,cACpDkB,EACJhB,GAAA,KAAAA,EAAcF,IAAY,QAAU,UAAYG,GAAA,KAAAA,EAAe,UAC3DgB,EACJhB,GAAA,KAAAA,EAAgBH,IAAY,UAAY,UAAY,cAEhDoB,EAAQ,CACX,WAAuBH,EACvB,aAAyBC,EACzB,eAA2BC,CAC9B,EAKME,EAAU,CAFd,8EAIA,qBACA,yBACA,SACA,6BACA,mBACA,sBACA,8BACA3B,EAAMU,CAAI,EACVT,EAAOU,CAAO,EACdT,EAAYU,CAAU,EACtBT,EAAUU,CAAQ,EAClBS,CACF,EACG,OAAO,OAAO,EACd,KAAK,GAAG,EAELM,EACJ7B,EAAAF,EAAA,CACG,UAAAoB,GAAQC,IAAiB,QAAUD,EACnCE,EAAY,gBAAkBL,EAC9BG,GAAQC,IAAiB,SAAWD,GACvC,EAGF,OAAIZ,IAAe,OAEfP,EAAC,KACC,KAAMkB,GAAQ,IACd,GAAIK,EACJ,cAAaA,EACb,UAAWM,EACX,MAAOD,EACP,gBAAeP,GAAaC,GAAc,OAC1C,SAAUD,GAAaC,EAAa,GAAK,OACzC,QAAUS,GAAM,EACVV,GAAaC,IAAYS,EAAE,eAAe,CAChD,EAEC,SAAAD,EACH,EAKF9B,EAAC,UACC,KAAK,SACL,GAAIuB,EACJ,cAAaA,EACb,UAAWM,EACX,MAAOD,EACP,QAASX,EACT,SAAUI,GAAaC,EACvB,YAAWD,GAAa,OAEvB,SAAAS,EACH,CAEJ","names":["Fragment","jsx","jsxs","sizes","radius","fontWeights","fontSizes","Button","buttonType","variant","bgColor","textColor","borderColor","size","rounded","fontWeight","fontSize","label","onClick","href","icon","iconPosition","isLoading","isDisabled","id","className","_bg","_text","_border","style","classes","content","e"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@trindtech/ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "UI components for React apps by Trindtech.",
|
|
7
|
+
"homepage": "https://github.com/trindtech/trindtech-ui#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/trindtech/trindtech-ui.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/trindtech/trindtech-ui/issues"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/index.cjs",
|
|
16
|
+
"module": "dist/index.mjs",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.mjs",
|
|
22
|
+
"require": "./dist/index.cjs"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"README.md"
|
|
28
|
+
],
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=18"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsup",
|
|
35
|
+
"dev": "tsup --watch",
|
|
36
|
+
"prepublishOnly": "npm run build"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"react": ">=18",
|
|
40
|
+
"react-dom": ">=18"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/react": "^18.2.0",
|
|
44
|
+
"@types/react-dom": "^18.2.0",
|
|
45
|
+
"typescript": "^5.5.0",
|
|
46
|
+
"tsup": "^8.0.0"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
}
|
|
51
|
+
}
|