@loja-integrada/admin-components 1.0.2 → 1.0.4
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-247X5S6H.js +9 -0
- package/dist/{chunk-WEZVMEBK.js → chunk-2VQ6QMMA.js} +1 -1
- package/dist/{chunk-RGSYU4MA.js → chunk-4ZMWAFI4.js} +2 -2
- package/dist/{chunk-WEYSRHTX.js → chunk-AGCI6C3Z.js} +1 -1
- package/dist/{chunk-3OHDGUPG.js → chunk-BW4TJLAD.js} +1 -1
- package/dist/{chunk-LJS4TVL3.js → chunk-DJEPTLO4.js} +3 -3
- package/dist/chunk-EIDA43LS.js +10 -0
- package/dist/{chunk-N73XF5FY.js → chunk-F5NKGXHQ.js} +2 -2
- package/dist/{chunk-NHDLQM42.js → chunk-FCIMHESM.js} +5 -5
- package/dist/{chunk-63ACUGSG.js → chunk-GIEOWRRK.js} +1 -1
- package/dist/{chunk-YTHY4XI2.js → chunk-I32MZTHH.js} +2 -2
- package/dist/chunk-J62DBIT2.js +7 -0
- package/dist/{chunk-QNBPXACD.js → chunk-KSYF7CFG.js} +4 -4
- package/dist/chunk-NNACMTUZ.js +10 -0
- package/dist/{chunk-22FGINA5.js → chunk-NRAIF4I3.js} +1 -1
- package/dist/{chunk-24UC33BJ.js → chunk-NXRYURC6.js} +1 -1
- package/dist/{chunk-K5XL557B.js → chunk-OHKM27GJ.js} +2 -2
- package/dist/{chunk-RPTUERXQ.js → chunk-PFWHNMTS.js} +2 -2
- package/dist/{chunk-AZI2H7OT.js → chunk-QMQU7H7Y.js} +4 -4
- package/dist/{chunk-RL2XPX57.js → chunk-TJKZQP6P.js} +1 -1
- package/dist/{chunk-BW2HQVCT.js → chunk-TMUYSF5D.js} +1 -1
- package/dist/{chunk-YDYMRCXH.js → chunk-UO2TARVR.js} +3 -3
- package/dist/{chunk-IPSRY3RR.js → chunk-V2LJZCNN.js} +2 -2
- package/dist/{chunk-LTHYFCE7.js → chunk-VFFDRP2O.js} +1 -1
- package/dist/{chunk-2H2JX2FG.js → chunk-WTH3TAIX.js} +2 -2
- package/dist/{chunk-V3MWWR5B.js → chunk-XIVJ37WE.js} +2 -2
- package/dist/{chunk-767NPRMO.js → chunk-YFQE7XRR.js} +3 -3
- package/dist/components/Button/Button.d.ts +48 -0
- package/dist/components/Button/index.d.ts +1 -52
- package/dist/components/Button/index.js +4 -4
- package/dist/components/DataTable/DataTable.client.d.ts +74 -0
- package/dist/components/DataTable/index.d.ts +1 -77
- package/dist/components/DataTable/index.js +6 -6
- package/dist/components/Icon/Icon.d.ts +30 -0
- package/dist/components/Icon/index.d.ts +1 -127
- package/dist/components/Icon/index.js +3 -3
- package/dist/components/IconCircular/IconCircular.d.ts +19 -0
- package/dist/components/IconCircular/index.d.ts +1 -22
- package/dist/components/IconCircular/index.js +4 -4
- package/dist/components/LoadingPlaceholder/LoadingPlaceholder.d.ts +9 -0
- package/dist/components/LoadingPlaceholder/index.d.ts +1 -12
- package/dist/components/LoadingPlaceholder/index.js +2 -2
- package/dist/components/Modal/Modal.client.d.ts +54 -0
- package/dist/components/Modal/index.d.ts +1 -56
- package/dist/components/Modal/index.js +4 -4
- package/dist/components/SidebarFixed/SidebarFixed.client.d.ts +33 -0
- package/dist/components/SidebarFixed/index.d.ts +1 -36
- package/dist/components/SidebarFixed/index.js +4 -4
- package/dist/components/Table/Table.d.ts +10 -0
- package/dist/components/Table/index.d.ts +1 -12
- package/dist/components/Table/index.js +2 -2
- package/dist/components/Tabs/Tabs.client.d.ts +21 -0
- package/dist/components/Tabs/TabsItem.d.ts +34 -0
- package/dist/components/Tabs/index.d.ts +1 -47
- package/dist/components/Tabs/index.js +2 -2
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +13 -13
- package/dist/forms/Checkbox/Checkbox.client.d.ts +28 -0
- package/dist/forms/Checkbox/index.d.ts +1 -31
- package/dist/forms/Checkbox/index.js +3 -3
- package/dist/forms/Input/Input.d.ts +41 -0
- package/dist/forms/Input/index.d.ts +1 -44
- package/dist/forms/Input/index.js +4 -4
- package/dist/forms/InputHelpText/InputHelpText.d.ts +17 -0
- package/dist/forms/InputHelpText/index.d.ts +1 -20
- package/dist/forms/InputHelpText/index.js +2 -2
- package/dist/forms/InputLabel/InputLabel.d.ts +29 -0
- package/dist/forms/InputLabel/index.d.ts +1 -32
- package/dist/forms/InputLabel/index.js +2 -2
- package/dist/forms/InputMask/InputMask.client.d.ts +20 -0
- package/dist/forms/InputMask/index.d.ts +1 -29
- package/dist/forms/InputMask/index.js +5 -5
- package/dist/forms/InputMask/maskDate.d.ts +7 -0
- package/dist/forms/InputMask/utils.d.ts +6 -0
- package/dist/forms/Select/Select.d.ts +35 -0
- package/dist/forms/Select/index.d.ts +1 -0
- package/dist/forms/Select/index.js +4 -0
- package/dist/forms/index.d.ts +6 -0
- package/dist/forms/index.js +8 -7
- package/dist/icons-path/Adjust.d.ts +1 -0
- package/dist/icons-path/AngleDiagonal.d.ts +1 -0
- package/dist/icons-path/AngleDown.d.ts +1 -0
- package/dist/icons-path/AngleHeight.d.ts +1 -0
- package/dist/icons-path/AngleLeft.d.ts +1 -0
- package/dist/icons-path/AngleRight.d.ts +1 -0
- package/dist/icons-path/AngleWidth.d.ts +1 -0
- package/dist/icons-path/App.d.ts +1 -0
- package/dist/icons-path/Arrow.d.ts +1 -0
- package/dist/icons-path/ArrowLeft.d.ts +1 -0
- package/dist/icons-path/ArrowRight.d.ts +1 -0
- package/dist/icons-path/Back.d.ts +1 -0
- package/dist/icons-path/Ban.d.ts +1 -0
- package/dist/icons-path/BarcodeRead.d.ts +1 -0
- package/dist/icons-path/Bell.d.ts +1 -0
- package/dist/icons-path/Blog.d.ts +1 -0
- package/dist/icons-path/Bullhorn.d.ts +1 -0
- package/dist/icons-path/Calculator.d.ts +1 -0
- package/dist/icons-path/CalendarAlt.d.ts +1 -0
- package/dist/icons-path/Camera.d.ts +1 -0
- package/dist/icons-path/Check.d.ts +1 -0
- package/dist/icons-path/CheckCircle.d.ts +1 -0
- package/dist/icons-path/Clock.d.ts +1 -0
- package/dist/icons-path/Clockwise.d.ts +1 -0
- package/dist/icons-path/Close.d.ts +1 -0
- package/dist/icons-path/Cog.d.ts +1 -0
- package/dist/icons-path/Copy.d.ts +1 -0
- package/dist/icons-path/CreditCard.d.ts +1 -0
- package/dist/icons-path/DashedCircle.d.ts +1 -0
- package/dist/icons-path/DefaultCursor.d.ts +1 -0
- package/dist/icons-path/Desktop.d.ts +1 -0
- package/dist/icons-path/Discount.d.ts +1 -0
- package/dist/icons-path/DotsThree.d.ts +1 -0
- package/dist/icons-path/Download.d.ts +1 -0
- package/dist/icons-path/Edit.d.ts +1 -0
- package/dist/icons-path/Envelope.d.ts +1 -0
- package/dist/icons-path/Exchange.d.ts +1 -0
- package/dist/icons-path/ExchangeY.d.ts +1 -0
- package/dist/icons-path/Exclamation.d.ts +1 -0
- package/dist/icons-path/ExclamationCircle.d.ts +1 -0
- package/dist/icons-path/ExclamationTriangle.d.ts +1 -0
- package/dist/icons-path/ExternalLink.d.ts +1 -0
- package/dist/icons-path/Eye.d.ts +1 -0
- package/dist/icons-path/EyeSlash.d.ts +1 -0
- package/dist/icons-path/Filter.d.ts +1 -0
- package/dist/icons-path/HalfBack.d.ts +1 -0
- package/dist/icons-path/Hashtag.d.ts +1 -0
- package/dist/icons-path/Home.d.ts +1 -0
- package/dist/icons-path/IconSolidEnviali.d.ts +1 -0
- package/dist/icons-path/IconSolidLI.d.ts +1 -0
- package/dist/icons-path/IdentificationBadge.d.ts +1 -0
- package/dist/icons-path/Image.d.ts +1 -0
- package/dist/icons-path/InfoCircle.d.ts +1 -0
- package/dist/icons-path/Lightbulb.d.ts +1 -0
- package/dist/icons-path/Link.d.ts +1 -0
- package/dist/icons-path/ListItems.d.ts +1 -0
- package/dist/icons-path/Loading.d.ts +1 -0
- package/dist/icons-path/Lock.d.ts +1 -0
- package/dist/icons-path/Minus.d.ts +1 -0
- package/dist/icons-path/MinusCircle.d.ts +1 -0
- package/dist/icons-path/MinusCircleSolid.d.ts +1 -0
- package/dist/icons-path/Mobile.d.ts +1 -0
- package/dist/icons-path/MoneyBill.d.ts +1 -0
- package/dist/icons-path/Move.d.ts +1 -0
- package/dist/icons-path/Nav.d.ts +1 -0
- package/dist/icons-path/Order.d.ts +1 -0
- package/dist/icons-path/Pagali.d.ts +1 -0
- package/dist/icons-path/PaperList.d.ts +1 -0
- package/dist/icons-path/PieChart.d.ts +1 -0
- package/dist/icons-path/Pix.d.ts +1 -0
- package/dist/icons-path/Plus.d.ts +1 -0
- package/dist/icons-path/PlusCircle.d.ts +1 -0
- package/dist/icons-path/Print.d.ts +1 -0
- package/dist/icons-path/Product.d.ts +1 -0
- package/dist/icons-path/QuestionCircle.d.ts +1 -0
- package/dist/icons-path/Reload.d.ts +1 -0
- package/dist/icons-path/Rocket.d.ts +1 -0
- package/dist/icons-path/Search.d.ts +1 -0
- package/dist/icons-path/Share.d.ts +1 -0
- package/dist/icons-path/ShoppingBag.d.ts +1 -0
- package/dist/icons-path/ShoppingCart.d.ts +1 -0
- package/dist/icons-path/SortDown.d.ts +1 -0
- package/dist/icons-path/Store.d.ts +1 -0
- package/dist/icons-path/Sync.d.ts +1 -0
- package/dist/icons-path/Table.d.ts +1 -0
- package/dist/icons-path/ThinAngleRight.d.ts +1 -0
- package/dist/icons-path/TimesCircle.d.ts +1 -0
- package/dist/icons-path/Trash.d.ts +1 -0
- package/dist/icons-path/Trophy.d.ts +1 -0
- package/dist/icons-path/Truck.d.ts +1 -0
- package/dist/icons-path/Tv.d.ts +1 -0
- package/dist/icons-path/Upload.d.ts +1 -0
- package/dist/icons-path/UsdCircle.d.ts +1 -0
- package/dist/icons-path/User.d.ts +1 -0
- package/dist/icons-path/WhatsApp.d.ts +1 -0
- package/dist/icons-path/index.d.ts +98 -0
- package/dist/icons-path/index.js +1 -1
- package/dist/index.d.ts +5 -30
- package/dist/index.js +31 -28
- package/dist/indicators/Alert/Alert.client.d.ts +47 -0
- package/dist/indicators/Alert/index.d.ts +1 -50
- package/dist/indicators/Alert/index.js +4 -4
- package/dist/indicators/Badge/Badge.d.ts +30 -0
- package/dist/indicators/Badge/index.d.ts +1 -33
- package/dist/indicators/Badge/index.js +2 -2
- package/dist/indicators/Tag/Tag.d.ts +32 -0
- package/dist/indicators/Tag/index.d.ts +1 -36
- package/dist/indicators/Tag/index.js +5 -15
- package/dist/indicators/Toast/Toast.client.d.ts +9 -0
- package/dist/indicators/Toast/index.css +1 -0
- package/dist/indicators/Toast/index.d.ts +1 -0
- package/dist/indicators/Toast/index.js +12 -0
- package/dist/indicators/Tooltip/Tooltip.client.d.ts +54 -0
- package/dist/indicators/Tooltip/index.d.ts +1 -57
- package/dist/indicators/index.css +1 -1
- package/dist/indicators/index.d.ts +4 -0
- package/dist/indicators/index.js +7 -17
- package/dist/layout/ActionBar/ActionBar.client.d.ts +15 -0
- package/dist/layout/ActionBar/index.d.ts +1 -21
- package/dist/layout/ActionBar/index.js +5 -5
- package/dist/layout/Box/Box.d.ts +68 -0
- package/dist/layout/Box/index.d.ts +1 -71
- package/dist/layout/Box/index.js +4 -4
- package/dist/layout/Container/Container.d.ts +15 -0
- package/dist/layout/Container/index.d.ts +1 -18
- package/dist/layout/Container/index.js +2 -2
- package/dist/layout/constants.d.ts +4 -0
- package/dist/layout/index.d.ts +3 -0
- package/dist/layout/index.js +7 -7
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.js +1 -0
- package/dist/navigation/Breadcrumb/Breadcrumb.d.ts +43 -0
- package/dist/navigation/Breadcrumb/index.d.ts +1 -45
- package/dist/navigation/Breadcrumb/index.js +5 -5
- package/dist/navigation/HelpLink/HelpLink.d.ts +30 -0
- package/dist/navigation/HelpLink/index.d.ts +1 -32
- package/dist/navigation/HelpLink/index.js +4 -4
- package/dist/navigation/Pagination/Pagination.client.d.ts +11 -0
- package/dist/navigation/Pagination/PaginationInfo.d.ts +24 -0
- package/dist/navigation/Pagination/PaginationNav.d.ts +17 -0
- package/dist/navigation/Pagination/index.d.ts +1 -0
- package/dist/navigation/Pagination/index.js +8 -0
- package/dist/navigation/Stepper/Stepper.client.d.ts +29 -0
- package/dist/navigation/Stepper/index.d.ts +1 -31
- package/dist/navigation/Stepper/index.js +2 -7
- package/dist/navigation/index.d.ts +4 -0
- package/dist/navigation/index.js +11 -6
- package/package.json +19 -4
- package/dist/chunk-KEVA65S5.js +0 -10
- package/dist/indicators/Tag/index.css +0 -1
- /package/dist/{chunk-27G6ETZK.js → chunk-4PUGMMDC.js} +0 -0
- /package/dist/{chunk-IA7GSQNX.js → chunk-66GVVFKI.js} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { b } from './chunk-EIDA43LS.js';
|
|
2
|
+
import { a } from './chunk-PFWHNMTS.js';
|
|
3
|
+
import { a as a$1 } from './chunk-AGCI6C3Z.js';
|
|
4
|
+
import y, { useMemo, useRef } from 'react';
|
|
5
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var I=({currentItemsLength:n,totalItemsLength:a=0,itemsLengthOptions:i,onItemsLengthChange:r})=>{let e=p=>{let o=p.currentTarget.value;r&&r(o);},s=useMemo(()=>{if(n)return Math.max(n,a)},[n,a]);return !n&&n!==0?null:jsx("div",{className:"pagination-info hidden sm:flex",children:jsxs("div",{className:"text-f6 mr-5 flex items-center tracking-4 text-inverted-2",children:[i?jsx(b,{id:"selectItemsPerPage",options:i,withoutStyle:!0,"aria-label":"Itens por p\xE1gina",onChange:e}):jsxs("span",{children:["Mostrando ",jsx("span",{className:"pagination-info-current",children:n})]}),"\xA0de\xA0",jsx("span",{className:"pagination-info-total",children:s}),"\xA0no total"]})})},g=y.memo(I);g.displayName="PaginationInfo";var M=({currentPage:n=1,totalPages:a$1=1,onPageChange:i})=>{let r=useRef(null),e=useMemo(()=>Math.max(n,a$1),[n,a$1]),s=useMemo(()=>n<a$1,[n,a$1]),p=useMemo(()=>n>1,[n]),o=t=>{t=t<1?1:t>e?e:t,i&&i(t);},c=t=>(t.preventDefault(),!1);return jsxs("div",{className:"pagination-nav flex w-full items-center justify-between sm:w-auto",children:[jsxs("div",{className:"text-f6 tracking-4 text-inverted-2",children:[jsx("span",{id:"btnPaginationActualPage",className:"pagination-nav-current inline-block w-9 rounded border border-card-stroke/50 bg-base-1 text-center font-semibold leading-8 text-primary",ref:r,contentEditable:!0,suppressContentEditableWarning:!0,onKeyDown:t=>{if(!(t.which>=35&&t.which<=39)&&!(t.which===46||t.which===8)){if(t.which===13){let P=r?.current?.innerText;if(P){let w=parseInt(P);o(w);}t.preventDefault();return}isNaN(parseInt(String.fromCharCode(t.which)))&&t.preventDefault();}},onCopy:c,onCut:c,onPaste:c,children:n})," ","/"," ",jsx("button",{type:"button",id:"btnPaginationLastPage",className:"pagination-nav-total focus:outline-none",onClick:()=>{n!==e&&o(e);},children:e})]}),jsxs("div",{className:"ml-5 flex items-center text-inverted-2",children:[jsx("button",{type:"button",id:"btnPaginationPrev",className:`pagination-nav-previous mr-3 outline-none duration-200 ${p?"hover:text-inverted-1":""}`,"aria-label":"Ir para p\xE1gina anterior",onClick:()=>{p&&o(n-1);},children:jsx(a,{icon:"arrowLeft",size:4})}),jsx("button",{type:"button",id:"btnPaginationNext",className:`pagination-nav-next outline-none duration-200 ${s?"hover:text-inverted-1":""}`,"aria-label":"Ir para pr\xF3xima p\xE1gina",onClick:()=>{s&&o(n+1);},children:jsx(a,{icon:"arrowRight",size:4})})]})]})},v=y.memo(M);v.displayName="PaginationNav";var R=({className:n="",currentPage:a=1,totalPages:i=1,onPageChange:r,currentItemsLength:e,totalItemsLength:s,itemsLengthOptions:p,onItemsLengthChange:o})=>jsxs("div",{className:a$1("pagination flex flex-wrap items-center justify-end leading-4 sm:justify-between",n),children:[jsx(g,{currentItemsLength:e,totalItemsLength:s,itemsLengthOptions:p,onItemsLengthChange:o}),jsx(v,{currentPage:a,totalPages:i,onPageChange:r})]}),L=y.memo(R);L.displayName="Pagination";
|
|
8
|
+
|
|
9
|
+
export { L as a };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-PFWHNMTS.js';
|
|
2
2
|
import f, { useState, useEffect } from 'react';
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
var p=["[background:linear-gradient(theme(colors.base-1/100)_33%,rgba(255,255,255,0)),linear-gradient(rgba(255,255,255,0),theme(colors.base-1/100)_66%)_0_100%,radial-gradient(farthest-side_at_50%_0,rgba(156,156,156,0.5),rgba(0,0,0,0)),radial-gradient(farthest-side_at_50%_100%,_rgba(156,156,156,0.5),rgba(0,0,0,0))_0_100%]","[background-size:100%_15px,100%_15px,100%_5px,100%_5px]","[background-attachment:local,local,scroll,scroll]","[background-repeat:no-repeat]","[background-color:theme(colors.base-1/100)]","[&_.form-group_.bg-base-1]:bg-transparent"],u=({children:c,footerActions:i,isOpen:s=!1,onClose:b,title:t,helpLink:o})=>{let[l,n]=useState(!1);useEffect(()=>{n(s);},[s]);let d=()=>{n(!1),b?.();};return jsxs("div",{className:`sidebar-fixed fixed bottom-0 right-0 z-40 size-full overflow-x-hidden transition-all ease-in-out lg:z-20 ${l?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"}`,children:[jsx("div",{className:"sidebar-fixed-backdrop fixed inset-0 -z-1 size-full bg-black/50",onClick:d}),jsxs("div",{className:`sidebar-fixed-inner absolute inset-y-0 right-0 mt-10 flex h-auto w-full flex-col justify-between rounded-t-lg bg-base-1 shadow transition-transform sm:ml-16 sm:mt-0 sm:max-w-[410px] sm:rounded-none ${l?"translate-x-0":"translate-x-10"}`,children:[jsxs("div",{className:"sidebar-fixed-header flex items-center justify-between p-3 text-inverted-2 lg:px-5",children:[t?jsx("div",{className:"sidebar-fixed-title text-f5 p-2 font-semibold text-inverted-1 sm:text-f4 sm:py-5",children:t}):null,jsxs("div",{className:`flex justify-between${t?"":" flex-1"}`,children:[jsx("button",{"aria-label":"Fechar",type:"button",className:"sidebar-fixed-close p-2 text-inverted-2 transition-colors hover:text-inverted-1",onClick:d,children:jsx(a,{icon:"close",size:4,className:"block"})}),o?jsx("a",{"aria-label":"Ajuda",className:"sidebar-fixed-help p-2 text-inverted-2 transition-colors hover:text-inverted-1",href:o,target:"_blank",rel:"noreferrer",children:jsx(a,{icon:"questionCircle",size:4,className:"block"})}):null]})]}),jsx("div",{className:`sidebar-fixed-content w-full flex-1 grow overflow-auto overscroll-none break-words px-5 lg:px-7 ${p.join(" ")}`,children:c}),i?jsx("div",{className:"sidebar-fixed-footer flex items-center justify-between p-5 lg:p-7 lg:pt-6",children:i}):null]})]})},g=f.memo(u);g.displayName="SidebarFixed";
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { g as a };
|
|
@@ -3,4 +3,4 @@ import { extendTailwindMerge } from 'tailwind-merge';
|
|
|
3
3
|
|
|
4
4
|
var s=["f1","f2","f3","f4","f5","f6","f7","f8"],r=extendTailwindMerge({extend:{classGroups:{"font-size":[{text:s}]},conflictingClassGroups:{"font-size":["leading","tracking"]}}});function l(...e){return r(clsx(e))}function u(...e){return t=>e.forEach(f=>c(f,t))}function c(e,t){if(typeof e=="function")e(t);else if(e){let f=e;f.current=t;}}
|
|
5
5
|
|
|
6
|
-
export { l as a, u as b };
|
|
6
|
+
export { l as a, u as b, c };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
2
|
-
import { a as a$1 } from './chunk-
|
|
3
|
-
import { a as a$2 } from './chunk-
|
|
1
|
+
import { a } from './chunk-2VQ6QMMA.js';
|
|
2
|
+
import { a as a$1 } from './chunk-BW4TJLAD.js';
|
|
3
|
+
import { a as a$2 } from './chunk-AGCI6C3Z.js';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
import h, { useMemo } from 'react';
|
|
6
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-2VQ6QMMA.js';
|
|
2
|
+
import { a as a$2 } from './chunk-BW4TJLAD.js';
|
|
3
|
+
import { a } 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("",{variants:{variant:{default:"h-12",small:"h-10",large:"h-14",xlarge:"h-24"},withoutStyle:{true:"no-style mr-1 cursor-pointer appearance-none bg-no-repeat pr-4 hover:text-inverted-1",false:"transition-border w-full min-w-0 cursor-pointer appearance-none rounded border bg-base-1 bg-no-repeat px-4 pr-8 text-sm tracking-4 text-on-base placeholder-on-base-2 shadow-none outline-none duration-75 focus:border-inverted-1"},hasErrorState:{true:"border-danger focus:border-danger",false:"border-card-stroke"},disabled:{true:"pointer-events-none bg-base-3 text-on-base-2 opacity-100"}}}),R=({className:f="",label:g,labelComplement:x,helpText:v,hasError:h=!1,errorMessage:l,required:r=!1,id:S,name:n,variant:w="default",disabled:s,placeholder:p,options:H=[],withoutStyle:c=!1,style:I,...P},T)=>{let a$3=S||n,o=h||!!l,y=a(E({variant:w,withoutStyle:c,hasErrorState:o,disabled:s})),L=jsx(a$1,{label:g,required:r,hasError:o,htmlFor:a$3,className:"mb-1",labelComplement:x}),N=jsx(a$2,{helpText:l||v,hasError:o,className:"mt-2"});return jsxs("div",{className:`form-group flex flex-col ${f}`,children:[L,jsx("div",{className:"flex w-full",children:jsxs("select",{ref:T,id:a$3,name:n,required:r,disabled:s,className:y,...P,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% - ${c?"5px":"15px"}) center`,...I},children:[p?jsx("option",{value:"",disabled:r,children:p}):null,H?.map(t=>jsx("option",{value:`${t.value}`,disabled:t.disabled,children:t.label},`${a$3}-${t.value}`))]})}),N]})},C=b.forwardRef(R),$=b.memo(C);$.displayName="Select";
|
|
9
|
+
|
|
10
|
+
export { R as a, $ as b };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-
|
|
2
|
-
import { a } from './chunk-
|
|
1
|
+
import { a as a$1 } from './chunk-PFWHNMTS.js';
|
|
2
|
+
import { a } from './chunk-AGCI6C3Z.js';
|
|
3
3
|
import f from 'react';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-
|
|
2
|
-
import { a as a$2 } from './chunk-
|
|
3
|
-
import { a } from './chunk-
|
|
1
|
+
import { a as a$1 } from './chunk-I32MZTHH.js';
|
|
2
|
+
import { a as a$2 } from './chunk-PFWHNMTS.js';
|
|
3
|
+
import { a } from './chunk-AGCI6C3Z.js';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
import g from 'react';
|
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
|
-
var p=cva("tag text-f6 items-center justify-between rounded border px-4 py-2 leading-6 tracking-4 text-primary-bold",{variants:{variant:{neutral:"border-inverted-2 bg-base-1",primary:"border-primary bg-primary-light",danger:"border-danger bg-danger-light",success:"border-success bg-success-light",warning:"border-warning bg-warning-light"},fullWidth:{true:"flex",false:"inline-flex"}},defaultVariants:{variant:"primary",fullWidth:!1}}),f=({variant:i="neutral",content:o,fullWidth:s=!1,className:l="",action:r,removeTag:c=!1,onClose:m})=>jsxs("div",{className:a(p({variant:i,fullWidth:s,className:l})),children:[jsx("div",{className:"content-container -my-px min-w-0 break-words",children:o}),r?jsx("div",{className:"action-container -my-px ml-3",children:r}):null,!r&&c?jsx("div",{className:"remove-tag-container -my-px ml-3 flex items-center justify-center",children:jsx(a$1,{title:"Remover",type:"button",onClick:m,variant:"onlyText",children:jsx(a$2,{icon:"timesCircle",size:4})})}):null]}),
|
|
8
|
+
var p=cva("tag text-f6 items-center justify-between rounded border px-4 py-2 leading-6 tracking-4 text-primary-bold",{variants:{variant:{neutral:"border-inverted-2 bg-base-1",primary:"border-primary bg-primary-light",danger:"border-danger bg-danger-light",success:"border-success bg-success-light",warning:"border-warning bg-warning-light"},fullWidth:{true:"flex",false:"inline-flex"}},defaultVariants:{variant:"primary",fullWidth:!1}}),f=({variant:i="neutral",content:o,fullWidth:s=!1,className:l="",action:r,removeTag:c=!1,onClose:m})=>jsxs("div",{className:a(p({variant:i,fullWidth:s,className:l})),children:[jsx("div",{className:"content-container -my-px min-w-0 break-words",children:o}),r?jsx("div",{className:"action-container -my-px ml-3",children:r}):null,!r&&c?jsx("div",{className:"remove-tag-container -my-px ml-3 flex items-center justify-center",children:jsx(a$1,{title:"Remover",type:"button",onClick:m,variant:"onlyText",className:"hover:text-on-base",children:jsx(a$2,{icon:"timesCircle",size:4})})}):null]}),N=g.memo(f);
|
|
9
9
|
|
|
10
|
-
export {
|
|
10
|
+
export { N as a };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-
|
|
2
|
-
import { a } from './chunk-
|
|
1
|
+
import { a as a$1 } from './chunk-PFWHNMTS.js';
|
|
2
|
+
import { a } from './chunk-AGCI6C3Z.js';
|
|
3
3
|
import { cva } from 'class-variance-authority';
|
|
4
4
|
import c from 'react';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a } from './chunk-AGCI6C3Z.js';
|
|
2
|
+
import d from 'react';
|
|
3
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var c=d.memo(({className:n="",currentStep:a$1=0,steps:o=[],showText:i=!1})=>{let m=e=>a$1>e?"bg-primary border-primary":a$1===e?"bg-inverted-1 border-inverted-1":"bg-base-4 border-base-4";return jsx("div",{className:a("w-full flex flex-row justify-center gap-x-10 mb-6 relative",n),id:"stepsContainer",children:o.map(({step:e,handleClick:s,customClassName:p,text:b},l)=>jsxs("div",{id:`step${e}`,className:"relative z-10 flex flex-row items-center gap-x-3.5 gap-y-2.5",children:[!i&&l>0&&jsx("div",{id:`leftLinkStep${e}`,className:a("absolute -left-5 h-0.5 w-5",a$1>=e?"bg-primary":"bg-base-4")}),jsx("div",{id:`stepCircle${e}`,className:a("flex size-8 items-center justify-center rounded-full border-2 text-base-1",m(e),p),children:jsx("span",{onClick:s,className:a("font-semibold",s?"cursor-pointer":""),children:e})}),i?jsx("span",{onClick:s,className:a("my-auto text-center text-sm",e<2?"cursor-pointer":"",a$1===e?"font-semibold":""),children:b}):null,!i&&l<o.length-1&&jsx("div",{id:`rightLinkStep${e}`,className:a("absolute -right-5 h-0.5 w-5",a$1>e?"bg-primary":"bg-base-4")})]},e))})});c.displayName="Stepper";
|
|
6
|
+
|
|
7
|
+
export { c as a };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as a$2 } from './chunk-
|
|
2
|
-
import { a as a$1 } from './chunk-
|
|
1
|
+
import { a as a$2 } from './chunk-PFWHNMTS.js';
|
|
2
|
+
import { a as a$1 } from './chunk-AGCI6C3Z.js';
|
|
3
3
|
import v, { useState, useEffect } from 'react';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
var a={success:{class:"bg-success-light border-success",icon:"checkCircle",iconClass:"text-success"},warning:{class:"bg-warning-light border-warning",icon:"exclamationTriangle",iconClass:"text-warning"},danger:{class:"bg-danger-light border-danger",icon:"ban",iconClass:"text-danger"},info:{class:"bg-base-1 border-inverted-2",icon:"infoCircle",iconClass:"text-inverted-2"},primary:{class:"bg-primary-light border-primary",icon:"infoCircle",iconClass:"text-primary"}},N=({variant:s="info",isOpen:t=!0,title:p,subtitle:
|
|
6
|
+
var a={success:{class:"bg-success-light border-success",icon:"checkCircle",iconClass:"text-success"},warning:{class:"bg-warning-light border-warning",icon:"exclamationTriangle",iconClass:"text-warning"},danger:{class:"bg-danger-light border-danger",icon:"ban",iconClass:"text-danger"},info:{class:"bg-base-1 border-inverted-2",icon:"infoCircle",iconClass:"text-inverted-2"},primary:{class:"bg-primary-light border-primary",icon:"infoCircle",iconClass:"text-primary"}},N=({variant:s="info",isOpen:t=!0,title:p,subtitle:l,actions:o,showClose:f=!1,onClose:c,hideIcon:g=!1,customIcon:m,className:b})=>{let[x,d]=useState(t);useEffect(()=>{d(t);},[t]);let u=()=>{d(!1),c?.();};return x?jsxs("div",{className:a$1("alert relative flex w-full items-start rounded border border-l-4 px-5 py-4 sm:items-center",a[s].class,b),children:[!g&&jsx("div",{className:a$1("alert-icon mr-3 hidden shrink-0 sm:block",a[s].iconClass),children:jsx(a$2,{icon:m||a[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:"text-f6 flex min-w-0 flex-col justify-center break-words leading-5 tracking-4 text-on-base",children:[jsx("span",{className:"alert-title font-semibold",children:p}),l?jsx("span",{className:"alert-subtitle mt-1",children:l}):null]}),o?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:o}):null]}),f||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:u,type:"button","aria-label":"Close",children:jsx(a$2,{icon:"close",size:4,className:"mt-px sm:mt-0"})})}):null]}):null},h=v.memo(N);h.displayName="Alert";
|
|
7
7
|
|
|
8
|
-
export {
|
|
8
|
+
export { h as a };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { a as a$2 } from './chunk-VFFDRP2O.js';
|
|
2
|
+
import { f, c, a as a$1, b, d, g } from './chunk-TJKZQP6P.js';
|
|
3
|
+
import { a } from './chunk-NRAIF4I3.js';
|
|
4
|
+
import { useReactTable, getCoreRowModel, getPaginationRowModel, getFilteredRowModel, getFacetedUniqueValues, flexRender } from '@tanstack/react-table';
|
|
5
|
+
import { memo, useState, useMemo, useEffect } from 'react';
|
|
6
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var j=n=>typeof n=="string"?jsx("div",{className:"text-f4 py-4 text-center font-semibold text-on-base-2 lg:py-10",children:n}):n,J=({columns:n,data:d$1=[],isLoading:h=!1,error:g$1=!1,selectable:l=!1,showSelectAll:y=!0,showCountSelected:S=!0,onChange:f$1,selectedIds:R,disabledIds:w=[],id:b$1="",emptyText:A="Nenhum registro encontrado",errorText:v="Ocorreu um erro ao carregar os itens."})=>{let[o,N]=useState({}),r=useMemo(()=>n.map(e=>({...e,accessorKey:e?.id||""})),[n]);useEffect(()=>{R&&N(R.reduce((e,a)=>({...e,[a]:!0}),{})||{});},[R]),useEffect(()=>{f$1&&f$1(Object.keys(o));},[o,f$1]);let u=useMemo(()=>b$1?`table${b$1.charAt(0).toUpperCase()}${b$1.slice(1)}`:"table",[b$1]),F=useMemo(()=>l?w.length===0?!0:e=>!w.includes(e.id.toString()):!1,[l,w]),s=useReactTable({data:d$1,columns:r,state:{rowSelection:o},getRowId:e=>e?.id,enableRowSelection:F,onRowSelectionChange:N,getCoreRowModel:getCoreRowModel(),getPaginationRowModel:getPaginationRowModel(),getFilteredRowModel:getFilteredRowModel(),getFacetedUniqueValues:getFacetedUniqueValues()}),D=s.getIsAllRowsSelected(),x=s.getIsSomeRowsSelected(),E=useMemo(()=>s.getHeaderGroups().map(e=>jsxs(f,{children:[l?jsx(c,{className:"w-8",children:y?jsx(a,{checked:D,indeterminate:!D&&x,onChange:s.getToggleAllRowsSelectedHandler(),id:`checkboxSelectAllRows${u}`}):null}):null,e.headers.map((a,U)=>jsx(c,{colSpan:a.colSpan,className:a.column.columnDef?.className?.header||"",children:S&&U===0&&Object.keys(o).length>0?jsxs("span",{className:"min-w-28 text-primary-dark",id:"tableCountSelected",children:[Object.keys(o).length," selecionado",Object.keys(o).length>1?"s":""]}):a.isPlaceholder?null:flexRender(a.column.columnDef.header,a.getContext())},a.id))]},e.id)),[s,l,u,D,x,y,o,S]),G=useMemo(()=>l?r.length+1:r.length,[r,l]);return jsxs(a$1,{id:u,children:[jsx(b,{children:E}),jsx(d,{className:"flex flex-col gap-2 lg:table-row-group",children:h||g$1||d$1.length===0?jsx(f,{className:g$1||d$1.length===0?"p-0 hover:bg-transparent max-lg:border-none":"flex-row flex-wrap items-center",children:h?jsxs(Fragment,{children:[l?jsx(g,{className:"mr-2",children:jsx(a,{disabled:!0,className:"animate-pulse"})}):null,r.map((e,a)=>jsx(g,{className:`${a===0?"w-10/12":"w-full"} lg:w-auto`,children:jsx(a$2,{className:"mb-1 lg:mb-0"})},`${e.id}-${a}`))]}):g$1||d$1.length===0?jsx(g,{colSpan:G||1,children:j(g$1?v:A)}):null}):s.getRowModel().rows.map(e=>jsxs(f,{"data-checked":e.getIsSelected(),className:l?"flex-row flex-wrap items-center":"",children:[l?jsx(g,{children:jsx(a,{onChange:e.getToggleSelectedHandler(),checked:e.getIsSelected(),disabled:!e.getCanSelect(),indeterminate:e.getIsSomeSelected(),id:`checkboxRow${e.id}${u}`,className:"mr-2 lg:mr-0"})}):null,e.getVisibleCells().map(a=>jsx(g,{className:a.column.columnDef?.className?.cell||"",children:flexRender(a.column.columnDef.cell,a.getContext())},a.id))]},e.id))})]})},P=memo(J);P.displayName="DataTable";var te=P;
|
|
9
|
+
|
|
10
|
+
export { te as a };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-
|
|
2
|
-
import { a } from './chunk-
|
|
1
|
+
import { a as a$1 } from './chunk-PFWHNMTS.js';
|
|
2
|
+
import { a } from './chunk-AGCI6C3Z.js';
|
|
3
3
|
import { cva } from 'class-variance-authority';
|
|
4
4
|
import { memo } from 'react';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a } from './chunk-L6H2NDVS.js';
|
|
2
|
-
import { a as a$1 } from './chunk-
|
|
3
|
-
import { a as a$2 } from './chunk-
|
|
4
|
-
import
|
|
2
|
+
import { a as a$1 } from './chunk-I32MZTHH.js';
|
|
3
|
+
import { a as a$2 } from './chunk-PFWHNMTS.js';
|
|
4
|
+
import c, { memo, useState, useEffect } from 'react';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
var b=({onlyMobile:i=!1,children:l})=>{let[d,m]=useState(!0);return useEffect(()=>{if(typeof window<"u"){let e=window.parent.document.querySelector(".botbar"),t=window.document.querySelector(".page-container");return e&&(e.style.display="none"),t&&(t.classList.remove("lg:mb-10","lg:pb-0"),m(!!t.dataset.expanded)),()=>{e&&(e.style.display=""),t&&t.classList.add("lg:mb-10","lg:pb-0");}}},[]),jsx("div",{className:"action-bar fixed inset-x-0 bottom-0 h-12 lg:h-auto pb-0-safe bg-inverted-1 lg:bg-base-1 z-50 shadow"+(i?" lg:hidden":""),children:jsxs("div",{className:`${d?a.expanded:a.default} mx-auto flex size-full items-center justify-center px-8 lg:justify-end lg:px-0`,children:[!i&&jsx("div",{className:"my-2.5 mr-8 hidden grid-flow-col gap-x-4 lg:grid",children:
|
|
7
|
+
var b=({onlyMobile:i=!1,children:l})=>{let[d,m]=useState(!0);return useEffect(()=>{if(typeof window<"u"){let e=window.parent.document.querySelector(".botbar"),t=window.document.querySelector(".page-container");return e&&(e.style.display="none"),t&&(t.classList.remove("lg:mb-10","lg:pb-0"),m(!!t.dataset.expanded)),()=>{e&&(e.style.display=""),t&&t.classList.add("lg:mb-10","lg:pb-0");}}},[]),jsx("div",{className:"action-bar fixed inset-x-0 bottom-0 h-12 lg:h-auto pb-0-safe bg-inverted-1 lg:bg-base-1 z-50 shadow"+(i?" lg:hidden":""),children:jsxs("div",{className:`${d?a.expanded:a.default} mx-auto flex size-full items-center justify-center px-8 lg:justify-end lg:px-0`,children:[!i&&jsx("div",{className:"my-2.5 mr-8 hidden grid-flow-col gap-x-4 lg:grid",children:c.Children.map(l,({props:e})=>{let{...t}=e;return delete t?.icon,jsx(a$1,{...t})})}),jsx("div",{className:"lg:hidden",children:c.Children.map(l,({props:e})=>{if(e.children)return jsxs("button",{className:"px-4 py-1 text-base-1 active:text-base-4 transition-colors"+(e?.loading?" pointer-events-none":""),onClick:e?.onClick,type:e?.type||"button",children:[e?.loading?jsx(a$2,{icon:"loading",className:"p-px"}):e?.icon&&jsx(a$2,{icon:e?.icon,className:"mx-auto p-px"}),jsx("span",{className:"text-f8 mt-px block",children:e.children})]})})})]})})},x=memo(b);x.displayName="ActionBar";
|
|
8
8
|
|
|
9
9
|
export { x as a };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-AGCI6C3Z.js';
|
|
2
2
|
import { cva } from 'class-variance-authority';
|
|
3
3
|
import o from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
var i=cva("badge items-center justify-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:"px-2 py-0.5 text-xs",small:"px-1.5 text-[0.70rem]",xsmall:"text-f8 px-0.5 py-px"},expanded:{true:"flex w-full",false:"inline-flex"},rounded:{full:"rounded-full",small:"rounded",none:"rounded-none"}},defaultVariants:{type:"primary",size:"default"}}),u=({type:
|
|
6
|
+
var i=cva("badge items-center justify-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:"px-2 py-0.5 text-xs",small:"px-1.5 text-[0.70rem]",xsmall:"text-f8 px-0.5 py-px"},expanded:{true:"flex w-full",false:"inline-flex"},rounded:{full:"rounded-full",small:"rounded",none:"rounded-none"}},defaultVariants:{type:"primary",size:"default"}}),u=({type:a$1="neutral",text:t,size:r="default",expanded:s=!1,rounded:n="full",className:l=""})=>jsx("div",{className:a(i({type:a$1,size:r,expanded:s,rounded:n}),l),children:t}),p=o.memo(u);p.displayName="Badge";
|
|
7
7
|
|
|
8
|
-
export {
|
|
8
|
+
export { p as a };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
2
|
-
import { b } from './chunk-
|
|
1
|
+
import { a } from './chunk-DJEPTLO4.js';
|
|
2
|
+
import { b } from './chunk-AGCI6C3Z.js';
|
|
3
3
|
import V from 'react';
|
|
4
4
|
import C from 'react-text-mask';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|