@loja-integrada/admin-components 1.4.0 → 1.6.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/{chunk-K4PEKBET.js → chunk-2KQP5364.js} +1 -1
- package/dist/chunk-3LRCJEHT.js +10 -0
- package/dist/chunk-3R2XNPC6.js +8 -0
- package/dist/{chunk-WFZTTNUK.js → chunk-56OE6VHG.js} +2 -2
- package/dist/chunk-5IP3VQAV.js +7 -0
- package/dist/chunk-GHCMLL6T.js +14 -0
- package/dist/chunk-GPHC3OIO.js +12 -0
- package/dist/chunk-IH4NWDTM.js +8 -0
- package/dist/{chunk-WD3Q4T3B.js → chunk-JYXZXHQF.js} +2 -2
- package/dist/chunk-KIULKYBX.js +9 -0
- package/dist/{chunk-5C6LVACD.js → chunk-KSBVK3BT.js} +1 -1
- package/dist/{chunk-4S5C4CEE.js → chunk-NJG2H6UL.js} +1 -1
- package/dist/{chunk-MR2BD2JB.js → chunk-OUS2ASXU.js} +2 -2
- package/dist/chunk-QEXOOFMY.js +9 -0
- package/dist/chunk-QI2G5XNV.js +14 -0
- package/dist/{chunk-56EPRVRZ.js → chunk-SBRVSLSQ.js} +1 -1
- package/dist/{chunk-YGPELLPO.js → chunk-WFGMLCXA.js} +1 -1
- package/dist/{chunk-R7WLYYGY.js → chunk-XFJU222C.js} +2 -2
- package/dist/chunk-XMZIKH43.js +10 -0
- package/dist/components/Button/index.js +1 -1
- package/dist/components/DataTable/index.js +3 -3
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/index.js +5 -5
- package/dist/forms/Calendar/index.css +1 -1
- package/dist/forms/Calendar/index.js +13 -13
- package/dist/forms/Checkbox/index.js +1 -1
- package/dist/forms/Dropdown/index.js +9 -9
- package/dist/forms/Input/index.js +9 -9
- package/dist/forms/InputCurrency/index.js +10 -10
- package/dist/forms/InputLabel/index.js +8 -8
- package/dist/forms/InputMask/index.js +10 -10
- package/dist/forms/InputWithUnit/index.js +12 -12
- package/dist/forms/Select/index.js +9 -9
- package/dist/forms/TextArea/index.js +9 -9
- package/dist/forms/Toggle/index.js +1 -1
- package/dist/forms/index.css +1 -1
- package/dist/forms/index.js +19 -19
- package/dist/index.css +1 -1
- package/dist/index.js +20 -20
- package/dist/indicators/Alert/index.js +1 -1
- package/dist/indicators/Badge/index.js +1 -1
- package/dist/indicators/Tag/index.js +2 -2
- package/dist/indicators/index.js +4 -4
- package/dist/layout/ActionBar/index.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/navigation/Pagination/index.js +10 -10
- package/dist/navigation/index.js +10 -10
- package/package.json +1 -1
- package/dist/chunk-3JNK2SQH.js +0 -14
- package/dist/chunk-ARXQCATR.js +0 -9
- package/dist/chunk-DCLZNUOB.js +0 -8
- package/dist/chunk-MSBL7DRX.js +0 -8
- package/dist/chunk-RKGQHPEY.js +0 -9
- package/dist/chunk-RW4TC2RG.js +0 -10
- package/dist/chunk-TJKZQP6P.js +0 -7
- package/dist/chunk-VN4OIHPC.js +0 -14
- package/dist/chunk-YGXAG6SM.js +0 -10
- package/dist/chunk-ZPS5KRFK.js +0 -12
package/dist/navigation/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import '../chunk-4PUGMMDC.js';
|
|
2
|
-
export { c as DEFAULT_OPTIONS, d as Pagination, a as PaginationInfo, b as PaginationNav } from '../chunk-
|
|
2
|
+
export { c as DEFAULT_OPTIONS, d as Pagination, a as PaginationInfo, b as PaginationNav } from '../chunk-OUS2ASXU.js';
|
|
3
3
|
export { a as Stepper } from '../chunk-J62DBIT2.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-3LRCJEHT.js';
|
|
5
5
|
export { a as Breadcrumb } from '../chunk-V3P7BTVW.js';
|
|
6
6
|
export { a as HelpLink } from '../chunk-TUBDQ3WR.js';
|
|
7
7
|
import '../chunk-RBDORITT.js';
|
|
8
8
|
import '../chunk-KN7DOGNL.js';
|
|
9
9
|
import '../chunk-QLJI4RXS.js';
|
|
10
10
|
import '../chunk-7RP4L6ZM.js';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-YGPELLPO.js';
|
|
11
|
+
import '../chunk-3R2XNPC6.js';
|
|
12
|
+
import '../chunk-WFGMLCXA.js';
|
|
14
13
|
import '../chunk-PEZPB3BG.js';
|
|
15
14
|
import '../chunk-TZI6YTCW.js';
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-KIULKYBX.js';
|
|
16
|
+
import '../chunk-IH4NWDTM.js';
|
|
17
|
+
import '../chunk-56OE6VHG.js';
|
|
18
|
+
import '../chunk-QEXOOFMY.js';
|
|
19
19
|
import '../chunk-BW4TJLAD.js';
|
|
20
|
-
import '../chunk-
|
|
20
|
+
import '../chunk-JYXZXHQF.js';
|
|
21
21
|
import '../chunk-WVXCHDLI.js';
|
|
22
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-5IP3VQAV.js';
|
|
23
23
|
import '../chunk-QKOZ4JZB.js';
|
|
24
24
|
import '../chunk-6GTRO6JY.js';
|
|
25
25
|
import '../chunk-VFFDRP2O.js';
|
package/package.json
CHANGED
package/dist/chunk-3JNK2SQH.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-RBDORITT.js';
|
|
2
|
-
import { a as a$4 } from './chunk-RKGQHPEY.js';
|
|
3
|
-
import { a as a$2 } from './chunk-BW4TJLAD.js';
|
|
4
|
-
import { a as a$3 } from './chunk-ZJEL4IYE.js';
|
|
5
|
-
import { a } from './chunk-AGCI6C3Z.js';
|
|
6
|
-
import { cva } from 'class-variance-authority';
|
|
7
|
-
import w, { useMemo } from 'react';
|
|
8
|
-
import q, { components } from 'react-select';
|
|
9
|
-
import A from 'react-select/creatable';
|
|
10
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
11
|
-
|
|
12
|
-
var K=cva("flex w-full cursor-pointer items-center border bg-base-1 transition-colors",{variants:{size:{small:"text-f7 h-10",default:"text-f6 h-12",large:"text-f5 h-14",xlarge:"text-f4 h-24"},variant:{default:"rounded border-card-stroke font-normal text-on-base",secondary:"rounded-md border-inverted-2 font-semibold shadow-inner hover:bg-base-3 focus:bg-base-1 focus:ring-2 focus:ring-focus focus:ring-offset-2",minimal:"rounded border-none font-normal text-on-base"},disabled:{true:"pointer-events-none bg-base-3 text-on-base-2"},readOnly:{true:"pointer-events-none bg-base-2"},hasErrorState:{true:"border-danger focus:border-danger"}},defaultVariants:{variant:"default",size:"default",hasErrorState:!1,disabled:!1,readOnly:!1}}),{Option:Q,DropdownIndicator:U}=components,Y=r=>{let{selectProps:s}=r,t=`transform transition duration-200 ${s.menuIsOpen?"rotate-180":"rotate-0"} text-inverted-2`;return jsx(U,{...r,className:"mr-2",children:jsx(a$3,{icon:"sortDown",size:5,className:t})})},Z=r=>{let{data:s,removeProps:t}=r;return jsxs("div",{...r,className:"selected-option mr-2 flex items-center gap-x-1.5 rounded-sm bg-primary-light px-2 text-inverted-1",children:[jsx("span",{className:"text-f7 truncate font-semibold",children:s.label}),jsx("div",{onClick:t.onClick,...t,className:"cursor-pointer",children:jsx(a$3,{icon:"close",size:3})})]})},_=r=>{let{isSelected:s,isDisabled:t,isFocused:a$1,data:n,isMulti:l}=r,c=useMemo(()=>n.element?n.element:jsx(Fragment,{children:l?jsx(a$4,{label:n.label,checked:s}):jsxs(Fragment,{children:[n.icon?jsx(a$3,{icon:n.icon,className:"mr-2"}):null,n.label]})}),[n,s,l]);return jsx(Q,{...r,className:a("text-f6 first:mt-2 last:mb-2 py-2 px-5 font-semibold transition-colors flex items-center",t?"opacity-50 cursor-not-allowed":"hover:text-on-base hover:bg-inverted-2/5 cursor-pointer",s?"text-inverted-1":"text-inverted-2",a$1&&"bg-inverted-2/5"),children:c})},ee=({options:r,isSearchable:s=!1,allowCreation:t=!1,isMultivalued:a$3=!1,onChange:n,onMultiChange:l,onBlur:c,size:S="default",variant:I="default",placeholder:y="Selecione um item",emptyMessage:M="Nenhuma op\xE7\xE3o dispon\xEDvel",hasError:V=!1,errorMessage:g,helpText:D,label:N,labelComplement:L,id:E,name:W,required:k=!1,disabled:h,readOnly:m,maxMenuHeight:G=300,menuPosition:B="absolute",menuPlacement:z="auto",menuWidth:R="100%",menuHorizontalPlacement:i,formGroupClassName:T="",value:F},H)=>{let X=useMemo(()=>Math.random().toString(36).substring(7),[]),x=E||W||X,p=V||!!g,$=useMemo(()=>t?A:q,[t]);return jsxs("div",{className:a("form-group flex flex-col",T),children:[jsx(a$1,{label:N,labelComplement:L,required:k,hasError:p,htmlFor:x,className:"mb-1"}),jsx($,{id:x,ref:H,value:F,classNamePrefix:"select",options:r,isSearchable:t||s,blurInputOnSelect:!a$3,isMulti:a$3,hideSelectedOptions:!1,closeMenuOnSelect:!a$3,isDisabled:h||m,maxMenuHeight:G,menuPortalTarget:document?.body,menuPosition:B,menuPlacement:z,placeholder:y,noOptionsMessage:({inputValue:e})=>e?`Nenhum resultado para "${e}"`:M,formatCreateLabel:e=>`Selecionar "${e}"`,onChange:e=>{a$3&&l?l(e):n&&e&&n(e);},onBlur:e=>c?.(e),components:{Option:e=>_(e),DropdownIndicator:e=>Y(e),MultiValue:e=>Z(e),ClearIndicator:()=>null},classNames:{input:()=>t?"":"absolute !mx-0",noOptionsMessage:()=>"text-on-base-3 text-f6 font-semibold break-words",valueContainer:()=>"w-full min-h-10",singleValue:()=>"truncate",placeholder:()=>"w-full truncate pr-2 h-full text-on-base-3",control:({isFocused:e})=>a(K({variant:I,size:S,hasErrorState:p,disabled:h,readOnly:m}),e&&!p&&!m&&"border-primary"),groupHeading:()=>"px-5 text-on-base-3 text-f7 font-semibold uppercase"},styles:{option:()=>({}),control:()=>({}),menu:e=>({...e,width:R,backgroundColor:"rgb(var(--color-base-1) / 100)",zIndex:999,...i&&i==="left"&&{left:0},...i&&i==="right"&&{right:0}}),menuPortal:e=>({...e,zIndex:9999}),indicatorSeparator:()=>({}),groupHeading:()=>({}),singleValue:()=>({maxWidth:"calc(100% - 6px)"}),valueContainer:e=>({...e,paddingLeft:16,display:"flex",flexWrap:"nowrap",alignItems:"center",overflowX:"auto",msOverflowStyle:"none",scrollbarWidth:"none","::-webkit-scrollbar":{display:"none"}}),placeholder:()=>({}),multiValue:e=>({...e,overflow:"scroll",display:"flex",flexWrap:"nowrap",overflowX:"auto",scrollbarWidth:"thin",msOverflowStyle:"auto",whiteSpace:"nowrap"})}}),jsx(a$2,{helpText:g||D,hasError:p,className:"mt-2"})]})},oe=w.forwardRef(ee),te=w.memo(oe);te.displayName="Dropdown";
|
|
13
|
-
|
|
14
|
-
export { te as a };
|
package/dist/chunk-ARXQCATR.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-ZJEL4IYE.js';
|
|
2
|
-
import { a } from './chunk-AGCI6C3Z.js';
|
|
3
|
-
import { cva } from 'class-variance-authority';
|
|
4
|
-
import d from 'react';
|
|
5
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
var y=cva("inline-flex items-center justify-center rounded-lg bg-transparent px-5 text-center font-medium no-underline transition after:align-middle focus:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-1",{variants:{variant:{primary:"bg-primary text-base-1 hover:bg-primary-dark active:bg-primary-dark",secondary:"bg-primary-light text-primary-bold hover:bg-secondary-dark active:shadow-inner",tertiary:"bg-inverted-2 text-on-primary hover:bg-tertiary-dark active:bg-tertiary-bold",warning:"bg-warning text-on-base hover:bg-warning-dark active:bg-warning-bold",danger:"bg-danger text-base-1 hover:bg-danger-dark active:bg-danger-bold",outline:"border border-inverted-2 text-inverted-2 hover:bg-inverted-2/10 active:bg-inverted-2/30 active:shadow-inner",outlineSecondary:"border border-primary-dark text-primary-dark hover:bg-primary-light active:bg-primary-dark/30 active:shadow-inner",onlyText:"h-auto border-transparent p-0 text-inverted-2 hover:bg-transparent hover:underline active:bg-transparent"},size:{small:"text-f6 h-10",default:"text-f6 h-12",large:"text-f5 h-14"},disabled:{true:"pointer-events-none border-base-3 bg-base-3 text-on-base-2",false:""}},compoundVariants:[{variant:"onlyText",class:"h-auto"},{variant:"onlyText",disabled:!0,class:"bg-transparent opacity-75"}],defaultVariants:{variant:"primary",size:"default"}}),v=d.forwardRef(({as:o,children:r,type:i="button",...e},t)=>o==="a"||e.href?jsx("a",{...e,ref:t,children:r}):jsx("button",{...e,ref:t,type:i,children:r})),h=({children:o,className:r,as:i="button",variant:e="primary",size:t="default",disabled:s=!1,loading:c=!1,icon:m,iconPosition:u="right",...p},g)=>{let n=c&&"loading"||m;return c&&(s=!0),jsxs(v,{as:i,ref:g,...p,className:a(y({variant:e,size:t,disabled:s,className:r})),disabled:s,children:[n&&u==="left"?jsx(a$1,{icon:n,size:t==="small"?3:4,className:"mr-2 inline-block"}):null,o,n&&u==="right"?jsx(a$1,{icon:n,size:t==="small"?3:4,className:"ml-3 inline-block"}):null]})},x=d.forwardRef(h),B=d.memo(x);B.displayName="Button";
|
|
8
|
-
|
|
9
|
-
export { B as a };
|
package/dist/chunk-DCLZNUOB.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-AGCI6C3Z.js';
|
|
2
|
-
import { cva } from 'class-variance-authority';
|
|
3
|
-
import o from 'react';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
var i=cva("badge inline-flex items-center font-semibold",{variants:{type:{neutral:"bg-inverted-2 text-base-1",neutralLight:"bg-inverted-3 text-tertiary",primary:"bg-primary-dark text-base-1",danger:"bg-danger-dark text-base-1",success:"bg-success-dark text-base-1",warning:"bg-warning-dark text-base-1",focus:"bg-focus text-base-1"},size:{default:"text-f7 h-5 px-2 py-0.5",small:"text-f7 h-4 px-2",xsmall:"text-f8 h-3 px-0.5 py-px"},rounded:{full:"rounded-full",small:"rounded",none:"rounded-none"}},defaultVariants:{type:"primary",size:"default"}}),g=({type:t="neutral",text:a$1,children:r,size:n="default",rounded:s="full",className:d=""})=>jsx("div",{className:a(i({type:t,size:n,rounded:s}),d),children:r||a$1}),u=o.memo(g);u.displayName="Badge";
|
|
7
|
-
|
|
8
|
-
export { u as a };
|
package/dist/chunk-MSBL7DRX.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-ZJEL4IYE.js';
|
|
2
|
-
import { a } from './chunk-AGCI6C3Z.js';
|
|
3
|
-
import w, { useState, useEffect, useMemo } from 'react';
|
|
4
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
var n={success:{class:"bg-success-light border-success-dark",icon:"checkCircle",iconClass:"text-success-dark"},warning:{class:"bg-warning-light border-warning-dark",icon:"exclamationTriangle",iconClass:"text-warning"},danger:{class:"bg-danger-light border-danger",icon:"ban",iconClass:"text-danger"},info:{class:"bg-focus-light border-focus-dark",icon:"infoCircle",iconClass:"text-focus-dark"},primary:{class:"bg-primary-light border-primary",icon:"infoCircle",iconClass:"text-primary"}},y=({variant:s="info",isOpen:r=!0,title:p,subtitle:l,actions:i,showClose:b=!1,onClose:c,hideIcon:g=!1,customIcon:m,allBorders:d=!0,className:u})=>{let[x,f]=useState(r);useEffect(()=>{f(r);},[r]);let v=()=>{f(!1),c?.();},C=useMemo(()=>d?"":"border-r-0 border-y-0",[d]);return x?jsxs("div",{className:a("alert relative flex w-full items-start rounded border border-l-4 px-5 py-4 sm:items-center",n[s].class,C,u),children:[!g&&jsx("div",{className:a("alert-icon mr-3 hidden shrink-0 sm:block",n[s].iconClass),children:jsx(a$1,{icon:m||n[s].icon,size:6})}),jsxs("div",{className:"flex min-w-0 grow flex-col items-start justify-between sm:flex-row sm:items-center",children:[jsxs("div",{className:"flex min-w-0 flex-col justify-center break-words leading-5 tracking-4 text-on-base",children:[jsx("span",{className:"alert-title text-f5 font-semibold",children:p}),l?jsx("span",{className:"alert-subtitle text-f6 mt-1",children:l}):null]}),i?jsx("div",{className:"alert-actions mt-3 flex shrink-0 flex-row items-center space-x-3 sm:ml-5 sm:mt-0 sm:flex-row-reverse sm:space-x-reverse",children:i}):null]}),b||c?jsx("div",{className:"alert-close ml-5 flex shrink-0",children:jsx("button",{className:"-m-2 p-2 text-inverted-2 hover:text-inverted-1",onClick:v,type:"button","aria-label":"Close",children:jsx(a$1,{icon:"close",size:4,className:"mt-px sm:mt-0"})})}):null]}):null},R=w.memo(y);R.displayName="Alert";
|
|
7
|
-
|
|
8
|
-
export { R as a };
|
package/dist/chunk-RKGQHPEY.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-BW4TJLAD.js';
|
|
2
|
-
import t from 'react';
|
|
3
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var z=({className:I="",label:d,id:R,name:u,onChange:f,checked:a$1,disabled:m,readOnly:b,indeterminate:n=!1,boxAlign:v="baseline",helpText:w,hasError:H=!1,errorMessage:h,...L},N)=>{let r=t.useRef(null),x=R||u,[s,l]=t.useState(!!a$1||!1),[i,c]=t.useState(!!n||!1),g=H||!!h,o=m||b;t.useEffect(()=>{l(!!a$1),a$1&&c(!1);},[a$1]),t.useEffect(()=>{c(!!n),n&&l(!1),r.current&&(r.current.indeterminate=!!n);},[n]);let T=C=>{o||(l(C.target.checked),c(!1),f&&f(C));},E=`transition duration-200 ease-in-out ${s||i?"scale-100":"scale-0"}`,y=`border border-card-stroke transition duration-200 ease-in-out
|
|
6
|
-
${o?"bg-base-4":s||i?"bg-primary border-primary":"bg-base-1"}
|
|
7
|
-
items-center rounded-xs w-4 h-4 flex justify-center m-px`,M=`ml-1 input-label text-f6 tracking-4 leading-6 ${g?"text-danger":o?"text-inverted-2":""}`,$={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},P=jsx(a,{helpText:h||w,hasError:g,className:"mt-2"});return jsxs("div",{className:`inline-block ${I}`,children:[jsxs("label",{htmlFor:x,className:`inline-flex ${$[v]} cursor-pointer`,children:[jsxs("span",{className:"relative z-10 flex items-center justify-center rounded-xs ring-focus focus-within:ring-2",children:[jsx("input",{ref:N||r,type:"checkbox",id:x,name:u,className:"absolute z-10 size-4 cursor-pointer opacity-0",checked:s,onChange:T,disabled:!!m,readOnly:!!b,...L}),jsx("div",{className:y,children:jsx("svg",{width:"12",height:"12",viewBox:`0 0 10 ${s?"10":"2"}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:E,children:s||s&&o?jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.33353 8.86651C3.10353 8.86651 2.88353 8.77518 2.72087 8.61318L0.0541992 5.94651L1.27953 4.72051L3.31753 6.75851L9.03887 0.736511L10.2949 1.93051L3.96153 8.59718C3.80087 8.76651 3.5782 8.86384 3.34487 8.86651H3.33353Z",fill:"white"}):i&&jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.99998H10V0.333313H0V1.99998Z",fill:"white"})})})]}),d?jsx("span",{className:M,children:d}):null]}),P]})},F=t.forwardRef(z),S=t.memo(F);S.displayName="Checkbox";
|
|
8
|
-
|
|
9
|
-
export { S as a };
|
package/dist/chunk-RW4TC2RG.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-RBDORITT.js';
|
|
2
|
-
import { a as a$1 } from './chunk-BW4TJLAD.js';
|
|
3
|
-
import { a as a$2 } from './chunk-AGCI6C3Z.js';
|
|
4
|
-
import { cva } from 'class-variance-authority';
|
|
5
|
-
import b from 'react';
|
|
6
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
var E=cva("w-full min-w-0 cursor-pointer appearance-none rounded border border-card-stroke bg-base-1 bg-no-repeat pl-4 pr-8 text-sm tracking-4 text-on-base shadow-none outline-none transition-colors duration-75 placeholder:text-on-base-2 focus:border-primary",{variants:{variant:{default:"h-12",small:"h-10",large:"h-14",xlarge:"h-24"},withoutStyle:{true:"no-style border-transparent pl-0 pr-4 hover:text-inverted-1 focus:border-transparent"},hasErrorState:{true:"border-danger focus:border-danger"},disabled:{true:"pointer-events-none bg-base-3 text-on-base-2 opacity-100"}}}),R=({formGroupClassName:f="",className:g="",label:x,labelComplement:v,helpText:h,hasError:S=!1,errorMessage:s,required:r=!1,id:w,name:n,variant:y="default",disabled:p,placeholder:c,options:H=[],withoutStyle:i=!1,style:I,...N},P)=>{let a$3=w||n,o=S||!!s,T=jsx(a,{label:x,required:r,hasError:o,htmlFor:a$3,className:"mb-1",labelComplement:v}),L=jsx(a$1,{helpText:s||h,hasError:o,className:"mt-2"});return jsxs("div",{className:a$2("form-group flex flex-col",f),children:[T,jsx("div",{className:"flex w-full",children:jsxs("select",{ref:P,id:a$3,name:n,required:r,disabled:p,className:a$2(E({variant:y,withoutStyle:i,hasErrorState:o,disabled:p}),g),...N,style:{backgroundImage:`url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 5" fill="%23607081"><path d="M7.11 0H.889a.667.667 0 00-.47 1.138l3.11 3.11a.661.661 0 00.943 0l3.11-3.11A.666.666 0 007.112 0z" /></svg>')`,backgroundSize:"8px",backgroundPosition:`calc(100% - ${i?"5px":"15px"}) center`,...I},children:[c?jsx("option",{value:"",disabled:r,children:c}):null,H?.map(t=>jsx("option",{value:`${t.value}`,disabled:t.disabled,children:t.label},`${a$3}-${t.value}`))]})}),L]})},C=b.forwardRef(R),M=b.memo(C);M.displayName="Select";
|
|
9
|
-
|
|
10
|
-
export { R as a, M as b };
|
package/dist/chunk-TJKZQP6P.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-AGCI6C3Z.js';
|
|
2
|
-
import * as o from 'react';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var b=o.forwardRef(({className:e,...t},a$1)=>jsx("div",{className:a("overflow-hidden rounded lg:border-t lg:border-b border-card-stroke w-full [&:has(caption)]:border-b-0",e),children:jsx("div",{className:"lg:bg-on-base-1 relative w-full overflow-auto",children:jsx("table",{ref:a$1,className:"text-f6 w-full caption-bottom",...t})})}));b.displayName="Table";var d=o.forwardRef(({className:e,...t},a$1)=>jsx("thead",{ref:a$1,className:a("hidden lg:table-header-group bg-base-2 [&_tr]:border-b",e),...t}));d.displayName="TableHeader";var s=o.forwardRef(({className:e,...t},a$1)=>jsx("th",{ref:a$1,className:a("text-left align-middle text-f7 font-semibold text-inverted-2 lg:p-2 lg:first:pl-4",e),...t}));s.displayName="TableHead";var n=o.forwardRef(({className:e,...t},a$1)=>jsx("tbody",{ref:a$1,className:a("flex flex-col gap-3 lg:table-row-group lg:[&>tr:last-child]:border-b-0",e),...t}));n.displayName="TableBody";var T=o.forwardRef(({className:e,...t},a$1)=>jsx("tfoot",{ref:a$1,className:a("font-semibold [&>tr]:last:hover:bg-transparent lg:bg-base-2 lg:border-t lg:mt-0 mt-3 block lg:table-footer-group border-card-stroke last:[&>tr:last-child]:border-b-0 max-lg:[&>tr]:p-0 max-lg:[&>tr]:border-0",e),...t}));T.displayName="TableFooter";var c=o.forwardRef(({className:e,...t},a$1)=>jsx("tr",{ref:a$1,className:a("relative flex flex-col rounded border border-card-stroke bg-on-base-1 p-2 transition-all data-[checked=true]:bg-primary-light hover:data-[checked=true]:bg-base-2 hover:bg-base-2 lg:table-row lg:rounded-none lg:border-b lg:border-t-0 lg:p-0",e),...t}));c.displayName="TableRow";var i=o.forwardRef(({className:e,...t},a$1)=>jsx("td",{ref:a$1,className:a("align-middle lg:p-2 lg:first:pl-4",e),...t}));i.displayName="TableCell";var m=o.forwardRef(({className:e,...t},a$1)=>jsx("caption",{ref:a$1,className:a("lg:mt-0 mt-3 py-2 text-f6 text-on-base-3 lg:border border-card-stroke rounded-b",e),...t}));m.displayName="TableCaption";
|
|
6
|
-
|
|
7
|
-
export { b as a, d as b, s as c, n as d, T as e, c as f, i as g, m as h };
|
package/dist/chunk-VN4OIHPC.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { b } from './chunk-WLU7LLNK.js';
|
|
2
|
-
import { a as a$1 } from './chunk-56EPRVRZ.js';
|
|
3
|
-
import { a as a$2 } from './chunk-ARXQCATR.js';
|
|
4
|
-
import { a } from './chunk-ZJEL4IYE.js';
|
|
5
|
-
import { subDays, subMonths, addDays, parse, isBefore, isValid, isWithinInterval, isEqual, isAfter, format } from 'date-fns';
|
|
6
|
-
import { ptBR } from 'date-fns/locale/pt-BR';
|
|
7
|
-
import k, { useState, useRef, useEffect } from 'react';
|
|
8
|
-
import Me, { registerLocale } from 'react-datepicker';
|
|
9
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
10
|
-
|
|
11
|
-
function Fe(f){let[c,g]=useState(!1);return useEffect(()=>{let n=window.matchMedia(f);n.matches!==c&&g(n.matches);let p=()=>{g(n.matches);};return typeof n.addEventListener=="function"?n.addEventListener("change",p):n.addListener(p),()=>{typeof n.removeEventListener=="function"?n.removeEventListener("change",p):n.removeListener(p);}},[c,f]),c}var be=()=>Fe("(min-width: 1024px)");var ae={id:"ontem",label:"Ontem",value:1},ie={id:"7-dias",label:"7 dias",value:7},oe={id:"30-dias",label:"30 dias",value:30},S={id:"selecionar-periodo",label:"Selecionar per\xEDodo",icon:"calendarAlt"},ce=[ae,ie,oe,S],z=["Janeiro","Fevereiro","Mar\xE7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],xe=100,T=200,ye=29;var ne=(f,c,g,n,p)=>{let d=f.setHours(0,0,0,0),C=g.setHours(0,0,0,0),q=n.setHours(0,0,0,0);if(p==="start"){if(d===C)return "!bg-primary !rounded-l !rounded-r !text-base-1 !font-semibold before:left-5";if(d===q)return "!rounded-r"}if(p==="end"){if(d===q)return "!bg-primary !rounded-l !rounded-r !text-base-1 !font-semibold before:right-5";if(d===C)return "!rounded-l"}return c?d<C||d>q?"!bg-base-1 hover:!rounded-l hover:!rounded-r hover:!bg-primary hover:!text-base-1 hover:!font-semibold":"hover:!text-base-1 hover:font-semibold":""},B=f=>z[f].slice(0,3).toUpperCase(),ve=(f,c)=>{let g=f.getDate(),n=c.getDate(),p=z[f.getMonth()],d=z[c.getMonth()];return g===n&&p===d?`${g} de ${p} `:`${g} de ${p} - ${n} de ${d}`};var pe=Me.default??Me;registerLocale("pt-BR",ptBR);var Qe=new Date,xt=k.memo(({className:f="",periods:c=ce,prevMonths:g=3,position:n="left",disabled:p=!1,maxInterval:d=ye,onDatesChange:C,onCalendarOpen:q,today:m=Qe,testOnDesktop:Ne=!1})=>{let M=k.useMemo(()=>subDays(m,1),[m]),le=k.useMemo(()=>subDays(M,30),[M]),s=k.useMemo(()=>subMonths(m,g),[m,g]),l=k.useMemo(()=>M,[M]),[E,V]=useState(c[0].id),[j,O]=useState(!1),[a$3,x]=useState(subDays(m,c[0].value||30)),[i,N]=useState(M),[F,_e]=useState(!1),[H,se]=useState(!1),[I,u]=useState(!1),[Ie,J]=useState(0),[Te,X]=useState(0),[Pe,me]=useState(0),[Ee,G]=useState(0),[Oe,Re]=useState(0),[Se,R]=useState(T),ke=useRef(null),he=useRef(null),v=useRef([]),ze=be(),Q=Ne||ze;useEffect(()=>{V(c[0].id);},[]),useEffect(()=>{q?.(j);},[j]),useEffect(()=>{let e=document.getElementById(c[0].id);e!==void 0&&(J(e?.offsetLeft||0),X(e?.offsetTop||0),me(e?.offsetHeight||0),G(e?.offsetWidth||0));},[c]),useEffect(()=>{Re(document.getElementById(S.id)?.offsetWidth||0);},[a$3,i]),useEffect(()=>{let e=t=>{Q?ke.current?.contains(t.target)||(O(!1),R(T)):he.current?.contains(t.target)||(O(!1),R(T));};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e);}},[Q]),useEffect(()=>{let e=c.findIndex(t=>t.id===E);J(v.current[e]?.offsetLeft||0),X(v.current[e]?.offsetTop||0),G(v.current[e]?.offsetWidth||0);},[E,c]);let ue=k.useCallback((e,t,o,_,Z)=>{let A=e.setHours(0,0,0,0),ee=t.setHours(0,0,0,0),te=o.setHours(0,0,0,0),We=subDays(_,7).setHours(0,0,0,0),Ue=addDays(Z,1).setHours(0,0,0,0);if(I){if(A===ee&&A===te)return R(T),u(!1),ae.id;if(A===We&&ee===te)return R(T),u(!1),ie.id;if(A===Ue&&ee===te)return R(T),u(!1),oe.id}return R(xe),S.id},[I]),qe=k.useCallback((e,t)=>{if(e==E&&t)return;if(V(e),!t){O(!0);return}let o=subDays(m,t);x(o),N(l),u(!1),C(o,l);},[m,l,E]);useEffect(()=>{c===ce&&I&&V(ue(a$3,i,M,m,le));},[a$3,i,I,ue,le,c,m,M]);let He=k.useCallback(e=>{let t=parse(e,"dd/MM/yyyy",m);if(isBefore(t,s)){x(s);return}let o=subDays(i,d);if(isBefore(t,o)){let _=addDays(t,d);N(_);return}isValid(t)&&isWithinInterval(t,{start:s,end:l})&&(!isBefore(t,i)&&!isEqual(t,i)||x(t));},[m,s,l,i]),Ae=k.useCallback(e=>{if(_e(!1),isBefore(e,s)){x(s),u(!0);return}if(isBefore(i,e)){x(e),N(e),u(!0);return}x(e),u(!0);},[s,i]),Le=k.useCallback(e=>{let t=parse(e,"dd/MM/yyyy",m);if(isAfter(t,l)){N(l);return}let o=addDays(a$3,d);if(isBefore(o,t)){let _=subDays(t,d);x(_);return}isValid(t)&&isWithinInterval(t,{start:s,end:l})&&(!isBefore(a$3,t)&&!isEqual(a$3,t)||N(t));},[m,s,l,a$3]),Be=k.useCallback(e=>{se(!1),u(!0),N(e);},[]),Ye=k.useCallback(e=>{let[t,o]=e;x(t);let _=addDays(t,d);isAfter(o,_)&&x(subDays(o,d)),N(o),u(!!(t&&o));},[]),fe=k.useCallback((e,t)=>{if(t==="start"){if(!isValid(e)||!isWithinInterval(e,{start:s,end:l})||!isBefore(e,i)&&!isEqual(e,i))return !1}else if(!isValid(e)||!isWithinInterval(e,{start:s,end:l})||!isBefore(a$3,e)&&!isEqual(a$3,e))return !1;return !0},[s,l,a$3,i]),$e=(e,t)=>{J(v.current[e]?.offsetLeft||0),X(v.current[e]?.offsetTop||0),me(v.current[e]?.offsetHeight||0),G(v.current[e]?.offsetWidth||0),qe(t.id,t.value);},K=(e,t,o,_,Z)=>jsxs("div",{className:"flex justify-between",children:[jsx("div",{className:"cursor-pointer",onClick:_,children:jsx(a,{icon:"angleLeft",size:4})}),jsxs("div",{className:"flex items-center justify-center gap-x-2",children:[jsxs("span",{className:"font-semibold text-inverted-2",children:[z[t.getMonth()]," ",e.getFullYear()]}),jsx("div",{className:"cursor-pointer",onClick:()=>o==="start"?_e(!F):se(!H),children:jsx(a,{icon:"angleDown",size:4,className:`transition duration-300 ${(o==="start"?F:H)&&"rotate-180"}
|
|
12
|
-
`})})]}),jsx("div",{className:"cursor-pointer",onClick:Z,children:jsx(a,{icon:"angleRight",size:4})})]});return jsxs("div",{className:`relative ${f} ${p?"pointer-events-none opacity-50":""}`,children:[jsxs("div",{className:"relative flex flex-wrap gap-2",children:[c.map((e,t)=>jsx("div",{id:e.id,ref:o=>v.current[t]=o,children:jsxs("button",{type:"button",disabled:p,className:`text-f6 flex items-center gap-x-2 rounded-md p-2 font-semibold ${p?"":"hover:text-primary-dark"} ${E===e.id?"text-primary-dark":"text-inverted-2"} transition-colors duration-200`,onClick:()=>$e(t,e),children:[e.icon?jsx(a,{icon:e.icon,size:4}):null,e.id===S.id&&I?ve(a$3,i):e.label]})},e.id)),jsx("div",{className:"absolute -z-1 rounded bg-primary-light transition-all ease-out",style:{left:`${Ie}px`,top:`${Te}px`,height:`${Pe}px`,width:`${E===S.id?Oe:Ee}px`,transitionDuration:`${Se}ms`}})]}),j?jsx(Fragment,{children:Q?jsxs("div",{id:"customPeriod",ref:ke,className:`absolute top-full ${n}-0 z-10 flex flex-col gap-y-6 rounded border border-card-stroke bg-base-1 px-5 py-6 shadow`,children:[jsxs("div",{className:"flex gap-x-6",children:[jsx(a$1,{id:"startDateInput",formGroupClassName:"w-full",formatValue:"date",prefix:jsx(a,{icon:"calendarAlt"}),prefixBorder:!1,value:format(a$3,"dd/MM/yyyy"),onChange:e=>He(e.target.value)}),jsx(a$1,{id:"endDateInput",formGroupClassName:"w-full",formatValue:"date",prefix:jsx(a,{icon:"calendarAlt"}),prefixBorder:!1,value:format(i,"dd/MM/yyyy"),onChange:e=>Le(e.target.value)})]}),jsxs("div",{className:"flex gap-x-6",children:[jsx("div",{id:"startCalendar",children:jsx(pe,{selected:a$3,onChange:e=>{e!=null&&Ae(e);},locale:"pt-BR",selectsStart:!0,startDate:a$3,endDate:i,minDate:s,maxDate:l,renderMonthContent:e=>B(e),renderCustomHeader:({monthDate:e,date:t,decreaseMonth:o,increaseMonth:_})=>K(t,e,"start",o,_),showMonthYearPicker:F,showFourColumnMonthYearPicker:!0,inline:!0,dayClassName:e=>ne(e,fe(e,"start"),a$3,i,"start")})}),jsx("div",{id:"endCalendar",children:jsx(pe,{selected:i,onChange:e=>{e!=null&&Be(e);},locale:"pt-BR",selectsEnd:!0,startDate:a$3,endDate:i,minDate:a$3,maxDate:l,renderMonthContent:e=>B(e),renderCustomHeader:({monthDate:e,date:t,decreaseMonth:o,increaseMonth:_})=>K(t,e,"end",o,_),showMonthYearPicker:H,showFourColumnMonthYearPicker:!0,inline:!0,dayClassName:e=>ne(e,fe(e,"end"),a$3,i,"end")})})]}),jsx(a$2,{size:"small",disabled:!I||!a$3||!i,onClick:()=>{u(!0),C(a$3,i),O(!1);},children:"Aplicar"})]}):jsx("div",{ref:he,children:jsxs(b,{className:`absolute flex size-fit flex-col gap-y-8 p-8 ${n}-0`,children:[jsx(a$2,{onClick:()=>O(!1),variant:"onlyText",className:"size-fit",children:jsx(a,{icon:"arrowLeft",size:4})}),jsx("span",{className:"text-f4 font-medium text-primary-bold",children:"Per\xEDodo personalizado"}),jsx(pe,{locale:"pt-BR",selected:a$3,selectsRange:!0,startDate:a$3,endDate:i,minDate:s,maxDate:l,onChange:Ye,shouldCloseOnSelect:!1,startOpen:!0,inline:!0,renderMonthContent:e=>B(e),renderCustomHeader:({monthDate:e,date:t,decreaseMonth:o,increaseMonth:_})=>K(t,e,"end",o,_),showMonthYearPicker:H,showFourColumnMonthYearPicker:!0}),jsx(a$2,{size:"small",disabled:!I||!a$3||!i,onClick:()=>{u(!0),C(a$3,i),O(!1);},children:"Aplicar"})]})})}):null]})});
|
|
13
|
-
|
|
14
|
-
export { xt as a };
|
package/dist/chunk-YGXAG6SM.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-RBDORITT.js';
|
|
2
|
-
import { a as a$1 } from './chunk-BW4TJLAD.js';
|
|
3
|
-
import { a as a$2 } from './chunk-AGCI6C3Z.js';
|
|
4
|
-
import { cva } from 'class-variance-authority';
|
|
5
|
-
import h, { useMemo } from 'react';
|
|
6
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
var V=cva("peer text-f6 flex w-full min-w-0 appearance-none overflow-hidden rounded border border-card-stroke bg-base-1 px-4 text-on-base shadow-none outline-none transition-colors focus-within:border-primary focus:border-primary",{variants:{variant:{default:"h-12",small:"h-10",large:"h-14",xlarge:"h-24"},hasErrorState:{true:"border-danger focus:border-danger [&~.adornment]:border-danger [&~.adornment]:focus:border-danger"},disabled:{true:"pointer-events-none bg-base-3 text-on-base-2"},readOnly:{true:"bg-base-2"},prefixBorder:{true:"[&~.adornment.prefix]:border-r"},sufixBorder:{true:"[&~.adornment.sufix]:border-l"},hasPrefix:{true:"pl-[4.5rem]"},hasSufix:{true:"pr-[4.5rem]"}},compoundVariants:[{hasPrefix:!0,prefixBorder:!1,class:"pl-14"},{hasSufix:!0,sufixBorder:!1,class:"pr-14"}],defaultVariants:{variant:"default",hasErrorState:!1,disabled:!1,readOnly:!1}}),b="adornment border-card-stroke flex justify-center items-center absolute bottom-0 w-14 h-full text-f6 text-inverted-2 -mt-px peer-focus:border-primary transition-colors",k=({className:g="",formGroupClassName:I="",label:v,labelComplement:N,helpText:P,hasError:R=!1,errorMessage:o,required:n=!1,id:w,name:s,variant:y="default",disabled:l,readOnly:i,type:E="text",prefix:p,sufix:d,prefixBorder:T=!0,sufixBorder:H=!0,...L},S)=>{let B=useMemo(()=>Math.random().toString(36).substring(7),[]),t=w||s||B,a$3=R||!!o,u=!!d,f=!!p,C=jsx(a,{label:v,labelComplement:N,required:n,hasError:a$3,htmlFor:t,className:"mb-1"}),F=jsx(a$1,{helpText:o||P,hasError:a$3,className:"mt-2"});return jsxs("div",{className:a$2("form-group flex flex-col",I),children:[C,jsxs("div",{className:"relative",children:[jsx("input",{ref:S,type:E,id:t,name:s,required:n,disabled:l,readOnly:i,className:a$2(V({variant:y,hasErrorState:a$3,disabled:l,readOnly:i,className:g,prefixBorder:T,sufixBorder:H,hasSufix:u,hasPrefix:f})),...L}),f?jsx("label",{htmlFor:t,className:a$2("prefix left-0",b),children:p}):null,u?jsx("label",{htmlFor:t,className:a$2("sufix right-0",b),children:d}):null]}),F]})},q=h.forwardRef(k),A=h.memo(q);A.displayName="Input";
|
|
9
|
-
|
|
10
|
-
export { A as a };
|
package/dist/chunk-ZPS5KRFK.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-RBDORITT.js';
|
|
2
|
-
import { a as a$3 } from './chunk-ARXQCATR.js';
|
|
3
|
-
import { a as a$1 } from './chunk-BW4TJLAD.js';
|
|
4
|
-
import { a as a$4 } from './chunk-ZJEL4IYE.js';
|
|
5
|
-
import { a as a$2 } from './chunk-AGCI6C3Z.js';
|
|
6
|
-
import { cva } from 'class-variance-authority';
|
|
7
|
-
import P, { useMemo, useState, useRef, useEffect } from 'react';
|
|
8
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
-
|
|
10
|
-
var m=24,Y=cva("relative appearance-none overflow-hidden rounded border border-card-stroke bg-base-1 px-4 py-3 shadow-none outline-none transition-colors",{variants:{hasErrorState:{true:"border-danger focus:border-danger [&~.adornment]:border-danger [&~.adornment]:focus:border-danger",false:"focus-within:border-primary focus:border-primary"},disabled:{true:"pointer-events-none bg-base-3 text-on-base-2"},readOnly:{true:"bg-base-2"}},defaultVariants:{hasErrorState:!1,disabled:!1,readOnly:!1}}),Z=({className:R="",formGroupClassName:C="",label:S,labelComplement:$,helpText:k,hasError:F=!1,errorMessage:g,required:v=!1,defaultValue:p,id:O,name:T,disabled:H,readOnly:y,minLines:a$5=2,maxLines:f=5,showSeeMore:u=!1,...V},z)=>{let B=useMemo(()=>Math.random().toString(36).substring(7),[]),E=O||T||B,h=F||!!g,[r,D]=useState(!1),[x,G]=useState(f),s=useRef(null);useEffect(()=>{G(u&&!r?a$5:f);},[r,a$5,f]);let q=jsx(a,{label:S,labelComplement:$,required:v,hasError:h,htmlFor:E,className:"mb-1"}),W=jsx(a$1,{helpText:g||k,hasError:h,className:"mt-2"}),_=()=>{if(u&&!r)return;let e=s.current;if(e){let t=x*m,n=a$5*m,i=e.style.height;e.style.height="auto";let l=e.scrollHeight;e.style.height=i;let d=j(l,n,t);J(e,d);}},j=(e,t,n)=>Math.min(n,Math.max(t,e)),J=(e,t)=>{let n=e.offsetHeight;if(n===t)return;let i=e.style.transitionProperty?.includes("height"),l=e.style.transition;!i&&!l&&(e.style.transition="height 200ms"),e.style.height=`${n}px`,e.offsetHeight,e.style.height=`${t}px`;let d=K=>{K.propertyName==="height"&&(e.removeEventListener("transitionend",d),!i&&!l&&(e.style.transition=""));};e.addEventListener("transitionend",d);};return useEffect(()=>{let e=s.current;if(e){let t=a$5*m;if(p){let n=x*m;e.scrollHeight>n?t=n:e.scrollHeight>t&&(t=e.scrollHeight);}e.style.height=`${t}px`;}},[s,a$5,x,p,r]),jsxs("div",{className:a$2("form-group flex flex-col ",C),ref:z,children:[q,jsx("div",{className:a$2("relative appearance-none overflow-hidden rounded border border-card-stroke bg-base-1 px-4 py-3 shadow-none outline-none",Y({hasErrorState:h,disabled:H,readOnly:y,className:R})),children:jsx("textarea",{...V,ref:s,onInput:_,className:"peer text-f6 flex w-full min-w-0 resize-none bg-transparent text-on-base shadow-none outline-none transition-all duration-200 ease-in-out",id:E,name:T,required:v,disabled:H,readOnly:y,defaultValue:p})}),W,u?jsxs("div",{className:"mt-2 flex items-center justify-center gap-x-2",id:"see-more",children:[jsx("div",{className:"h-px w-full bg-inverted-2"}),jsxs(a$3,{as:"button",variant:"onlyText",className:"mx-2 hover:no-underline",onClick:()=>D(!r),children:[jsx(a$4,{icon:"angleDown",size:4,className:`mr-1 text-inverted-2 transition duration-300 ease-in-out ${r?"-rotate-180":""}`}),jsxs("span",{className:"text-f6 text-nowrap font-semibold text-inverted-2 no-underline",children:["Ver ",r?"menos":"mais"]})]}),jsx("div",{className:"h-px w-full bg-inverted-2"})]}):null]})},ee=P.forwardRef(Z),te=P.memo(ee);te.displayName="TextArea";
|
|
11
|
-
|
|
12
|
-
export { te as a };
|