finance-shared 0.0.9 → 0.0.11

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.
@@ -1 +1 @@
1
- *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.\!pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto!important}.\!visible,.visible{visibility:visible!important}.invisible{visibility:hidden!important}.collapse{visibility:collapse!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.sticky{position:sticky!important}.bottom-0{bottom:0!important}.right-\[-4px\]{right:-4px!important}.top-\[-4px\]{top:-4px!important}.m-10{margin:2.5rem!important}.mx-20{margin-left:5rem!important;margin-right:5rem!important}.mx-8{margin-left:2rem!important;margin-right:2rem!important}.my-20{margin-top:5rem!important;margin-bottom:5rem!important}.mb-10{margin-bottom:2.5rem!important}.mb-5{margin-bottom:1.25rem!important}.mb-8{margin-bottom:2rem!important}.ml-10{margin-left:2.5rem!important}.ml-2{margin-left:.5rem!important}.ml-32{margin-left:8rem!important}.ml-40{margin-left:10rem!important}.mr-8{margin-right:2rem!important}.mt-10{margin-top:2.5rem!important}.mt-20{margin-top:5rem!important}.block{display:block!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.table{display:table!important}.table-cell{display:table-cell!important}.table-footer-group{display:table-footer-group!important}.table-header-group{display:table-header-group!important}.table-row-group{display:table-row-group!important}.table-row{display:table-row!important}.grid{display:grid!important}.contents{display:contents!important}.\!hidden,.hidden{display:none!important}.size-\[100px\]{width:100px!important;height:100px!important}.size-full{width:100%!important;height:100%!important}.h-\[80vh\]{height:80vh!important}.h-auto{height:auto!important}.h-full{height:100%!important}.max-h-\[100px\]{max-height:100px!important}.min-h-\[100px\]{min-height:100px!important}.w-full{width:100%!important}.min-w-\[100px\]{min-width:100px!important}.min-w-\[230px\]{min-width:230px!important}.max-w-\[100px\]{max-width:100px!important}.flex-shrink-0{flex-shrink:0!important}.shrink{flex-shrink:1!important}.grow{flex-grow:1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-10{gap:2.5rem!important}.overflow-hidden{overflow:hidden!important}.truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.object-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}.p-0{padding:0!important}.p-16{padding:4rem!important}.p-20{padding:5rem!important}.p-8{padding:2rem!important}.px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}.py-10{padding-top:2.5rem!important;padding-bottom:2.5rem!important}.text-center{text-align:center!important}.text-justify{text-align:justify!important}.text-end{text-align:end!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-bold{font-weight:700!important}.uppercase{text-transform:uppercase!important}.lowercase{text-transform:lowercase!important}.capitalize{text-transform:capitalize!important}.italic{font-style:italic!important}.text-red-500{--tw-text-opacity: 1 !important;color:rgb(239 68 68 / var(--tw-text-opacity))!important}.underline{text-decoration-line:underline!important}.overline{text-decoration-line:overline!important}.antialiased{-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.outline{outline-style:solid!important}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.blur{--tw-blur: blur(8px) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.grayscale{--tw-grayscale: grayscale(100%) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.invert{--tw-invert: invert(100%) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.\!transition,.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.hover\:bg-transparent:hover{background-color:transparent!important}@media(min-width:640px){.sm\:m-20{margin:5rem!important}.sm\:text-xl{font-size:1.25rem!important;line-height:1.75rem!important}}
1
+ *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.\!pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto!important}.\!visible,.visible{visibility:visible!important}.invisible{visibility:hidden!important}.collapse{visibility:collapse!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.sticky{position:sticky!important}.bottom-0{bottom:0!important}.right-\[-4px\]{right:-4px!important}.top-\[-4px\]{top:-4px!important}.m-0{margin:0!important}.m-10{margin:2.5rem!important}.mx-20{margin-left:5rem!important;margin-right:5rem!important}.mx-8{margin-left:2rem!important;margin-right:2rem!important}.my-20{margin-top:5rem!important;margin-bottom:5rem!important}.mb-10{margin-bottom:2.5rem!important}.mb-5{margin-bottom:1.25rem!important}.mb-8{margin-bottom:2rem!important}.ml-10{margin-left:2.5rem!important}.ml-2{margin-left:.5rem!important}.ml-32{margin-left:8rem!important}.ml-40{margin-left:10rem!important}.ml-auto{margin-left:auto!important}.mr-8{margin-right:2rem!important}.mt-10{margin-top:2.5rem!important}.mt-20{margin-top:5rem!important}.block{display:block!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.table{display:table!important}.table-cell{display:table-cell!important}.table-footer-group{display:table-footer-group!important}.table-header-group{display:table-header-group!important}.table-row-group{display:table-row-group!important}.table-row{display:table-row!important}.grid{display:grid!important}.contents{display:contents!important}.\!hidden,.hidden{display:none!important}.size-\[100px\]{width:100px!important;height:100px!important}.size-full{width:100%!important;height:100%!important}.h-auto{height:auto!important}.h-full{height:100%!important}.max-h-\[100px\]{max-height:100px!important}.min-h-\[100px\]{min-height:100px!important}.w-full{width:100%!important}.min-w-\[100px\]{min-width:100px!important}.min-w-\[230px\]{min-width:230px!important}.max-w-\[100px\]{max-width:100px!important}.flex-shrink-0{flex-shrink:0!important}.shrink{flex-shrink:1!important}.grow{flex-grow:1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-10{gap:2.5rem!important}.overflow-hidden{overflow:hidden!important}.truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.object-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}.p-0{padding:0!important}.p-16{padding:4rem!important}.p-20{padding:5rem!important}.p-3{padding:.75rem!important}.p-8{padding:2rem!important}.px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}.py-10{padding-top:2.5rem!important;padding-bottom:2.5rem!important}.text-center{text-align:center!important}.text-justify{text-align:justify!important}.text-end{text-align:end!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-bold{font-weight:700!important}.uppercase{text-transform:uppercase!important}.lowercase{text-transform:lowercase!important}.capitalize{text-transform:capitalize!important}.italic{font-style:italic!important}.text-red-500{--tw-text-opacity: 1 !important;color:rgb(239 68 68 / var(--tw-text-opacity))!important}.text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.underline{text-decoration-line:underline!important}.overline{text-decoration-line:overline!important}.antialiased{-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.outline{outline-style:solid!important}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.blur{--tw-blur: blur(8px) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.grayscale{--tw-grayscale: grayscale(100%) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.invert{--tw-invert: invert(100%) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.\!transition,.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.hover\:bg-transparent:hover{background-color:transparent!important}@media(min-width:640px){.sm\:m-20{margin:5rem!important}.sm\:text-xl{font-size:1.25rem!important;line-height:1.75rem!important}}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { ActionCreatorWithoutPayload } from '@reduxjs/toolkit';
2
2
  import { ActionCreatorWithPayload } from '@reduxjs/toolkit';
3
3
  import { Breakpoint } from '@mui/material';
4
+ import { CheckboxProps } from '@mui/material';
5
+ import { Context } from 'react';
4
6
  import { default as default_2 } from 'react';
5
7
  import { default as i18n } from 'i18next';
6
8
  import { JSX } from 'react/jsx-runtime';
@@ -9,6 +11,7 @@ import { MemoExoticComponent } from 'react';
9
11
  import { PayloadAction } from '@reduxjs/toolkit';
10
12
  import * as React_2 from 'react';
11
13
  import { ReactElement } from 'react';
14
+ import { ReactNode } from 'react';
12
15
  import { Slice } from '@reduxjs/toolkit';
13
16
  import { SliceSelectors } from '@reduxjs/toolkit';
14
17
  import { TextFieldProps } from '@mui/material';
@@ -96,12 +99,21 @@ export declare interface ConfirmDialogProps {
96
99
  className?: string;
97
100
  style?: default_2.CSSProperties;
98
101
  size?: "xs" | "sm" | "md" | "lg" | "xl";
102
+ capitalize?: boolean;
99
103
  }
100
104
 
101
105
  export declare const CustomAutocomplete: React_2.FC<CustomAutocompleteProps>;
102
106
 
103
107
  declare type CustomAutocompleteProps = CommonAutocompleteProps & AdditionalProps;
104
108
 
109
+ export declare const CustomCheckbox: default_2.FC<CustomCheckboxProps>;
110
+
111
+ export declare interface CustomCheckboxProps extends Omit<CheckboxProps, 'onChange' | 'checked'> {
112
+ label?: string;
113
+ onChange?: (checked: boolean) => void;
114
+ checked?: boolean;
115
+ }
116
+
105
117
  export declare const CustomDatePicker: default_2.FC<CustomDatePickerProps>;
106
118
 
107
119
  export declare interface CustomDatePickerProps {
@@ -115,18 +127,22 @@ export declare interface CustomDatePickerProps {
115
127
  disabled?: boolean;
116
128
  required?: boolean;
117
129
  locale?: Locale_2;
130
+ dataTestId?: string;
131
+ iconColor?: string;
118
132
  }
119
133
 
120
- export declare function CustomDialog({ open, onClose, content, size, hideCloseIcon }: CustomDialogProps): JSX.Element;
134
+ export declare function CustomDialog({ open, onClose, content, size, maxWidth, hideCloseIcon }: CustomDialogProps): JSX.Element;
121
135
 
122
136
  export declare interface CustomDialogProps {
123
137
  open: boolean;
124
138
  onClose: () => void;
125
139
  content: {
126
140
  title?: string;
141
+ description?: string;
127
142
  component: React.ReactNode;
128
143
  };
129
144
  size?: Breakpoint;
145
+ maxWidth?: Breakpoint | false;
130
146
  hideBackdrop?: boolean;
131
147
  hideCloseIcon?: boolean;
132
148
  }
@@ -197,16 +213,24 @@ declare interface DialogsState {
197
213
 
198
214
  export declare const DigitalProcessSignature: (request_data: any) => (dispatch: any) => Promise<void>;
199
215
 
200
- export declare function DocumentSigningDialog({ financeDetail, loginUserDetail, digitalSignatureRole, ColoredSubmitButton }: DocumentSigningDialogProps): JSX.Element;
216
+ export declare function DocumentSigningDialog({ financeDetail, loginUserDetail, digitalSignatureRole, ColoredSubmitButton, financeCalculation }: DocumentSigningDialogProps): JSX.Element;
201
217
 
202
218
  declare interface DocumentSigningDialogProps {
203
219
  financeDetail: any;
204
220
  loginUserDetail: any;
205
221
  digitalSignatureRole: {
206
- Admin: string;
207
- Lawyer: string;
222
+ Admin?: string;
223
+ Lawyer?: string;
224
+ User?: string;
208
225
  };
209
226
  ColoredSubmitButton: React.ComponentType<any>;
227
+ financeCalculation?: {
228
+ loanAmount?: number;
229
+ interestFees?: number;
230
+ feesDeduction?: number;
231
+ repaymentAmount?: number;
232
+ cashInHand?: number;
233
+ };
210
234
  }
211
235
 
212
236
  export declare interface FieldError {
@@ -244,13 +268,15 @@ export declare interface FinanceApplicationAutocompleteProps {
244
268
  }>>;
245
269
  }
246
270
 
247
- export declare function formatAmount({ num, showCurrency }: FormatAmountProps): string;
271
+ export declare const FinanceSharedProvider: default_2.FC<FinanceSharedProviderProps>;
248
272
 
249
- declare interface FormatAmountProps {
250
- num: any;
251
- showCurrency?: boolean;
273
+ export declare interface FinanceSharedProviderProps {
274
+ children: ReactNode;
275
+ config: Partial<LibraryConfig>;
252
276
  }
253
277
 
278
+ export declare function formatAmount(num: any, showCurrency?: boolean): string;
279
+
254
280
  export declare const FuseMessage: MemoExoticComponent<typeof FuseMessage_2>;
255
281
 
256
282
  /**
@@ -293,8 +319,6 @@ export declare const getActiveFinanceDetail: (state: any) => any;
293
319
 
294
320
  export declare const getApplicationDetailById: (id: string) => (dispatch: any) => Promise<any>;
295
321
 
296
- export declare const getConfig: () => SharedLibConfig;
297
-
298
322
  export declare const getDocumentSignJPDF: (state: any) => any;
299
323
 
300
324
  export declare const getDocumentSignJPDFLoading: (state: any) => any;
@@ -376,6 +400,15 @@ declare type initialStateProps = {
376
400
  };
377
401
  };
378
402
 
403
+ declare interface LibraryConfig {
404
+ apiUrl: string;
405
+ tokenConfig: TokenConfig;
406
+ }
407
+ export { LibraryConfig }
408
+ export { LibraryConfig as SharedLibConfig }
409
+
410
+ export declare const LibraryConfigContext: Context<LibraryConfig>;
411
+
379
412
  export declare interface MediaDialogProps {
380
413
  filePath?: string;
381
414
  isMobile?: boolean;
@@ -435,10 +468,19 @@ declare interface PDFPreviewForTheSignatureProps {
435
468
  applicationDetailsData: Record<any, any>;
436
469
  loginUserDetail: any;
437
470
  loginUserRoles: {
438
- Admin: string;
439
- Lawyer: string;
471
+ Admin?: string;
472
+ Lawyer?: string;
473
+ User?: string;
440
474
  };
441
475
  ColoredSubmitButton: default_2.ComponentType<any>;
476
+ financeCalculation?: {
477
+ loanAmount?: number;
478
+ interestFees?: number;
479
+ feesDeduction?: number;
480
+ repaymentAmount?: number;
481
+ cashInHand?: number;
482
+ };
483
+ t?: (key: string) => string;
442
484
  }
443
485
 
444
486
  export declare const PreviewMedia: default_2.FC<PreviewMediaProps>;
@@ -456,12 +498,16 @@ declare interface RemarkListRequestData {
456
498
  SectionName: string;
457
499
  }
458
500
 
459
- export declare function RemarksDialog({ sectionName, financeApplicationId, tenantId, permissions, isApplicationRejected, ReassignStaffFormComponent, staffRoleIds, dataTestId, themesConfig, remarksCount, }: RemarksDialogProps): JSX.Element;
501
+ export declare function RemarksDialog({ variant, sectionName, sectionTitle: propSectionTitle, financeApplicationId, tenantId, remarksList: propRemarksList, onRemarkUpdate, permissions, isApplicationRejected, ReassignStaffFormComponent, staffRoleIds, dataTestId, themesConfig, remarksCount, }: RemarksDialogProps): JSX.Element;
460
502
 
461
503
  export declare interface RemarksDialogProps {
504
+ variant?: "full" | "simple";
462
505
  sectionName: string;
463
- financeApplicationId: string;
464
- tenantId: string;
506
+ sectionTitle?: string;
507
+ financeApplicationId?: string;
508
+ tenantId?: string;
509
+ remarksList?: RemarkType[];
510
+ onRemarkUpdate?: (remark: RemarkType) => void;
465
511
  permissions?: {
466
512
  canViewRemarks?: boolean;
467
513
  canCreateRemark?: boolean;
@@ -485,6 +531,7 @@ export declare interface RemarkType {
485
531
  remark: string;
486
532
  remarkType: "Internal" | "External";
487
533
  hasActionTaken: boolean;
534
+ hasActionTakenByCustomer?: boolean;
488
535
  createdBy?: string;
489
536
  assignedToUserName?: string;
490
537
  created?: string;
@@ -532,8 +579,6 @@ declare type SearchableAutocompleteProps = {
532
579
 
533
580
  export declare const setActiveFinanceDetail: ActionCreatorWithPayload<any, "dialogs/setActiveFinanceDetail">;
534
581
 
535
- export declare const setConfig: (c: SharedLibConfig) => void;
536
-
537
582
  export declare const setDocumentSignJPDF: ActionCreatorWithPayload<string, "dialogs/setDocumentSignJPDF">;
538
583
 
539
584
  export declare const setIsChangeDetectDialogOpen: (value: boolean) => (dispatch: any) => Promise<void>;
@@ -556,10 +601,6 @@ export declare const setRemarkList: ActionCreatorWithPayload<RemarkType_2[], "di
556
601
 
557
602
  export declare const setSelectedMediaFilePath: ActionCreatorWithPayload<string, "dialogs/setSelectedMediaFilePath">;
558
603
 
559
- export declare interface SharedLibConfig {
560
- apiUrl: string;
561
- }
562
-
563
604
  export declare const showMessage: ActionCreatorWithPayload<Partial<{
564
605
  variant: "success" | "error" | "warning" | "info";
565
606
  anchorOrigin: {
@@ -585,8 +626,22 @@ declare interface TenantAutocompleteProps {
585
626
  autoSelectFirst?: boolean;
586
627
  }
587
628
 
629
+ export declare interface TokenConfig {
630
+ accessToken: string;
631
+ refreshToken: string;
632
+ }
633
+
588
634
  export declare const updateRemark: (requestData: RemarkType_2) => (dispatch: any) => Promise<void>;
589
635
 
590
636
  export declare const updateUserStatus: (requestData: any, listApiFunc: () => void) => (dispatch: any) => Promise<void>;
591
637
 
638
+ /**
639
+ * Hook to access the library configuration within React components.
640
+ * Must be used within a FinanceSharedProvider.
641
+ *
642
+ * @example
643
+ * const { apiUrl, tokenConfig } = useLibraryConfig();
644
+ */
645
+ export declare const useLibraryConfig: () => LibraryConfig;
646
+
592
647
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "finance-shared",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/"
@@ -43,7 +43,6 @@
43
43
  "@mui/base": "5.0.0-beta.9",
44
44
  "@mui/icons-material": "6.4.0",
45
45
  "@mui/material": "6.4.0",
46
- "@mui/styles": "5.15.6",
47
46
  "@mui/system": "6.4.0",
48
47
  "@mui/x-date-pickers": "6.10.2",
49
48
  "@reduxjs/toolkit": "^2.9.0",
@@ -73,7 +72,6 @@
73
72
  "@mui/base": "5.0.0-beta.9",
74
73
  "@mui/icons-material": "6.4.0",
75
74
  "@mui/material": "6.4.0",
76
- "@mui/styles": "5.15.6",
77
75
  "@mui/system": "6.4.0",
78
76
  "@mui/x-date-pickers": "6.10.2",
79
77
  "@reduxjs/toolkit": "^2.9.0",