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.
Files changed (126) hide show
  1. package/.eslintrc.json +39 -0
  2. package/.gitattributes +3 -0
  3. package/.github/workflows/release-package.yml +33 -0
  4. package/.prettierrc +5 -0
  5. package/README.md +80 -0
  6. package/assets/fonts/inter/Inter-Italic.var.woff2 +0 -0
  7. package/assets/fonts/inter/Inter-Roman.var.woff2 +0 -0
  8. package/assets/fonts/inter/LICENSE.txt +92 -0
  9. package/assets/fonts/inter/index.d.ts +10 -0
  10. package/assets/fonts/inter/inter.scss +17 -0
  11. package/package.json +108 -0
  12. package/src/actions/FieldProcessing.ts +21 -0
  13. package/src/actions/index.ts +10 -0
  14. package/src/appBar/AppBarHelpMenu.tsx +139 -0
  15. package/src/appBar/index.ts +9 -0
  16. package/src/buttons/AddButton.tsx +30 -0
  17. package/src/buttons/TimetableButton.tsx +19 -0
  18. package/src/buttons/index.ts +10 -0
  19. package/src/colorPicker/ColorPicker.tsx +223 -0
  20. package/src/colorPicker/index.ts +9 -0
  21. package/src/dialog/BrowserWarning.tsx +24 -0
  22. package/src/dialog/confirm/ConfirmBase.tsx +59 -0
  23. package/src/dialog/index.ts +11 -0
  24. package/src/dialog/message/Message.tsx +140 -0
  25. package/src/documents/DocumentIconsChooser.tsx +69 -0
  26. package/src/documents/index.ts +10 -0
  27. package/src/documents/utils/index.tsx +71 -0
  28. package/src/dynamicSizeList/DynamicSizeList.tsx +208 -0
  29. package/src/dynamicSizeList/index.ts +9 -0
  30. package/src/fieldMessage/ErrorMessage.tsx +28 -0
  31. package/src/fieldMessage/WarningMessage.tsx +28 -0
  32. package/src/fieldMessage/index.ts +11 -0
  33. package/src/fieldMessage/styles.ts +21 -0
  34. package/src/fileUploader/FileUploaderDialog.tsx +158 -0
  35. package/src/fileUploader/index.ts +9 -0
  36. package/src/formFields/CheckboxField.tsx +90 -0
  37. package/src/formFields/CodeEditorField.tsx +103 -0
  38. package/src/formFields/ColoredCheckBox.tsx +74 -0
  39. package/src/formFields/DateTimeField.tsx +61 -0
  40. package/src/formFields/EditInPlaceDateTimeField.tsx +285 -0
  41. package/src/formFields/EditInPlaceDurationField.tsx +79 -0
  42. package/src/formFields/EditInPlaceField.tsx +131 -0
  43. package/src/formFields/EditInPlaceFieldBase.tsx +241 -0
  44. package/src/formFields/EditInPlaceFileField.tsx +67 -0
  45. package/src/formFields/EditInPlaceMoneyField.tsx +64 -0
  46. package/src/formFields/EditInPlacePhoneField.tsx +97 -0
  47. package/src/formFields/EditInPlaceSearchSelect.tsx +562 -0
  48. package/src/formFields/FieldAdornments.tsx +70 -0
  49. package/src/formFields/FilePreview.tsx +149 -0
  50. package/src/formFields/FormRadioButtons.tsx +62 -0
  51. package/src/formFields/SelectCustomComponents.tsx +228 -0
  52. package/src/formFields/Switch.tsx +146 -0
  53. package/src/formFields/TextField.tsx +60 -0
  54. package/src/formFields/UneditableBase.tsx +101 -0
  55. package/src/formFields/index.ts +27 -0
  56. package/src/index.ts +26 -0
  57. package/src/layout/InfoPill.tsx +36 -0
  58. package/src/layout/index.ts +10 -0
  59. package/src/layout/resizable/ResizableWrapper.tsx +87 -0
  60. package/src/markdownEditor/HtmlEditor.tsx +44 -0
  61. package/src/markdownEditor/WysiwygEditor.tsx +137 -0
  62. package/src/markdownEditor/index.ts +12 -0
  63. package/src/markdownEditor/style.ts +188 -0
  64. package/src/markdownEditor/utils/index.ts +48 -0
  65. package/src/model/AppBar.ts +20 -0
  66. package/src/model/CommomObjects.ts +8 -0
  67. package/src/model/CommonFunctions.ts +20 -0
  68. package/src/model/Confirm.ts +27 -0
  69. package/src/model/Fields.ts +254 -0
  70. package/src/model/NestedEntity.ts +14 -0
  71. package/src/model/Theme.ts +42 -0
  72. package/src/model/index.ts +16 -0
  73. package/src/styles/GlobalStylesProvider.tsx +520 -0
  74. package/src/styles/StylesProviderCustom.tsx +8 -0
  75. package/src/styles/animateStyles.ts +94 -0
  76. package/src/styles/bootstrap.ts +503 -0
  77. package/src/styles/hooks.ts +44 -0
  78. package/src/styles/index.ts +18 -0
  79. package/src/styles/makeStyles.ts +21 -0
  80. package/src/styles/mixins/common.ts +40 -0
  81. package/src/styles/mixins/keyframes.ts +16 -0
  82. package/src/styles/mixins/prefixer.ts +21 -0
  83. package/src/tagsInput/AddTagMenu.tsx +74 -0
  84. package/src/tagsInput/AddTagMenuItem.tsx +50 -0
  85. package/src/tagsInput/TagInputList.tsx +428 -0
  86. package/src/tagsInput/index.ts +4 -0
  87. package/src/themes/appTheme.ts +324 -0
  88. package/src/themes/index.ts +10 -0
  89. package/src/themes/ishTheme.ts +401 -0
  90. package/src/timetable/datePeriodFilter/DayPeriodIcons.tsx +95 -0
  91. package/src/timetable/datePeriodFilter/index.ts +10 -0
  92. package/src/timetable/index.ts +11 -0
  93. package/src/timetable/miniCalendar/CalendarDay.tsx +109 -0
  94. package/src/timetable/miniCalendar/CalendarHeader.tsx +37 -0
  95. package/src/timetable/miniCalendar/CalendarWeekPanel.tsx +35 -0
  96. package/src/timetable/miniCalendar/WeekDay.tsx +49 -0
  97. package/src/timetable/miniCalendar/index.ts +13 -0
  98. package/src/utils/DOM/Links.ts +17 -0
  99. package/src/utils/DOM/getCaretCoordinates.ts +122 -0
  100. package/src/utils/DOM/getOS.ts +32 -0
  101. package/src/utils/DOM/index.ts +34 -0
  102. package/src/utils/dates/datesNormalizing.ts +4 -0
  103. package/src/utils/dates/format.ts +52 -0
  104. package/src/utils/dates/formatRelative.ts +22 -0
  105. package/src/utils/dates/formatString.ts +233 -0
  106. package/src/utils/dates/formatTimezone.ts +37 -0
  107. package/src/utils/dates/index.ts +15 -0
  108. package/src/utils/dates/timetable.ts +46 -0
  109. package/src/utils/events/index.ts +8 -0
  110. package/src/utils/fields/index.ts +23 -0
  111. package/src/utils/formatting/PhoneMasks.ts +320 -0
  112. package/src/utils/formatting/index.tsx +20 -0
  113. package/src/utils/hooks/index.ts +19 -0
  114. package/src/utils/index.ts +15 -0
  115. package/src/utils/numbers/decimalCalculation.ts +26 -0
  116. package/src/utils/numbers/index.ts +11 -0
  117. package/src/utils/numbers/numbersNormalizing.ts +52 -0
  118. package/src/utils/stubs/index.tsx +12 -0
  119. package/src/utils/tags/index.ts +53 -0
  120. package/tools/webpack/webpack.aliases.js +13 -0
  121. package/tools/webpack/webpack.config.dev.js +29 -0
  122. package/tools/webpack/webpack.config.prod.js +36 -0
  123. package/tools/webpack/webpack.helpers.js +26 -0
  124. package/tools/webpack/webpack.plugins.js +15 -0
  125. package/tools/webpack/webpack.rules.js +51 -0
  126. package/tsconfig.json +24 -0
