@zydon/common 2.7.78 → 2.7.80
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-ZGSSTXUO.js → chunk-6RC5O2YL.js} +3 -3
- package/dist/{chunk-FK4XGRYF.js → chunk-AVPFUSEB.js} +4 -4
- package/dist/chunk-AVPFUSEB.js.map +1 -0
- package/dist/chunk-BLVCNBTJ.js +7 -0
- package/dist/chunk-BLVCNBTJ.js.map +1 -0
- package/dist/chunk-BX2DSNRV.js +8 -0
- package/dist/chunk-BX2DSNRV.js.map +1 -0
- package/dist/{chunk-R76WTFYC.js → chunk-BYYU7ENX.js} +2 -2
- package/dist/{chunk-N4DW7EIC.js → chunk-DSFFQBLG.js} +2 -2
- package/dist/{chunk-LEMPYV5U.js → chunk-E6NUW3KZ.js} +2 -2
- package/dist/{chunk-UHXAPEIF.js → chunk-EDWQYAWG.js} +2 -2
- package/dist/chunk-F65ZXAGV.js +10 -0
- package/dist/chunk-F65ZXAGV.js.map +1 -0
- package/dist/{chunk-45OMMG7D.js → chunk-FBN7HCBY.js} +2 -2
- package/dist/chunk-FBN7HCBY.js.map +1 -0
- package/dist/chunk-FCXNL2OG.js +12 -0
- package/dist/chunk-FCXNL2OG.js.map +1 -0
- package/dist/{chunk-U7BH6DMJ.js → chunk-FYDTPVVK.js} +2 -2
- package/dist/{chunk-HWYA3EGC.js → chunk-HYJEAKVR.js} +2 -2
- package/dist/chunk-I5R4OVA5.js +26 -0
- package/dist/chunk-I5R4OVA5.js.map +1 -0
- package/dist/{chunk-KEOOC3EL.js → chunk-J2PFUGFW.js} +2 -2
- package/dist/{chunk-ATVM2YRB.js → chunk-J7JX2QOP.js} +2 -2
- package/dist/chunk-JWIITCIZ.js +20 -0
- package/dist/chunk-JWIITCIZ.js.map +1 -0
- package/dist/{chunk-WYJV57WG.js → chunk-LFZJKAV6.js} +2 -2
- package/dist/{chunk-SVJYA4Q6.js → chunk-MS6MTEJM.js} +4 -4
- package/dist/{chunk-VCHDZXTF.js → chunk-NB6Z5G2Q.js} +2 -2
- package/dist/{chunk-7HLCQRIH.js → chunk-O5HTDU3K.js} +3 -3
- package/dist/{chunk-5LQLLZ5L.js → chunk-PSWJSHGP.js} +2 -2
- package/dist/chunk-QGWIO2AX.js +18 -0
- package/dist/chunk-QGWIO2AX.js.map +1 -0
- package/dist/chunk-RTC7H5E5.js +10 -0
- package/dist/chunk-RTC7H5E5.js.map +1 -0
- package/dist/{chunk-RPPQBAVO.js → chunk-SHJKJLBQ.js} +2 -2
- package/dist/{chunk-XZFBTUAG.js → chunk-ULSLLFRH.js} +3 -3
- package/dist/{chunk-YDLDZVF5.js → chunk-UWW26H42.js} +7 -7
- package/dist/chunk-UWW26H42.js.map +1 -0
- package/dist/chunk-VJZTUPZB.js +12 -0
- package/dist/chunk-VJZTUPZB.js.map +1 -0
- package/dist/{chunk-NQNNMRLC.js → chunk-VPG46WNM.js} +5 -5
- package/dist/chunk-VPG46WNM.js.map +1 -0
- package/dist/chunk-VR3K2Y2C.js +11 -0
- package/dist/chunk-VR3K2Y2C.js.map +1 -0
- package/dist/chunk-W3CK33IH.js +10 -0
- package/dist/chunk-W3CK33IH.js.map +1 -0
- package/dist/{chunk-CWCEG2DZ.js → chunk-WVWLU3GP.js} +2 -2
- package/dist/chunk-X2GWFMP4.js +19 -0
- package/dist/chunk-X2GWFMP4.js.map +1 -0
- package/dist/{chunk-P6HORLPW.js → chunk-X64QHBVQ.js} +2 -2
- package/dist/components/ActionButton/index.js +2 -2
- package/dist/components/Autocomplete/index.d.ts +1 -1
- package/dist/components/Autocomplete/index.js +2 -2
- package/dist/components/AutocompleteDetailed/index.d.ts +1 -1
- package/dist/components/AutocompleteDetailed/index.js +2 -2
- package/dist/components/Avatar/index.d.ts +1 -3
- package/dist/components/Avatar/index.js +4 -4
- package/dist/components/Avatar/index.js.map +1 -1
- package/dist/components/AvatarButton/index.js +6 -6
- package/dist/components/BuilderLayout/index.js +2 -2
- package/dist/components/BuilderSidebar/index.js +1 -1
- package/dist/components/BulkEditModal/index.js +3 -3
- package/dist/components/CardBrand/index.js +1 -1
- package/dist/components/Common/index.js +3 -3
- package/dist/components/CopyButton/index.js +3 -3
- package/dist/components/CustomAvatar/index.d.ts +1 -1
- package/dist/components/CustomAvatar/index.js +1 -1
- package/dist/components/CustomAvatarGroup/index.d.ts +1 -1
- package/dist/components/CustomAvatarGroup/index.js +4 -4
- package/dist/components/CustomAvatarGroup/index.js.map +1 -1
- package/dist/components/DataCards/index.d.ts +4 -4
- package/dist/components/DataCards/index.js +4 -3
- package/dist/components/DataCards/index.js.map +1 -1
- package/dist/components/DataView/index.d.ts +12 -26
- package/dist/components/DataView/index.js +4 -4
- package/dist/components/DragButton/index.d.ts +1 -3
- package/dist/components/DragButton/index.js +2 -2
- package/dist/components/DragContainer/index.d.ts +1 -3
- package/dist/components/Drawer/index.js +2 -2
- package/dist/components/DynamicDataView/index.d.ts +2 -2
- package/dist/components/DynamicDataView/index.js +12 -11
- package/dist/components/DynamicDataView/index.js.map +1 -1
- package/dist/components/EasyCropModal/index.js +3 -3
- package/dist/components/Error/index.js +1 -1
- package/dist/components/ExpandableGroup/index.js +1 -1
- package/dist/components/FieldMentions/index.js +3 -3
- package/dist/components/FieldMentions/index.js.map +1 -1
- package/dist/components/FileUpload/index.js +7 -7
- package/dist/components/FrameSkeleton/index.js +5 -5
- package/dist/components/HelpButton/index.js +2 -2
- package/dist/components/Icon/index.d.ts +1 -1
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/IconButton/index.js +2 -2
- package/dist/components/ImageCropModal/index.js +2 -2
- package/dist/components/Incrementer/index.js +3 -3
- package/dist/components/InfoCircle/index.js +2 -2
- package/dist/components/Label/index.d.ts +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/ListBundles/index.d.ts +2 -1
- package/dist/components/ListBundles/index.js +2 -2
- package/dist/components/MaskedInput/index.d.ts +1 -1
- package/dist/components/MaskedInput/index.js +1 -1
- package/dist/components/MenuItem/index.js +1 -1
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/MoreMenu/index.js +1 -1
- package/dist/components/NumberInput/index.d.ts +1 -1
- package/dist/components/NumberInput/index.js +1 -1
- package/dist/components/PageHeader/index.js +4 -4
- package/dist/components/PageHeader/index.js.map +1 -1
- package/dist/components/PasswordRules/index.js +1 -1
- package/dist/components/PopoverSelect/index.js +1 -1
- package/dist/components/Result/index.d.ts +1 -1
- package/dist/components/Scrollbar/index.d.ts +1 -1
- package/dist/components/Scrollbar/index.js +1 -1
- package/dist/components/SearchInput/index.js +2 -2
- package/dist/components/SelectList/index.js +4 -4
- package/dist/components/SelectableCards/index.js +4 -4
- package/dist/components/SeoPreview/index.js +2 -2
- package/dist/components/StateDisplay/index.js +2 -2
- package/dist/components/Steps/index.js +1 -1
- package/dist/components/StyledTab/index.js +1 -1
- package/dist/components/SwapList/index.js +3 -3
- package/dist/components/TextMaxLine/index.d.ts +1 -1
- package/dist/components/TextMaxLine/index.js +1 -1
- package/dist/components/ToggleTheme/index.js +4 -4
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/WebhookCard/index.js +2 -2
- package/dist/components/carousel/index.d.ts +3 -9
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/form/Address/index.js +5 -5
- package/dist/components/form/Autocomplete/index.js +3 -3
- package/dist/components/form/AutocompleteDetailed/index.js +2 -2
- package/dist/components/form/Codes/index.js +1 -1
- package/dist/components/form/FileUpload/index.js +7 -7
- package/dist/components/form/Incrementer/index.js +3 -3
- package/dist/components/form/MaskedInput/index.js +2 -2
- package/dist/components/form/NumberInput/index.js +1 -1
- package/dist/components/form/Password/index.js +1 -1
- package/dist/components/form/SelectList/index.js +4 -4
- package/dist/components/form/SelectableCards/index.js +4 -4
- package/dist/components/form/Webhook/index.js +4 -4
- package/dist/components/lightbox/index.js +1 -1
- package/dist/components/table/index.js +2 -2
- package/dist/hooks/useCollapseSidebarOnMount.js +3 -3
- package/dist/hooks/useDatagrid.d.ts +2 -2
- package/dist/hooks/useDatagrid.js +2 -2
- package/dist/hooks/useDatagrid.js.map +1 -1
- package/dist/hooks/useDeepCompareEffect.js +2 -2
- package/dist/hooks/useDeepCompareEffect.js.map +1 -1
- package/dist/hooks/useEventListener.d.ts +2 -2
- package/dist/hooks/useEventListener.js +1 -1
- package/dist/hooks/useLocalStorage.js +2 -2
- package/dist/hooks/useOnClickOutside.js +1 -1
- package/dist/hooks/useScrollOffSetTop.d.ts +1 -1
- package/dist/hooks/useScrollOffSetTop.js +1 -1
- package/dist/hooks/useScrollOffSetTop.js.map +1 -1
- package/dist/hooks/useSnackbar.d.ts +8 -8
- package/dist/hooks/useThemeToggle.js +3 -3
- package/dist/index.js +3 -3
- package/dist/layouts/Admin/index.js +1 -1
- package/dist/theme/settings-provider.js +1 -1
- package/dist/theme/styles/index.d.ts +203 -116
- package/dist/theme/theme-provider.js +2 -2
- package/dist/types/sectionProps.d.ts +2 -2
- package/package.json +21 -19
- package/dist/chunk-23NOJPUV.js +0 -19
- package/dist/chunk-23NOJPUV.js.map +0 -1
- package/dist/chunk-2WG6OWB4.js +0 -8
- package/dist/chunk-2WG6OWB4.js.map +0 -1
- package/dist/chunk-45OMMG7D.js.map +0 -1
- package/dist/chunk-6LXCHHW2.js +0 -12
- package/dist/chunk-6LXCHHW2.js.map +0 -1
- package/dist/chunk-7R6ZYEQS.js +0 -11
- package/dist/chunk-7R6ZYEQS.js.map +0 -1
- package/dist/chunk-DHRVSWFW.js +0 -10
- package/dist/chunk-DHRVSWFW.js.map +0 -1
- package/dist/chunk-FK4XGRYF.js.map +0 -1
- package/dist/chunk-IGOVBLZ2.js +0 -19
- package/dist/chunk-IGOVBLZ2.js.map +0 -1
- package/dist/chunk-KIWSLR76.js +0 -10
- package/dist/chunk-KIWSLR76.js.map +0 -1
- package/dist/chunk-L5URMM57.js +0 -7
- package/dist/chunk-L5URMM57.js.map +0 -1
- package/dist/chunk-LNXA53QR.js +0 -12
- package/dist/chunk-LNXA53QR.js.map +0 -1
- package/dist/chunk-NQNNMRLC.js.map +0 -1
- package/dist/chunk-U4ZTAFZV.js +0 -18
- package/dist/chunk-U4ZTAFZV.js.map +0 -1
- package/dist/chunk-UJGDCLUU.js +0 -25
- package/dist/chunk-UJGDCLUU.js.map +0 -1
- package/dist/chunk-XWUVJ22J.js +0 -10
- package/dist/chunk-XWUVJ22J.js.map +0 -1
- package/dist/chunk-YDLDZVF5.js.map +0 -1
- /package/dist/{chunk-ZGSSTXUO.js.map → chunk-6RC5O2YL.js.map} +0 -0
- /package/dist/{chunk-R76WTFYC.js.map → chunk-BYYU7ENX.js.map} +0 -0
- /package/dist/{chunk-N4DW7EIC.js.map → chunk-DSFFQBLG.js.map} +0 -0
- /package/dist/{chunk-LEMPYV5U.js.map → chunk-E6NUW3KZ.js.map} +0 -0
- /package/dist/{chunk-UHXAPEIF.js.map → chunk-EDWQYAWG.js.map} +0 -0
- /package/dist/{chunk-U7BH6DMJ.js.map → chunk-FYDTPVVK.js.map} +0 -0
- /package/dist/{chunk-HWYA3EGC.js.map → chunk-HYJEAKVR.js.map} +0 -0
- /package/dist/{chunk-KEOOC3EL.js.map → chunk-J2PFUGFW.js.map} +0 -0
- /package/dist/{chunk-ATVM2YRB.js.map → chunk-J7JX2QOP.js.map} +0 -0
- /package/dist/{chunk-WYJV57WG.js.map → chunk-LFZJKAV6.js.map} +0 -0
- /package/dist/{chunk-SVJYA4Q6.js.map → chunk-MS6MTEJM.js.map} +0 -0
- /package/dist/{chunk-VCHDZXTF.js.map → chunk-NB6Z5G2Q.js.map} +0 -0
- /package/dist/{chunk-7HLCQRIH.js.map → chunk-O5HTDU3K.js.map} +0 -0
- /package/dist/{chunk-5LQLLZ5L.js.map → chunk-PSWJSHGP.js.map} +0 -0
- /package/dist/{chunk-RPPQBAVO.js.map → chunk-SHJKJLBQ.js.map} +0 -0
- /package/dist/{chunk-XZFBTUAG.js.map → chunk-ULSLLFRH.js.map} +0 -0
- /package/dist/{chunk-CWCEG2DZ.js.map → chunk-WVWLU3GP.js.map} +0 -0
- /package/dist/{chunk-P6HORLPW.js.map → chunk-X64QHBVQ.js.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import m from '@mui/material/Link';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import t from '@mui/material/Stack';
|
|
3
|
+
import n from '@mui/material/Typography';
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
var s=({title:
|
|
6
|
+
var s=({title:r,subTitle:i,actions:p,helpLink:o})=>jsxs(t,{direction:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",gap:2,children:[jsxs(t,{maxWidth:"md",children:[jsx(n,{variant:"h4",component:typeof r=="string"?"h2":"div",children:r}),jsxs(n,{variant:"body2",color:"text.secondary",children:[i,o&&jsxs(Fragment,{children:[" ",jsx(m,{variant:"subtitle2",href:o,target:"_blank",rel:"noopener noreferrer",sx:{whiteSpace:"nowrap"},children:"Saiba mais"}),"."]})]})]}),jsx(t,{className:"page-header-actions",direction:"row",gap:3,alignItems:"center",minWidth:"max-content",children:p})]}),y=s;
|
|
7
7
|
|
|
8
|
-
export {
|
|
8
|
+
export { y as default };
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PageHeader/index.tsx"],"names":["Link","Stack","Typography","Fragment","jsx","jsxs","PageHeader","title","subTitle","actions","helpLink","PageHeader_default"],"mappings":"AAAA,OAAOA,MAAU,qBACjB,OAAOC,MAAW,sBAClB,OAAOC,MAAgB,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/PageHeader/index.tsx"],"names":["Link","Stack","Typography","Fragment","jsx","jsxs","PageHeader","title","subTitle","actions","helpLink","PageHeader_default"],"mappings":"AAAA,OAAOA,MAAU,qBACjB,OAAOC,MAAW,sBAClB,OAAOC,MAAgB,2BAmBf,OAOI,YAAAC,EAPJ,OAAAC,EAOI,QAAAC,MAPJ,oBAfR,IAAMC,EAAa,CAAC,CAClB,MAAAC,EACA,SAAAC,EACA,QAAAC,EACA,SAAAC,CACF,IAGIL,EAACJ,EAAA,CACC,UAAW,CAAE,GAAI,SAAU,GAAI,KAAM,EACrC,WAAY,CAAE,GAAI,aAAc,GAAI,QAAS,EAC7C,eAAe,gBACf,IAAK,EAEL,UAAAI,EAACJ,EAAA,CAAM,SAAS,KACd,UAAAG,EAACF,EAAA,CAAW,QAAQ,KAAK,UATR,OAAOK,GAAU,SAAW,KAAO,MAUjD,SAAAA,EACH,EAEAF,EAACH,EAAA,CAAW,QAAQ,QAAQ,MAAM,iBAC/B,UAAAM,EACAE,GACCL,EAAAF,EAAA,CACG,cACDC,EAACJ,EAAA,CACC,QAAQ,YACR,KAAMU,EACN,OAAO,SACP,IAAI,sBACJ,GAAI,CAAE,WAAY,QAAS,EAC5B,sBAED,EAAO,KAET,GAEJ,GACF,EAEAN,EAACH,EAAA,CACC,UAAU,sBACV,UAAU,MACV,IAAK,EACL,WAAW,SACX,SAAS,cAER,SAAAQ,EACH,GACF,EAIGE,EAAQL","sourcesContent":["import Link from '@mui/material/Link';\nimport Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\n\nimport { PageHeaderProps } from './props';\n\nconst PageHeader = ({\n title,\n subTitle,\n actions,\n helpLink,\n}: PageHeaderProps) => {\n const titleComponent = typeof title === 'string' ? 'h2' : 'div';\n return (\n <Stack\n direction={{ xs: 'column', sm: 'row' }}\n alignItems={{ xs: 'flex-start', sm: 'center' }}\n justifyContent=\"space-between\"\n gap={2}\n >\n <Stack maxWidth=\"md\">\n <Typography variant=\"h4\" component={titleComponent}>\n {title}\n </Typography>\n\n <Typography variant=\"body2\" color=\"text.secondary\">\n {subTitle}\n {helpLink && (\n <>\n {' '}\n <Link\n variant=\"subtitle2\"\n href={helpLink}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n sx={{ whiteSpace: 'nowrap' }}\n >\n Saiba mais\n </Link>\n .\n </>\n )}\n </Typography>\n </Stack>\n\n <Stack\n className=\"page-header-actions\"\n direction=\"row\"\n gap={3}\n alignItems=\"center\"\n minWidth=\"max-content\"\n >\n {actions}\n </Stack>\n </Stack>\n );\n};\n\nexport default PageHeader;\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d } from '../../chunk-ZMB2HEJV.js';
|
|
2
|
-
import { a as a$1 } from '../../chunk-
|
|
2
|
+
import { a as a$1 } from '../../chunk-VPG46WNM.js';
|
|
3
3
|
import '../../chunk-CIGSMWKF.js';
|
|
4
4
|
import a from '@mui/material/Typography';
|
|
5
5
|
import i from '@mui/material/Stack';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as a$3 } from '../../chunk-CO2KQFUN.js';
|
|
2
|
-
import { a as a$1 } from '../../chunk-
|
|
2
|
+
import { a as a$1 } from '../../chunk-VPG46WNM.js';
|
|
3
3
|
import '../../chunk-CIGSMWKF.js';
|
|
4
4
|
import { a as a$2 } from '../../chunk-LQRRMVFN.js';
|
|
5
5
|
import S from '@mui/material/MenuItem';
|
|
@@ -15,6 +15,6 @@ interface ResultProps<TData = unknown> {
|
|
|
15
15
|
children?: ReactNode | ((data: TData) => ReactNode);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
declare const Result: <TData>({ isFetching, fetching, isLoading, loading, anError, error, isEmpty, empty, data, children, }: ResultProps<TData>) => string | number | true | Iterable<react.ReactNode> | react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare const Result: <TData>({ isFetching, fetching, isLoading, loading, anError, error, isEmpty, empty, data, children, }: ResultProps<TData>) => string | number | bigint | true | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element;
|
|
19
19
|
|
|
20
20
|
export { Result as default };
|
|
@@ -3,7 +3,7 @@ import * as _mui_system from '@mui/system';
|
|
|
3
3
|
import * as _mui_material from '@mui/material';
|
|
4
4
|
import * as simplebar_react from 'simplebar-react';
|
|
5
5
|
|
|
6
|
-
declare const Scrollbar: react.
|
|
6
|
+
declare const Scrollbar: react.NamedExoticComponent<simplebar_react.Props & {
|
|
7
7
|
sx?: _mui_system.SxProps<_mui_material.Theme> | undefined;
|
|
8
8
|
children?: react.ReactNode;
|
|
9
9
|
fillContent?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-SHJKJLBQ.js';
|
|
2
|
+
import '../../chunk-VPG46WNM.js';
|
|
3
3
|
import '../../chunk-CIGSMWKF.js';
|
|
4
4
|
//# sourceMappingURL=out.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-O5HTDU3K.js';
|
|
2
2
|
import '../../chunk-RUABKHIV.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-SHJKJLBQ.js';
|
|
4
4
|
import '../../chunk-IJZCVZ32.js';
|
|
5
5
|
import '../../chunk-6U5LS7MP.js';
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-E6NUW3KZ.js';
|
|
7
|
+
import '../../chunk-VPG46WNM.js';
|
|
8
8
|
import '../../chunk-CIGSMWKF.js';
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-MS6MTEJM.js';
|
|
2
2
|
import '../../chunk-6ZSTKYGL.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-SHJKJLBQ.js';
|
|
4
4
|
import '../../chunk-IJZCVZ32.js';
|
|
5
5
|
import '../../chunk-NIQW2J3M.js';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-VPG46WNM.js';
|
|
7
7
|
import '../../chunk-CIGSMWKF.js';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-F65ZXAGV.js';
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -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-VJZTUPZB.js';
|
|
2
|
+
import { a } from '../../chunk-VPG46WNM.js';
|
|
3
3
|
import '../../chunk-CIGSMWKF.js';
|
|
4
4
|
import '../../chunk-RPO7AI5K.js';
|
|
5
5
|
import p from '@mui/material/Box';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-WVWLU3GP.js';
|
|
2
|
+
import '../../chunk-VPG46WNM.js';
|
|
3
3
|
import '../../chunk-CIGSMWKF.js';
|
|
4
4
|
//# sourceMappingURL=out.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as a$2 } from '../../chunk-6ZSTKYGL.js';
|
|
2
|
-
import { a } from '../../chunk-
|
|
2
|
+
import { a } from '../../chunk-SHJKJLBQ.js';
|
|
3
3
|
import { a as a$1 } from '../../chunk-IJZCVZ32.js';
|
|
4
4
|
import '../../chunk-NIQW2J3M.js';
|
|
5
|
-
import { a as a$4 } from '../../chunk-
|
|
5
|
+
import { a as a$4 } from '../../chunk-VPG46WNM.js';
|
|
6
6
|
import '../../chunk-CIGSMWKF.js';
|
|
7
|
-
import { a as a$3 } from '../../chunk-
|
|
7
|
+
import { a as a$3 } from '../../chunk-F65ZXAGV.js';
|
|
8
8
|
import { useState } from 'react';
|
|
9
9
|
import h from '@mui/material/Checkbox';
|
|
10
10
|
import T from '@mui/material/CircularProgress';
|
|
@@ -12,6 +12,6 @@ interface TextMaxLineProps extends IProps {
|
|
|
12
12
|
variant?: Variant;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
declare const TextMaxLine: react.
|
|
15
|
+
declare const TextMaxLine: react.NamedExoticComponent<Omit<TextMaxLineProps, "ref"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
16
16
|
|
|
17
17
|
export { TextMaxLine as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-NB6Z5G2Q.js';
|
|
2
|
+
import '../../chunk-EDWQYAWG.js';
|
|
3
|
+
import '../../chunk-QGWIO2AX.js';
|
|
4
4
|
import '../../chunk-373WGZZL.js';
|
|
5
5
|
import '../../chunk-TWSAWMZ3.js';
|
|
6
6
|
import '../../chunk-ROVD7OGE.js';
|
|
7
7
|
import '../../chunk-WUFEPE2G.js';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-BX2DSNRV.js';
|
|
9
9
|
import '../../chunk-6W52DPH4.js';
|
|
10
10
|
import '../../chunk-EQYL7U3J.js';
|
|
11
11
|
import '../../chunk-GLRLKFPS.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d } from '../../chunk-JNDZPNQJ.js';
|
|
2
|
-
import { a as a$3 } from '../../chunk-
|
|
2
|
+
import { a as a$3 } from '../../chunk-AVPFUSEB.js';
|
|
3
3
|
import { a as a$2 } from '../../chunk-UVPQR2Q2.js';
|
|
4
4
|
import { a } from '../../chunk-CO2KQFUN.js';
|
|
5
|
-
import { a as a$4 } from '../../chunk-
|
|
5
|
+
import { a as a$4 } from '../../chunk-VPG46WNM.js';
|
|
6
6
|
import '../../chunk-CIGSMWKF.js';
|
|
7
7
|
import { a as a$1 } from '../../chunk-LQRRMVFN.js';
|
|
8
8
|
import '../../chunk-GLRLKFPS.js';
|
|
@@ -137,12 +137,8 @@ type CarouselProps = {
|
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
type StyledProps = Pick<CarouselOptions, 'axis' | 'slideSpacing'>;
|
|
140
|
-
declare const StyledRoot: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material_styles.Theme> & Omit<
|
|
141
|
-
|
|
142
|
-
}, keyof _mui_system.BoxOwnProps<_mui_material_styles.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & StyledProps, {}, {}>;
|
|
143
|
-
declare const StyledContainer: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material_styles.Theme> & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
144
|
-
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
145
|
-
}, keyof _mui_system.BoxOwnProps<_mui_material_styles.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & StyledProps, {}, {}>;
|
|
140
|
+
declare const StyledRoot: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material_styles.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material_styles.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & StyledProps, {}, {}>;
|
|
141
|
+
declare const StyledContainer: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material_styles.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material_styles.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & StyledProps, {}, {}>;
|
|
146
142
|
declare function Carousel({ carousel, children, sx, slotProps, ...props }: CarouselProps): react_jsx_runtime.JSX.Element;
|
|
147
143
|
|
|
148
144
|
declare const carouselClasses: {
|
|
@@ -180,9 +176,7 @@ declare function CarouselProgressBar({ value, sx, ...other }: BoxProps & Carouse
|
|
|
180
176
|
|
|
181
177
|
declare function CarouselSlide({ sx, options, children, ...other }: BoxProps & CarouselSlideProps): react_jsx_runtime.JSX.Element;
|
|
182
178
|
|
|
183
|
-
declare const CarouselThumbs: react.ForwardRefExoticComponent<Omit<_mui_system.BoxOwnProps<Theme> & _mui_material_OverridableComponent.CommonProps & Omit<
|
|
184
|
-
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
185
|
-
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<Theme>> & CarouselThumbsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
179
|
+
declare const CarouselThumbs: react.ForwardRefExoticComponent<Omit<_mui_system.BoxOwnProps<Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<Theme>> & CarouselThumbsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
186
180
|
declare function CarouselThumb({ thumbType, sx, src, index, selected, imageRender, thumbAlt, ...other }: ButtonBaseProps & CarouselThumbProps): react_jsx_runtime.JSX.Element | null;
|
|
187
181
|
|
|
188
182
|
declare const useCarousel: (options?: CarouselOptions, plugins?: EmblaPluginType[]) => UseCarouselReturn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { j as ArrowButton, f as Carousel, g as CarouselArrowBasicButtons, i as CarouselArrowFloatButtons, h as CarouselArrowNumberButtons, k as CarouselDotButtons, l as CarouselProgressBar, c as CarouselSlide, n as CarouselThumb, m as CarouselThumbs, e as StyledContainer, d as StyledRoot, a as carouselBreakpoints, b as carouselClasses, o as useCarousel } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { j as ArrowButton, f as Carousel, g as CarouselArrowBasicButtons, i as CarouselArrowFloatButtons, h as CarouselArrowNumberButtons, k as CarouselDotButtons, l as CarouselProgressBar, c as CarouselSlide, n as CarouselThumb, m as CarouselThumbs, e as StyledContainer, d as StyledRoot, a as carouselBreakpoints, b as carouselClasses, o as useCarousel } from '../../chunk-BYYU7ENX.js';
|
|
2
|
+
import '../../chunk-VPG46WNM.js';
|
|
3
3
|
import '../../chunk-CIGSMWKF.js';
|
|
4
4
|
import '../../chunk-GLRLKFPS.js';
|
|
5
5
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as a$1 } from '../../../chunk-
|
|
1
|
+
import { a as a$1 } from '../../../chunk-X64QHBVQ.js';
|
|
2
2
|
import { a as a$2 } from '../../../chunk-YXRL4O4H.js';
|
|
3
|
-
import '../../../chunk-
|
|
4
|
-
import { a as a$3 } from '../../../chunk-
|
|
5
|
-
import '../../../chunk-
|
|
6
|
-
import '../../../chunk-
|
|
3
|
+
import '../../../chunk-RTC7H5E5.js';
|
|
4
|
+
import { a as a$3 } from '../../../chunk-LFZJKAV6.js';
|
|
5
|
+
import '../../../chunk-JWIITCIZ.js';
|
|
6
|
+
import '../../../chunk-VPG46WNM.js';
|
|
7
7
|
import '../../../chunk-CIGSMWKF.js';
|
|
8
8
|
import E from '@mui/material/CircularProgress';
|
|
9
9
|
import g from '@mui/material/InputAdornment';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { a as default } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { a as default } from '../../../chunk-LFZJKAV6.js';
|
|
2
|
+
import '../../../chunk-JWIITCIZ.js';
|
|
3
|
+
import '../../../chunk-VPG46WNM.js';
|
|
4
4
|
import '../../../chunk-CIGSMWKF.js';
|
|
5
5
|
//# sourceMappingURL=out.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
import { a } from '../../../chunk-X2GWFMP4.js';
|
|
2
|
+
import '../../../chunk-VR3K2Y2C.js';
|
|
3
3
|
import '../../../chunk-RPO7AI5K.js';
|
|
4
4
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { v, s, t, u } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
4
|
-
import '../../../chunk-
|
|
1
|
+
import { v, s, t, u } from '../../../chunk-UWW26H42.js';
|
|
2
|
+
import '../../../chunk-FCXNL2OG.js';
|
|
3
|
+
import '../../../chunk-J2PFUGFW.js';
|
|
4
|
+
import '../../../chunk-J7JX2QOP.js';
|
|
5
5
|
import '../../../chunk-KGLU4CR2.js';
|
|
6
|
-
import '../../../chunk-
|
|
6
|
+
import '../../../chunk-DSFFQBLG.js';
|
|
7
7
|
import '../../../chunk-OF6623HG.js';
|
|
8
|
-
import '../../../chunk-
|
|
8
|
+
import '../../../chunk-FBN7HCBY.js';
|
|
9
9
|
import '../../../chunk-6U5LS7MP.js';
|
|
10
10
|
import '../../../chunk-VITOOMKK.js';
|
|
11
|
-
import '../../../chunk-
|
|
11
|
+
import '../../../chunk-VPG46WNM.js';
|
|
12
12
|
import '../../../chunk-CIGSMWKF.js';
|
|
13
13
|
import '../../../chunk-RPO7AI5K.js';
|
|
14
14
|
import '../../../chunk-SVX7EWV4.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
import { a } from '../../../chunk-ULSLLFRH.js';
|
|
2
|
+
import '../../../chunk-W3CK33IH.js';
|
|
3
3
|
import '../../../chunk-OF6623HG.js';
|
|
4
|
-
import '../../../chunk-
|
|
4
|
+
import '../../../chunk-VPG46WNM.js';
|
|
5
5
|
import '../../../chunk-CIGSMWKF.js';
|
|
6
6
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a } from '../../../chunk-YXRL4O4H.js';
|
|
2
2
|
import { d } from '../../../chunk-ZMB2HEJV.js';
|
|
3
|
-
import { a as a$1 } from '../../../chunk-
|
|
3
|
+
import { a as a$1 } from '../../../chunk-VPG46WNM.js';
|
|
4
4
|
import '../../../chunk-CIGSMWKF.js';
|
|
5
5
|
import { useState } from 'react';
|
|
6
6
|
import { useFormContext } from 'react-hook-form';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a } from '../../../chunk-
|
|
1
|
+
import { a } from '../../../chunk-O5HTDU3K.js';
|
|
2
2
|
import '../../../chunk-RUABKHIV.js';
|
|
3
|
-
import '../../../chunk-
|
|
3
|
+
import '../../../chunk-SHJKJLBQ.js';
|
|
4
4
|
import '../../../chunk-IJZCVZ32.js';
|
|
5
5
|
import '../../../chunk-6U5LS7MP.js';
|
|
6
|
-
import '../../../chunk-
|
|
7
|
-
import '../../../chunk-
|
|
6
|
+
import '../../../chunk-E6NUW3KZ.js';
|
|
7
|
+
import '../../../chunk-VPG46WNM.js';
|
|
8
8
|
import '../../../chunk-CIGSMWKF.js';
|
|
9
9
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a } from '../../../chunk-
|
|
1
|
+
import { a } from '../../../chunk-MS6MTEJM.js';
|
|
2
2
|
import '../../../chunk-6ZSTKYGL.js';
|
|
3
|
-
import '../../../chunk-
|
|
3
|
+
import '../../../chunk-SHJKJLBQ.js';
|
|
4
4
|
import '../../../chunk-IJZCVZ32.js';
|
|
5
5
|
import '../../../chunk-NIQW2J3M.js';
|
|
6
|
-
import '../../../chunk-
|
|
6
|
+
import '../../../chunk-VPG46WNM.js';
|
|
7
7
|
import '../../../chunk-CIGSMWKF.js';
|
|
8
|
-
import '../../../chunk-
|
|
8
|
+
import '../../../chunk-F65ZXAGV.js';
|
|
9
9
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a } from '../../../chunk-YXRL4O4H.js';
|
|
2
|
-
import { a as a$2 } from '../../../chunk-
|
|
3
|
-
import { a as a$3 } from '../../../chunk-
|
|
4
|
-
import '../../../chunk-
|
|
5
|
-
import { a as a$1 } from '../../../chunk-
|
|
2
|
+
import { a as a$2 } from '../../../chunk-LFZJKAV6.js';
|
|
3
|
+
import { a as a$3 } from '../../../chunk-E6NUW3KZ.js';
|
|
4
|
+
import '../../../chunk-JWIITCIZ.js';
|
|
5
|
+
import { a as a$1 } from '../../../chunk-VPG46WNM.js';
|
|
6
6
|
import '../../../chunk-CIGSMWKF.js';
|
|
7
7
|
import { useFormContext, useFieldArray } from 'react-hook-form';
|
|
8
8
|
import N from '@mui/material/Divider';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
import { a } from '../../chunk-WVWLU3GP.js';
|
|
2
|
+
import '../../chunk-VPG46WNM.js';
|
|
3
3
|
import '../../chunk-CIGSMWKF.js';
|
|
4
4
|
import S from '@mui/material/TableCell';
|
|
5
5
|
import F from '@mui/material/TableRow';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { a as default } from '../chunk-
|
|
1
|
+
export { a as default } from '../chunk-PSWJSHGP.js';
|
|
2
2
|
import '../chunk-XNKYJHNL.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-HYJEAKVR.js';
|
|
4
4
|
import '../chunk-POTVACYB.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-BLVCNBTJ.js';
|
|
6
6
|
import '../chunk-ET3WPQIO.js';
|
|
7
7
|
//# sourceMappingURL=out.js.map
|
|
8
8
|
//# sourceMappingURL=useCollapseSidebarOnMount.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
2
|
import { GridApiPremium } from '@mui/x-data-grid-premium/models/gridApiPremium';
|
|
3
3
|
|
|
4
4
|
interface State {
|
|
@@ -10,7 +10,7 @@ interface State {
|
|
|
10
10
|
dir?: 'asc' | 'desc';
|
|
11
11
|
}
|
|
12
12
|
declare const useDatagrid: ({ page, perPage, dir, search, searchValue, sort }?: State) => {
|
|
13
|
-
apiRef:
|
|
13
|
+
apiRef: RefObject<GridApiPremium>;
|
|
14
14
|
page: number;
|
|
15
15
|
perPage: number;
|
|
16
16
|
handlePaginationModelChange: ({ pageSize, page }: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { useGridApiRef } from '@mui/x-data-grid-premium';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var V=({page:c,perPage:g,dir:o,search:p,searchValue:u,sort:d}={page:0,perPage:25})=>{let t=useGridApiRef(),[s,r]=useState({page:c,perPage:g,dir:o,search:p,searchValue:u,sort:d}),i=({pageSize:e=25,page:a=0})=>{r(n=>({...n,page:a,perPage:e}));},f=e=>r(a=>({...a,page:0,search:e})),h=e=>r(a=>({...a,searchValue:e})),l=()=>r(e=>({...e,page:0,search:e.searchValue})),m=(e,a)=>r(n=>({...n,sort:e,dir:a})),P=()=>{t.current&&t.current.setPage(0),i({page:0});};return {...s,apiRef:t,page:s.page||0,perPage:s.perPage||25,handlePaginationModelChange:i,handleSearch:f,handleSort:m,handleSearchValue:h,applySearchValue:l,goToPageFirstPage:P}},j=V;
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { j as default };
|
|
7
7
|
//# sourceMappingURL=out.js.map
|
|
8
8
|
//# sourceMappingURL=useDatagrid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/useDatagrid.ts"],"names":["useState","useGridApiRef","useDatagrid","page","perPage","dir","search","searchValue","sort","apiRef","state","setState","handlePaginationModelChange","pageSize","handleSearch","handleSearchValue","applySearchValue","handleSort","field","goToPageFirstPage","useDatagrid_default"],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"sources":["../../src/hooks/useDatagrid.ts"],"names":["useState","useGridApiRef","useDatagrid","page","perPage","dir","search","searchValue","sort","apiRef","state","setState","handlePaginationModelChange","pageSize","handleSearch","handleSearchValue","applySearchValue","handleSort","field","goToPageFirstPage","useDatagrid_default"],"mappings":"AAAA,OAAoB,YAAAA,MAAgB,QACpC,OAAS,iBAAAC,MAAqB,2BAY9B,IAAMC,EAAc,CAClB,CAAE,KAAAC,EAAM,QAAAC,EAAS,IAAAC,EAAK,OAAAC,EAAQ,YAAAC,EAAa,KAAAC,CAAK,EAAW,CACzD,KAAM,EACN,QAAS,EACX,IACG,CACH,IAAMC,EAASR,EAAc,EACvB,CAACS,EAAOC,CAAQ,EAAIX,EAAgB,CACxC,KAAAG,EACA,QAAAC,EACA,IAAAC,EACA,OAAAC,EACA,YAAAC,EACA,KAAAC,CACF,CAAC,EAEKI,EAA8B,CAAC,CAAE,SAAAC,EAAW,GAAI,KAAAV,EAAO,CAAE,IAAM,CACnEQ,EAASD,IAAU,CAAE,GAAGA,EAAO,KAAAP,EAAM,QAASU,CAAS,EAAE,CAC3D,EAEMC,EAAgBR,GACpBK,EAASD,IAAU,CAAE,GAAGA,EAAO,KAAM,EAAG,OAAAJ,CAAO,EAAE,EAE7CS,EAAqBT,GACzBK,EAASD,IAAU,CAAE,GAAGA,EAAO,YAAaJ,CAAO,EAAE,EAEjDU,EAAmB,IACvBL,EAASD,IAAU,CAAE,GAAGA,EAAO,KAAM,EAAG,OAAQA,EAAM,WAAY,EAAE,EAEhEO,EAAa,CAACC,EAAgBb,IAClCM,EAASD,IAAU,CAAE,GAAGA,EAAO,KAAMQ,EAAO,IAAAb,CAAI,EAAE,EAE9Cc,EAAoB,IAAM,CAC1BV,EAAO,SAASA,EAAO,QAAQ,QAAQ,CAAC,EAC5CG,EAA4B,CAAE,KAAM,CAAE,CAAC,CACzC,EAEA,MAAO,CACL,GAAGF,EACH,OAAQD,EACR,KAAMC,EAAM,MAAQ,EACpB,QAASA,EAAM,SAAW,GAC1B,4BAAAE,EACA,aAAAE,EACA,WAAAG,EACA,kBAAAF,EACA,iBAAAC,EACA,kBAAAG,CACF,CACF,EAEOC,EAAQlB","sourcesContent":["import { RefObject, useState } from 'react';\nimport { useGridApiRef } from '@mui/x-data-grid-premium';\nimport { GridApiPremium } from '@mui/x-data-grid-premium/models/gridApiPremium';\n\ninterface State {\n page?: number;\n perPage?: number;\n search?: string;\n searchValue?: string;\n sort?: string;\n dir?: 'asc' | 'desc';\n}\n\nconst useDatagrid = (\n { page, perPage, dir, search, searchValue, sort }: State = {\n page: 0,\n perPage: 25,\n },\n) => {\n const apiRef = useGridApiRef();\n const [state, setState] = useState<State>({\n page,\n perPage,\n dir,\n search,\n searchValue,\n sort,\n });\n\n const handlePaginationModelChange = ({ pageSize = 25, page = 0 }) => {\n setState(state => ({ ...state, page, perPage: pageSize }));\n };\n\n const handleSearch = (search: string | undefined) =>\n setState(state => ({ ...state, page: 0, search }));\n\n const handleSearchValue = (search: string | undefined) =>\n setState(state => ({ ...state, searchValue: search }));\n\n const applySearchValue = () =>\n setState(state => ({ ...state, page: 0, search: state.searchValue }));\n\n const handleSort = (field?: string, dir?: 'asc' | 'desc') =>\n setState(state => ({ ...state, sort: field, dir }));\n\n const goToPageFirstPage = () => {\n if (apiRef.current) apiRef.current.setPage(0);\n handlePaginationModelChange({ page: 0 });\n };\n\n return {\n ...state,\n apiRef: apiRef as RefObject<GridApiPremium>,\n page: state.page || 0,\n perPage: state.perPage || 25,\n handlePaginationModelChange,\n handleSearch,\n handleSort,\n handleSearchValue,\n applySearchValue,\n goToPageFirstPage,\n };\n};\n\nexport default useDatagrid;\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { b } from '../chunk-LFHA3YUV.js';
|
|
2
2
|
import { useEffect, useRef } from 'react';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var c=t=>{let e=useRef(void 0);return b(t,e.current)||(e.current=t),e.current},o=(t,e)=>{useEffect(t,e.map(c));},i=o;
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { i as default };
|
|
7
7
|
//# sourceMappingURL=out.js.map
|
|
8
8
|
//# sourceMappingURL=useDeepCompareEffect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/useDeepCompareEffect.ts"],"names":["useEffect","useRef","useDeepCompareMemoize","value","ref","deepCompareWithSets","useDeepCompareEffect","callback","dependencies","useDeepCompareEffect_default"],"mappings":"yCAAA,OAAyC,aAAAA,EAAW,UAAAC,MAAc,QAIlE,IAAMC,EAA4BC,GAAgB,CAChD,IAAMC,EAAMH,
|
|
1
|
+
{"version":3,"sources":["../../src/hooks/useDeepCompareEffect.ts"],"names":["useEffect","useRef","useDeepCompareMemoize","value","ref","deepCompareWithSets","useDeepCompareEffect","callback","dependencies","useDeepCompareEffect_default"],"mappings":"yCAAA,OAAyC,aAAAA,EAAW,UAAAC,MAAc,QAIlE,IAAMC,EAA4BC,GAAgB,CAChD,IAAMC,EAAMH,EAAsB,MAAS,EAE3C,OAAKI,EAAoBF,EAAOC,EAAI,OAAO,IACzCA,EAAI,QAAUD,GAGTC,EAAI,OACb,EAEME,EAAuB,CAC3BC,EACAC,IACG,CAEHR,EAAUO,EAAUC,EAAa,IAAIN,CAAqB,CAAC,CAC7D,EAEOO,EAAQH","sourcesContent":["import { DependencyList, EffectCallback, useEffect, useRef } from 'react';\n\nimport { deepCompareWithSets } from 'utils/compare';\n\nconst useDeepCompareMemoize = <T>(value: T): T => {\n const ref = useRef<T | undefined>(undefined);\n\n if (!deepCompareWithSets(value, ref.current)) {\n ref.current = value;\n }\n\n return ref.current as T;\n};\n\nconst useDeepCompareEffect = (\n callback: EffectCallback,\n dependencies: DependencyList,\n) => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useEffect(callback, dependencies.map(useDeepCompareMemoize));\n};\n\nexport default useDeepCompareEffect;\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
|
|
3
3
|
declare function useEventListener<K extends keyof WindowEventMap>(eventName: K, handler: (event: WindowEventMap[K]) => void, element?: undefined, options?: boolean | AddEventListenerOptions): void;
|
|
4
|
-
declare function useEventListener<K extends keyof HTMLElementEventMap, T extends HTMLElement = HTMLDivElement>(eventName: K, handler: (event: HTMLElementEventMap[K]) => void, element: RefObject<T>, options?: boolean | AddEventListenerOptions): void;
|
|
5
|
-
declare function useEventListener<K extends keyof DocumentEventMap>(eventName: K, handler: (event: DocumentEventMap[K]) => void, element: RefObject<Document>, options?: boolean | AddEventListenerOptions): void;
|
|
4
|
+
declare function useEventListener<K extends keyof HTMLElementEventMap, T extends HTMLElement = HTMLDivElement>(eventName: K, handler: (event: HTMLElementEventMap[K]) => void, element: RefObject<T | null>, options?: boolean | AddEventListenerOptions): void;
|
|
5
|
+
declare function useEventListener<K extends keyof DocumentEventMap>(eventName: K, handler: (event: DocumentEventMap[K]) => void, element: RefObject<Document | null>, options?: boolean | AddEventListenerOptions): void;
|
|
6
6
|
|
|
7
7
|
export { useEventListener as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { a as default } from '../chunk-
|
|
1
|
+
export { a as default } from '../chunk-HYJEAKVR.js';
|
|
2
2
|
import '../chunk-POTVACYB.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-BLVCNBTJ.js';
|
|
4
4
|
import '../chunk-ET3WPQIO.js';
|
|
5
5
|
//# sourceMappingURL=out.js.map
|
|
6
6
|
//# sourceMappingURL=useLocalStorage.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRef, useState, useCallback, useMemo } from 'react';
|
|
2
2
|
import { useScroll, useMotionValueEvent } from 'framer-motion';
|
|
3
3
|
|
|
4
|
-
var R=(t=0)=>{let e=useRef(null),{scrollY:r}=useScroll(),[o,l]=useState(!1),n=useCallback(c=>{let
|
|
4
|
+
var R=(t=0)=>{let e=useRef(null),{scrollY:r}=useScroll(),[o,l]=useState(!1),n=useCallback(c=>{let u=Math.round(c);if(e?.current){let f=e.current.getBoundingClientRect(),a=Math.round(f.top);l(a<t);}else l(u>t);},[e,t]);return useMotionValueEvent(r,"change",useMemo(()=>n,[n])),useMemo(()=>({elementRef:e,offsetTop:o}),[o])},g=R;
|
|
5
5
|
|
|
6
6
|
export { g as default };
|
|
7
7
|
//# sourceMappingURL=out.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/useScrollOffSetTop.ts"],"names":["useCallback","useMemo","useRef","useState","useMotionValueEvent","useScroll","useScrollOffSetTop","top","elementRef","scrollY","offsetTop","setOffsetTop","handleScrollChange","val","scrollHeight","rect","elementTop","useScrollOffSetTop_default"],"mappings":"AAAA,OAAS,eAAAA,EAAa,WAAAC,EAAS,UAAAC,EAAQ,YAAAC,MAAgB,QACvD,OAAS,uBAAAC,EAAqB,aAAAC,MAAiB,gBAS/C,IAAMC,EAAqB,CAACC,EAAM,IAAgC,CAChE,IAAMC,EAAaN,EAAuB,IAAI,EAExC,CAAE,QAAAO,CAAQ,EAAIJ,EAAU,EAExB,CAACK,EAAWC,CAAY,EAAIR,EAAS,EAAK,EAE1CS,EAAqBZ,EACxBa,GAAgB,CACf,IAAMC,EAAe,KAAK,MAAMD,CAAG,EAEnC,GAAIL,GAAY,QAAS,CACvB,IAAMO,EAAOP,EAAW,QAAQ,sBAAsB,EAChDQ,EAAa,KAAK,MAAMD,EAAK,GAAG,EAEtCJ,EAAaK,EAAaT,CAAG,OAE7BI,EAAaG,EAAeP,CAAG,CAEnC,EACA,CAACC,EAAYD,CAAG,CAClB,EAEA,OAAAH,EACEK,EACA,SACAR,EAAQ,IAAMW,EAAoB,CAACA,CAAkB,CAAC,CACxD,EAEsBX,EAAQ,KAAO,CAAE,WAAAO,EAAY,UAAAE,CAAU,GAAI,CAACA,CAAS,CAAC,CAG9E,EAEOO,EAAQX","sourcesContent":["import { useCallback, useMemo, useRef, useState } from 'react';\nimport { useMotionValueEvent, useScroll } from 'framer-motion';\n\n// ----------------------------------------------------------------------\n\nexport type UseScrollOffSetTopReturn = {\n offsetTop: boolean;\n elementRef: React.RefObject<HTMLDivElement>;\n};\n\nconst useScrollOffSetTop = (top = 0): UseScrollOffSetTopReturn => {\n const elementRef = useRef<HTMLDivElement>(null);\n\n const { scrollY } = useScroll();\n\n const [offsetTop, setOffsetTop] = useState(false);\n\n const handleScrollChange = useCallback(\n (val: number) => {\n const scrollHeight = Math.round(val);\n\n if (elementRef?.current) {\n const rect = elementRef.current.getBoundingClientRect();\n const elementTop = Math.round(rect.top);\n\n setOffsetTop(elementTop < top);\n } else {\n setOffsetTop(scrollHeight > top);\n }\n },\n [elementRef, top],\n );\n\n useMotionValueEvent(\n scrollY,\n 'change',\n useMemo(() => handleScrollChange, [handleScrollChange]),\n );\n\n const memoizedValue = useMemo(() => ({ elementRef, offsetTop }), [offsetTop]);\n\n return memoizedValue;\n};\n\nexport default useScrollOffSetTop;\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/hooks/useScrollOffSetTop.ts"],"names":["useCallback","useMemo","useRef","useState","useMotionValueEvent","useScroll","useScrollOffSetTop","top","elementRef","scrollY","offsetTop","setOffsetTop","handleScrollChange","val","scrollHeight","rect","elementTop","useScrollOffSetTop_default"],"mappings":"AAAA,OAAS,eAAAA,EAAa,WAAAC,EAAS,UAAAC,EAAQ,YAAAC,MAAgB,QACvD,OAAS,uBAAAC,EAAqB,aAAAC,MAAiB,gBAS/C,IAAMC,EAAqB,CAACC,EAAM,IAAgC,CAChE,IAAMC,EAAaN,EAAuB,IAAI,EAExC,CAAE,QAAAO,CAAQ,EAAIJ,EAAU,EAExB,CAACK,EAAWC,CAAY,EAAIR,EAAS,EAAK,EAE1CS,EAAqBZ,EACxBa,GAAgB,CACf,IAAMC,EAAe,KAAK,MAAMD,CAAG,EAEnC,GAAIL,GAAY,QAAS,CACvB,IAAMO,EAAOP,EAAW,QAAQ,sBAAsB,EAChDQ,EAAa,KAAK,MAAMD,EAAK,GAAG,EAEtCJ,EAAaK,EAAaT,CAAG,OAE7BI,EAAaG,EAAeP,CAAG,CAEnC,EACA,CAACC,EAAYD,CAAG,CAClB,EAEA,OAAAH,EACEK,EACA,SACAR,EAAQ,IAAMW,EAAoB,CAACA,CAAkB,CAAC,CACxD,EAEsBX,EAAQ,KAAO,CAAE,WAAAO,EAAY,UAAAE,CAAU,GAAI,CAACA,CAAS,CAAC,CAG9E,EAEOO,EAAQX","sourcesContent":["import { useCallback, useMemo, useRef, useState } from 'react';\nimport { useMotionValueEvent, useScroll } from 'framer-motion';\n\n// ----------------------------------------------------------------------\n\nexport type UseScrollOffSetTopReturn = {\n offsetTop: boolean;\n elementRef: React.RefObject<HTMLDivElement | null>;\n};\n\nconst useScrollOffSetTop = (top = 0): UseScrollOffSetTopReturn => {\n const elementRef = useRef<HTMLDivElement>(null);\n\n const { scrollY } = useScroll();\n\n const [offsetTop, setOffsetTop] = useState(false);\n\n const handleScrollChange = useCallback(\n (val: number) => {\n const scrollHeight = Math.round(val);\n\n if (elementRef?.current) {\n const rect = elementRef.current.getBoundingClientRect();\n const elementTop = Math.round(rect.top);\n\n setOffsetTop(elementTop < top);\n } else {\n setOffsetTop(scrollHeight > top);\n }\n },\n [elementRef, top],\n );\n\n useMotionValueEvent(\n scrollY,\n 'change',\n useMemo(() => handleScrollChange, [handleScrollChange]),\n );\n\n const memoizedValue = useMemo(() => ({ elementRef, offsetTop }), [offsetTop]);\n\n return memoizedValue;\n};\n\nexport default useScrollOffSetTop;\n"]}
|