@fixefy/fixefy-ui-utils 0.0.1

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.
@@ -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;
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "author": "Fixefy Inc Team",
3
+ "browser": {
4
+ "fs": false
5
+ },
6
+ "dependencies": {
7
+ "@mui/material": "^5.14.11",
8
+ "@mui/styled-engine": "^5.14.11",
9
+ "@mui/styles": "^5.14.11",
10
+ "react": "^18.2.0",
11
+ "react-dom": "^18.2.0"
12
+ },
13
+ "devDependencies": {
14
+ "@svgr/webpack": "^8.1.0",
15
+ "@types/node": "^20.7.1",
16
+ "@types/react": "^18.2.23",
17
+ "@typescript-eslint/eslint-plugin": "^6.7.3",
18
+ "@typescript-eslint/parser": "^6.7.3",
19
+ "eslint": "^8.50.0"
20
+ },
21
+ "license": "MIT",
22
+ "name": "@fixefy/fixefy-ui-utils",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/Fixefy/fixefy-commander.git"
26
+ },
27
+ "scripts": {
28
+ "build": "tsc -p ./tsconfig.cjs.json && tsc -p ./tsconfig.es.json && tsc -p ./tsconfig.types.json && yarn build:copy",
29
+ "build:copy": "node ../../scripts/copy-files-ex.js",
30
+ "pre_release": "yarn clean && yarn && yarn build",
31
+ "r": "yarn release",
32
+ "release": "yarn pre_release && npm pack && npm publish",
33
+ "release:config": "yarn pre_release && npm publish --userconfig ./.npmrc",
34
+ "clean": "rm -rf build && rm -rf dist-* && yarn clean:node",
35
+ "clean:node": "rm -rf node_modules",
36
+ "release_patch": "yarn patch && yarn release",
37
+ "release_minor": "yarn minor && yarn release",
38
+ "release_major": "yarn major && yarn release",
39
+ "patch": "yarn version --patch && git push --follow-tags",
40
+ "minor": "yarn version --minor && git push --follow-tags",
41
+ "major": "yarn version --major && git push --follow-tags"
42
+ },
43
+ "engines": {
44
+ "node": "18.17.1"
45
+ },
46
+ "files": [
47
+ "dist-*/**/*"
48
+ ],
49
+ "private": false,
50
+ "main": "./dist-cjs/index.js",
51
+ "module": "./dist-es/index.js",
52
+ "exports": {
53
+ ".": {
54
+ "import": "./dist-es/index.js",
55
+ "require": "./dist-cjs/index.js"
56
+ }
57
+ },
58
+ "types": "./dist-types/index.d.ts",
59
+ "version": "0.0.1"
60
+ }