@trindtech/ui 0.1.0 → 0.2.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/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
|
|
3
4
|
type Size = "sm" | "md" | "lg" | "xl";
|
|
4
5
|
type Radius = "sm" | "md" | "lg" | "xl" | "full";
|
|
@@ -28,4 +29,12 @@ interface ButtonProps {
|
|
|
28
29
|
}
|
|
29
30
|
declare const Button: React.FC<ButtonProps>;
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
interface StraightArrowLeftIconProps {
|
|
33
|
+
size?: number | string;
|
|
34
|
+
color?: string;
|
|
35
|
+
className?: string;
|
|
36
|
+
strokeWidth?: number;
|
|
37
|
+
}
|
|
38
|
+
declare const StraightArrowLeftIcon: (props: StraightArrowLeftIconProps) => react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
export { Button, type ButtonProps, StraightArrowLeftIcon, type StraightArrowLeftIconProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
|
|
3
4
|
type Size = "sm" | "md" | "lg" | "xl";
|
|
4
5
|
type Radius = "sm" | "md" | "lg" | "xl" | "full";
|
|
@@ -28,4 +29,12 @@ interface ButtonProps {
|
|
|
28
29
|
}
|
|
29
30
|
declare const Button: React.FC<ButtonProps>;
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
interface StraightArrowLeftIconProps {
|
|
33
|
+
size?: number | string;
|
|
34
|
+
color?: string;
|
|
35
|
+
className?: string;
|
|
36
|
+
strokeWidth?: number;
|
|
37
|
+
}
|
|
38
|
+
declare const StraightArrowLeftIcon: (props: StraightArrowLeftIconProps) => react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
export { Button, type ButtonProps, StraightArrowLeftIcon, type StraightArrowLeftIconProps };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var c=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var W=Object.prototype.hasOwnProperty;var A=(s,t)=>{for(var n in t)c(s,n,{get:t[n],enumerable:!0})},_=(s,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of I(t))!W.call(s,e)&&e!==n&&c(s,e,{get:()=>t[e],enumerable:!(o=P(t,e))||o.enumerable});return s};var j=s=>_(c({},"__esModule",{value:!0}),s);var q={};A(q,{Button:()=>b,StraightArrowLeftIcon:()=>x});module.exports=j(q);var r=require("react/jsx-runtime"),M={sm:"px-2 py-1",md:"px-4 py-2",lg:"px-6 py-3",xl:"px-8 py-4"},V={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},H={medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},T={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl"},b=({buttonType:s="button",variant:t="solid",bgColor:n,textColor:o,borderColor:e,size:h="lg",rounded:y="full",fontWeight:w="semibold",fontSize:k="base",label:R,onClick:S,href:v,icon:d,iconPosition:u="left",isLoading:i,isDisabled:l,id:f,className:z})=>{let B=n!=null?n:t==="solid"?"#3b82f6":"transparent",F=o!=null?o:t==="solid"?"#ffffff":e!=null?e:"#3b82f6",L=e!=null?e:t==="outline"?"#3b82f6":"transparent",p={"--btn-bg":B,"--btn-text":F,"--btn-border":L},g=["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",M[h],V[y],H[w],T[k],z].filter(Boolean).join(" "),m=(0,r.jsxs)(r.Fragment,{children:[d&&u==="left"&&d,i?"Carregando...":R,d&&u==="right"&&d]});return s==="link"?(0,r.jsx)("a",{href:v||"#",id:f,"data-testid":f,className:g,style:p,"aria-disabled":i||l||void 0,tabIndex:i||l?-1:void 0,onClick:N=>{(i||l)&&N.preventDefault()},children:m}):(0,r.jsx)("button",{type:"button",id:f,"data-testid":f,className:g,style:p,onClick:S,disabled:i||l,"aria-busy":i||void 0,children:m})};var a=require("react/jsx-runtime"),x=s=>{let{size:t=24,color:n="currentColor",className:o,strokeWidth:e=2}=s;return(0,a.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,children:[(0,a.jsx)("path",{d:"M19 12.0684H5",stroke:n,strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M12 19.0684L5 12.0684L12 5.06836",stroke:n,strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round"})]})};0&&(module.exports={Button,StraightArrowLeftIcon});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/components/
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/components/buttons/button/index.tsx","../src/components/icons/straight-arrow-left-icon/index.tsx"],"sourcesContent":["export * from \"./components/buttons\";\nexport * from \"./components/icons\";\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","export interface StraightArrowLeftIconProps {\n size?: number | string;\n color?: string;\n className?: string;\n strokeWidth?: number;\n}\n\nexport const StraightArrowLeftIcon = (props: StraightArrowLeftIconProps) => {\n const {\n size = 24,\n color = \"currentColor\",\n className,\n strokeWidth = 2,\n } = props;\n\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 25\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={className}\n >\n <path\n d=\"M19 12.0684H5\"\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M12 19.0684L5 12.0684L12 5.06836\"\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n};\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,YAAAE,EAAA,0BAAAC,IAAA,eAAAC,EAAAJ,GC+GI,IAAAK,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,ECvII,IAAAE,EAAA,6BATSC,EAAyBC,GAAsC,CAC1E,GAAM,CACJ,KAAAC,EAAO,GACP,MAAAC,EAAQ,eACR,UAAAC,EACA,YAAAC,EAAc,CAChB,EAAIJ,EAEJ,SACE,QAAC,OACC,MAAOC,EACP,OAAQA,EACR,QAAQ,YACR,KAAK,OACL,MAAM,6BACN,UAAWE,EAEX,oBAAC,QACC,EAAE,gBACF,OAAQD,EACR,YAAaE,EACb,cAAc,QACd,eAAe,QACjB,KACA,OAAC,QACC,EAAE,mCACF,OAAQF,EACR,YAAaE,EACb,cAAc,QACd,eAAe,QACjB,GACF,CAEJ","names":["index_exports","__export","Button","StraightArrowLeftIcon","__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","import_jsx_runtime","StraightArrowLeftIcon","props","size","color","className","strokeWidth"]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as W,jsx as p,jsxs as A}from"react/jsx-runtime";var F={sm:"px-2 py-1",md:"px-4 py-2",lg:"px-6 py-3",xl:"px-8 py-4"},L={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"},I=({buttonType:d="button",variant:e="solid",bgColor:s,textColor:o,borderColor:t,size:m="lg",rounded:b="full",fontWeight:x="semibold",fontSize:h="base",label:y,onClick:w,href:k,icon:r,iconPosition:l="left",isLoading:n,isDisabled:i,id:a,className:R})=>{let S=s!=null?s:e==="solid"?"#3b82f6":"transparent",v=o!=null?o:e==="solid"?"#ffffff":t!=null?t:"#3b82f6",z=t!=null?t:e==="outline"?"#3b82f6":"transparent",f={"--btn-bg":S,"--btn-text":v,"--btn-border":z},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",F[m],L[b],N[x],P[h],R].filter(Boolean).join(" "),u=A(W,{children:[r&&l==="left"&&r,n?"Carregando...":y,r&&l==="right"&&r]});return d==="link"?p("a",{href:k||"#",id:a,"data-testid":a,className:c,style:f,"aria-disabled":n||i||void 0,tabIndex:n||i?-1:void 0,onClick:B=>{(n||i)&&B.preventDefault()},children:u}):p("button",{type:"button",id:a,"data-testid":a,className:c,style:f,onClick:w,disabled:n||i,"aria-busy":n||void 0,children:u})};import{jsx as g,jsxs as j}from"react/jsx-runtime";var _=d=>{let{size:e=24,color:s="currentColor",className:o,strokeWidth:t=2}=d;return j("svg",{width:e,height:e,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,children:[g("path",{d:"M19 12.0684H5",stroke:s,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),g("path",{d:"M12 19.0684L5 12.0684L12 5.06836",stroke:s,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"})]})};export{I as Button,_ as StraightArrowLeftIcon};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/
|
|
1
|
+
{"version":3,"sources":["../src/components/buttons/button/index.tsx","../src/components/icons/straight-arrow-left-icon/index.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","export interface StraightArrowLeftIconProps {\n size?: number | string;\n color?: string;\n className?: string;\n strokeWidth?: number;\n}\n\nexport const StraightArrowLeftIcon = (props: StraightArrowLeftIconProps) => {\n const {\n size = 24,\n color = \"currentColor\",\n className,\n strokeWidth = 2,\n } = props;\n\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 25\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={className}\n >\n <path\n d=\"M19 12.0684H5\"\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M12 19.0684L5 12.0684L12 5.06836\"\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\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,ECvII,OAQE,OAAAE,EARF,QAAAC,MAAA,oBATG,IAAMC,EAAyBC,GAAsC,CAC1E,GAAM,CACJ,KAAAC,EAAO,GACP,MAAAC,EAAQ,eACR,UAAAC,EACA,YAAAC,EAAc,CAChB,EAAIJ,EAEJ,OACEF,EAAC,OACC,MAAOG,EACP,OAAQA,EACR,QAAQ,YACR,KAAK,OACL,MAAM,6BACN,UAAWE,EAEX,UAAAN,EAAC,QACC,EAAE,gBACF,OAAQK,EACR,YAAaE,EACb,cAAc,QACd,eAAe,QACjB,EACAP,EAAC,QACC,EAAE,mCACF,OAAQK,EACR,YAAaE,EACb,cAAc,QACd,eAAe,QACjB,GACF,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","jsx","jsxs","StraightArrowLeftIcon","props","size","color","className","strokeWidth"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trindtech/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "UI components for React apps by Trindtech.",
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
"dist",
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
|
-
"sideEffects":
|
|
29
|
+
"sideEffects": [
|
|
30
|
+
"*.css"
|
|
31
|
+
],
|
|
30
32
|
"engines": {
|
|
31
33
|
"node": ">=18"
|
|
32
34
|
},
|
|
@@ -43,7 +45,9 @@
|
|
|
43
45
|
"@types/react": "^18.2.0",
|
|
44
46
|
"@types/react-dom": "^18.2.0",
|
|
45
47
|
"typescript": "^5.5.0",
|
|
46
|
-
"tsup": "^8.0.0"
|
|
48
|
+
"tsup": "^8.0.0",
|
|
49
|
+
"@tailwindcss/postcss": "^4",
|
|
50
|
+
"tailwindcss": "^4"
|
|
47
51
|
},
|
|
48
52
|
"publishConfig": {
|
|
49
53
|
"access": "public"
|