@fixefy/fixefy-ui-utils 0.0.11 → 0.0.13
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-cjs/auth/index.js +40 -0
- package/dist-cjs/auth/index.js.map +1 -0
- package/dist-cjs/aws/aws_lambda_helper.d.ts +5 -0
- package/dist-cjs/aws/aws_lambda_helper.js +68 -0
- package/dist-cjs/aws/aws_lambda_helper.js.map +1 -0
- package/dist-cjs/aws/aws_s3_helper.d.ts +0 -0
- package/dist-cjs/aws/aws_s3_helper.js +243 -0
- package/dist-cjs/aws/aws_s3_helper.js.map +1 -0
- package/dist-cjs/aws/data_models.js +3 -0
- package/dist-cjs/aws/data_models.js.map +1 -0
- package/dist-cjs/aws/index.d.ts +1 -0
- package/dist-cjs/aws/index.js +6 -0
- package/dist-cjs/aws/index.js.map +1 -0
- package/dist-cjs/commander/index.d.ts +33 -0
- package/dist-cjs/commander/index.js +292 -0
- package/dist-cjs/commander/index.js.map +1 -0
- package/dist-cjs/constants/index.js +89 -0
- package/dist-cjs/constants/index.js.map +1 -0
- package/dist-cjs/contents/index.d.ts +3 -0
- package/dist-cjs/contents/index.js +33 -0
- package/dist-cjs/contents/index.js.map +1 -0
- package/{dist-es/types → dist-cjs}/files/index.d.ts +1 -1
- package/dist-cjs/files/index.js +31 -0
- package/dist-cjs/files/index.js.map +1 -0
- package/dist-cjs/{types/graphql → graphql}/index.d.ts +3 -3
- package/dist-cjs/graphql/index.js +338 -0
- package/dist-cjs/graphql/index.js.map +1 -0
- package/dist-cjs/{types/headers → headers}/index.d.ts +1 -1
- package/dist-cjs/headers/index.js +103 -0
- package/dist-cjs/headers/index.js.map +1 -0
- package/dist-cjs/images/index.js +16 -0
- package/dist-cjs/images/index.js.map +1 -0
- package/dist-cjs/index.d.ts +12 -0
- package/dist-cjs/index.js +18 -39
- package/dist-cjs/index.js.map +1 -1
- package/dist-cjs/json/index.js +154 -0
- package/dist-cjs/json/index.js.map +1 -0
- package/dist-cjs/package.json +3 -0
- package/dist-cjs/page_context/index.js +511 -0
- package/dist-cjs/page_context/index.js.map +1 -0
- package/dist-cjs/redirect/index.js +19 -0
- package/dist-cjs/redirect/index.js.map +1 -0
- package/dist-cjs/renderer/index.d.ts +9 -0
- package/dist-cjs/renderer/index.js +67 -0
- package/dist-cjs/renderer/index.js.map +1 -0
- package/dist-cjs/resolvers/index.js +38 -0
- package/dist-cjs/resolvers/index.js.map +1 -0
- package/dist-cjs/transform/index.js +44 -0
- package/dist-cjs/transform/index.js.map +1 -0
- package/dist-cjs/types/index.d.ts +39 -11
- package/dist-cjs/types/index.js +3 -0
- package/dist-cjs/types/index.js.map +1 -0
- package/dist-cjs/validate/index.js +56 -0
- package/dist-cjs/validate/index.js.map +1 -0
- package/dist-es/auth/index.js +38 -0
- package/dist-es/auth/index.js.map +1 -0
- package/dist-es/aws/aws_lambda_helper.d.ts +5 -0
- package/dist-es/aws/aws_lambda_helper.js +60 -0
- package/dist-es/aws/aws_lambda_helper.js.map +1 -0
- package/dist-es/aws/aws_s3_helper.d.ts +0 -0
- package/dist-es/aws/aws_s3_helper.js +243 -0
- package/dist-es/aws/aws_s3_helper.js.map +1 -0
- package/dist-es/aws/data_models.js +2 -0
- package/dist-es/aws/data_models.js.map +1 -0
- package/dist-es/aws/index.d.ts +1 -0
- package/dist-es/aws/index.js +3 -0
- package/dist-es/aws/index.js.map +1 -0
- package/dist-es/commander/index.d.ts +33 -0
- package/dist-es/commander/index.js +262 -0
- package/dist-es/commander/index.js.map +1 -0
- package/dist-es/constants/index.js +86 -0
- package/dist-es/constants/index.js.map +1 -0
- package/dist-es/contents/index.d.ts +3 -0
- package/dist-es/contents/index.js +32 -0
- package/dist-es/contents/index.js.map +1 -0
- package/{dist-cjs/types → dist-es}/files/index.d.ts +1 -1
- package/dist-es/files/index.js +26 -0
- package/dist-es/files/index.js.map +1 -0
- package/dist-es/{types/graphql → graphql}/index.d.ts +3 -3
- package/dist-es/graphql/index.js +357 -0
- package/dist-es/graphql/index.js.map +1 -0
- package/dist-es/{types/headers → headers}/index.d.ts +1 -1
- package/dist-es/headers/index.js +91 -0
- package/dist-es/headers/index.js.map +1 -0
- package/dist-es/images/index.js +12 -0
- package/dist-es/images/index.js.map +1 -0
- package/dist-es/index.d.ts +12 -0
- package/dist-es/index.js +15 -39
- package/dist-es/index.js.map +1 -1
- package/dist-es/json/index.js +144 -0
- package/dist-es/json/index.js.map +1 -0
- package/dist-es/package.json +3 -0
- package/dist-es/page_context/index.js +529 -0
- package/dist-es/page_context/index.js.map +1 -0
- package/dist-es/redirect/index.js +16 -0
- package/dist-es/redirect/index.js.map +1 -0
- package/dist-es/renderer/index.d.ts +9 -0
- package/dist-es/renderer/index.js +61 -0
- package/dist-es/renderer/index.js.map +1 -0
- package/dist-es/resolvers/index.js +34 -0
- package/dist-es/resolvers/index.js.map +1 -0
- package/dist-es/transform/index.js +39 -0
- package/dist-es/transform/index.js.map +1 -0
- package/dist-es/types/index.d.ts +39 -11
- package/dist-es/types/index.js +2 -0
- package/dist-es/types/index.js.map +1 -0
- package/dist-es/validate/index.js +48 -0
- package/dist-es/validate/index.js.map +1 -0
- package/dist-types/auth/index.d.ts +2 -0
- package/dist-types/aws/aws_lambda_helper.d.ts +5 -0
- package/dist-types/aws/aws_s3_helper.d.ts +0 -0
- package/dist-types/aws/data_models.d.ts +21 -0
- package/dist-types/aws/index.d.ts +1 -0
- package/dist-types/commander/index.d.ts +33 -0
- package/dist-types/constants/index.d.ts +6 -0
- package/dist-types/contents/index.d.ts +3 -0
- package/dist-types/files/index.d.ts +2 -0
- package/dist-types/graphql/index.d.ts +38 -0
- package/dist-types/headers/index.d.ts +12 -0
- package/dist-types/images/index.d.ts +4 -0
- package/dist-types/index.d.ts +12 -0
- package/dist-types/json/index.d.ts +7 -0
- package/dist-types/page_context/index.d.ts +248 -0
- package/dist-types/redirect/index.d.ts +2 -0
- package/dist-types/renderer/index.d.ts +9 -0
- package/dist-types/resolvers/index.d.ts +11 -0
- package/dist-types/transform/index.d.ts +2 -0
- package/{dist-cjs/types → dist-types}/types/index.d.ts +5 -5
- package/dist-types/validate/index.d.ts +5 -0
- package/package.json +13 -18
- package/dist-cjs/types/commander/index.d.ts +0 -33
- package/dist-es/types/commander/index.d.ts +0 -33
- package/dist-es/types/types/index.d.ts +0 -39
- /package/dist-cjs/{types/auth → auth}/index.d.ts +0 -0
- /package/dist-cjs/{types/aws → aws}/data_models.d.ts +0 -0
- /package/dist-cjs/{types/constants → constants}/index.d.ts +0 -0
- /package/dist-cjs/{types/images → images}/index.d.ts +0 -0
- /package/dist-cjs/{types/json → json}/index.d.ts +0 -0
- /package/dist-cjs/{types/page_context → page_context}/index.d.ts +0 -0
- /package/dist-cjs/{types/redirect → redirect}/index.d.ts +0 -0
- /package/dist-cjs/{types/resolvers → resolvers}/index.d.ts +0 -0
- /package/dist-cjs/{types/transform → transform}/index.d.ts +0 -0
- /package/dist-cjs/{types/validate → validate}/index.d.ts +0 -0
- /package/dist-es/{types/auth → auth}/index.d.ts +0 -0
- /package/dist-es/{types/aws → aws}/data_models.d.ts +0 -0
- /package/dist-es/{types/constants → constants}/index.d.ts +0 -0
- /package/dist-es/{types/images → images}/index.d.ts +0 -0
- /package/dist-es/{types/json → json}/index.d.ts +0 -0
- /package/dist-es/{types/page_context → page_context}/index.d.ts +0 -0
- /package/dist-es/{types/redirect → redirect}/index.d.ts +0 -0
- /package/dist-es/{types/resolvers → resolvers}/index.d.ts +0 -0
- /package/dist-es/{types/transform → transform}/index.d.ts +0 -0
- /package/dist-es/{types/validate → validate}/index.d.ts +0 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Theme } from '@mui/material/styles';
|
|
3
|
+
declare module '@mui/styles/defaultTheme' {
|
|
4
|
+
interface DefaultTheme extends Theme {
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
declare module '@mui/material/styles' {
|
|
8
|
+
interface Theme {
|
|
9
|
+
sizes: Sizes;
|
|
10
|
+
}
|
|
11
|
+
interface ThemeOptions {
|
|
12
|
+
sizes: Sizes;
|
|
13
|
+
}
|
|
14
|
+
interface Sizes {
|
|
15
|
+
sideMenu: {
|
|
16
|
+
width: number;
|
|
17
|
+
itemHeight: number;
|
|
18
|
+
logoHeight: number;
|
|
19
|
+
paddingTop: number;
|
|
20
|
+
marginBottom: number;
|
|
21
|
+
};
|
|
22
|
+
hex: number;
|
|
23
|
+
hex_node: number;
|
|
24
|
+
hex_event: number;
|
|
25
|
+
hex_service: number;
|
|
26
|
+
hex_structure: number;
|
|
27
|
+
header: {
|
|
28
|
+
iconTray: number;
|
|
29
|
+
height: number;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
interface Palette {
|
|
33
|
+
greyscale: Palette['primary'];
|
|
34
|
+
redscale: Palette['primary'];
|
|
35
|
+
orangescale: Palette['primary'];
|
|
36
|
+
goldscale: Palette['primary'];
|
|
37
|
+
yellowscale: Palette['primary'];
|
|
38
|
+
purplescale: Palette['primary'];
|
|
39
|
+
green1scale: Palette['primary'];
|
|
40
|
+
green2scale: Palette['primary'];
|
|
41
|
+
green3scale: Palette['primary'];
|
|
42
|
+
blue1scale: Palette['primary'];
|
|
43
|
+
blue2scale: Palette['primary'];
|
|
44
|
+
pending: Palette['primary'];
|
|
45
|
+
score: ScorePaletteColorOptions;
|
|
46
|
+
invoiceAnalysis: InvoiceAnalysisPaletteColorOptions;
|
|
47
|
+
status: StatusPaletteColorOptions;
|
|
48
|
+
invoiceState: InvoiceStatesPaletteColorOptions;
|
|
49
|
+
reconcilationState: RecosStatesPaletteColorOptions;
|
|
50
|
+
trends: TrendsPaletteColorOptions;
|
|
51
|
+
uploader: UploaderPaletteColorOptions;
|
|
52
|
+
snackbar: SnackbarPaletteColorOptions;
|
|
53
|
+
notificationStatus: NotificationPaletteColorOptions;
|
|
54
|
+
statistics: StatisticsPalleteColorOptions;
|
|
55
|
+
typography: TypographyPalleteColorOptions;
|
|
56
|
+
priority: PriorityPalleteColorOptions;
|
|
57
|
+
colors: ColorsPaletteColorOptions;
|
|
58
|
+
}
|
|
59
|
+
interface PaletteOptions {
|
|
60
|
+
greyscale: PaletteOptions['primary'];
|
|
61
|
+
redscale: PaletteOptions['primary'];
|
|
62
|
+
orangescale: PaletteOptions['primary'];
|
|
63
|
+
goldscale: PaletteOptions['primary'];
|
|
64
|
+
yellowscale: PaletteOptions['primary'];
|
|
65
|
+
purplescale: PaletteOptions['primary'];
|
|
66
|
+
green1scale: PaletteOptions['primary'];
|
|
67
|
+
green2scale: PaletteOptions['primary'];
|
|
68
|
+
green3scale: PaletteOptions['primary'];
|
|
69
|
+
blue1scale: PaletteOptions['primary'];
|
|
70
|
+
blue2scale: PaletteOptions['primary'];
|
|
71
|
+
pending: PaletteOptions['primary'];
|
|
72
|
+
score: ScorePaletteColorOptions;
|
|
73
|
+
invoiceAnalysis: InvoiceAnalysisPaletteColorOptions;
|
|
74
|
+
trends: TrendsPaletteColorOptions;
|
|
75
|
+
uploader: UploaderPaletteColorOptions;
|
|
76
|
+
status: StatusPaletteColorOptions;
|
|
77
|
+
invoiceState: InvoiceStatesPaletteColorOptions;
|
|
78
|
+
reconcilationState: RecosStatesPaletteColorOptions;
|
|
79
|
+
snackbar: SnackbarPaletteColorOptions;
|
|
80
|
+
notificationStatus: NotificationPaletteColorOptions;
|
|
81
|
+
statistics: StatisticsPalleteColorOptions;
|
|
82
|
+
typography: TypographyPalleteColorOptions;
|
|
83
|
+
priority: PriorityPalleteColorOptions;
|
|
84
|
+
colors: ColorsPaletteColorOptions;
|
|
85
|
+
}
|
|
86
|
+
interface ColorsPaletteColorOptions {
|
|
87
|
+
red: string;
|
|
88
|
+
lightRed: string;
|
|
89
|
+
orange: string;
|
|
90
|
+
lightOrange: string;
|
|
91
|
+
orangeHover: string;
|
|
92
|
+
orangeFocused: string;
|
|
93
|
+
gold: string;
|
|
94
|
+
lightGold: string;
|
|
95
|
+
yellow: string;
|
|
96
|
+
lightYellow: string;
|
|
97
|
+
yellowHover: string;
|
|
98
|
+
yellowFocused: string;
|
|
99
|
+
green1: string;
|
|
100
|
+
lightGreen1: string;
|
|
101
|
+
green2: string;
|
|
102
|
+
lightGreen2: string;
|
|
103
|
+
green2Hover: string;
|
|
104
|
+
green2Focused: string;
|
|
105
|
+
green3: string;
|
|
106
|
+
blue: string;
|
|
107
|
+
lightBlue: string;
|
|
108
|
+
blueHover: string;
|
|
109
|
+
blueFocused: string;
|
|
110
|
+
blue1: string;
|
|
111
|
+
lightBlue1: string;
|
|
112
|
+
blue1Hover: string;
|
|
113
|
+
blue1Focused: string;
|
|
114
|
+
purple: string;
|
|
115
|
+
lightPurple: string;
|
|
116
|
+
}
|
|
117
|
+
interface PriorityPalleteColorOptions {
|
|
118
|
+
critical: string;
|
|
119
|
+
high: string;
|
|
120
|
+
low: string;
|
|
121
|
+
medium: string;
|
|
122
|
+
}
|
|
123
|
+
interface UploaderPaletteColorOptions {
|
|
124
|
+
processing: {
|
|
125
|
+
border: string;
|
|
126
|
+
bg: string;
|
|
127
|
+
};
|
|
128
|
+
pause: {
|
|
129
|
+
border: string;
|
|
130
|
+
bg: string;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
interface TrendsPaletteColorOptions {
|
|
134
|
+
positive: string;
|
|
135
|
+
negative: string;
|
|
136
|
+
critical: string;
|
|
137
|
+
percent: string;
|
|
138
|
+
sum: string;
|
|
139
|
+
}
|
|
140
|
+
interface TypographyPalleteColorOptions {
|
|
141
|
+
title: string;
|
|
142
|
+
delete: string;
|
|
143
|
+
}
|
|
144
|
+
interface ScorePaletteColorOptions {
|
|
145
|
+
excellent: string;
|
|
146
|
+
high: string;
|
|
147
|
+
medium: string;
|
|
148
|
+
low: string;
|
|
149
|
+
bad: string;
|
|
150
|
+
}
|
|
151
|
+
interface TypographyPalleteColorOptions {
|
|
152
|
+
title: string;
|
|
153
|
+
delete: string;
|
|
154
|
+
}
|
|
155
|
+
interface StatisticsPalleteColorOptions {
|
|
156
|
+
value: string;
|
|
157
|
+
label: string;
|
|
158
|
+
}
|
|
159
|
+
interface InvoiceAnalysisPaletteColorOptions {
|
|
160
|
+
underCharges: string;
|
|
161
|
+
overCharges: string;
|
|
162
|
+
matching: string;
|
|
163
|
+
invalid: string;
|
|
164
|
+
}
|
|
165
|
+
interface StatusPaletteColorOptions {
|
|
166
|
+
active: StatusColorOption;
|
|
167
|
+
approve: StatusColorOption;
|
|
168
|
+
challenge: StatusColorOption;
|
|
169
|
+
challenged: StatusColorOption;
|
|
170
|
+
declined: StatusColorOption;
|
|
171
|
+
discrepancy: StatusColorOption;
|
|
172
|
+
duplicate: StatusColorOption;
|
|
173
|
+
duplicated: StatusColorOption;
|
|
174
|
+
gold: StatusColorOption;
|
|
175
|
+
in_progress: StatusColorOption;
|
|
176
|
+
in_review: StatusColorOption;
|
|
177
|
+
no_pricing: StatusColorOption;
|
|
178
|
+
pending: StatusColorOption;
|
|
179
|
+
}
|
|
180
|
+
interface InvoiceStatesPaletteColorOptions {
|
|
181
|
+
approved: StatusColorOption;
|
|
182
|
+
created: StatusColorOption;
|
|
183
|
+
declined: StatusColorOption;
|
|
184
|
+
in_dispute: StatusColorOption;
|
|
185
|
+
in_progress: StatusColorOption;
|
|
186
|
+
paid: StatusColorOption;
|
|
187
|
+
closed: StatusColorOption;
|
|
188
|
+
}
|
|
189
|
+
interface RecosStatesPaletteColorOptions {
|
|
190
|
+
created: StatusColorOption;
|
|
191
|
+
in_progress: StatusColorOption;
|
|
192
|
+
approved: StatusColorOption;
|
|
193
|
+
declined: StatusColorOption;
|
|
194
|
+
refunded: StatusColorOption;
|
|
195
|
+
closed: StatusColorOption;
|
|
196
|
+
}
|
|
197
|
+
interface SnackbarPaletteColorOptions {
|
|
198
|
+
info: SnackbarColorOption;
|
|
199
|
+
warn: SnackbarColorOption;
|
|
200
|
+
error: SnackbarColorOption;
|
|
201
|
+
success: SnackbarColorOption;
|
|
202
|
+
critical: SnackbarColorOption;
|
|
203
|
+
silent: SnackbarColorOption;
|
|
204
|
+
alert: SnackbarColorOption;
|
|
205
|
+
}
|
|
206
|
+
interface StatisticsPalleteColorOptions {
|
|
207
|
+
value: string;
|
|
208
|
+
label: string;
|
|
209
|
+
}
|
|
210
|
+
interface NotificationPaletteColorOptions {
|
|
211
|
+
unread: string;
|
|
212
|
+
}
|
|
213
|
+
interface StatusColorOption {
|
|
214
|
+
border: string;
|
|
215
|
+
background: string;
|
|
216
|
+
}
|
|
217
|
+
interface SnackbarColorOption {
|
|
218
|
+
border: string;
|
|
219
|
+
icon: string;
|
|
220
|
+
}
|
|
221
|
+
interface TypographyVariants {
|
|
222
|
+
table: React.CSSProperties;
|
|
223
|
+
table2: React.CSSProperties;
|
|
224
|
+
overLineCaption: React.CSSProperties;
|
|
225
|
+
link: React.CSSProperties;
|
|
226
|
+
}
|
|
227
|
+
interface TypographyVariantsOptions {
|
|
228
|
+
table: React.CSSProperties;
|
|
229
|
+
table2: React.CSSProperties;
|
|
230
|
+
overLineCaption: React.CSSProperties;
|
|
231
|
+
link: React.CSSProperties;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
declare module '@mui/material/Typography' {
|
|
235
|
+
interface TypographyPropsVariantOverrides {
|
|
236
|
+
table: true;
|
|
237
|
+
table2: true;
|
|
238
|
+
overLineCaption: true;
|
|
239
|
+
link: true;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
declare module '@mui/material/Button' {
|
|
243
|
+
interface ButtonPropsVariantOverrides {
|
|
244
|
+
primary: true;
|
|
245
|
+
'contained:rounded': true;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
export default function getPageContext(darkMode?: boolean): any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const parseValue: ({ value, structure, onClick }: any) => any;
|
|
3
|
+
export declare const getValueComponentByComponentValue: ({ value, name, title, type, onClick, }: {
|
|
4
|
+
value?: any;
|
|
5
|
+
name?: string | undefined;
|
|
6
|
+
title?: string | undefined;
|
|
7
|
+
type?: any;
|
|
8
|
+
onClick?: any;
|
|
9
|
+
}) => React.JSX.Element | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type EntityStatusType = {
|
|
2
2
|
active: string;
|
|
3
3
|
deleted: string;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type ChargeStateType = {
|
|
6
6
|
approved: string;
|
|
7
7
|
archived: string;
|
|
8
8
|
challenge: string;
|
|
@@ -14,7 +14,7 @@ export declare type ChargeStateType = {
|
|
|
14
14
|
pending: string;
|
|
15
15
|
refunded: string;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type InvoiceStateType = {
|
|
18
18
|
approved: string;
|
|
19
19
|
created: string;
|
|
20
20
|
declined: string;
|
|
@@ -22,7 +22,7 @@ export declare type InvoiceStateType = {
|
|
|
22
22
|
in_progress: string;
|
|
23
23
|
paid: string;
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export type RecoStateType = {
|
|
26
26
|
approved: string;
|
|
27
27
|
closed: string;
|
|
28
28
|
created: string;
|
|
@@ -30,7 +30,7 @@ export declare type RecoStateType = {
|
|
|
30
30
|
in_progress: string;
|
|
31
31
|
refunded: string;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type ScoreType = {
|
|
34
34
|
excellent: string;
|
|
35
35
|
high: string;
|
|
36
36
|
medium: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const isArrayValid: (arr: Array<any>, minLength?: number, maxLength?: number) => boolean;
|
|
2
|
+
export declare const isDateValid: (date: any) => boolean;
|
|
3
|
+
export declare const isObjectValid: (obj: any, isCheckKeys?: boolean) => boolean;
|
|
4
|
+
export declare const isStringValid: (str: string, minLength?: number | null, maxLength?: number | null, isValidateType?: boolean) => boolean;
|
|
5
|
+
export declare const isObjectId: (value: string) => boolean;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"fs": false
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@fixefy/fixefy-ui-components": "^0.0.
|
|
7
|
+
"@fixefy/fixefy-ui-components": "^0.0.14",
|
|
8
8
|
"@mui/material": "^5.14.11",
|
|
9
9
|
"@mui/styled-engine": "^5.14.11",
|
|
10
10
|
"@mui/styles": "^5.14.11",
|
|
@@ -15,22 +15,20 @@
|
|
|
15
15
|
"react-dom": "^18.2.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@rollup/plugin-commonjs": "^25.0.4",
|
|
19
|
-
"@rollup/plugin-json": "^6.0.0",
|
|
20
|
-
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
21
|
-
"@rollup/plugin-typescript": "^11.1.4",
|
|
22
18
|
"@svgr/webpack": "^8.1.0",
|
|
23
19
|
"@types/convert-excel-to-json": "^1.7.2",
|
|
24
20
|
"@types/node": "^20.7.1",
|
|
25
21
|
"@types/nookies": "^2.0.3",
|
|
26
|
-
"@types/react": "^18.2.
|
|
22
|
+
"@types/react": "^18.2.24",
|
|
27
23
|
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
28
24
|
"@typescript-eslint/parser": "^6.7.3",
|
|
29
25
|
"eslint": "^8.50.0",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
26
|
+
"eslint-config-prettier": "^9.0.0",
|
|
27
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
28
|
+
"eslint-plugin-react": "^7.33.2",
|
|
29
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
30
|
+
"prettier": "^3.0.3",
|
|
31
|
+
"typescript": "^5.2.2"
|
|
34
32
|
},
|
|
35
33
|
"license": "MIT",
|
|
36
34
|
"name": "@fixefy/fixefy-ui-utils",
|
|
@@ -39,19 +37,16 @@
|
|
|
39
37
|
"url": "https://github.com/Fixefy/fixefy-commander.git"
|
|
40
38
|
},
|
|
41
39
|
"scripts": {
|
|
42
|
-
"build": "
|
|
40
|
+
"build": "tsc -p ./tsconfig.cjs.json && tsc -p ./tsconfig.es.json && tsc -p ./tsconfig.types.json && yarn build:copy",
|
|
41
|
+
"build:copy": "node ../../scripts/copy-files-ex.js",
|
|
43
42
|
"pre_release": "yarn clean && yarn && yarn build",
|
|
44
43
|
"r": "yarn release",
|
|
45
44
|
"release": "yarn pre_release && npm pack && npm publish",
|
|
46
45
|
"release:config": "yarn pre_release && npm publish --userconfig ./.npmrc",
|
|
47
46
|
"clean": "rm -rf build && rm -rf dist-* && yarn clean:node",
|
|
48
47
|
"clean:node": "rm -rf node_modules",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"release_major": "yarn major && yarn release",
|
|
52
|
-
"patch": "yarn version --patch && git push --follow-tags",
|
|
53
|
-
"minor": "yarn version --minor && git push --follow-tags",
|
|
54
|
-
"major": "yarn version --major && git push --follow-tags"
|
|
48
|
+
"lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
|
|
49
|
+
"prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\""
|
|
55
50
|
},
|
|
56
51
|
"engines": {
|
|
57
52
|
"node": "18.17.1"
|
|
@@ -69,5 +64,5 @@
|
|
|
69
64
|
}
|
|
70
65
|
},
|
|
71
66
|
"types": "./dist-types/index.d.ts",
|
|
72
|
-
"version": "0.0.
|
|
67
|
+
"version": "0.0.13"
|
|
73
68
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Maybe } from '@fixefy/fixefy-entities';
|
|
2
|
-
export declare function buildCode(obj: any, level: number | undefined, name: string): string[];
|
|
3
|
-
export declare const copyToClipboard: (str: string) => void;
|
|
4
|
-
export declare function convertToString(input: any): Maybe<string>;
|
|
5
|
-
export declare const determineIconByEvent: (event: {
|
|
6
|
-
type: string;
|
|
7
|
-
}) => string | undefined;
|
|
8
|
-
export declare function formatNumberWithCommas(number: number): string;
|
|
9
|
-
export declare function getNormalizationKeyForEntity(entity_type: string): string;
|
|
10
|
-
export declare const getStringValueByValueType: ({ value, name }: {
|
|
11
|
-
value: any;
|
|
12
|
-
name: string;
|
|
13
|
-
}) => any;
|
|
14
|
-
export declare function getVal(val: any): any;
|
|
15
|
-
export declare const isInServer: () => boolean;
|
|
16
|
-
export declare const isValidTimestamp: (_timestamp: any) => boolean;
|
|
17
|
-
export declare function lineString(level: any, name?: String): string;
|
|
18
|
-
export declare function makeString(len?: number): string;
|
|
19
|
-
export declare const nest: ({ items }: {
|
|
20
|
-
items: Array<any>;
|
|
21
|
-
}) => any[];
|
|
22
|
-
export declare function normalizeTimestamp(timestamp: any, options: any): string;
|
|
23
|
-
export declare function normalizeStringBodyRaw(key: string, body: any): any;
|
|
24
|
-
export declare function titleCase(str?: string): string;
|
|
25
|
-
export declare function toCamelCase(inputArray: Maybe<Array<any>>): string;
|
|
26
|
-
export declare function toCamelCaseString(input: string): string;
|
|
27
|
-
export declare const toCurrency: (input: string | number) => string | number;
|
|
28
|
-
export declare const toInitials: (str: string) => string | undefined;
|
|
29
|
-
export declare function toPascalCase(string: string, title?: boolean): string;
|
|
30
|
-
export declare function toWords(input: Maybe<string>): RegExpMatchArray | null | undefined;
|
|
31
|
-
export declare function trimRuleCode(input: any): string;
|
|
32
|
-
export declare const useStatePromisify: (_state: any) => any[];
|
|
33
|
-
export declare const getScoreColor: (value: number) => "bad" | "low" | "medium" | "high" | "excellent";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Maybe } from '@fixefy/fixefy-entities';
|
|
2
|
-
export declare function buildCode(obj: any, level: number | undefined, name: string): string[];
|
|
3
|
-
export declare const copyToClipboard: (str: string) => void;
|
|
4
|
-
export declare function convertToString(input: any): Maybe<string>;
|
|
5
|
-
export declare const determineIconByEvent: (event: {
|
|
6
|
-
type: string;
|
|
7
|
-
}) => string | undefined;
|
|
8
|
-
export declare function formatNumberWithCommas(number: number): string;
|
|
9
|
-
export declare function getNormalizationKeyForEntity(entity_type: string): string;
|
|
10
|
-
export declare const getStringValueByValueType: ({ value, name }: {
|
|
11
|
-
value: any;
|
|
12
|
-
name: string;
|
|
13
|
-
}) => any;
|
|
14
|
-
export declare function getVal(val: any): any;
|
|
15
|
-
export declare const isInServer: () => boolean;
|
|
16
|
-
export declare const isValidTimestamp: (_timestamp: any) => boolean;
|
|
17
|
-
export declare function lineString(level: any, name?: String): string;
|
|
18
|
-
export declare function makeString(len?: number): string;
|
|
19
|
-
export declare const nest: ({ items }: {
|
|
20
|
-
items: Array<any>;
|
|
21
|
-
}) => any[];
|
|
22
|
-
export declare function normalizeTimestamp(timestamp: any, options: any): string;
|
|
23
|
-
export declare function normalizeStringBodyRaw(key: string, body: any): any;
|
|
24
|
-
export declare function titleCase(str?: string): string;
|
|
25
|
-
export declare function toCamelCase(inputArray: Maybe<Array<any>>): string;
|
|
26
|
-
export declare function toCamelCaseString(input: string): string;
|
|
27
|
-
export declare const toCurrency: (input: string | number) => string | number;
|
|
28
|
-
export declare const toInitials: (str: string) => string | undefined;
|
|
29
|
-
export declare function toPascalCase(string: string, title?: boolean): string;
|
|
30
|
-
export declare function toWords(input: Maybe<string>): RegExpMatchArray | null | undefined;
|
|
31
|
-
export declare function trimRuleCode(input: any): string;
|
|
32
|
-
export declare const useStatePromisify: (_state: any) => any[];
|
|
33
|
-
export declare const getScoreColor: (value: number) => "bad" | "low" | "medium" | "high" | "excellent";
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare type EntityStatusType = {
|
|
2
|
-
active: string;
|
|
3
|
-
deleted: string;
|
|
4
|
-
};
|
|
5
|
-
export declare type ChargeStateType = {
|
|
6
|
-
approved: string;
|
|
7
|
-
archived: string;
|
|
8
|
-
challenge: string;
|
|
9
|
-
closed: string;
|
|
10
|
-
discrepancy: string;
|
|
11
|
-
duplicated: string;
|
|
12
|
-
in_dispute: string;
|
|
13
|
-
no_pricing: string;
|
|
14
|
-
pending: string;
|
|
15
|
-
refunded: string;
|
|
16
|
-
};
|
|
17
|
-
export declare type InvoiceStateType = {
|
|
18
|
-
approved: string;
|
|
19
|
-
created: string;
|
|
20
|
-
declined: string;
|
|
21
|
-
in_dispute: string;
|
|
22
|
-
in_progress: string;
|
|
23
|
-
paid: string;
|
|
24
|
-
};
|
|
25
|
-
export declare type RecoStateType = {
|
|
26
|
-
approved: string;
|
|
27
|
-
closed: string;
|
|
28
|
-
created: string;
|
|
29
|
-
declined: string;
|
|
30
|
-
in_progress: string;
|
|
31
|
-
refunded: string;
|
|
32
|
-
};
|
|
33
|
-
export declare type ScoreType = {
|
|
34
|
-
excellent: string;
|
|
35
|
-
high: string;
|
|
36
|
-
medium: string;
|
|
37
|
-
low: string;
|
|
38
|
-
bad: string;
|
|
39
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|