ish-ui 1.0.2
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/.eslintrc.json +39 -0
- package/.gitattributes +3 -0
- package/.github/workflows/release-package.yml +33 -0
- package/.prettierrc +5 -0
- package/README.md +80 -0
- package/assets/fonts/inter/Inter-Italic.var.woff2 +0 -0
- package/assets/fonts/inter/Inter-Roman.var.woff2 +0 -0
- package/assets/fonts/inter/LICENSE.txt +92 -0
- package/assets/fonts/inter/index.d.ts +10 -0
- package/assets/fonts/inter/inter.scss +17 -0
- package/package.json +108 -0
- package/src/actions/FieldProcessing.ts +21 -0
- package/src/actions/index.ts +10 -0
- package/src/appBar/AppBarHelpMenu.tsx +139 -0
- package/src/appBar/index.ts +9 -0
- package/src/buttons/AddButton.tsx +30 -0
- package/src/buttons/TimetableButton.tsx +19 -0
- package/src/buttons/index.ts +10 -0
- package/src/colorPicker/ColorPicker.tsx +223 -0
- package/src/colorPicker/index.ts +9 -0
- package/src/dialog/BrowserWarning.tsx +24 -0
- package/src/dialog/confirm/ConfirmBase.tsx +59 -0
- package/src/dialog/index.ts +11 -0
- package/src/dialog/message/Message.tsx +140 -0
- package/src/documents/DocumentIconsChooser.tsx +69 -0
- package/src/documents/index.ts +10 -0
- package/src/documents/utils/index.tsx +71 -0
- package/src/dynamicSizeList/DynamicSizeList.tsx +208 -0
- package/src/dynamicSizeList/index.ts +9 -0
- package/src/fieldMessage/ErrorMessage.tsx +28 -0
- package/src/fieldMessage/WarningMessage.tsx +28 -0
- package/src/fieldMessage/index.ts +11 -0
- package/src/fieldMessage/styles.ts +21 -0
- package/src/fileUploader/FileUploaderDialog.tsx +158 -0
- package/src/fileUploader/index.ts +9 -0
- package/src/formFields/CheckboxField.tsx +90 -0
- package/src/formFields/CodeEditorField.tsx +103 -0
- package/src/formFields/ColoredCheckBox.tsx +74 -0
- package/src/formFields/DateTimeField.tsx +61 -0
- package/src/formFields/EditInPlaceDateTimeField.tsx +285 -0
- package/src/formFields/EditInPlaceDurationField.tsx +79 -0
- package/src/formFields/EditInPlaceField.tsx +131 -0
- package/src/formFields/EditInPlaceFieldBase.tsx +241 -0
- package/src/formFields/EditInPlaceFileField.tsx +67 -0
- package/src/formFields/EditInPlaceMoneyField.tsx +64 -0
- package/src/formFields/EditInPlacePhoneField.tsx +97 -0
- package/src/formFields/EditInPlaceSearchSelect.tsx +562 -0
- package/src/formFields/FieldAdornments.tsx +70 -0
- package/src/formFields/FilePreview.tsx +149 -0
- package/src/formFields/FormRadioButtons.tsx +62 -0
- package/src/formFields/SelectCustomComponents.tsx +228 -0
- package/src/formFields/Switch.tsx +146 -0
- package/src/formFields/TextField.tsx +60 -0
- package/src/formFields/UneditableBase.tsx +101 -0
- package/src/formFields/index.ts +27 -0
- package/src/index.ts +26 -0
- package/src/layout/InfoPill.tsx +36 -0
- package/src/layout/index.ts +10 -0
- package/src/layout/resizable/ResizableWrapper.tsx +87 -0
- package/src/markdownEditor/HtmlEditor.tsx +44 -0
- package/src/markdownEditor/WysiwygEditor.tsx +137 -0
- package/src/markdownEditor/index.ts +12 -0
- package/src/markdownEditor/style.ts +188 -0
- package/src/markdownEditor/utils/index.ts +48 -0
- package/src/model/AppBar.ts +20 -0
- package/src/model/CommomObjects.ts +8 -0
- package/src/model/CommonFunctions.ts +20 -0
- package/src/model/Confirm.ts +27 -0
- package/src/model/Fields.ts +254 -0
- package/src/model/NestedEntity.ts +14 -0
- package/src/model/Theme.ts +42 -0
- package/src/model/index.ts +16 -0
- package/src/styles/GlobalStylesProvider.tsx +520 -0
- package/src/styles/StylesProviderCustom.tsx +8 -0
- package/src/styles/animateStyles.ts +94 -0
- package/src/styles/bootstrap.ts +503 -0
- package/src/styles/hooks.ts +44 -0
- package/src/styles/index.ts +18 -0
- package/src/styles/makeStyles.ts +21 -0
- package/src/styles/mixins/common.ts +40 -0
- package/src/styles/mixins/keyframes.ts +16 -0
- package/src/styles/mixins/prefixer.ts +21 -0
- package/src/tagsInput/AddTagMenu.tsx +74 -0
- package/src/tagsInput/AddTagMenuItem.tsx +50 -0
- package/src/tagsInput/TagInputList.tsx +428 -0
- package/src/tagsInput/index.ts +4 -0
- package/src/themes/appTheme.ts +324 -0
- package/src/themes/index.ts +10 -0
- package/src/themes/ishTheme.ts +401 -0
- package/src/timetable/datePeriodFilter/DayPeriodIcons.tsx +95 -0
- package/src/timetable/datePeriodFilter/index.ts +10 -0
- package/src/timetable/index.ts +11 -0
- package/src/timetable/miniCalendar/CalendarDay.tsx +109 -0
- package/src/timetable/miniCalendar/CalendarHeader.tsx +37 -0
- package/src/timetable/miniCalendar/CalendarWeekPanel.tsx +35 -0
- package/src/timetable/miniCalendar/WeekDay.tsx +49 -0
- package/src/timetable/miniCalendar/index.ts +13 -0
- package/src/utils/DOM/Links.ts +17 -0
- package/src/utils/DOM/getCaretCoordinates.ts +122 -0
- package/src/utils/DOM/getOS.ts +32 -0
- package/src/utils/DOM/index.ts +34 -0
- package/src/utils/dates/datesNormalizing.ts +4 -0
- package/src/utils/dates/format.ts +52 -0
- package/src/utils/dates/formatRelative.ts +22 -0
- package/src/utils/dates/formatString.ts +233 -0
- package/src/utils/dates/formatTimezone.ts +37 -0
- package/src/utils/dates/index.ts +15 -0
- package/src/utils/dates/timetable.ts +46 -0
- package/src/utils/events/index.ts +8 -0
- package/src/utils/fields/index.ts +23 -0
- package/src/utils/formatting/PhoneMasks.ts +320 -0
- package/src/utils/formatting/index.tsx +20 -0
- package/src/utils/hooks/index.ts +19 -0
- package/src/utils/index.ts +15 -0
- package/src/utils/numbers/decimalCalculation.ts +26 -0
- package/src/utils/numbers/index.ts +11 -0
- package/src/utils/numbers/numbersNormalizing.ts +52 -0
- package/src/utils/stubs/index.tsx +12 -0
- package/src/utils/tags/index.ts +53 -0
- package/tools/webpack/webpack.aliases.js +13 -0
- package/tools/webpack/webpack.config.dev.js +29 -0
- package/tools/webpack/webpack.config.prod.js +36 -0
- package/tools/webpack/webpack.helpers.js +26 -0
- package/tools/webpack/webpack.plugins.js +15 -0
- package/tools/webpack/webpack.rules.js +51 -0
- package/tsconfig.json +24 -0
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { grey, yellow } from '@mui/material/colors';
|
|
2
|
+
import { alpha, darken } from '@mui/material/styles';
|
|
3
|
+
import { ThemeValues, AppTheme } from '@src/model';
|
|
4
|
+
|
|
5
|
+
export const theme: { [K in ThemeValues]: Partial<AppTheme> } = {
|
|
6
|
+
default: {
|
|
7
|
+
heading: {
|
|
8
|
+
color: '#4b6390'
|
|
9
|
+
},
|
|
10
|
+
blog: {
|
|
11
|
+
root: {
|
|
12
|
+
backgroundColor: yellow[100]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
share: {
|
|
16
|
+
exportContainer: {
|
|
17
|
+
backgroundColor: '#302A22'
|
|
18
|
+
},
|
|
19
|
+
closeButton: {
|
|
20
|
+
color: '#f7941d'
|
|
21
|
+
},
|
|
22
|
+
shareButton: {
|
|
23
|
+
color: '#302A22',
|
|
24
|
+
backgroundColor: '#fff',
|
|
25
|
+
backgroundColorHover: alpha('#fff', 0.9)
|
|
26
|
+
},
|
|
27
|
+
color: {
|
|
28
|
+
headerText: '#fff',
|
|
29
|
+
itemText: 'rgba(255,255,255,0.6)',
|
|
30
|
+
selectedItemText: 'rgba(255,255,255,1)',
|
|
31
|
+
customLabel: 'rgba(255,255,255,.5)'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
statistics: {
|
|
35
|
+
coloredHeaderText: {
|
|
36
|
+
color: '#f7941d'
|
|
37
|
+
},
|
|
38
|
+
enrolmentText: {
|
|
39
|
+
color: '#73cba7',
|
|
40
|
+
strokeColor: '#73cba7'
|
|
41
|
+
},
|
|
42
|
+
revenueText: {
|
|
43
|
+
color: '#ffd876',
|
|
44
|
+
strokeColor: '#ffd876'
|
|
45
|
+
},
|
|
46
|
+
rightColumn: {
|
|
47
|
+
color: alpha('rgba(0, 0, 0, 0.87)', 0.4)
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
appBar: {
|
|
51
|
+
header: {
|
|
52
|
+
background: '#fbf9f0',
|
|
53
|
+
color: '#222',
|
|
54
|
+
},
|
|
55
|
+
headerAlternate: {
|
|
56
|
+
background: '#fff',
|
|
57
|
+
color: '#222',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
appBarButton: {
|
|
61
|
+
close: {
|
|
62
|
+
color: '#f7941d',
|
|
63
|
+
},
|
|
64
|
+
helpMenu: {
|
|
65
|
+
color: '#f7941d',
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
tabList: {
|
|
69
|
+
listContainer: {
|
|
70
|
+
backgroundColor: '#4b6390'
|
|
71
|
+
},
|
|
72
|
+
listItemRoot: {
|
|
73
|
+
color: '#fff'
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
table: {
|
|
77
|
+
contrastRow: {
|
|
78
|
+
main: '#f8f8f8',
|
|
79
|
+
light: '#f4f3ec'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
addButtonColor: {
|
|
83
|
+
color: '#f7941d'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
dark: {
|
|
87
|
+
heading: {
|
|
88
|
+
color: '#9bbeff'
|
|
89
|
+
},
|
|
90
|
+
blog: {
|
|
91
|
+
root: {
|
|
92
|
+
backgroundColor: '#303030'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
share: {
|
|
96
|
+
exportContainer: {
|
|
97
|
+
backgroundColor: '#302A22'
|
|
98
|
+
},
|
|
99
|
+
closeButton: {
|
|
100
|
+
color: '#f7941d'
|
|
101
|
+
},
|
|
102
|
+
shareButton: {
|
|
103
|
+
color: '#302A22',
|
|
104
|
+
backgroundColor: '#fff',
|
|
105
|
+
backgroundColorHover: alpha('#fff', 0.9)
|
|
106
|
+
},
|
|
107
|
+
color: {
|
|
108
|
+
headerText: '#fff',
|
|
109
|
+
itemText: 'rgba(255,255,255,0.6)',
|
|
110
|
+
selectedItemText: 'rgba(255,255,255,1)',
|
|
111
|
+
customLabel: 'rgba(255,255,255,.5)'
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
statistics: {
|
|
115
|
+
coloredHeaderText: {
|
|
116
|
+
color: '#f7941d'
|
|
117
|
+
},
|
|
118
|
+
enrolmentText: {
|
|
119
|
+
color: '#73cba7',
|
|
120
|
+
strokeColor: '#73cba7'
|
|
121
|
+
},
|
|
122
|
+
revenueText: {
|
|
123
|
+
color: '#ffd876',
|
|
124
|
+
strokeColor: '#ffd876'
|
|
125
|
+
},
|
|
126
|
+
rightColumn: {
|
|
127
|
+
color: alpha('rgba(255, 255, 255, 0.87)', 0.4)
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
appBar: {
|
|
131
|
+
header: {
|
|
132
|
+
background: '#1b1b1b',
|
|
133
|
+
color: '#fff',
|
|
134
|
+
},
|
|
135
|
+
headerAlternate: {
|
|
136
|
+
background: '#f7941d',
|
|
137
|
+
color: '#fff',
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
appBarButton: {
|
|
141
|
+
close: {
|
|
142
|
+
color: 'white'
|
|
143
|
+
},
|
|
144
|
+
helpMenu: {
|
|
145
|
+
color: '#fff'
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
tabList: {
|
|
149
|
+
listContainer: {
|
|
150
|
+
backgroundColor: '#302A22'
|
|
151
|
+
},
|
|
152
|
+
listItemRoot: {
|
|
153
|
+
color: '#fff'
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
table: {
|
|
157
|
+
contrastRow: {
|
|
158
|
+
main: '#696969',
|
|
159
|
+
light: '#696969bf'
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
addButtonColor: {
|
|
163
|
+
color: darken(grey[400], 0.1)
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
monochrome: {
|
|
167
|
+
heading: {
|
|
168
|
+
color: '#000'
|
|
169
|
+
},
|
|
170
|
+
blog: {
|
|
171
|
+
root: {
|
|
172
|
+
backgroundColor: '#eee'
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
share: {
|
|
176
|
+
exportContainer: {
|
|
177
|
+
backgroundColor: '#222222'
|
|
178
|
+
},
|
|
179
|
+
closeButton: {
|
|
180
|
+
color: '#eaeaea'
|
|
181
|
+
},
|
|
182
|
+
shareButton: {
|
|
183
|
+
color: '#fff',
|
|
184
|
+
backgroundColor: '#3e8ef7',
|
|
185
|
+
backgroundColorHover: alpha('#3e8ef7', 0.9)
|
|
186
|
+
},
|
|
187
|
+
color: {
|
|
188
|
+
headerText: '#fff',
|
|
189
|
+
itemText: 'rgba(255,255,255,0.6)',
|
|
190
|
+
selectedItemText: 'rgba(255,255,255,1)',
|
|
191
|
+
customLabel: 'rgba(255,255,255,.5)'
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
statistics: {
|
|
195
|
+
coloredHeaderText: {
|
|
196
|
+
color: '#222222'
|
|
197
|
+
},
|
|
198
|
+
enrolmentText: {
|
|
199
|
+
color: '#73cba7',
|
|
200
|
+
strokeColor: '#73cba7'
|
|
201
|
+
},
|
|
202
|
+
revenueText: {
|
|
203
|
+
color: '#ffd876',
|
|
204
|
+
strokeColor: '#ffd876'
|
|
205
|
+
},
|
|
206
|
+
rightColumn: {
|
|
207
|
+
color: alpha('#222222', 0.4)
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
appBar: {
|
|
211
|
+
header: {
|
|
212
|
+
background: '#fff',
|
|
213
|
+
color: '#000',
|
|
214
|
+
},
|
|
215
|
+
headerAlternate: {
|
|
216
|
+
background: '#f4f4f4',
|
|
217
|
+
color: '#000',
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
appBarButton: {
|
|
221
|
+
close: {
|
|
222
|
+
color: '#222222'
|
|
223
|
+
},
|
|
224
|
+
helpMenu: {
|
|
225
|
+
color: '#222222'
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
tabList: {
|
|
229
|
+
listContainer: {
|
|
230
|
+
backgroundColor: '#e3e3e3'
|
|
231
|
+
},
|
|
232
|
+
listItemRoot: {
|
|
233
|
+
color: '#000',
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
table: {
|
|
237
|
+
contrastRow: {
|
|
238
|
+
main: '#f8f8f8',
|
|
239
|
+
light: '#f4f3ec'
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
addButtonColor: {
|
|
243
|
+
color: '#000'
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
highcontrast: {
|
|
247
|
+
heading: {
|
|
248
|
+
color: '#424242'
|
|
249
|
+
},
|
|
250
|
+
blog: {
|
|
251
|
+
root: {
|
|
252
|
+
backgroundColor: '#fff'
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
share: {
|
|
256
|
+
exportContainer: {
|
|
257
|
+
backgroundColor: '#eee'
|
|
258
|
+
},
|
|
259
|
+
closeButton: {
|
|
260
|
+
color: '#111111'
|
|
261
|
+
},
|
|
262
|
+
shareButton: {
|
|
263
|
+
color: '#fff',
|
|
264
|
+
backgroundColor: '#111111',
|
|
265
|
+
backgroundColorHover: alpha('#fff', 0.9)
|
|
266
|
+
},
|
|
267
|
+
color: {
|
|
268
|
+
headerText: '#000',
|
|
269
|
+
itemText: 'rgba(17,17,17,0.6)',
|
|
270
|
+
selectedItemText: 'rgba(17,17,17,1)',
|
|
271
|
+
customLabel: 'rgba(17,17,17,.5)'
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
statistics: {
|
|
275
|
+
coloredHeaderText: {
|
|
276
|
+
color: '#111111'
|
|
277
|
+
},
|
|
278
|
+
enrolmentText: {
|
|
279
|
+
color: '#111111'
|
|
280
|
+
},
|
|
281
|
+
revenueText: {
|
|
282
|
+
color: '#111111'
|
|
283
|
+
},
|
|
284
|
+
rightColumn: {
|
|
285
|
+
color: '#111111'
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
appBar: {
|
|
289
|
+
header: {
|
|
290
|
+
background: '#f2f2f2',
|
|
291
|
+
color: '#222',
|
|
292
|
+
},
|
|
293
|
+
headerAlternate: {
|
|
294
|
+
background: '#111',
|
|
295
|
+
color: '#fff',
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
appBarButton: {
|
|
299
|
+
close: {
|
|
300
|
+
color: '#222'
|
|
301
|
+
},
|
|
302
|
+
helpMenu: {
|
|
303
|
+
color: '#222'
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
tabList: {
|
|
307
|
+
listContainer: {
|
|
308
|
+
backgroundColor: '#292929'
|
|
309
|
+
},
|
|
310
|
+
listItemRoot: {
|
|
311
|
+
color: '#fff'
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
table: {
|
|
315
|
+
contrastRow: {
|
|
316
|
+
main: '#f8f8f8',
|
|
317
|
+
light: '#f4f3ec'
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
addButtonColor: {
|
|
321
|
+
color: '#111111'
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright ish group pty ltd 2023.
|
|
3
|
+
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
|
|
5
|
+
*
|
|
6
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export * from './ishTheme';
|
|
10
|
+
export * from './appTheme';
|