@@ -0,0 +1,520 @@
1
+ /*
2
+ * Copyright ish group pty ltd. All rights reserved. https://www.ish.com.au
3
+ * No copying or use of this code is allowed without permission in writing from ish.
4
+ */
5
+
6
+ import * as React from 'react';
7
+ import { alpha, darken } from '@mui/material/styles';
8
+ import createStyles from '@mui/styles/createStyles';
9
+ import withStyles from '@mui/styles/withStyles';
10
+ import { AppTheme } from '@src/model';
11
+ import InterRomanVar from '@assets/fonts/inter/Inter-Roman.var.woff2';
12
+ import InterItalicVar from '@assets/fonts/inter/Inter-Italic.var.woff2';
13
+ import { animateStyles } from './animateStyles';
14
+ import { bootstrap } from './bootstrap';
15
+ import getOS from '@src/utils/DOM/getOS';
16
+
17
+ const customOSScrollbars = getOS() === 'Windows'
18
+ ? {
19
+ '::-webkit-scrollbar': {
20
+ width: 8,
21
+ height: 8,
22
+ backgroundColor: 'rgba(0,0,0,0)',
23
+ '-webkit-border-radius': '100px'
24
+ },
25
+
26
+ '::-webkit-scrollbar:hover': {
27
+ backgroundColor: 'rgba(0, 0, 0, 0.09)'
28
+ },
29
+
30
+ '::-webkit-scrollbar-thumb': {
31
+ background: 'rgba(0,0,0,0.5)',
32
+ '-webkit-border-radius': '100px'
33
+ },
34
+
35
+ '::-webkit-scrollbar-thumb:active': {
36
+ background: 'rgba(0,0,0,0.61)',
37
+ '-webkit-border-radius': '100px'
38
+ },
39
+
40
+ '::-webkit-scrollbar-thumb:vertical': {
41
+ minHeight: 10
42
+ },
43
+
44
+ '::-webkit-scrollbar-thumb:horizontal': {
45
+ minWidth: 10
46
+ }
47
+ }
48
+ : {};
49
+
50
+ const globalStyles = (theme: AppTheme) =>
51
+ createStyles({
52
+ '@global': {
53
+ ...theme.palette.mode === 'dark' ? { 'a': { color: '#90caf9' } } : {},
54
+ '@font-face': [
55
+ {
56
+ fontFamily: 'Inter',
57
+ fontWeight: '100 900',
58
+ fontDisplay: 'swap',
59
+ fontStyle: 'normal',
60
+ fallbacks: [
61
+ { src: `local('Inter'), url(${InterRomanVar}) format("woff2")` }
62
+ ]
63
+ },
64
+ {
65
+ fontFamily: 'Inter',
66
+ fontWeight: '100 900',
67
+ fontDisplay: 'swap',
68
+ fontStyle: 'italic',
69
+ fallbacks: [
70
+ { src: `local('Inter'), url(${InterItalicVar}) format("woff2")` }
71
+ ]
72
+ }
73
+ ],
74
+ '.appFrame': {
75
+ position: 'relative',
76
+ height: '100vh',
77
+ background: theme.palette.background.default,
78
+ flex: 1,
79
+ maxWidth: '100%'
80
+ },
81
+ '.activeAvatar': {
82
+ color: theme.palette.primary.contrastText,
83
+ backgroundColor: theme.palette.primary.main,
84
+ },
85
+ '.root': {
86
+ position: 'relative',
87
+ display: 'flex',
88
+ width: '100%',
89
+ height: '100vh',
90
+ overflowY: 'hidden'
91
+ },
92
+ '.container': {
93
+ display: 'flex',
94
+ flexWrap: 'wrap'
95
+ },
96
+ '.codeArea': {
97
+ borderRadius: theme.shape.borderRadius,
98
+ background: theme.table.contrastRow.main,
99
+ padding: theme.spacing(1),
100
+ border: 'none',
101
+ outline: 'none',
102
+ whiteSpace: 'nowrap',
103
+ overflow: 'hidden',
104
+ textOverflow: 'ellipsis',
105
+ fontSize: 'inherit',
106
+ fontFamily: 'inherit',
107
+ color: 'inherit',
108
+ width: '100%'
109
+ },
110
+ '.appBarContainer': {
111
+ marginTop: theme.spacing(8),
112
+ height: `calc(100vh - ${theme.spacing(8)})`,
113
+ overflowY: 'auto'
114
+ },
115
+ '.card': {
116
+ marginBottom: '20px',
117
+ padding: '20px',
118
+ minWidth: '800px'
119
+ },
120
+ '.saveButtonTableOffset': {
121
+ marginBottom: theme.spacing(8)
122
+ },
123
+ '.editViewHeadingOffset': {
124
+ marginTop: `-${theme.spacing(2)}`
125
+ },
126
+ '.cardBorders': {
127
+ borderRadius: theme.spacing(1),
128
+ border: '2px solid',
129
+ borderColor: alpha(theme.palette.text.disabled, 0.1),
130
+ },
131
+ '.heading': {
132
+ textTransform: 'uppercase',
133
+ fontFamily: theme.typography.fontFamily,
134
+ fontSize: theme.typography.fontSize,
135
+ fontWeight: 'bold' as const,
136
+ color: theme.heading.color,
137
+ lineHeight: 1.22
138
+ },
139
+ '.secondaryHeading': {
140
+ textTransform: 'uppercase',
141
+ fontFamily: theme.typography.fontFamily,
142
+ fontSize: theme.typography.fontSize - 2,
143
+ fontWeight: 600,
144
+ color: theme.heading.color,
145
+ lineHeight: 1.45
146
+ },
147
+ '.normalHeading': {
148
+ fontFamily: theme.typography.fontFamily,
149
+ fontSize: theme.typography.fontSize,
150
+ fontWeight: 600,
151
+ color: theme.heading.color,
152
+ lineHeight: 1.45
153
+ },
154
+ '.headingHover': {
155
+ cursor: 'pointer',
156
+ willChange: 'color',
157
+ '&:hover': {
158
+ color: darken(theme.heading.color as any, 0.4),
159
+ }
160
+ },
161
+ '.checkbox': {
162
+ height: '35px',
163
+ display: 'block',
164
+ whiteSpace: 'nowrap',
165
+ overflow: 'hidden',
166
+ textOverflow: 'ellipsis'
167
+ },
168
+ '.checkboxWidth': {
169
+ width: '35px'
170
+ },
171
+ '.placeholderContent': {
172
+ color: theme.palette.divider,
173
+ fill: theme.palette.divider,
174
+ fontWeight: 400,
175
+ },
176
+ '.link': {
177
+ color: 'inherit',
178
+ textDecoration: 'none'
179
+ },
180
+ '.listItemPadding': {
181
+ padding: theme.spacing(0.75, 3),
182
+ minHeight: 'unset'
183
+ },
184
+ '.appBarFab': {
185
+ top: '31px',
186
+ backgroundColor: 'black'
187
+ },
188
+ '.payslipButton': {
189
+ '&:hover': {
190
+ backgroundColor: darken(theme.palette.primary.main, 0.1)
191
+ }
192
+ },
193
+ '.moreOptions': {
194
+ boxShadow: theme.shadows[0],
195
+ color: theme.palette.primary.contrastText,
196
+ backgroundColor: theme.palette.primary.main,
197
+ '&:hover': {
198
+ color: theme.palette.primary.contrastText,
199
+ backgroundColor: alpha(theme.palette.primary.main, 0.9)
200
+ },
201
+ margin: theme.spacing(0, 1)
202
+ },
203
+ '.moreOptionsDisabled': {
204
+ color: `${theme.palette.grey[500]} !important`,
205
+ backgroundColor: `${theme.palette.grey[300]} !important`
206
+ },
207
+ '.saveButtonEditView': {
208
+ whiteSpace: 'nowrap',
209
+ boxShadow: theme.shadows[2],
210
+ '&:hover': {
211
+ backgroundColor: darken(theme.palette.primary.main, 0.1)
212
+ },
213
+ margin: theme.spacing(1)
214
+ },
215
+ '.saveButtonEditViewDisabled': {
216
+ color: `${theme.palette.grey[500]} !important`,
217
+ backgroundColor: `${theme.palette.grey[300]} !important`
218
+ },
219
+ '.integrationsButton': {
220
+ '&:hover': {
221
+ backgroundColor: darken(theme.palette.primary.main, 0.1)
222
+ }
223
+ },
224
+ '.licencesUpgradeButton': {
225
+ '&:hover': {
226
+ backgroundColor: darken(theme.palette.primary.main, 0.1)
227
+ }
228
+ },
229
+ '.closeAppBarButton': {
230
+ color: theme.appBarButton.close.color
231
+ },
232
+ '.whiteAppBarButton': {
233
+ color: theme.palette.primary.main,
234
+ backgroundColor: theme.palette.primary.contrastText,
235
+ marginLeft: theme.spacing(1),
236
+ '&:hover': {
237
+ color: theme.palette.primary.main,
238
+ backgroundColor: alpha(theme.palette.primary.contrastText, 0.9)
239
+ }
240
+ },
241
+ '.whiteAppBarButtonDisabled': {
242
+ color: `${theme.palette.primary.main} !important`,
243
+ backgroundColor: `${alpha(theme.palette.primary.contrastText, 0.3)} !important`
244
+ },
245
+ '.avetmissButton': {
246
+ '&:hover': {
247
+ backgroundColor: darken(theme.palette.primary.main, 0.1),
248
+ color: theme.palette.primary.contrastText
249
+ }
250
+ },
251
+ '.hoverGrayIcon': {
252
+ '&:hover': {
253
+ fill: theme.palette.action.hover
254
+ }
255
+ },
256
+ '.dndActionIconButton': {
257
+ '&:hover .dndActionIcon': {
258
+ fill: theme.palette.action.active
259
+ }
260
+ },
261
+ '.dndActionIcon': {
262
+ fill: theme.palette.action.focus,
263
+ '&:hover': {
264
+ fill: theme.palette.action.active
265
+ }
266
+ },
267
+ '.fitSmallWidth': {
268
+ [theme.breakpoints.down('xs')]: {
269
+ maxWidth: 'calc(100% - 48px)'
270
+ }
271
+ },
272
+ '.inputAdornmentButton': {
273
+ width: '16px',
274
+ height: '16px',
275
+ bottom: '1px',
276
+ padding: 0,
277
+ '&:hover .placeholderContent': {
278
+ fill: theme.palette.primary.main,
279
+ color: theme.palette.primary.main,
280
+ fontWeight: 400,
281
+ }
282
+ },
283
+ '.inputAdornmentIcon': {
284
+ fontSize: theme.spacing(2),
285
+ },
286
+ '.switchLabel': {
287
+ marginRight: 'auto',
288
+ paddingRight: theme.spacing(2),
289
+ paddingTop: '1px',
290
+ fontSize: '14px'
291
+ },
292
+ '.switchWrapper': {
293
+ flexDirection: 'row-reverse',
294
+ justifyContent: 'space-between',
295
+ marginLeft: 0
296
+ },
297
+ '.switchLabelMargin': {
298
+ marginRight: '100px'
299
+ },
300
+ '.addButtonColor': {
301
+ color: theme.addButtonColor.color
302
+ },
303
+ '.labelOffset': {
304
+ marginLeft: '-14px'
305
+ },
306
+ '.listEditViewOffset': {
307
+ paddingRight: theme.spacing(8)
308
+ },
309
+ '.inlineIcon': {
310
+ marginTop: '2px',
311
+ fontSize: '0.875rem',
312
+ marginLeft: '0.2rem'
313
+ },
314
+ '.editInPlaceIcon': {
315
+ // visibility: "hidden",
316
+ fontSize: '14px',
317
+ color: theme.palette.divider,
318
+ verticalAlign: 'middle',
319
+ },
320
+ '.coloredHover': {
321
+ '&:hover': {
322
+ color: theme.palette.primary.main
323
+ }
324
+ },
325
+ '.submitButton': {
326
+ backgroundColor: theme.palette.primary.main,
327
+ color: theme.palette.primary.contrastText
328
+ },
329
+ '.documentsSubmitButton': {
330
+ backgroundColor: theme.palette.primary.main,
331
+ color: theme.palette.primary.contrastText,
332
+ '&:hover': {
333
+ backgroundColor: darken(theme.palette.primary.main, 0.1),
334
+ color: theme.palette.primary.contrastText
335
+ }
336
+ },
337
+ '.errorColor': {
338
+ color: theme.palette.error.light
339
+ },
340
+ '.errorBackgroundColor': {
341
+ backgroundColor: theme.palette.error.light
342
+ },
343
+ '.errorColorFade-0-2': {
344
+ color: alpha(theme.palette.error.light, 0.2)
345
+ },
346
+ '.errorContrastColor': {
347
+ color: theme.palette.error.contrastText
348
+ },
349
+ '.primaryColor': {
350
+ color: theme.palette.primary.main
351
+ },
352
+ '.secondaryColor': {
353
+ color: theme.palette.secondary.main
354
+ },
355
+ '.warningColor': {
356
+ color: theme.palette.warning.light
357
+ },
358
+ '.successColor': {
359
+ color: theme.palette.success.light
360
+ },
361
+ '.successBackgroundColor': {
362
+ backgroundColor: theme.palette.success.light
363
+ },
364
+ '.primaryContarstText': {
365
+ color: theme.palette.primary.contrastText
366
+ },
367
+ '.primaryContarstHover': {
368
+ '&:hover': {
369
+ color: theme.palette.primary.contrastText
370
+ }
371
+ },
372
+ '.primaryContarstUnderline': {
373
+ '&:after': {
374
+ borderBottomColor: theme.palette.primary.contrastText
375
+ }
376
+ },
377
+ '.defaultBackgroundColor': {
378
+ backgroundColor: theme.appBar.header.background
379
+ },
380
+ '.paperBackgroundColor': {
381
+ background: theme.palette.background.paper
382
+ },
383
+ '.paperTextColor': {
384
+ color: theme.palette.background.paper
385
+ },
386
+ '.fullHeightWithoutAppBar': {
387
+ height: 'calc(100vh - 64px)'
388
+ },
389
+ '.linkDecoration': {
390
+ cursor: 'pointer',
391
+ '&:hover': {
392
+ textDecoration: 'underline',
393
+ color: theme.palette.secondary.main
394
+ }
395
+ },
396
+ '.graySmallFont12': {
397
+ color: theme.statistics.rightColumn.color,
398
+ fontSize: '12px'
399
+ },
400
+ '.smallIconButton': {
401
+ width: theme.spacing(4),
402
+ height: theme.spacing(4),
403
+ padding: theme.spacing(0.5)
404
+ },
405
+ '.lightGrayIconButton': {
406
+ color: alpha(theme.palette.text.primary, 0.2),
407
+ fontSize: '18px',
408
+ width: theme.spacing(4),
409
+ height: theme.spacing(4),
410
+ padding: theme.spacing(1)
411
+ },
412
+ '.lightGrayColor': {
413
+ color: alpha(theme.palette.text.primary, 0.2),
414
+ },
415
+ '.noRecordsMessage': {
416
+ color: theme.palette.grey[400],
417
+ flex: 1,
418
+ justifyContent: 'center',
419
+ alignItems: 'center',
420
+ display: 'flex'
421
+ },
422
+ '.textPrimaryColor': {
423
+ color: theme.palette.text.primary
424
+ },
425
+ '.textSecondaryColor': {
426
+ color: theme.palette.text.secondary
427
+ },
428
+ '.textGreyColor700': {
429
+ color: theme.palette.text.grey
430
+ },
431
+ '.iconColor': {
432
+ color: theme.palette.text.secondary,
433
+ marginLeft: theme.spacing(1)
434
+ },
435
+ '.money': {
436
+ fontFeatureSettings: '"tnum", "zero"'
437
+ },
438
+ '.closeAndClearButton': {
439
+ padding: theme.spacing(1)
440
+ },
441
+ '.appHeaderFontSize': {
442
+ fontSize: '1.125rem'
443
+ },
444
+ '.backgroundText': {
445
+ fontSize: theme.spacing(10),
446
+ textTransform: 'uppercase',
447
+ position: 'absolute',
448
+ top: '210px',
449
+ left: 0,
450
+ right: 0,
451
+ bottom: 0,
452
+ zIndex: 0,
453
+ display: 'flex',
454
+ justifyContent: 'center',
455
+ alignItems: 'center',
456
+ transform: 'rotate(-35deg)',
457
+ fontWeight: theme.typography.fontWeightBold,
458
+ userSelect: 'none',
459
+ height: '200px'
460
+ },
461
+ '.summaryTopBorder': {
462
+ borderTop: `1px solid ${theme.palette.text.primary}`
463
+ },
464
+ '.selectedItemArrow': {
465
+ [theme.breakpoints.up('md')]: {
466
+ '&::after, &::before': {
467
+ content: '""',
468
+ position: 'absolute',
469
+ top: '50%'
470
+ },
471
+ '&::after': {
472
+ borderTop: '25px solid transparent',
473
+ borderRight: `25px solid ${theme.palette.background.default}`,
474
+ borderBottom: '25px solid transparent',
475
+ transform: 'translateY(-50%)',
476
+ right: -33,
477
+ zIndex: 1
478
+ },
479
+ '&::before': {
480
+ borderTop: `1px solid ${theme.palette.divider}`,
481
+ borderRight: '1px solid transparent',
482
+ borderLeft: `1px solid ${theme.palette.divider}`,
483
+ transform: 'translateY(-50%) rotate(-45deg)',
484
+ right: -50,
485
+ zIndex: 2,
486
+ padding: 17
487
+ }
488
+ }
489
+ },
490
+ '.selectItmeIcon': {
491
+ fontSize: '16px',
492
+ position: 'relative',
493
+ bottom: '-3px'
494
+ },
495
+ '.hoverIconContainer': {
496
+ '&:hover .hoverIcon': {
497
+ color: 'inherit',
498
+ visibility: 'visible',
499
+ }
500
+ },
501
+ '.gridTemplateColumns-1fr': {
502
+ gridTemplateColumns: 'minmax(0, 1fr) auto'
503
+ },
504
+ '.gridAutoFlow-column': {
505
+ gridAutoFlow: 'column'
506
+ },
507
+ '.dotsBackgroundImage': {
508
+ backgroundImage: `radial-gradient(${alpha(theme.palette.primary.main, 0.5)} 1.5px, transparent 1.5px),radial-gradient(${alpha(theme.palette.primary.main, 0.5)} 1.5px, transparent 1.5px)`,
509
+ backgroundPosition: '5px 4px, 20px 18px',
510
+ backgroundSize: '30px 30px',
511
+ },
512
+ ...bootstrap(theme),
513
+ ...customOSScrollbars,
514
+ ...animateStyles
515
+ }
516
+ });
517
+
518
+ const GlobalStylesProvider = props => <div>{props.children}</div>;
519
+
520
+ export default withStyles(globalStyles, { index: 10000 })(GlobalStylesProvider);
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { StylesProvider, createGenerateClassName } from '@mui/styles';
3
+
4
+ const generateClassName = createGenerateClassName({
5
+ disableGlobal: true
6
+ });
7
+
8
+ export default props => <StylesProvider generateClassName={generateClassName}>{props.children}</StylesProvider>;
@@ -0,0 +1,94 @@
1
+ /*
2
+ * Copyright ish group pty ltd. All rights reserved. https://www.ish.com.au
3
+ * No copying or use of this code is allowed without permission in writing from ish.
4
+ */
5
+
6
+ import { transform } from './mixins/common';
7
+ import { keyframes } from './mixins/keyframes';
8
+ import { prefixer } from './mixins/prefixer';
9
+
10
+ // const duration = "AnimationDuration";
11
+
12
+ export const animateStyles = {
13
+ '.animated': {
14
+ ...prefixer('animationDuration', '1s', ['webkit', 'spec']),
15
+ ...prefixer('animationFillMode', 'both', ['webkit', 'spec'])
16
+ },
17
+ ...keyframes('bounceInRight', {
18
+ 'from, 60%, 75%, 90%, to': {
19
+ ...prefixer('animationTimingFunction', 'cubic-bezier(0.215, 0.61, 0.355, 1)', ['webkit', 'spec'])
20
+ },
21
+ from: {
22
+ opacity: 0,
23
+ ...transform('translate3d(3000px, 0, 0)')
24
+ },
25
+ '60%': {
26
+ opacity: 1,
27
+ ...transform('translate3d(-25px, 0, 0)')
28
+ },
29
+ '75%': {
30
+ ...transform('translate3d(10px, 0, 0)')
31
+ },
32
+ '90%': {
33
+ ...transform('translate3d(-5px, 0, 0)')
34
+ },
35
+ to: {
36
+ ...transform('translate3d(0, 0, 0)')
37
+ }
38
+ }),
39
+ ...keyframes('bounceOutLeft', {
40
+ '20%': {
41
+ opacity: 1,
42
+ ...transform('translate3d(20px, 0, 0)')
43
+ },
44
+ to: {
45
+ opacity: 0,
46
+ ...transform('translate3d(-2000px, 0, 0)')
47
+ }
48
+ }),
49
+ ...keyframes('bounceOutLeftCustom', {
50
+ from: {
51
+ ...transform('translate3d(-80px, 0, 0)'),
52
+ ...prefixer('animationDuration', '0.5s', ['webkit', 'spec'])
53
+ },
54
+ to: {
55
+ ...transform('translate3d(0px, 0, 0)'),
56
+ ...prefixer('animationDuration', '0s', ['webkit', 'spec'])
57
+ }
58
+ }),
59
+ ...keyframes('bounceOutRightCustom', {
60
+ from: {
61
+ ...transform('translate3d(80px, 0, 0)'),
62
+ ...prefixer('animationDuration', '0.5s', ['webkit', 'spec'])
63
+ },
64
+ to: {
65
+ ...transform('translate3d(0px, 0, 0)'),
66
+ ...prefixer('animationDuration', '0s', ['webkit', 'spec'])
67
+ }
68
+ }),
69
+ ...keyframes('rotateOutCustom', {
70
+ from: {
71
+ ...prefixer('transform-origin', 'center', ['webkit', 'spec'])
72
+ },
73
+ to: {
74
+ ...transform('rotate3d(0, 0, 1, 720deg)'),
75
+ ...prefixer('transform-origin', 'center', ['webkit', 'spec'])
76
+ }
77
+ }, {
78
+ ...prefixer('animationDuration', '2.5s', ['webkit', 'spec'])
79
+ }),
80
+ ...keyframes('shake', {
81
+ '10%, 90%': {
82
+ ...transform('translate3d(-2px, 0, 0)')
83
+ },
84
+ '20%, 80%': {
85
+ ...transform('translate3d(4px, 0, 0)')
86
+ },
87
+ '30%, 50%, 70%': {
88
+ ...transform('translate3d(-6px, 0, 0)')
89
+ },
90
+ '40%, 60%': {
91
+ ...transform('translate3d(6px, 0, 0)')
92
+ },
93
+ })
94
+ };