@loja-integrada/admin-components 1.3.9 → 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/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 +1 -1
- package/package.json +3 -3
- 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 };
|
|
@@ -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
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loja-integrada/admin-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.10",
|
|
4
4
|
"author": "Loja Integrada",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"tsup": "^8.1.0",
|
|
33
33
|
"typescript": "^5.3.3",
|
|
34
34
|
"vite": "^5.1.4",
|
|
35
|
-
"@loja-integrada/
|
|
36
|
-
"@loja-integrada/
|
|
35
|
+
"@loja-integrada/eslint-config": "0.0.3",
|
|
36
|
+
"@loja-integrada/typescript-config": "0.0.2"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@tanstack/react-table": "^8.17.3",
|
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 };
|