@loja-integrada/admin-components 1.3.8 → 1.3.10
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-5CLBTU6W.js +7 -0
- package/dist/chunk-QCDUWB6S.js +8 -0
- package/dist/components/SidebarFixed/SidebarFixed.client.d.ts +4 -0
- package/dist/components/SidebarFixed/index.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/forms/Calendar/index.js +1 -1
- package/dist/forms/index.js +1 -1
- package/dist/index.js +2 -2
- package/dist/indicators/Alert/index.js +1 -1
- package/dist/indicators/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-NGGA7AJU.js +0 -8
- package/dist/chunk-PWQQCQKJ.js +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a } from './chunk-KEDPPRQK.js';
|
|
2
|
+
import h, { useState, useEffect, useMemo } from 'react';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var _=["[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"],k=({children:p,footerActions:l,isOpen:d=!1,onClose:x,title:r,helpLink:c,enlarge:b})=>{let[a$1,f]=useState(!1),[u,g]=useState("");useEffect(()=>{f(d);},[d]);let o=()=>{f(!1),x?.();};useEffect(()=>{let t=y=>{y.key==="Escape"&&o();};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t);}},[]),useEffect(()=>{if(typeof window<"u"){let t=window.parent.document.querySelector(".botbar");t&&(a$1?(g(t.style.display),t.style.display="none"):t.style.display=u);}},[a$1]);let v=useMemo(()=>b?"sm:max-w-[560px]":"sm:max-w-[410px]",[b]);return jsxs("div",{className:`sidebar-fixed fixed bottom-0 right-0 z-40 size-full overflow-hidden transition-all ease-in-out lg:z-20 ${a$1?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"}`,children:[jsx("div",{className:"sidebar-fixed-backdrop fixed inset-0 -z-1 size-full overflow-hidden bg-black/50",onClick:o}),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:rounded-none ${v} ${a$1?"translate-y-0 sm:translate-x-0 sm:translate-y-0":"translate-y-10 sm:translate-x-10 sm:translate-y-0"}`,children:[jsxs("div",{className:"sidebar-fixed-header flex items-center justify-between p-3 text-inverted-2 lg:px-6",children:[r?jsx("div",{className:"sidebar-fixed-title text-f5 p-2 font-semibold text-inverted-1 sm:text-f4 sm:py-5",children:r}):null,jsxs("div",{className:`flex justify-between${r?"":" 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 lg:-mr-2",onClick:o,children:jsx(a,{icon:"close",size:4,className:"block"})}),c?jsx("a",{"aria-label":"Ajuda",className:"sidebar-fixed-help p-2 text-inverted-2 transition-colors hover:text-inverted-1",href:c,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-8 ${_.join(" ")}`,children:p}),l?jsx("div",{className:"sidebar-fixed-footer flex items-center justify-between p-5 lg:p-7 lg:pt-6",children:l}):null]})]})},N=h.memo(k);N.displayName="SidebarFixed";
|
|
6
|
+
|
|
7
|
+
export { N as a };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-KEDPPRQK.js';
|
|
2
|
+
import { a } from './chunk-REQIQLRI.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 };
|
|
@@ -29,5 +29,9 @@ interface SidebarFixedProps {
|
|
|
29
29
|
* @default 'document.body'
|
|
30
30
|
*/
|
|
31
31
|
parentSelector?: HTMLElement | null;
|
|
32
|
+
/** Controls wether the sidebar maximum width should be enlarged to 560px or not
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
enlarge?: boolean;
|
|
32
36
|
}
|
|
33
37
|
export { SidebarFixed, type SidebarFixedProps };
|
package/dist/components/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import '../chunk-DVFKTOCS.js';
|
|
|
6
6
|
import '../chunk-DIENJUYM.js';
|
|
7
7
|
import '../chunk-G3GCVCTU.js';
|
|
8
8
|
export { a as Modal } from '../chunk-43T3KK4M.js';
|
|
9
|
-
export { a as SidebarFixed } from '../chunk-
|
|
9
|
+
export { a as SidebarFixed } from '../chunk-5CLBTU6W.js';
|
|
10
10
|
export { a as Table, d as TableBody, h as TableCaption, g as TableCell, e as TableFooter, c as TableHead, b as TableHeader, f as TableRow } from '../chunk-MMWMFOBR.js';
|
|
11
11
|
export { a as Tabs } from '../chunk-5RIHTR6L.js';
|
|
12
12
|
export { a as Timeline } from '../chunk-OXY2F5GF.js';
|
|
@@ -15,7 +15,7 @@ import '../../chunk-DVFKTOCS.js';
|
|
|
15
15
|
import '../../chunk-DIENJUYM.js';
|
|
16
16
|
import '../../chunk-G3GCVCTU.js';
|
|
17
17
|
import '../../chunk-43T3KK4M.js';
|
|
18
|
-
import '../../chunk-
|
|
18
|
+
import '../../chunk-5CLBTU6W.js';
|
|
19
19
|
import '../../chunk-MMWMFOBR.js';
|
|
20
20
|
import '../../chunk-5RIHTR6L.js';
|
|
21
21
|
import '../../chunk-OXY2F5GF.js';
|
package/dist/forms/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import '../chunk-DVFKTOCS.js';
|
|
|
21
21
|
export { a as Checkbox } from '../chunk-DIENJUYM.js';
|
|
22
22
|
export { a as InputHelpText } from '../chunk-G3GCVCTU.js';
|
|
23
23
|
import '../chunk-43T3KK4M.js';
|
|
24
|
-
import '../chunk-
|
|
24
|
+
import '../chunk-5CLBTU6W.js';
|
|
25
25
|
import '../chunk-MMWMFOBR.js';
|
|
26
26
|
import '../chunk-5RIHTR6L.js';
|
|
27
27
|
import '../chunk-OXY2F5GF.js';
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ export { a as InputMask } from './chunk-NW24WOHT.js';
|
|
|
23
23
|
export { a as Input } from './chunk-SJ4MATMO.js';
|
|
24
24
|
export { a as InputLabel } from './chunk-7Z3CCBLX.js';
|
|
25
25
|
export { a as Toggle } from './chunk-K4PEKBET.js';
|
|
26
|
-
export { a as Alert } from './chunk-
|
|
26
|
+
export { a as Alert } from './chunk-QCDUWB6S.js';
|
|
27
27
|
export { a as Badge } from './chunk-7NXFX6TD.js';
|
|
28
28
|
export { a as Tag } from './chunk-EUZRZJ5Q.js';
|
|
29
29
|
export { a as Button } from './chunk-VVJUHPYS.js';
|
|
@@ -32,7 +32,7 @@ import './chunk-DVFKTOCS.js';
|
|
|
32
32
|
export { a as Checkbox } from './chunk-DIENJUYM.js';
|
|
33
33
|
export { a as InputHelpText } from './chunk-G3GCVCTU.js';
|
|
34
34
|
export { a as Modal } from './chunk-43T3KK4M.js';
|
|
35
|
-
export { a as SidebarFixed } from './chunk-
|
|
35
|
+
export { a as SidebarFixed } from './chunk-5CLBTU6W.js';
|
|
36
36
|
export { a as Table, d as TableBody, h as TableCaption, g as TableCell, e as TableFooter, c as TableHead, b as TableHeader, f as TableRow } from './chunk-MMWMFOBR.js';
|
|
37
37
|
export { a as Tabs } from './chunk-5RIHTR6L.js';
|
|
38
38
|
export { a as Timeline } from './chunk-OXY2F5GF.js';
|
package/dist/indicators/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../chunk-7RP4L6ZM.js';
|
|
2
2
|
export { b as ToastContainer, a as notify } from '../chunk-RXFTQHN7.js';
|
|
3
3
|
export { a as Tooltip } from '../chunk-TZI6YTCW.js';
|
|
4
|
-
export { a as Alert } from '../chunk-
|
|
4
|
+
export { a as Alert } from '../chunk-QCDUWB6S.js';
|
|
5
5
|
export { a as Badge } from '../chunk-7NXFX6TD.js';
|
|
6
6
|
export { a as Tag } from '../chunk-EUZRZJ5Q.js';
|
|
7
7
|
import '../chunk-VVJUHPYS.js';
|
package/package.json
CHANGED
package/dist/chunk-NGGA7AJU.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-KEDPPRQK.js';
|
|
2
|
-
import { a } from './chunk-REQIQLRI.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-base-1 border-inverted-2",icon:"infoCircle",iconClass:"text-inverted-2"},primary:{class:"bg-primary-light border-primary",icon:"infoCircle",iconClass:"text-primary"}},k=({variant:s="info",isOpen:t=!0,title:f,subtitle:l,actions:i,showClose:b=!1,onClose:c,hideIcon:g=!1,customIcon:m,allBorders:d=!0,className:x})=>{let[u,p]=useState(t);useEffect(()=>{p(t);},[t]);let v=()=>{p(!1),c?.();},C=useMemo(()=>d?"":"border-r-0 border-y-0",[d]);return u?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,x),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:f}),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(k);R.displayName="Alert";
|
|
7
|
-
|
|
8
|
-
export { R as a };
|
package/dist/chunk-PWQQCQKJ.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-KEDPPRQK.js';
|
|
2
|
-
import v, { useState, useEffect } from 'react';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var y=["[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"],h=({children:m,footerActions:l,isOpen:d=!1,onClose:p,title:s,helpLink:c})=>{let[a$1,b]=useState(!1),[x,u]=useState("");useEffect(()=>{b(d);},[d]);let o=()=>{b(!1),p?.();};return useEffect(()=>{let t=g=>{g.key==="Escape"&&o();};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t);}},[]),useEffect(()=>{if(typeof window<"u"){let t=window.parent.document.querySelector(".botbar");t&&(a$1?(u(t.style.display),t.style.display="none"):t.style.display=x);}},[a$1]),jsxs("div",{className:`sidebar-fixed fixed bottom-0 right-0 z-40 size-full overflow-hidden transition-all ease-in-out lg:z-20 ${a$1?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"}`,children:[jsx("div",{className:"sidebar-fixed-backdrop fixed inset-0 -z-1 size-full overflow-hidden bg-black/50",onClick:o}),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 ${a$1?"translate-y-0 sm:translate-x-0 sm:translate-y-0":"translate-y-10 sm:translate-x-10 sm:translate-y-0"}`,children:[jsxs("div",{className:"sidebar-fixed-header flex items-center justify-between p-3 text-inverted-2 lg:px-6",children:[s?jsx("div",{className:"sidebar-fixed-title text-f5 p-2 font-semibold text-inverted-1 sm:text-f4 sm:py-5",children:s}):null,jsxs("div",{className:`flex justify-between${s?"":" 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 lg:-mr-2",onClick:o,children:jsx(a,{icon:"close",size:4,className:"block"})}),c?jsx("a",{"aria-label":"Ajuda",className:"sidebar-fixed-help p-2 text-inverted-2 transition-colors hover:text-inverted-1",href:c,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-8 ${y.join(" ")}`,children:m}),l?jsx("div",{className:"sidebar-fixed-footer flex items-center justify-between p-5 lg:p-7 lg:pt-6",children:l}):null]})]})},w=v.memo(h);w.displayName="SidebarFixed";
|
|
6
|
-
|
|
7
|
-
export { w as a };
|