@zydon/common 2.2.42 → 2.2.43
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/components/ActionButton/index.js +8 -3
- package/dist/components/Autocomplete/index.js +12 -3
- package/dist/components/AutocompleteDetailed/index.js +13 -3
- package/dist/components/BuilderLayout/index.js +5 -9
- package/dist/components/BuilderSidebar/index.js +5 -7
- package/dist/components/ColorPickerInput/index.js +12 -2
- package/dist/components/ColoredLabel/index.js +5 -4
- package/dist/components/Common/index.js +6 -19
- package/dist/components/Confirm/index.js +3 -3
- package/dist/components/CustomAvatar/index.js +9 -1
- package/dist/components/CustomAvatarGroup/index.js +3 -3
- package/dist/components/DashedDivider/index.js +6 -1
- package/dist/components/DataCards/index.js +12 -18
- package/dist/components/DataGrid/index.js +8 -12
- package/dist/components/DatePicker/index.js +3 -3
- package/dist/components/DateRangePicker/index.js +3 -3
- package/dist/components/DateTimePicker/index.js +3 -3
- package/dist/components/Delayed/index.js +2 -2
- package/dist/components/Drawer/index.js +8 -9
- package/dist/components/EmptyContent/index.js +10 -3
- package/dist/components/EmptyView/index.js +8 -2
- package/dist/components/Error/index.js +7 -7
- package/dist/components/ExpandableGroup/index.js +8 -10
- package/dist/components/FixedProgressBar/index.js +6 -1
- package/dist/components/FrameSkeleton/index.js +10 -13
- package/dist/components/HelpButton/index.js +7 -3
- package/dist/components/Icon/index.js +58 -2
- package/dist/components/ImageCrop/index.js +7 -1
- package/dist/components/ImageCropModal/index.js +14 -5
- package/dist/components/Incrementer/index.js +11 -5
- package/dist/components/Label/index.js +7 -6
- package/dist/components/LoadingScreen/index.js +4 -5
- package/dist/components/MaskedInput/index.js +8 -1
- package/dist/components/MenuItem/index.js +7 -8
- package/dist/components/MenuPopover/index.js +8 -1
- package/dist/components/Modal/index.js +11 -3
- package/dist/components/ModalActions/index.js +3 -3
- package/dist/components/MoreMenu/index.js +7 -8
- package/dist/components/NumberInput/index.js +8 -1
- package/dist/components/PasswordRules/index.js +5 -7
- package/dist/components/PopoverSelect/index.js +6 -10
- package/dist/components/Portal/index.js +6 -1
- package/dist/components/Result/index.js +5 -1
- package/dist/components/SavedChanges/index.js +4 -4
- package/dist/components/Scrollbar/index.js +9 -1
- package/dist/components/SearchInput/index.js +10 -3
- package/dist/components/SelectableCards/index.js +17 -8
- package/dist/components/SeoPreview/index.js +8 -10
- package/dist/components/SplashScreen/index.js +4 -4
- package/dist/components/Steps/index.js +9 -11
- package/dist/components/StyledTab/index.js +6 -7
- package/dist/components/StyledTabs/index.js +3 -3
- package/dist/components/Summary/index.js +3 -5
- package/dist/components/SwapList/index.js +13 -17
- package/dist/components/TabPanel/index.js +3 -3
- package/dist/components/TextMaxLine/index.js +9 -2
- package/dist/components/TimePicker/index.js +3 -3
- package/dist/components/ToggleButtonGroup/index.js +3 -4
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/components/WhiteBox/index.js +6 -1
- package/dist/components/animate/index.js +4 -2
- package/dist/components/carousel/index.js +9 -16
- package/dist/components/form/Address/index.js +8 -12
- package/dist/components/form/Autocomplete/index.js +7 -4
- package/dist/components/form/AutocompleteDetailed/index.js +4 -6
- package/dist/components/form/Checkbox/index.js +3 -3
- package/dist/components/form/Codes/index.js +7 -7
- package/dist/components/form/ColorPicker/index.js +4 -5
- package/dist/components/form/DatePicker/index.js +3 -3
- package/dist/components/form/DateRangePicker/index.js +3 -3
- package/dist/components/form/DateTimePicker/index.js +3 -3
- package/dist/components/form/Field/index.js +7 -1
- package/dist/components/form/Form/index.js +3 -3
- package/dist/components/form/Incrementer/index.js +4 -8
- package/dist/components/form/InputTags/index.js +3 -3
- package/dist/components/form/MaskedInput/index.js +7 -2
- package/dist/components/form/MultiCheckbox/index.js +3 -3
- package/dist/components/form/MultiChipField/index.js +3 -3
- package/dist/components/form/NumberInput/index.js +4 -4
- package/dist/components/form/Password/index.js +8 -9
- package/dist/components/form/RadioGroup/index.js +3 -3
- package/dist/components/form/SelectableCards/index.js +4 -11
- package/dist/components/form/Switch/index.js +3 -3
- package/dist/components/form/TimePicker/index.js +3 -3
- package/dist/components/form/UploadAvatarWithCrop/index.js +6 -17
- package/dist/components/form/UploadWithCrop/index.js +6 -20
- package/dist/components/form/Webhook/index.js +15 -16
- package/dist/components/lightbox/index.js +2 -16
- package/dist/components/table/index.js +9 -21
- package/dist/components/upload/index.js +8 -23
- package/dist/hooks/useActiveElement.js +1 -1
- package/dist/hooks/useApiMessage.js +1 -1
- package/dist/hooks/useAutocomplete.js +2 -2
- package/dist/hooks/useCopyToClipboard.js +1 -1
- package/dist/hooks/useDatagrid.js +1 -1
- package/dist/hooks/useDebounceValue.js +1 -1
- package/dist/hooks/useDeepCompareEffect.js +2 -2
- package/dist/hooks/useEventCallback.js +6 -2
- package/dist/hooks/useEventListener.js +5 -1
- package/dist/hooks/useIsMounting.js +1 -1
- package/dist/hooks/useIsomorphicLayoutEffect.js +5 -1
- package/dist/hooks/useLocalStorage.js +3 -4
- package/dist/hooks/useMount.js +1 -1
- package/dist/hooks/useOnClickOutside.js +3 -3
- package/dist/hooks/usePagination.js +1 -1
- package/dist/hooks/usePopover.js +5 -1
- package/dist/hooks/useResponsive.js +6 -1
- package/dist/hooks/useScrollOffSetTop.js +1 -1
- package/dist/hooks/useSnackbar.js +5 -1
- package/dist/hooks/useTabs.js +1 -1
- package/dist/hooks/useToggle.js +5 -1
- package/dist/hooks/useUpload.js +6 -1
- package/dist/hooks/useUploadImage.js +7 -2
- package/dist/index.js +4 -2
- package/dist/locales/all-langs.js +7 -1
- package/dist/theme/core/index.js +5 -3
- package/dist/theme/styles/index.js +2 -1
- package/dist/theme/theme-provider.js +10 -7
- package/dist/theme/with-settings/index.js +1 -4
- package/dist/types/icon.js +3 -1
- package/dist/types/webhook.js +2 -2
- package/dist/utils/color.js +5 -1
- package/dist/utils/compare.js +5 -1
- package/dist/utils/date.js +1 -1
- package/dist/utils/formatNumber.js +3 -1
- package/dist/utils/formatTime.js +7 -1
- package/dist/utils/loadable.js +3 -3
- package/dist/utils/mask.js +1 -1
- package/dist/utils/number.js +3 -1
- package/dist/utils/sort.js +1 -1
- package/dist/utils/uuidv4.js +1 -1
- package/dist/utils/validators.js +3 -1
- package/package.json +2 -1
- package/dist/chunk-2MVQI7NJ.js +0 -8
- package/dist/chunk-2MW433JI.js +0 -17
- package/dist/chunk-2Z4AFXGP.js +0 -10
- package/dist/chunk-3APKMSVD.js +0 -5
- package/dist/chunk-3E5A45HM.js +0 -3
- package/dist/chunk-3SFA4YEZ.js +0 -7
- package/dist/chunk-4INDXVIX.js +0 -5
- package/dist/chunk-4SHVMCT6.js +0 -7
- package/dist/chunk-5YJTSVA2.js +0 -6
- package/dist/chunk-7F56LFN2.js +0 -17
- package/dist/chunk-7KZ2UT76.js +0 -8
- package/dist/chunk-ANAHA3L6.js +0 -3
- package/dist/chunk-BUYQKDFG.js +0 -13
- package/dist/chunk-BYAPKKGB.js +0 -7
- package/dist/chunk-CFVUZ4S5.js +0 -5
- package/dist/chunk-CFYNJQGN.js +0 -43
- package/dist/chunk-CQDKXUUX.js +0 -3
- package/dist/chunk-D27ND54J.js +0 -16
- package/dist/chunk-E5MGOPPQ.js +0 -8
- package/dist/chunk-EFUFJKJD.js +0 -7
- package/dist/chunk-GA4A5P3S.js +0 -6
- package/dist/chunk-GOC7PC2S.js +0 -6
- package/dist/chunk-ILHUUK4X.js +0 -6
- package/dist/chunk-J76XIRCA.js +0 -18
- package/dist/chunk-JHCOHKLL.js +0 -7
- package/dist/chunk-KFZEM7KS.js +0 -5
- package/dist/chunk-M6QHAL4V.js +0 -7
- package/dist/chunk-MCT77MRN.js +0 -8
- package/dist/chunk-NF42ENKE.js +0 -9
- package/dist/chunk-OJKIWVED.js +0 -10
- package/dist/chunk-ORYAES3Q.js +0 -5
- package/dist/chunk-P4HPVV7B.js +0 -14
- package/dist/chunk-P5FKEHCD.js +0 -11
- package/dist/chunk-PIYBPQAC.js +0 -17
- package/dist/chunk-PPUFQMAW.js +0 -9
- package/dist/chunk-QCWALW56.js +0 -18
- package/dist/chunk-QNAXGE5H.js +0 -8
- package/dist/chunk-QQB3DGHT.js +0 -3
- package/dist/chunk-R6FUU7Z7.js +0 -7
- package/dist/chunk-REM462FC.js +0 -26
- package/dist/chunk-RLMWIJKJ.js +0 -10
- package/dist/chunk-SEVJABAI.js +0 -7
- package/dist/chunk-T7I256S6.js +0 -8
- package/dist/chunk-TRI6XGH4.js +0 -7
- package/dist/chunk-TWGGHTU5.js +0 -5
- package/dist/chunk-UGH5FWZQ.js +0 -13
- package/dist/chunk-VTHBHXM2.js +0 -7
- package/dist/chunk-VVMQMROT.js +0 -5
- package/dist/chunk-W3MYAMTH.js +0 -5
- package/dist/chunk-WAAV5ZRR.js +0 -13
- package/dist/chunk-WKD3OXUA.js +0 -6
- package/dist/chunk-YWEB6IAI.js +0 -6
- package/dist/chunk-Z2TDWMRU.js +0 -6
- package/dist/chunk-ZDHXW74M.js +0 -5
- package/dist/chunk-ZODC2MGF.js +0 -10
- package/dist/index.css +0 -10
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import i from '@mui/lab/LoadingButton';
|
|
3
|
+
import I from 'components/Icon';
|
|
4
|
+
import { Icon } from 'types/icon';
|
|
5
|
+
|
|
6
|
+
const T=({actionType:n,children:E,...r})=>{const c={SAVE:Icon.SIMPLE_CHECK,NEW:Icon.SIMPLE_ADD,CREATE:Icon.SAVE_MARK,SETTINGS:Icon.SETTINGS,EDIT:Icon.PENCIL_EDIT,DELETE:Icon.DELETE_MARK_BUTTON_02,VIEW:Icon.SHARE_BUTTON_MARK}[n];return jsx(i,{startIcon:jsx(I,{icon:c}),variant:"contained",color:"primary",...r,children:E})};var _=T;
|
|
7
|
+
|
|
8
|
+
export { _ as default };
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef, useState, useMemo } from 'react';
|
|
3
|
+
import q from '@mui/material/Autocomplete';
|
|
4
|
+
import z from '@mui/material/CircularProgress';
|
|
5
|
+
import B from '@mui/material/TextField';
|
|
6
|
+
import F from '../Icon';
|
|
7
|
+
import G from './Listbox';
|
|
8
|
+
import { StyledPopper } from './styles';
|
|
9
|
+
|
|
10
|
+
const y=forwardRef(({label:P,value:i,options:u=[],loading:d,noOptionsText:S="Nenhum resultado encontrado.",loadingText:b="Carregando op\xE7\xF5es...",error:x,helperText:C,placeholder:I,onChange:f,groupBy:L,showValueInLabel:N,disabled:O,multiple:o,required:h,renderOption:l,tabIndex:R,onInputChange:m,onSearch:c,onBlur:g,...T},v)=>{const[w,a]=useState(),k=r=>r&&typeof r=="object"?r.value.toString():r.toString(),n=useMemo(()=>o?(Array.isArray(i)?i:[]).reduce((t,s)=>{const A=u.find(M=>M.value.toString()===s.toString());return A?[...t,A]:[...t]},[]):u.find(e=>e.value.toString()===i?.toString())||null,[u,i,o]);return jsx(q,{ref:v,value:w||n,onInputChange:(r,e,t)=>{if(m&&m(r,e,t),t==="input"){c&&(c(e),a(e));return}a(void 0);},options:u,loading:d,noOptionsText:S,loadingText:b,disabled:d||O,disableListWrap:!0,PopperComponent:StyledPopper,ListboxComponent:l?void 0:G,filterOptions:(r,e)=>r.filter(t=>`${t.value} ${t.label}`.toLocaleUpperCase().includes(e.inputValue.toLocaleUpperCase())),onChange:(r,e)=>{if(!e){f(o?[]:null);return}if(Array.isArray(e)){f(e.map(k));return}f(typeof e=="string"?e.toString():e.value.toString());},onBlur:r=>{g&&g(r),a(void 0);},renderOption:(r,e,t,s)=>l?l(r,e,t,s):[{...r,showValueInLabel:N},e],renderGroup:r=>r,groupBy:L,multiple:o,renderInput:r=>jsx(B,{...r,placeholder:I,fullWidth:!0,error:!!x,helperText:C,label:P,required:h,InputProps:{...r.InputProps,...!o&&{startAdornment:n&&!Array.isArray(n)&&n.icon?jsx(F,{icon:n.icon}):void 0},endAdornment:jsxs(Fragment,{children:[d?jsx(z,{color:"primary",size:20}):null,r.InputProps.endAdornment]})},inputProps:{...r.inputProps,tabIndex:R}}),...T})});y.displayName="Autocomplete";var or=y;
|
|
11
|
+
|
|
12
|
+
export { or as default };
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef, useState, useMemo } from 'react';
|
|
3
|
+
import U from '@mui/material/Autocomplete';
|
|
4
|
+
import E from '@mui/material/CircularProgress';
|
|
5
|
+
import G from '@mui/material/TextField';
|
|
6
|
+
import W from 'hooks/useResponsive';
|
|
7
|
+
import _ from './Listbox';
|
|
8
|
+
import j from './ListItem';
|
|
9
|
+
import { StyledPopper } from './styles';
|
|
10
|
+
|
|
11
|
+
const c=forwardRef(({label:b,value:o,options:i=[],loading:u,noOptionsText:g="Nenhum resultado encontrado.",loadingText:y="Carregando op\xE7\xF5es...",error:A,helperText:P,placeholder:$,onChange:d,groupBy:L,disabled:O,multiple:l,required:v,renderOption:S,tabIndex:T,onSearch:s,onInputChange:a,...I},h)=>{const[x,f]=useState(),C=W("down","md"),k=r=>r&&typeof r=="object"?r.value.toString():r.toString(),w=useMemo(()=>l?(Array.isArray(o)?o:[]).reduce((e,m)=>{const p=i.find(M=>M.value.toString()===m.toString());return p?[...e,p]:[...e]},[]):i.find(t=>t.value.toString()===o?.toString())||null,[i,o,l]),H=C&&i[0]?Object.keys(i[0]).length*24:void 0;return jsx(U,{ref:h,value:x||w,onInputChange:(r,t,e)=>{if(a&&a(r,t,e),e==="input"){s&&s(t),f(t);return}f(void 0);},options:i,loading:u,noOptionsText:g,loadingText:y,disabled:u||O,disableListWrap:!0,PopperComponent:StyledPopper,ListboxProps:{"data-item-height":H},ListboxComponent:S?void 0:_,filterOptions:(r,t)=>r.filter(e=>`${e.field1?.value} ${e.field1?.label} ${e.field2?.label} ${e.field2?.value} ${e.field3?.label} ${e.field3?.value} ${e.field4?.label} ${e.field4?.value} ${e.field5?.label} ${e.field5?.value} ${e.label}${e.value}`.toLocaleUpperCase().includes(t.inputValue.toLocaleUpperCase())),onChange:(r,t)=>{if(!t){d(l?[]:null);return}if(Array.isArray(t)){d(t.map(k));return}d(typeof t=="string"?t.toString():t.value.toString());},renderOption:({key:r,...t},e)=>jsx("li",{...t,style:{display:"block"},children:jsx(j,{option:e})},r),renderGroup:r=>r,groupBy:L,multiple:l,renderInput:r=>jsx(G,{...r,placeholder:$,fullWidth:!0,error:!!A,helperText:P,label:b,required:v,InputProps:{...r.InputProps,endAdornment:jsxs(Fragment,{children:[u?jsx(E,{color:"primary",size:20}):null,r.InputProps.endAdornment]})},inputProps:{...r.inputProps,tabIndex:T}}),...I})});c.displayName="Autocomplete";var le=c;
|
|
12
|
+
|
|
13
|
+
export { le as default };
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { a as a$1 } from '../../chunk-4SHVMCT6.js';
|
|
2
|
-
import '../../chunk-PPUFQMAW.js';
|
|
3
|
-
import '../../chunk-3E5A45HM.js';
|
|
4
|
-
import a from '@mui/material/Stack';
|
|
5
|
-
import { styled, alpha } from '@mui/material/styles';
|
|
6
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import p from '@mui/material/Stack';
|
|
3
|
+
import a from '../HelpButton';
|
|
4
|
+
import { Header, Content } from './styles';
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
linear-gradient(var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
|
|
10
|
-
var(--dot-color)`});o.defaultProps={style:{"--dot-bg":"#F1F2FD","--dot-color":"#000","--dot-size":"1px","--dot-space":"56px"}};var f=({children:t,header:d,helpLink:s,configButton:c})=>jsxs(Fragment,{children:[jsxs(p,{children:[d,jsxs(a,{direction:"row",alignItems:"center",gap:2,children:[jsx(a$1,{link:s,children:"Ajuda"}),c]})]}),jsx(o,{children:t})]}),b=f;
|
|
6
|
+
const m=({children:t,header:e,helpLink:i,configButton:n})=>jsxs(Fragment,{children:[jsxs(Header,{children:[e,jsxs(p,{direction:"row",alignItems:"center",gap:2,children:[jsx(a,{link:i,children:"Ajuda"}),n]})]}),jsx(Content,{children:t})]});var P=m;
|
|
11
7
|
|
|
12
|
-
export {
|
|
8
|
+
export { P as default };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { a as a$1 } from '../../chunk-PPUFQMAW.js';
|
|
2
|
-
import '../../chunk-3E5A45HM.js';
|
|
3
|
-
import { a } from '../../chunk-W3MYAMTH.js';
|
|
4
|
-
import p from '@mui/material/Stack';
|
|
5
|
-
import { styled, alpha } from '@mui/material/styles';
|
|
6
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import p from 'hooks/useToggle';
|
|
3
|
+
import d from '../Icon';
|
|
4
|
+
import { Sidebar, SidebarContent, SidebarOpenClose } from './styles';
|
|
7
5
|
|
|
8
|
-
|
|
6
|
+
const b=({children:o,expandable:i,...t})=>{const[e,n]=p(!0);return jsx(Sidebar,{open:e,children:jsxs(SidebarContent,{maxHeight:"calc(100vh - 60px)",...t,children:[i&&jsx(SidebarOpenClose,{onClick:n,children:jsx(d,{icon:e?"CHEVRON_LEFT":"CHEVRON_RIGHT"})}),o]})})};var O=b;
|
|
9
7
|
|
|
10
|
-
export {
|
|
8
|
+
export { O as default };
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import '
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import s from '@mui/material/Box';
|
|
3
|
+
import m from '@mui/material/IconButton';
|
|
4
|
+
import c from '@mui/material/InputAdornment';
|
|
5
|
+
import h from '@mui/material/Popover';
|
|
6
|
+
import u from '@mui/material/TextField';
|
|
7
|
+
import d from 'hooks/usePopover';
|
|
8
|
+
import { ChromePicker } from './Style';
|
|
9
|
+
|
|
10
|
+
const P=({value:n,onChangeColor:i,tabIndex:l,...p})=>{const t=n?"#"+n.replaceAll("#",""):"",e=d(),a=(o="")=>{(/^#[0-9a-fA-F]*$/.test(o)||o===""||o==="#")&&i("#"+o.replaceAll("#",""));};return jsxs(Fragment,{children:[jsx(u,{...p,value:t,onChange:o=>a(o.target.value),InputProps:{inputProps:{...p.inputProps,maxLength:7,tabIndex:l},startAdornment:jsx(c,{position:"start",sx:{ml:2},children:jsx(m,{edge:"start","aria-label":"Escolher cor",onClick:e.onOpen,children:jsx(s,{sx:{minWidth:24,minHeight:24,backgroundColor:t,borderRadius:.5}})})})}}),jsx(h,{open:!!e.open,anchorEl:e.open,onClose:e.onClose,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:jsx(ChromePicker,{color:t,onChange:({hex:o})=>i(o),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})};var O=P;
|
|
11
|
+
|
|
12
|
+
export { O as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import d from '@mui/material/Box';
|
|
2
|
-
import { styled, lighten, useTheme } from '@mui/material/styles';
|
|
3
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import r from '@mui/material/Box';
|
|
3
|
+
import { useTheme } from '@mui/material/styles';
|
|
4
|
+
import { RootStyle } from './styles';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
const d=({children:l,color:h="#000",backgroundColor:i,variant:p="ghost",startIcon:o,endIcon:e,sx:s,...x})=>{const f=useTheme(),t={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return jsxs(RootStyle,{ownerState:{color:h,variant:p,backgroundColor:i},sx:{...o&&{pl:.75},...e&&{pr:.75},...s},theme:f,...x,children:[o&&jsx(r,{sx:{mr:.75,...t},children:o}),l,e&&jsx(r,{sx:{ml:.75,...t},children:e})]})};var a=d;
|
|
6
7
|
|
|
7
|
-
export {
|
|
8
|
+
export { a as default };
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
import { a } from '../../chunk-UGH5FWZQ.js';
|
|
2
|
-
import '../../chunk-WKD3OXUA.js';
|
|
3
|
-
import '../../chunk-GOC7PC2S.js';
|
|
4
|
-
import '../../chunk-MCT77MRN.js';
|
|
5
|
-
import '../../chunk-CFVUZ4S5.js';
|
|
6
|
-
import '../../chunk-CFYNJQGN.js';
|
|
7
|
-
import { i } from '../../chunk-D27ND54J.js';
|
|
8
|
-
import { a as a$1 } from '../../chunk-PPUFQMAW.js';
|
|
9
|
-
import '../../chunk-3E5A45HM.js';
|
|
10
|
-
import { LazyMotion, domMax } from 'framer-motion';
|
|
11
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import '
|
|
16
|
-
import h from 'dayjs';
|
|
17
|
-
import { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';
|
|
18
|
-
import { LocalizationProvider } from '@mui/x-date-pickers-pro/LocalizationProvider';
|
|
2
|
+
import { MotionLazy } from 'components/animate/motion-lazy';
|
|
3
|
+
import { Snackbar } from 'components/snackbar/snackbar';
|
|
4
|
+
import a from 'locales/localization-provider';
|
|
5
|
+
import P from 'theme/theme-provider';
|
|
19
6
|
|
|
20
|
-
|
|
7
|
+
const f=({primaryColor:r,colorScheme:i,contrast:m,children:t,cssVarPrefix:e})=>jsx(a,{children:jsx(P,{primaryColor:r,colorScheme:i,contrast:m,cssVarPrefix:e,children:jsxs(MotionLazy,{children:[t,jsx(Snackbar,{})]})})});var y=f;
|
|
21
8
|
|
|
22
|
-
export {
|
|
9
|
+
export { y as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
1
2
|
import s from '@mui/lab/LoadingButton';
|
|
2
3
|
import d from '@mui/material/Button';
|
|
3
4
|
import p from '@mui/material/Dialog';
|
|
4
5
|
import c from '@mui/material/DialogActions';
|
|
5
6
|
import u from '@mui/material/DialogContent';
|
|
6
7
|
import C from '@mui/material/DialogTitle';
|
|
7
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const D=({modalTitle:r="Tem certeza que deseja excluir?",message:n="Essa a\xE7\xE3o n\xE3o poder\xE1 ser desfeita.",cancelButtonText:a="Cancelar",confirmButtonText:e="Sim, excluir registro",onClose:i,onConfirm:l,confirming:m,child:g,...f})=>jsxs(p,{fullWidth:!0,maxWidth:"xs",...f,onClose:i,children:[jsx(C,{children:r}),jsx(u,{children:n}),g,jsxs(c,{children:[jsx(d,{variant:"outlined",color:"inherit",onClick:i,size:"large",children:a}),jsx(s,{variant:"contained",onClick:l,size:"large",loading:m,children:e})]})]});var L=D;
|
|
10
10
|
|
|
11
|
-
export {
|
|
11
|
+
export { L as default };
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import m from '@mui/material/Avatar';
|
|
4
|
+
import v from '@mui/material/Badge';
|
|
5
|
+
import { useTheme } from '@mui/material/styles';
|
|
6
|
+
|
|
7
|
+
const t=r=>r&&r.charAt(0).toUpperCase(),C=r=>["A","N","H","L","Q"].includes(t(r))?"primary":["F","G","T","I","J"].includes(t(r))?"info":["K","D","Y","B","O"].includes(t(r))?"success":["P","E","R","S","U"].includes(t(r))?"warning":["V","W","X","M","Z"].includes(t(r))?"error":"default",p=forwardRef(({color:r,name:o="",BadgeProps:i,children:n,sx:s,...c},u)=>{const e=useTheme(),l=t(o),g=C(o),a=r||g,f=a==="default"?jsxs(m,{ref:u,sx:s,...c,children:[o&&l,n]}):jsxs(m,{ref:u,sx:{color:e.palette[a]?.contrastText,backgroundColor:e.palette[a]?.main,fontWeight:e.typography.fontWeightMedium,...s},...c,children:[o&&l,n]});return i?jsx(v,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},...i,children:f}):f});p.displayName="CustomAvatar";var w=p;
|
|
8
|
+
|
|
9
|
+
export { w as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { forwardRef } from 'react';
|
|
2
3
|
import g from '@mui/material/AvatarGroup';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const t={tiny:24,small:32,medium:40,large:56},m=forwardRef(({size:o="small",compact:a,max:e,children:s,sx:l,...p},u)=>{const i=o==="tiny",r=o==="small",h=o==="medium",n=o==="large",d={width:40,height:40,position:"relative","& .MuiAvatarGroup-avatar":{m:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}};return jsx(g,{ref:u,max:a?3:e,spacing:(i||r)&&"medium"||"small",sx:{"& .MuiAvatar-root":{...n&&{width:t.large,height:t.large,"&:first-of-type":{fontSize:16}},...h&&{width:t.medium,height:t.medium},...r&&{width:t.small,height:t.small},...i&&{width:t.tiny,height:t.tiny}},...a&&{...d},...l},...p,children:s})});m.displayName="CustomAvatarGroup";var G=m;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { G as default };
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import '
|
|
6
|
-
import '
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
import
|
|
11
|
-
import N from '@mui/material/CardContent';
|
|
12
|
-
import u from '@mui/material/Typography';
|
|
13
|
-
import G from '@mui/material/CardActionArea';
|
|
14
|
-
import { styled } from '@mui/material/styles';
|
|
15
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
16
|
-
import l from '@mui/material/Skeleton';
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import k from '@mui/material/Pagination';
|
|
3
|
+
import i from '@mui/material/Stack';
|
|
4
|
+
import u from 'components/EmptyContent';
|
|
5
|
+
import D from 'components/FixedProgressBar';
|
|
6
|
+
import p from './DataCard';
|
|
7
|
+
export { default as DataCard } from './DataCard';
|
|
8
|
+
import { DataCardsSkeleton } from './DataCardSkeleton';
|
|
9
|
+
export { DataCardsSkeleton } from './DataCardSkeleton';
|
|
10
|
+
import { getFieldData } from './getFieldData';
|
|
17
11
|
|
|
18
|
-
|
|
12
|
+
const x=({title:d,rows:o,columns:f,getRowId:m,onClick:c,loading:l,fetching:C,pagination:r})=>{const n=C&&jsx(D,{sx:{zIndex:1}});return l?jsxs(Fragment,{children:[n,jsx(DataCardsSkeleton,{}),jsx(DataCardsSkeleton,{}),jsx(DataCardsSkeleton,{})]}):jsxs(i,{spacing:2,children:[n,o.length===0&&jsx(u,{sx:{mb:3},title:"Nenhum registro encontrado"}),o.map(a=>jsx(p,{title:d,id:m(a),fields:getFieldData(f,a),onClick:c},`data-card-${m(a)}`)),r&&o.length>0&&jsx(i,{direction:"row",justifyContent:"center",children:jsx(k,{page:r?.page,onChange:(a,g)=>{r?.onPageChange(g);},count:r?.total})})]})};var $=x;
|
|
19
13
|
|
|
20
|
-
export {
|
|
14
|
+
export { $ as default };
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { a } from '../../chunk-YWEB6IAI.js';
|
|
2
|
-
import { a as a$1 } from '../../chunk-ZODC2MGF.js';
|
|
3
|
-
import '../../chunk-ZDHXW74M.js';
|
|
4
|
-
import '../../chunk-D27ND54J.js';
|
|
5
|
-
import x, { useState } from 'react';
|
|
6
|
-
import { GRID_CHECKBOX_SELECTION_COL_DEF, DataGridPremium, GridToolbarContainer, GridToolbarColumnsButton, GridToolbarFilterButton, GridToolbarDensitySelector, GridToolbarExport, useGridApiContext, useGridRootProps, gridColumnsTotalWidthSelector, gridColumnPositionsSelector } from '@mui/x-data-grid-premium';
|
|
7
|
-
import E from '@mui/material/Box';
|
|
8
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { GRID_CHECKBOX_SELECTION_COL_DEF, DataGridPremium } from '@mui/x-data-grid-premium';
|
|
4
|
+
import r from 'components/EmptyContent';
|
|
5
|
+
import b from '../FixedProgressBar';
|
|
6
|
+
import y from './CustomToolbar';
|
|
7
|
+
import D from './LoadingOverlay';
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
const H=({columns:e,rows:t=[],loading:n,fetching:l,hideFooter:a,sx:i,showToolbar:s,disableExport:m,columnHeaderHeight:p=56,rowHeight:u=76,rowSpacingType:d="margin",getRowSpacing:g=()=>({top:0,bottom:0}),autoHeight:c=!1,toolbarContent:f,slots:h,...C})=>{const[E,G]=useState(null),S=[{...GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e];return jsxs(Fragment,{children:[l&&jsx(b,{sx:{zIndex:1}}),jsx(DataGridPremium,{columns:S,rows:t,loading:n,autoHeight:c,hideFooter:t.length===0?!0:a,rowHeight:u,columnHeaderHeight:p,getRowSpacing:g,rowSpacingType:d,slots:{toolbar:y,noRowsOverlay:()=>jsx(r,{title:"Nenhum registro encontrado"}),noResultsOverlay:()=>jsx(r,{title:"Nenhum registro encontrado"}),loadingOverlay:D,...h},slotProps:{panel:{anchorEl:E},toolbar:{setFilterButtonEl:G,showQuickFilter:!0,disableExport:m,showToolbar:s,toolbarContent:f}},sx:i,...C})]})};var z=H;
|
|
14
10
|
|
|
15
|
-
export {
|
|
11
|
+
export { z as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { DatePicker } from '@mui/x-date-pickers-pro';
|
|
2
3
|
import s from 'dayjs';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const P=({value:t,onChange:l,tabIndex:e,helperText:i,required:p,...o})=>jsx(DatePicker,{...o,format:"DD/MM/YYYY",value:t?s(t):null,onChange:r=>l(r?r.toDate():null),slotProps:{textField:{...o.slotProps?.textField,required:p,helperText:i,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:e}},openPickerButton:{tabIndex:e}}});var m=P;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { m as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { DateRangePicker } from '@mui/x-date-pickers-pro';
|
|
2
3
|
import r from 'dayjs';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const p=({label:o,value:t,onChange:l,tabIndex:n,helperText:s,required:D,...a})=>jsx(DateRangePicker,{format:"DD/MM/YYYY",value:[t?.startDate?r(t.startDate):null,t?.endDate?r(t.endDate):null],onChange:e=>l({startDate:e[0]?e[0].toDate():null,endDate:e[1]?e[1].toDate():null}),...a,slotProps:{textField:()=>({...a.slotProps?.textField,required:D,helperText:s,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:o,inputProps:{tabIndex:n}})},sx:{width:1}});var c=p;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { c as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { DateTimePicker } from '@mui/x-date-pickers-pro';
|
|
2
3
|
import a from 'dayjs';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const s=({value:e,onChange:i,tabIndex:t,helperText:l,required:m,...o})=>jsx(DateTimePicker,{...o,format:"DD/MM/YYYY HH:mm",value:e?a(e):null,onChange:r=>i(r?r.toDate():null),slotProps:{textField:{...o.slotProps?.textField,required:m,helperText:l,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:t}},openPickerButton:{tabIndex:t}}});var k=s;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { k as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const i=({children:t,waitBeforeShow:e=500})=>{const[r,o]=useState(!1);return useEffect(()=>{const s=setTimeout(()=>o(!0),e);return ()=>clearTimeout(s)},[e]),r?t:null};var d=i;
|
|
4
4
|
|
|
5
|
-
export {
|
|
5
|
+
export { d as default };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { a as a$2 } from '../../chunk-E5MGOPPQ.js';
|
|
2
|
-
import { a as a$1 } from '../../chunk-PPUFQMAW.js';
|
|
3
|
-
import '../../chunk-3E5A45HM.js';
|
|
4
|
-
import g from '@mui/material/Drawer';
|
|
5
|
-
import x from '@mui/material/IconButton';
|
|
6
|
-
import a from '@mui/material/Stack';
|
|
7
|
-
import { styled } from '@mui/material/styles';
|
|
8
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import c from '@mui/material/Drawer';
|
|
3
|
+
import l from '@mui/material/IconButton';
|
|
4
|
+
import n from '@mui/material/Stack';
|
|
5
|
+
import d from '../Icon';
|
|
6
|
+
import f from '../Scrollbar';
|
|
7
|
+
import { Header, HeaderTitle } from './styles';
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
const h=({headerTitle:e,onClose:o,children:a,contentProps:i,maxWidth:m=684,...p})=>jsxs(c,{anchor:"right",PaperProps:{sx:{width:1,maxWidth:m}},onClose:o,...p,children:[jsxs(Header,{children:[jsx(l,{size:"small",onClick:o,children:jsx(d,{icon:"CLOSE_MARK_BUTTON",width:18})}),jsx(HeaderTitle,{children:e})]}),jsx(f,{children:jsx(n,{p:3,...i,children:a})})]});var I=h;
|
|
11
10
|
|
|
12
|
-
export {
|
|
11
|
+
export { I as default };
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import l from '@mui/material/Box';
|
|
3
|
+
import x from '@mui/material/Stack';
|
|
4
|
+
import m from '@mui/material/Typography';
|
|
5
|
+
import h from 'assets/illustrations/EmptyContent';
|
|
6
|
+
import { varAlpha } from 'theme/styles';
|
|
7
|
+
|
|
8
|
+
const s=({sx:y,imgUrl:r,action:n,filled:c,slotProps:e,description:a,title:p="No data",...d})=>jsxs(x,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{px:3,height:1,...c&&{borderRadius:2,bgcolor:o=>varAlpha(o.vars.palette.grey["500Channel"],.04),border:o=>`dashed 1px ${varAlpha(o.vars.palette.grey["500Channel"],.08)}`},...y},...d,children:[r?jsx(l,{component:"img",alt:"empty content",src:r,sx:{width:1,maxWidth:160,...e?.img}}):jsx(h,{}),p&&jsx(m,{variant:"h6",component:"span",sx:{mt:1,textAlign:"center",...e?.title,color:"text.disabled"},children:p}),a&&jsx(m,{variant:"caption",sx:{mt:1,textAlign:"center",color:"text.disabled",...e?.description},children:a}),n&&n]});var S=s;
|
|
9
|
+
|
|
10
|
+
export { S as default };
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import '
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import e from '@mui/material/Stack';
|
|
3
|
+
import p from '@mui/material/Typography';
|
|
4
|
+
import i from 'assets/illustrations/EmptyContent';
|
|
5
|
+
|
|
6
|
+
const n=({text:o,sx:r})=>jsxs(e,{alignItems:"center",justifyContent:"center",gap:3.75,sx:{textAlign:"center",height:1,backgroundColor:"#fff",padding:2,borderRadius:2,"& svg":{width:"100%"},...r},children:[jsx(i,{}),jsx(p,{variant:"body1",sx:{color:"text.secondary"},children:o})]});var s=n;
|
|
7
|
+
|
|
8
|
+
export { s as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a } from '../../chunk-PPUFQMAW.js';
|
|
2
|
-
import '../../chunk-3E5A45HM.js';
|
|
3
|
-
import f from '@mui/material/Button';
|
|
4
|
-
import l from '@mui/material/Stack';
|
|
5
|
-
import e from '@mui/material/Typography';
|
|
6
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import c from '@mui/material/Button';
|
|
3
|
+
import o from '@mui/material/Stack';
|
|
4
|
+
import t from '@mui/material/Typography';
|
|
5
|
+
import m from 'assets/illustrations/ImSorry';
|
|
6
|
+
import y from '../Icon';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const g=({title:n,description:i,onClickButton:e,textButton:p="Atualizar"})=>jsxs(o,{height:1,width:1,alignItems:"center",justifyContent:"center",textAlign:"center",gap:3,children:[jsx(m,{}),jsxs(o,{children:[jsx(t,{variant:"h5",color:"grey.600",children:n}),jsx(t,{variant:"body1",color:"grey.600",children:i})]}),jsx(c,{variant:"contained",size:"large",startIcon:jsx(y,{icon:"REFRESH_CHANGE"}),onClick:e,children:p})]});var d=g;
|
|
9
9
|
|
|
10
|
-
export {
|
|
10
|
+
export { d as default };
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { a as a$1 } from '../../chunk-PPUFQMAW.js';
|
|
2
|
-
import '../../chunk-3E5A45HM.js';
|
|
3
|
-
import { a } from '../../chunk-W3MYAMTH.js';
|
|
4
|
-
import s from '@mui/material/IconButton';
|
|
5
|
-
import p from '@mui/material/Stack';
|
|
6
|
-
import g from '@mui/material/Typography';
|
|
7
|
-
import G from '@mui/material/Collapse';
|
|
8
|
-
import { styled, alpha } from '@mui/material/styles';
|
|
9
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import n from '@mui/material/IconButton';
|
|
3
|
+
import p from '@mui/material/Stack';
|
|
4
|
+
import e from '@mui/material/Typography';
|
|
5
|
+
import f from 'hooks/useToggle';
|
|
6
|
+
import i from '../Icon';
|
|
7
|
+
import { Container, GroupTop, CollapseGroup } from './styles';
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
const C=({description:a,name:l,children:c,header:m,onDelete:u})=>{const[t,d]=f(!0);return jsxs(Container,{children:[jsxs(GroupTop,{direction:"row",children:[jsxs(p,{direction:"row",alignItems:"center",gap:1.5,flex:1,children:[jsx(n,{edge:"end",onClick:d,children:jsx(i,{icon:t?"CHEVRON_UP":"CHEVRON_RIGHT"})}),jsx(e,{variant:"overline",color:"text.primary",children:l}),jsx(e,{variant:"overline",color:"text.secondary",children:a}),jsx(p,{flex:1,children:m})]}),jsx(n,{color:"error",onClick:u,children:jsx(i,{icon:"DELETE_MARK_BUTTON_02"})})]}),jsx(CollapseGroup,{in:t,timeout:"auto",unmountOnExit:!0,children:c})]})};var B=C;
|
|
12
10
|
|
|
13
|
-
export {
|
|
11
|
+
export { B as default };
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import o from '@mui/material/LinearProgress';
|
|
3
|
+
|
|
4
|
+
const s=({sx:r})=>jsx(o,{sx:{position:"absolute",top:0,left:0,width:1,zIndex:9999,...r}});var n=s;
|
|
5
|
+
|
|
6
|
+
export { n as default };
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { a as a$3 } from '../../chunk-BYAPKKGB.js';
|
|
2
|
-
import { a } from '../../chunk-E5MGOPPQ.js';
|
|
3
|
-
import { a as a$2 } from '../../chunk-4SHVMCT6.js';
|
|
4
|
-
import { a as a$1 } from '../../chunk-PPUFQMAW.js';
|
|
5
|
-
import '../../chunk-3E5A45HM.js';
|
|
6
|
-
import v from '@mui/material/Divider';
|
|
7
|
-
import F from '@mui/material/IconButton';
|
|
8
|
-
import n from '@mui/material/Stack';
|
|
9
|
-
import g from '@mui/material/Typography';
|
|
10
|
-
import C from '@mui/material/Button';
|
|
11
|
-
import { styled } from '@mui/material/styles';
|
|
12
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import c from '@mui/material/Divider';
|
|
3
|
+
import S from '@mui/material/IconButton';
|
|
4
|
+
import o from '@mui/material/Stack';
|
|
5
|
+
import l from '@mui/material/Typography';
|
|
6
|
+
import f from 'components/HelpButton';
|
|
7
|
+
import h from 'components/WhiteBox';
|
|
8
|
+
import k from '../Icon';
|
|
9
|
+
import { LeftBox, StyledScrollbar, SideBarWrapper, SectionTile, TopBox, FrameHeader, Children, SectionTitle, SectionSubtitle } from './style';
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
const w=({title:n,sections:a,headerLeftContent:p,headerRightContent:m,onClickBack:d})=>jsx(o,{children:jsxs(o,{direction:"row",children:[jsx(LeftBox,{id:"frame-skeleton-left-box",children:jsx(StyledScrollbar,{children:jsxs(SideBarWrapper,{children:[jsx(l,{variant:"overline",color:"text.disabled",fontWeight:700,children:"ACESSO R\xC1PIDO"}),a.map((e,i)=>jsxs(o,{children:[jsxs(SectionTile,{onClick:()=>{e.ref.current&&e.ref.current.scrollIntoView({block:"start",behavior:"smooth"});},children:[e.title,e.isRequired&&jsx("span",{children:"*"})]}),i<a.length-1&&jsx(c,{})]},i))]})})}),jsxs(o,{width:"100%",alignItems:"center",mb:8,children:[jsx(TopBox,{children:jsxs(FrameHeader,{children:[jsxs(o,{flexDirection:"row",gap:2,alignItems:"center",children:[jsx(S,{color:"primary",onClick:()=>d(),children:jsx(k,{icon:"CHEVRON_LEFT"})}),jsx(l,{variant:"h4",children:n}),p]}),jsxs(o,{direction:"row",gap:2,alignItems:"center",minWidth:"max-content",children:[jsx(f,{disabled:!0}),m]})]})}),jsx(Children,{children:a.map((e,i)=>jsxs(o,{paddingTop:3,paddingBottom:2,alignItems:"start",width:"100%",id:`section-${i}`,children:[jsx(SectionTitle,{ref:e.ref,children:e.title}),jsx(SectionSubtitle,{children:e.subTitle}),jsx(h,{width:"100%",borderRadius:1,gap:1.5,padding:3,children:e.child})]},e.title))})]})]})});var P=w;
|
|
15
12
|
|
|
16
|
-
export {
|
|
13
|
+
export { P as default };
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import n from '@mui/material/Button';
|
|
3
|
+
import p from '../Icon';
|
|
4
|
+
|
|
5
|
+
const e=({link:o,...r})=>jsx(n,{...r,startIcon:jsx(p,{icon:"HELP_CIRCLE"}),variant:"outlined",color:"inherit",...o&&{href:o,target:"_blank"},children:"Ajuda"});var c=e;
|
|
6
|
+
|
|
7
|
+
export { c as default };
|